@canonry/canonry 4.154.0 → 4.154.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/assets/agent-workspace/skills/canonry/SKILL.md +4 -19
- package/assets/assets/{AuditHistoryPanel-WWT1n8jp.js → AuditHistoryPanel-WKf-vvmg.js} +1 -1
- package/assets/assets/BacklinksPage-By06DbHN.js +1 -0
- package/assets/assets/HistoryPage-C_PcPiyX.js +1 -0
- package/assets/assets/MeasurementPropertyPage-BHnNegEa.js +1 -0
- package/assets/assets/{ProjectPage-BR5ECwUP.js → ProjectPage-VTbW21dz.js} +9 -9
- package/assets/assets/{RunRow-OE5tiuih.js → RunRow-9qn5Eer_.js} +1 -1
- package/assets/assets/RunsPage-FxMTprK1.js +1 -0
- package/assets/assets/SettingsPage-Cr7_PrNW.js +1 -0
- package/assets/assets/TrafficPage-D0qk9uMN.js +1 -0
- package/assets/assets/TrafficSourceDetailPage-CXa_3_Gy.js +1 -0
- package/assets/assets/extract-error-message-RkTEH1Vb.js +1 -0
- package/assets/assets/index-nSWJ9yka.js +83 -0
- package/assets/assets/vendor-lucide-ByU7vBHt.js +1 -0
- package/assets/assets/vendor-yaml-GWJz5H2G.js +131 -0
- package/assets/index.html +3 -1
- package/dist/{chunk-X5I7CAXH.js → chunk-JOP2DGXL.js} +2 -2
- package/dist/{chunk-IFZS2TXV.js → chunk-KRMLGFY3.js} +20 -12
- package/dist/cli.js +25 -2
- package/dist/index.js +2 -2
- package/dist/{intelligence-service-B5AETQ5N.js → intelligence-service-ZY5KOSZV.js} +1 -1
- package/package.json +8 -8
- package/assets/assets/BacklinksPage-DIjUnsVL.js +0 -1
- package/assets/assets/HistoryPage-CrIBhGuW.js +0 -1
- package/assets/assets/MeasurementPropertyPage-uN4BWigS.js +0 -1
- package/assets/assets/RunsPage-C6xBmjps.js +0 -1
- package/assets/assets/SettingsPage-CUjjr8U0.js +0 -1
- package/assets/assets/TrafficPage-DrEfsHiE.js +0 -1
- package/assets/assets/TrafficSourceDetailPage-B3DX5BEk.js +0 -1
- package/assets/assets/arrow-left-CLmqvCqU.js +0 -1
- package/assets/assets/extract-error-message-BEBd1a5v.js +0 -1
- package/assets/assets/index-CsM-Xxia.js +0 -213
- package/assets/assets/refresh-cw-DYSS2Wd-.js +0 -1
- package/assets/assets/trash-2-VoiF_ckU.js +0 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ProjectPage-VTbW21dz.js","./vendor-tanstack-BjS7iY3g.js","./RunRow-9qn5Eer_.js","./vendor-lucide-ByU7vBHt.js","./ChartPrimitives-DXVLCdBi.js","./extract-error-message-RkTEH1Vb.js","./vendor-recharts-33ACLxsD.js","./AuditHistoryPanel-WKf-vvmg.js","./v2-overview-adapter-COMP5UGt.js","./vendor-radix-DnzzbllM.js","./vendor-markdown-CpDJch4G.js","./vendor-yaml-GWJz5H2G.js","./RunsPage-FxMTprK1.js","./HistoryPage-C_PcPiyX.js","./SettingsPage-Cr7_PrNW.js","./BacklinksPage-By06DbHN.js","./TrafficPage-D0qk9uMN.js","./TrafficSourceDetailPage-CXa_3_Gy.js","./MeasurementPropertyPage-BHnNegEa.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as vw,d as xw,r as D,j as u,Q as kw,M as ww,q as Se,e as jb,L as Je,a as Sw,f as $s,u as ia,h as jw,k as qc,l as Aw,m as Nw,n as Ab,O as Km,o as yi,p as es,s as _w,t as xt,v as Nb,x as bi,y as Cw,z as zw,A as Ew}from"./vendor-tanstack-BjS7iY3g.js";import{S as Dw,O as kp,P as _b,C as wp,a as Cb,T as Sp,D as zb,R as Eb}from"./vendor-radix-DnzzbllM.js";import{c as Db}from"./vendor-recharts-33ACLxsD.js";import{A as Tw,X as ro,S as Rw,L as Tb,C as Rb,R as jg,a as Ob,M as Ow,b as qw,c as Bw,d as qb,T as Bb,W as Mw,e as jp,f as Pw,g as Uw,G as Lw,P as Iw,H as Vw,h as $w,i as Gw,j as Hw,k as Kw,l as Qw,B as Zw,F as Fw,m as Yw,n as Xw,o as Jw,p as Ag}from"./vendor-lucide-ByU7vBHt.js";import{M as Ww}from"./vendor-markdown-CpDJch4G.js";import{p as eS}from"./vendor-yaml-GWJz5H2G.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const g of f.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&r(g)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();var xm={exports:{}},hr={},km={exports:{}},wm={};var Ng;function tS(){return Ng||(Ng=1,(function(e){function n(I,ie){var ue=I.length;I.push(ie);e:for(;0<ue;){var _e=ue-1>>>1,le=I[_e];if(0<c(le,ie))I[_e]=ie,I[ue]=le,ue=_e;else break e}}function s(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var ie=I[0],ue=I.pop();if(ue!==ie){I[0]=ue;e:for(var _e=0,le=I.length,He=le>>>1;_e<He;){var J=2*(_e+1)-1,U=I[J],K=J+1,te=I[K];if(0>c(U,ue))K<le&&0>c(te,U)?(I[_e]=te,I[K]=ue,_e=K):(I[_e]=U,I[J]=ue,_e=J);else if(K<le&&0>c(te,ue))I[_e]=te,I[K]=ue,_e=K;else break e}}return ie}function c(I,ie){var ue=I.sortIndex-ie.sortIndex;return ue!==0?ue:I.id-ie.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;e.unstable_now=function(){return f.now()}}else{var g=Date,y=g.now();e.unstable_now=function(){return g.now()-y}}var x=[],k=[],S=1,j=null,A=3,z=!1,$=!1,L=!1,P=!1,V=typeof setTimeout=="function"?setTimeout:null,ne=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function ee(I){for(var ie=s(k);ie!==null;){if(ie.callback===null)r(k);else if(ie.startTime<=I)r(k),ie.sortIndex=ie.expirationTime,n(x,ie);else break;ie=s(k)}}function re(I){if(L=!1,ee(I),!$)if(s(x)!==null)$=!0,he||(he=!0,qe());else{var ie=s(k);ie!==null&&pe(re,ie.startTime-I)}}var he=!1,q=-1,ae=5,Ae=-1;function de(){return P?!0:!(e.unstable_now()-Ae<ae)}function ge(){if(P=!1,he){var I=e.unstable_now();Ae=I;var ie=!0;try{e:{$=!1,L&&(L=!1,ne(q),q=-1),z=!0;var ue=A;try{t:{for(ee(I),j=s(x);j!==null&&!(j.expirationTime>I&&de());){var _e=j.callback;if(typeof _e=="function"){j.callback=null,A=j.priorityLevel;var le=_e(j.expirationTime<=I);if(I=e.unstable_now(),typeof le=="function"){j.callback=le,ee(I),ie=!0;break t}j===s(x)&&r(x),ee(I)}else r(x);j=s(x)}if(j!==null)ie=!0;else{var He=s(k);He!==null&&pe(re,He.startTime-I),ie=!1}}break e}finally{j=null,A=ue,z=!1}ie=void 0}}finally{ie?qe():he=!1}}}var qe;if(typeof X=="function")qe=function(){X(ge)};else if(typeof MessageChannel<"u"){var De=new MessageChannel,at=De.port2;De.port1.onmessage=ge,qe=function(){at.postMessage(null)}}else qe=function(){V(ge,0)};function pe(I,ie){q=V(function(){I(e.unstable_now())},ie)}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"):ae=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return A},e.unstable_next=function(I){switch(A){case 1:case 2:case 3:var ie=3;break;default:ie=A}var ue=A;A=ie;try{return I()}finally{A=ue}},e.unstable_requestPaint=function(){P=!0},e.unstable_runWithPriority=function(I,ie){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var ue=A;A=I;try{return ie()}finally{A=ue}},e.unstable_scheduleCallback=function(I,ie,ue){var _e=e.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?_e+ue:_e):ue=_e,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=ue+le,I={id:S++,callback:ie,priorityLevel:I,startTime:ue,expirationTime:le,sortIndex:-1},ue>_e?(I.sortIndex=ue,n(k,I),s(x)===null&&I===s(k)&&(L?(ne(q),q=-1):L=!0,pe(re,ue-_e))):(I.sortIndex=le,n(x,I),$||z||($=!0,he||(he=!0,qe()))),I},e.unstable_shouldYield=de,e.unstable_wrapCallback=function(I){var ie=A;return function(){var ue=A;A=ie;try{return I.apply(this,arguments)}finally{A=ue}}}})(wm)),wm}var _g;function aS(){return _g||(_g=1,km.exports=tS()),km.exports}var Cg;function nS(){if(Cg)return hr;Cg=1;var e=aS(),n=vw(),s=xw();function r(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var a=t,i=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(i=a.return),t=a.return;while(t)}return a.tag===3?i:null}function g(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function y(t){if(t.tag===31){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function x(t){if(f(t)!==t)throw Error(r(188))}function k(t){var a=t.alternate;if(!a){if(a=f(t),a===null)throw Error(r(188));return a!==t?null:t}for(var i=t,o=a;;){var d=i.return;if(d===null)break;var m=d.alternate;if(m===null){if(o=d.return,o!==null){i=o;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===i)return x(d),t;if(m===o)return x(d),a;m=m.sibling}throw Error(r(188))}if(i.return!==o.return)i=d,o=m;else{for(var v=!1,w=d.child;w;){if(w===i){v=!0,i=d,o=m;break}if(w===o){v=!0,o=d,i=m;break}w=w.sibling}if(!v){for(w=m.child;w;){if(w===i){v=!0,i=m,o=d;break}if(w===o){v=!0,o=m,i=d;break}w=w.sibling}if(!v)throw Error(r(189))}}if(i.alternate!==o)throw Error(r(190))}if(i.tag!==3)throw Error(r(188));return i.stateNode.current===i?t:a}function S(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=S(t),a!==null)return a;t=t.sibling}return null}var j=Object.assign,A=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),ne=Symbol.for("react.consumer"),X=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),Ae=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),ge=Symbol.iterator;function qe(t){return t===null||typeof t!="object"?null:(t=ge&&t[ge]||t["@@iterator"],typeof t=="function"?t:null)}var De=Symbol.for("react.client.reference");function at(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===De?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L:return"Fragment";case V:return"Profiler";case P:return"StrictMode";case re:return"Suspense";case he:return"SuspenseList";case Ae:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case $:return"Portal";case X:return t.displayName||"Context";case ne:return(t._context.displayName||"Context")+".Consumer";case ee:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case q:return a=t.displayName||null,a!==null?a:at(t.type)||"Memo";case ae:a=t._payload,t=t._init;try{return at(t(a))}catch{}}return null}var pe=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},_e=[],le=-1;function He(t){return{current:t}}function J(t){0>le||(t.current=_e[le],_e[le]=null,le--)}function U(t,a){le++,_e[le]=t.current,t.current=a}var K=He(null),te=He(null),se=He(null),Ce=He(null);function rt(t,a){switch(U(se,a),U(te,t),U(K,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?Q1(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=Q1(a),t=Z1(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}J(K),U(K,t)}function Ne(){J(K),J(te),J(se)}function Ke(t){t.memoizedState!==null&&U(Ce,t);var a=K.current,i=Z1(a,t.type);a!==i&&(U(te,t),U(K,i))}function Ye(t){te.current===t&&(J(K),J(te)),Ce.current===t&&(J(Ce),ur._currentValue=ue)}var Ut,za;function It(t){if(Ut===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);Ut=a&&a[1]||"",za=-1<i.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+Ut+t+za}var ss=!1;function os(t,a){if(!t||ss)return"";ss=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(G){var M=G}Reflect.construct(t,[],Y)}else{try{Y.call()}catch(G){M=G}t.call(Y.prototype)}}else{try{throw Error()}catch(G){M=G}(Y=t())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(G){if(G&&M&&typeof G.stack=="string")return[G.stack,M.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=o.DetermineComponentFrameRoot(),v=m[0],w=m[1];if(v&&w){var N=v.split(`
|
|
5
|
+
`),O=w.split(`
|
|
6
|
+
`);for(d=o=0;o<N.length&&!N[o].includes("DetermineComponentFrameRoot");)o++;for(;d<O.length&&!O[d].includes("DetermineComponentFrameRoot");)d++;if(o===N.length||d===O.length)for(o=N.length-1,d=O.length-1;1<=o&&0<=d&&N[o]!==O[d];)d--;for(;1<=o&&0<=d;o--,d--)if(N[o]!==O[d]){if(o!==1||d!==1)do if(o--,d--,0>d||N[o]!==O[d]){var H=`
|
|
7
|
+
`+N[o].replace(" at new "," at ");return t.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",t.displayName)),H}while(1<=o&&0<=d);break}}}finally{ss=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?It(i):""}function Gr(t,a){switch(t.tag){case 26:case 27:case 5:return It(t.type);case 16:return It("Lazy");case 13:return t.child!==a&&a!==null?It("Suspense Fallback"):It("Suspense");case 19:return It("SuspenseList");case 0:case 15:return os(t.type,!1);case 11:return os(t.type.render,!1);case 1:return os(t.type,!0);case 31:return It("Activity");default:return""}}function fo(t){try{var a="",i=null;do a+=Gr(t,i),i=t,t=t.return;while(t);return a}catch(o){return`
|
|
8
|
+
Error generating stack: `+o.message+`
|
|
9
|
+
`+o.stack}}var go=Object.prototype.hasOwnProperty,yo=e.unstable_scheduleCallback,Jt=e.unstable_cancelCallback,Bn=e.unstable_shouldYield,rs=e.unstable_requestPaint,Kt=e.unstable_now,ou=e.unstable_getCurrentPriorityLevel,bo=e.unstable_ImmediatePriority,vo=e.unstable_UserBlockingPriority,_i=e.unstable_NormalPriority,Hr=e.unstable_LowPriority,xo=e.unstable_IdlePriority,ru=e.log,Kr=e.unstable_setDisableYieldValue,Ci=null,Qt=null;function $a(t){if(typeof ru=="function"&&Kr(t),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode(Ci,t)}catch{}}var Zt=Math.clz32?Math.clz32:lu,Qr=Math.log,Mn=Math.LN2;function lu(t){return t>>>=0,t===0?32:31-(Qr(t)/Mn|0)|0}var dn=256,zi=262144,tn=4194304;function Ga(t){var a=t&42;if(a!==0)return a;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Pn(t,a,i){var o=t.pendingLanes;if(o===0)return 0;var d=0,m=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var w=o&134217727;return w!==0?(o=w&~m,o!==0?d=Ga(o):(v&=w,v!==0?d=Ga(v):i||(i=w&~t,i!==0&&(d=Ga(i))))):(w=o&~m,w!==0?d=Ga(w):v!==0?d=Ga(v):i||(i=o&~t,i!==0&&(d=Ga(i)))),d===0?0:a!==0&&a!==d&&(a&m)===0&&(m=d&-d,i=a&-a,m>=i||m===32&&(i&4194048)!==0)?a:d}function Ei(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function cu(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 an(){var t=tn;return tn<<=1,(tn&62914560)===0&&(tn=4194304),t}function Di(t){for(var a=[],i=0;31>i;i++)a.push(t);return a}function Un(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ko(t,a,i,o,d,m){var v=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var w=t.entanglements,N=t.expirationTimes,O=t.hiddenUpdates;for(i=v&~i;0<i;){var H=31-Zt(i),Y=1<<H;w[H]=0,N[H]=-1;var M=O[H];if(M!==null)for(O[H]=null,H=0;H<M.length;H++){var G=M[H];G!==null&&(G.lane&=-536870913)}i&=~Y}o!==0&&wo(t,o,0),m!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=m&~(v&~a))}function wo(t,a,i){t.pendingLanes|=a,t.suspendedLanes&=~a;var o=31-Zt(a);t.entangledLanes|=a,t.entanglements[o]=t.entanglements[o]|1073741824|i&261930}function So(t,a){var i=t.entangledLanes|=a;for(t=t.entanglements;i;){var o=31-Zt(i),d=1<<o;d&a|t[o]&a&&(t[o]|=a),i&=~d}}function jo(t,a){var i=a&-a;return i=(i&42)!==0?1:Ha(i),(i&(t.suspendedLanes|a))!==0?0:i}function Ha(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function la(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function mn(){var t=ie.p;return t!==0?t:(t=window.event,t===void 0?32:yg(t.type))}function Ln(t,a){var i=ie.p;try{return ie.p=t,a()}finally{ie.p=i}}var Ft=Math.random().toString(36).slice(2),ht="__reactFiber$"+Ft,wt="__reactProps$"+Ft,Ka="__reactContainer$"+Ft,Ao="__reactEvents$"+Ft,uu="__reactListeners$"+Ft,du="__reactHandles$"+Ft,Zr="__reactResources$"+Ft,Ti="__reactMarker$"+Ft;function ls(t){delete t[ht],delete t[wt],delete t[Ao],delete t[uu],delete t[du]}function Wt(t){var a=t[ht];if(a)return a;for(var i=t.parentNode;i;){if(a=i[Ka]||i[ht]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(t=tg(t);t!==null;){if(i=t[ht])return i;t=tg(t)}return a}t=i,i=t.parentNode}return null}function nn(t){if(t=t[ht]||t[Ka]){var a=t.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return t}return null}function In(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(r(33))}function Vn(t){var a=t[Zr];return a||(a=t[Zr]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ct(t){t[Ti]=!0}var Z=new Set,Re={};function ca(t,a){ba(t,a),ba(t+"Capture",a)}function ba(t,a){for(Re[t]=a,t=0;t<a.length;t++)Z.add(a[t])}var mu=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]*$"),Fr={},No={};function Yr(t){return go.call(No,t)?!0:go.call(Fr,t)?!1:mu.test(t)?No[t]=!0:(Fr[t]=!0,!1)}function Ri(t,a,i){if(Yr(a))if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+i)}}function cs(t,a,i){if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+i)}}function ea(t,a,i,o){if(o===null)t.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(a,i,""+o)}}function zt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function P0(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function m3(t,a,i){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,a);if(!t.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,m=o.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return d.call(this)},set:function(v){i=""+v,m.call(this,v)}}),Object.defineProperty(t,a,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(v){i=""+v},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function pu(t){if(!t._valueTracker){var a=P0(t)?"checked":"value";t._valueTracker=m3(t,a,""+t[a])}}function U0(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var i=a.getValue(),o="";return t&&(o=P0(t)?t.checked?"true":"false":t.value),t=o,t!==i?(a.setValue(t),!0):!1}function Xr(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var p3=/[\n"\\]/g;function Ea(t){return t.replace(p3,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function hu(t,a,i,o,d,m,v,w){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),a!=null?v==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+zt(a)):t.value!==""+zt(a)&&(t.value=""+zt(a)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),a!=null?fu(t,v,zt(a)):i!=null?fu(t,v,zt(i)):o!=null&&t.removeAttribute("value"),d==null&&m!=null&&(t.defaultChecked=!!m),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.name=""+zt(w):t.removeAttribute("name")}function L0(t,a,i,o,d,m,v,w){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),a!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||a!=null)){pu(t);return}i=i!=null?""+zt(i):"",a=a!=null?""+zt(a):i,w||a===t.value||(t.value=a),t.defaultValue=a}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=w?t.checked:!!o,t.defaultChecked=!!o,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),pu(t)}function fu(t,a,i){a==="number"&&Xr(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function us(t,a,i,o){if(t=t.options,a){a={};for(var d=0;d<i.length;d++)a["$"+i[d]]=!0;for(i=0;i<t.length;i++)d=a.hasOwnProperty("$"+t[i].value),t[i].selected!==d&&(t[i].selected=d),d&&o&&(t[i].defaultSelected=!0)}else{for(i=""+zt(i),a=null,d=0;d<t.length;d++){if(t[d].value===i){t[d].selected=!0,o&&(t[d].defaultSelected=!0);return}a!==null||t[d].disabled||(a=t[d])}a!==null&&(a.selected=!0)}}function I0(t,a,i){if(a!=null&&(a=""+zt(a),a!==t.value&&(t.value=a),i==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=i!=null?""+zt(i):""}function V0(t,a,i,o){if(a==null){if(o!=null){if(i!=null)throw Error(r(92));if(pe(o)){if(1<o.length)throw Error(r(93));o=o[0]}i=o}i==null&&(i=""),a=i}i=zt(a),t.defaultValue=i,o=t.textContent,o===i&&o!==""&&o!==null&&(t.value=o),pu(t)}function ds(t,a){if(a){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=a;return}}t.textContent=a}var h3=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 $0(t,a,i){var o=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":o?t.setProperty(a,i):typeof i!="number"||i===0||h3.has(a)?a==="float"?t.cssFloat=i:t[a]=(""+i).trim():t[a]=i+"px"}function G0(t,a,i){if(a!=null&&typeof a!="object")throw Error(r(62));if(t=t.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var d in a)o=a[d],a.hasOwnProperty(d)&&i[d]!==o&&$0(t,d,o)}else for(var m in a)a.hasOwnProperty(m)&&$0(t,m,a[m])}function gu(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var f3=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),g3=/^[\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 Jr(t){return g3.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function pn(){}var yu=null;function bu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ms=null,ps=null;function H0(t){var a=nn(t);if(a&&(t=a.stateNode)){var i=t[wt]||null;e:switch(t=a.stateNode,a.type){case"input":if(hu(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Ea(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var o=i[a];if(o!==t&&o.form===t.form){var d=o[wt]||null;if(!d)throw Error(r(90));hu(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(a=0;a<i.length;a++)o=i[a],o.form===t.form&&U0(o)}break e;case"textarea":I0(t,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&us(t,!!i.multiple,a,!1)}}}var vu=!1;function K0(t,a,i){if(vu)return t(a,i);vu=!0;try{var o=t(a);return o}finally{if(vu=!1,(ms!==null||ps!==null)&&(Ul(),ms&&(a=ms,t=ps,ps=ms=null,H0(a),t)))for(a=0;a<t.length;a++)H0(t[a])}}function _o(t,a){var i=t.stateNode;if(i===null)return null;var o=i[wt]||null;if(o===null)return null;i=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(r(231,a,typeof i));return i}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xu=!1;if(hn)try{var Co={};Object.defineProperty(Co,"passive",{get:function(){xu=!0}}),window.addEventListener("test",Co,Co),window.removeEventListener("test",Co,Co)}catch{xu=!1}var $n=null,ku=null,Wr=null;function Q0(){if(Wr)return Wr;var t,a=ku,i=a.length,o,d="value"in $n?$n.value:$n.textContent,m=d.length;for(t=0;t<i&&a[t]===d[t];t++);var v=i-t;for(o=1;o<=v&&a[i-o]===d[m-o];o++);return Wr=d.slice(t,1<o?1-o:void 0)}function el(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function tl(){return!0}function Z0(){return!1}function ua(t){function a(i,o,d,m,v){this._reactName=i,this._targetInst=d,this.type=o,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var w in t)t.hasOwnProperty(w)&&(i=t[w],this[w]=i?i(m):m[w]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?tl:Z0,this.isPropagationStopped=Z0,this}return j(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=tl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=tl)},persist:function(){},isPersistent:tl}),a}var Oi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},al=ua(Oi),zo=j({},Oi,{view:0,detail:0}),y3=ua(zo),wu,Su,Eo,nl=j({},zo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Au,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Eo&&(Eo&&t.type==="mousemove"?(wu=t.screenX-Eo.screenX,Su=t.screenY-Eo.screenY):Su=wu=0,Eo=t),wu)},movementY:function(t){return"movementY"in t?t.movementY:Su}}),F0=ua(nl),b3=j({},nl,{dataTransfer:0}),v3=ua(b3),x3=j({},zo,{relatedTarget:0}),ju=ua(x3),k3=j({},Oi,{animationName:0,elapsedTime:0,pseudoElement:0}),w3=ua(k3),S3=j({},Oi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),j3=ua(S3),A3=j({},Oi,{data:0}),Y0=ua(A3),N3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_3={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"},C3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z3(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=C3[t])?!!a[t]:!1}function Au(){return z3}var E3=j({},zo,{key:function(t){if(t.key){var a=N3[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=el(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?_3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Au,charCode:function(t){return t.type==="keypress"?el(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?el(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),D3=ua(E3),T3=j({},nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),X0=ua(T3),R3=j({},zo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Au}),O3=ua(R3),q3=j({},Oi,{propertyName:0,elapsedTime:0,pseudoElement:0}),B3=ua(q3),M3=j({},nl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),P3=ua(M3),U3=j({},Oi,{newState:0,oldState:0}),L3=ua(U3),I3=[9,13,27,32],Nu=hn&&"CompositionEvent"in window,Do=null;hn&&"documentMode"in document&&(Do=document.documentMode);var V3=hn&&"TextEvent"in window&&!Do,J0=hn&&(!Nu||Do&&8<Do&&11>=Do),W0=" ",eh=!1;function th(t,a){switch(t){case"keyup":return I3.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ah(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var hs=!1;function $3(t,a){switch(t){case"compositionend":return ah(a);case"keypress":return a.which!==32?null:(eh=!0,W0);case"textInput":return t=a.data,t===W0&&eh?null:t;default:return null}}function G3(t,a){if(hs)return t==="compositionend"||!Nu&&th(t,a)?(t=Q0(),Wr=ku=$n=null,hs=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return J0&&a.locale!=="ko"?null:a.data;default:return null}}var H3={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 nh(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!H3[t.type]:a==="textarea"}function ih(t,a,i,o){ms?ps?ps.push(o):ps=[o]:ms=o,a=Kl(a,"onChange"),0<a.length&&(i=new al("onChange","change",null,i,o),t.push({event:i,listeners:a}))}var To=null,Ro=null;function K3(t){I1(t,0)}function il(t){var a=In(t);if(U0(a))return t}function sh(t,a){if(t==="change")return a}var oh=!1;if(hn){var _u;if(hn){var Cu="oninput"in document;if(!Cu){var rh=document.createElement("div");rh.setAttribute("oninput","return;"),Cu=typeof rh.oninput=="function"}_u=Cu}else _u=!1;oh=_u&&(!document.documentMode||9<document.documentMode)}function lh(){To&&(To.detachEvent("onpropertychange",ch),Ro=To=null)}function ch(t){if(t.propertyName==="value"&&il(Ro)){var a=[];ih(a,Ro,t,bu(t)),K0(K3,a)}}function Q3(t,a,i){t==="focusin"?(lh(),To=a,Ro=i,To.attachEvent("onpropertychange",ch)):t==="focusout"&&lh()}function Z3(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return il(Ro)}function F3(t,a){if(t==="click")return il(a)}function Y3(t,a){if(t==="input"||t==="change")return il(a)}function X3(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var va=typeof Object.is=="function"?Object.is:X3;function Oo(t,a){if(va(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var i=Object.keys(t),o=Object.keys(a);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var d=i[o];if(!go.call(a,d)||!va(t[d],a[d]))return!1}return!0}function uh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function dh(t,a){var i=uh(t);t=0;for(var o;i;){if(i.nodeType===3){if(o=t+i.textContent.length,t<=a&&o>=a)return{node:i,offset:a-t};t=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=uh(i)}}function mh(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?mh(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function ph(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=Xr(t.document);a instanceof t.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)t=a.contentWindow;else break;a=Xr(t.document)}return a}function zu(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var J3=hn&&"documentMode"in document&&11>=document.documentMode,fs=null,Eu=null,qo=null,Du=!1;function hh(t,a,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Du||fs==null||fs!==Xr(o)||(o=fs,"selectionStart"in o&&zu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),qo&&Oo(qo,o)||(qo=o,o=Kl(Eu,"onSelect"),0<o.length&&(a=new al("onSelect","select",null,a,i),t.push({event:a,listeners:o}),a.target=fs)))}function qi(t,a){var i={};return i[t.toLowerCase()]=a.toLowerCase(),i["Webkit"+t]="webkit"+a,i["Moz"+t]="moz"+a,i}var gs={animationend:qi("Animation","AnimationEnd"),animationiteration:qi("Animation","AnimationIteration"),animationstart:qi("Animation","AnimationStart"),transitionrun:qi("Transition","TransitionRun"),transitionstart:qi("Transition","TransitionStart"),transitioncancel:qi("Transition","TransitionCancel"),transitionend:qi("Transition","TransitionEnd")},Tu={},fh={};hn&&(fh=document.createElement("div").style,"AnimationEvent"in window||(delete gs.animationend.animation,delete gs.animationiteration.animation,delete gs.animationstart.animation),"TransitionEvent"in window||delete gs.transitionend.transition);function Bi(t){if(Tu[t])return Tu[t];if(!gs[t])return t;var a=gs[t],i;for(i in a)if(a.hasOwnProperty(i)&&i in fh)return Tu[t]=a[i];return t}var gh=Bi("animationend"),yh=Bi("animationiteration"),bh=Bi("animationstart"),W3=Bi("transitionrun"),ek=Bi("transitionstart"),tk=Bi("transitioncancel"),vh=Bi("transitionend"),xh=new Map,Ru="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(" ");Ru.push("scrollEnd");function Qa(t,a){xh.set(t,a),ca(a,[t])}var sl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Da=[],ys=0,Ou=0;function ol(){for(var t=ys,a=Ou=ys=0;a<t;){var i=Da[a];Da[a++]=null;var o=Da[a];Da[a++]=null;var d=Da[a];Da[a++]=null;var m=Da[a];if(Da[a++]=null,o!==null&&d!==null){var v=o.pending;v===null?d.next=d:(d.next=v.next,v.next=d),o.pending=d}m!==0&&kh(i,d,m)}}function rl(t,a,i,o){Da[ys++]=t,Da[ys++]=a,Da[ys++]=i,Da[ys++]=o,Ou|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function qu(t,a,i,o){return rl(t,a,i,o),ll(t)}function Mi(t,a){return rl(t,null,null,a),ll(t)}function kh(t,a,i){t.lanes|=i;var o=t.alternate;o!==null&&(o.lanes|=i);for(var d=!1,m=t.return;m!==null;)m.childLanes|=i,o=m.alternate,o!==null&&(o.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(d=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,d&&a!==null&&(d=31-Zt(i),t=m.hiddenUpdates,o=t[d],o===null?t[d]=[a]:o.push(a),a.lane=i|536870912),m):null}function ll(t){if(50<nr)throw nr=0,Gd=null,Error(r(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var bs={};function ak(t,a,i,o){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xa(t,a,i,o){return new ak(t,a,i,o)}function Bu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function fn(t,a){var i=t.alternate;return i===null?(i=xa(t.tag,a,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=a,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,a=t.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function wh(t,a){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,a=i.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function cl(t,a,i,o,d,m){var v=0;if(o=t,typeof t=="function")Bu(t)&&(v=1);else if(typeof t=="string")v=rw(t,i,K.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case Ae:return t=xa(31,i,a,d),t.elementType=Ae,t.lanes=m,t;case L:return Pi(i.children,d,m,a);case P:v=8,d|=24;break;case V:return t=xa(12,i,a,d|2),t.elementType=V,t.lanes=m,t;case re:return t=xa(13,i,a,d),t.elementType=re,t.lanes=m,t;case he:return t=xa(19,i,a,d),t.elementType=he,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:v=10;break e;case ne:v=9;break e;case ee:v=11;break e;case q:v=14;break e;case ae:v=16,o=null;break e}v=29,i=Error(r(130,t===null?"null":typeof t,"")),o=null}return a=xa(v,i,a,d),a.elementType=t,a.type=o,a.lanes=m,a}function Pi(t,a,i,o){return t=xa(7,t,o,a),t.lanes=i,t}function Mu(t,a,i){return t=xa(6,t,null,a),t.lanes=i,t}function Sh(t){var a=xa(18,null,null,0);return a.stateNode=t,a}function Pu(t,a,i){return a=xa(4,t.children!==null?t.children:[],t.key,a),a.lanes=i,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var jh=new WeakMap;function Ta(t,a){if(typeof t=="object"&&t!==null){var i=jh.get(t);return i!==void 0?i:(a={value:t,source:a,stack:fo(a)},jh.set(t,a),a)}return{value:t,source:a,stack:fo(a)}}var vs=[],xs=0,ul=null,Bo=0,Ra=[],Oa=0,Gn=null,sn=1,on="";function gn(t,a){vs[xs++]=Bo,vs[xs++]=ul,ul=t,Bo=a}function Ah(t,a,i){Ra[Oa++]=sn,Ra[Oa++]=on,Ra[Oa++]=Gn,Gn=t;var o=sn;t=on;var d=32-Zt(o)-1;o&=~(1<<d),i+=1;var m=32-Zt(a)+d;if(30<m){var v=d-d%5;m=(o&(1<<v)-1).toString(32),o>>=v,d-=v,sn=1<<32-Zt(a)+d|i<<d|o,on=m+t}else sn=1<<m|i<<d|o,on=t}function Uu(t){t.return!==null&&(gn(t,1),Ah(t,1,0))}function Lu(t){for(;t===ul;)ul=vs[--xs],vs[xs]=null,Bo=vs[--xs],vs[xs]=null;for(;t===Gn;)Gn=Ra[--Oa],Ra[Oa]=null,on=Ra[--Oa],Ra[Oa]=null,sn=Ra[--Oa],Ra[Oa]=null}function Nh(t,a){Ra[Oa++]=sn,Ra[Oa++]=on,Ra[Oa++]=Gn,sn=a.id,on=a.overflow,Gn=t}var Vt=null,ut=null,$e=!1,Hn=null,qa=!1,Iu=Error(r(519));function Kn(t){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Mo(Ta(a,t)),Iu}function _h(t){var a=t.stateNode,i=t.type,o=t.memoizedProps;switch(a[ht]=t,a[wt]=o,i){case"dialog":Le("cancel",a),Le("close",a);break;case"iframe":case"object":case"embed":Le("load",a);break;case"video":case"audio":for(i=0;i<sr.length;i++)Le(sr[i],a);break;case"source":Le("error",a);break;case"img":case"image":case"link":Le("error",a),Le("load",a);break;case"details":Le("toggle",a);break;case"input":Le("invalid",a),L0(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Le("invalid",a);break;case"textarea":Le("invalid",a),V0(a,o.value,o.defaultValue,o.children)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||o.suppressHydrationWarning===!0||H1(a.textContent,i)?(o.popover!=null&&(Le("beforetoggle",a),Le("toggle",a)),o.onScroll!=null&&Le("scroll",a),o.onScrollEnd!=null&&Le("scrollend",a),o.onClick!=null&&(a.onclick=pn),a=!0):a=!1,a||Kn(t,!0)}function Ch(t){for(Vt=t.return;Vt;)switch(Vt.tag){case 5:case 31:case 13:qa=!1;return;case 27:case 3:qa=!0;return;default:Vt=Vt.return}}function ks(t){if(t!==Vt)return!1;if(!$e)return Ch(t),$e=!0,!1;var a=t.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||sm(t.type,t.memoizedProps)),i=!i),i&&ut&&Kn(t),Ch(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));ut=eg(t)}else if(a===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));ut=eg(t)}else a===27?(a=ut,oi(t.type)?(t=um,um=null,ut=t):ut=a):ut=Vt?Ma(t.stateNode.nextSibling):null;return!0}function Ui(){ut=Vt=null,$e=!1}function Vu(){var t=Hn;return t!==null&&(ha===null?ha=t:ha.push.apply(ha,t),Hn=null),t}function Mo(t){Hn===null?Hn=[t]:Hn.push(t)}var $u=He(null),Li=null,yn=null;function Qn(t,a,i){U($u,a._currentValue),a._currentValue=i}function bn(t){t._currentValue=$u.current,J($u)}function Gu(t,a,i){for(;t!==null;){var o=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),t===i)break;t=t.return}}function Hu(t,a,i,o){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var m=d.dependencies;if(m!==null){var v=d.child;m=m.firstContext;e:for(;m!==null;){var w=m;m=d;for(var N=0;N<a.length;N++)if(w.context===a[N]){m.lanes|=i,w=m.alternate,w!==null&&(w.lanes|=i),Gu(m.return,i,t),o||(v=null);break e}m=w.next}}else if(d.tag===18){if(v=d.return,v===null)throw Error(r(341));v.lanes|=i,m=v.alternate,m!==null&&(m.lanes|=i),Gu(v,i,t),v=null}else v=d.child;if(v!==null)v.return=d;else for(v=d;v!==null;){if(v===t){v=null;break}if(d=v.sibling,d!==null){d.return=v.return,v=d;break}v=v.return}d=v}}function ws(t,a,i,o){t=null;for(var d=a,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var v=d.alternate;if(v===null)throw Error(r(387));if(v=v.memoizedProps,v!==null){var w=d.type;va(d.pendingProps.value,v.value)||(t!==null?t.push(w):t=[w])}}else if(d===Ce.current){if(v=d.alternate,v===null)throw Error(r(387));v.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(ur):t=[ur])}d=d.return}t!==null&&Hu(a,t,i,o),a.flags|=262144}function dl(t){for(t=t.firstContext;t!==null;){if(!va(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ii(t){Li=t,yn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function $t(t){return zh(Li,t)}function ml(t,a){return Li===null&&Ii(t),zh(t,a)}function zh(t,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},yn===null){if(t===null)throw Error(r(308));yn=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else yn=yn.next=a;return i}var nk=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(i,o){t.push(o)}};this.abort=function(){a.aborted=!0,t.forEach(function(i){return i()})}},ik=e.unstable_scheduleCallback,sk=e.unstable_NormalPriority,Et={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ku(){return{controller:new nk,data:new Map,refCount:0}}function Po(t){t.refCount--,t.refCount===0&&ik(sk,function(){t.controller.abort()})}var Uo=null,Qu=0,Ss=0,js=null;function ok(t,a){if(Uo===null){var i=Uo=[];Qu=0,Ss=Yd(),js={status:"pending",value:void 0,then:function(o){i.push(o)}}}return Qu++,a.then(Eh,Eh),a}function Eh(){if(--Qu===0&&Uo!==null){js!==null&&(js.status="fulfilled");var t=Uo;Uo=null,Ss=0,js=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function rk(t,a){var i=[],o={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return t.then(function(){o.status="fulfilled",o.value=a;for(var d=0;d<i.length;d++)(0,i[d])(a)},function(d){for(o.status="rejected",o.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),o}var Dh=I.S;I.S=function(t,a){f1=Kt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&ok(t,a),Dh!==null&&Dh(t,a)};var Vi=He(null);function Zu(){var t=Vi.current;return t!==null?t:ot.pooledCache}function pl(t,a){a===null?U(Vi,Vi.current):U(Vi,a.pool)}function Th(){var t=Zu();return t===null?null:{parent:Et._currentValue,pool:t}}var As=Error(r(460)),Fu=Error(r(474)),hl=Error(r(542)),fl={then:function(){}};function Rh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Oh(t,a,i){switch(i=t[i],i===void 0?t.push(a):i!==a&&(a.then(pn,pn),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,Bh(t),t;default:if(typeof a.status=="string")a.then(pn,pn);else{if(t=ot,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=a,t.status="pending",t.then(function(o){if(a.status==="pending"){var d=a;d.status="fulfilled",d.value=o}},function(o){if(a.status==="pending"){var d=a;d.status="rejected",d.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,Bh(t),t}throw Gi=a,As}}function $i(t){try{var a=t._init;return a(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Gi=i,As):i}}var Gi=null;function qh(){if(Gi===null)throw Error(r(459));var t=Gi;return Gi=null,t}function Bh(t){if(t===As||t===hl)throw Error(r(483))}var Ns=null,Lo=0;function gl(t){var a=Lo;return Lo+=1,Ns===null&&(Ns=[]),Oh(Ns,t,a)}function Io(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function yl(t,a){throw a.$$typeof===A?Error(r(525)):(t=Object.prototype.toString.call(a),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function Mh(t){function a(E,C){if(t){var T=E.deletions;T===null?(E.deletions=[C],E.flags|=16):T.push(C)}}function i(E,C){if(!t)return null;for(;C!==null;)a(E,C),C=C.sibling;return null}function o(E){for(var C=new Map;E!==null;)E.key!==null?C.set(E.key,E):C.set(E.index,E),E=E.sibling;return C}function d(E,C){return E=fn(E,C),E.index=0,E.sibling=null,E}function m(E,C,T){return E.index=T,t?(T=E.alternate,T!==null?(T=T.index,T<C?(E.flags|=67108866,C):T):(E.flags|=67108866,C)):(E.flags|=1048576,C)}function v(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function w(E,C,T,F){return C===null||C.tag!==6?(C=Mu(T,E.mode,F),C.return=E,C):(C=d(C,T),C.return=E,C)}function N(E,C,T,F){var je=T.type;return je===L?H(E,C,T.props.children,F,T.key):C!==null&&(C.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===ae&&$i(je)===C.type)?(C=d(C,T.props),Io(C,T),C.return=E,C):(C=cl(T.type,T.key,T.props,null,E.mode,F),Io(C,T),C.return=E,C)}function O(E,C,T,F){return C===null||C.tag!==4||C.stateNode.containerInfo!==T.containerInfo||C.stateNode.implementation!==T.implementation?(C=Pu(T,E.mode,F),C.return=E,C):(C=d(C,T.children||[]),C.return=E,C)}function H(E,C,T,F,je){return C===null||C.tag!==7?(C=Pi(T,E.mode,F,je),C.return=E,C):(C=d(C,T),C.return=E,C)}function Y(E,C,T){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Mu(""+C,E.mode,T),C.return=E,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case z:return T=cl(C.type,C.key,C.props,null,E.mode,T),Io(T,C),T.return=E,T;case $:return C=Pu(C,E.mode,T),C.return=E,C;case ae:return C=$i(C),Y(E,C,T)}if(pe(C)||qe(C))return C=Pi(C,E.mode,T,null),C.return=E,C;if(typeof C.then=="function")return Y(E,gl(C),T);if(C.$$typeof===X)return Y(E,ml(E,C),T);yl(E,C)}return null}function M(E,C,T,F){var je=C!==null?C.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return je!==null?null:w(E,C,""+T,F);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case z:return T.key===je?N(E,C,T,F):null;case $:return T.key===je?O(E,C,T,F):null;case ae:return T=$i(T),M(E,C,T,F)}if(pe(T)||qe(T))return je!==null?null:H(E,C,T,F,null);if(typeof T.then=="function")return M(E,C,gl(T),F);if(T.$$typeof===X)return M(E,C,ml(E,T),F);yl(E,T)}return null}function G(E,C,T,F,je){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return E=E.get(T)||null,w(C,E,""+F,je);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case z:return E=E.get(F.key===null?T:F.key)||null,N(C,E,F,je);case $:return E=E.get(F.key===null?T:F.key)||null,O(C,E,F,je);case ae:return F=$i(F),G(E,C,T,F,je)}if(pe(F)||qe(F))return E=E.get(T)||null,H(C,E,F,je,null);if(typeof F.then=="function")return G(E,C,T,gl(F),je);if(F.$$typeof===X)return G(E,C,T,ml(C,F),je);yl(C,F)}return null}function fe(E,C,T,F){for(var je=null,Qe=null,xe=C,Be=C=0,Ve=null;xe!==null&&Be<T.length;Be++){xe.index>Be?(Ve=xe,xe=null):Ve=xe.sibling;var Ze=M(E,xe,T[Be],F);if(Ze===null){xe===null&&(xe=Ve);break}t&&xe&&Ze.alternate===null&&a(E,xe),C=m(Ze,C,Be),Qe===null?je=Ze:Qe.sibling=Ze,Qe=Ze,xe=Ve}if(Be===T.length)return i(E,xe),$e&&gn(E,Be),je;if(xe===null){for(;Be<T.length;Be++)xe=Y(E,T[Be],F),xe!==null&&(C=m(xe,C,Be),Qe===null?je=xe:Qe.sibling=xe,Qe=xe);return $e&&gn(E,Be),je}for(xe=o(xe);Be<T.length;Be++)Ve=G(xe,E,Be,T[Be],F),Ve!==null&&(t&&Ve.alternate!==null&&xe.delete(Ve.key===null?Be:Ve.key),C=m(Ve,C,Be),Qe===null?je=Ve:Qe.sibling=Ve,Qe=Ve);return t&&xe.forEach(function(di){return a(E,di)}),$e&&gn(E,Be),je}function ze(E,C,T,F){if(T==null)throw Error(r(151));for(var je=null,Qe=null,xe=C,Be=C=0,Ve=null,Ze=T.next();xe!==null&&!Ze.done;Be++,Ze=T.next()){xe.index>Be?(Ve=xe,xe=null):Ve=xe.sibling;var di=M(E,xe,Ze.value,F);if(di===null){xe===null&&(xe=Ve);break}t&&xe&&di.alternate===null&&a(E,xe),C=m(di,C,Be),Qe===null?je=di:Qe.sibling=di,Qe=di,xe=Ve}if(Ze.done)return i(E,xe),$e&&gn(E,Be),je;if(xe===null){for(;!Ze.done;Be++,Ze=T.next())Ze=Y(E,Ze.value,F),Ze!==null&&(C=m(Ze,C,Be),Qe===null?je=Ze:Qe.sibling=Ze,Qe=Ze);return $e&&gn(E,Be),je}for(xe=o(xe);!Ze.done;Be++,Ze=T.next())Ze=G(xe,E,Be,Ze.value,F),Ze!==null&&(t&&Ze.alternate!==null&&xe.delete(Ze.key===null?Be:Ze.key),C=m(Ze,C,Be),Qe===null?je=Ze:Qe.sibling=Ze,Qe=Ze);return t&&xe.forEach(function(bw){return a(E,bw)}),$e&&gn(E,Be),je}function st(E,C,T,F){if(typeof T=="object"&&T!==null&&T.type===L&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case z:e:{for(var je=T.key;C!==null;){if(C.key===je){if(je=T.type,je===L){if(C.tag===7){i(E,C.sibling),F=d(C,T.props.children),F.return=E,E=F;break e}}else if(C.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===ae&&$i(je)===C.type){i(E,C.sibling),F=d(C,T.props),Io(F,T),F.return=E,E=F;break e}i(E,C);break}else a(E,C);C=C.sibling}T.type===L?(F=Pi(T.props.children,E.mode,F,T.key),F.return=E,E=F):(F=cl(T.type,T.key,T.props,null,E.mode,F),Io(F,T),F.return=E,E=F)}return v(E);case $:e:{for(je=T.key;C!==null;){if(C.key===je)if(C.tag===4&&C.stateNode.containerInfo===T.containerInfo&&C.stateNode.implementation===T.implementation){i(E,C.sibling),F=d(C,T.children||[]),F.return=E,E=F;break e}else{i(E,C);break}else a(E,C);C=C.sibling}F=Pu(T,E.mode,F),F.return=E,E=F}return v(E);case ae:return T=$i(T),st(E,C,T,F)}if(pe(T))return fe(E,C,T,F);if(qe(T)){if(je=qe(T),typeof je!="function")throw Error(r(150));return T=je.call(T),ze(E,C,T,F)}if(typeof T.then=="function")return st(E,C,gl(T),F);if(T.$$typeof===X)return st(E,C,ml(E,T),F);yl(E,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,C!==null&&C.tag===6?(i(E,C.sibling),F=d(C,T),F.return=E,E=F):(i(E,C),F=Mu(T,E.mode,F),F.return=E,E=F),v(E)):i(E,C)}return function(E,C,T,F){try{Lo=0;var je=st(E,C,T,F);return Ns=null,je}catch(xe){if(xe===As||xe===hl)throw xe;var Qe=xa(29,xe,null,E.mode);return Qe.lanes=F,Qe.return=E,Qe}}}var Hi=Mh(!0),Ph=Mh(!1),Zn=!1;function Yu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xu(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Fn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Yn(t,a,i){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(Xe&2)!==0){var d=o.pending;return d===null?a.next=a:(a.next=d.next,d.next=a),o.pending=a,a=ll(t),kh(t,null,i),a}return rl(t,o,a,i),ll(t)}function Vo(t,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var o=a.lanes;o&=t.pendingLanes,i|=o,a.lanes=i,So(t,i)}}function Ju(t,a){var i=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var d=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var v={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?d=m=v:m=m.next=v,i=i.next}while(i!==null);m===null?d=m=a:m=m.next=a}else d=m=a;i={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:o.shared,callbacks:o.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=a:t.next=a,i.lastBaseUpdate=a}var Wu=!1;function $o(){if(Wu){var t=js;if(t!==null)throw t}}function Go(t,a,i,o){Wu=!1;var d=t.updateQueue;Zn=!1;var m=d.firstBaseUpdate,v=d.lastBaseUpdate,w=d.shared.pending;if(w!==null){d.shared.pending=null;var N=w,O=N.next;N.next=null,v===null?m=O:v.next=O,v=N;var H=t.alternate;H!==null&&(H=H.updateQueue,w=H.lastBaseUpdate,w!==v&&(w===null?H.firstBaseUpdate=O:w.next=O,H.lastBaseUpdate=N))}if(m!==null){var Y=d.baseState;v=0,H=O=N=null,w=m;do{var M=w.lane&-536870913,G=M!==w.lane;if(G?(Ie&M)===M:(o&M)===M){M!==0&&M===Ss&&(Wu=!0),H!==null&&(H=H.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var fe=t,ze=w;M=a;var st=i;switch(ze.tag){case 1:if(fe=ze.payload,typeof fe=="function"){Y=fe.call(st,Y,M);break e}Y=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ze.payload,M=typeof fe=="function"?fe.call(st,Y,M):fe,M==null)break e;Y=j({},Y,M);break e;case 2:Zn=!0}}M=w.callback,M!==null&&(t.flags|=64,G&&(t.flags|=8192),G=d.callbacks,G===null?d.callbacks=[M]:G.push(M))}else G={lane:M,tag:w.tag,payload:w.payload,callback:w.callback,next:null},H===null?(O=H=G,N=Y):H=H.next=G,v|=M;if(w=w.next,w===null){if(w=d.shared.pending,w===null)break;G=w,w=G.next,G.next=null,d.lastBaseUpdate=G,d.shared.pending=null}}while(!0);H===null&&(N=Y),d.baseState=N,d.firstBaseUpdate=O,d.lastBaseUpdate=H,m===null&&(d.shared.lanes=0),ti|=v,t.lanes=v,t.memoizedState=Y}}function Uh(t,a){if(typeof t!="function")throw Error(r(191,t));t.call(a)}function Lh(t,a){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Uh(i[t],a)}var _s=He(null),bl=He(0);function Ih(t,a){t=_n,U(bl,t),U(_s,a),_n=t|a.baseLanes}function ed(){U(bl,_n),U(_s,_s.current)}function td(){_n=bl.current,J(_s),J(bl)}var ka=He(null),Ba=null;function Xn(t){var a=t.alternate;U(Nt,Nt.current&1),U(ka,t),Ba===null&&(a===null||_s.current!==null||a.memoizedState!==null)&&(Ba=t)}function ad(t){U(Nt,Nt.current),U(ka,t),Ba===null&&(Ba=t)}function Vh(t){t.tag===22?(U(Nt,Nt.current),U(ka,t),Ba===null&&(Ba=t)):Jn()}function Jn(){U(Nt,Nt.current),U(ka,ka.current)}function wa(t){J(ka),Ba===t&&(Ba=null),J(Nt)}var Nt=He(0);function vl(t){for(var a=t;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||lm(i)||cm(i)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var vn=0,Oe=null,nt=null,Dt=null,xl=!1,Cs=!1,Ki=!1,kl=0,Ho=0,zs=null,lk=0;function St(){throw Error(r(321))}function nd(t,a){if(a===null)return!1;for(var i=0;i<a.length&&i<t.length;i++)if(!va(t[i],a[i]))return!1;return!0}function id(t,a,i,o,d,m){return vn=m,Oe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,I.H=t===null||t.memoizedState===null?Nf:vd,Ki=!1,m=i(o,d),Ki=!1,Cs&&(m=Gh(a,i,o,d)),$h(t),m}function $h(t){I.H=Zo;var a=nt!==null&&nt.next!==null;if(vn=0,Dt=nt=Oe=null,xl=!1,Ho=0,zs=null,a)throw Error(r(300));t===null||Tt||(t=t.dependencies,t!==null&&dl(t)&&(Tt=!0))}function Gh(t,a,i,o){Oe=t;var d=0;do{if(Cs&&(zs=null),Ho=0,Cs=!1,25<=d)throw Error(r(301));if(d+=1,Dt=nt=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}I.H=_f,m=a(i,o)}while(Cs);return m}function ck(){var t=I.H,a=t.useState()[0];return a=typeof a.then=="function"?Ko(a):a,t=t.useState()[0],(nt!==null?nt.memoizedState:null)!==t&&(Oe.flags|=1024),a}function sd(){var t=kl!==0;return kl=0,t}function od(t,a,i){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~i}function rd(t){if(xl){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}xl=!1}vn=0,Dt=nt=Oe=null,Cs=!1,Ho=kl=0,zs=null}function ta(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?Oe.memoizedState=Dt=t:Dt=Dt.next=t,Dt}function _t(){if(nt===null){var t=Oe.alternate;t=t!==null?t.memoizedState:null}else t=nt.next;var a=Dt===null?Oe.memoizedState:Dt.next;if(a!==null)Dt=a,nt=t;else{if(t===null)throw Oe.alternate===null?Error(r(467)):Error(r(310));nt=t,t={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},Dt===null?Oe.memoizedState=Dt=t:Dt=Dt.next=t}return Dt}function wl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ko(t){var a=Ho;return Ho+=1,zs===null&&(zs=[]),t=Oh(zs,t,a),a=Oe,(Dt===null?a.memoizedState:Dt.next)===null&&(a=a.alternate,I.H=a===null||a.memoizedState===null?Nf:vd),t}function Sl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ko(t);if(t.$$typeof===X)return $t(t)}throw Error(r(438,String(t)))}function ld(t){var a=null,i=Oe.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var o=Oe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(d){return d.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=wl(),Oe.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(t),o=0;o<t;o++)i[o]=de;return a.index++,i}function xn(t,a){return typeof a=="function"?a(t):a}function jl(t){var a=_t();return cd(a,nt,t)}function cd(t,a,i){var o=t.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=i;var d=t.baseQueue,m=o.pending;if(m!==null){if(d!==null){var v=d.next;d.next=m.next,m.next=v}a.baseQueue=d=m,o.pending=null}if(m=t.baseState,d===null)t.memoizedState=m;else{a=d.next;var w=v=null,N=null,O=a,H=!1;do{var Y=O.lane&-536870913;if(Y!==O.lane?(Ie&Y)===Y:(vn&Y)===Y){var M=O.revertLane;if(M===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),Y===Ss&&(H=!0);else if((vn&M)===M){O=O.next,M===Ss&&(H=!0);continue}else Y={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},N===null?(w=N=Y,v=m):N=N.next=Y,Oe.lanes|=M,ti|=M;Y=O.action,Ki&&i(m,Y),m=O.hasEagerState?O.eagerState:i(m,Y)}else M={lane:Y,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},N===null?(w=N=M,v=m):N=N.next=M,Oe.lanes|=Y,ti|=Y;O=O.next}while(O!==null&&O!==a);if(N===null?v=m:N.next=w,!va(m,t.memoizedState)&&(Tt=!0,H&&(i=js,i!==null)))throw i;t.memoizedState=m,t.baseState=v,t.baseQueue=N,o.lastRenderedState=m}return d===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function ud(t){var a=_t(),i=a.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=t;var o=i.dispatch,d=i.pending,m=a.memoizedState;if(d!==null){i.pending=null;var v=d=d.next;do m=t(m,v.action),v=v.next;while(v!==d);va(m,a.memoizedState)||(Tt=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),i.lastRenderedState=m}return[m,o]}function Hh(t,a,i){var o=Oe,d=_t(),m=$e;if(m){if(i===void 0)throw Error(r(407));i=i()}else i=a();var v=!va((nt||d).memoizedState,i);if(v&&(d.memoizedState=i,Tt=!0),d=d.queue,pd(Zh.bind(null,o,d,t),[t]),d.getSnapshot!==a||v||Dt!==null&&Dt.memoizedState.tag&1){if(o.flags|=2048,Es(9,{destroy:void 0},Qh.bind(null,o,d,i,a),null),ot===null)throw Error(r(349));m||(vn&127)!==0||Kh(o,a,i)}return i}function Kh(t,a,i){t.flags|=16384,t={getSnapshot:a,value:i},a=Oe.updateQueue,a===null?(a=wl(),Oe.updateQueue=a,a.stores=[t]):(i=a.stores,i===null?a.stores=[t]:i.push(t))}function Qh(t,a,i,o){a.value=i,a.getSnapshot=o,Fh(a)&&Yh(t)}function Zh(t,a,i){return i(function(){Fh(a)&&Yh(t)})}function Fh(t){var a=t.getSnapshot;t=t.value;try{var i=a();return!va(t,i)}catch{return!0}}function Yh(t){var a=Mi(t,2);a!==null&&fa(a,t,2)}function dd(t){var a=ta();if(typeof t=="function"){var i=t;if(t=i(),Ki){$a(!0);try{i()}finally{$a(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:t},a}function Xh(t,a,i,o){return t.baseState=i,cd(t,nt,typeof o=="function"?o:xn)}function uk(t,a,i,o,d){if(_l(t))throw Error(r(485));if(t=a.action,t!==null){var m={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){m.listeners.push(v)}};I.T!==null?i(!0):m.isTransition=!1,o(m),i=a.pending,i===null?(m.next=a.pending=m,Jh(a,m)):(m.next=i.next,a.pending=i.next=m)}}function Jh(t,a){var i=a.action,o=a.payload,d=t.state;if(a.isTransition){var m=I.T,v={};I.T=v;try{var w=i(d,o),N=I.S;N!==null&&N(v,w),Wh(t,a,w)}catch(O){md(t,a,O)}finally{m!==null&&v.types!==null&&(m.types=v.types),I.T=m}}else try{m=i(d,o),Wh(t,a,m)}catch(O){md(t,a,O)}}function Wh(t,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){ef(t,a,o)},function(o){return md(t,a,o)}):ef(t,a,i)}function ef(t,a,i){a.status="fulfilled",a.value=i,tf(a),t.state=i,a=t.pending,a!==null&&(i=a.next,i===a?t.pending=null:(i=i.next,a.next=i,Jh(t,i)))}function md(t,a,i){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=i,tf(a),a=a.next;while(a!==o)}t.action=null}function tf(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function af(t,a){return a}function nf(t,a){if($e){var i=ot.formState;if(i!==null){e:{var o=Oe;if($e){if(ut){t:{for(var d=ut,m=qa;d.nodeType!==8;){if(!m){d=null;break t}if(d=Ma(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){ut=Ma(d.nextSibling),o=d.data==="F!";break e}}Kn(o)}o=!1}o&&(a=i[0])}}return i=ta(),i.memoizedState=i.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:af,lastRenderedState:a},i.queue=o,i=Sf.bind(null,Oe,o),o.dispatch=i,o=dd(!1),m=bd.bind(null,Oe,!1,o.queue),o=ta(),d={state:a,dispatch:null,action:t,pending:null},o.queue=d,i=uk.bind(null,Oe,d,m,i),d.dispatch=i,o.memoizedState=t,[a,i,!1]}function sf(t){var a=_t();return of(a,nt,t)}function of(t,a,i){if(a=cd(t,a,af)[0],t=jl(xn)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=Ko(a)}catch(v){throw v===As?hl:v}else o=a;a=_t();var d=a.queue,m=d.dispatch;return i!==a.memoizedState&&(Oe.flags|=2048,Es(9,{destroy:void 0},dk.bind(null,d,i),null)),[o,m,t]}function dk(t,a){t.action=a}function rf(t){var a=_t(),i=nt;if(i!==null)return of(a,i,t);_t(),a=a.memoizedState,i=_t();var o=i.queue.dispatch;return i.memoizedState=t,[a,o,!1]}function Es(t,a,i,o){return t={tag:t,create:i,deps:o,inst:a,next:null},a=Oe.updateQueue,a===null&&(a=wl(),Oe.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=t.next=t:(o=i.next,i.next=t,t.next=o,a.lastEffect=t),t}function lf(){return _t().memoizedState}function Al(t,a,i,o){var d=ta();Oe.flags|=t,d.memoizedState=Es(1|a,{destroy:void 0},i,o===void 0?null:o)}function Nl(t,a,i,o){var d=_t();o=o===void 0?null:o;var m=d.memoizedState.inst;nt!==null&&o!==null&&nd(o,nt.memoizedState.deps)?d.memoizedState=Es(a,m,i,o):(Oe.flags|=t,d.memoizedState=Es(1|a,m,i,o))}function cf(t,a){Al(8390656,8,t,a)}function pd(t,a){Nl(2048,8,t,a)}function mk(t){Oe.flags|=4;var a=Oe.updateQueue;if(a===null)a=wl(),Oe.updateQueue=a,a.events=[t];else{var i=a.events;i===null?a.events=[t]:i.push(t)}}function uf(t){var a=_t().memoizedState;return mk({ref:a,nextImpl:t}),function(){if((Xe&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function df(t,a){return Nl(4,2,t,a)}function mf(t,a){return Nl(4,4,t,a)}function pf(t,a){if(typeof a=="function"){t=t();var i=a(t);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function hf(t,a,i){i=i!=null?i.concat([t]):null,Nl(4,4,pf.bind(null,a,t),i)}function hd(){}function ff(t,a){var i=_t();a=a===void 0?null:a;var o=i.memoizedState;return a!==null&&nd(a,o[1])?o[0]:(i.memoizedState=[t,a],t)}function gf(t,a){var i=_t();a=a===void 0?null:a;var o=i.memoizedState;if(a!==null&&nd(a,o[1]))return o[0];if(o=t(),Ki){$a(!0);try{t()}finally{$a(!1)}}return i.memoizedState=[o,a],o}function fd(t,a,i){return i===void 0||(vn&1073741824)!==0&&(Ie&261930)===0?t.memoizedState=a:(t.memoizedState=i,t=y1(),Oe.lanes|=t,ti|=t,i)}function yf(t,a,i,o){return va(i,a)?i:_s.current!==null?(t=fd(t,i,o),va(t,a)||(Tt=!0),t):(vn&42)===0||(vn&1073741824)!==0&&(Ie&261930)===0?(Tt=!0,t.memoizedState=i):(t=y1(),Oe.lanes|=t,ti|=t,a)}function bf(t,a,i,o,d){var m=ie.p;ie.p=m!==0&&8>m?m:8;var v=I.T,w={};I.T=w,bd(t,!1,a,i);try{var N=d(),O=I.S;if(O!==null&&O(w,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var H=rk(N,o);Qo(t,a,H,Aa(t))}else Qo(t,a,o,Aa(t))}catch(Y){Qo(t,a,{then:function(){},status:"rejected",reason:Y},Aa())}finally{ie.p=m,v!==null&&w.types!==null&&(v.types=w.types),I.T=v}}function pk(){}function gd(t,a,i,o){if(t.tag!==5)throw Error(r(476));var d=vf(t).queue;bf(t,d,a,ue,i===null?pk:function(){return xf(t),i(o)})}function vf(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:ue},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:i},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function xf(t){var a=vf(t);a.next===null&&(a=t.alternate.memoizedState),Qo(t,a.next.queue,{},Aa())}function yd(){return $t(ur)}function kf(){return _t().memoizedState}function wf(){return _t().memoizedState}function hk(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var i=Aa();t=Fn(i);var o=Yn(a,t,i);o!==null&&(fa(o,a,i),Vo(o,a,i)),a={cache:Ku()},t.payload=a;return}a=a.return}}function fk(t,a,i){var o=Aa();i={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},_l(t)?jf(a,i):(i=qu(t,a,i,o),i!==null&&(fa(i,t,o),Af(i,a,o)))}function Sf(t,a,i){var o=Aa();Qo(t,a,i,o)}function Qo(t,a,i,o){var d={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(_l(t))jf(a,d);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var v=a.lastRenderedState,w=m(v,i);if(d.hasEagerState=!0,d.eagerState=w,va(w,v))return rl(t,a,d,0),ot===null&&ol(),!1}catch{}if(i=qu(t,a,d,o),i!==null)return fa(i,t,o),Af(i,a,o),!0}return!1}function bd(t,a,i,o){if(o={lane:2,revertLane:Yd(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},_l(t)){if(a)throw Error(r(479))}else a=qu(t,i,o,2),a!==null&&fa(a,t,2)}function _l(t){var a=t.alternate;return t===Oe||a!==null&&a===Oe}function jf(t,a){Cs=xl=!0;var i=t.pending;i===null?a.next=a:(a.next=i.next,i.next=a),t.pending=a}function Af(t,a,i){if((i&4194048)!==0){var o=a.lanes;o&=t.pendingLanes,i|=o,a.lanes=i,So(t,i)}}var Zo={readContext:$t,use:Sl,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St};Zo.useEffectEvent=St;var Nf={readContext:$t,use:Sl,useCallback:function(t,a){return ta().memoizedState=[t,a===void 0?null:a],t},useContext:$t,useEffect:cf,useImperativeHandle:function(t,a,i){i=i!=null?i.concat([t]):null,Al(4194308,4,pf.bind(null,a,t),i)},useLayoutEffect:function(t,a){return Al(4194308,4,t,a)},useInsertionEffect:function(t,a){Al(4,2,t,a)},useMemo:function(t,a){var i=ta();a=a===void 0?null:a;var o=t();if(Ki){$a(!0);try{t()}finally{$a(!1)}}return i.memoizedState=[o,a],o},useReducer:function(t,a,i){var o=ta();if(i!==void 0){var d=i(a);if(Ki){$a(!0);try{i(a)}finally{$a(!1)}}}else d=a;return o.memoizedState=o.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},o.queue=t,t=t.dispatch=fk.bind(null,Oe,t),[o.memoizedState,t]},useRef:function(t){var a=ta();return t={current:t},a.memoizedState=t},useState:function(t){t=dd(t);var a=t.queue,i=Sf.bind(null,Oe,a);return a.dispatch=i,[t.memoizedState,i]},useDebugValue:hd,useDeferredValue:function(t,a){var i=ta();return fd(i,t,a)},useTransition:function(){var t=dd(!1);return t=bf.bind(null,Oe,t.queue,!0,!1),ta().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,i){var o=Oe,d=ta();if($e){if(i===void 0)throw Error(r(407));i=i()}else{if(i=a(),ot===null)throw Error(r(349));(Ie&127)!==0||Kh(o,a,i)}d.memoizedState=i;var m={value:i,getSnapshot:a};return d.queue=m,cf(Zh.bind(null,o,m,t),[t]),o.flags|=2048,Es(9,{destroy:void 0},Qh.bind(null,o,m,i,a),null),i},useId:function(){var t=ta(),a=ot.identifierPrefix;if($e){var i=on,o=sn;i=(o&~(1<<32-Zt(o)-1)).toString(32)+i,a="_"+a+"R_"+i,i=kl++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=lk++,a="_"+a+"r_"+i.toString(32)+"_";return t.memoizedState=a},useHostTransitionStatus:yd,useFormState:nf,useActionState:nf,useOptimistic:function(t){var a=ta();a.memoizedState=a.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=bd.bind(null,Oe,!0,i),i.dispatch=a,[t,a]},useMemoCache:ld,useCacheRefresh:function(){return ta().memoizedState=hk.bind(null,Oe)},useEffectEvent:function(t){var a=ta(),i={impl:t};return a.memoizedState=i,function(){if((Xe&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}},vd={readContext:$t,use:Sl,useCallback:ff,useContext:$t,useEffect:pd,useImperativeHandle:hf,useInsertionEffect:df,useLayoutEffect:mf,useMemo:gf,useReducer:jl,useRef:lf,useState:function(){return jl(xn)},useDebugValue:hd,useDeferredValue:function(t,a){var i=_t();return yf(i,nt.memoizedState,t,a)},useTransition:function(){var t=jl(xn)[0],a=_t().memoizedState;return[typeof t=="boolean"?t:Ko(t),a]},useSyncExternalStore:Hh,useId:kf,useHostTransitionStatus:yd,useFormState:sf,useActionState:sf,useOptimistic:function(t,a){var i=_t();return Xh(i,nt,t,a)},useMemoCache:ld,useCacheRefresh:wf};vd.useEffectEvent=uf;var _f={readContext:$t,use:Sl,useCallback:ff,useContext:$t,useEffect:pd,useImperativeHandle:hf,useInsertionEffect:df,useLayoutEffect:mf,useMemo:gf,useReducer:ud,useRef:lf,useState:function(){return ud(xn)},useDebugValue:hd,useDeferredValue:function(t,a){var i=_t();return nt===null?fd(i,t,a):yf(i,nt.memoizedState,t,a)},useTransition:function(){var t=ud(xn)[0],a=_t().memoizedState;return[typeof t=="boolean"?t:Ko(t),a]},useSyncExternalStore:Hh,useId:kf,useHostTransitionStatus:yd,useFormState:rf,useActionState:rf,useOptimistic:function(t,a){var i=_t();return nt!==null?Xh(i,nt,t,a):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:ld,useCacheRefresh:wf};_f.useEffectEvent=uf;function xd(t,a,i,o){a=t.memoizedState,i=i(o,a),i=i==null?a:j({},a,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var kd={enqueueSetState:function(t,a,i){t=t._reactInternals;var o=Aa(),d=Fn(o);d.payload=a,i!=null&&(d.callback=i),a=Yn(t,d,o),a!==null&&(fa(a,t,o),Vo(a,t,o))},enqueueReplaceState:function(t,a,i){t=t._reactInternals;var o=Aa(),d=Fn(o);d.tag=1,d.payload=a,i!=null&&(d.callback=i),a=Yn(t,d,o),a!==null&&(fa(a,t,o),Vo(a,t,o))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var i=Aa(),o=Fn(i);o.tag=2,a!=null&&(o.callback=a),a=Yn(t,o,i),a!==null&&(fa(a,t,i),Vo(a,t,i))}};function Cf(t,a,i,o,d,m,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,m,v):a.prototype&&a.prototype.isPureReactComponent?!Oo(i,o)||!Oo(d,m):!0}function zf(t,a,i,o){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,o),a.state!==t&&kd.enqueueReplaceState(a,a.state,null)}function Qi(t,a){var i=a;if("ref"in a){i={};for(var o in a)o!=="ref"&&(i[o]=a[o])}if(t=t.defaultProps){i===a&&(i=j({},i));for(var d in t)i[d]===void 0&&(i[d]=t[d])}return i}function Ef(t){sl(t)}function Df(t){console.error(t)}function Tf(t){sl(t)}function Cl(t,a){try{var i=t.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function Rf(t,a,i){try{var o=t.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function wd(t,a,i){return i=Fn(i),i.tag=3,i.payload={element:null},i.callback=function(){Cl(t,a)},i}function Of(t){return t=Fn(t),t.tag=3,t}function qf(t,a,i,o){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var m=o.value;t.payload=function(){return d(m)},t.callback=function(){Rf(a,i,o)}}var v=i.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){Rf(a,i,o),typeof d!="function"&&(ai===null?ai=new Set([this]):ai.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})})}function gk(t,a,i,o,d){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=i.alternate,a!==null&&ws(a,i,d,!0),i=ka.current,i!==null){switch(i.tag){case 31:case 13:return Ba===null?Ll():i.alternate===null&&jt===0&&(jt=3),i.flags&=-257,i.flags|=65536,i.lanes=d,o===fl?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([o]):a.add(o),Qd(t,o,d)),!1;case 22:return i.flags|=65536,o===fl?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([o]):i.add(o)),Qd(t,o,d)),!1}throw Error(r(435,i.tag))}return Qd(t,o,d),Ll(),!1}if($e)return a=ka.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=d,o!==Iu&&(t=Error(r(422),{cause:o}),Mo(Ta(t,i)))):(o!==Iu&&(a=Error(r(423),{cause:o}),Mo(Ta(a,i))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,o=Ta(o,i),d=wd(t.stateNode,o,d),Ju(t,d),jt!==4&&(jt=2)),!1;var m=Error(r(520),{cause:o});if(m=Ta(m,i),ar===null?ar=[m]:ar.push(m),jt!==4&&(jt=2),a===null)return!0;o=Ta(o,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,t=d&-d,i.lanes|=t,t=wd(i.stateNode,o,t),Ju(i,t),!1;case 1:if(a=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(ai===null||!ai.has(m))))return i.flags|=65536,d&=-d,i.lanes|=d,d=Of(d),qf(d,t,i,o),Ju(i,d),!1}i=i.return}while(i!==null);return!1}var Sd=Error(r(461)),Tt=!1;function Gt(t,a,i,o){a.child=t===null?Ph(a,null,i,o):Hi(a,t.child,i,o)}function Bf(t,a,i,o,d){i=i.render;var m=a.ref;if("ref"in o){var v={};for(var w in o)w!=="ref"&&(v[w]=o[w])}else v=o;return Ii(a),o=id(t,a,i,v,m,d),w=sd(),t!==null&&!Tt?(od(t,a,d),kn(t,a,d)):($e&&w&&Uu(a),a.flags|=1,Gt(t,a,o,d),a.child)}function Mf(t,a,i,o,d){if(t===null){var m=i.type;return typeof m=="function"&&!Bu(m)&&m.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=m,Pf(t,a,m,o,d)):(t=cl(i.type,null,o,a,a.mode,d),t.ref=a.ref,t.return=a,a.child=t)}if(m=t.child,!Dd(t,d)){var v=m.memoizedProps;if(i=i.compare,i=i!==null?i:Oo,i(v,o)&&t.ref===a.ref)return kn(t,a,d)}return a.flags|=1,t=fn(m,o),t.ref=a.ref,t.return=a,a.child=t}function Pf(t,a,i,o,d){if(t!==null){var m=t.memoizedProps;if(Oo(m,o)&&t.ref===a.ref)if(Tt=!1,a.pendingProps=o=m,Dd(t,d))(t.flags&131072)!==0&&(Tt=!0);else return a.lanes=t.lanes,kn(t,a,d)}return jd(t,a,i,o,d)}function Uf(t,a,i,o){var d=o.children,m=t!==null?t.memoizedState:null;if(t===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((a.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,t!==null){for(o=a.child=t.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~m}else o=0,a.child=null;return Lf(t,a,m,i,o)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&pl(a,m!==null?m.cachePool:null),m!==null?Ih(a,m):ed(),Vh(a);else return o=a.lanes=536870912,Lf(t,a,m!==null?m.baseLanes|i:i,i,o)}else m!==null?(pl(a,m.cachePool),Ih(a,m),Jn(),a.memoizedState=null):(t!==null&&pl(a,null),ed(),Jn());return Gt(t,a,d,i),a.child}function Fo(t,a){return t!==null&&t.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Lf(t,a,i,o,d){var m=Zu();return m=m===null?null:{parent:Et._currentValue,pool:m},a.memoizedState={baseLanes:i,cachePool:m},t!==null&&pl(a,null),ed(),Vh(a),t!==null&&ws(t,a,o,!0),a.childLanes=d,null}function zl(t,a){return a=Dl({mode:a.mode,children:a.children},t.mode),a.ref=t.ref,t.child=a,a.return=t,a}function If(t,a,i){return Hi(a,t.child,null,i),t=zl(a,a.pendingProps),t.flags|=2,wa(a),a.memoizedState=null,t}function yk(t,a,i){var o=a.pendingProps,d=(a.flags&128)!==0;if(a.flags&=-129,t===null){if($e){if(o.mode==="hidden")return t=zl(a,o),a.lanes=536870912,Fo(null,t);if(ad(a),(t=ut)?(t=W1(t,qa),t=t!==null&&t.data==="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:sn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},i=Sh(t),i.return=a,a.child=i,Vt=a,ut=null)):t=null,t===null)throw Kn(a);return a.lanes=536870912,null}return zl(a,o)}var m=t.memoizedState;if(m!==null){var v=m.dehydrated;if(ad(a),d)if(a.flags&256)a.flags&=-257,a=If(t,a,i);else if(a.memoizedState!==null)a.child=t.child,a.flags|=128,a=null;else throw Error(r(558));else if(Tt||ws(t,a,i,!1),d=(i&t.childLanes)!==0,Tt||d){if(o=ot,o!==null&&(v=jo(o,i),v!==0&&v!==m.retryLane))throw m.retryLane=v,Mi(t,v),fa(o,t,v),Sd;Ll(),a=If(t,a,i)}else t=m.treeContext,ut=Ma(v.nextSibling),Vt=a,$e=!0,Hn=null,qa=!1,t!==null&&Nh(a,t),a=zl(a,o),a.flags|=4096;return a}return t=fn(t.child,{mode:o.mode,children:o.children}),t.ref=a.ref,a.child=t,t.return=a,t}function El(t,a){var i=a.ref;if(i===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(r(284));(t===null||t.ref!==i)&&(a.flags|=4194816)}}function jd(t,a,i,o,d){return Ii(a),i=id(t,a,i,o,void 0,d),o=sd(),t!==null&&!Tt?(od(t,a,d),kn(t,a,d)):($e&&o&&Uu(a),a.flags|=1,Gt(t,a,i,d),a.child)}function Vf(t,a,i,o,d,m){return Ii(a),a.updateQueue=null,i=Gh(a,o,i,d),$h(t),o=sd(),t!==null&&!Tt?(od(t,a,m),kn(t,a,m)):($e&&o&&Uu(a),a.flags|=1,Gt(t,a,i,m),a.child)}function $f(t,a,i,o,d){if(Ii(a),a.stateNode===null){var m=bs,v=i.contextType;typeof v=="object"&&v!==null&&(m=$t(v)),m=new i(o,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=kd,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=o,m.state=a.memoizedState,m.refs={},Yu(a),v=i.contextType,m.context=typeof v=="object"&&v!==null?$t(v):bs,m.state=a.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(xd(a,i,v,o),m.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(v=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),v!==m.state&&kd.enqueueReplaceState(m,m.state,null),Go(a,o,m,d),$o(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(t===null){m=a.stateNode;var w=a.memoizedProps,N=Qi(i,w);m.props=N;var O=m.context,H=i.contextType;v=bs,typeof H=="object"&&H!==null&&(v=$t(H));var Y=i.getDerivedStateFromProps;H=typeof Y=="function"||typeof m.getSnapshotBeforeUpdate=="function",w=a.pendingProps!==w,H||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w||O!==v)&&zf(a,m,o,v),Zn=!1;var M=a.memoizedState;m.state=M,Go(a,o,m,d),$o(),O=a.memoizedState,w||M!==O||Zn?(typeof Y=="function"&&(xd(a,i,Y,o),O=a.memoizedState),(N=Zn||Cf(a,i,N,o,M,O,v))?(H||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=O),m.props=o,m.state=O,m.context=v,o=N):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{m=a.stateNode,Xu(t,a),v=a.memoizedProps,H=Qi(i,v),m.props=H,Y=a.pendingProps,M=m.context,O=i.contextType,N=bs,typeof O=="object"&&O!==null&&(N=$t(O)),w=i.getDerivedStateFromProps,(O=typeof w=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(v!==Y||M!==N)&&zf(a,m,o,N),Zn=!1,M=a.memoizedState,m.state=M,Go(a,o,m,d),$o();var G=a.memoizedState;v!==Y||M!==G||Zn||t!==null&&t.dependencies!==null&&dl(t.dependencies)?(typeof w=="function"&&(xd(a,i,w,o),G=a.memoizedState),(H=Zn||Cf(a,i,H,o,M,G,N)||t!==null&&t.dependencies!==null&&dl(t.dependencies))?(O||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(o,G,N),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(o,G,N)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=G),m.props=o,m.state=G,m.context=N,o=H):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&M===t.memoizedState||(a.flags|=1024),o=!1)}return m=o,El(t,a),o=(a.flags&128)!==0,m||o?(m=a.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,t!==null&&o?(a.child=Hi(a,t.child,null,d),a.child=Hi(a,null,i,d)):Gt(t,a,i,d),a.memoizedState=m.state,t=a.child):t=kn(t,a,d),t}function Gf(t,a,i,o){return Ui(),a.flags|=256,Gt(t,a,i,o),a.child}var Ad={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nd(t){return{baseLanes:t,cachePool:Th()}}function _d(t,a,i){return t=t!==null?t.childLanes&~i:0,a&&(t|=ja),t}function Hf(t,a,i){var o=a.pendingProps,d=!1,m=(a.flags&128)!==0,v;if((v=m)||(v=t!==null&&t.memoizedState===null?!1:(Nt.current&2)!==0),v&&(d=!0,a.flags&=-129),v=(a.flags&32)!==0,a.flags&=-33,t===null){if($e){if(d?Xn(a):Jn(),(t=ut)?(t=W1(t,qa),t=t!==null&&t.data!=="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:sn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},i=Sh(t),i.return=a,a.child=i,Vt=a,ut=null)):t=null,t===null)throw Kn(a);return cm(t)?a.lanes=32:a.lanes=536870912,null}var w=o.children;return o=o.fallback,d?(Jn(),d=a.mode,w=Dl({mode:"hidden",children:w},d),o=Pi(o,d,i,null),w.return=a,o.return=a,w.sibling=o,a.child=w,o=a.child,o.memoizedState=Nd(i),o.childLanes=_d(t,v,i),a.memoizedState=Ad,Fo(null,o)):(Xn(a),Cd(a,w))}var N=t.memoizedState;if(N!==null&&(w=N.dehydrated,w!==null)){if(m)a.flags&256?(Xn(a),a.flags&=-257,a=zd(t,a,i)):a.memoizedState!==null?(Jn(),a.child=t.child,a.flags|=128,a=null):(Jn(),w=o.fallback,d=a.mode,o=Dl({mode:"visible",children:o.children},d),w=Pi(w,d,i,null),w.flags|=2,o.return=a,w.return=a,o.sibling=w,a.child=o,Hi(a,t.child,null,i),o=a.child,o.memoizedState=Nd(i),o.childLanes=_d(t,v,i),a.memoizedState=Ad,a=Fo(null,o));else if(Xn(a),cm(w)){if(v=w.nextSibling&&w.nextSibling.dataset,v)var O=v.dgst;v=O,o=Error(r(419)),o.stack="",o.digest=v,Mo({value:o,source:null,stack:null}),a=zd(t,a,i)}else if(Tt||ws(t,a,i,!1),v=(i&t.childLanes)!==0,Tt||v){if(v=ot,v!==null&&(o=jo(v,i),o!==0&&o!==N.retryLane))throw N.retryLane=o,Mi(t,o),fa(v,t,o),Sd;lm(w)||Ll(),a=zd(t,a,i)}else lm(w)?(a.flags|=192,a.child=t.child,a=null):(t=N.treeContext,ut=Ma(w.nextSibling),Vt=a,$e=!0,Hn=null,qa=!1,t!==null&&Nh(a,t),a=Cd(a,o.children),a.flags|=4096);return a}return d?(Jn(),w=o.fallback,d=a.mode,N=t.child,O=N.sibling,o=fn(N,{mode:"hidden",children:o.children}),o.subtreeFlags=N.subtreeFlags&65011712,O!==null?w=fn(O,w):(w=Pi(w,d,i,null),w.flags|=2),w.return=a,o.return=a,o.sibling=w,a.child=o,Fo(null,o),o=a.child,w=t.child.memoizedState,w===null?w=Nd(i):(d=w.cachePool,d!==null?(N=Et._currentValue,d=d.parent!==N?{parent:N,pool:N}:d):d=Th(),w={baseLanes:w.baseLanes|i,cachePool:d}),o.memoizedState=w,o.childLanes=_d(t,v,i),a.memoizedState=Ad,Fo(t.child,o)):(Xn(a),i=t.child,t=i.sibling,i=fn(i,{mode:"visible",children:o.children}),i.return=a,i.sibling=null,t!==null&&(v=a.deletions,v===null?(a.deletions=[t],a.flags|=16):v.push(t)),a.child=i,a.memoizedState=null,i)}function Cd(t,a){return a=Dl({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function Dl(t,a){return t=xa(22,t,null,a),t.lanes=0,t}function zd(t,a,i){return Hi(a,t.child,null,i),t=Cd(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function Kf(t,a,i){t.lanes|=a;var o=t.alternate;o!==null&&(o.lanes|=a),Gu(t.return,a,i)}function Ed(t,a,i,o,d,m){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:d,treeForkCount:m}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=o,v.tail=i,v.tailMode=d,v.treeForkCount=m)}function Qf(t,a,i){var o=a.pendingProps,d=o.revealOrder,m=o.tail;o=o.children;var v=Nt.current,w=(v&2)!==0;if(w?(v=v&1|2,a.flags|=128):v&=1,U(Nt,v),Gt(t,a,o,i),o=$e?Bo:0,!w&&t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Kf(t,i,a);else if(t.tag===19)Kf(t,i,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(d){case"forwards":for(i=a.child,d=null;i!==null;)t=i.alternate,t!==null&&vl(t)===null&&(d=i),i=i.sibling;i=d,i===null?(d=a.child,a.child=null):(d=i.sibling,i.sibling=null),Ed(a,!1,d,i,m,o);break;case"backwards":case"unstable_legacy-backwards":for(i=null,d=a.child,a.child=null;d!==null;){if(t=d.alternate,t!==null&&vl(t)===null){a.child=d;break}t=d.sibling,d.sibling=i,i=d,d=t}Ed(a,!0,i,null,m,o);break;case"together":Ed(a,!1,null,null,void 0,o);break;default:a.memoizedState=null}return a.child}function kn(t,a,i){if(t!==null&&(a.dependencies=t.dependencies),ti|=a.lanes,(i&a.childLanes)===0)if(t!==null){if(ws(t,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(r(153));if(a.child!==null){for(t=a.child,i=fn(t,t.pendingProps),a.child=i,i.return=a;t.sibling!==null;)t=t.sibling,i=i.sibling=fn(t,t.pendingProps),i.return=a;i.sibling=null}return a.child}function Dd(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&dl(t)))}function bk(t,a,i){switch(a.tag){case 3:rt(a,a.stateNode.containerInfo),Qn(a,Et,t.memoizedState.cache),Ui();break;case 27:case 5:Ke(a);break;case 4:rt(a,a.stateNode.containerInfo);break;case 10:Qn(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,ad(a),null;break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Xn(a),a.flags|=128,null):(i&a.child.childLanes)!==0?Hf(t,a,i):(Xn(a),t=kn(t,a,i),t!==null?t.sibling:null);Xn(a);break;case 19:var d=(t.flags&128)!==0;if(o=(i&a.childLanes)!==0,o||(ws(t,a,i,!1),o=(i&a.childLanes)!==0),d){if(o)return Qf(t,a,i);a.flags|=128}if(d=a.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),U(Nt,Nt.current),o)break;return null;case 22:return a.lanes=0,Uf(t,a,i,a.pendingProps);case 24:Qn(a,Et,t.memoizedState.cache)}return kn(t,a,i)}function Zf(t,a,i){if(t!==null)if(t.memoizedProps!==a.pendingProps)Tt=!0;else{if(!Dd(t,i)&&(a.flags&128)===0)return Tt=!1,bk(t,a,i);Tt=(t.flags&131072)!==0}else Tt=!1,$e&&(a.flags&1048576)!==0&&Ah(a,Bo,a.index);switch(a.lanes=0,a.tag){case 16:e:{var o=a.pendingProps;if(t=$i(a.elementType),a.type=t,typeof t=="function")Bu(t)?(o=Qi(t,o),a.tag=1,a=$f(null,a,t,o,i)):(a.tag=0,a=jd(null,a,t,o,i));else{if(t!=null){var d=t.$$typeof;if(d===ee){a.tag=11,a=Bf(null,a,t,o,i);break e}else if(d===q){a.tag=14,a=Mf(null,a,t,o,i);break e}}throw a=at(t)||t,Error(r(306,a,""))}}return a;case 0:return jd(t,a,a.type,a.pendingProps,i);case 1:return o=a.type,d=Qi(o,a.pendingProps),$f(t,a,o,d,i);case 3:e:{if(rt(a,a.stateNode.containerInfo),t===null)throw Error(r(387));o=a.pendingProps;var m=a.memoizedState;d=m.element,Xu(t,a),Go(a,o,null,i);var v=a.memoizedState;if(o=v.cache,Qn(a,Et,o),o!==m.cache&&Hu(a,[Et],i,!0),$o(),o=v.element,m.isDehydrated)if(m={element:o,isDehydrated:!1,cache:v.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=Gf(t,a,o,i);break e}else if(o!==d){d=Ta(Error(r(424)),a),Mo(d),a=Gf(t,a,o,i);break e}else for(t=a.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,ut=Ma(t.firstChild),Vt=a,$e=!0,Hn=null,qa=!0,i=Ph(a,null,o,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ui(),o===d){a=kn(t,a,i);break e}Gt(t,a,o,i)}a=a.child}return a;case 26:return El(t,a),t===null?(i=sg(a.type,null,a.pendingProps,null))?a.memoizedState=i:$e||(i=a.type,t=a.pendingProps,o=Ql(se.current).createElement(i),o[ht]=a,o[wt]=t,Ht(o,i,t),Ct(o),a.stateNode=o):a.memoizedState=sg(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return Ke(a),t===null&&$e&&(o=a.stateNode=ag(a.type,a.pendingProps,se.current),Vt=a,qa=!0,d=ut,oi(a.type)?(um=d,ut=Ma(o.firstChild)):ut=d),Gt(t,a,a.pendingProps.children,i),El(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&$e&&((d=o=ut)&&(o=Zk(o,a.type,a.pendingProps,qa),o!==null?(a.stateNode=o,Vt=a,ut=Ma(o.firstChild),qa=!1,d=!0):d=!1),d||Kn(a)),Ke(a),d=a.type,m=a.pendingProps,v=t!==null?t.memoizedProps:null,o=m.children,sm(d,m)?o=null:v!==null&&sm(d,v)&&(a.flags|=32),a.memoizedState!==null&&(d=id(t,a,ck,null,null,i),ur._currentValue=d),El(t,a),Gt(t,a,o,i),a.child;case 6:return t===null&&$e&&((t=i=ut)&&(i=Fk(i,a.pendingProps,qa),i!==null?(a.stateNode=i,Vt=a,ut=null,t=!0):t=!1),t||Kn(a)),null;case 13:return Hf(t,a,i);case 4:return rt(a,a.stateNode.containerInfo),o=a.pendingProps,t===null?a.child=Hi(a,null,o,i):Gt(t,a,o,i),a.child;case 11:return Bf(t,a,a.type,a.pendingProps,i);case 7:return Gt(t,a,a.pendingProps,i),a.child;case 8:return Gt(t,a,a.pendingProps.children,i),a.child;case 12:return Gt(t,a,a.pendingProps.children,i),a.child;case 10:return o=a.pendingProps,Qn(a,a.type,o.value),Gt(t,a,o.children,i),a.child;case 9:return d=a.type._context,o=a.pendingProps.children,Ii(a),d=$t(d),o=o(d),a.flags|=1,Gt(t,a,o,i),a.child;case 14:return Mf(t,a,a.type,a.pendingProps,i);case 15:return Pf(t,a,a.type,a.pendingProps,i);case 19:return Qf(t,a,i);case 31:return yk(t,a,i);case 22:return Uf(t,a,i,a.pendingProps);case 24:return Ii(a),o=$t(Et),t===null?(d=Zu(),d===null&&(d=ot,m=Ku(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=i),d=m),a.memoizedState={parent:o,cache:d},Yu(a),Qn(a,Et,d)):((t.lanes&i)!==0&&(Xu(t,a),Go(a,null,null,i),$o()),d=t.memoizedState,m=a.memoizedState,d.parent!==o?(d={parent:o,cache:o},a.memoizedState=d,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=d),Qn(a,Et,o)):(o=m.cache,Qn(a,Et,o),o!==d.cache&&Hu(a,[Et],i,!0))),Gt(t,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function wn(t){t.flags|=4}function Td(t,a,i,o,d){if((a=(t.mode&32)!==0)&&(a=!1),a){if(t.flags|=16777216,(d&335544128)===d)if(t.stateNode.complete)t.flags|=8192;else if(k1())t.flags|=8192;else throw Gi=fl,Fu}else t.flags&=-16777217}function Ff(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!ug(a))if(k1())t.flags|=8192;else throw Gi=fl,Fu}function Tl(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?an():536870912,t.lanes|=a,Os|=a)}function Yo(t,a){if(!$e)switch(t.tailMode){case"hidden":a=t.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function dt(t){var a=t.alternate!==null&&t.alternate.child===t.child,i=0,o=0;if(a)for(var d=t.child;d!==null;)i|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)i|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=o,t.childLanes=i,a}function vk(t,a,i){var o=a.pendingProps;switch(Lu(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(a),null;case 1:return dt(a),null;case 3:return i=a.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),bn(Et),Ne(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(ks(a)?wn(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Vu())),dt(a),null;case 26:var d=a.type,m=a.memoizedState;return t===null?(wn(a),m!==null?(dt(a),Ff(a,m)):(dt(a),Td(a,d,null,o,i))):m?m!==t.memoizedState?(wn(a),dt(a),Ff(a,m)):(dt(a),a.flags&=-16777217):(t=t.memoizedProps,t!==o&&wn(a),dt(a),Td(a,d,t,o,i)),null;case 27:if(Ye(a),i=se.current,d=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==o&&wn(a);else{if(!o){if(a.stateNode===null)throw Error(r(166));return dt(a),null}t=K.current,ks(a)?_h(a):(t=ag(d,o,i),a.stateNode=t,wn(a))}return dt(a),null;case 5:if(Ye(a),d=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==o&&wn(a);else{if(!o){if(a.stateNode===null)throw Error(r(166));return dt(a),null}if(m=K.current,ks(a))_h(a);else{var v=Ql(se.current);switch(m){case 1:m=v.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:m=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":m=v.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":m=v.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":m=v.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof o.is=="string"?v.createElement("select",{is:o.is}):v.createElement("select"),o.multiple?m.multiple=!0:o.size&&(m.size=o.size);break;default:m=typeof o.is=="string"?v.createElement(d,{is:o.is}):v.createElement(d)}}m[ht]=a,m[wt]=o;e:for(v=a.child;v!==null;){if(v.tag===5||v.tag===6)m.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===a)break e;for(;v.sibling===null;){if(v.return===null||v.return===a)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}a.stateNode=m;e:switch(Ht(m,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&wn(a)}}return dt(a),Td(a,a.type,t===null?null:t.memoizedProps,a.pendingProps,i),null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==o&&wn(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(r(166));if(t=se.current,ks(a)){if(t=a.stateNode,i=a.memoizedProps,o=null,d=Vt,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}t[ht]=a,t=!!(t.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||H1(t.nodeValue,i)),t||Kn(a,!0)}else t=Ql(t).createTextNode(o),t[ht]=a,a.stateNode=t}return dt(a),null;case 31:if(i=a.memoizedState,t===null||t.memoizedState!==null){if(o=ks(a),i!==null){if(t===null){if(!o)throw Error(r(318));if(t=a.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ht]=a}else Ui(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;dt(a),t=!1}else i=Vu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return a.flags&256?(wa(a),a):(wa(a),null);if((a.flags&128)!==0)throw Error(r(558))}return dt(a),null;case 13:if(o=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=ks(a),o!==null&&o.dehydrated!==null){if(t===null){if(!d)throw Error(r(318));if(d=a.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[ht]=a}else Ui(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;dt(a),d=!1}else d=Vu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return a.flags&256?(wa(a),a):(wa(a),null)}return wa(a),(a.flags&128)!==0?(a.lanes=i,a):(i=o!==null,t=t!==null&&t.memoizedState!==null,i&&(o=a.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==d&&(o.flags|=2048)),i!==t&&i&&(a.child.flags|=8192),Tl(a,a.updateQueue),dt(a),null);case 4:return Ne(),t===null&&em(a.stateNode.containerInfo),dt(a),null;case 10:return bn(a.type),dt(a),null;case 19:if(J(Nt),o=a.memoizedState,o===null)return dt(a),null;if(d=(a.flags&128)!==0,m=o.rendering,m===null)if(d)Yo(o,!1);else{if(jt!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(m=vl(t),m!==null){for(a.flags|=128,Yo(o,!1),t=m.updateQueue,a.updateQueue=t,Tl(a,t),a.subtreeFlags=0,t=i,i=a.child;i!==null;)wh(i,t),i=i.sibling;return U(Nt,Nt.current&1|2),$e&&gn(a,o.treeForkCount),a.child}t=t.sibling}o.tail!==null&&Kt()>Ml&&(a.flags|=128,d=!0,Yo(o,!1),a.lanes=4194304)}else{if(!d)if(t=vl(m),t!==null){if(a.flags|=128,d=!0,t=t.updateQueue,a.updateQueue=t,Tl(a,t),Yo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!m.alternate&&!$e)return dt(a),null}else 2*Kt()-o.renderingStartTime>Ml&&i!==536870912&&(a.flags|=128,d=!0,Yo(o,!1),a.lanes=4194304);o.isBackwards?(m.sibling=a.child,a.child=m):(t=o.last,t!==null?t.sibling=m:a.child=m,o.last=m)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Kt(),t.sibling=null,i=Nt.current,U(Nt,d?i&1|2:i&1),$e&&gn(a,o.treeForkCount),t):(dt(a),null);case 22:case 23:return wa(a),td(),o=a.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(i&536870912)!==0&&(a.flags&128)===0&&(dt(a),a.subtreeFlags&6&&(a.flags|=8192)):dt(a),i=a.updateQueue,i!==null&&Tl(a,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048),t!==null&&J(Vi),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),bn(Et),dt(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function xk(t,a){switch(Lu(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return bn(Et),Ne(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return Ye(a),null;case 31:if(a.memoizedState!==null){if(wa(a),a.alternate===null)throw Error(r(340));Ui()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 13:if(wa(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Ui()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return J(Nt),null;case 4:return Ne(),null;case 10:return bn(a.type),null;case 22:case 23:return wa(a),td(),t!==null&&J(Vi),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return bn(Et),null;case 25:return null;default:return null}}function Yf(t,a){switch(Lu(a),a.tag){case 3:bn(Et),Ne();break;case 26:case 27:case 5:Ye(a);break;case 4:Ne();break;case 31:a.memoizedState!==null&&wa(a);break;case 13:wa(a);break;case 19:J(Nt);break;case 10:bn(a.type);break;case 22:case 23:wa(a),td(),t!==null&&J(Vi);break;case 24:bn(Et)}}function Xo(t,a){try{var i=a.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var d=o.next;i=d;do{if((i.tag&t)===t){o=void 0;var m=i.create,v=i.inst;o=m(),v.destroy=o}i=i.next}while(i!==d)}}catch(w){tt(a,a.return,w)}}function Wn(t,a,i){try{var o=a.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var m=d.next;o=m;do{if((o.tag&t)===t){var v=o.inst,w=v.destroy;if(w!==void 0){v.destroy=void 0,d=a;var N=i,O=w;try{O()}catch(H){tt(d,N,H)}}}o=o.next}while(o!==m)}}catch(H){tt(a,a.return,H)}}function Xf(t){var a=t.updateQueue;if(a!==null){var i=t.stateNode;try{Lh(a,i)}catch(o){tt(t,t.return,o)}}}function Jf(t,a,i){i.props=Qi(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(o){tt(t,a,o)}}function Jo(t,a){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof i=="function"?t.refCleanup=i(o):i.current=o}}catch(d){tt(t,a,d)}}function rn(t,a){var i=t.ref,o=t.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(d){tt(t,a,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(d){tt(t,a,d)}else i.current=null}function Wf(t){var a=t.type,i=t.memoizedProps,o=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(d){tt(t,t.return,d)}}function Rd(t,a,i){try{var o=t.stateNode;Vk(o,t.type,i,a),o[wt]=a}catch(d){tt(t,t.return,d)}}function e1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&oi(t.type)||t.tag===4}function Od(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||e1(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&oi(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function qd(t,a,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(t),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=pn));else if(o!==4&&(o===27&&oi(t.type)&&(i=t.stateNode,a=null),t=t.child,t!==null))for(qd(t,a,i),t=t.sibling;t!==null;)qd(t,a,i),t=t.sibling}function Rl(t,a,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,a?i.insertBefore(t,a):i.appendChild(t);else if(o!==4&&(o===27&&oi(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Rl(t,a,i),t=t.sibling;t!==null;)Rl(t,a,i),t=t.sibling}function t1(t){var a=t.stateNode,i=t.memoizedProps;try{for(var o=t.type,d=a.attributes;d.length;)a.removeAttributeNode(d[0]);Ht(a,o,i),a[ht]=t,a[wt]=i}catch(m){tt(t,t.return,m)}}var Sn=!1,Rt=!1,Bd=!1,a1=typeof WeakSet=="function"?WeakSet:Set,Lt=null;function kk(t,a){if(t=t.containerInfo,nm=ec,t=ph(t),zu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var d=o.anchorOffset,m=o.focusNode;o=o.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var v=0,w=-1,N=-1,O=0,H=0,Y=t,M=null;t:for(;;){for(var G;Y!==i||d!==0&&Y.nodeType!==3||(w=v+d),Y!==m||o!==0&&Y.nodeType!==3||(N=v+o),Y.nodeType===3&&(v+=Y.nodeValue.length),(G=Y.firstChild)!==null;)M=Y,Y=G;for(;;){if(Y===t)break t;if(M===i&&++O===d&&(w=v),M===m&&++H===o&&(N=v),(G=Y.nextSibling)!==null)break;Y=M,M=Y.parentNode}Y=G}i=w===-1||N===-1?null:{start:w,end:N}}else i=null}i=i||{start:0,end:0}}else i=null;for(im={focusedElem:t,selectionRange:i},ec=!1,Lt=a;Lt!==null;)if(a=Lt,t=a.child,(a.subtreeFlags&1028)!==0&&t!==null)t.return=a,Lt=t;else for(;Lt!==null;){switch(a=Lt,m=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(t=a.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)d=t[i],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=a,d=m.memoizedProps,m=m.memoizedState,o=i.stateNode;try{var fe=Qi(i.type,d);t=o.getSnapshotBeforeUpdate(fe,m),o.__reactInternalSnapshotBeforeUpdate=t}catch(ze){tt(i,i.return,ze)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,i=t.nodeType,i===9)rm(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":rm(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=a.sibling,t!==null){t.return=a.return,Lt=t;break}Lt=a.return}}function n1(t,a,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:An(t,i),o&4&&Xo(5,i);break;case 1:if(An(t,i),o&4)if(t=i.stateNode,a===null)try{t.componentDidMount()}catch(v){tt(i,i.return,v)}else{var d=Qi(i.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(d,a,t.__reactInternalSnapshotBeforeUpdate)}catch(v){tt(i,i.return,v)}}o&64&&Xf(i),o&512&&Jo(i,i.return);break;case 3:if(An(t,i),o&64&&(t=i.updateQueue,t!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{Lh(t,a)}catch(v){tt(i,i.return,v)}}break;case 27:a===null&&o&4&&t1(i);case 26:case 5:An(t,i),a===null&&o&4&&Wf(i),o&512&&Jo(i,i.return);break;case 12:An(t,i);break;case 31:An(t,i),o&4&&o1(t,i);break;case 13:An(t,i),o&4&&r1(t,i),o&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=Ek.bind(null,i),Yk(t,i))));break;case 22:if(o=i.memoizedState!==null||Sn,!o){a=a!==null&&a.memoizedState!==null||Rt,d=Sn;var m=Rt;Sn=o,(Rt=a)&&!m?Nn(t,i,(i.subtreeFlags&8772)!==0):An(t,i),Sn=d,Rt=m}break;case 30:break;default:An(t,i)}}function i1(t){var a=t.alternate;a!==null&&(t.alternate=null,i1(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&ls(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ft=null,da=!1;function jn(t,a,i){for(i=i.child;i!==null;)s1(t,a,i),i=i.sibling}function s1(t,a,i){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Ci,i)}catch{}switch(i.tag){case 26:Rt||rn(i,a),jn(t,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Rt||rn(i,a);var o=ft,d=da;oi(i.type)&&(ft=i.stateNode,da=!1),jn(t,a,i),rr(i.stateNode),ft=o,da=d;break;case 5:Rt||rn(i,a);case 6:if(o=ft,d=da,ft=null,jn(t,a,i),ft=o,da=d,ft!==null)if(da)try{(ft.nodeType===9?ft.body:ft.nodeName==="HTML"?ft.ownerDocument.body:ft).removeChild(i.stateNode)}catch(m){tt(i,a,m)}else try{ft.removeChild(i.stateNode)}catch(m){tt(i,a,m)}break;case 18:ft!==null&&(da?(t=ft,X1(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Vs(t)):X1(ft,i.stateNode));break;case 4:o=ft,d=da,ft=i.stateNode.containerInfo,da=!0,jn(t,a,i),ft=o,da=d;break;case 0:case 11:case 14:case 15:Wn(2,i,a),Rt||Wn(4,i,a),jn(t,a,i);break;case 1:Rt||(rn(i,a),o=i.stateNode,typeof o.componentWillUnmount=="function"&&Jf(i,a,o)),jn(t,a,i);break;case 21:jn(t,a,i);break;case 22:Rt=(o=Rt)||i.memoizedState!==null,jn(t,a,i),Rt=o;break;default:jn(t,a,i)}}function o1(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Vs(t)}catch(i){tt(a,a.return,i)}}}function r1(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Vs(t)}catch(i){tt(a,a.return,i)}}function wk(t){switch(t.tag){case 31:case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new a1),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new a1),a;default:throw Error(r(435,t.tag))}}function Ol(t,a){var i=wk(t);a.forEach(function(o){if(!i.has(o)){i.add(o);var d=Dk.bind(null,t,o);o.then(d,d)}})}function ma(t,a){var i=a.deletions;if(i!==null)for(var o=0;o<i.length;o++){var d=i[o],m=t,v=a,w=v;e:for(;w!==null;){switch(w.tag){case 27:if(oi(w.type)){ft=w.stateNode,da=!1;break e}break;case 5:ft=w.stateNode,da=!1;break e;case 3:case 4:ft=w.stateNode.containerInfo,da=!0;break e}w=w.return}if(ft===null)throw Error(r(160));s1(m,v,d),ft=null,da=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)l1(a,t),a=a.sibling}var Za=null;function l1(t,a){var i=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ma(a,t),pa(t),o&4&&(Wn(3,t,t.return),Xo(3,t),Wn(5,t,t.return));break;case 1:ma(a,t),pa(t),o&512&&(Rt||i===null||rn(i,i.return)),o&64&&Sn&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var d=Za;if(ma(a,t),pa(t),o&512&&(Rt||i===null||rn(i,i.return)),o&4){var m=i!==null?i.memoizedState:null;if(o=t.memoizedState,i===null)if(o===null)if(t.stateNode===null){e:{o=t.type,i=t.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":m=d.getElementsByTagName("title")[0],(!m||m[Ti]||m[ht]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(o),d.head.insertBefore(m,d.querySelector("head > title"))),Ht(m,o,i),m[ht]=t,Ct(m),o=m;break e;case"link":var v=lg("link","href",d).get(o+(i.href||""));if(v){for(var w=0;w<v.length;w++)if(m=v[w],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){v.splice(w,1);break t}}m=d.createElement(o),Ht(m,o,i),d.head.appendChild(m);break;case"meta":if(v=lg("meta","content",d).get(o+(i.content||""))){for(w=0;w<v.length;w++)if(m=v[w],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){v.splice(w,1);break t}}m=d.createElement(o),Ht(m,o,i),d.head.appendChild(m);break;default:throw Error(r(468,o))}m[ht]=t,Ct(m),o=m}t.stateNode=o}else cg(d,t.type,t.stateNode);else t.stateNode=rg(d,o,t.memoizedProps);else m!==o?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,o===null?cg(d,t.type,t.stateNode):rg(d,o,t.memoizedProps)):o===null&&t.stateNode!==null&&Rd(t,t.memoizedProps,i.memoizedProps)}break;case 27:ma(a,t),pa(t),o&512&&(Rt||i===null||rn(i,i.return)),i!==null&&o&4&&Rd(t,t.memoizedProps,i.memoizedProps);break;case 5:if(ma(a,t),pa(t),o&512&&(Rt||i===null||rn(i,i.return)),t.flags&32){d=t.stateNode;try{ds(d,"")}catch(fe){tt(t,t.return,fe)}}o&4&&t.stateNode!=null&&(d=t.memoizedProps,Rd(t,d,i!==null?i.memoizedProps:d)),o&1024&&(Bd=!0);break;case 6:if(ma(a,t),pa(t),o&4){if(t.stateNode===null)throw Error(r(162));o=t.memoizedProps,i=t.stateNode;try{i.nodeValue=o}catch(fe){tt(t,t.return,fe)}}break;case 3:if(Yl=null,d=Za,Za=Zl(a.containerInfo),ma(a,t),Za=d,pa(t),o&4&&i!==null&&i.memoizedState.isDehydrated)try{Vs(a.containerInfo)}catch(fe){tt(t,t.return,fe)}Bd&&(Bd=!1,c1(t));break;case 4:o=Za,Za=Zl(t.stateNode.containerInfo),ma(a,t),pa(t),Za=o;break;case 12:ma(a,t),pa(t);break;case 31:ma(a,t),pa(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Ol(t,o)));break;case 13:ma(a,t),pa(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Bl=Kt()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Ol(t,o)));break;case 22:d=t.memoizedState!==null;var N=i!==null&&i.memoizedState!==null,O=Sn,H=Rt;if(Sn=O||d,Rt=H||N,ma(a,t),Rt=H,Sn=O,pa(t),o&8192)e:for(a=t.stateNode,a._visibility=d?a._visibility&-2:a._visibility|1,d&&(i===null||N||Sn||Rt||Zi(t)),i=null,a=t;;){if(a.tag===5||a.tag===26){if(i===null){N=i=a;try{if(m=N.stateNode,d)v=m.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{w=N.stateNode;var Y=N.memoizedProps.style,M=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;w.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(fe){tt(N,N.return,fe)}}}else if(a.tag===6){if(i===null){N=a;try{N.stateNode.nodeValue=d?"":N.memoizedProps}catch(fe){tt(N,N.return,fe)}}}else if(a.tag===18){if(i===null){N=a;try{var G=N.stateNode;d?J1(G,!0):J1(N.stateNode,!1)}catch(fe){tt(N,N.return,fe)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=t.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Ol(t,i))));break;case 19:ma(a,t),pa(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Ol(t,o)));break;case 30:break;case 21:break;default:ma(a,t),pa(t)}}function pa(t){var a=t.flags;if(a&2){try{for(var i,o=t.return;o!==null;){if(e1(o)){i=o;break}o=o.return}if(i==null)throw Error(r(160));switch(i.tag){case 27:var d=i.stateNode,m=Od(t);Rl(t,m,d);break;case 5:var v=i.stateNode;i.flags&32&&(ds(v,""),i.flags&=-33);var w=Od(t);Rl(t,w,v);break;case 3:case 4:var N=i.stateNode.containerInfo,O=Od(t);qd(t,O,N);break;default:throw Error(r(161))}}catch(H){tt(t,t.return,H)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function c1(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;c1(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function An(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)n1(t,a.alternate,a),a=a.sibling}function Zi(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Wn(4,a,a.return),Zi(a);break;case 1:rn(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&Jf(a,a.return,i),Zi(a);break;case 27:rr(a.stateNode);case 26:case 5:rn(a,a.return),Zi(a);break;case 22:a.memoizedState===null&&Zi(a);break;case 30:Zi(a);break;default:Zi(a)}t=t.sibling}}function Nn(t,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,d=t,m=a,v=m.flags;switch(m.tag){case 0:case 11:case 15:Nn(d,m,i),Xo(4,m);break;case 1:if(Nn(d,m,i),o=m,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(O){tt(o,o.return,O)}if(o=m,d=o.updateQueue,d!==null){var w=o.stateNode;try{var N=d.shared.hiddenCallbacks;if(N!==null)for(d.shared.hiddenCallbacks=null,d=0;d<N.length;d++)Uh(N[d],w)}catch(O){tt(o,o.return,O)}}i&&v&64&&Xf(m),Jo(m,m.return);break;case 27:t1(m);case 26:case 5:Nn(d,m,i),i&&o===null&&v&4&&Wf(m),Jo(m,m.return);break;case 12:Nn(d,m,i);break;case 31:Nn(d,m,i),i&&v&4&&o1(d,m);break;case 13:Nn(d,m,i),i&&v&4&&r1(d,m);break;case 22:m.memoizedState===null&&Nn(d,m,i),Jo(m,m.return);break;case 30:break;default:Nn(d,m,i)}a=a.sibling}}function Md(t,a){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Po(i))}function Pd(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Po(t))}function Fa(t,a,i,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)u1(t,a,i,o),a=a.sibling}function u1(t,a,i,o){var d=a.flags;switch(a.tag){case 0:case 11:case 15:Fa(t,a,i,o),d&2048&&Xo(9,a);break;case 1:Fa(t,a,i,o);break;case 3:Fa(t,a,i,o),d&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Po(t)));break;case 12:if(d&2048){Fa(t,a,i,o),t=a.stateNode;try{var m=a.memoizedProps,v=m.id,w=m.onPostCommit;typeof w=="function"&&w(v,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(N){tt(a,a.return,N)}}else Fa(t,a,i,o);break;case 31:Fa(t,a,i,o);break;case 13:Fa(t,a,i,o);break;case 23:break;case 22:m=a.stateNode,v=a.alternate,a.memoizedState!==null?m._visibility&2?Fa(t,a,i,o):Wo(t,a):m._visibility&2?Fa(t,a,i,o):(m._visibility|=2,Ds(t,a,i,o,(a.subtreeFlags&10256)!==0||!1)),d&2048&&Md(v,a);break;case 24:Fa(t,a,i,o),d&2048&&Pd(a.alternate,a);break;default:Fa(t,a,i,o)}}function Ds(t,a,i,o,d){for(d=d&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var m=t,v=a,w=i,N=o,O=v.flags;switch(v.tag){case 0:case 11:case 15:Ds(m,v,w,N,d),Xo(8,v);break;case 23:break;case 22:var H=v.stateNode;v.memoizedState!==null?H._visibility&2?Ds(m,v,w,N,d):Wo(m,v):(H._visibility|=2,Ds(m,v,w,N,d)),d&&O&2048&&Md(v.alternate,v);break;case 24:Ds(m,v,w,N,d),d&&O&2048&&Pd(v.alternate,v);break;default:Ds(m,v,w,N,d)}a=a.sibling}}function Wo(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=t,o=a,d=o.flags;switch(o.tag){case 22:Wo(i,o),d&2048&&Md(o.alternate,o);break;case 24:Wo(i,o),d&2048&&Pd(o.alternate,o);break;default:Wo(i,o)}a=a.sibling}}var er=8192;function Ts(t,a,i){if(t.subtreeFlags&er)for(t=t.child;t!==null;)d1(t,a,i),t=t.sibling}function d1(t,a,i){switch(t.tag){case 26:Ts(t,a,i),t.flags&er&&t.memoizedState!==null&&lw(i,Za,t.memoizedState,t.memoizedProps);break;case 5:Ts(t,a,i);break;case 3:case 4:var o=Za;Za=Zl(t.stateNode.containerInfo),Ts(t,a,i),Za=o;break;case 22:t.memoizedState===null&&(o=t.alternate,o!==null&&o.memoizedState!==null?(o=er,er=16777216,Ts(t,a,i),er=o):Ts(t,a,i));break;default:Ts(t,a,i)}}function m1(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function tr(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];Lt=o,h1(o,t)}m1(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)p1(t),t=t.sibling}function p1(t){switch(t.tag){case 0:case 11:case 15:tr(t),t.flags&2048&&Wn(9,t,t.return);break;case 3:tr(t);break;case 12:tr(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,ql(t)):tr(t);break;default:tr(t)}}function ql(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];Lt=o,h1(o,t)}m1(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Wn(8,a,a.return),ql(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,ql(a));break;default:ql(a)}t=t.sibling}}function h1(t,a){for(;Lt!==null;){var i=Lt;switch(i.tag){case 0:case 11:case 15:Wn(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Po(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,Lt=o;else e:for(i=t;Lt!==null;){o=Lt;var d=o.sibling,m=o.return;if(i1(o),o===i){Lt=null;break e}if(d!==null){d.return=m,Lt=d;break e}Lt=m}}}var Sk={getCacheForType:function(t){var a=$t(Et),i=a.data.get(t);return i===void 0&&(i=t(),a.data.set(t,i)),i},cacheSignal:function(){return $t(Et).controller.signal}},jk=typeof WeakMap=="function"?WeakMap:Map,Xe=0,ot=null,Ue=null,Ie=0,et=0,Sa=null,ei=!1,Rs=!1,Ud=!1,_n=0,jt=0,ti=0,Fi=0,Ld=0,ja=0,Os=0,ar=null,ha=null,Id=!1,Bl=0,f1=0,Ml=1/0,Pl=null,ai=null,qt=0,ni=null,qs=null,Cn=0,Vd=0,$d=null,g1=null,nr=0,Gd=null;function Aa(){return(Xe&2)!==0&&Ie!==0?Ie&-Ie:I.T!==null?Yd():mn()}function y1(){if(ja===0)if((Ie&536870912)===0||$e){var t=zi;zi<<=1,(zi&3932160)===0&&(zi=262144),ja=t}else ja=536870912;return t=ka.current,t!==null&&(t.flags|=32),ja}function fa(t,a,i){(t===ot&&(et===2||et===9)||t.cancelPendingCommit!==null)&&(Bs(t,0),ii(t,Ie,ja,!1)),Un(t,i),((Xe&2)===0||t!==ot)&&(t===ot&&((Xe&2)===0&&(Fi|=i),jt===4&&ii(t,Ie,ja,!1)),ln(t))}function b1(t,a,i){if((Xe&6)!==0)throw Error(r(327));var o=!i&&(a&127)===0&&(a&t.expiredLanes)===0||Ei(t,a),d=o?_k(t,a):Kd(t,a,!0),m=o;do{if(d===0){Rs&&!o&&ii(t,a,0,!1);break}else{if(i=t.current.alternate,m&&!Ak(i)){d=Kd(t,a,!1),m=!1;continue}if(d===2){if(m=a,t.errorRecoveryDisabledLanes&m)var v=0;else v=t.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){a=v;e:{var w=t;d=ar;var N=w.current.memoizedState.isDehydrated;if(N&&(Bs(w,v).flags|=256),v=Kd(w,v,!1),v!==2){if(Ud&&!N){w.errorRecoveryDisabledLanes|=m,Fi|=m,d=4;break e}m=ha,ha=d,m!==null&&(ha===null?ha=m:ha.push.apply(ha,m))}d=v}if(m=!1,d!==2)continue}}if(d===1){Bs(t,0),ii(t,a,0,!0);break}e:{switch(o=t,m=d,m){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:ii(o,a,ja,!ei);break e;case 2:ha=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(d=Bl+300-Kt(),10<d)){if(ii(o,a,ja,!ei),Pn(o,0,!0)!==0)break e;Cn=a,o.timeoutHandle=F1(v1.bind(null,o,i,ha,Pl,Id,a,ja,Fi,Os,ei,m,"Throttled",-0,0),d);break e}v1(o,i,ha,Pl,Id,a,ja,Fi,Os,ei,m,null,-0,0)}}break}while(!0);ln(t)}function v1(t,a,i,o,d,m,v,w,N,O,H,Y,M,G){if(t.timeoutHandle=-1,Y=a.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pn},d1(a,m,Y);var fe=(m&62914560)===m?Bl-Kt():(m&4194048)===m?f1-Kt():0;if(fe=cw(Y,fe),fe!==null){Cn=m,t.cancelPendingCommit=fe(_1.bind(null,t,a,m,i,o,d,v,w,N,H,Y,null,M,G)),ii(t,m,v,!O);return}}_1(t,a,m,i,o,d,v,w,N)}function Ak(t){for(var a=t;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var d=i[o],m=d.getSnapshot;d=d.value;try{if(!va(m(),d))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ii(t,a,i,o){a&=~Ld,a&=~Fi,t.suspendedLanes|=a,t.pingedLanes&=~a,o&&(t.warmLanes|=a),o=t.expirationTimes;for(var d=a;0<d;){var m=31-Zt(d),v=1<<m;o[m]=-1,d&=~v}i!==0&&wo(t,i,a)}function Ul(){return(Xe&6)===0?(ir(0),!1):!0}function Hd(){if(Ue!==null){if(et===0)var t=Ue.return;else t=Ue,yn=Li=null,rd(t),Ns=null,Lo=0,t=Ue;for(;t!==null;)Yf(t.alternate,t),t=t.return;Ue=null}}function Bs(t,a){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,Hk(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Cn=0,Hd(),ot=t,Ue=i=fn(t.current,null),Ie=a,et=0,Sa=null,ei=!1,Rs=Ei(t,a),Ud=!1,Os=ja=Ld=Fi=ti=jt=0,ha=ar=null,Id=!1,(a&8)!==0&&(a|=a&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=a;0<o;){var d=31-Zt(o),m=1<<d;a|=t[d],o&=~m}return _n=a,ol(),i}function x1(t,a){Oe=null,I.H=Zo,a===As||a===hl?(a=qh(),et=3):a===Fu?(a=qh(),et=4):et=a===Sd?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Sa=a,Ue===null&&(jt=1,Cl(t,Ta(a,t.current)))}function k1(){var t=ka.current;return t===null?!0:(Ie&4194048)===Ie?Ba===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?t===Ba:!1}function w1(){var t=I.H;return I.H=Zo,t===null?Zo:t}function S1(){var t=I.A;return I.A=Sk,t}function Ll(){jt=4,ei||(Ie&4194048)!==Ie&&ka.current!==null||(Rs=!0),(ti&134217727)===0&&(Fi&134217727)===0||ot===null||ii(ot,Ie,ja,!1)}function Kd(t,a,i){var o=Xe;Xe|=2;var d=w1(),m=S1();(ot!==t||Ie!==a)&&(Pl=null,Bs(t,a)),a=!1;var v=jt;e:do try{if(et!==0&&Ue!==null){var w=Ue,N=Sa;switch(et){case 8:Hd(),v=6;break e;case 3:case 2:case 9:case 6:ka.current===null&&(a=!0);var O=et;if(et=0,Sa=null,Ms(t,w,N,O),i&&Rs){v=0;break e}break;default:O=et,et=0,Sa=null,Ms(t,w,N,O)}}Nk(),v=jt;break}catch(H){x1(t,H)}while(!0);return a&&t.shellSuspendCounter++,yn=Li=null,Xe=o,I.H=d,I.A=m,Ue===null&&(ot=null,Ie=0,ol()),v}function Nk(){for(;Ue!==null;)j1(Ue)}function _k(t,a){var i=Xe;Xe|=2;var o=w1(),d=S1();ot!==t||Ie!==a?(Pl=null,Ml=Kt()+500,Bs(t,a)):Rs=Ei(t,a);e:do try{if(et!==0&&Ue!==null){a=Ue;var m=Sa;t:switch(et){case 1:et=0,Sa=null,Ms(t,a,m,1);break;case 2:case 9:if(Rh(m)){et=0,Sa=null,A1(a);break}a=function(){et!==2&&et!==9||ot!==t||(et=7),ln(t)},m.then(a,a);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:Rh(m)?(et=0,Sa=null,A1(a)):(et=0,Sa=null,Ms(t,a,m,7));break;case 5:var v=null;switch(Ue.tag){case 26:v=Ue.memoizedState;case 5:case 27:var w=Ue;if(v?ug(v):w.stateNode.complete){et=0,Sa=null;var N=w.sibling;if(N!==null)Ue=N;else{var O=w.return;O!==null?(Ue=O,Il(O)):Ue=null}break t}}et=0,Sa=null,Ms(t,a,m,5);break;case 6:et=0,Sa=null,Ms(t,a,m,6);break;case 8:Hd(),jt=6;break e;default:throw Error(r(462))}}Ck();break}catch(H){x1(t,H)}while(!0);return yn=Li=null,I.H=o,I.A=d,Xe=i,Ue!==null?0:(ot=null,Ie=0,ol(),jt)}function Ck(){for(;Ue!==null&&!Bn();)j1(Ue)}function j1(t){var a=Zf(t.alternate,t,_n);t.memoizedProps=t.pendingProps,a===null?Il(t):Ue=a}function A1(t){var a=t,i=a.alternate;switch(a.tag){case 15:case 0:a=Vf(i,a,a.pendingProps,a.type,void 0,Ie);break;case 11:a=Vf(i,a,a.pendingProps,a.type.render,a.ref,Ie);break;case 5:rd(a);default:Yf(i,a),a=Ue=wh(a,_n),a=Zf(i,a,_n)}t.memoizedProps=t.pendingProps,a===null?Il(t):Ue=a}function Ms(t,a,i,o){yn=Li=null,rd(a),Ns=null,Lo=0;var d=a.return;try{if(gk(t,d,a,i,Ie)){jt=1,Cl(t,Ta(i,t.current)),Ue=null;return}}catch(m){if(d!==null)throw Ue=d,m;jt=1,Cl(t,Ta(i,t.current)),Ue=null;return}a.flags&32768?($e||o===1?t=!0:Rs||(Ie&536870912)!==0?t=!1:(ei=t=!0,(o===2||o===9||o===3||o===6)&&(o=ka.current,o!==null&&o.tag===13&&(o.flags|=16384))),N1(a,t)):Il(a)}function Il(t){var a=t;do{if((a.flags&32768)!==0){N1(a,ei);return}t=a.return;var i=vk(a.alternate,a,_n);if(i!==null){Ue=i;return}if(a=a.sibling,a!==null){Ue=a;return}Ue=a=t}while(a!==null);jt===0&&(jt=5)}function N1(t,a){do{var i=xk(t.alternate,t);if(i!==null){i.flags&=32767,Ue=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(t=t.sibling,t!==null)){Ue=t;return}Ue=t=i}while(t!==null);jt=6,Ue=null}function _1(t,a,i,o,d,m,v,w,N){t.cancelPendingCommit=null;do Vl();while(qt!==0);if((Xe&6)!==0)throw Error(r(327));if(a!==null){if(a===t.current)throw Error(r(177));if(m=a.lanes|a.childLanes,m|=Ou,ko(t,i,m,v,w,N),t===ot&&(Ue=ot=null,Ie=0),qs=a,ni=t,Cn=i,Vd=m,$d=d,g1=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Tk(_i,function(){return T1(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=I.T,I.T=null,d=ie.p,ie.p=2,v=Xe,Xe|=4;try{kk(t,a,i)}finally{Xe=v,ie.p=d,I.T=o}}qt=1,C1(),z1(),E1()}}function C1(){if(qt===1){qt=0;var t=ni,a=qs,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=I.T,I.T=null;var o=ie.p;ie.p=2;var d=Xe;Xe|=4;try{l1(a,t);var m=im,v=ph(t.containerInfo),w=m.focusedElem,N=m.selectionRange;if(v!==w&&w&&w.ownerDocument&&mh(w.ownerDocument.documentElement,w)){if(N!==null&&zu(w)){var O=N.start,H=N.end;if(H===void 0&&(H=O),"selectionStart"in w)w.selectionStart=O,w.selectionEnd=Math.min(H,w.value.length);else{var Y=w.ownerDocument||document,M=Y&&Y.defaultView||window;if(M.getSelection){var G=M.getSelection(),fe=w.textContent.length,ze=Math.min(N.start,fe),st=N.end===void 0?ze:Math.min(N.end,fe);!G.extend&&ze>st&&(v=st,st=ze,ze=v);var E=dh(w,ze),C=dh(w,st);if(E&&C&&(G.rangeCount!==1||G.anchorNode!==E.node||G.anchorOffset!==E.offset||G.focusNode!==C.node||G.focusOffset!==C.offset)){var T=Y.createRange();T.setStart(E.node,E.offset),G.removeAllRanges(),ze>st?(G.addRange(T),G.extend(C.node,C.offset)):(T.setEnd(C.node,C.offset),G.addRange(T))}}}}for(Y=[],G=w;G=G.parentNode;)G.nodeType===1&&Y.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<Y.length;w++){var F=Y[w];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}ec=!!nm,im=nm=null}finally{Xe=d,ie.p=o,I.T=i}}t.current=a,qt=2}}function z1(){if(qt===2){qt=0;var t=ni,a=qs,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=I.T,I.T=null;var o=ie.p;ie.p=2;var d=Xe;Xe|=4;try{n1(t,a.alternate,a)}finally{Xe=d,ie.p=o,I.T=i}}qt=3}}function E1(){if(qt===4||qt===3){qt=0,rs();var t=ni,a=qs,i=Cn,o=g1;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?qt=5:(qt=0,qs=ni=null,D1(t,t.pendingLanes));var d=t.pendingLanes;if(d===0&&(ai=null),la(i),a=a.stateNode,Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Ci,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=I.T,d=ie.p,ie.p=2,I.T=null;try{for(var m=t.onRecoverableError,v=0;v<o.length;v++){var w=o[v];m(w.value,{componentStack:w.stack})}}finally{I.T=a,ie.p=d}}(Cn&3)!==0&&Vl(),ln(t),d=t.pendingLanes,(i&261930)!==0&&(d&42)!==0?t===Gd?nr++:(nr=0,Gd=t):nr=0,ir(0)}}function D1(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,Po(a)))}function Vl(){return C1(),z1(),E1(),T1()}function T1(){if(qt!==5)return!1;var t=ni,a=Vd;Vd=0;var i=la(Cn),o=I.T,d=ie.p;try{ie.p=32>i?32:i,I.T=null,i=$d,$d=null;var m=ni,v=Cn;if(qt=0,qs=ni=null,Cn=0,(Xe&6)!==0)throw Error(r(331));var w=Xe;if(Xe|=4,p1(m.current),u1(m,m.current,v,i),Xe=w,ir(0,!1),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Ci,m)}catch{}return!0}finally{ie.p=d,I.T=o,D1(t,a)}}function R1(t,a,i){a=Ta(i,a),a=wd(t.stateNode,a,2),t=Yn(t,a,2),t!==null&&(Un(t,2),ln(t))}function tt(t,a,i){if(t.tag===3)R1(t,t,i);else for(;a!==null;){if(a.tag===3){R1(a,t,i);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ai===null||!ai.has(o))){t=Ta(i,t),i=Of(2),o=Yn(a,i,2),o!==null&&(qf(i,o,a,t),Un(o,2),ln(o));break}}a=a.return}}function Qd(t,a,i){var o=t.pingCache;if(o===null){o=t.pingCache=new jk;var d=new Set;o.set(a,d)}else d=o.get(a),d===void 0&&(d=new Set,o.set(a,d));d.has(i)||(Ud=!0,d.add(i),t=zk.bind(null,t,a,i),a.then(t,t))}function zk(t,a,i){var o=t.pingCache;o!==null&&o.delete(a),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,ot===t&&(Ie&i)===i&&(jt===4||jt===3&&(Ie&62914560)===Ie&&300>Kt()-Bl?(Xe&2)===0&&Bs(t,0):Ld|=i,Os===Ie&&(Os=0)),ln(t)}function O1(t,a){a===0&&(a=an()),t=Mi(t,a),t!==null&&(Un(t,a),ln(t))}function Ek(t){var a=t.memoizedState,i=0;a!==null&&(i=a.retryLane),O1(t,i)}function Dk(t,a){var i=0;switch(t.tag){case 31:case 13:var o=t.stateNode,d=t.memoizedState;d!==null&&(i=d.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(a),O1(t,i)}function Tk(t,a){return yo(t,a)}var $l=null,Ps=null,Zd=!1,Gl=!1,Fd=!1,si=0;function ln(t){t!==Ps&&t.next===null&&(Ps===null?$l=Ps=t:Ps=Ps.next=t),Gl=!0,Zd||(Zd=!0,Ok())}function ir(t,a){if(!Fd&&Gl){Fd=!0;do for(var i=!1,o=$l;o!==null;){if(t!==0){var d=o.pendingLanes;if(d===0)var m=0;else{var v=o.suspendedLanes,w=o.pingedLanes;m=(1<<31-Zt(42|t)+1)-1,m&=d&~(v&~w),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,P1(o,m))}else m=Ie,m=Pn(o,o===ot?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(m&3)===0||Ei(o,m)||(i=!0,P1(o,m));o=o.next}while(i);Fd=!1}}function Rk(){q1()}function q1(){Gl=Zd=!1;var t=0;si!==0&&Gk()&&(t=si);for(var a=Kt(),i=null,o=$l;o!==null;){var d=o.next,m=B1(o,a);m===0?(o.next=null,i===null?$l=d:i.next=d,d===null&&(Ps=i)):(i=o,(t!==0||(m&3)!==0)&&(Gl=!0)),o=d}qt!==0&&qt!==5||ir(t),si!==0&&(si=0)}function B1(t,a){for(var i=t.suspendedLanes,o=t.pingedLanes,d=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var v=31-Zt(m),w=1<<v,N=d[v];N===-1?((w&i)===0||(w&o)!==0)&&(d[v]=cu(w,a)):N<=a&&(t.expiredLanes|=w),m&=~w}if(a=ot,i=Ie,i=Pn(t,t===a?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,i===0||t===a&&(et===2||et===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&Jt(o),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Ei(t,i)){if(a=i&-i,a===t.callbackPriority)return a;switch(o!==null&&Jt(o),la(i)){case 2:case 8:i=vo;break;case 32:i=_i;break;case 268435456:i=xo;break;default:i=_i}return o=M1.bind(null,t),i=yo(i,o),t.callbackPriority=a,t.callbackNode=i,a}return o!==null&&o!==null&&Jt(o),t.callbackPriority=2,t.callbackNode=null,2}function M1(t,a){if(qt!==0&&qt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Vl()&&t.callbackNode!==i)return null;var o=Ie;return o=Pn(t,t===ot?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(b1(t,o,a),B1(t,Kt()),t.callbackNode!=null&&t.callbackNode===i?M1.bind(null,t):null)}function P1(t,a){if(Vl())return null;b1(t,a,!0)}function Ok(){Kk(function(){(Xe&6)!==0?yo(bo,Rk):q1()})}function Yd(){if(si===0){var t=Ss;t===0&&(t=dn,dn<<=1,(dn&261888)===0&&(dn=256)),si=t}return si}function U1(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Jr(""+t)}function L1(t,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,t.id&&i.setAttribute("form",t.id),a.parentNode.insertBefore(i,a),t=new FormData(t),i.parentNode.removeChild(i),t}function qk(t,a,i,o,d){if(a==="submit"&&i&&i.stateNode===d){var m=U1((d[wt]||null).action),v=o.submitter;v&&(a=(a=v[wt]||null)?U1(a.formAction):v.getAttribute("formAction"),a!==null&&(m=a,v=null));var w=new al("action","action",null,o,d);t.push({event:w,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(si!==0){var N=v?L1(d,v):new FormData(d);gd(i,{pending:!0,data:N,method:d.method,action:m},null,N)}}else typeof m=="function"&&(w.preventDefault(),N=v?L1(d,v):new FormData(d),gd(i,{pending:!0,data:N,method:d.method,action:m},m,N))},currentTarget:d}]})}}for(var Xd=0;Xd<Ru.length;Xd++){var Jd=Ru[Xd],Bk=Jd.toLowerCase(),Mk=Jd[0].toUpperCase()+Jd.slice(1);Qa(Bk,"on"+Mk)}Qa(gh,"onAnimationEnd"),Qa(yh,"onAnimationIteration"),Qa(bh,"onAnimationStart"),Qa("dblclick","onDoubleClick"),Qa("focusin","onFocus"),Qa("focusout","onBlur"),Qa(W3,"onTransitionRun"),Qa(ek,"onTransitionStart"),Qa(tk,"onTransitionCancel"),Qa(vh,"onTransitionEnd"),ba("onMouseEnter",["mouseout","mouseover"]),ba("onMouseLeave",["mouseout","mouseover"]),ba("onPointerEnter",["pointerout","pointerover"]),ba("onPointerLeave",["pointerout","pointerover"]),ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sr="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(" "),Pk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(sr));function I1(t,a){a=(a&4)!==0;for(var i=0;i<t.length;i++){var o=t[i],d=o.event;o=o.listeners;e:{var m=void 0;if(a)for(var v=o.length-1;0<=v;v--){var w=o[v],N=w.instance,O=w.currentTarget;if(w=w.listener,N!==m&&d.isPropagationStopped())break e;m=w,d.currentTarget=O;try{m(d)}catch(H){sl(H)}d.currentTarget=null,m=N}else for(v=0;v<o.length;v++){if(w=o[v],N=w.instance,O=w.currentTarget,w=w.listener,N!==m&&d.isPropagationStopped())break e;m=w,d.currentTarget=O;try{m(d)}catch(H){sl(H)}d.currentTarget=null,m=N}}}}function Le(t,a){var i=a[Ao];i===void 0&&(i=a[Ao]=new Set);var o=t+"__bubble";i.has(o)||(V1(a,t,2,!1),i.add(o))}function Wd(t,a,i){var o=0;a&&(o|=4),V1(i,t,o,a)}var Hl="_reactListening"+Math.random().toString(36).slice(2);function em(t){if(!t[Hl]){t[Hl]=!0,Z.forEach(function(i){i!=="selectionchange"&&(Pk.has(i)||Wd(i,!1,t),Wd(i,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[Hl]||(a[Hl]=!0,Wd("selectionchange",!1,a))}}function V1(t,a,i,o){switch(yg(a)){case 2:var d=mw;break;case 8:d=pw;break;default:d=fm}i=d.bind(null,a,i,t),d=void 0,!xu||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(d=!0),o?d!==void 0?t.addEventListener(a,i,{capture:!0,passive:d}):t.addEventListener(a,i,!0):d!==void 0?t.addEventListener(a,i,{passive:d}):t.addEventListener(a,i,!1)}function tm(t,a,i,o,d){var m=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var v=o.tag;if(v===3||v===4){var w=o.stateNode.containerInfo;if(w===d)break;if(v===4)for(v=o.return;v!==null;){var N=v.tag;if((N===3||N===4)&&v.stateNode.containerInfo===d)return;v=v.return}for(;w!==null;){if(v=Wt(w),v===null)return;if(N=v.tag,N===5||N===6||N===26||N===27){o=m=v;continue e}w=w.parentNode}}o=o.return}K0(function(){var O=m,H=bu(i),Y=[];e:{var M=xh.get(t);if(M!==void 0){var G=al,fe=t;switch(t){case"keypress":if(el(i)===0)break e;case"keydown":case"keyup":G=D3;break;case"focusin":fe="focus",G=ju;break;case"focusout":fe="blur",G=ju;break;case"beforeblur":case"afterblur":G=ju;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=F0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=v3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=O3;break;case gh:case yh:case bh:G=w3;break;case vh:G=B3;break;case"scroll":case"scrollend":G=y3;break;case"wheel":G=P3;break;case"copy":case"cut":case"paste":G=j3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=X0;break;case"toggle":case"beforetoggle":G=L3}var ze=(a&4)!==0,st=!ze&&(t==="scroll"||t==="scrollend"),E=ze?M!==null?M+"Capture":null:M;ze=[];for(var C=O,T;C!==null;){var F=C;if(T=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||T===null||E===null||(F=_o(C,E),F!=null&&ze.push(or(C,F,T))),st)break;C=C.return}0<ze.length&&(M=new G(M,fe,null,i,H),Y.push({event:M,listeners:ze}))}}if((a&7)===0){e:{if(M=t==="mouseover"||t==="pointerover",G=t==="mouseout"||t==="pointerout",M&&i!==yu&&(fe=i.relatedTarget||i.fromElement)&&(Wt(fe)||fe[Ka]))break e;if((G||M)&&(M=H.window===H?H:(M=H.ownerDocument)?M.defaultView||M.parentWindow:window,G?(fe=i.relatedTarget||i.toElement,G=O,fe=fe?Wt(fe):null,fe!==null&&(st=f(fe),ze=fe.tag,fe!==st||ze!==5&&ze!==27&&ze!==6)&&(fe=null)):(G=null,fe=O),G!==fe)){if(ze=F0,F="onMouseLeave",E="onMouseEnter",C="mouse",(t==="pointerout"||t==="pointerover")&&(ze=X0,F="onPointerLeave",E="onPointerEnter",C="pointer"),st=G==null?M:In(G),T=fe==null?M:In(fe),M=new ze(F,C+"leave",G,i,H),M.target=st,M.relatedTarget=T,F=null,Wt(H)===O&&(ze=new ze(E,C+"enter",fe,i,H),ze.target=T,ze.relatedTarget=st,F=ze),st=F,G&&fe)t:{for(ze=Uk,E=G,C=fe,T=0,F=E;F;F=ze(F))T++;F=0;for(var je=C;je;je=ze(je))F++;for(;0<T-F;)E=ze(E),T--;for(;0<F-T;)C=ze(C),F--;for(;T--;){if(E===C||C!==null&&E===C.alternate){ze=E;break t}E=ze(E),C=ze(C)}ze=null}else ze=null;G!==null&&$1(Y,M,G,ze,!1),fe!==null&&st!==null&&$1(Y,st,fe,ze,!0)}}e:{if(M=O?In(O):window,G=M.nodeName&&M.nodeName.toLowerCase(),G==="select"||G==="input"&&M.type==="file")var Qe=sh;else if(nh(M))if(oh)Qe=Y3;else{Qe=Z3;var xe=Q3}else G=M.nodeName,!G||G.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?O&&gu(O.elementType)&&(Qe=sh):Qe=F3;if(Qe&&(Qe=Qe(t,O))){ih(Y,Qe,i,H);break e}xe&&xe(t,M,O),t==="focusout"&&O&&M.type==="number"&&O.memoizedProps.value!=null&&fu(M,"number",M.value)}switch(xe=O?In(O):window,t){case"focusin":(nh(xe)||xe.contentEditable==="true")&&(fs=xe,Eu=O,qo=null);break;case"focusout":qo=Eu=fs=null;break;case"mousedown":Du=!0;break;case"contextmenu":case"mouseup":case"dragend":Du=!1,hh(Y,i,H);break;case"selectionchange":if(J3)break;case"keydown":case"keyup":hh(Y,i,H)}var Be;if(Nu)e:{switch(t){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else hs?th(t,i)&&(Ve="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Ve="onCompositionStart");Ve&&(J0&&i.locale!=="ko"&&(hs||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&hs&&(Be=Q0()):($n=H,ku="value"in $n?$n.value:$n.textContent,hs=!0)),xe=Kl(O,Ve),0<xe.length&&(Ve=new Y0(Ve,t,null,i,H),Y.push({event:Ve,listeners:xe}),Be?Ve.data=Be:(Be=ah(i),Be!==null&&(Ve.data=Be)))),(Be=V3?$3(t,i):G3(t,i))&&(Ve=Kl(O,"onBeforeInput"),0<Ve.length&&(xe=new Y0("onBeforeInput","beforeinput",null,i,H),Y.push({event:xe,listeners:Ve}),xe.data=Be)),qk(Y,t,O,i,H)}I1(Y,a)})}function or(t,a,i){return{instance:t,listener:a,currentTarget:i}}function Kl(t,a){for(var i=a+"Capture",o=[];t!==null;){var d=t,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=_o(t,i),d!=null&&o.unshift(or(t,d,m)),d=_o(t,a),d!=null&&o.push(or(t,d,m))),t.tag===3)return o;t=t.return}return[]}function Uk(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function $1(t,a,i,o,d){for(var m=a._reactName,v=[];i!==null&&i!==o;){var w=i,N=w.alternate,O=w.stateNode;if(w=w.tag,N!==null&&N===o)break;w!==5&&w!==26&&w!==27||O===null||(N=O,d?(O=_o(i,m),O!=null&&v.unshift(or(i,O,N))):d||(O=_o(i,m),O!=null&&v.push(or(i,O,N)))),i=i.return}v.length!==0&&t.push({event:a,listeners:v})}var Lk=/\r\n?/g,Ik=/\u0000|\uFFFD/g;function G1(t){return(typeof t=="string"?t:""+t).replace(Lk,`
|
|
10
|
+
`).replace(Ik,"")}function H1(t,a){return a=G1(a),G1(t)===a}function it(t,a,i,o,d,m){switch(i){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||ds(t,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&ds(t,""+o);break;case"className":cs(t,"class",o);break;case"tabIndex":cs(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":cs(t,i,o);break;case"style":G0(t,o,m);break;case"data":if(a!=="object"){cs(t,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||i!=="href")){t.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Jr(""+o),t.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(i,"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 m=="function"&&(i==="formAction"?(a!=="input"&&it(t,a,"name",d.name,d,null),it(t,a,"formEncType",d.formEncType,d,null),it(t,a,"formMethod",d.formMethod,d,null),it(t,a,"formTarget",d.formTarget,d,null)):(it(t,a,"encType",d.encType,d,null),it(t,a,"method",d.method,d,null),it(t,a,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Jr(""+o),t.setAttribute(i,o);break;case"onClick":o!=null&&(t.onclick=pn);break;case"onScroll":o!=null&&Le("scroll",t);break;case"onScrollEnd":o!=null&&Le("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(i=o.__html,i!=null){if(d.children!=null)throw Error(r(60));t.innerHTML=i}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}i=Jr(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""+o):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":o===!0?t.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,o):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(i,o):t.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(i):t.setAttribute(i,o);break;case"popover":Le("beforetoggle",t),Le("toggle",t),Ri(t,"popover",o);break;case"xlinkActuate":ea(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ea(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ea(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ea(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ea(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ea(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ea(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ea(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ea(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Ri(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=f3.get(i)||i,Ri(t,i,o))}}function am(t,a,i,o,d,m){switch(i){case"style":G0(t,o,m);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(i=o.__html,i!=null){if(d.children!=null)throw Error(r(60));t.innerHTML=i}}break;case"children":typeof o=="string"?ds(t,o):(typeof o=="number"||typeof o=="bigint")&&ds(t,""+o);break;case"onScroll":o!=null&&Le("scroll",t);break;case"onScrollEnd":o!=null&&Le("scrollend",t);break;case"onClick":o!=null&&(t.onclick=pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Re.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),a=i.slice(2,d?i.length-7:void 0),m=t[wt]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(a,m,d),typeof o=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(a,o,d);break e}i in t?t[i]=o:o===!0?t.setAttribute(i,""):Ri(t,i,o)}}}function Ht(t,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",t),Le("load",t);var o=!1,d=!1,m;for(m in i)if(i.hasOwnProperty(m)){var v=i[m];if(v!=null)switch(m){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:it(t,a,m,v,i,null)}}d&&it(t,a,"srcSet",i.srcSet,i,null),o&&it(t,a,"src",i.src,i,null);return;case"input":Le("invalid",t);var w=m=v=d=null,N=null,O=null;for(o in i)if(i.hasOwnProperty(o)){var H=i[o];if(H!=null)switch(o){case"name":d=H;break;case"type":v=H;break;case"checked":N=H;break;case"defaultChecked":O=H;break;case"value":m=H;break;case"defaultValue":w=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,a));break;default:it(t,a,o,H,i,null)}}L0(t,m,w,N,O,v,d,!1);return;case"select":Le("invalid",t),o=v=m=null;for(d in i)if(i.hasOwnProperty(d)&&(w=i[d],w!=null))switch(d){case"value":m=w;break;case"defaultValue":v=w;break;case"multiple":o=w;default:it(t,a,d,w,i,null)}a=m,i=v,t.multiple=!!o,a!=null?us(t,!!o,a,!1):i!=null&&us(t,!!o,i,!0);return;case"textarea":Le("invalid",t),m=d=o=null;for(v in i)if(i.hasOwnProperty(v)&&(w=i[v],w!=null))switch(v){case"value":o=w;break;case"defaultValue":d=w;break;case"children":m=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(91));break;default:it(t,a,v,w,i,null)}V0(t,o,d,m);return;case"option":for(N in i)i.hasOwnProperty(N)&&(o=i[N],o!=null)&&(N==="selected"?t.selected=o&&typeof o!="function"&&typeof o!="symbol":it(t,a,N,o,i,null));return;case"dialog":Le("beforetoggle",t),Le("toggle",t),Le("cancel",t),Le("close",t);break;case"iframe":case"object":Le("load",t);break;case"video":case"audio":for(o=0;o<sr.length;o++)Le(sr[o],t);break;case"image":Le("error",t),Le("load",t);break;case"details":Le("toggle",t);break;case"embed":case"source":case"link":Le("error",t),Le("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in i)if(i.hasOwnProperty(O)&&(o=i[O],o!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:it(t,a,O,o,i,null)}return;default:if(gu(a)){for(H in i)i.hasOwnProperty(H)&&(o=i[H],o!==void 0&&am(t,a,H,o,i,void 0));return}}for(w in i)i.hasOwnProperty(w)&&(o=i[w],o!=null&&it(t,a,w,o,i,null))}function Vk(t,a,i,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,m=null,v=null,w=null,N=null,O=null,H=null;for(G in i){var Y=i[G];if(i.hasOwnProperty(G)&&Y!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":N=Y;default:o.hasOwnProperty(G)||it(t,a,G,null,o,Y)}}for(var M in o){var G=o[M];if(Y=i[M],o.hasOwnProperty(M)&&(G!=null||Y!=null))switch(M){case"type":m=G;break;case"name":d=G;break;case"checked":O=G;break;case"defaultChecked":H=G;break;case"value":v=G;break;case"defaultValue":w=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,a));break;default:G!==Y&&it(t,a,M,G,o,Y)}}hu(t,v,w,N,O,H,m,d);return;case"select":G=v=w=M=null;for(m in i)if(N=i[m],i.hasOwnProperty(m)&&N!=null)switch(m){case"value":break;case"multiple":G=N;default:o.hasOwnProperty(m)||it(t,a,m,null,o,N)}for(d in o)if(m=o[d],N=i[d],o.hasOwnProperty(d)&&(m!=null||N!=null))switch(d){case"value":M=m;break;case"defaultValue":w=m;break;case"multiple":v=m;default:m!==N&&it(t,a,d,m,o,N)}a=w,i=v,o=G,M!=null?us(t,!!i,M,!1):!!o!=!!i&&(a!=null?us(t,!!i,a,!0):us(t,!!i,i?[]:"",!1));return;case"textarea":G=M=null;for(w in i)if(d=i[w],i.hasOwnProperty(w)&&d!=null&&!o.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:it(t,a,w,null,o,d)}for(v in o)if(d=o[v],m=i[v],o.hasOwnProperty(v)&&(d!=null||m!=null))switch(v){case"value":M=d;break;case"defaultValue":G=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==m&&it(t,a,v,d,o,m)}I0(t,M,G);return;case"option":for(var fe in i)M=i[fe],i.hasOwnProperty(fe)&&M!=null&&!o.hasOwnProperty(fe)&&(fe==="selected"?t.selected=!1:it(t,a,fe,null,o,M));for(N in o)M=o[N],G=i[N],o.hasOwnProperty(N)&&M!==G&&(M!=null||G!=null)&&(N==="selected"?t.selected=M&&typeof M!="function"&&typeof M!="symbol":it(t,a,N,M,o,G));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 ze in i)M=i[ze],i.hasOwnProperty(ze)&&M!=null&&!o.hasOwnProperty(ze)&&it(t,a,ze,null,o,M);for(O in o)if(M=o[O],G=i[O],o.hasOwnProperty(O)&&M!==G&&(M!=null||G!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,a));break;default:it(t,a,O,M,o,G)}return;default:if(gu(a)){for(var st in i)M=i[st],i.hasOwnProperty(st)&&M!==void 0&&!o.hasOwnProperty(st)&&am(t,a,st,void 0,o,M);for(H in o)M=o[H],G=i[H],!o.hasOwnProperty(H)||M===G||M===void 0&&G===void 0||am(t,a,H,M,o,G);return}}for(var E in i)M=i[E],i.hasOwnProperty(E)&&M!=null&&!o.hasOwnProperty(E)&&it(t,a,E,null,o,M);for(Y in o)M=o[Y],G=i[Y],!o.hasOwnProperty(Y)||M===G||M==null&&G==null||it(t,a,Y,M,o,G)}function K1(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $k(){if(typeof performance.getEntriesByType=="function"){for(var t=0,a=0,i=performance.getEntriesByType("resource"),o=0;o<i.length;o++){var d=i[o],m=d.transferSize,v=d.initiatorType,w=d.duration;if(m&&w&&K1(v)){for(v=0,w=d.responseEnd,o+=1;o<i.length;o++){var N=i[o],O=N.startTime;if(O>w)break;var H=N.transferSize,Y=N.initiatorType;H&&K1(Y)&&(N=N.responseEnd,v+=H*(N<w?1:(w-O)/(N-O)))}if(--o,a+=8*(m+v)/(d.duration/1e3),t++,10<t)break}}if(0<t)return a/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var nm=null,im=null;function Ql(t){return t.nodeType===9?t:t.ownerDocument}function Q1(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Z1(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function sm(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var om=null;function Gk(){var t=window.event;return t&&t.type==="popstate"?t===om?!1:(om=t,!0):(om=null,!1)}var F1=typeof setTimeout=="function"?setTimeout:void 0,Hk=typeof clearTimeout=="function"?clearTimeout:void 0,Y1=typeof Promise=="function"?Promise:void 0,Kk=typeof queueMicrotask=="function"?queueMicrotask:typeof Y1<"u"?function(t){return Y1.resolve(null).then(t).catch(Qk)}:F1;function Qk(t){setTimeout(function(){throw t})}function oi(t){return t==="head"}function X1(t,a){var i=a,o=0;do{var d=i.nextSibling;if(t.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"||i==="/&"){if(o===0){t.removeChild(d),Vs(a);return}o--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")o++;else if(i==="html")rr(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,rr(i);for(var m=i.firstChild;m;){var v=m.nextSibling,w=m.nodeName;m[Ti]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=v}}else i==="body"&&rr(t.ownerDocument.body);i=d}while(i);Vs(a)}function J1(t,a){var i=t;t=0;do{var o=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=o}while(i)}function rm(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":rm(i),ls(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function Zk(t,a,i,o){for(;t.nodeType===1;){var d=i;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[Ti])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=Ma(t.nextSibling),t===null)break}return null}function Fk(t,a,i){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Ma(t.nextSibling),t===null))return null;return t}function W1(t,a){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Ma(t.nextSibling),t===null))return null;return t}function lm(t){return t.data==="$?"||t.data==="$~"}function cm(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Yk(t,a){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=a;else if(t.data!=="$?"||i.readyState!=="loading")a();else{var o=function(){a(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function Ma(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return t}var um=null;function eg(t){t=t.nextSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(a===0)return Ma(t.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}t=t.nextSibling}return null}function tg(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return t;a--}else i!=="/$"&&i!=="/&"||a++}t=t.previousSibling}return null}function ag(t,a,i){switch(a=Ql(i),t){case"html":if(t=a.documentElement,!t)throw Error(r(452));return t;case"head":if(t=a.head,!t)throw Error(r(453));return t;case"body":if(t=a.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function rr(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);ls(t)}var Pa=new Map,ng=new Set;function Zl(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var zn=ie.d;ie.d={f:Xk,r:Jk,D:Wk,C:ew,L:tw,m:aw,X:iw,S:nw,M:sw};function Xk(){var t=zn.f(),a=Ul();return t||a}function Jk(t){var a=nn(t);a!==null&&a.tag===5&&a.type==="form"?xf(a):zn.r(t)}var Us=typeof document>"u"?null:document;function ig(t,a,i){var o=Us;if(o&&typeof a=="string"&&a){var d=Ea(a);d='link[rel="'+t+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),ng.has(d)||(ng.add(d),t={rel:t,crossOrigin:i,href:a},o.querySelector(d)===null&&(a=o.createElement("link"),Ht(a,"link",t),Ct(a),o.head.appendChild(a)))}}function Wk(t){zn.D(t),ig("dns-prefetch",t,null)}function ew(t,a){zn.C(t,a),ig("preconnect",t,a)}function tw(t,a,i){zn.L(t,a,i);var o=Us;if(o&&t&&a){var d='link[rel="preload"][as="'+Ea(a)+'"]';a==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+Ea(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+Ea(i.imageSizes)+'"]')):d+='[href="'+Ea(t)+'"]';var m=d;switch(a){case"style":m=Ls(t);break;case"script":m=Is(t)}Pa.has(m)||(t=j({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:t,as:a},i),Pa.set(m,t),o.querySelector(d)!==null||a==="style"&&o.querySelector(lr(m))||a==="script"&&o.querySelector(cr(m))||(a=o.createElement("link"),Ht(a,"link",t),Ct(a),o.head.appendChild(a)))}}function aw(t,a){zn.m(t,a);var i=Us;if(i&&t){var o=a&&typeof a.as=="string"?a.as:"script",d='link[rel="modulepreload"][as="'+Ea(o)+'"][href="'+Ea(t)+'"]',m=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Is(t)}if(!Pa.has(m)&&(t=j({rel:"modulepreload",href:t},a),Pa.set(m,t),i.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(cr(m)))return}o=i.createElement("link"),Ht(o,"link",t),Ct(o),i.head.appendChild(o)}}}function nw(t,a,i){zn.S(t,a,i);var o=Us;if(o&&t){var d=Vn(o).hoistableStyles,m=Ls(t);a=a||"default";var v=d.get(m);if(!v){var w={loading:0,preload:null};if(v=o.querySelector(lr(m)))w.loading=5;else{t=j({rel:"stylesheet",href:t,"data-precedence":a},i),(i=Pa.get(m))&&dm(t,i);var N=v=o.createElement("link");Ct(N),Ht(N,"link",t),N._p=new Promise(function(O,H){N.onload=O,N.onerror=H}),N.addEventListener("load",function(){w.loading|=1}),N.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Fl(v,a,o)}v={type:"stylesheet",instance:v,count:1,state:w},d.set(m,v)}}}function iw(t,a){zn.X(t,a);var i=Us;if(i&&t){var o=Vn(i).hoistableScripts,d=Is(t),m=o.get(d);m||(m=i.querySelector(cr(d)),m||(t=j({src:t,async:!0},a),(a=Pa.get(d))&&mm(t,a),m=i.createElement("script"),Ct(m),Ht(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(d,m))}}function sw(t,a){zn.M(t,a);var i=Us;if(i&&t){var o=Vn(i).hoistableScripts,d=Is(t),m=o.get(d);m||(m=i.querySelector(cr(d)),m||(t=j({src:t,async:!0,type:"module"},a),(a=Pa.get(d))&&mm(t,a),m=i.createElement("script"),Ct(m),Ht(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(d,m))}}function sg(t,a,i,o){var d=(d=se.current)?Zl(d):null;if(!d)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=Ls(i.href),i=Vn(d).hoistableStyles,o=i.get(a),o||(o={type:"style",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Ls(i.href);var m=Vn(d).hoistableStyles,v=m.get(t);if(v||(d=d.ownerDocument||d,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,v),(m=d.querySelector(lr(t)))&&!m._p&&(v.instance=m,v.state.loading=5),Pa.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Pa.set(t,i),m||ow(d,t,i,v.state))),a&&o===null)throw Error(r(528,""));return v}if(a&&o!==null)throw Error(r(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Is(i),i=Vn(d).hoistableScripts,o=i.get(a),o||(o={type:"script",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Ls(t){return'href="'+Ea(t)+'"'}function lr(t){return'link[rel="stylesheet"]['+t+"]"}function og(t){return j({},t,{"data-precedence":t.precedence,precedence:null})}function ow(t,a,i,o){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=t.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Ht(a,"link",i),Ct(a),t.head.appendChild(a))}function Is(t){return'[src="'+Ea(t)+'"]'}function cr(t){return"script[async]"+t}function rg(t,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var o=t.querySelector('style[data-href~="'+Ea(i.href)+'"]');if(o)return a.instance=o,Ct(o),o;var d=j({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),Ct(o),Ht(o,"style",d),Fl(o,i.precedence,t),a.instance=o;case"stylesheet":d=Ls(i.href);var m=t.querySelector(lr(d));if(m)return a.state.loading|=4,a.instance=m,Ct(m),m;o=og(i),(d=Pa.get(d))&&dm(o,d),m=(t.ownerDocument||t).createElement("link"),Ct(m);var v=m;return v._p=new Promise(function(w,N){v.onload=w,v.onerror=N}),Ht(m,"link",o),a.state.loading|=4,Fl(m,i.precedence,t),a.instance=m;case"script":return m=Is(i.src),(d=t.querySelector(cr(m)))?(a.instance=d,Ct(d),d):(o=i,(d=Pa.get(m))&&(o=j({},i),mm(o,d)),t=t.ownerDocument||t,d=t.createElement("script"),Ct(d),Ht(d,"link",o),t.head.appendChild(d),a.instance=d);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,Fl(o,i.precedence,t));return a.instance}function Fl(t,a,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,m=d,v=0;v<o.length;v++){var w=o[v];if(w.dataset.precedence===a)m=w;else if(m!==d)break}m?m.parentNode.insertBefore(t,m.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(t,a.firstChild))}function dm(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function mm(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var Yl=null;function lg(t,a,i){if(Yl===null){var o=new Map,d=Yl=new Map;d.set(i,o)}else d=Yl,o=d.get(i),o||(o=new Map,d.set(i,o));if(o.has(t))return o;for(o.set(t,null),i=i.getElementsByTagName(t),d=0;d<i.length;d++){var m=i[d];if(!(m[Ti]||m[ht]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var v=m.getAttribute(a)||"";v=t+v;var w=o.get(v);w?w.push(m):o.set(v,[m])}}return o}function cg(t,a,i){t=t.ownerDocument||t,t.head.insertBefore(i,a==="title"?t.querySelector("head > title"):null)}function rw(t,a,i){if(i===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(t=a.disabled,typeof a.precedence=="string"&&t==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function ug(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function lw(t,a,i,o){if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=Ls(o.href),m=a.querySelector(lr(d));if(m){a=m._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(t.count++,t=Xl.bind(t),a.then(t,t)),i.state.loading|=4,i.instance=m,Ct(m);return}m=a.ownerDocument||a,o=og(o),(d=Pa.get(d))&&dm(o,d),m=m.createElement("link"),Ct(m);var v=m;v._p=new Promise(function(w,N){v.onload=w,v.onerror=N}),Ht(m,"link",o),i.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Xl.bind(t),a.addEventListener("load",i),a.addEventListener("error",i))}}var pm=0;function cw(t,a){return t.stylesheets&&t.count===0&&Wl(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var o=setTimeout(function(){if(t.stylesheets&&Wl(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+a);0<t.imgBytes&&pm===0&&(pm=62500*$k());var d=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Wl(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>pm?50:800)+a);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function Xl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wl(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Jl=null;function Wl(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Jl=new Map,a.forEach(uw,t),Jl=null,Xl.call(t))}function uw(t,a){if(!(a.state.loading&4)){var i=Jl.get(t);if(i)var o=i.get(null);else{i=new Map,Jl.set(t,i);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var v=d[m];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(i.set(v.dataset.precedence,v),o=v)}o&&i.set(null,o)}d=a.instance,v=d.getAttribute("data-precedence"),m=i.get(v)||o,m===o&&i.set(null,d),i.set(v,d),this.count++,o=Xl.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),m?m.parentNode.insertBefore(d,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),a.state.loading|=4}}var ur={$$typeof:X,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function dw(t,a,i,o,d,m,v,w,N){this.tag=1,this.containerInfo=t,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=Di(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Di(0),this.hiddenUpdates=Di(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function dg(t,a,i,o,d,m,v,w,N,O,H,Y){return t=new dw(t,a,i,v,N,O,H,Y,w),a=1,m===!0&&(a|=24),m=xa(3,null,null,a),t.current=m,m.stateNode=t,a=Ku(),a.refCount++,t.pooledCache=a,a.refCount++,m.memoizedState={element:o,isDehydrated:i,cache:a},Yu(m),t}function mg(t){return t?(t=bs,t):bs}function pg(t,a,i,o,d,m){d=mg(d),o.context===null?o.context=d:o.pendingContext=d,o=Fn(a),o.payload={element:i},m=m===void 0?null:m,m!==null&&(o.callback=m),i=Yn(t,o,a),i!==null&&(fa(i,t,a),Vo(i,t,a))}function hg(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<a?i:a}}function hm(t,a){hg(t,a),(t=t.alternate)&&hg(t,a)}function fg(t){if(t.tag===13||t.tag===31){var a=Mi(t,67108864);a!==null&&fa(a,t,67108864),hm(t,67108864)}}function gg(t){if(t.tag===13||t.tag===31){var a=Aa();a=Ha(a);var i=Mi(t,a);i!==null&&fa(i,t,a),hm(t,a)}}var ec=!0;function mw(t,a,i,o){var d=I.T;I.T=null;var m=ie.p;try{ie.p=2,fm(t,a,i,o)}finally{ie.p=m,I.T=d}}function pw(t,a,i,o){var d=I.T;I.T=null;var m=ie.p;try{ie.p=8,fm(t,a,i,o)}finally{ie.p=m,I.T=d}}function fm(t,a,i,o){if(ec){var d=gm(o);if(d===null)tm(t,a,o,tc,i),bg(t,o);else if(fw(d,t,a,i,o))o.stopPropagation();else if(bg(t,o),a&4&&-1<hw.indexOf(t)){for(;d!==null;){var m=nn(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var v=Ga(m.pendingLanes);if(v!==0){var w=m;for(w.pendingLanes|=2,w.entangledLanes|=2;v;){var N=1<<31-Zt(v);w.entanglements[1]|=N,v&=~N}ln(m),(Xe&6)===0&&(Ml=Kt()+500,ir(0))}}break;case 31:case 13:w=Mi(m,2),w!==null&&fa(w,m,2),Ul(),hm(m,2)}if(m=gm(o),m===null&&tm(t,a,o,tc,i),m===d)break;d=m}d!==null&&o.stopPropagation()}else tm(t,a,o,null,i)}}function gm(t){return t=bu(t),ym(t)}var tc=null;function ym(t){if(tc=null,t=Wt(t),t!==null){var a=f(t);if(a===null)t=null;else{var i=a.tag;if(i===13){if(t=g(a),t!==null)return t;t=null}else if(i===31){if(t=y(a),t!==null)return t;t=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return tc=t,null}function yg(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ou()){case bo:return 2;case vo:return 8;case _i:case Hr:return 32;case xo:return 268435456;default:return 32}default:return 32}}var bm=!1,ri=null,li=null,ci=null,dr=new Map,mr=new Map,ui=[],hw="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 bg(t,a){switch(t){case"focusin":case"focusout":ri=null;break;case"dragenter":case"dragleave":li=null;break;case"mouseover":case"mouseout":ci=null;break;case"pointerover":case"pointerout":dr.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":mr.delete(a.pointerId)}}function pr(t,a,i,o,d,m){return t===null||t.nativeEvent!==m?(t={blockedOn:a,domEventName:i,eventSystemFlags:o,nativeEvent:m,targetContainers:[d]},a!==null&&(a=nn(a),a!==null&&fg(a)),t):(t.eventSystemFlags|=o,a=t.targetContainers,d!==null&&a.indexOf(d)===-1&&a.push(d),t)}function fw(t,a,i,o,d){switch(a){case"focusin":return ri=pr(ri,t,a,i,o,d),!0;case"dragenter":return li=pr(li,t,a,i,o,d),!0;case"mouseover":return ci=pr(ci,t,a,i,o,d),!0;case"pointerover":var m=d.pointerId;return dr.set(m,pr(dr.get(m)||null,t,a,i,o,d)),!0;case"gotpointercapture":return m=d.pointerId,mr.set(m,pr(mr.get(m)||null,t,a,i,o,d)),!0}return!1}function vg(t){var a=Wt(t.target);if(a!==null){var i=f(a);if(i!==null){if(a=i.tag,a===13){if(a=g(i),a!==null){t.blockedOn=a,Ln(t.priority,function(){gg(i)});return}}else if(a===31){if(a=y(i),a!==null){t.blockedOn=a,Ln(t.priority,function(){gg(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ac(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var i=gm(t.nativeEvent);if(i===null){i=t.nativeEvent;var o=new i.constructor(i.type,i);yu=o,i.target.dispatchEvent(o),yu=null}else return a=nn(i),a!==null&&fg(a),t.blockedOn=i,!1;a.shift()}return!0}function xg(t,a,i){ac(t)&&i.delete(a)}function gw(){bm=!1,ri!==null&&ac(ri)&&(ri=null),li!==null&&ac(li)&&(li=null),ci!==null&&ac(ci)&&(ci=null),dr.forEach(xg),mr.forEach(xg)}function nc(t,a){t.blockedOn===a&&(t.blockedOn=null,bm||(bm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,gw)))}var ic=null;function kg(t){ic!==t&&(ic=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ic===t&&(ic=null);for(var a=0;a<t.length;a+=3){var i=t[a],o=t[a+1],d=t[a+2];if(typeof o!="function"){if(ym(o||i)===null)continue;break}var m=nn(i);m!==null&&(t.splice(a,3),a-=3,gd(m,{pending:!0,data:d,method:i.method,action:o},o,d))}}))}function Vs(t){function a(N){return nc(N,t)}ri!==null&&nc(ri,t),li!==null&&nc(li,t),ci!==null&&nc(ci,t),dr.forEach(a),mr.forEach(a);for(var i=0;i<ui.length;i++){var o=ui[i];o.blockedOn===t&&(o.blockedOn=null)}for(;0<ui.length&&(i=ui[0],i.blockedOn===null);)vg(i),i.blockedOn===null&&ui.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var d=i[o],m=i[o+1],v=d[wt]||null;if(typeof m=="function")v||kg(i);else if(v){var w=null;if(m&&m.hasAttribute("formAction")){if(d=m,v=m[wt]||null)w=v.formAction;else if(ym(d)!==null)continue}else w=v.action;typeof w=="function"?i[o+1]=w:(i.splice(o,3),o-=3),kg(i)}}}function wg(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(v){return d=v})},focusReset:"manual",scroll:"manual"})}function a(){d!==null&&(d(),d=null),o||setTimeout(i,20)}function i(){if(!o&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){o=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),d!==null&&(d(),d=null)}}}function vm(t){this._internalRoot=t}sc.prototype.render=vm.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(r(409));var i=a.current,o=Aa();pg(i,o,t,a,null,null)},sc.prototype.unmount=vm.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;pg(t.current,2,null,t,null,null),Ul(),a[Ka]=null}};function sc(t){this._internalRoot=t}sc.prototype.unstable_scheduleHydration=function(t){if(t){var a=mn();t={blockedOn:null,target:t,priority:a};for(var i=0;i<ui.length&&a!==0&&a<ui[i].priority;i++);ui.splice(i,0,t),i===0&&vg(t)}};var Sg=n.version;if(Sg!=="19.2.4")throw Error(r(527,Sg,"19.2.4"));ie.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=k(a),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var yw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{Ci=oc.inject(yw),Qt=oc}catch{}}return hr.createRoot=function(t,a){if(!c(t))throw Error(r(299));var i=!1,o="",d=Ef,m=Df,v=Tf;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),a=dg(t,1,!1,null,null,i,o,null,d,m,v,wg),t[Ka]=a.current,em(t),new vm(a)},hr.hydrateRoot=function(t,a,i){if(!c(t))throw Error(r(299));var o=!1,d="",m=Ef,v=Df,w=Tf,N=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(w=i.onRecoverableError),i.formState!==void 0&&(N=i.formState)),a=dg(t,1,!0,a,i??null,o,d,N,m,v,w,wg),a.context=mg(null),i=a.current,o=Aa(),o=Ha(o),d=Fn(o),d.callback=null,Yn(i,d,o),i=o,a.current.lanes=i,Un(a,i),ln(a),t[Ka]=a.current,em(t),new sc(a)},hr.version="19.2.4",hr}var zg;function iS(){if(zg)return xm.exports;zg=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(n){console.error(n)}}return e(),xm.exports=nS(),xm.exports}var sS=iS();const oS={bodySerializer:e=>JSON.stringify(e,(n,s)=>typeof s=="bigint"?s.toString():s)},rS=({onRequest:e,onSseError:n,onSseEvent:s,responseTransformer:r,responseValidator:c,sseDefaultRetryDelay:f,sseMaxRetryAttempts:g,sseMaxRetryDelay:y,sseSleepFn:x,url:k,...S})=>{let j;const A=x??(L=>new Promise(P=>setTimeout(P,L)));return{stream:async function*(){let L=f??3e3,P=0;const V=S.signal??new AbortController().signal;for(;!V.aborted;){P++;const ne=S.headers instanceof Headers?S.headers:new Headers(S.headers);j!==void 0&&ne.set("Last-Event-ID",j);try{const X={redirect:"follow",...S,body:S.serializedBody,headers:ne,signal:V};let ee=new Request(k,X);e&&(ee=await e(k,X));const he=await(S.fetch??globalThis.fetch)(ee);if(!he.ok)throw new Error(`SSE failed: ${he.status} ${he.statusText}`);if(!he.body)throw new Error("No body in SSE response");const q=he.body.pipeThrough(new TextDecoderStream).getReader();let ae="";const Ae=()=>{try{q.cancel()}catch{}};V.addEventListener("abort",Ae);try{for(;;){const{done:de,value:ge}=await q.read();if(de)break;ae+=ge;const qe=ae.split(`
|
|
11
|
+
|
|
12
|
+
`);ae=qe.pop()??"";for(const De of qe){const at=De.split(`
|
|
13
|
+
`),pe=[];let I;for(const _e of at)if(_e.startsWith("data:"))pe.push(_e.replace(/^data:\s*/,""));else if(_e.startsWith("event:"))I=_e.replace(/^event:\s*/,"");else if(_e.startsWith("id:"))j=_e.replace(/^id:\s*/,"");else if(_e.startsWith("retry:")){const le=Number.parseInt(_e.replace(/^retry:\s*/,""),10);Number.isNaN(le)||(L=le)}let ie,ue=!1;if(pe.length){const _e=pe.join(`
|
|
14
|
+
`);try{ie=JSON.parse(_e),ue=!0}catch{ie=_e}}ue&&(c&&await c(ie),r&&(ie=await r(ie))),s?.({data:ie,event:I,id:j,retry:L}),pe.length&&(yield ie)}}}finally{V.removeEventListener("abort",Ae),q.releaseLock()}break}catch(X){if(n?.(X),g!==void 0&&P>=g)break;const ee=Math.min(L*2**(P-1),y??3e4);await A(ee)}}}()}},lS=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},cS=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},uS=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Mb=({allowReserved:e,explode:n,name:s,style:r,value:c})=>{if(!n){const y=(e?c:c.map(x=>encodeURIComponent(x))).join(cS(r));switch(r){case"label":return`.${y}`;case"matrix":return`;${s}=${y}`;case"simple":return y;default:return`${s}=${y}`}}const f=lS(r),g=c.map(y=>r==="label"||r==="simple"?e?y:encodeURIComponent(y):Bc({allowReserved:e,name:s,value:y})).join(f);return r==="label"||r==="matrix"?f+g:g},Bc=({allowReserved:e,name:n,value:s})=>{if(s==null)return"";if(typeof s=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${n}=${e?s:encodeURIComponent(s)}`},Pb=({allowReserved:e,explode:n,name:s,style:r,value:c,valueOnly:f})=>{if(c instanceof Date)return f?c.toISOString():`${s}=${c.toISOString()}`;if(r!=="deepObject"&&!n){let x=[];Object.entries(c).forEach(([S,j])=>{x=[...x,S,e?j:encodeURIComponent(j)]});const k=x.join(",");switch(r){case"form":return`${s}=${k}`;case"label":return`.${k}`;case"matrix":return`;${s}=${k}`;default:return k}}const g=uS(r),y=Object.entries(c).map(([x,k])=>Bc({allowReserved:e,name:r==="deepObject"?`${s}[${x}]`:x,value:k})).join(g);return r==="label"||r==="matrix"?g+y:y},dS=/\{[^{}]+\}/g,mS=({path:e,url:n})=>{let s=n;const r=n.match(dS);if(r)for(const c of r){let f=!1,g=c.substring(1,c.length-1),y="simple";g.endsWith("*")&&(f=!0,g=g.substring(0,g.length-1)),g.startsWith(".")?(g=g.substring(1),y="label"):g.startsWith(";")&&(g=g.substring(1),y="matrix");const x=e[g];if(x==null)continue;if(Array.isArray(x)){s=s.replace(c,Mb({explode:f,name:g,style:y,value:x}));continue}if(typeof x=="object"){s=s.replace(c,Pb({explode:f,name:g,style:y,value:x,valueOnly:!0}));continue}if(y==="matrix"){s=s.replace(c,`;${Bc({name:g,value:x})}`);continue}const k=encodeURIComponent(y==="label"?`.${x}`:x);s=s.replace(c,k)}return s},pS=({baseUrl:e,path:n,query:s,querySerializer:r,url:c})=>{const f=c.startsWith("/")?c:`/${c}`;let g=(e??"")+f;n&&(g=mS({path:n,url:g}));let y=s?r(s):"";return y.startsWith("?")&&(y=y.substring(1)),y&&(g+=`?${y}`),g};function hS(e){const n=e.body!==void 0;if(n&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(n)return e.body}const fS=async(e,n)=>{const s=typeof n=="function"?await n(e):n;if(s)return e.scheme==="bearer"?`Bearer ${s}`:e.scheme==="basic"?`Basic ${btoa(s)}`:s},Ub=({allowReserved:e,array:n,object:s}={})=>c=>{const f=[];if(c&&typeof c=="object")for(const g in c){const y=c[g];if(y!=null)if(Array.isArray(y)){const x=Mb({allowReserved:e,explode:!0,name:g,style:"form",value:y,...n});x&&f.push(x)}else if(typeof y=="object"){const x=Pb({allowReserved:e,explode:!0,name:g,style:"deepObject",value:y,...s});x&&f.push(x)}else{const x=Bc({allowReserved:e,name:g,value:y});x&&f.push(x)}}return f.join("&")},gS=e=>{if(!e)return"stream";const n=e.split(";")[0]?.trim();if(n){if(n.startsWith("application/json")||n.endsWith("+json"))return"json";if(n==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(s=>n.startsWith(s)))return"blob";if(n.startsWith("text/"))return"text"}},yS=(e,n)=>n?!!(e.headers.has(n)||e.query?.[n]||e.headers.get("Cookie")?.includes(`${n}=`)):!1,bS=async({security:e,...n})=>{for(const s of e){if(yS(n,s.name))continue;const r=await fS(s,n.auth);if(!r)continue;const c=s.name??"Authorization";switch(s.in){case"query":n.query||(n.query={}),n.query[c]=r;break;case"cookie":n.headers.append("Cookie",`${c}=${r}`);break;default:n.headers.set(c,r);break}}},Eg=e=>pS({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:Ub(e.querySerializer),url:e.url}),Dg=(e,n)=>{const s={...e,...n};return s.baseUrl?.endsWith("/")&&(s.baseUrl=s.baseUrl.substring(0,s.baseUrl.length-1)),s.headers=Lb(e.headers,n.headers),s},vS=e=>{const n=[];return e.forEach((s,r)=>{n.push([r,s])}),n},Lb=(...e)=>{const n=new Headers;for(const s of e){if(!s)continue;const r=s instanceof Headers?vS(s):Object.entries(s);for(const[c,f]of r)if(f===null)n.delete(c);else if(Array.isArray(f))for(const g of f)n.append(c,g);else f!==void 0&&n.set(c,typeof f=="object"?JSON.stringify(f):f)}return n};class Sm{fns=[];clear(){this.fns=[]}eject(n){const s=this.getInterceptorIndex(n);this.fns[s]&&(this.fns[s]=null)}exists(n){const s=this.getInterceptorIndex(n);return!!this.fns[s]}getInterceptorIndex(n){return typeof n=="number"?this.fns[n]?n:-1:this.fns.indexOf(n)}update(n,s){const r=this.getInterceptorIndex(n);return this.fns[r]?(this.fns[r]=s,n):!1}use(n){return this.fns.push(n),this.fns.length-1}}const xS=()=>({error:new Sm,request:new Sm,response:new Sm}),kS=Ub({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),wS={"Content-Type":"application/json"},Ib=(e={})=>({...oS,headers:wS,parseAs:"auto",querySerializer:kS,...e}),Vb=(e={})=>{let n=Dg(Ib(),e);const s=()=>({...n}),r=k=>(n=Dg(n,k),s()),c=xS(),f=async k=>{const S={...n,...k,fetch:k.fetch??n.fetch??globalThis.fetch,headers:Lb(n.headers,k.headers),serializedBody:void 0};S.security&&await bS({...S,security:S.security}),S.requestValidator&&await S.requestValidator(S),S.body!==void 0&&S.bodySerializer&&(S.serializedBody=S.bodySerializer(S.body)),(S.body===void 0||S.serializedBody==="")&&S.headers.delete("Content-Type");const j=Eg(S);return{opts:S,url:j}},g=async k=>{const{opts:S,url:j}=await f(k),A={redirect:"follow",...S,body:hS(S)};let z=new Request(j,A);for(const re of c.request.fns)re&&(z=await re(z,S));const $=S.fetch;let L=await $(z);for(const re of c.response.fns)re&&(L=await re(L,z,S));const P={request:z,response:L};if(L.ok){const re=(S.parseAs==="auto"?gS(L.headers.get("Content-Type")):S.parseAs)??"json";if(L.status===204||L.headers.get("Content-Length")==="0"){let q;switch(re){case"arrayBuffer":case"blob":case"text":q=await L[re]();break;case"formData":q=new FormData;break;case"stream":q=L.body;break;default:q={};break}return S.responseStyle==="data"?q:{data:q,...P}}let he;switch(re){case"arrayBuffer":case"blob":case"formData":case"json":case"text":he=await L[re]();break;case"stream":return S.responseStyle==="data"?L.body:{data:L.body,...P}}return re==="json"&&(S.responseValidator&&await S.responseValidator(he),S.responseTransformer&&(he=await S.responseTransformer(he))),S.responseStyle==="data"?he:{data:he,...P}}const V=await L.text();let ne;try{ne=JSON.parse(V)}catch{}const X=ne??V;let ee=X;for(const re of c.error.fns)re&&(ee=await re(X,L,z,S));if(ee=ee||{},S.throwOnError)throw ee;return S.responseStyle==="data"?void 0:{error:ee,...P}},y=k=>S=>g({...S,method:k}),x=k=>async S=>{const{opts:j,url:A}=await f(S);return rS({...j,body:j.body,headers:j.headers,method:k,onRequest:async(z,$)=>{let L=new Request(z,$);for(const P of c.request.fns)P&&(L=await P(L,j));return L},url:A})};return{buildUrl:Eg,connect:y("CONNECT"),delete:y("DELETE"),get:y("GET"),getConfig:s,head:y("HEAD"),interceptors:c,options:y("OPTIONS"),patch:y("PATCH"),post:y("POST"),put:y("PUT"),request:g,setConfig:r,sse:{connect:x("CONNECT"),delete:x("DELETE"),get:x("GET"),head:x("HEAD"),options:x("OPTIONS"),patch:x("PATCH"),post:x("POST"),put:x("PUT"),trace:x("TRACE")},trace:y("TRACE")}},B=Vb(Ib()),SS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/sitemaps/submit",...e,headers:{"Content-Type":"application/json",...e.headers}}),jS=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}",...e}),$b=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}",...e}),AS=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),NS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan",...e}),_S=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-report",...e}),CS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-setup",...e}),uP=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft",...e}),dP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/create",...e,headers:{"Content-Type":"application/json",...e.headers}}),mP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/import-sitemap",...e,headers:{"Content-Type":"application/json",...e.headers}}),pP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/apply-sitemap-selection",...e,headers:{"Content-Type":"application/json",...e.headers}}),hP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/upsert-target",...e,headers:{"Content-Type":"application/json",...e.headers}}),fP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/exclude-target",...e,headers:{"Content-Type":"application/json",...e.headers}}),gP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/apply-assignments",...e,headers:{"Content-Type":"application/json",...e.headers}}),yP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/preview-assignments",...e,headers:{"Content-Type":"application/json",...e.headers}}),bP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/replace-assignments",...e,headers:{"Content-Type":"application/json",...e.headers}}),vP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/apply-paired-assignments",...e,headers:{"Content-Type":"application/json",...e.headers}}),xP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/remove-assignment",...e,headers:{"Content-Type":"application/json",...e.headers}}),kP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/upsert-group",...e,headers:{"Content-Type":"application/json",...e.headers}}),wP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/remove-group",...e,headers:{"Content-Type":"application/json",...e.headers}}),SP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/preview-group-membership",...e,headers:{"Content-Type":"application/json",...e.headers}}),jP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/apply-group-membership",...e,headers:{"Content-Type":"application/json",...e.headers}}),AP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/upsert-competitor",...e,headers:{"Content-Type":"application/json",...e.headers}}),NP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/remove-competitor",...e,headers:{"Content-Type":"application/json",...e.headers}}),_P=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/compile-preview",...e}),CP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/diff-preview",...e}),zP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/publish",...e,headers:{"Content-Type":"application/json",...e.headers}}),EP=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-plan/draft/actions/discard",...e}),Gb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-overview",...e}),zS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-property-evidence",...e}),ES=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-question-result",...e}),DS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/measurement-property-competitors",...e}),TS=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects",...e}),RS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/research/runs",...e}),OS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/research/runs",...e,headers:{"Content-Type":"application/json",...e.headers}}),qS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/research/runs/{runId}",...e}),BS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/locations",...e,headers:{"Content-Type":"application/json",...e.headers}}),MS=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/locations/{label}",...e}),PS=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/locations/default",...e,headers:{"Content-Type":"application/json",...e.headers}}),US=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/queries",...e,headers:{"Content-Type":"application/json",...e.headers}}),Hb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/queries",...e}),LS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/queries",...e,headers:{"Content-Type":"application/json",...e.headers}}),IS=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/queries",...e,headers:{"Content-Type":"application/json",...e.headers}}),VS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/queries/generate",...e,headers:{"Content-Type":"application/json",...e.headers}}),$S=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/competitors",...e}),GS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/competitors",...e,headers:{"Content-Type":"application/json",...e.headers}}),HS=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/competitors",...e,headers:{"Content-Type":"application/json",...e.headers}}),KS=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/competitors/{id}",...e}),Kb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/runs",...e}),QS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/runs",...e,headers:{"Content-Type":"application/json",...e.headers}}),ZS=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/runs",...e}),FS=e=>(e?.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/runs",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Qb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/runs/{id}",...e}),YS=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/apply",...e,headers:{"Content-Type":"application/json",...e.headers}}),XS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/history",...e}),JS=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/history",...e}),WS=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/timeline",...e}),ej=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/analytics/metrics",...e}),tj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/snapshots/diff",...e}),Zb=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/settings",...e}),aj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/settings/providers/{name}",...e,headers:{"Content-Type":"application/json",...e.headers}}),nj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/settings/google",...e,headers:{"Content-Type":"application/json",...e.headers}}),ij=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/settings/bing",...e,headers:{"Content-Type":"application/json",...e.headers}}),sj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/settings/cdp",...e,headers:{"Content-Type":"application/json",...e.headers}}),oj=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/schedule",...e}),Fb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/schedule",...e}),rj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/schedule",...e,headers:{"Content-Type":"application/json",...e.headers}}),lj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/notifications",...e}),cj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/notifications",...e,headers:{"Content-Type":"application/json",...e.headers}}),uj=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/notifications/{id}",...e}),dj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/notifications/{id}/test",...e}),mj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/telemetry/onboarding",...e,headers:{"Content-Type":"application/json",...e.headers}}),pj=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/cdp/status",...e}),hj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/connections",...e}),fj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/connect",...e,headers:{"Content-Type":"application/json",...e.headers}}),gj=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/connections/{type}",...e}),yj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/properties",...e}),bj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/connections/{type}/property",...e,headers:{"Content-Type":"application/json",...e.headers}}),vj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/connections/{type}/sitemap",...e,headers:{"Content-Type":"application/json",...e.headers}}),xj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/sync",...e,headers:{"Content-Type":"application/json",...e.headers}}),kj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/performance",...e}),wj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/performance/daily",...e}),Sj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/inspect",...e,headers:{"Content-Type":"application/json",...e.headers}}),jj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/inspections",...e}),Aj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/deindexed",...e}),Yb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/coverage",...e}),Nj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/coverage/history",...e}),_j=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/sitemaps",...e}),Cj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/gsc/inspect-sitemap",...e,headers:{"Content-Type":"application/json",...e.headers}}),zj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/google/indexing/request",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ej=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/locations",...e}),Dj=e=>(e.client??B).put({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/locations/{locationName}/selection",...e,headers:{"Content-Type":"application/json",...e.headers}}),Tj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/sync",...e,headers:{"Content-Type":"application/json",...e.headers}}),Rj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/keywords",...e}),Oj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/place-actions",...e}),qj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/lodging",...e}),Bj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/places",...e}),Mj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/gbp/summary",...e}),Pj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/connect",...e,headers:{"Content-Type":"application/json",...e.headers}}),Uj=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/disconnect",...e}),Lj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/status",...e}),Ij=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/sites",...e}),Vj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/set-site",...e,headers:{"Content-Type":"application/json",...e.headers}}),Xb=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/coverage",...e}),$j=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/inspections",...e}),Gj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/inspect-url",...e,headers:{"Content-Type":"application/json",...e.headers}}),Hj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/inspect-sitemap",...e,headers:{"Content-Type":"application/json",...e.headers}}),Kj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/request-indexing",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/bing/performance",...e}),Zj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/connect",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fj=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/disconnect",...e}),Yj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/status",...e}),Xj=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/sync",...e,headers:{"Content-Type":"application/json",...e.headers}}),Jj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/traffic",...e}),Wj=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/ai-referral-daily",...e}),e4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/social-referral-history",...e}),t4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/ga/session-history",...e}),a4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/insights",...e}),n4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/report",...e}),i4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/health/history",...e}),s4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/citations/visibility",...e}),o4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/content/dismissals",...e,headers:{"Content-Type":"application/json",...e.headers}}),r4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/overview",...e}),l4=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/status",...e}),c4=e=>(e?.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/install",...e}),u4=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/syncs",...e}),d4=e=>(e?.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/syncs",...e,headers:{"Content-Type":"application/json",...e?.headers}}),m4=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/syncs/latest",...e}),p4=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/releases",...e}),h4=e=>(e?.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/latest-release",...e}),f4=e=>(e.client??B).delete({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/backlinks/cache/{release}",...e}),g4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/backlinks/extract",...e,headers:{"Content-Type":"application/json",...e.headers}}),y4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/backlinks/summary",...e}),b4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/backlinks/domains",...e}),v4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/backlinks/history",...e}),x4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/connect/cloud-run",...e,headers:{"Content-Type":"application/json",...e.headers}}),k4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/connect/wordpress",...e,headers:{"Content-Type":"application/json",...e.headers}}),w4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/connect/vercel",...e,headers:{"Content-Type":"application/json",...e.headers}}),S4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/sources/{id}/sync",...e,headers:{"Content-Type":"application/json",...e.headers}}),j4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/sources/{id}/backfill",...e,headers:{"Content-Type":"application/json",...e.headers}}),A4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/sources",...e}),N4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/status",...e}),_4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/sources/{id}",...e}),C4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/traffic/events",...e}),z4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/discover/run",...e,headers:{"Content-Type":"application/json",...e.headers}}),E4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/discover/sessions",...e}),D4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/discover/sessions/{id}",...e}),T4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/discover/sessions/{id}/promote",...e}),R4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/discover/sessions/{id}/promote",...e,headers:{"Content-Type":"application/json",...e.headers}}),O4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/technical-aeo",...e}),q4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/technical-aeo/pages",...e}),B4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/technical-aeo/trend",...e}),M4=e=>(e.client??B).post({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/technical-aeo/runs",...e,headers:{"Content-Type":"application/json",...e.headers}}),P4=e=>(e.client??B).get({security:[{scheme:"bearer",type:"http"}],url:"/api/v1/projects/{name}/agent/providers",...e});function U4(e){const n={baseUrl:e.baseUrl,fetch:e.fetch,headers:{...e.headers??{}}};return Vb(n)}class Na extends Error{code;statusCode;details;constructor(n,s,r,c){super(n),this.name="ApiError",this.code=r??"UNKNOWN",this.statusCode=s,this.details=c}}function L4(){if(typeof window>"u")return;const e=window.__CANONRY_CONFIG__?.embed?.renderToken;return typeof e=="string"&&e.length>0?e:void 0}function Ap(e){const n=L4();if(!n)return e;let s;const r=typeof window<"u"&&window.location?window.location.href:"http://localhost/";try{s=new URL(e,r)}catch{return e}const c=new URL(r).origin;if(s.origin!==c)return e;const g=`${_p().replace(/\/$/,"")}/api/v1`;return s.pathname!==g&&!s.pathname.startsWith(`${g}/`)?e:(s.searchParams.set("token",n),/^[a-z][a-z\d+.-]*:/i.test(e)?s.toString():`${s.pathname}${s.search}${s.hash}`)}function I4(e,n){const s={method:e.method,headers:e.headers,cache:e.cache,credentials:e.credentials,integrity:e.integrity,keepalive:e.keepalive,mode:e.mode,redirect:e.redirect,referrer:e.referrer,referrerPolicy:e.referrerPolicy,signal:e.signal};return e.body&&(s.body=e.body,s.duplex="half"),new Request(n,s)}function Jb(){if(typeof window>"u")return null;const e=window.__CANONRY_CONFIG__?.embed;return e?.enabled?e:null}function V4(){return typeof window>"u"?!0:window.__CANONRY_CONFIG__?.dashboard?.showResourceLinks!==!1}function $4(){return typeof window>"u"?!0:window.__CANONRY_CONFIG__?.dashboard?.showAgentBar!==!1}function G4(){return typeof window>"u"?!0:window.__CANONRY_CONFIG__?.dashboard?.showUpdateNotification!==!1}function H4(){return Jb()!==null}function K4(){return typeof window<"u"&&window.__CANONRY_CONFIG__?.basePath?window.__CANONRY_CONFIG__.basePath.replace(/\/$/,"")+"/api/v1":"/api/v1"}const Np=K4();function Q4(){const e=typeof window<"u"&&window.location?window.location.origin:"";return typeof window<"u"&&window.__CANONRY_CONFIG__?.basePath?e+window.__CANONRY_CONFIG__.basePath.replace(/\/$/,""):e}function _p(){return typeof window<"u"&&window.__CANONRY_CONFIG__?.basePath?window.__CANONRY_CONFIG__.basePath.replace(/\/$/,""):""}function Z4(e){const n=e.trim().toLowerCase().replace(/^\[|\]$/g,"");return n==="localhost"||n==="::1"?!0:/^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n)}function F4(e,n){if(e.protocol!=="http:"&&e.protocol!=="https:"||!Z4(e.hostname))return;const s=e.port?`:${e.port}`:"",r=n?n.replace(/\/$/,""):"";return`${e.protocol}//localhost${s}${r}`}function DP(e){return`${e.replace(/\/$/,"")}/api/v1/google/callback`}function Y4(){if(!(typeof window>"u"))return F4(window.location,_p())}function X4(e){return`${_p()}${e}`}function J4(e,n){if(n===404)return"Health endpoint returned 404. Check basePath or reverse-proxy configuration and make sure the dashboard reaches /health instead of an API-prefixed route."}function W4(){return""}function jm(){return!!W4()}let Wb=null;function Tg(e){Wb=e}function Cp(){Wb?.()}const oe=U4({baseUrl:Q4()});oe.interceptors.response.use((e,n)=>(e.status===401&&!n.url.includes("/api/v1/session")&&Cp(),e));oe.interceptors.request.use(e=>{const n=Ap(e.url);return n===e.url?e:I4(e,n)});async function ce(e){const n=await e();if(n.error!==void 0&&n.error!==null){const s=n.response.status;let r=`API ${s}: ${n.response.statusText}`,c,f;if(typeof n.error=="object"&&n.error!==null){const g=n.error.error;if(typeof g=="string")r=g;else if(g&&typeof g=="object"){const y=g;y.message&&(r=y.message),y.code&&(c=y.code),y.details&&(f=y.details)}else{const y=n.error;y.message&&(r=y.message),y.code&&(c=y.code),y.details&&(f=y.details)}}else typeof n.error=="string"&&(r=n.error);throw new Na(r,s,c,f)}if(n.response.status!==204)return n.data}async function lo(e,n){const s=n?.body!=null,r=await fetch(Ap(`${Np}${e}`),{...n,credentials:n?.credentials??"same-origin",headers:{...s?{"Content-Type":"application/json"}:{},...n?.headers}});if(!r.ok){const c=await r.text();let f=`API ${r.status}: ${r.statusText}`,g,y;if(c)try{const x=JSON.parse(c);typeof x.error=="string"?f=x.error:x.error?.message?(f=x.error.message,g=x.error.code,y=x.error.details):x.message&&(f=x.message)}catch{f=c}throw r.status===401&&!e.startsWith("/session")&&!e.startsWith("/auth/")&&Cp(),new Na(f,r.status,g,y)}if(r.status!==204)return r.json()}function e5(e){return ce(()=>$b({client:oe,path:{name:e}}))}function TP(e){return ce(()=>Kb({client:oe,path:{name:e}}))}function bc(e){return ce(()=>Qb({client:oe,path:{id:e}}))}function ev(e){return ce(()=>Hb({client:oe,path:{name:e}}))}function t5(e){return ce(()=>$S({client:oe,path:{name:e}}))}function a5(e,n,s){return ce(()=>WS({client:oe,path:{name:e},query:{location:n,limit:s}}))}function tv(e,n){return ce(()=>r4({client:oe,path:{name:e},query:{location:n?.location,since:n?.since}}))}function zp(e,n){return ce(()=>AS({client:oe,path:{name:e},body:n}))}function n5(e,n){return ce(()=>IS({client:oe,path:{name:e},body:{queries:n}}))}function i5(e,n){return ce(()=>LS({client:oe,path:{name:e},body:{queries:n}}))}function RP(e,n){return ce(()=>US({client:oe,path:{name:e},body:{queries:n}}))}function s5(e,n){return ce(()=>o4({client:oe,path:{name:e},body:n}))}function o5(e,n){return ce(()=>HS({client:oe,path:{name:e},body:{competitors:n}}))}function OP(e,n){return ce(()=>GS({client:oe,path:{name:e},body:{competitors:n}}))}function qP(e,n){return ce(()=>KS({client:oe,path:{name:e,id:n}}))}async function BP(e,n){const s=await e5(e);return zp(e,{displayName:n.displayName??s.displayName??s.name,canonicalDomain:n.canonicalDomain??s.canonicalDomain,ownedDomains:n.ownedDomains??s.ownedDomains,aliases:n.aliases??s.aliases,country:n.country??s.country,language:n.language??s.language,tags:s.tags,labels:s.labels,providers:n.providers??s.providers,providerModels:n.providerModels??s.providerModels??{},locations:n.locations??s.locations,defaultLocation:n.defaultLocation!==void 0?n.defaultLocation:s.defaultLocation,autoExtractBacklinks:s.autoExtractBacklinks})}function r5(e,n){const s={};return n?.location&&(s.location=n.location),n?.allLocations&&(s.allLocations=!0),n?.noLocation&&(s.noLocation=!0),ce(()=>QS({client:oe,path:{name:e},body:s}))}function MP(e,n){return ce(()=>BS({client:oe,path:{name:e},body:n}))}async function PP(e,n){await ce(()=>MS({client:oe,path:{name:e,label:n}}))}function UP(e,n){return ce(()=>PS({client:oe,path:{name:e},body:{label:n}}))}async function LP(e){await ce(()=>jS({client:oe,path:{name:e}}))}function IP(){return ce(()=>Zb({client:oe}))}function Rg(){return lo("/session")}function l5(e){return lo("/session/setup",{method:"POST",body:JSON.stringify({password:e})})}function c5(e){return lo("/session",{method:"POST",body:JSON.stringify({password:e})})}function Og(){return lo("/auth/session")}function u5(e,n){return lo("/auth/login",{method:"POST",body:JSON.stringify({name:e,password:n})})}function qg(){return lo("/auth/logout",{method:"POST"})}function d5(e,n){return ce(()=>aj({client:oe,path:{name:e},body:n}))}async function m5(e){for(let n=0;n<2;n+=1)try{await ce(()=>mj({client:oe,body:e}));return}catch(s){if(!(!(s instanceof Na)||s.statusCode>=500)||n===1)return}}function VP(e){return ce(()=>nj({client:oe,body:e}))}async function $P(e){try{return await ce(()=>Fb({client:oe,path:{name:e}}))}catch(n){if(n instanceof Na&&n.statusCode===404)return null;throw n}}function GP(e,n){return ce(()=>rj({client:oe,path:{name:e},body:n}))}async function HP(e){await ce(()=>oj({client:oe,path:{name:e}}))}function KP(e){return ce(()=>lj({client:oe,path:{name:e}}))}function QP(e,n){return ce(()=>cj({client:oe,path:{name:e},body:n}))}async function ZP(e,n){await ce(()=>uj({client:oe,path:{name:e,id:n}}))}function FP(e,n){return ce(()=>dj({client:oe,path:{name:e,id:n}}))}function p5(e,n,s){return ce(()=>VS({client:oe,path:{name:e},body:{provider:n,count:s}}))}function h5(e){return ce(()=>YS({client:oe,body:e}))}function f5(e){return ce(()=>FS({client:oe,body:e??{}}))}function YP(e,n){const s=Y4();return ce(()=>fj({client:oe,path:{name:e},body:{type:n,...s?{publicUrl:s}:{}}}))}function XP(e,n){return ce(()=>gj({client:oe,path:{name:e,type:n}}))}function JP(e,n,s){return ce(()=>bj({client:oe,path:{name:e,type:n},body:{propertyId:s}}))}function WP(e,n,s){return ce(()=>vj({client:oe,path:{name:e,type:n},body:{sitemapUrl:s}}))}function g5(e,n){return ce(()=>xj({client:oe,path:{name:e},body:n??{}}))}function eU(e,n){const s={};return n&&n!=="all"&&(s.window=n),ce(()=>ej({client:oe,path:{name:e},query:s}))}function tU(e,n){return ce(()=>Sj({client:oe,path:{name:e},body:{url:n}}))}function y5(e){return ce(()=>Yb({client:oe,path:{name:e}}))}function b5(e,n){return ce(()=>Cj({client:oe,path:{name:e},body:n??{}}))}function aU(e,n){return ce(()=>_j({client:oe,path:{name:e},query:n?{sitemapIndex:n}:void 0}))}function nU(e,n){return ce(()=>SS({client:oe,path:{name:e},body:{sitemapUrls:n}}))}function v5(e,n){return ce(()=>M4({client:oe,path:{name:e},body:n??{}}))}function iU(e,n){return ce(()=>z4({client:oe,path:{name:e},body:n??{}}))}function sU(e,n,s){return ce(()=>R4({client:oe,path:{name:e,id:n},body:s??{}}))}function oU(){return ce(()=>pj({client:oe}))}function rU(e,n){return ce(()=>sj({client:oe,body:{host:e,port:n}}))}function lU(e,n){return ce(()=>zj({client:oe,path:{name:e},body:n}))}function cU(e,n){return ce(()=>Pj({client:oe,path:{name:e},body:{apiKey:n}}))}function uU(e){return ce(()=>Uj({client:oe,path:{name:e}}))}function dU(e,n){return ce(()=>Vj({client:oe,path:{name:e},body:{siteUrl:n}}))}function x5(e){return ce(()=>Xb({client:oe,path:{name:e}}))}function mU(e,n){return ce(()=>Gj({client:oe,path:{name:e},body:{url:n}}))}function pU(e,n){return ce(()=>Hj({client:oe,path:{name:e},body:{}}))}function hU(e,n){return ce(()=>Kj({client:oe,path:{name:e},body:n}))}function fU(e){return ce(()=>ij({client:oe,body:{apiKey:e}}))}function av(e){return e?/filename\s*=\s*"?([^";]+)"?/i.exec(e)?.[1]??null:null}async function gU(e,n="agency",s){const r=new URLSearchParams({audience:n});s!==void 0&&r.set("period",String(s));const c=await fetch(Ap(`${Np}/projects/${encodeURIComponent(e)}/report.html?${r.toString()}`),{credentials:"same-origin",headers:{}});if(!c.ok)throw new Na(`Failed to download report: ${c.status}`,c.status);const f=await c.blob(),g=URL.createObjectURL(f),y=av(c.headers.get("Content-Disposition"))??`canonry-report-${e}.html`,x=document.createElement("a");x.href=g,x.download=y,document.body.appendChild(x),x.click(),document.body.removeChild(x),URL.revokeObjectURL(g)}async function yU(e,n){const s=await fetch(`${Np}/projects/${encodeURIComponent(e)}/results/export?format=${n}`,{credentials:"same-origin",headers:{}});if(!s.ok)throw new Na(`Failed to download results: ${s.status}`,s.status);const r=await s.blob(),c=URL.createObjectURL(r),f=av(s.headers.get("Content-Disposition"))??`canonry-results-${e}.${n}`,g=document.createElement("a");g.href=c,g.download=f,document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(c)}function bU(e,n){return ce(()=>Xj({client:oe,path:{name:e},body:{}}))}function vU(e,n){return ce(()=>Zj({client:oe,path:{name:e},body:n}))}function xU(e){return ce(()=>Fj({client:oe,path:{name:e}}))}function kU(e,n){return ce(()=>x4({client:oe,path:{name:e},body:n}))}function wU(e,n){return ce(()=>k4({client:oe,path:{name:e},body:n}))}function SU(e,n){return ce(()=>w4({client:oe,path:{name:e},body:n}))}function jU(e,n,s){return ce(()=>S4({client:oe,path:{name:e,id:n},body:s??{}}))}function AU(e,n,s){return ce(()=>j4({client:oe,path:{name:e,id:n},body:{}}))}function k5(e,n){return ce(()=>a4({client:oe,path:{name:e},query:{runId:n}}))}function w5(e){if(!e||typeof e!="object")return;const n=e;if(!(typeof n.current!="string"||typeof n.latest!="string"||typeof n.url!="string"||typeof n.upgradeCommand!="string"))return{current:n.current,latest:n.latest,url:n.url,upgradeCommand:n.upgradeCommand}}async function S5(e,n){const s=X4(e);try{const r=await fetch(s,{credentials:"same-origin"});if(!r.ok)return{label:n,state:"error",detail:`${n} ${r.status}: ${r.statusText}`,statusCode:r.status,hint:J4(e,r.status)};const c=await r.json(),f=typeof c.version=="string"?c.version:"unknown",g=typeof c.databaseUrlConfigured=="boolean"?c.databaseUrlConfigured:void 0,y=typeof c.lastHeartbeatAt=="string"?c.lastHeartbeatAt:void 0,x=w5(c.updateAvailable),k=[f,g===!1?"database not configured":"database configured",y?`heartbeat ${y}`:void 0].filter(Boolean).join(" · ");return{label:n,state:"ok",detail:k,version:f,databaseConfigured:g,lastHeartbeatAt:y,...x?{updateAvailable:x}:{}}}catch(r){return{label:n,state:"error",detail:r instanceof Error?r.message:"unreachable",hint:e==="/health"?`Request failed while checking ${s}. If this instance is served behind a sub-path, verify the dashboard basePath and reverse-proxy rewrites.`:void 0}}}function NU(){return ce(()=>l4({client:oe}))}function _U(){return ce(()=>c4({client:oe}))}function CU(){return ce(()=>m4({client:oe}))}function zU(){return ce(()=>u4({client:oe}))}function EU(e){return ce(()=>d4({client:oe,body:e?{release:e}:{}}))}function DU(){return ce(()=>p4({client:oe}))}function TU(){return ce(()=>h4({client:oe}))}function RU(e){return ce(()=>f4({client:oe,path:{release:e}}))}function OU(e,n={}){return ce(()=>y4({client:oe,path:{name:e},query:{release:n.release,excludeCrawlers:n.excludeCrawlers?"1":void 0,source:n.source}}))}function qU(e,n={}){return ce(()=>b4({client:oe,path:{name:e},query:{limit:n.limit!==void 0?String(n.limit):void 0,offset:n.offset!==void 0?String(n.offset):void 0,release:n.release,excludeCrawlers:n.excludeCrawlers?"1":void 0,source:n.source}}))}function BU(e,n={}){return ce(()=>v4({client:oe,path:{name:e},query:{source:n.source}}))}function MU(e,n){return ce(()=>g4({client:oe,path:{name:e},body:{release:void 0}}))}const nv={account:null,canWrite:!0,isAdmin:!0},iv=D.createContext(nv);function j5({account:e,children:n}){const s=e?{account:e,canWrite:e.role==="admin",isAdmin:e.role==="admin"}:nv;return u.jsx(iv.Provider,{value:s,children:n})}function Rr(){return D.useContext(iv)}const sv="View only — your account cannot change this.";function Yt(e){return(...n)=>{e(...n)}}const A5=6e3,N5=5,_5=180;let Xt=[],C5=0;const Qm=new Set,Zm=new Map,Fm=new Map;function vc(){const e=[...Xt];for(const n of Qm)n(e)}function Ep(e){const n=Zm.get(e);n&&(clearTimeout(n),Zm.delete(e));const s=Fm.get(e);s&&(clearTimeout(s),Fm.delete(e))}function ov(e){Ep(e);const n=Xt.length;Xt=Xt.filter(s=>s.id!==e),Xt.length!==n&&vc()}function Bg(e){Ep(e.id),Zm.set(e.id,setTimeout(()=>{Ym(e.id)},e.durationMs))}function z5(e,n,s){return typeof e=="string"?{title:e,tone:n,durationMs:s}:e}function sa(e,n="negative",s=A5){const r=z5(e,n,s),c={id:String(++C5),title:r.title,detail:r.detail,tone:r.tone??n,durationMs:r.durationMs??s,dedupeKey:r.dedupeKey,cta:r.cta,state:"open"};if(r.dedupeKey){const f=Xt.find(g=>g.dedupeKey===r.dedupeKey);if(f){if((r.dedupeMode??"drop")==="drop")return f.id;const g={...f,title:c.title,detail:c.detail,tone:c.tone,durationMs:c.durationMs,cta:c.cta,state:"open"};return Xt=Xt.map(y=>y.id===f.id?g:y),vc(),Bg(g),f.id}}return Xt.length>=N5&&ov(Xt[0].id),Xt=[...Xt,c],vc(),Bg(c),c.id}function Ym(e){const n=Xt.find(s=>s.id===e);!n||n.state==="closing"||(Ep(e),Xt=Xt.map(s=>s.id===e?{...s,state:"closing"}:s),vc(),Fm.set(e,setTimeout(()=>{ov(e)},_5)))}function E5(e){return Qm.add(e),()=>{Qm.delete(e)}}function Mg(){return Xt}const D5=5*6e4,Xm=30*6e4,PU=3e4,UU=6e4,Js=3e4,T5=2e3,R5=3e4;function O5(){return new kw({defaultOptions:{queries:{staleTime:D5,retry:1,refetchOnWindowFocus:!1}},mutationCache:new ww({onError:(n,s,r,c)=>{c.meta?.skipGlobalErrorToast||sa({title:n instanceof Error?n.message:"An unexpected error occurred",tone:"negative"})}})})}const q5="modulepreload",B5=function(e,n){return new URL(e,n).href},Pg={},vi=function(n,s,r){let c=Promise.resolve();if(s&&s.length>0){let k=function(S){return Promise.all(S.map(j=>Promise.resolve(j).then(A=>({status:"fulfilled",value:A}),A=>({status:"rejected",reason:A}))))};const g=document.getElementsByTagName("link"),y=document.querySelector("meta[property=csp-nonce]"),x=y?.nonce||y?.getAttribute("nonce");c=k(s.map(S=>{if(S=B5(S,r),S in Pg)return;Pg[S]=!0;const j=S.endsWith(".css"),A=j?'[rel="stylesheet"]':"";if(r)for(let $=g.length-1;$>=0;$--){const L=g[$];if(L.href===S&&(!j||L.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${S}"]${A}`))return;const z=document.createElement("link");if(z.rel=j?"stylesheet":q5,j||(z.as="script"),z.crossOrigin="",z.href=S,x&&z.setAttribute("nonce",x),document.head.appendChild(z),j)return new Promise(($,L)=>{z.addEventListener("load",$),z.addEventListener("error",()=>L(new Error(`Unable to preload CSS for ${S}`)))})}))}function f(g){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=g,window.dispatchEvent(y),!y.defaultPrevented)throw g}return c.then(g=>{for(const y of g||[])y.status==="rejected"&&f(y.reason);return n().catch(f)})};function Q(e,n,s){function r(y,x){if(y._zod||Object.defineProperty(y,"_zod",{value:{def:x,constr:g,traits:new Set},enumerable:!1}),y._zod.traits.has(e))return;y._zod.traits.add(e),n(y,x);const k=g.prototype,S=Object.keys(k);for(let j=0;j<S.length;j++){const A=S[j];A in y||(y[A]=k[A].bind(y))}}const c=s?.Parent??Object;class f extends c{}Object.defineProperty(f,"name",{value:e});function g(y){var x;const k=s?.Parent?new f:this;r(k,y),(x=k._zod).deferred??(x.deferred=[]);for(const S of k._zod.deferred)S();return k}return Object.defineProperty(g,"init",{value:r}),Object.defineProperty(g,Symbol.hasInstance,{value:y=>s?.Parent&&y instanceof s.Parent?!0:y?._zod?.traits?.has(e)}),Object.defineProperty(g,"name",{value:e}),g}class Fs extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class rv extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}const lv={};function fi(e){return lv}function cv(e){const n=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,c])=>n.indexOf(+r)===-1).map(([r,c])=>c)}function Jm(e,n){return typeof n=="bigint"?n.toString():n}function Mc(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Dp(e){return e==null}function Tp(e){const n=e.startsWith("^")?1:0,s=e.endsWith("$")?e.length-1:e.length;return e.slice(n,s)}function M5(e,n){const s=(e.toString().split(".")[1]||"").length,r=n.toString();let c=(r.split(".")[1]||"").length;if(c===0&&/\d?e-\d?/.test(r)){const x=r.match(/\d?e-(\d?)/);x?.[1]&&(c=Number.parseInt(x[1]))}const f=s>c?s:c,g=Number.parseInt(e.toFixed(f).replace(".","")),y=Number.parseInt(n.toFixed(f).replace(".",""));return g%y/10**f}const Ug=Symbol("evaluating");function We(e,n,s){let r;Object.defineProperty(e,n,{get(){if(r!==Ug)return r===void 0&&(r=Ug,r=s()),r},set(c){Object.defineProperty(e,n,{value:c})},configurable:!0})}function ts(e,n,s){Object.defineProperty(e,n,{value:s,writable:!0,enumerable:!0,configurable:!0})}function xi(...e){const n={};for(const s of e){const r=Object.getOwnPropertyDescriptors(s);Object.assign(n,r)}return Object.defineProperties({},n)}function Lg(e){return JSON.stringify(e)}function P5(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const uv="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Cr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const U5=Mc(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Ws(e){if(Cr(e)===!1)return!1;const n=e.constructor;if(n===void 0||typeof n!="function")return!0;const s=n.prototype;return!(Cr(s)===!1||Object.prototype.hasOwnProperty.call(s,"isPrototypeOf")===!1)}function dv(e){return Ws(e)?{...e}:Array.isArray(e)?[...e]:e}const L5=new Set(["string","number","symbol"]);function eo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ki(e,n,s){const r=new e._zod.constr(n??e._zod.def);return(!n||s?.parent)&&(r._zod.parent=e),r}function we(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function I5(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const V5={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function $5(e,n){const s=e._zod.def,r=s.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const f=xi(e._zod.def,{get shape(){const g={};for(const y in n){if(!(y in s.shape))throw new Error(`Unrecognized key: "${y}"`);n[y]&&(g[y]=s.shape[y])}return ts(this,"shape",g),g},checks:[]});return ki(e,f)}function G5(e,n){const s=e._zod.def,r=s.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const f=xi(e._zod.def,{get shape(){const g={...e._zod.def.shape};for(const y in n){if(!(y in s.shape))throw new Error(`Unrecognized key: "${y}"`);n[y]&&delete g[y]}return ts(this,"shape",g),g},checks:[]});return ki(e,f)}function H5(e,n){if(!Ws(n))throw new Error("Invalid input to extend: expected a plain object");const s=e._zod.def.checks;if(s&&s.length>0){const f=e._zod.def.shape;for(const g in n)if(Object.getOwnPropertyDescriptor(f,g)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const c=xi(e._zod.def,{get shape(){const f={...e._zod.def.shape,...n};return ts(this,"shape",f),f}});return ki(e,c)}function K5(e,n){if(!Ws(n))throw new Error("Invalid input to safeExtend: expected a plain object");const s=xi(e._zod.def,{get shape(){const r={...e._zod.def.shape,...n};return ts(this,"shape",r),r}});return ki(e,s)}function Q5(e,n){const s=xi(e._zod.def,{get shape(){const r={...e._zod.def.shape,...n._zod.def.shape};return ts(this,"shape",r),r},get catchall(){return n._zod.def.catchall},checks:[]});return ki(e,s)}function Z5(e,n,s){const c=n._zod.def.checks;if(c&&c.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const g=xi(n._zod.def,{get shape(){const y=n._zod.def.shape,x={...y};if(s)for(const k in s){if(!(k in y))throw new Error(`Unrecognized key: "${k}"`);s[k]&&(x[k]=e?new e({type:"optional",innerType:y[k]}):y[k])}else for(const k in y)x[k]=e?new e({type:"optional",innerType:y[k]}):y[k];return ts(this,"shape",x),x},checks:[]});return ki(n,g)}function F5(e,n,s){const r=xi(n._zod.def,{get shape(){const c=n._zod.def.shape,f={...c};if(s)for(const g in s){if(!(g in f))throw new Error(`Unrecognized key: "${g}"`);s[g]&&(f[g]=new e({type:"nonoptional",innerType:c[g]}))}else for(const g in c)f[g]=new e({type:"nonoptional",innerType:c[g]});return ts(this,"shape",f),f}});return ki(n,r)}function Ks(e,n=0){if(e.aborted===!0)return!0;for(let s=n;s<e.issues.length;s++)if(e.issues[s]?.continue!==!0)return!0;return!1}function Qs(e,n){return n.map(s=>{var r;return(r=s).path??(r.path=[]),s.path.unshift(e),s})}function rc(e){return typeof e=="string"?e:e?.message}function gi(e,n,s){const r={...e,path:e.path??[]};if(!e.message){const c=rc(e.inst?._zod.def?.error?.(e))??rc(n?.error?.(e))??rc(s.customError?.(e))??rc(s.localeError?.(e))??"Invalid input";r.message=c}return delete r.inst,delete r.continue,n?.reportInput||delete r.input,r}function Rp(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function zr(...e){const[n,s,r]=e;return typeof n=="string"?{message:n,code:"custom",input:s,inst:r}:{...n}}const mv=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,Jm,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},pv=Q("$ZodError",mv),hv=Q("$ZodError",mv,{Parent:Error});function Y5(e,n=s=>s.message){const s={},r=[];for(const c of e.issues)c.path.length>0?(s[c.path[0]]=s[c.path[0]]||[],s[c.path[0]].push(n(c))):r.push(n(c));return{formErrors:r,fieldErrors:s}}function X5(e,n=s=>s.message){const s={_errors:[]},r=c=>{for(const f of c.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(g=>r({issues:g}));else if(f.code==="invalid_key")r({issues:f.issues});else if(f.code==="invalid_element")r({issues:f.issues});else if(f.path.length===0)s._errors.push(n(f));else{let g=s,y=0;for(;y<f.path.length;){const x=f.path[y];y===f.path.length-1?(g[x]=g[x]||{_errors:[]},g[x]._errors.push(n(f))):g[x]=g[x]||{_errors:[]},g=g[x],y++}}};return r(e),s}const Op=e=>(n,s,r,c)=>{const f=r?Object.assign(r,{async:!1}):{async:!1},g=n._zod.run({value:s,issues:[]},f);if(g instanceof Promise)throw new Fs;if(g.issues.length){const y=new(c?.Err??e)(g.issues.map(x=>gi(x,f,fi())));throw uv(y,c?.callee),y}return g.value},qp=e=>async(n,s,r,c)=>{const f=r?Object.assign(r,{async:!0}):{async:!0};let g=n._zod.run({value:s,issues:[]},f);if(g instanceof Promise&&(g=await g),g.issues.length){const y=new(c?.Err??e)(g.issues.map(x=>gi(x,f,fi())));throw uv(y,c?.callee),y}return g.value},Pc=e=>(n,s,r)=>{const c=r?{...r,async:!1}:{async:!1},f=n._zod.run({value:s,issues:[]},c);if(f instanceof Promise)throw new Fs;return f.issues.length?{success:!1,error:new(e??pv)(f.issues.map(g=>gi(g,c,fi())))}:{success:!0,data:f.value}},J5=Pc(hv),Uc=e=>async(n,s,r)=>{const c=r?Object.assign(r,{async:!0}):{async:!0};let f=n._zod.run({value:s,issues:[]},c);return f instanceof Promise&&(f=await f),f.issues.length?{success:!1,error:new e(f.issues.map(g=>gi(g,c,fi())))}:{success:!0,data:f.value}},W5=Uc(hv),e6=e=>(n,s,r)=>{const c=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Op(e)(n,s,c)},t6=e=>(n,s,r)=>Op(e)(n,s,r),a6=e=>async(n,s,r)=>{const c=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return qp(e)(n,s,c)},n6=e=>async(n,s,r)=>qp(e)(n,s,r),i6=e=>(n,s,r)=>{const c=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Pc(e)(n,s,c)},s6=e=>(n,s,r)=>Pc(e)(n,s,r),o6=e=>async(n,s,r)=>{const c=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Uc(e)(n,s,c)},r6=e=>async(n,s,r)=>Uc(e)(n,s,r),l6=/^[cC][^\s-]{8,}$/,c6=/^[0-9a-z]+$/,u6=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,d6=/^[0-9a-vA-V]{20}$/,m6=/^[A-Za-z0-9]{27}$/,p6=/^[a-zA-Z0-9_-]{21}$/,h6=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,f6=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ig=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,g6=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,y6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function b6(){return new RegExp(y6,"u")}const v6=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,x6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,k6=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,w6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,S6=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fv=/^[A-Za-z0-9_-]*$/,j6=/^\+[1-9]\d{6,14}$/,gv="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",A6=new RegExp(`^${gv}$`);function yv(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function N6(e){return new RegExp(`^${yv(e)}$`)}function _6(e){const n=yv({precision:e.precision}),s=["Z"];e.local&&s.push(""),e.offset&&s.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${n}(?:${s.join("|")})`;return new RegExp(`^${gv}T(?:${r})$`)}const C6=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},z6=/^-?\d+$/,bv=/^-?\d+(?:\.\d+)?$/,E6=/^(?:true|false)$/i,D6=/^null$/i,T6=/^[^A-Z]*$/,R6=/^[^a-z]*$/,ya=Q("$ZodCheck",(e,n)=>{var s;e._zod??(e._zod={}),e._zod.def=n,(s=e._zod).onattach??(s.onattach=[])}),vv={number:"number",bigint:"bigint",object:"date"},xv=Q("$ZodCheckLessThan",(e,n)=>{ya.init(e,n);const s=vv[typeof n.value];e._zod.onattach.push(r=>{const c=r._zod.bag,f=(n.inclusive?c.maximum:c.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<f&&(n.inclusive?c.maximum=n.value:c.exclusiveMaximum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value<=n.value:r.value<n.value)||r.issues.push({origin:s,code:"too_big",maximum:typeof n.value=="object"?n.value.getTime():n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),kv=Q("$ZodCheckGreaterThan",(e,n)=>{ya.init(e,n);const s=vv[typeof n.value];e._zod.onattach.push(r=>{const c=r._zod.bag,f=(n.inclusive?c.minimum:c.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>f&&(n.inclusive?c.minimum=n.value:c.exclusiveMinimum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value>=n.value:r.value>n.value)||r.issues.push({origin:s,code:"too_small",minimum:typeof n.value=="object"?n.value.getTime():n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),O6=Q("$ZodCheckMultipleOf",(e,n)=>{ya.init(e,n),e._zod.onattach.push(s=>{var r;(r=s._zod.bag).multipleOf??(r.multipleOf=n.value)}),e._zod.check=s=>{if(typeof s.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof s.value=="bigint"?s.value%n.value===BigInt(0):M5(s.value,n.value)===0)||s.issues.push({origin:typeof s.value,code:"not_multiple_of",divisor:n.value,input:s.value,inst:e,continue:!n.abort})}}),q6=Q("$ZodCheckNumberFormat",(e,n)=>{ya.init(e,n),n.format=n.format||"float64";const s=n.format?.includes("int"),r=s?"int":"number",[c,f]=V5[n.format];e._zod.onattach.push(g=>{const y=g._zod.bag;y.format=n.format,y.minimum=c,y.maximum=f,s&&(y.pattern=z6)}),e._zod.check=g=>{const y=g.value;if(s){if(!Number.isInteger(y)){g.issues.push({expected:r,format:n.format,code:"invalid_type",continue:!1,input:y,inst:e});return}if(!Number.isSafeInteger(y)){y>0?g.issues.push({input:y,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!n.abort}):g.issues.push({input:y,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!n.abort});return}}y<c&&g.issues.push({origin:"number",input:y,code:"too_small",minimum:c,inclusive:!0,inst:e,continue:!n.abort}),y>f&&g.issues.push({origin:"number",input:y,code:"too_big",maximum:f,inclusive:!0,inst:e,continue:!n.abort})}}),B6=Q("$ZodCheckMaxLength",(e,n)=>{var s;ya.init(e,n),(s=e._zod.def).when??(s.when=r=>{const c=r.value;return!Dp(c)&&c.length!==void 0}),e._zod.onattach.push(r=>{const c=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<c&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const c=r.value;if(c.length<=n.maximum)return;const g=Rp(c);r.issues.push({origin:g,code:"too_big",maximum:n.maximum,inclusive:!0,input:c,inst:e,continue:!n.abort})}}),M6=Q("$ZodCheckMinLength",(e,n)=>{var s;ya.init(e,n),(s=e._zod.def).when??(s.when=r=>{const c=r.value;return!Dp(c)&&c.length!==void 0}),e._zod.onattach.push(r=>{const c=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>c&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const c=r.value;if(c.length>=n.minimum)return;const g=Rp(c);r.issues.push({origin:g,code:"too_small",minimum:n.minimum,inclusive:!0,input:c,inst:e,continue:!n.abort})}}),P6=Q("$ZodCheckLengthEquals",(e,n)=>{var s;ya.init(e,n),(s=e._zod.def).when??(s.when=r=>{const c=r.value;return!Dp(c)&&c.length!==void 0}),e._zod.onattach.push(r=>{const c=r._zod.bag;c.minimum=n.length,c.maximum=n.length,c.length=n.length}),e._zod.check=r=>{const c=r.value,f=c.length;if(f===n.length)return;const g=Rp(c),y=f>n.length;r.issues.push({origin:g,...y?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!n.abort})}}),Lc=Q("$ZodCheckStringFormat",(e,n)=>{var s,r;ya.init(e,n),e._zod.onattach.push(c=>{const f=c._zod.bag;f.format=n.format,n.pattern&&(f.patterns??(f.patterns=new Set),f.patterns.add(n.pattern))}),n.pattern?(s=e._zod).check??(s.check=c=>{n.pattern.lastIndex=0,!n.pattern.test(c.value)&&c.issues.push({origin:"string",code:"invalid_format",format:n.format,input:c.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(r=e._zod).check??(r.check=()=>{})}),U6=Q("$ZodCheckRegex",(e,n)=>{Lc.init(e,n),e._zod.check=s=>{n.pattern.lastIndex=0,!n.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:"regex",input:s.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),L6=Q("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=T6),Lc.init(e,n)}),I6=Q("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=R6),Lc.init(e,n)}),V6=Q("$ZodCheckIncludes",(e,n)=>{ya.init(e,n);const s=eo(n.includes),r=new RegExp(typeof n.position=="number"?`^.{${n.position}}${s}`:s);n.pattern=r,e._zod.onattach.push(c=>{const f=c._zod.bag;f.patterns??(f.patterns=new Set),f.patterns.add(r)}),e._zod.check=c=>{c.value.includes(n.includes,n.position)||c.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:c.value,inst:e,continue:!n.abort})}}),$6=Q("$ZodCheckStartsWith",(e,n)=>{ya.init(e,n);const s=new RegExp(`^${eo(n.prefix)}.*`);n.pattern??(n.pattern=s),e._zod.onattach.push(r=>{const c=r._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(s)}),e._zod.check=r=>{r.value.startsWith(n.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:r.value,inst:e,continue:!n.abort})}}),G6=Q("$ZodCheckEndsWith",(e,n)=>{ya.init(e,n);const s=new RegExp(`.*${eo(n.suffix)}$`);n.pattern??(n.pattern=s),e._zod.onattach.push(r=>{const c=r._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(s)}),e._zod.check=r=>{r.value.endsWith(n.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:r.value,inst:e,continue:!n.abort})}}),H6=Q("$ZodCheckOverwrite",(e,n)=>{ya.init(e,n),e._zod.check=s=>{s.value=n.tx(s.value)}});class K6{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const r=n.split(`
|
|
15
|
+
`).filter(g=>g),c=Math.min(...r.map(g=>g.length-g.trimStart().length)),f=r.map(g=>g.slice(c)).map(g=>" ".repeat(this.indent*2)+g);for(const g of f)this.content.push(g)}compile(){const n=Function,s=this?.args,c=[...(this?.content??[""]).map(f=>` ${f}`)];return new n(...s,c.join(`
|
|
16
|
+
`))}}const Q6={major:4,minor:3,patch:6},yt=Q("$ZodType",(e,n)=>{var s;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=Q6;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const c of r)for(const f of c._zod.onattach)f(e);if(r.length===0)(s=e._zod).deferred??(s.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const c=(g,y,x)=>{let k=Ks(g),S;for(const j of y){if(j._zod.def.when){if(!j._zod.def.when(g))continue}else if(k)continue;const A=g.issues.length,z=j._zod.check(g);if(z instanceof Promise&&x?.async===!1)throw new Fs;if(S||z instanceof Promise)S=(S??Promise.resolve()).then(async()=>{await z,g.issues.length!==A&&(k||(k=Ks(g,A)))});else{if(g.issues.length===A)continue;k||(k=Ks(g,A))}}return S?S.then(()=>g):g},f=(g,y,x)=>{if(Ks(g))return g.aborted=!0,g;const k=c(y,r,x);if(k instanceof Promise){if(x.async===!1)throw new Fs;return k.then(S=>e._zod.parse(S,x))}return e._zod.parse(k,x)};e._zod.run=(g,y)=>{if(y.skipChecks)return e._zod.parse(g,y);if(y.direction==="backward"){const k=e._zod.parse({value:g.value,issues:[]},{...y,skipChecks:!0});return k instanceof Promise?k.then(S=>f(S,g,y)):f(k,g,y)}const x=e._zod.parse(g,y);if(x instanceof Promise){if(y.async===!1)throw new Fs;return x.then(k=>c(k,r,y))}return c(x,r,y)}}We(e,"~standard",()=>({validate:c=>{try{const f=J5(e,c);return f.success?{value:f.data}:{issues:f.error?.issues}}catch{return W5(e,c).then(g=>g.success?{value:g.data}:{issues:g.error?.issues})}},vendor:"zod",version:1}))}),Bp=Q("$ZodString",(e,n)=>{yt.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??C6(e._zod.bag),e._zod.parse=(s,r)=>{if(n.coerce)try{s.value=String(s.value)}catch{}return typeof s.value=="string"||s.issues.push({expected:"string",code:"invalid_type",input:s.value,inst:e}),s}}),bt=Q("$ZodStringFormat",(e,n)=>{Lc.init(e,n),Bp.init(e,n)}),Z6=Q("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=f6),bt.init(e,n)}),F6=Q("$ZodUUID",(e,n)=>{if(n.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(r===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=Ig(r))}else n.pattern??(n.pattern=Ig());bt.init(e,n)}),Y6=Q("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=g6),bt.init(e,n)}),X6=Q("$ZodURL",(e,n)=>{bt.init(e,n),e._zod.check=s=>{try{const r=s.value.trim(),c=new URL(r);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(c.hostname)||s.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:n.hostname.source,input:s.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(c.protocol.endsWith(":")?c.protocol.slice(0,-1):c.protocol)||s.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:s.value,inst:e,continue:!n.abort})),n.normalize?s.value=c.href:s.value=r;return}catch{s.issues.push({code:"invalid_format",format:"url",input:s.value,inst:e,continue:!n.abort})}}}),J6=Q("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=b6()),bt.init(e,n)}),W6=Q("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=p6),bt.init(e,n)}),e8=Q("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=l6),bt.init(e,n)}),t8=Q("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=c6),bt.init(e,n)}),a8=Q("$ZodULID",(e,n)=>{n.pattern??(n.pattern=u6),bt.init(e,n)}),n8=Q("$ZodXID",(e,n)=>{n.pattern??(n.pattern=d6),bt.init(e,n)}),i8=Q("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=m6),bt.init(e,n)}),s8=Q("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=_6(n)),bt.init(e,n)}),o8=Q("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=A6),bt.init(e,n)}),r8=Q("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=N6(n)),bt.init(e,n)}),l8=Q("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=h6),bt.init(e,n)}),c8=Q("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=v6),bt.init(e,n),e._zod.bag.format="ipv4"}),u8=Q("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=x6),bt.init(e,n),e._zod.bag.format="ipv6",e._zod.check=s=>{try{new URL(`http://[${s.value}]`)}catch{s.issues.push({code:"invalid_format",format:"ipv6",input:s.value,inst:e,continue:!n.abort})}}}),d8=Q("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=k6),bt.init(e,n)}),m8=Q("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=w6),bt.init(e,n),e._zod.check=s=>{const r=s.value.split("/");try{if(r.length!==2)throw new Error;const[c,f]=r;if(!f)throw new Error;const g=Number(f);if(`${g}`!==f)throw new Error;if(g<0||g>128)throw new Error;new URL(`http://[${c}]`)}catch{s.issues.push({code:"invalid_format",format:"cidrv6",input:s.value,inst:e,continue:!n.abort})}}});function wv(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const p8=Q("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=S6),bt.init(e,n),e._zod.bag.contentEncoding="base64",e._zod.check=s=>{wv(s.value)||s.issues.push({code:"invalid_format",format:"base64",input:s.value,inst:e,continue:!n.abort})}});function h8(e){if(!fv.test(e))return!1;const n=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),s=n.padEnd(Math.ceil(n.length/4)*4,"=");return wv(s)}const f8=Q("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=fv),bt.init(e,n),e._zod.bag.contentEncoding="base64url",e._zod.check=s=>{h8(s.value)||s.issues.push({code:"invalid_format",format:"base64url",input:s.value,inst:e,continue:!n.abort})}}),g8=Q("$ZodE164",(e,n)=>{n.pattern??(n.pattern=j6),bt.init(e,n)});function y8(e,n=null){try{const s=e.split(".");if(s.length!==3)return!1;const[r]=s;if(!r)return!1;const c=JSON.parse(atob(r));return!("typ"in c&&c?.typ!=="JWT"||!c.alg||n&&(!("alg"in c)||c.alg!==n))}catch{return!1}}const b8=Q("$ZodJWT",(e,n)=>{bt.init(e,n),e._zod.check=s=>{y8(s.value,n.alg)||s.issues.push({code:"invalid_format",format:"jwt",input:s.value,inst:e,continue:!n.abort})}}),Sv=Q("$ZodNumber",(e,n)=>{yt.init(e,n),e._zod.pattern=e._zod.bag.pattern??bv,e._zod.parse=(s,r)=>{if(n.coerce)try{s.value=Number(s.value)}catch{}const c=s.value;if(typeof c=="number"&&!Number.isNaN(c)&&Number.isFinite(c))return s;const f=typeof c=="number"?Number.isNaN(c)?"NaN":Number.isFinite(c)?void 0:"Infinity":void 0;return s.issues.push({expected:"number",code:"invalid_type",input:c,inst:e,...f?{received:f}:{}}),s}}),v8=Q("$ZodNumberFormat",(e,n)=>{q6.init(e,n),Sv.init(e,n)}),x8=Q("$ZodBoolean",(e,n)=>{yt.init(e,n),e._zod.pattern=E6,e._zod.parse=(s,r)=>{if(n.coerce)try{s.value=!!s.value}catch{}const c=s.value;return typeof c=="boolean"||s.issues.push({expected:"boolean",code:"invalid_type",input:c,inst:e}),s}}),k8=Q("$ZodNull",(e,n)=>{yt.init(e,n),e._zod.pattern=D6,e._zod.values=new Set([null]),e._zod.parse=(s,r)=>{const c=s.value;return c===null||s.issues.push({expected:"null",code:"invalid_type",input:c,inst:e}),s}}),w8=Q("$ZodUnknown",(e,n)=>{yt.init(e,n),e._zod.parse=s=>s}),S8=Q("$ZodNever",(e,n)=>{yt.init(e,n),e._zod.parse=(s,r)=>(s.issues.push({expected:"never",code:"invalid_type",input:s.value,inst:e}),s)});function Vg(e,n,s){e.issues.length&&n.issues.push(...Qs(s,e.issues)),n.value[s]=e.value}const j8=Q("$ZodArray",(e,n)=>{yt.init(e,n),e._zod.parse=(s,r)=>{const c=s.value;if(!Array.isArray(c))return s.issues.push({expected:"array",code:"invalid_type",input:c,inst:e}),s;s.value=Array(c.length);const f=[];for(let g=0;g<c.length;g++){const y=c[g],x=n.element._zod.run({value:y,issues:[]},r);x instanceof Promise?f.push(x.then(k=>Vg(k,s,g))):Vg(x,s,g)}return f.length?Promise.all(f).then(()=>s):s}});function xc(e,n,s,r,c){if(e.issues.length){if(c&&!(s in r))return;n.issues.push(...Qs(s,e.issues))}e.value===void 0?s in r&&(n.value[s]=void 0):n.value[s]=e.value}function jv(e){const n=Object.keys(e.shape);for(const r of n)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const s=I5(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(s)}}function Av(e,n,s,r,c,f){const g=[],y=c.keySet,x=c.catchall._zod,k=x.def.type,S=x.optout==="optional";for(const j in n){if(y.has(j))continue;if(k==="never"){g.push(j);continue}const A=x.run({value:n[j],issues:[]},r);A instanceof Promise?e.push(A.then(z=>xc(z,s,j,n,S))):xc(A,s,j,n,S)}return g.length&&s.issues.push({code:"unrecognized_keys",keys:g,input:n,inst:f}),e.length?Promise.all(e).then(()=>s):s}const A8=Q("$ZodObject",(e,n)=>{if(yt.init(e,n),!Object.getOwnPropertyDescriptor(n,"shape")?.get){const y=n.shape;Object.defineProperty(n,"shape",{get:()=>{const x={...y};return Object.defineProperty(n,"shape",{value:x}),x}})}const r=Mc(()=>jv(n));We(e._zod,"propValues",()=>{const y=n.shape,x={};for(const k in y){const S=y[k]._zod;if(S.values){x[k]??(x[k]=new Set);for(const j of S.values)x[k].add(j)}}return x});const c=Cr,f=n.catchall;let g;e._zod.parse=(y,x)=>{g??(g=r.value);const k=y.value;if(!c(k))return y.issues.push({expected:"object",code:"invalid_type",input:k,inst:e}),y;y.value={};const S=[],j=g.shape;for(const A of g.keys){const z=j[A],$=z._zod.optout==="optional",L=z._zod.run({value:k[A],issues:[]},x);L instanceof Promise?S.push(L.then(P=>xc(P,y,A,k,$))):xc(L,y,A,k,$)}return f?Av(S,k,y,x,r.value,e):S.length?Promise.all(S).then(()=>y):y}}),N8=Q("$ZodObjectJIT",(e,n)=>{A8.init(e,n);const s=e._zod.parse,r=Mc(()=>jv(n)),c=A=>{const z=new K6(["shape","payload","ctx"]),$=r.value,L=X=>{const ee=Lg(X);return`shape[${ee}]._zod.run({ value: input[${ee}], issues: [] }, ctx)`};z.write("const input = payload.value;");const P=Object.create(null);let V=0;for(const X of $.keys)P[X]=`key_${V++}`;z.write("const newResult = {};");for(const X of $.keys){const ee=P[X],re=Lg(X),q=A[X]?._zod?.optout==="optional";z.write(`const ${ee} = ${L(X)};`),q?z.write(`
|
|
17
|
+
if (${ee}.issues.length) {
|
|
18
|
+
if (${re} in input) {
|
|
19
|
+
payload.issues = payload.issues.concat(${ee}.issues.map(iss => ({
|
|
20
|
+
...iss,
|
|
21
|
+
path: iss.path ? [${re}, ...iss.path] : [${re}]
|
|
22
|
+
})));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (${ee}.value === undefined) {
|
|
27
|
+
if (${re} in input) {
|
|
28
|
+
newResult[${re}] = undefined;
|
|
29
|
+
}
|
|
30
|
+
} else {
|
|
31
|
+
newResult[${re}] = ${ee}.value;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
`):z.write(`
|
|
35
|
+
if (${ee}.issues.length) {
|
|
36
|
+
payload.issues = payload.issues.concat(${ee}.issues.map(iss => ({
|
|
37
|
+
...iss,
|
|
38
|
+
path: iss.path ? [${re}, ...iss.path] : [${re}]
|
|
39
|
+
})));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (${ee}.value === undefined) {
|
|
43
|
+
if (${re} in input) {
|
|
44
|
+
newResult[${re}] = undefined;
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
newResult[${re}] = ${ee}.value;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
`)}z.write("payload.value = newResult;"),z.write("return payload;");const ne=z.compile();return(X,ee)=>ne(A,X,ee)};let f;const g=Cr,y=!lv.jitless,k=y&&U5.value,S=n.catchall;let j;e._zod.parse=(A,z)=>{j??(j=r.value);const $=A.value;return g($)?y&&k&&z?.async===!1&&z.jitless!==!0?(f||(f=c(n.shape)),A=f(A,z),S?Av([],$,A,z,j,e):A):s(A,z):(A.issues.push({expected:"object",code:"invalid_type",input:$,inst:e}),A)}});function $g(e,n,s,r){for(const f of e)if(f.issues.length===0)return n.value=f.value,n;const c=e.filter(f=>!Ks(f));return c.length===1?(n.value=c[0].value,c[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:s,errors:e.map(f=>f.issues.map(g=>gi(g,r,fi())))}),n)}const Nv=Q("$ZodUnion",(e,n)=>{yt.init(e,n),We(e._zod,"optin",()=>n.options.some(c=>c._zod.optin==="optional")?"optional":void 0),We(e._zod,"optout",()=>n.options.some(c=>c._zod.optout==="optional")?"optional":void 0),We(e._zod,"values",()=>{if(n.options.every(c=>c._zod.values))return new Set(n.options.flatMap(c=>Array.from(c._zod.values)))}),We(e._zod,"pattern",()=>{if(n.options.every(c=>c._zod.pattern)){const c=n.options.map(f=>f._zod.pattern);return new RegExp(`^(${c.map(f=>Tp(f.source)).join("|")})$`)}});const s=n.options.length===1,r=n.options[0]._zod.run;e._zod.parse=(c,f)=>{if(s)return r(c,f);let g=!1;const y=[];for(const x of n.options){const k=x._zod.run({value:c.value,issues:[]},f);if(k instanceof Promise)y.push(k),g=!0;else{if(k.issues.length===0)return k;y.push(k)}}return g?Promise.all(y).then(x=>$g(x,c,e,f)):$g(y,c,e,f)}}),_8=Q("$ZodDiscriminatedUnion",(e,n)=>{n.inclusive=!1,Nv.init(e,n);const s=e._zod.parse;We(e._zod,"propValues",()=>{const c={};for(const f of n.options){const g=f._zod.propValues;if(!g||Object.keys(g).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(f)}"`);for(const[y,x]of Object.entries(g)){c[y]||(c[y]=new Set);for(const k of x)c[y].add(k)}}return c});const r=Mc(()=>{const c=n.options,f=new Map;for(const g of c){const y=g._zod.propValues?.[n.discriminator];if(!y||y.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(g)}"`);for(const x of y){if(f.has(x))throw new Error(`Duplicate discriminator value "${String(x)}"`);f.set(x,g)}}return f});e._zod.parse=(c,f)=>{const g=c.value;if(!Cr(g))return c.issues.push({code:"invalid_type",expected:"object",input:g,inst:e}),c;const y=r.value.get(g?.[n.discriminator]);return y?y._zod.run(c,f):n.unionFallback?s(c,f):(c.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:n.discriminator,input:g,path:[n.discriminator],inst:e}),c)}}),C8=Q("$ZodIntersection",(e,n)=>{yt.init(e,n),e._zod.parse=(s,r)=>{const c=s.value,f=n.left._zod.run({value:c,issues:[]},r),g=n.right._zod.run({value:c,issues:[]},r);return f instanceof Promise||g instanceof Promise?Promise.all([f,g]).then(([x,k])=>Gg(s,x,k)):Gg(s,f,g)}});function Wm(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(Ws(e)&&Ws(n)){const s=Object.keys(n),r=Object.keys(e).filter(f=>s.indexOf(f)!==-1),c={...e,...n};for(const f of r){const g=Wm(e[f],n[f]);if(!g.valid)return{valid:!1,mergeErrorPath:[f,...g.mergeErrorPath]};c[f]=g.data}return{valid:!0,data:c}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const s=[];for(let r=0;r<e.length;r++){const c=e[r],f=n[r],g=Wm(c,f);if(!g.valid)return{valid:!1,mergeErrorPath:[r,...g.mergeErrorPath]};s.push(g.data)}return{valid:!0,data:s}}return{valid:!1,mergeErrorPath:[]}}function Gg(e,n,s){const r=new Map;let c;for(const y of n.issues)if(y.code==="unrecognized_keys"){c??(c=y);for(const x of y.keys)r.has(x)||r.set(x,{}),r.get(x).l=!0}else e.issues.push(y);for(const y of s.issues)if(y.code==="unrecognized_keys")for(const x of y.keys)r.has(x)||r.set(x,{}),r.get(x).r=!0;else e.issues.push(y);const f=[...r].filter(([,y])=>y.l&&y.r).map(([y])=>y);if(f.length&&c&&e.issues.push({...c,keys:f}),Ks(e))return e;const g=Wm(n.value,s.value);if(!g.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(g.mergeErrorPath)}`);return e.value=g.data,e}const z8=Q("$ZodRecord",(e,n)=>{yt.init(e,n),e._zod.parse=(s,r)=>{const c=s.value;if(!Ws(c))return s.issues.push({expected:"record",code:"invalid_type",input:c,inst:e}),s;const f=[],g=n.keyType._zod.values;if(g){s.value={};const y=new Set;for(const k of g)if(typeof k=="string"||typeof k=="number"||typeof k=="symbol"){y.add(typeof k=="number"?k.toString():k);const S=n.valueType._zod.run({value:c[k],issues:[]},r);S instanceof Promise?f.push(S.then(j=>{j.issues.length&&s.issues.push(...Qs(k,j.issues)),s.value[k]=j.value})):(S.issues.length&&s.issues.push(...Qs(k,S.issues)),s.value[k]=S.value)}let x;for(const k in c)y.has(k)||(x=x??[],x.push(k));x&&x.length>0&&s.issues.push({code:"unrecognized_keys",input:c,inst:e,keys:x})}else{s.value={};for(const y of Reflect.ownKeys(c)){if(y==="__proto__")continue;let x=n.keyType._zod.run({value:y,issues:[]},r);if(x instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof y=="string"&&bv.test(y)&&x.issues.length){const j=n.keyType._zod.run({value:Number(y),issues:[]},r);if(j instanceof Promise)throw new Error("Async schemas not supported in object keys currently");j.issues.length===0&&(x=j)}if(x.issues.length){n.mode==="loose"?s.value[y]=c[y]:s.issues.push({code:"invalid_key",origin:"record",issues:x.issues.map(j=>gi(j,r,fi())),input:y,path:[y],inst:e});continue}const S=n.valueType._zod.run({value:c[y],issues:[]},r);S instanceof Promise?f.push(S.then(j=>{j.issues.length&&s.issues.push(...Qs(y,j.issues)),s.value[x.value]=j.value})):(S.issues.length&&s.issues.push(...Qs(y,S.issues)),s.value[x.value]=S.value)}}return f.length?Promise.all(f).then(()=>s):s}}),E8=Q("$ZodEnum",(e,n)=>{yt.init(e,n);const s=cv(n.entries),r=new Set(s);e._zod.values=r,e._zod.pattern=new RegExp(`^(${s.filter(c=>L5.has(typeof c)).map(c=>typeof c=="string"?eo(c):c.toString()).join("|")})$`),e._zod.parse=(c,f)=>{const g=c.value;return r.has(g)||c.issues.push({code:"invalid_value",values:s,input:g,inst:e}),c}}),D8=Q("$ZodLiteral",(e,n)=>{if(yt.init(e,n),n.values.length===0)throw new Error("Cannot create literal schema with no valid values");const s=new Set(n.values);e._zod.values=s,e._zod.pattern=new RegExp(`^(${n.values.map(r=>typeof r=="string"?eo(r):r?eo(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,c)=>{const f=r.value;return s.has(f)||r.issues.push({code:"invalid_value",values:n.values,input:f,inst:e}),r}}),T8=Q("$ZodTransform",(e,n)=>{yt.init(e,n),e._zod.parse=(s,r)=>{if(r.direction==="backward")throw new rv(e.constructor.name);const c=n.transform(s.value,s);if(r.async)return(c instanceof Promise?c:Promise.resolve(c)).then(g=>(s.value=g,s));if(c instanceof Promise)throw new Fs;return s.value=c,s}});function Hg(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}const _v=Q("$ZodOptional",(e,n)=>{yt.init(e,n),e._zod.optin="optional",e._zod.optout="optional",We(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),We(e._zod,"pattern",()=>{const s=n.innerType._zod.pattern;return s?new RegExp(`^(${Tp(s.source)})?$`):void 0}),e._zod.parse=(s,r)=>{if(n.innerType._zod.optin==="optional"){const c=n.innerType._zod.run(s,r);return c instanceof Promise?c.then(f=>Hg(f,s.value)):Hg(c,s.value)}return s.value===void 0?s:n.innerType._zod.run(s,r)}}),R8=Q("$ZodExactOptional",(e,n)=>{_v.init(e,n),We(e._zod,"values",()=>n.innerType._zod.values),We(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(s,r)=>n.innerType._zod.run(s,r)}),O8=Q("$ZodNullable",(e,n)=>{yt.init(e,n),We(e._zod,"optin",()=>n.innerType._zod.optin),We(e._zod,"optout",()=>n.innerType._zod.optout),We(e._zod,"pattern",()=>{const s=n.innerType._zod.pattern;return s?new RegExp(`^(${Tp(s.source)}|null)$`):void 0}),We(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(s,r)=>s.value===null?s:n.innerType._zod.run(s,r)}),q8=Q("$ZodDefault",(e,n)=>{yt.init(e,n),e._zod.optin="optional",We(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(s,r)=>{if(r.direction==="backward")return n.innerType._zod.run(s,r);if(s.value===void 0)return s.value=n.defaultValue,s;const c=n.innerType._zod.run(s,r);return c instanceof Promise?c.then(f=>Kg(f,n)):Kg(c,n)}});function Kg(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const B8=Q("$ZodPrefault",(e,n)=>{yt.init(e,n),e._zod.optin="optional",We(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(s,r)=>(r.direction==="backward"||s.value===void 0&&(s.value=n.defaultValue),n.innerType._zod.run(s,r))}),M8=Q("$ZodNonOptional",(e,n)=>{yt.init(e,n),We(e._zod,"values",()=>{const s=n.innerType._zod.values;return s?new Set([...s].filter(r=>r!==void 0)):void 0}),e._zod.parse=(s,r)=>{const c=n.innerType._zod.run(s,r);return c instanceof Promise?c.then(f=>Qg(f,e)):Qg(c,e)}});function Qg(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const P8=Q("$ZodCatch",(e,n)=>{yt.init(e,n),We(e._zod,"optin",()=>n.innerType._zod.optin),We(e._zod,"optout",()=>n.innerType._zod.optout),We(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(s,r)=>{if(r.direction==="backward")return n.innerType._zod.run(s,r);const c=n.innerType._zod.run(s,r);return c instanceof Promise?c.then(f=>(s.value=f.value,f.issues.length&&(s.value=n.catchValue({...s,error:{issues:f.issues.map(g=>gi(g,r,fi()))},input:s.value}),s.issues=[]),s)):(s.value=c.value,c.issues.length&&(s.value=n.catchValue({...s,error:{issues:c.issues.map(f=>gi(f,r,fi()))},input:s.value}),s.issues=[]),s)}}),U8=Q("$ZodPipe",(e,n)=>{yt.init(e,n),We(e._zod,"values",()=>n.in._zod.values),We(e._zod,"optin",()=>n.in._zod.optin),We(e._zod,"optout",()=>n.out._zod.optout),We(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(s,r)=>{if(r.direction==="backward"){const f=n.out._zod.run(s,r);return f instanceof Promise?f.then(g=>lc(g,n.in,r)):lc(f,n.in,r)}const c=n.in._zod.run(s,r);return c instanceof Promise?c.then(f=>lc(f,n.out,r)):lc(c,n.out,r)}});function lc(e,n,s){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},s)}const L8=Q("$ZodReadonly",(e,n)=>{yt.init(e,n),We(e._zod,"propValues",()=>n.innerType._zod.propValues),We(e._zod,"values",()=>n.innerType._zod.values),We(e._zod,"optin",()=>n.innerType?._zod?.optin),We(e._zod,"optout",()=>n.innerType?._zod?.optout),e._zod.parse=(s,r)=>{if(r.direction==="backward")return n.innerType._zod.run(s,r);const c=n.innerType._zod.run(s,r);return c instanceof Promise?c.then(Zg):Zg(c)}});function Zg(e){return e.value=Object.freeze(e.value),e}const I8=Q("$ZodCustom",(e,n)=>{ya.init(e,n),yt.init(e,n),e._zod.parse=(s,r)=>s,e._zod.check=s=>{const r=s.value,c=n.fn(r);if(c instanceof Promise)return c.then(f=>Fg(f,s,r,e));Fg(c,s,r,e)}});function Fg(e,n,s,r){if(!e){const c={code:"custom",input:s,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(c.params=r._zod.def.params),n.issues.push(zr(c))}}var Yg;class V8{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...s){const r=s[0];return this._map.set(n,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const s=this._map.get(n);return s&&typeof s=="object"&&"id"in s&&this._idmap.delete(s.id),this._map.delete(n),this}get(n){const s=n._zod.parent;if(s){const r={...this.get(s)??{}};delete r.id;const c={...r,...this._map.get(n)};return Object.keys(c).length?c:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function $8(){return new V8}(Yg=globalThis).__zod_globalRegistry??(Yg.__zod_globalRegistry=$8());const wr=globalThis.__zod_globalRegistry;function G8(e,n){return new e({type:"string",...we(n)})}function H8(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...we(n)})}function Xg(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...we(n)})}function K8(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...we(n)})}function Q8(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...we(n)})}function Z8(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...we(n)})}function F8(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...we(n)})}function Y8(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...we(n)})}function X8(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...we(n)})}function J8(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...we(n)})}function W8(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...we(n)})}function e7(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...we(n)})}function t7(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...we(n)})}function a7(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...we(n)})}function n7(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...we(n)})}function i7(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...we(n)})}function s7(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...we(n)})}function o7(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...we(n)})}function r7(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...we(n)})}function l7(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...we(n)})}function c7(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...we(n)})}function u7(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...we(n)})}function d7(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...we(n)})}function m7(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...we(n)})}function p7(e,n){return new e({type:"string",format:"date",check:"string_format",...we(n)})}function h7(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...we(n)})}function f7(e,n){return new e({type:"string",format:"duration",check:"string_format",...we(n)})}function g7(e,n){return new e({type:"number",checks:[],...we(n)})}function y7(e,n){return new e({type:"number",coerce:!0,checks:[],...we(n)})}function b7(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...we(n)})}function v7(e,n){return new e({type:"boolean",...we(n)})}function x7(e,n){return new e({type:"null",...we(n)})}function k7(e){return new e({type:"unknown"})}function w7(e,n){return new e({type:"never",...we(n)})}function Jg(e,n){return new xv({check:"less_than",...we(n),value:e,inclusive:!1})}function Am(e,n){return new xv({check:"less_than",...we(n),value:e,inclusive:!0})}function Wg(e,n){return new kv({check:"greater_than",...we(n),value:e,inclusive:!1})}function Nm(e,n){return new kv({check:"greater_than",...we(n),value:e,inclusive:!0})}function ey(e,n){return new O6({check:"multiple_of",...we(n),value:e})}function Cv(e,n){return new B6({check:"max_length",...we(n),maximum:e})}function kc(e,n){return new M6({check:"min_length",...we(n),minimum:e})}function zv(e,n){return new P6({check:"length_equals",...we(n),length:e})}function S7(e,n){return new U6({check:"string_format",format:"regex",...we(n),pattern:e})}function j7(e){return new L6({check:"string_format",format:"lowercase",...we(e)})}function A7(e){return new I6({check:"string_format",format:"uppercase",...we(e)})}function N7(e,n){return new V6({check:"string_format",format:"includes",...we(n),includes:e})}function _7(e,n){return new $6({check:"string_format",format:"starts_with",...we(n),prefix:e})}function C7(e,n){return new G6({check:"string_format",format:"ends_with",...we(n),suffix:e})}function co(e){return new H6({check:"overwrite",tx:e})}function z7(e){return co(n=>n.normalize(e))}function E7(){return co(e=>e.trim())}function D7(){return co(e=>e.toLowerCase())}function T7(){return co(e=>e.toUpperCase())}function R7(){return co(e=>P5(e))}function O7(e,n,s){return new e({type:"array",element:n,...we(s)})}function q7(e,n,s){return new e({type:"custom",check:"custom",fn:n,...we(s)})}function B7(e){const n=M7(s=>(s.addIssue=r=>{if(typeof r=="string")s.issues.push(zr(r,s.value,n._zod.def));else{const c=r;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=s.value),c.inst??(c.inst=n),c.continue??(c.continue=!n._zod.def.abort),s.issues.push(zr(c))}},e(s.value,s)));return n}function M7(e,n){const s=new ya({check:"custom",...we(n)});return s._zod.check=e,s}function Ev(e){let n=e?.target??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??wr,target:n,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Ot(e,n,s={path:[],schemaPath:[]}){var r;const c=e._zod.def,f=n.seen.get(e);if(f)return f.count++,s.schemaPath.includes(e)&&(f.cycle=s.path),f.schema;const g={schema:{},count:1,cycle:void 0,path:s.path};n.seen.set(e,g);const y=e._zod.toJSONSchema?.();if(y)g.schema=y;else{const S={...s,schemaPath:[...s.schemaPath,e],path:s.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,g.schema,S);else{const A=g.schema,z=n.processors[c.type];if(!z)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${c.type}`);z(e,n,A,S)}const j=e._zod.parent;j&&(g.ref||(g.ref=j),Ot(j,n,S),n.seen.get(j).isParent=!0)}const x=n.metadataRegistry.get(e);return x&&Object.assign(g.schema,x),n.io==="input"&&aa(e)&&(delete g.schema.examples,delete g.schema.default),n.io==="input"&&g.schema._prefault&&((r=g.schema).default??(r.default=g.schema._prefault)),delete g.schema._prefault,n.seen.get(e).schema}function Dv(e,n){const s=e.seen.get(n);if(!s)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const g of e.seen.entries()){const y=e.metadataRegistry.get(g[0])?.id;if(y){const x=r.get(y);if(x&&x!==g[0])throw new Error(`Duplicate schema id "${y}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(y,g[0])}}const c=g=>{const y=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const j=e.external.registry.get(g[0])?.id,A=e.external.uri??($=>$);if(j)return{ref:A(j)};const z=g[1].defId??g[1].schema.id??`schema${e.counter++}`;return g[1].defId=z,{defId:z,ref:`${A("__shared")}#/${y}/${z}`}}if(g[1]===s)return{ref:"#"};const k=`#/${y}/`,S=g[1].schema.id??`__schema${e.counter++}`;return{defId:S,ref:k+S}},f=g=>{if(g[1].schema.$ref)return;const y=g[1],{ref:x,defId:k}=c(g);y.def={...y.schema},k&&(y.defId=k);const S=y.schema;for(const j in S)delete S[j];S.$ref=x};if(e.cycles==="throw")for(const g of e.seen.entries()){const y=g[1];if(y.cycle)throw new Error(`Cycle detected: #/${y.cycle?.join("/")}/<root>
|
|
51
|
+
|
|
52
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const g of e.seen.entries()){const y=g[1];if(n===g[0]){f(g);continue}if(e.external){const k=e.external.registry.get(g[0])?.id;if(n!==g[0]&&k){f(g);continue}}if(e.metadataRegistry.get(g[0])?.id){f(g);continue}if(y.cycle){f(g);continue}if(y.count>1&&e.reused==="ref"){f(g);continue}}}function Tv(e,n){const s=e.seen.get(n);if(!s)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=g=>{const y=e.seen.get(g);if(y.ref===null)return;const x=y.def??y.schema,k={...x},S=y.ref;if(y.ref=null,S){r(S);const A=e.seen.get(S),z=A.schema;if(z.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(x.allOf=x.allOf??[],x.allOf.push(z)):Object.assign(x,z),Object.assign(x,k),g._zod.parent===S)for(const L in x)L==="$ref"||L==="allOf"||L in k||delete x[L];if(z.$ref&&A.def)for(const L in x)L==="$ref"||L==="allOf"||L in A.def&&JSON.stringify(x[L])===JSON.stringify(A.def[L])&&delete x[L]}const j=g._zod.parent;if(j&&j!==S){r(j);const A=e.seen.get(j);if(A?.schema.$ref&&(x.$ref=A.schema.$ref,A.def))for(const z in x)z==="$ref"||z==="allOf"||z in A.def&&JSON.stringify(x[z])===JSON.stringify(A.def[z])&&delete x[z]}e.override({zodSchema:g,jsonSchema:x,path:y.path??[]})};for(const g of[...e.seen.entries()].reverse())r(g[0]);const c={};if(e.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?c.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?c.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const g=e.external.registry.get(n)?.id;if(!g)throw new Error("Schema is missing an `id` property");c.$id=e.external.uri(g)}Object.assign(c,s.def??s.schema);const f=e.external?.defs??{};for(const g of e.seen.entries()){const y=g[1];y.def&&y.defId&&(f[y.defId]=y.def)}e.external||Object.keys(f).length>0&&(e.target==="draft-2020-12"?c.$defs=f:c.definitions=f);try{const g=JSON.parse(JSON.stringify(c));return Object.defineProperty(g,"~standard",{value:{...n["~standard"],jsonSchema:{input:wc(n,"input",e.processors),output:wc(n,"output",e.processors)}},enumerable:!1,writable:!1}),g}catch{throw new Error("Error converting schema to JSON.")}}function aa(e,n){const s=n??{seen:new Set};if(s.seen.has(e))return!1;s.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return aa(r.element,s);if(r.type==="set")return aa(r.valueType,s);if(r.type==="lazy")return aa(r.getter(),s);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return aa(r.innerType,s);if(r.type==="intersection")return aa(r.left,s)||aa(r.right,s);if(r.type==="record"||r.type==="map")return aa(r.keyType,s)||aa(r.valueType,s);if(r.type==="pipe")return aa(r.in,s)||aa(r.out,s);if(r.type==="object"){for(const c in r.shape)if(aa(r.shape[c],s))return!0;return!1}if(r.type==="union"){for(const c of r.options)if(aa(c,s))return!0;return!1}if(r.type==="tuple"){for(const c of r.items)if(aa(c,s))return!0;return!!(r.rest&&aa(r.rest,s))}return!1}const P7=(e,n={})=>s=>{const r=Ev({...s,processors:n});return Ot(e,r),Dv(r,e),Tv(r,e)},wc=(e,n,s={})=>r=>{const{libraryOptions:c,target:f}=r??{},g=Ev({...c??{},target:f,io:n,processors:s});return Ot(e,g),Dv(g,e),Tv(g,e)},U7={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},L7=(e,n,s,r)=>{const c=s;c.type="string";const{minimum:f,maximum:g,format:y,patterns:x,contentEncoding:k}=e._zod.bag;if(typeof f=="number"&&(c.minLength=f),typeof g=="number"&&(c.maxLength=g),y&&(c.format=U7[y]??y,c.format===""&&delete c.format,y==="time"&&delete c.format),k&&(c.contentEncoding=k),x&&x.size>0){const S=[...x];S.length===1?c.pattern=S[0].source:S.length>1&&(c.allOf=[...S.map(j=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:j.source}))])}},I7=(e,n,s,r)=>{const c=s,{minimum:f,maximum:g,format:y,multipleOf:x,exclusiveMaximum:k,exclusiveMinimum:S}=e._zod.bag;typeof y=="string"&&y.includes("int")?c.type="integer":c.type="number",typeof S=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(c.minimum=S,c.exclusiveMinimum=!0):c.exclusiveMinimum=S),typeof f=="number"&&(c.minimum=f,typeof S=="number"&&n.target!=="draft-04"&&(S>=f?delete c.minimum:delete c.exclusiveMinimum)),typeof k=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(c.maximum=k,c.exclusiveMaximum=!0):c.exclusiveMaximum=k),typeof g=="number"&&(c.maximum=g,typeof k=="number"&&n.target!=="draft-04"&&(k<=g?delete c.maximum:delete c.exclusiveMaximum)),typeof x=="number"&&(c.multipleOf=x)},V7=(e,n,s,r)=>{s.type="boolean"},$7=(e,n,s,r)=>{n.target==="openapi-3.0"?(s.type="string",s.nullable=!0,s.enum=[null]):s.type="null"},G7=(e,n,s,r)=>{s.not={}},H7=(e,n,s,r)=>{},K7=(e,n,s,r)=>{const c=e._zod.def,f=cv(c.entries);f.every(g=>typeof g=="number")&&(s.type="number"),f.every(g=>typeof g=="string")&&(s.type="string"),s.enum=f},Q7=(e,n,s,r)=>{const c=e._zod.def,f=[];for(const g of c.values)if(g===void 0){if(n.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof g=="bigint"){if(n.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");f.push(Number(g))}else f.push(g);if(f.length!==0)if(f.length===1){const g=f[0];s.type=g===null?"null":typeof g,n.target==="draft-04"||n.target==="openapi-3.0"?s.enum=[g]:s.const=g}else f.every(g=>typeof g=="number")&&(s.type="number"),f.every(g=>typeof g=="string")&&(s.type="string"),f.every(g=>typeof g=="boolean")&&(s.type="boolean"),f.every(g=>g===null)&&(s.type="null"),s.enum=f},Z7=(e,n,s,r)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},F7=(e,n,s,r)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Y7=(e,n,s,r)=>{const c=s,f=e._zod.def,{minimum:g,maximum:y}=e._zod.bag;typeof g=="number"&&(c.minItems=g),typeof y=="number"&&(c.maxItems=y),c.type="array",c.items=Ot(f.element,n,{...r,path:[...r.path,"items"]})},X7=(e,n,s,r)=>{const c=s,f=e._zod.def;c.type="object",c.properties={};const g=f.shape;for(const k in g)c.properties[k]=Ot(g[k],n,{...r,path:[...r.path,"properties",k]});const y=new Set(Object.keys(g)),x=new Set([...y].filter(k=>{const S=f.shape[k]._zod;return n.io==="input"?S.optin===void 0:S.optout===void 0}));x.size>0&&(c.required=Array.from(x)),f.catchall?._zod.def.type==="never"?c.additionalProperties=!1:f.catchall?f.catchall&&(c.additionalProperties=Ot(f.catchall,n,{...r,path:[...r.path,"additionalProperties"]})):n.io==="output"&&(c.additionalProperties=!1)},J7=(e,n,s,r)=>{const c=e._zod.def,f=c.inclusive===!1,g=c.options.map((y,x)=>Ot(y,n,{...r,path:[...r.path,f?"oneOf":"anyOf",x]}));f?s.oneOf=g:s.anyOf=g},W7=(e,n,s,r)=>{const c=e._zod.def,f=Ot(c.left,n,{...r,path:[...r.path,"allOf",0]}),g=Ot(c.right,n,{...r,path:[...r.path,"allOf",1]}),y=k=>"allOf"in k&&Object.keys(k).length===1,x=[...y(f)?f.allOf:[f],...y(g)?g.allOf:[g]];s.allOf=x},eA=(e,n,s,r)=>{const c=s,f=e._zod.def;c.type="object";const g=f.keyType,x=g._zod.bag?.patterns;if(f.mode==="loose"&&x&&x.size>0){const S=Ot(f.valueType,n,{...r,path:[...r.path,"patternProperties","*"]});c.patternProperties={};for(const j of x)c.patternProperties[j.source]=S}else(n.target==="draft-07"||n.target==="draft-2020-12")&&(c.propertyNames=Ot(f.keyType,n,{...r,path:[...r.path,"propertyNames"]})),c.additionalProperties=Ot(f.valueType,n,{...r,path:[...r.path,"additionalProperties"]});const k=g._zod.values;if(k){const S=[...k].filter(j=>typeof j=="string"||typeof j=="number");S.length>0&&(c.required=S)}},tA=(e,n,s,r)=>{const c=e._zod.def,f=Ot(c.innerType,n,r),g=n.seen.get(e);n.target==="openapi-3.0"?(g.ref=c.innerType,s.nullable=!0):s.anyOf=[f,{type:"null"}]},aA=(e,n,s,r)=>{const c=e._zod.def;Ot(c.innerType,n,r);const f=n.seen.get(e);f.ref=c.innerType},nA=(e,n,s,r)=>{const c=e._zod.def;Ot(c.innerType,n,r);const f=n.seen.get(e);f.ref=c.innerType,s.default=JSON.parse(JSON.stringify(c.defaultValue))},iA=(e,n,s,r)=>{const c=e._zod.def;Ot(c.innerType,n,r);const f=n.seen.get(e);f.ref=c.innerType,n.io==="input"&&(s._prefault=JSON.parse(JSON.stringify(c.defaultValue)))},sA=(e,n,s,r)=>{const c=e._zod.def;Ot(c.innerType,n,r);const f=n.seen.get(e);f.ref=c.innerType;let g;try{g=c.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}s.default=g},oA=(e,n,s,r)=>{const c=e._zod.def,f=n.io==="input"?c.in._zod.def.type==="transform"?c.out:c.in:c.out;Ot(f,n,r);const g=n.seen.get(e);g.ref=f},rA=(e,n,s,r)=>{const c=e._zod.def;Ot(c.innerType,n,r);const f=n.seen.get(e);f.ref=c.innerType,s.readOnly=!0},Rv=(e,n,s,r)=>{const c=e._zod.def;Ot(c.innerType,n,r);const f=n.seen.get(e);f.ref=c.innerType},lA=Q("ZodISODateTime",(e,n)=>{s8.init(e,n),kt.init(e,n)});function Ov(e){return m7(lA,e)}const cA=Q("ZodISODate",(e,n)=>{o8.init(e,n),kt.init(e,n)});function qv(e){return p7(cA,e)}const uA=Q("ZodISOTime",(e,n)=>{r8.init(e,n),kt.init(e,n)});function dA(e){return h7(uA,e)}const mA=Q("ZodISODuration",(e,n)=>{l8.init(e,n),kt.init(e,n)});function pA(e){return f7(mA,e)}const hA=(e,n)=>{pv.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:s=>X5(e,s)},flatten:{value:s=>Y5(e,s)},addIssue:{value:s=>{e.issues.push(s),e.message=JSON.stringify(e.issues,Jm,2)}},addIssues:{value:s=>{e.issues.push(...s),e.message=JSON.stringify(e.issues,Jm,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ia=Q("ZodError",hA,{Parent:Error}),fA=Op(Ia),gA=qp(Ia),yA=Pc(Ia),bA=Uc(Ia),vA=e6(Ia),xA=t6(Ia),kA=a6(Ia),wA=n6(Ia),SA=i6(Ia),jA=s6(Ia),AA=o6(Ia),NA=r6(Ia),vt=Q("ZodType",(e,n)=>(yt.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:wc(e,"input"),output:wc(e,"output")}}),e.toJSONSchema=P7(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...s)=>e.clone(xi(n,{checks:[...n.checks??[],...s.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(s,r)=>ki(e,s,r),e.brand=()=>e,e.register=((s,r)=>(s.add(e,r),e)),e.parse=(s,r)=>fA(e,s,r,{callee:e.parse}),e.safeParse=(s,r)=>yA(e,s,r),e.parseAsync=async(s,r)=>gA(e,s,r,{callee:e.parseAsync}),e.safeParseAsync=async(s,r)=>bA(e,s,r),e.spa=e.safeParseAsync,e.encode=(s,r)=>vA(e,s,r),e.decode=(s,r)=>xA(e,s,r),e.encodeAsync=async(s,r)=>kA(e,s,r),e.decodeAsync=async(s,r)=>wA(e,s,r),e.safeEncode=(s,r)=>SA(e,s,r),e.safeDecode=(s,r)=>jA(e,s,r),e.safeEncodeAsync=async(s,r)=>AA(e,s,r),e.safeDecodeAsync=async(s,r)=>NA(e,s,r),e.refine=(s,r)=>e.check(vN(s,r)),e.superRefine=s=>e.check(xN(s)),e.overwrite=s=>e.check(co(s)),e.optional=()=>ny(e),e.exactOptional=()=>oN(e),e.nullable=()=>iy(e),e.nullish=()=>ny(iy(e)),e.nonoptional=s=>mN(e,s),e.array=()=>b(e),e.or=s=>Ge([e,s]),e.and=s=>tN(e,s),e.transform=s=>tp(e,Pv(s)),e.default=s=>cN(e,s),e.prefault=s=>dN(e,s),e.catch=s=>hN(e,s),e.pipe=s=>tp(e,s),e.readonly=()=>yN(e),e.describe=s=>{const r=e.clone();return wr.add(r,{description:s}),r},Object.defineProperty(e,"description",{get(){return wr.get(e)?.description},configurable:!0}),e.meta=(...s)=>{if(s.length===0)return wr.get(e);const r=e.clone();return wr.add(r,s[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=s=>s(e),e)),Bv=Q("_ZodString",(e,n)=>{Bp.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(r,c,f)=>L7(e,r,c);const s=e._zod.bag;e.format=s.format??null,e.minLength=s.minimum??null,e.maxLength=s.maximum??null,e.regex=(...r)=>e.check(S7(...r)),e.includes=(...r)=>e.check(N7(...r)),e.startsWith=(...r)=>e.check(_7(...r)),e.endsWith=(...r)=>e.check(C7(...r)),e.min=(...r)=>e.check(kc(...r)),e.max=(...r)=>e.check(Cv(...r)),e.length=(...r)=>e.check(zv(...r)),e.nonempty=(...r)=>e.check(kc(1,...r)),e.lowercase=r=>e.check(j7(r)),e.uppercase=r=>e.check(A7(r)),e.trim=()=>e.check(E7()),e.normalize=(...r)=>e.check(z7(...r)),e.toLowerCase=()=>e.check(D7()),e.toUpperCase=()=>e.check(T7()),e.slugify=()=>e.check(R7())}),_A=Q("ZodString",(e,n)=>{Bp.init(e,n),Bv.init(e,n),e.email=s=>e.check(H8(CA,s)),e.url=s=>e.check(Y8(zA,s)),e.jwt=s=>e.check(d7(GA,s)),e.emoji=s=>e.check(X8(EA,s)),e.guid=s=>e.check(Xg(ty,s)),e.uuid=s=>e.check(K8(cc,s)),e.uuidv4=s=>e.check(Q8(cc,s)),e.uuidv6=s=>e.check(Z8(cc,s)),e.uuidv7=s=>e.check(F8(cc,s)),e.nanoid=s=>e.check(J8(DA,s)),e.guid=s=>e.check(Xg(ty,s)),e.cuid=s=>e.check(W8(TA,s)),e.cuid2=s=>e.check(e7(RA,s)),e.ulid=s=>e.check(t7(OA,s)),e.base64=s=>e.check(l7(IA,s)),e.base64url=s=>e.check(c7(VA,s)),e.xid=s=>e.check(a7(qA,s)),e.ksuid=s=>e.check(n7(BA,s)),e.ipv4=s=>e.check(i7(MA,s)),e.ipv6=s=>e.check(s7(PA,s)),e.cidrv4=s=>e.check(o7(UA,s)),e.cidrv6=s=>e.check(r7(LA,s)),e.e164=s=>e.check(u7($A,s)),e.datetime=s=>e.check(Ov(s)),e.date=s=>e.check(qv(s)),e.time=s=>e.check(dA(s)),e.duration=s=>e.check(pA(s))});function l(e){return G8(_A,e)}const kt=Q("ZodStringFormat",(e,n)=>{bt.init(e,n),Bv.init(e,n)}),CA=Q("ZodEmail",(e,n)=>{Y6.init(e,n),kt.init(e,n)}),ty=Q("ZodGUID",(e,n)=>{Z6.init(e,n),kt.init(e,n)}),cc=Q("ZodUUID",(e,n)=>{F6.init(e,n),kt.init(e,n)}),zA=Q("ZodURL",(e,n)=>{X6.init(e,n),kt.init(e,n)}),EA=Q("ZodEmoji",(e,n)=>{J6.init(e,n),kt.init(e,n)}),DA=Q("ZodNanoID",(e,n)=>{W6.init(e,n),kt.init(e,n)}),TA=Q("ZodCUID",(e,n)=>{e8.init(e,n),kt.init(e,n)}),RA=Q("ZodCUID2",(e,n)=>{t8.init(e,n),kt.init(e,n)}),OA=Q("ZodULID",(e,n)=>{a8.init(e,n),kt.init(e,n)}),qA=Q("ZodXID",(e,n)=>{n8.init(e,n),kt.init(e,n)}),BA=Q("ZodKSUID",(e,n)=>{i8.init(e,n),kt.init(e,n)}),MA=Q("ZodIPv4",(e,n)=>{c8.init(e,n),kt.init(e,n)}),PA=Q("ZodIPv6",(e,n)=>{u8.init(e,n),kt.init(e,n)}),UA=Q("ZodCIDRv4",(e,n)=>{d8.init(e,n),kt.init(e,n)}),LA=Q("ZodCIDRv6",(e,n)=>{m8.init(e,n),kt.init(e,n)}),IA=Q("ZodBase64",(e,n)=>{p8.init(e,n),kt.init(e,n)}),VA=Q("ZodBase64URL",(e,n)=>{f8.init(e,n),kt.init(e,n)}),$A=Q("ZodE164",(e,n)=>{g8.init(e,n),kt.init(e,n)}),GA=Q("ZodJWT",(e,n)=>{b8.init(e,n),kt.init(e,n)}),Mp=Q("ZodNumber",(e,n)=>{Sv.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(r,c,f)=>I7(e,r,c),e.gt=(r,c)=>e.check(Wg(r,c)),e.gte=(r,c)=>e.check(Nm(r,c)),e.min=(r,c)=>e.check(Nm(r,c)),e.lt=(r,c)=>e.check(Jg(r,c)),e.lte=(r,c)=>e.check(Am(r,c)),e.max=(r,c)=>e.check(Am(r,c)),e.int=r=>e.check(ay(r)),e.safe=r=>e.check(ay(r)),e.positive=r=>e.check(Wg(0,r)),e.nonnegative=r=>e.check(Nm(0,r)),e.negative=r=>e.check(Jg(0,r)),e.nonpositive=r=>e.check(Am(0,r)),e.multipleOf=(r,c)=>e.check(ey(r,c)),e.step=(r,c)=>e.check(ey(r,c)),e.finite=()=>e;const s=e._zod.bag;e.minValue=Math.max(s.minimum??Number.NEGATIVE_INFINITY,s.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(s.maximum??Number.POSITIVE_INFINITY,s.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(s.format??"").includes("int")||Number.isSafeInteger(s.multipleOf??.5),e.isFinite=!0,e.format=s.format??null});function p(e){return g7(Mp,e)}const HA=Q("ZodNumberFormat",(e,n)=>{v8.init(e,n),Mp.init(e,n)});function ay(e){return b7(HA,e)}const KA=Q("ZodBoolean",(e,n)=>{x8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>V7(e,s,r)});function R(e){return v7(KA,e)}const QA=Q("ZodNull",(e,n)=>{k8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>$7(e,s,r)});function me(e){return x7(QA,e)}const ZA=Q("ZodUnknown",(e,n)=>{w8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>H7()});function La(){return k7(ZA)}const FA=Q("ZodNever",(e,n)=>{S8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>G7(e,s,r)});function YA(e){return w7(FA,e)}const XA=Q("ZodArray",(e,n)=>{j8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>Y7(e,s,r,c),e.element=n.element,e.min=(s,r)=>e.check(kc(s,r)),e.nonempty=s=>e.check(kc(1,s)),e.max=(s,r)=>e.check(Cv(s,r)),e.length=(s,r)=>e.check(zv(s,r)),e.unwrap=()=>e.element});function b(e,n){return O7(XA,e,n)}const JA=Q("ZodObject",(e,n)=>{N8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>X7(e,s,r,c),We(e,"shape",()=>n.shape),e.keyof=()=>_(Object.keys(e._zod.def.shape)),e.catchall=s=>e.clone({...e._zod.def,catchall:s}),e.passthrough=()=>e.clone({...e._zod.def,catchall:La()}),e.loose=()=>e.clone({...e._zod.def,catchall:La()}),e.strict=()=>e.clone({...e._zod.def,catchall:YA()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=s=>H5(e,s),e.safeExtend=s=>K5(e,s),e.merge=s=>Q5(e,s),e.pick=s=>$5(e,s),e.omit=s=>G5(e,s),e.partial=(...s)=>Z5(Uv,e,s[0]),e.required=(...s)=>F5(Lv,e,s[0])});function h(e,n){const s={type:"object",shape:e??{},...we(n)};return new JA(s)}const Mv=Q("ZodUnion",(e,n)=>{Nv.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>J7(e,s,r,c),e.options=n.options});function Ge(e,n){return new Mv({type:"union",options:e,...we(n)})}const WA=Q("ZodDiscriminatedUnion",(e,n)=>{Mv.init(e,n),_8.init(e,n)});function pt(e,n,s){return new WA({type:"union",options:n,discriminator:e,...we(s)})}const eN=Q("ZodIntersection",(e,n)=>{C8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>W7(e,s,r,c)});function tN(e,n){return new eN({type:"intersection",left:e,right:n})}const aN=Q("ZodRecord",(e,n)=>{z8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>eA(e,s,r,c),e.keyType=n.keyType,e.valueType=n.valueType});function Pe(e,n,s){return new aN({type:"record",keyType:e,valueType:n,...we(s)})}const ep=Q("ZodEnum",(e,n)=>{E8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(r,c,f)=>K7(e,r,c),e.enum=n.entries,e.options=Object.values(n.entries);const s=new Set(Object.keys(n.entries));e.extract=(r,c)=>{const f={};for(const g of r)if(s.has(g))f[g]=n.entries[g];else throw new Error(`Key ${g} not found in enum`);return new ep({...n,checks:[],...we(c),entries:f})},e.exclude=(r,c)=>{const f={...n.entries};for(const g of r)if(s.has(g))delete f[g];else throw new Error(`Key ${g} not found in enum`);return new ep({...n,checks:[],...we(c),entries:f})}});function _(e,n){const s=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new ep({type:"enum",entries:s,...we(n)})}const nN=Q("ZodLiteral",(e,n)=>{D8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>Q7(e,s,r),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function W(e,n){return new nN({type:"literal",values:Array.isArray(e)?e:[e],...we(n)})}const iN=Q("ZodTransform",(e,n)=>{T8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>F7(e,s),e._zod.parse=(s,r)=>{if(r.direction==="backward")throw new rv(e.constructor.name);s.addIssue=f=>{if(typeof f=="string")s.issues.push(zr(f,s.value,n));else{const g=f;g.fatal&&(g.continue=!1),g.code??(g.code="custom"),g.input??(g.input=s.value),g.inst??(g.inst=e),s.issues.push(zr(g))}};const c=n.transform(s.value,s);return c instanceof Promise?c.then(f=>(s.value=f,s)):(s.value=c,s)}});function Pv(e){return new iN({type:"transform",transform:e})}const Uv=Q("ZodOptional",(e,n)=>{_v.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>Rv(e,s,r,c),e.unwrap=()=>e._zod.def.innerType});function ny(e){return new Uv({type:"optional",innerType:e})}const sN=Q("ZodExactOptional",(e,n)=>{R8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>Rv(e,s,r,c),e.unwrap=()=>e._zod.def.innerType});function oN(e){return new sN({type:"optional",innerType:e})}const rN=Q("ZodNullable",(e,n)=>{O8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>tA(e,s,r,c),e.unwrap=()=>e._zod.def.innerType});function iy(e){return new rN({type:"nullable",innerType:e})}const lN=Q("ZodDefault",(e,n)=>{q8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>nA(e,s,r,c),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function cN(e,n){return new lN({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():dv(n)}})}const uN=Q("ZodPrefault",(e,n)=>{B8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>iA(e,s,r,c),e.unwrap=()=>e._zod.def.innerType});function dN(e,n){return new uN({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():dv(n)}})}const Lv=Q("ZodNonOptional",(e,n)=>{M8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>aA(e,s,r,c),e.unwrap=()=>e._zod.def.innerType});function mN(e,n){return new Lv({type:"nonoptional",innerType:e,...we(n)})}const pN=Q("ZodCatch",(e,n)=>{P8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>sA(e,s,r,c),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function hN(e,n){return new pN({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const fN=Q("ZodPipe",(e,n)=>{U8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>oA(e,s,r,c),e.in=n.in,e.out=n.out});function tp(e,n){return new fN({type:"pipe",in:e,out:n})}const gN=Q("ZodReadonly",(e,n)=>{L8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>rA(e,s,r,c),e.unwrap=()=>e._zod.def.innerType});function yN(e){return new gN({type:"readonly",innerType:e})}const bN=Q("ZodCustom",(e,n)=>{I8.init(e,n),vt.init(e,n),e._zod.processJSONSchema=(s,r,c)=>Z7(e,s)});function vN(e,n={}){return q7(bN,e,n)}function xN(e){return B7(e)}function kN(e,n){return tp(Pv(e),n)}const mt={custom:"custom"};function Iv(e){return y7(Mp,e)}const Vv=h({id:l(),name:l(),keyPrefix:l(),scopes:b(l()),projectId:l().nullable(),projectName:l().nullable(),readOnly:R(),createdAt:l(),lastUsedAt:l().nullable(),revokedAt:l().nullable()});h({keys:b(Vv)});h({name:l().min(1).max(100),scopes:b(l()).min(1).optional(),projectId:l().optional()});Vv.extend({key:l()});const wN=h({maxConcurrency:p().int().positive(),maxRequestsPerMinute:p().int().positive(),maxRequestsPerDay:p().int().positive()}),ct=l().min(1),Pp=Pe(l(),l().trim().min(1));l().min(1);const ra=h({label:l().min(1),city:l().min(1),region:l().min(1),country:l().length(2),timezone:l().optional()}),Up=_(["citation.lost","citation.gained","run.completed","run.failed","insight.critical","insight.high","health.degraded","health.recovered"]);h({id:l(),projectId:l(),channel:W("webhook"),url:l().url(),urlDisplay:l(),urlHost:l(),events:b(Up),enabled:R().default(!0),source:l().optional(),webhookSecret:l().optional(),createdAt:l(),updatedAt:l()});h({channel:W("webhook"),url:l().url(),events:b(Up).min(1),source:l().optional()});function _m(e,n=!1){const s=new Set,r=[];for(const c of e){const f=n?c.toLowerCase():c;s.has(f)||(s.add(f),r.push(c))}return r}function sy(e){try{const n=e.includes("://"),s=new URL(n?e:`https://${e}`);if(!n&&(s.pathname!=="/"||s.search||s.hash)||s.username||s.password||s.port)return null;const r=s.hostname.trim().toLowerCase().replace(/^www\./,"");return!r||r.includes("/")||r.includes("?")||r.includes("#")?null:r}catch{return null}}const SN=l().trim().min(1).refine(e=>sy(e)!==null,{message:"Marketing hosts must be valid hostnames without credentials or ports"}).overwrite(e=>sy(e)??e),jN=l().trim().min(1),AN=l().trim().regex(/^[a-z]\w{0,39}$/i,{message:"GA4 event names must start with a letter and contain only letters, numbers, or underscores"}),Lp=h({marketingHosts:b(SN).overwrite(e=>_m(e,!0)),brandTerms:b(jN).overwrite(e=>_m(e,!0)),leadEventNames:b(AN).overwrite(e=>_m(e))});function NN(){return{marketingHosts:[],brandTerms:[],leadEventNames:["generate_lead"]}}const Cm=Object.freeze({marketingHosts:Object.freeze([]),brandTerms:Object.freeze([]),leadEventNames:Object.freeze(["generate_lead"])}),$v=()=>NN(),oy=_(["never-synced","ready","error"]),_N=_(["landing-page","channel"]),CN=_(["30d","60d","90d"]),zN=_(["marketing","all"]),Sr=qv(),Or=h({label:_(["earliest","middle","previous","latest"]),startDate:Sr,endDate:Sr}),zm=Or.extend({sessions:p().int().nonnegative()}),ry=Or.extend({eventCount:p().int().nonnegative()}),ly=Or.extend({clicks:p().int().nonnegative(),impressions:p().int().nonnegative()}),EN=Or.extend({propertyClicks:p().int().nonnegative(),propertyImpressions:p().int().nonnegative(),reportedQueryClicks:p().int().nonnegative(),reportedQueryImpressions:p().int().nonnegative(),brandedClicks:p().int().nonnegative(),brandedImpressions:p().int().nonnegative(),nonBrandedClicks:p().int().nonnegative(),nonBrandedImpressions:p().int().nonnegative(),unreportedClicks:p().int().nonnegative(),unreportedImpressions:p().int().nonnegative()}),DN=Or.extend({sessions:p().int().nonnegative(),engagementRate:p().min(0).max(1).nullable(),dailyTotalUsers:p().int().nonnegative().nullable(),dailyNewUsers:p().int().nonnegative().nullable(),metricsAvailable:R(),daysInPeriod:p().int().nonnegative(),daysWithEngagementRate:p().int().nonnegative(),daysWithUserSplit:p().int().nonnegative()}),TN=h({window:CN,bucketDays:W(30),filters:h({hostScope:zN,marketingHosts:b(l()),pathPrefix:l().nullable(),brandTerms:b(l()),queryMixScope:W("property")}),acquisition:h({status:oy,error:l().nullable(),syncedAt:l().datetime().nullable(),periods:b(zm),channels:b(h({channelGroup:l(),periods:b(zm)})),pages:b(h({hostName:l(),landingPage:l(),periods:b(zm)}))}),leads:h({status:oy,error:l().nullable(),syncedAt:l().datetime().nullable(),attributionScope:_N.nullable(),hostAndPathFiltersApplied:R(),periods:b(ry),channels:b(h({channelGroup:l(),periods:b(ry)}))}),engagement:h({status:_(["ready","unavailable"]),availableFromDate:Sr.nullable(),latestDate:Sr.nullable(),periods:b(DN)}),searchDemand:h({status:_(["ready","unavailable"]),periods:b(EN),queries:b(h({query:l(),classification:_(["branded","non-branded"]),periods:b(ly)})),pages:b(h({hostName:l(),landingPage:l(),periods:b(ly)})),latestDate:Sr.nullable()})}),RN=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ON=/[\0-\x1F\x7F-\x9F]/,qN=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,BN=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var MN=class{src_Any=RN.source;src_Cc=ON.source;src_Z=BN.source;src_P=qN.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join("|");src_ZCc=[this.src_Z,this.src_Cc].join("|");cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,n,s=4){const r=this.escapeRE(e),c=this.escapeRE(n),f=`(?:(?!${this.src_ZCc}|${r}|${c}).)`;let g=`${r}${f}{0,1000}${c}`;for(let y=2;y<=s;y++)g=`${r}(?:${f}|${g}){0,1000}${c}`;return g}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])")}get_ipv6_addr(){const e="[0-9A-Fa-f]{1,4}",n=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=new RegExp(`(?:(?:${e}:){6}${n}|::(?:${e}:){5}${n}|(?:${e})?::(?:${e}:){4}${n}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${n}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${n}|(?:(?:${e}:){0,3}${e})?::${e}:${n}|(?:(?:${e}:){0,4}${e})?::${n}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?")}get_host_terminator(){return this.cache.src_host_terminator??=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=new RegExp("xn--[a-z0-9\\-]{1,59}")}get_tld(){if(this.cache.tld)return this.cache.tld;const e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=new RegExp("")}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig")}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${this.src_ZPCc}))(?:(?![$+<=>^\`||])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig")}get_http_validator(){return this.cache.http_validator??=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy")}get_relative_proto_validator(){return this.cache.relative_proto_validator??=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy")}get_mail_name_validator(){return this.cache.mail_name_validator??=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy")}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join("|"))}get_schema_search(){return this.cache.schema_search??=new RegExp(`(^|(?!_)(?:[><|]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig")}get_schema_at_start(){return this.cache.schema_at_start??=new RegExp(`^${this.get_schema_search().source}`,"i")}},Em={validate:(e,n,s)=>{const r=s.re.get_http_validator();r.lastIndex=n;const c=r.exec(e);return c?c[0].length:0},normalize:(e,n)=>n.normalize(e)},PN={"http:":Em,"https:":Em,"ftp:":Em,"//":{validate:function(e,n,s){const r=s.re.get_relative_proto_validator();r.lastIndex=n;const c=r.exec(e);return c?n>=3&&e[n-3]===":"||n>=3&&e[n-3]==="/"?0:c[0].length:0},normalize:(e,n)=>n.normalize(e)},"mailto:":{validate:function(e,n,s){const r=s.re.get_mailto_validator();r.lastIndex=n;const c=r.exec(e);return c?c[0].length:0},normalize:(e,n)=>n.normalize(e)}},UN="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",LN="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";function IN(){const e=LN.split("|");return UN.split("|").forEach(n=>{const s=n.indexOf(":"),r=n.slice(0,s);for(const c of n.slice(s+1))e.push(r+c)}),e}var VN={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:IN(),urlAuth:!1,maxLength:1e4},cy=class{schema;index;lastIndex;raw;text;url;constructor(e,n,s,r){const c=e.slice(s,r);this.schema=n.toLowerCase(),this.index=s,this.lastIndex=r,this.raw=c,this.text=c,this.url=c}},$N=class{__opts__;__schemas__;re;constructor(e={}){const{rebuilder:n,...s}=e;this.__opts__={...VN,...s},this.__schemas__={...PN},this.re=n||new MN,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,n=null){if(!n)delete this.__schemas__[e];else{const s={normalize:(r,c)=>c.normalize(r),...n};this.__schemas__[e]=s}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let n,s;for(s=this.re.get_schema_search(),s.lastIndex=0;(n=s.exec(e))!==null;)if(this.testSchemaAt(e,n[2],s.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(s=this.re.get_fuzzy_link_search(),s.lastIndex=0,s.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){const r=this.re.get_fuzzy_mail_host_search(),c=this.re.get_mail_name_validator();for(r.lastIndex=0;(n=r.exec(e))!==null;){const f=e.slice(Math.max(0,n.index-65),n.index);if(c.test(f))return!0}}return!1}testSchemaAt(e,n,s){return this.__schemas__[n.toLowerCase()]?this.__schemas__[n.toLowerCase()].validate(e.slice(0,s+this.__opts__.maxLength),s,this):0}match(e){const n=[],s=this.re.get_schema_search();let r,c,f,g,y,x,k=!1,S=!1,j=!1,A=0;if(!e.length)return null;for(s.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(r=this.re.get_fuzzy_link_search(),r.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(c=this.re.get_fuzzy_mail_host_search(),c.lastIndex=0,f=this.re.get_mail_name_validator());;){const z=Math.max(A-1,0);if(c&&f&&!j&&(!y||y.index<A))for(c.lastIndex<z&&(c.lastIndex=z);;){const ne=c.exec(e);if(!ne){j=!0,y=void 0;break}const X=f.exec(e.slice(Math.max(0,ne.index-65),ne.index));if(X){if(y={schema:"mailto:",index:ne.index-X[1].length,lastIndex:ne.index+ne[0].length},y.index>=A)break;c.lastIndex<z&&(c.lastIndex=z)}}if(r&&!S&&(!g||g.index<A))for(r.lastIndex<z&&(r.lastIndex=z);;){const ne=r.exec(e);if(!ne){S=!0,g=void 0;break}if(g={schema:"",index:ne.index+ne[1].length,lastIndex:ne.index+ne[0].length},g.index>=A)break;r.lastIndex<z&&(r.lastIndex=z)}let $=y;(!$||g&&(g.index<$.index||g.index===$.index&&g.lastIndex>$.lastIndex))&&($=g);let L;if(!k)for(;;){if(!x){s.lastIndex<z&&(s.lastIndex=z);const ee=s.exec(e);if(!ee){k=!0;break}x={schema:ee[2],index:ee.index+ee[1].length,lastIndex:ee.index+ee[0].length}}if(x.index<A){x=void 0;continue}if($&&x.index>$.index)break;const ne=x;x=void 0;const X=this.testSchemaAt(e,ne.schema,ne.lastIndex);if(X){L={schema:ne.schema,index:ne.index,lastIndex:ne.lastIndex+X};break}}let P=L;if((!P||y&&(y.index<P.index||y.index===P.index&&y.lastIndex>P.lastIndex))&&(P=y),(!P||g&&(g.index<P.index||g.index===P.index&&g.lastIndex>P.lastIndex))&&(P=g),!P)break;P===y?y=void 0:P===g&&(g=void 0);const V=new cy(e,P.schema,P.index,P.lastIndex);V.schema?this.__schemas__[V.schema].normalize(V,this):this.normalize(V),n.push(V),A=P.lastIndex}return n.length?n:null}matchAtStart(e){if(!e.length)return null;const n=this.re.get_schema_at_start().exec(e);if(!n)return null;const s=this.testSchemaAt(e,n[2],n[0].length);if(!s)return null;const r=new cy(e,n[2],n.index+n[1].length,n.index+n[0].length+s);return this.__schemas__[r.schema].normalize(r,this),r}tlds(e,n=!1){return e=Array.isArray(e)?e:[e],n?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}};const GN=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');function HN(e,n){return e.endsWith(n)?e.length===n.length||e[e.length-n.length-1]===".":!1}function KN(e,n){const s=e.length-n.length-2,r=e.lastIndexOf(".",s);return r===-1?e:e.slice(r+1)}function QN(e,n,s){if(s.validHosts!==null){const c=s.validHosts;for(const f of c)if(HN(n,f))return f}let r=0;if(n.startsWith("."))for(;r<n.length&&n[r]===".";)r+=1;return e.length===n.length-r?null:KN(n,e)}function ZN(e,n){return e.slice(0,-n.length-1)}const Dm=/[\t\n\r]/g;let ap=!1;function uy(e){return e>=97&&e<=122||e>=48&&e<=57||e>127||e>=65&&e<=90||e===45||e===95}function dy(e,n,s){const r=s-n,c=e.charCodeAt(n)|32;if(r===2)return c===119&&(e.charCodeAt(n+1)|32)===115?1:0;if(r===3){const f=e.charCodeAt(n+1)|32,g=e.charCodeAt(n+2)|32;return c===119&&f===115&&g===115||c===102&&f===116&&g===112?1:0}else if(r===4){const f=e.charCodeAt(n+1)|32,g=e.charCodeAt(n+2)|32,y=e.charCodeAt(n+3)|32;return c===104&&f===116&&g===116&&y===112?1:c===102&&f===105&&g===108&&y===101?2:0}else if(r===5)return c===104&&(e.charCodeAt(n+1)|32)===116&&(e.charCodeAt(n+2)|32)===116&&(e.charCodeAt(n+3)|32)===112&&(e.charCodeAt(n+4)|32)===115?1:0;return 0}function jr(e,n,s=!1){let r=0,c=e.length,f=!1,g=!1;if(ap=!1,!n){if(e.startsWith("data:"))return null;for(;r<e.length&&e.charCodeAt(r)<=32;)r+=1;for(;c>r+1&&e.charCodeAt(c-1)<=32;)c-=1;if(e.charCodeAt(r)===47&&e.charCodeAt(r+1)===47)r+=2;else{const P=e.indexOf(":/",r);if(P!==-1){const V=dy(e,r,P);if(V===1)for(g=!0,r=P+2;e.charCodeAt(r)===47||e.charCodeAt(r)===92;)r+=1;else if(V===2){g=!0,r=P+1;let ne=0;for(;(e.charCodeAt(r)===47||e.charCodeAt(r)===92)&&ne<2;)r+=1,ne+=1;if(ne<2)return null}else{for(let ne=r;ne<P;ne+=1){const X=e.charCodeAt(ne)|32;if(!(X>=97&&X<=122||X>=48&&X<=57||X===46||X===45||X===43)){const ee=e.charCodeAt(ne);return ee===9||ee===10||ee===13?jr(e.replace(Dm,""),n,s):null}}if(e.charCodeAt(P+2)===47)r=P+3;else return null}}else if(e.charCodeAt(r)!==91){let V=-1;for(let ne=r;ne<c;ne+=1){const X=e.charCodeAt(ne);if(X===9||X===10||X===13)return jr(e.replace(Dm,""),n,s);if(X===58){V=ne;break}if(X===47||X===92||X===63||X===35)break}if(V!==-1){let ne=!1;for(let X=V+1;X<c;X+=1){const ee=e.charCodeAt(X);if(ee===47||ee===92||ee===63||ee===35)break;if(ee===64){ne=!0;break}}if(!ne){let X=!0,ee=V+1;for(;ee<c;ee+=1){const re=e.charCodeAt(ee);if(re===47||re===92||re===63||re===35)break;if(re<48||re>57){X=!1;break}}if(ee===V+1&&(X=!1),!X){const re=dy(e,r,V);if(re===0){let he=!1;for(let q=V+1;q<c;q+=1){const ae=e.charCodeAt(q);if(ae===47||ae===92||ae===63||ae===35)break;if(ae===58){he=!0;break}}if(!he)return null}else if(g=!0,r=V+1,re===2){let he=0;for(;(e.charCodeAt(r)===47||e.charCodeAt(r)===92)&&he<2;)r+=1,he+=1;if(he<2)return null}else for(;e.charCodeAt(r)===47||e.charCodeAt(r)===92;)r+=1}}}}}let x=-1,k=-1,S=-1,j=-1,A=!1,z=s,$=r-1,L=-1;if(s&&r<c){const P=e.charCodeAt(r);(!(uy(P)||P===46||P===95)||P===45)&&(z=!1)}for(let P=r;P<c;P+=1){const V=e.charCodeAt(P);if(V<64)if(V===47||V===35||V===63){c=P;break}else V===58?(j===-1&&(j=P),S=P):V===9||V===10||V===13?A=!0:s&&(V===46?((P-$>64||L===46||L===45)&&(z=!1),$=P):(V<48||V>57)&&(V!==45||L===46)&&(z=!1));else if(g&&V===92){c=P;break}else V===64?(x=P,j=-1):V===93?k=P:V>=65&&V<=90?f=!0:s&&!uy(V)&&(z=!1);s&&(L=V)}if(A)return jr(e.replace(Dm,""),n,s);if(x!==-1&&x>=r&&x<c&&(r=x+1),e.charCodeAt(r)===91)return k!==-1?e.slice(r+1,k).toLowerCase():null;if(S!==-1&&S>r&&S<c&&j===S&&(c=S),r>=c)return null;s&&z&&x===-1&&S===-1&&k===-1&&e.charCodeAt(c-1)!==46&&c-r<=255&&c-$-1<=63&&L!==45&&(ap=!0)}for(;c>r+1&&e.charCodeAt(c-1)===46;)c-=1;const y=r!==0||c!==e.length?e.slice(r,c):e;return f?y.toLowerCase():y}function FN(e){if(e.length<7||e.length>15)return!1;let n=0;for(let s=0;s<e.length;s+=1){const r=e.charCodeAt(s);if(r===46)n+=1;else if(r<48||r>57)return!1}return n===3&&e.charCodeAt(0)!==46&&e.charCodeAt(e.length-1)!==46}function YN(e){if(e.length<3)return!1;let n=e.startsWith("[")?1:0,s=e.length;if(e[s-1]==="]"&&(s-=1),s-n>39)return!1;let r=!1;for(;n<s;n+=1){const c=e.charCodeAt(n);if(c===58)r=!0;else if(!(c>=48&&c<=57||c>=97&&c<=102||c>=65&&c<=70))return!1}return r}function XN(e){return YN(e)||FN(e)}const JN=["test","localhost","invalid","example","example.com","example.net","example.org","local","onion","alt","home.arpa","ipv4only.arpa","resolver.arpa","service.arpa","6tisch.arpa","eap.arpa"];function WN(e){for(const n of JN)if(e.endsWith(n)&&(e.length===n.length||e.charCodeAt(e.length-n.length-1)===46))return!0;return!1}function my(e){return e>=97&&e<=122||e>=48&&e<=57||e>127}function py(e){if(e.length>255||e.length===0||!my(e.charCodeAt(0))&&e.charCodeAt(0)!==46&&e.charCodeAt(0)!==95)return!1;let n=-1,s=-1;const r=e.length;for(let c=0;c<r;c+=1){const f=e.charCodeAt(c);if(f===46){if(c-n>64||s===46||s===45)return!1;n=c}else if(!(my(f)||f===45||f===95)||f===45&&s===46)return!1;s=f}return r-n-1<=63&&s!==45}function Gv({allowIcannDomains:e=!0,allowPrivateDomains:n=!1,detectIp:s=!0,detectSpecialUse:r=!1,extractHostname:c=!0,mixedInputs:f=!0,validHosts:g=null,validateHostname:y=!0}){return{allowIcannDomains:e,allowPrivateDomains:n,detectIp:s,detectSpecialUse:r,extractHostname:c,mixedInputs:f,validHosts:g,validateHostname:y}}const e_=Gv({});function t_(e){return e===void 0?e_:Gv(e)}function a_(e,n){return n.length===e.length?"":e.slice(0,-n.length-1)}function n_(){return{domain:null,domainWithoutSuffix:null,hostname:null,isIcann:null,isIp:null,isPrivate:null,isSpecialUse:null,publicSuffix:null,subdomain:null}}function Hv(e){e.domain=null,e.domainWithoutSuffix=null,e.hostname=null,e.isIcann=null,e.isIp=null,e.isPrivate=null,e.isSpecialUse=null,e.publicSuffix=null,e.subdomain=null}function Kv(e,n,s,r,c){const f=t_(r);if(typeof e!="string")return c;let g=!1;return f.extractHostname?f.mixedInputs?(g=py(e),c.hostname=jr(e,g,f.validateHostname)):c.hostname=jr(e,!1,f.validateHostname):c.hostname=e,f.detectIp&&c.hostname!==null&&(c.isIp=XN(c.hostname),c.isIp)?c:f.validateHostname&&f.extractHostname&&c.hostname!==null&&!(g&&c.hostname===e)&&!ap&&!py(c.hostname)?(c.hostname=null,c):(n===0||c.hostname===null||(n===5&&f.detectSpecialUse&&(c.isSpecialUse=WN(c.hostname)),s(c.hostname,f,c),n===2||c.publicSuffix===null)||(c.domain=QN(c.publicSuffix,c.hostname,f),n===3||c.domain===null)||(c.subdomain=a_(c.hostname,c.domain),n===4)||(c.domainWithoutSuffix=ZN(c.domain,c.publicSuffix)),c)}function i_(e,n,s){if(!n.allowPrivateDomains&&e.length>3){const r=e.length-1,c=e.charCodeAt(r),f=e.charCodeAt(r-1),g=e.charCodeAt(r-2),y=e.charCodeAt(r-3);if(c===109&&f===111&&g===99&&y===46)return s.isIcann=!0,s.isPrivate=!1,s.publicSuffix="com",!0;if(c===103&&f===114&&g===111&&y===46)return s.isIcann=!0,s.isPrivate=!1,s.publicSuffix="org",!0;if(c===117&&f===100&&g===101&&y===46)return s.isIcann=!0,s.isPrivate=!1,s.publicSuffix="edu",!0;if(c===118&&f===111&&g===103&&y===46)return s.isIcann=!0,s.isPrivate=!1,s.publicSuffix="gov",!0;if(c===116&&f===101&&g===110&&y===46)return s.isIcann=!0,s.isPrivate=!1,s.publicSuffix="net",!0;if(c===101&&f===100&&g===46)return s.isIcann=!0,s.isPrivate=!1,s.publicSuffix="de",!0}return!1}const Xi=new Uint8Array([1,2,1,1,1,1,1,1,1,1,1,1,0,2,2,2,0,2,2,0,2,0,0,1,0,0,2,1,1,1,1,1,1,0,0,0,1,0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,0,1,1,1,0,2,0,0,0,0,0,0,0,2,0,2,2,0,0,2,2,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,2,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,2,2,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,1,0,2,2,0,0,0,2,0,1,1,0,2,0,2,2,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,2,2,0,2,2,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,2,0,2,2,2,2,0,0,0,0,2,0,0,0,0,0,0,2,2,0,0,0,2,2,1,1,1,1,2,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,2,2,0,0,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,2,2,1,2,1,1,1,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,2,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0]),Sc=new Uint16Array([0,0,0,10,11,18,106,111,117,124,130,136,145,146,147,148,149,150,151,153,154,155,157,159,226,239,241,242,243,258,265,266,269,270,271,274,276,295,296,298,307,312,313,331,332,335,337,338,340,374,375,377,380,381,385,387,391,394,426,429,442,443,451,452,454,464,478,479,480,489,490,527,532,548,568,574,615,616,643,670,671,819,825,828,829,830,835,840,849,871,872,873,874,875,876,877,895,897,898,901,903,904,906,908,923,938,943,944,946,947,948,949,950,952,955,960,961,962,964,965,968,971,972,973,986,988,1e3,1011,1019,1021,1061,1064,1068,1069,1071,1074,1085,1087,1097,1099,1105,1107,1108,1110,1113,1114,1115,1167,1169,1171,1191,1192,1193,1194,1196,1207,1238,1249,1261,1270,1277,1282,1295,1306,1319,1320,1331,1365,1366,1367,1382,1397,1469,1470,1472,1473,1507,1508,1509,1512,1516,1518,1547,1548,1556,1557,1558,1560,1562,1563,1565,1566,1567,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1594,1595,1596,1598,2053,2056,2057,2059,2066,2073,2083,2087,2098,2099,2100,2112,2113,2115,2117,2118,2125,2126,2128,2129,2131,2132,2133,2134,2135,2209,2211,2232,2233,2234,2236,2262,2263,2314,2315,2317,2324,2330,2340,2350,2403,2404,2405,2415,2429,2430,2433,2440,2441,2449,2450,2451,2452,2453,2464,2465,2466,2468,2469,2470,2471,2473,2483,2495,2501,2533,2537,2539,2540,2542,2543,2554,2555,2557,2565,2572,2578,2583,2584,2590,2593,2599,2606,2607,2614,2622,2623,2624,2662,2668,2683,2684,2689,2707,2738,2756,2758,2761,2769,2771,2778,2830,2854,2855,2856,2857,2858,2859,2860,2861,2868,2869,2870,2871,2872,2873,2875,2876,2880,2964,2977,2978,3414,3418,3432,3484,3512,3534,3592,3614,3629,3692,3743,3781,3817,3842,3984,4030,4081,4100,4134,4149,4169,4199,4230,4253,4284,4314,4346,4373,4448,4470,4508,4518,4552,4571,4597,4639,4689,4715,4784,4785,4787,4810,4833,4869,4900,4917,4974,4987,5011,5040,5042,5076,5092,5120,5425,5434,5443,5450,5467,5471,5477,5516,5518,5525,5532,5541,5548,5549,5560,5563,5578,5579,5588,5589,5598,5607,5613,5615,5616,5617,5653,5654,5656,5664,5671,5684,5688,5690,5691,5697,5704,5718,5728,5733,5741,5749,5755,5756,5760,5762,5763,5775,5776,5777,5778,5780,5781,5784,5786,5789,5793,5794,5800,5801,5802,5804,5806,5808,5809,5810,5813,5815,5818,5819,5821,6019,6026,6027,6037,6042,6059,6073,6082,6083,6084,6088,6089,6091,6093,6099,6100,6103,6104,6106,6107,6108,7008,7009,7013,7031,7040,7043,7050,7051,7053,7054,7055,7057,7109,7110,7113,7114,7231,7232,7243,7254,7261,7264,7273,7274,7275,7290,7345,7536,7538,7539,7541,7546,7559,7574,7581,7590,7593,7596,7603,7611,7615,7616,7617,7631,7635,7644,7645,7646,7650,7685,7686,7703,7710,7718,7719,7724,7732,7776,7777,7783,7786,7797,7802,7803,7806,7839,7840,7846,7853,7854,7863,7872,7887,7891,7943,7944,7949,7951,7954,7956,7957,7958,7967,7981,7989,8003,8015,8016,8018,8020,8042,8053,8059,8060,8072,8084,8171,8183,8185,8194,8197,8203,8228,8231,8232,8233,8235,8238,8241,8252,8254,8256,8284,8358,8365,8369,8370,8379,8401,8402,8407,8408,8487,8489,8491,8500,8504,8510,8516,8522,8532,8537,8538,8556,8567,8572,8577,8587,8593,8597,8603,8609,10217,10218,10219,10226,10228]),jc=new Uint8Array([3,3,3,3,3,3,3,3,5,8,8,2,2,3,3,3,3,3,8,5,5,5,5,5,3,3,5,5,9,12,19,8,19,8,11,9,9,8,7,7,6,8,9,16,10,7,7,11,8,6,6,9,7,11,7,14,4,4,4,4,4,4,10,7,6,6,6,6,10,10,6,10,10,22,11,9,10,10,10,9,10,8,7,7,7,8,21,13,11,11,9,10,9,13,10,8,8,9,12,9,7,10,7,7,13,7,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,8,6,3,3,3,3,3,3,2,5,3,3,3,7,2,2,2,2,2,2,3,3,3,1,1,7,8,5,2,2,7,2,2,1,4,1,11,9,9,5,5,8,5,5,5,5,5,5,5,3,3,3,3,3,5,11,9,9,13,7,14,7,6,6,6,7,6,6,6,6,6,10,7,11,9,4,4,4,4,4,4,6,6,6,6,6,8,7,10,9,9,9,8,9,8,10,6,9,9,8,10,10,7,8,1,9,10,12,12,12,10,9,9,10,10,9,9,1,1,5,3,3,3,3,3,3,3,3,3,3,3,3,6,6,6,4,3,3,3,7,4,4,4,3,3,6,7,3,4,1,2,2,2,6,1,2,2,2,2,2,12,5,3,8,9,13,4,4,13,9,9,11,7,3,12,9,2,2,2,3,3,3,3,3,8,2,2,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,7,10,15,7,15,15,20,15,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,7,8,6,8,8,6,8,13,8,8,6,13,8,11,13,8,6,13,8,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,9,9,9,10,14,14,11,13,13,9,9,9,9,9,9,2,6,9,2,2,3,3,3,3,3,3,3,3,3,4,4,4,2,3,3,3,3,3,3,7,7,2,3,2,2,5,3,3,3,3,3,3,4,2,2,2,2,2,2,3,3,3,3,3,3,3,4,5,7,2,2,12,8,10,8,10,7,18,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,2,2,3,3,3,5,5,3,8,8,6,8,6,6,4,6,7,7,7,10,11,2,5,5,3,3,3,3,3,3,5,5,6,11,10,7,7,7,4,4,4,2,3,3,3,3,3,2,7,5,5,3,3,3,3,3,3,3,3,7,7,7,11,7,6,9,6,6,8,10,8,6,8,13,4,4,4,4,4,10,8,11,8,8,8,10,10,7,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,7,10,13,7,8,7,11,8,8,6,9,8,8,6,6,6,8,8,6,6,6,6,6,9,7,6,4,4,4,4,4,4,4,6,6,6,9,7,8,10,8,8,2,3,3,3,3,3,2,8,9,9,2,2,2,3,3,3,2,3,3,3,9,2,2,3,3,3,3,3,3,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,12,5,5,3,5,4,2,3,2,4,3,9,2,2,2,2,2,5,5,3,8,8,13,6,10,9,4,7,9,11,2,3,7,3,3,4,1,3,4,2,9,3,3,12,5,3,7,10,10,7,4,4,6,14,7,9,7,13,2,2,2,2,2,2,3,3,3,3,3,8,15,4,4,2,3,3,3,7,4,9,9,2,3,3,3,5,3,2,2,7,2,7,6,6,7,2,4,2,2,2,2,2,2,8,8,8,9,5,2,3,3,3,3,3,3,10,7,4,4,4,4,3,4,2,3,3,3,3,3,10,7,4,4,4,4,2,3,3,3,3,10,7,4,4,4,4,3,9,6,6,6,9,13,9,2,2,2,8,7,9,5,3,3,3,5,5,12,9,10,7,8,7,6,8,6,11,12,7,9,10,4,4,7,8,11,6,7,9,8,7,10,8,9,15,7,8,5,4,7,2,3,3,3,2,14,10,2,14,10,2,14,3,9,13,13,10,14,16,17,11,2,14,2,14,3,9,13,10,14,16,17,11,14,10,14,2,7,3,10,7,14,10,2,14,10,9,9,17,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,10,10,10,12,9,4,10,11,8,8,8,7,9,5,3,3,3,3,3,3,3,3,5,8,4,4,4,4,4,4,6,16,3,3,14,3,14,2,14,9,13,10,10,14,16,17,11,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,9,9,9,9,9,9,2,14,9,13,10,10,14,16,17,11,6,2,14,9,17,13,10,10,14,16,17,11,6,2,14,9,13,10,14,16,17,11,2,14,9,13,10,16,11,2,14,10,19,7,2,14,9,13,10,19,10,7,14,16,17,11,6,2,14,9,13,10,19,7,14,16,17,11,2,14,9,13,17,13,10,10,14,16,17,11,6,3,2,14,9,13,10,10,14,16,17,11,6,9,10,12,14,14,14,12,12,12,12,12,14,14,14,10,10,10,14,9,9,9,9,14,14,14,13,13,14,9,9,9,9,9,9,4,11,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,9,10,10,7,17,3,3,12,12,16,15,15,12,14,14,14,20,20,13,12,12,12,12,12,12,20,25,14,14,12,12,10,10,10,10,9,9,9,25,4,9,17,10,7,14,16,21,13,13,14,20,14,13,17,24,9,12,13,25,13,21,20,17,9,9,9,9,9,9,12,17,4,4,9,9,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,1,8,7,11,11,1,3,3,3,4,8,9,10,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,7,4,4,4,4,4,4,4,4,4,4,9,12,6,14,4,12,7,2,2,1,2,7,6,4,4,4,6,8,8,7,4,5,6,3,3,3,3,4,16,8,3,5,4,3,3,3,5,2,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,12,7,7,13,9,10,12,8,9,7,8,5,12,10,13,14,5,5,5,13,5,5,5,3,3,3,5,16,5,5,5,5,5,7,12,14,8,12,8,10,12,9,11,7,9,7,10,7,13,9,7,12,8,17,7,7,16,10,13,13,8,10,10,14,17,7,16,16,15,8,10,10,12,17,7,17,14,7,10,17,8,7,7,7,8,15,15,7,14,10,10,10,11,11,7,7,13,8,10,7,16,7,8,7,14,17,12,10,11,21,8,9,7,13,9,8,13,6,12,7,6,13,10,10,10,8,18,9,17,13,10,12,6,13,6,11,8,13,10,13,18,13,11,13,8,16,7,10,8,16,12,10,8,8,6,14,11,8,15,8,8,7,7,12,7,8,9,14,15,8,9,10,9,15,7,8,8,12,13,9,10,15,15,13,7,10,10,20,7,6,9,6,6,14,11,14,11,12,9,10,16,16,12,7,11,28,8,11,10,7,21,8,7,9,4,4,4,17,7,8,6,9,6,6,13,6,6,6,6,18,20,14,8,11,12,9,10,13,15,19,8,9,12,7,10,16,12,9,9,9,14,12,11,9,12,11,18,9,9,9,10,7,7,16,8,9,7,13,12,10,18,7,8,11,7,7,8,8,13,7,7,7,11,15,13,11,7,8,15,11,7,8,18,14,13,18,15,10,12,12,9,7,11,11,8,7,10,8,14,12,10,18,7,10,9,7,8,13,10,14,9,10,8,8,23,7,7,11,12,12,17,7,7,11,11,17,16,16,7,8,11,14,14,8,10,7,7,16,16,13,9,11,9,15,15,11,11,7,7,14,7,9,7,7,16,10,13,10,11,14,7,11,10,11,7,11,10,11,15,11,15,10,12,17,10,14,13,11,11,12,13,10,7,13,10,16,12,21,9,10,10,7,11,14,17,7,7,8,11,12,8,15,14,14,8,17,12,10,10,7,9,11,7,10,7,11,18,7,11,7,12,11,8,8,14,12,7,8,15,3,7,7,5,2,9,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,5,3,3,3,3,3,3,4,4,3,3,3,3,3,3,5,11,6,4,7,10,7,7,11,1,10,2,2,3,3,3,3,3,3,3,3,5,7,3,5,6,3,3,5,2,2,5,3,4,13,11,3,3,6,3,5,14,2,2,3,8,2,2,12,5,18,5,3,3,3,16,5,5,5,10,7,13,12,13,9,12,14,19,9,9,21,9,9,10,6,9,6,15,10,6,12,8,6,10,15,4,4,6,6,9,9,12,16,14,23,7,7,7,14,9,7,7,11,14,10,7,10,10,10,12,6,11,10,13,11,15,11,7,12,10,3,7,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,3,7,2,5,5,3,3,5,5,5,5,7,6,6,6,4,4,4,4,4,4,6,6,6,6,6,7,10,2,2,2,5,5,5,5,3,3,3,3,3,5,5,10,9,11,8,7,12,8,9,7,6,13,11,6,13,7,9,9,4,4,4,4,4,4,6,10,7,8,13,8,8,9,14,8,10,7,7,7,9,6,9,7,2,12,5,3,3,13,4,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,4,4,4,4,4,4,4,4,4,9,3,3,3,3,3,3,3,3,3,3,4,2,2,2,5,3,3,3,3,3,3,3,3,4,4,1,7,6,4,12,3,3,3,3,3,8,7,3,3,3,3,3,3,4,4,11,14,2,8,3,5,5,8,10,8,6,4,7,17,7,4,5,2,6,3,5,2,4,4,2,12,5,5,3,15,13,10,8,11,2,2,3,3,3,3,3,3,3,3,4,4,5,3,3,3,3,4,18,2,12,5,3,3,3,3,3,5,16,8,8,9,6,6,4,4,4,4,31,6,6,10,11,21,10,9,7,10,7,7,2,4,4,4,4,6,5,3,3,4,3,3,3,3,3,3,3,3,3,6,6,6,2,2,2,5,3,3,3,7,7,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,8,2,3,3,3,3,3,5,9,11,3,3,3,3,4,4,3,3,3,3,3,5,10,9,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,11,10,10,10,10,10,11,10,11,10,11,10,9,9,11,3,3,3,3,3,3,5,3,7,8,8,7,6,6,11,4,4,4,7,8,9,9,2,3,7,4,4,2,5,5,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,2,2,5,5,5,5,5,3,3,5,5,5,7,7,6,6,6,4,4,4,4,4,4,4,4,4,4,6,6,8,8,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,6,9,12,3,7,10,7,2,2,3,3,3,3,3,4,3,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,6,6,8,6,7,4,4,4,4,4,4,6,7,5,5,20,19,8,10,9,7,10,6,8,11,6,6,6,6,13,12,8,6,7,14,11,9,2,5,3,3,6,2,3,2,2,2,2,2,2,2,5,4,3,7,6,4,7,4,3,6,4,7,2,7,7,7,5,5,5,5,3,3,3,3,3,3,3,3,3,3,5,9,10,10,8,11,7,8,20,7,8,9,8,12,6,6,6,8,9,8,12,6,6,8,13,10,12,6,6,7,7,8,9,6,4,4,4,4,4,4,4,10,6,6,6,7,14,11,10,7,8,10,8,11,14,11,11,9,7,9,8,11,9,17,10,9,2,2,2,9,3,3,3,3,15,14,9,5,5,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,15,12,22,19,17,18,18,19,21,7,16,16,5,5,5,5,5,5,5,5,5,5,5,7,5,5,5,5,5,5,5,5,5,5,5,9,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,7,16,11,11,7,7,7,7,17,7,8,12,15,9,19,7,19,8,16,21,11,12,19,14,22,7,7,7,7,7,7,7,7,7,7,7,16,16,19,24,12,7,14,7,12,7,8,10,10,13,7,12,12,7,7,10,18,15,12,16,7,14,12,17,10,16,17,12,17,25,7,7,7,13,6,9,6,9,18,6,6,11,20,10,6,6,6,6,6,6,6,17,6,6,6,15,6,6,6,6,6,8,14,11,12,15,13,19,17,21,7,18,8,13,13,8,12,8,6,6,13,6,15,15,16,6,6,16,6,6,6,14,6,18,6,6,6,17,18,9,13,15,8,19,8,15,15,18,14,16,4,4,4,4,4,4,4,4,4,4,4,4,6,11,10,11,6,21,23,12,17,12,11,14,13,22,15,15,11,12,14,12,7,12,8,14,12,18,10,8,16,19,17,12,14,15,8,9,19,17,12,13,13,15,18,13,23,24,23,21,17,24,8,21,8,14,14,16,14,8,8,15,20,8,19,21,9,8,13,12,13,15,11,8,11,9,9,8,11,8,21,14,21,15,15,13,7,19,7,7,7,7,7,7,16,12,17,18,7,7,11,11,7,9,9,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,4,5,5,5,5,5,5,5,5,3,3,10,10,7,9,7,7,7,6,8,6,6,6,6,6,6,6,7,6,8,6,6,9,7,7,7,4,4,4,4,4,4,4,4,8,9,8,7,8,7,8,10,7,5,5,5,5,5,5,3,9,7,7,8,6,6,6,6,6,6,6,6,9,6,6,9,11,13,7,8,9,9,5,5,5,7,8,6,6,6,6,6,6,6,7,8,9,7,10,9,10,7,8,5,5,5,5,5,5,7,7,9,8,7,7,6,6,6,6,6,6,10,6,6,6,6,6,6,6,6,6,6,6,9,10,4,4,4,4,8,7,7,10,10,9,8,8,15,9,8,8,8,8,8,9,10,9,10,7,8,13,5,5,5,5,5,3,3,7,7,8,6,6,6,4,4,11,9,7,8,9,10,7,5,5,5,5,5,3,3,7,6,6,13,7,9,8,7,5,5,5,5,5,5,5,5,3,3,3,3,7,8,7,8,13,6,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,6,6,6,6,7,6,7,6,6,9,7,4,4,4,4,4,4,4,7,8,7,8,9,8,8,8,7,10,7,8,5,5,5,5,5,5,5,5,3,7,7,7,7,9,7,10,9,6,6,6,6,6,8,8,6,6,6,7,6,6,6,9,9,4,4,13,7,10,9,9,12,7,8,8,10,8,8,8,8,8,8,5,5,5,5,3,7,7,11,7,9,8,8,6,6,10,6,8,8,8,6,7,6,6,12,4,4,4,4,4,4,4,4,4,9,8,8,16,8,9,8,7,5,5,5,5,5,3,3,7,7,7,10,15,8,9,8,9,9,6,6,6,6,6,6,7,4,8,7,8,8,7,8,11,8,5,5,5,5,5,3,7,7,6,11,16,7,6,4,4,4,4,9,9,8,8,8,13,12,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,7,8,8,9,13,7,7,7,9,8,8,9,12,7,12,7,12,8,7,10,12,9,9,6,6,8,8,6,6,6,6,6,6,6,9,8,9,11,8,6,6,6,6,6,12,7,6,6,6,9,7,7,6,6,6,6,6,11,9,6,6,6,6,6,7,9,4,4,4,4,4,4,4,4,9,9,9,9,7,7,7,7,7,11,7,7,8,8,8,8,8,8,9,8,9,9,7,7,11,11,7,12,8,8,8,8,8,7,8,8,8,8,8,13,12,8,8,8,8,7,7,7,9,5,5,5,5,5,5,5,3,3,7,7,11,7,8,8,8,6,6,6,6,6,6,6,6,6,6,6,10,11,6,7,9,4,4,4,4,4,4,9,9,8,9,8,8,8,7,7,5,5,5,5,5,5,5,5,5,5,3,3,11,7,7,7,9,6,6,11,8,10,6,6,6,12,8,8,7,6,6,8,7,4,4,4,4,4,4,4,4,9,10,9,9,8,10,9,11,8,5,5,5,7,6,6,8,7,4,4,4,4,8,7,7,8,7,8,8,5,5,5,5,7,7,8,8,8,6,6,6,6,6,10,8,9,13,6,7,6,6,8,7,8,4,4,4,4,11,8,8,8,10,5,5,8,7,8,13,8,7,6,8,6,9,7,8,7,5,5,5,5,5,5,3,3,7,8,9,6,4,8,10,10,8,12,9,13,2,7,5,5,5,5,5,7,7,10,6,6,6,6,6,6,6,8,4,4,9,8,8,8,14,8,8,8,9,8,5,5,5,5,5,3,3,9,6,6,6,6,10,12,6,6,6,6,6,6,6,4,4,4,4,11,8,7,8,8,8,5,5,3,3,3,3,7,7,6,8,6,8,11,7,6,6,6,7,4,8,11,9,10,5,5,5,3,3,3,7,7,8,9,8,15,9,6,6,6,6,6,6,11,11,4,4,4,4,4,7,9,9,10,8,7,5,5,5,5,5,5,3,3,8,6,6,6,6,6,6,6,6,6,9,7,4,4,4,4,4,9,9,8,8,10,13,5,5,5,3,17,7,7,7,7,7,8,6,8,13,6,6,6,6,6,6,6,6,4,4,4,9,10,8,8,8,5,5,5,5,3,7,7,7,8,8,6,6,6,8,8,8,9,10,8,4,8,10,9,8,8,8,9,13,10,5,5,5,5,5,5,5,5,5,5,3,3,7,8,9,9,7,7,7,10,9,9,8,9,8,8,8,6,6,6,6,6,6,6,6,6,6,6,6,6,8,12,6,6,6,6,6,6,6,6,6,12,4,4,4,4,4,4,4,4,4,4,4,11,8,8,9,9,10,8,9,7,7,5,5,5,5,5,5,3,7,8,7,6,6,8,6,6,10,4,7,8,9,12,8,7,7,5,5,5,5,5,5,3,3,7,14,7,9,8,8,6,6,8,12,12,6,6,7,7,10,4,4,4,4,4,9,9,14,9,13,8,7,5,5,5,6,6,6,7,4,8,7,5,5,5,5,5,5,5,5,3,3,7,7,7,8,6,6,6,6,6,6,12,6,6,6,6,4,4,9,9,8,8,11,7,7,7,5,5,5,3,9,8,6,6,7,4,4,4,4,4,4,8,8,11,5,5,5,7,7,7,9,6,6,6,6,6,6,9,8,4,4,4,4,7,12,9,8,8,8,7,10,10,5,5,5,5,5,5,5,3,11,14,8,7,8,8,6,6,6,6,6,8,7,6,6,6,7,6,8,9,4,4,4,7,8,9,7,9,7,7,9,8,5,5,5,5,5,5,5,5,5,11,3,9,7,7,12,14,8,6,6,12,11,8,6,6,6,6,6,6,6,6,6,15,7,4,4,4,16,9,9,9,8,9,9,9,9,9,8,8,8,13,11,8,5,5,5,5,3,7,6,6,8,8,8,6,6,7,10,7,4,4,4,4,9,7,8,7,7,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,7,7,7,9,6,6,6,6,6,8,8,7,7,9,6,6,6,7,6,6,6,6,6,15,4,4,4,4,4,8,8,7,8,12,9,8,8,8,8,8,9,8,8,10,8,8,8,8,16,9,10,2,5,5,5,5,5,5,5,9,7,6,8,9,4,4,4,4,4,7,8,8,8,9,8,11,10,5,5,5,5,3,7,8,6,6,6,6,6,8,6,6,6,6,4,12,10,12,7,7,7,7,7,7,7,5,5,5,5,3,3,7,7,10,8,9,7,6,10,7,6,6,4,4,8,9,7,9,9,9,9,8,8,8,8,10,5,5,5,5,5,5,8,7,6,6,6,10,6,7,10,7,4,4,4,4,4,4,4,12,9,10,7,7,10,8,10,5,12,9,6,6,6,6,6,7,6,4,4,4,10,9,9,8,7,7,5,5,5,5,5,5,3,3,13,7,7,9,7,7,7,8,9,9,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,15,15,4,4,4,4,4,10,10,9,8,9,8,8,9,7,8,7,8,5,5,7,6,6,6,4,4,4,7,8,11,8,5,5,5,5,5,5,5,7,6,6,6,6,6,6,9,11,10,7,4,4,4,9,8,8,5,5,5,5,5,9,9,6,6,6,6,6,6,6,9,9,4,4,4,4,8,8,8,9,9,8,8,8,13,2,4,2,7,5,5,5,5,5,5,9,9,6,6,6,6,10,8,8,8,6,6,6,4,4,9,8,10,8,9,8,8,8,9,8,8,5,3,3,3,11,6,6,6,7,6,6,6,4,4,9,8,5,5,5,5,5,3,11,8,6,6,6,6,6,9,7,4,4,14,10,9,8,12,8,8,8,11,15,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,11,11,10,10,7,7,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,3,3,3,7,11,7,7,11,11,7,8,9,10,7,7,9,9,9,9,7,7,10,8,13,8,8,8,8,11,10,6,6,8,10,11,14,14,6,6,6,6,6,6,9,11,7,7,6,8,12,11,11,6,6,10,6,6,6,6,6,10,7,7,6,6,11,6,6,6,11,8,9,7,6,10,11,9,10,11,7,11,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,6,6,8,9,10,9,6,6,6,10,6,6,6,6,11,10,11,10,9,8,7,7,7,7,11,14,8,10,9,9,8,8,7,11,8,8,8,11,11,10,10,9,10,8,11,10,8,11,9,12,8,10,8,11,8,9,9,11,11,10,11,13,8,7,8,8,9,7,8,8,8,8,7,8,2,2,2,2,2,2,2,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,8,6,4,4,4,11,7,11,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,5,3,3,3,3,8,7,7,8,8,4,8,7,7,7,9,7,8,9,8,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,6,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,4,5,5,3,8,8,6,9,4,4,10,7,3,3,3,2,5,3,3,3,3,3,3,3,3,3,3,3,3,4,3,2,2,2,3,3,3,3,3,4,10,2,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,2,2,3,3,3,5,2,4,2,6,2,2,9,5,5,3,3,3,3,3,3,3,5,5,5,9,8,7,6,6,11,4,4,4,4,4,4,4,4,6,6,7,7,11,8,8,6,5,11,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,6,4,4,4,4,3,3,3,3,5,7,2,3,3,3,3,3,8,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,6,4,4,4,4,2,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,2,3,3,3,3,3,6,3,3,8,10,3,4,4,1,1,1,1,1,1,1,8,9,10,7,7,1,1,3,8,7,7,8,8,8,1,6,1,1,6,3,3,4,7,3,5,5,4,4,4,4,4,2,7,7,8,12,3,4,5,1,3,4,4,10,4,3,3,3,8,7,7,2,2,2,2,2,2,2,2,2,12,9,20,7,5,5,5,9,13,5,5,5,5,5,3,3,3,16,5,5,5,13,7,8,8,11,8,7,9,7,11,12,9,9,8,8,11,10,14,7,12,10,11,13,7,9,11,17,17,14,13,7,8,7,10,10,7,16,13,7,8,17,12,9,8,6,7,10,6,6,12,6,8,10,8,8,8,6,8,6,14,6,6,6,13,6,10,6,6,7,14,8,6,6,10,11,10,9,9,7,7,6,6,6,9,9,7,9,10,9,13,12,4,4,4,4,4,4,4,4,4,6,6,6,8,8,6,8,9,10,9,7,10,10,8,7,8,7,10,12,9,8,15,8,7,8,8,7,7,15,13,7,10,9,14,18,16,7,24,7,8,10,11,16,8,14,7,9,9,9,11,13,19,14,15,14,11,7,13,9,10,7,13,9,10,11,12,8,9,2,3,5,8,7,4,4,10,5,3,3,3,3,3,5,4,4,4,2,2,2,2,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,4,2,12,5,3,8,10,15,6,7,2,3,2,5,5,12,2,5,5,5,5,2,2,5,5,12,9,5,2,2,9,5,5,12,12,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,12,5,8,8,9,5,5,5,8,19,7,16,15,14,9,9,9,9,7,11,11,11,7,14,10,10,5,5,5,5,5,5,5,5,5,15,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,14,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,15,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,12,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,12,9,9,12,12,12,15,7,11,7,14,11,18,13,8,18,15,18,12,14,12,8,8,8,8,9,9,9,12,7,10,10,8,8,12,12,12,7,12,12,9,7,7,7,7,7,8,15,12,9,10,10,7,10,10,13,11,10,9,22,11,9,8,8,8,8,8,13,18,13,9,15,19,9,7,7,10,7,7,7,11,8,13,17,7,7,10,10,10,7,20,16,7,7,7,7,7,7,11,21,12,12,13,11,14,16,8,8,13,11,7,7,13,7,7,14,15,15,6,6,6,6,6,6,6,6,6,6,13,10,18,6,6,6,6,6,6,6,6,6,11,8,8,12,12,11,11,8,12,9,9,9,13,13,9,9,9,9,9,9,6,10,12,6,6,6,6,17,11,7,7,7,7,14,14,12,6,7,7,6,6,15,10,13,10,6,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,9,15,13,6,12,12,6,19,11,10,7,7,16,8,19,17,9,9,9,9,9,6,6,6,10,8,16,8,6,6,9,6,6,6,6,6,6,6,6,8,8,8,6,7,6,6,6,6,6,6,6,6,6,6,6,14,6,6,6,6,20,6,9,6,14,9,9,9,6,9,8,8,12,9,8,8,8,8,7,8,12,7,8,8,8,6,8,6,6,6,6,6,6,6,9,8,8,6,6,13,9,12,13,12,14,13,12,11,11,6,8,8,8,6,13,12,11,11,12,6,11,12,11,13,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,15,6,6,6,6,6,6,6,13,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,8,8,6,18,6,12,13,13,13,9,10,15,9,12,6,6,6,6,6,6,6,6,9,15,10,9,10,13,9,19,8,18,17,10,10,8,8,6,6,6,6,6,6,10,14,8,16,16,9,8,15,8,8,10,12,14,7,7,8,8,7,7,7,7,8,13,13,11,9,9,9,12,10,17,8,11,9,7,7,14,8,14,14,7,7,7,7,7,7,14,7,7,7,7,7,10,10,8,14,7,7,7,7,8,8,8,8,8,17,9,7,15,7,8,12,7,9,14,7,7,7,9,13,8,14,7,16,18,13,15,14,12,13,10,15,9,7,7,7,10,13,15,15,9,9,9,9,19,11,7,11,11,13,8,8,8,8,7,12,19,17,9,9,13,7,7,7,9,7,7,7,12,13,15,10,8,8,14,15,12,13,13,8,12,14,7,11,7,14,15,13,12,8,8,8,8,11,13,15,15,8,13,12,8,8,8,13,10,16,14,11,8,8,12,12,9,15,15,12,12,13,8,8,9,12,13,9,8,8,8,8,8,8,8,8,8,8,8,11,12,11,7,14,7,13,13,13,12,18,16,7,12,11,10,10,15,9,9,9,21,7,7,7,11,16,8,8,11,11,7,7,7,7,7,19,7,7,7,7,7,7,7,7,7,12,8,9,12,14,11,9,9,9,22,12,3,8,8,15,4,2,2,5,5,3,3,3,3,3,3,6,6,4,4,4,12,7,10,2,3,3,3,3,3,3,3,6,7,3,7,5,14,4,4,7,8,10,4,1,3,3,6,2,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,2,2,5,3,4,2,2,2,2,2,2,11,5,5,5,11,5,5,3,5,5,5,5,11,14,13,9,11,9,12,8,11,11,8,11,16,9,9,7,10,9,12,8,15,6,7,6,6,13,10,8,11,8,6,6,6,12,16,6,11,7,8,9,18,6,6,9,4,4,6,13,6,6,6,6,8,8,9,16,7,7,14,7,8,8,8,7,7,7,7,7,7,15,13,7,10,7,7,10,12,16,15,7,9,9,14,11,11,10,9,10,8,12,7,8,7,7,10,12,7,12,8,7,2,3,3,3,3,3,3,3,3,3,3,5,3,3,5,5,5,10,4,8,7,10,3,3,3,3,3,3,3,3,3,3,1,3,3,3,3,3,3,3,7,4,5,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,8,2,2,2,8,12,7,7,5,5,5,5,5,5,5,5,5,5,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,7,11,9,8,8,8,7,8,9,7,7,9,7,7,7,10,7,7,10,9,10,6,6,6,6,6,6,15,7,8,9,9,8,6,6,10,9,6,8,13,9,7,6,6,6,6,6,6,12,6,6,7,6,7,6,6,6,10,10,7,6,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,14,6,6,7,7,9,6,6,6,6,9,9,8,9,10,9,8,9,12,7,7,7,8,7,10,12,11,9,10,7,7,7,9,10,10,8,12,9,7,7,9,8,8,8,10,7,7,8,9,9,7,7,7,8,2,4,6,3,4,2,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,3,3,3,3,3,3,3,3,5,8,6,4,7,3,3,3,3,3,3,3,12,3,3,3,3,3,3,4,4,2,3,5,3,4,7,3,3,3,3,3,3,4,3,3,3,3,3,3,3,4,3,3,6,4,3,4,2,2,2,5,3,3,3,3,3,5,4,4,4,4,7,6,8,9,2,2,2,2,3,3,3,5,7,2,3,3,8,7,7,2,2,8,5,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,7,7,6,10,6,9,7,11,4,6,8,8,7,8,4,5,5,5,3,3,11,8,9,6,6,8,7,4,4,7,8,7,2,2,3,3,3,3,4,3,3,3,3,3,3,3,3,7,2,2,5,3,3,2,3,3,3,3,3,3,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,12,5,5,3,3,3,5,10,12,6,15,4,6,6,7,14,9,3,3,3,3,3,8,2,2,3,5,3,3,3,3,3,3,8,8,8,7,5,8,4,6,11,2,2,6,7,2,9,8,5,5,3,3,5,5,7,7,6,6,10,6,6,8,9,7,4,4,4,4,7,6,6,7,7,10,9,8,11,8,3,3,3,3,3,4,4,2,3,3,3,3,3,7,6,2,5,6,7,6,4,8,9,11,2,2,3,3,3,3,3,3,3,2,2,5,3,3,3,3,3,9,9,6,4,8,7,7,5,9,8,6,8,7,8,5,5,5,5,5,3,3,3,16,8,7,7,7,8,7,7,7,7,9,6,9,6,10,7,7,7,6,10,8,9,11,11,8,4,4,10,8,8,6,9,6,11,8,8,8,15,7,8,9,5,3,3,3,3,3,5,11,2,2,3,8,9,10,3,2,2,2,2,2,2,3,6,4,2,2,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,11,5,3,3,3,3,3,3,3,3,6,7,4,4,2,3,3,3,3,3,3,3,3,12,7,4,12,4,6,5,4,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,3,4,4,11,10,6,4,6,10,8,3,3,3,3,3,3,3,3,5,4,4,4,2,2,2,2,2,2,2,2,5,3,4,4,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,10,5,5,5,5,5,5,3,3,3,3,3,3,3,3,7,8,8,7,13,12,10,10,8,8,7,7,9,12,11,6,6,8,8,9,7,7,7,10,15,10,4,4,4,4,4,11,8,8,9,7,9,14,14,12,2,2,2,2,2,2,2,3,3,3,3,3,2,2,12,5,5,5,8,11,10,7,9,3,8,7,3,15,13,11,4,4,2,2,2,19,7,5,5,3,3,3,3,3,3,3,5,22,18,6,14,17,4,4,19,16,18,2,3,3,2,3,2,3,3,6,4,2,3,3,2,5,3,3,3,3,3,3,3,9,9,2,3,2,2,2,3,3,3,5,7,14,7,7,12,9,13,6,11,6,10,9,7,7,8,12,12,8,8,8,10,7,7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,5,8,10,7,8,11,8,12,9,4,7,7,9,13,2,3,3,3,3,3,3,2,3,3,3,1,2,2,3,3,3,3,3,3,5,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,3,2,3,3,3,3,5,2,2,2,2,5,5,5,5,3,3,3,3,3,3,3,3,3,7,7,7,7,7,8,8,8,8,8,12,9,8,8,9,8,6,17,6,6,6,8,8,6,6,6,6,6,6,6,6,6,6,6,7,4,4,8,8,9,9,9,7,7,7,7,7,7,7,9,9,9,7,8,8,8,10,7,13,10,8,9,3,3,5,13,3,3,3,3,3,7,7,6,6,10,13,11,11,8,8,9,8,9,9,10,10,10,11,10,10,13,13,16,15,11,12,9,9,10,9,11,10,9,9,14,7,8,3,10,7,7,3,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,6,7,2,2,3,3,3,3,3,3,3,3,4,11,6,7,4,6,2,2,3,3,3,1,3,3,3,3,3,3,6,4,4,2,2,2,3,3,3,3,4,4,6,6,6,6,5,4,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,11,6,10,9,12,7,7,11,14,9,7,12,3,3,7,12,11,12,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,5,5,5,5,5,5,5,5,11,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,3,10,3,3,3,11,3,5,9,11,8,12,14,9,7,8,7,7,11,11,7,7,10,9,8,10,9,7,7,7,7,7,7,8,8,7,11,8,8,8,7,7,10,8,7,13,12,7,17,10,8,8,11,7,11,11,14,7,11,7,8,6,9,20,8,7,9,16,7,10,6,11,10,8,9,7,16,11,11,9,8,9,8,8,8,11,8,15,8,8,9,7,8,8,11,10,7,5,7,10,10,15,7,7,7,8,7,8,8,10,11,10,10,10,11,11,7,8,6,8,8,8,10,6,8,6,6,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,16,6,15,6,7,11,11,7,9,10,11,13,10,6,16,8,10,12,11,6,6,6,6,6,6,6,10,6,10,7,7,7,7,11,7,11,6,6,6,6,6,6,17,7,7,6,6,12,22,6,6,6,6,6,8,6,6,6,6,7,6,6,5,6,6,8,11,6,9,14,11,9,11,7,7,8,6,6,6,8,10,9,6,6,6,6,9,7,6,6,6,6,6,15,6,4,4,4,6,4,17,8,11,6,6,9,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,10,6,10,6,6,6,6,12,8,6,6,6,6,6,6,6,6,6,9,6,6,6,6,18,6,6,6,8,9,10,7,8,9,10,11,7,13,6,8,8,6,6,14,7,7,7,7,10,7,14,9,6,6,9,15,9,7,14,6,11,14,13,7,12,8,7,7,7,7,7,12,7,10,9,16,6,8,6,5,17,6,8,10,4,6,4,10,15,17,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,4,4,11,7,4,4,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,19,17,6,10,11,6,6,6,6,18,6,6,11,4,4,4,5,6,6,6,9,5,6,4,6,6,4,6,6,6,6,10,6,6,4,6,6,10,6,10,6,6,6,6,11,6,6,10,6,6,8,6,6,6,8,6,11,4,11,9,10,9,11,4,8,4,11,12,7,9,8,6,7,7,8,12,12,11,13,10,11,7,7,7,9,7,11,10,7,7,7,16,11,10,11,17,9,9,8,8,7,7,7,9,7,7,7,14,7,13,9,11,10,14,10,10,12,11,10,7,10,5,14,8,8,8,9,7,8,7,7,9,8,7,8,7,7,7,7,7,7,7,11,8,10,8,7,8,14,11,8,9,9,9,8,24,10,10,12,7,7,15,11,8,8,12,11,8,9,9,7,8,9,10,11,10,11,7,12,7,7,11,9,8,14,13,12,8,11,10,8,8,7,7,14,9,10,8,9,11,7,14,8,8,13,8,8,12,7,10,14,14,11,9,10,9,9,7,7,11,11,13,9,13,5,5,5,7,9,5,11,12,14,8,7,7,11,10,9,7,8,8,7,10,11,11,5,5,7,5,5,5,7,7,15,7,7,8,7,15,12,12,10,7,8,7,11,7,7,7,23,11,8,8,11,10,7,8,11,7,19,7,7,6,9,9,9,11,3,4,7,8,6,6,4,10,8,2,2]),hy=new Uint16Array([0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,17,1,1,1,12,1,12,1,12,13,1,1,1,1,12,1,12,1,1,1,1,1,14,21,1,1,1,1,1,1,1,19,12,1,1,1,1,1,1,1,20,1,1,1,16,1,18,1,1,15,1,1,1,1,12,1,1,1,1,1,1,22,1,1,1,12,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,1,24,25,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,12,12,12,12,1,32,0,0,0,1,1,1,1,35,34,1,1,1,1,1,33,1,1,1,1,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,38,0,0,0,0,39,40,0,0,0,41,0,12,1,1,12,1,1,1,1,44,45,45,45,44,45,44,44,46,45,44,45,44,44,44,44,44,44,46,44,44,44,44,44,44,45,47,47,45,44,44,44,44,44,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,50,52,50,50,50,52,50,51,50,53,50,51,51,50,50,50,51,53,51,53,50,51,51,12,55,55,54,56,51,53,50,50,48,49,57,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,60,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,67,1,12,1,1,66,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,78,0,0,0,0,0,0,0,0,0,0,0,0,0,76,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,12,1,1,1,1,89,1,91,1,1,1,1,1,1,1,1,94,1,1,1,1,1,1,1,1,1,1,1,1,0,1,97,97,1,1,12,1,100,1,1,1,1,1,1,1,98,1,99,1,101,1,1,1,1,1,102,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,110,111,1,1,1,1,1,1,113,113,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,121,122,1,1,1,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,126,123,125,120,1,124,1,1,114,1,1,1,1,117,1,127,1,1,1,1,1,119,1,108,1,109,1,12,128,106,1,112,1,1,1,1,1,107,115,1,12,12,12,118,116,1,1,1,1,1,1,0,0,0,0,1,12,12,1,1,1,1,1,12,134,1,1,1,1,1,1,1,1,1,1,1,12,136,1,1,1,1,1,1,1,1,137,138,12,12,135,133,45,45,140,50,50,139,142,141,1,1,0,0,0,0,0,0,0,0,0,0,0,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0,0,0,1,0,144,132,1,0,1,12,12,1,1,1,1,1,0,0,0,0,0,0,0,1,148,147,20,1,1,12,12,1,20,12,12,1,1,1,1,1,134,1,1,152,1,1,1,1,153,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,1,136,1,1,152,1,1,1,1,153,1,1,134,1,1,1,152,1,1,1,1,153,1,1,134,1,1,1,1,1,1,1,1,134,1,1,1,1,1,1,1,1,1,1,1,160,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,1,1,1,1,1,134,1,1,1,1,152,1,1,1,1,153,1,1,1,134,1,1,152,1,1,1,1,164,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,167,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,154,158,158,12,1,12,166,1,1,1,1,1,158,158,158,154,1,1,1,157,158,161,165,1,1,1,1,157,157,1,1,156,154,154,157,170,156,170,1,1,168,1,156,155,157,1,1,1,1,157,1,159,1,1,1,12,1,162,1,162,1,1,1,162,161,163,169,156,154,1,1,1,1,1,1,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,173,172,173,172,172,172,172,174,174,172,173,172,173,172,172,12,12,12,12,12,1,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,193,1,1,1,1,12,199,200,201,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,151,1,1,1,1,1,1,1,1,1,1,1,196,1,1,1,184,1,210,1,1,1,208,1,1,205,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,12,1,1,1,1,1,1,1,1,190,1,1,1,186,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,182,1,1,1,1,1,1,1,191,1,1,1,1,195,1,1,1,1,171,1,1,189,1,1,1,192,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,180,1,12,1,1,12,1,1,1,1,183,1,1,1,188,1,203,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,209,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,194,1,1,1,1,1,12,1,1,1,1,1,1,1,1,176,12,1,1,1,178,12,1,1,1,1,1,1,1,198,1,1,1,1,1,1,1,1,1,1,177,1,1,1,1,1,1,204,1,1,1,181,1,1,1,187,1,12,1,1,12,1,1,1,1,1,1,1,1,1,1,191,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,175,1,1,1,1,1,1,1,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,206,1,1,1,1,1,1,1,1,1,1,1,1,1,207,1,1,12,1,1,1,1,179,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,197,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,1,1,1,1,1,1,1,1,1,202,1,1,12,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,220,0,0,0,0,0,221,0,0,0,0,0,0,1,12,1,1,1,225,1,1,1,0,226,223,224,1,1,1,1,1,1,231,1,233,1,1,1,1,1,1,1,1,1,1,1,229,1,1,1,1,1,235,1,1,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,234,1,1,1,12,1,1,1,1,230,1,1,1,228,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,232,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,241,13,1,1,1,12,12,238,239,1,1,1,1,240,1,1,12,1,1,1,1,1,1,1,242,1,1,12,16,1,1,1,1,1,1,1,243,1,1,1,12,12,1,1,1,1,1,243,12,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,256,256,1,0,0,0,0,0,1,12,0,0,0,0,0,0,0,0,172,261,262,1,12,1,1,1,1,12,264,1,1,263,1,1,266,1,1,1,1,1,1,1,1,1,0,1,1,1,271,272,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,12,1,0,1,0,0,0,0,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,12,0,283,0,0,284,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,12,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,60,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,1,0,308,0,0,0,0,0,0,0,0,0,310,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,327,327,328,327,0,185,1,1,13,323,1,321,0,0,0,0,1,0,0,0,324,1,1,329,1,205,1,1,1,1,1,322,1,319,1,325,1,317,1,326,1,318,1,1,1,1,1,1,1,12,1,1,1,12,1,12,320,320,1,1,1,316,184,1,1,12,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,12,1,1,1,1,315,1,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,332,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,266,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,372,372,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,364,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,1,340,351,1,1,339,374,1,345,1,1,337,369,1,1,355,336,341,1,1,1,348,379,357,1,1,1,1,1,1,358,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,367,371,0,0,79,1,1,0,365,342,378,343,346,353,1,368,0,1,0,79,362,360,1,0,0,1,1,1,0,0,0,0,381,1,1,352,1,79,1,0,1,1,1,384,1,0,0,79,359,0,1,338,1,1,1,0,1,1,361,1,0,1,1,1,0,1,386,349,1,1,0,1,0,0,377,0,1,1,1,79,370,1,1,366,363,1,1,1,1,1,1,1,1,1,1,1,344,1,1,1,1,1,1,1,1,1,1,1,376,0,79,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1,380,1,1,1,0,0,383,0,0,0,1,356,1,0,79,382,1,0,0,0,0,385,1,1,0,0,1,0,1,0,354,0,350,0,1,1,1,0,1,1,0,373,347,375,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,1,400,400,1,1,12,12,1,400,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,412,1,1,0,1,1,1,1,205,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,430,430,1,1,0,0,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,442,1,441,1,1,1,1,1,1,1,1,445,1,12,12,1,1,1,1,1,12,1,1,1,1,453,1,1,1,455,1,1,1,1,1,1,1,1,1,1,452,1,447,1,1,1,1,435,1,1,1,1,1,1,1,1,448,12,1,1,1,1,454,1,1,1,449,444,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,317,1,433,1,1,12,451,1,1,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,437,1,1,1,1,1,1,1,1,1,1,1,454,1,1,1,1,317,1,450,1,1,1,439,1,1,1,1,1,440,1,456,443,1,1,1,1,1,438,1,1,1,1,1,1,1,1,1,434,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,446,1,1,1,1,1,1,1,12,1,1,1,1,1,436,1,1,1,1,1,1,1,220,457,1,1,1,1,1,12,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,0,0,462,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,466,466,466,466,466,466,466,0,466,466,466,466,466,1,466,466,466,0,466,466,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,471,470,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,475,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,468,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,469,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,477,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,474,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,478,473,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,472,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,476,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,1,1,1,1,1,1,1,488,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,198,198,1,492,1,1,1,491,1,1,1,1,487,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,489,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,493,1,1,490,1,1,1,1,1,1,1,1,372,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,494,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,505,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,12,1,507,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,12,12,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,1,0,0,0,1,0,0,0,1,60,1,1,12,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,526,1,1,1,1,1,1,1,527,1,1,1,1,1,1,1,525,1,1,12,1,529,239,1,1,12,12,1,1,12,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,533,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,539,1,1,1,1,1,1,1,1,1,1,1,1,1,1,132,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,107,1,1,12,1,1,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,548,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,144,1,1,1,228,1,1,12,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,1,572,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,577,1,220,1,328,1,1,1,1,1,1,1,1,1,0,0,578,1,1,1,1,0,580,0,79,0,579,0,1,1,1,0,1,1,1,1,1,1,12,0,0,0,0,1,0,0,0,0,0,0,586,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,582,582,0,585,583,582,582,582,582,582,587,582,582,591,582,582,582,582,582,582,582,582,582,582,588,585,582,582,585,582,582,582,582,582,582,582,582,582,582,582,582,582,583,582,582,582,582,582,589,582,582,582,582,582,582,0,0,0,1,590,1,1,1,1,584,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,12,595,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,12,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,12,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,65,280,306,411,535,0,4,68,236,254,282,307,334,388,413,0,499,519,536,597,9,0,61,88,398,409,429,575,0,497,518,532,612,0,30,6,0,461,500,602,560,70,0,7,285,255,389,463,416,538,79,598,0,576,309,418,465,9,105,288,506,6,30,0,311,79,391,79,483,10,6,131,248,275,0,613,509,0,563,0,64,6,6,251,95,2,432,399,410,596,0,6,0,6,286,103,6,561,501,540,0,464,390,273,287,8,71,104,599,543,392,312,300,419,146,74,290,546,510,601,564,335,330,479,6,75,149,11,0,249,522,547,565,514,551,570,611,36,6,260,295,333,304,218,30,528,553,218,42,216,265,296,305,406,423,481,274,0,73,562,0,403,417,299,79,247,79,0,581,545,504,292,421,79,393,387,0,0,0,9,555,571,217,0,424,407,531,516,573,615,85,218,43,297,396,425,569,0,511,293,276,79,215,80,28,390,30,6,394,331,303,604,592,524,550,513,0,258,81,30,405,422,0,30,426,0,219,593,517,9,408,427,218,248,86,222,594,574,557,482,428,397,250,227,87,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,620,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,82,0,129,0,0,84,549,0,0,0,0,0,0,0,27,0,552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,503,0,257,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,294,0,0,0,0,0,0,0,617,0,0,0,0,0,616,0,0,0,0,0,0,0,0,0,0,0,0,0,0,395,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,0,0,0,0,0,0,495,0,0,0,0,0,0,404,0,0,0,0,0,0,0,0,0,0,0,0,0,211,0,0,0,0,0,0,0,0,0,0,515,0,0,0,0,0,0,0,0,0,0,0,0,496,0,0,0,0,0,0,0,0,0,0,0,0,0,0,269,281,0,0,0,0,0,530,277,0,0,0,0,0,0,0,0,0,0,0,0,0,512,0,0,0,0,0,0,0,0,0,0,0,458,0,0,0,314,0,0,0,0,0,0,253,0,0,0,0,0,0,23,0,0,0,0,568,0,0,0,0,600,521,0,0,0,0,244,0,0,0,0,0,0,0,0,0,480,0,0,0,0,0,62,0,0,0,267,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,0,0,0,0,0,279,610,0,72,0,0,0,0,0,0,0,0,0,619,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,278,0,0,0,0,0,0,567,0,0,0,0,0,0,523,0,0,0,0,0,0,0,0,0,566,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,0,502,0,0,0,0,0,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,83,0,0,0,0,0,0,0,0,0,0,0,0,486,0,485,0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,459,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,289,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,537,0,0,0,0,0,0,0,0,298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,237,0,0,0,0,0,0,0,0,0,0,84,0,606,0,0,0,0,0,0,0,0,0,0,0,0,245,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,609,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,520,0,0,0,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,498,0,614,0,0,431,0,0,0,0,0,0,0,0,0,0,0,0,402,0,0,0,544,0,93,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,29,92,0,0,0,0,0,0,0,0,0,0,0,0,291,0,0,0,214,0,0,0,0,0,0,558,0,270,0,0,130,0,0,0,0,0,559,0,0,0,0,0,0,0,414,420,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,313,0,0,0,0,0,5,0,0,0,0,0,0,0,301,0,0,0,0,0,0,0,0,0,0,0,0,0,534,0,0,0,415,0,0,401,0,0,0,0,0,0,603,0,0,0,541,0,0,90,0,542,0,0,0,0,0,0,0,0,0,0,508,460,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,268,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,608,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,607,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,618,0,0,0,0,0,556,0,0,0,0,0,0,0,0,0,0,302,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,605,0,0,212,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,623,623,623,623,623,623,623,622,624]),np="orgmilcomschnetedugovdrrformsfeedbackofficialaccoorgmilschnetgovmagazinemediaunioncargopilotgroupcaarespressworksaerodromeworkinggroupair-traffic-controlaircraftaccident-preventioneducatormarketplaceambulanceinsurancecateringairportrepbodyenginesoftwaremodellingair-surveillanceconsultingchartertrainermaintenanceservicesdesignflightskydivingfreightassociationstudentgroundhandlingdgcafuelclubtaxicrewshowballooningexpresstraderbrokerauthoragentsairtrafficjournalistsafetyconsultantmicrolightaccident-investigationparachutingequipmentproductionfederationrecreationscientistnavigationengineertradingglidingleasingresearchpassenger-associationentertainmentparaglidinghangglidingaerobaticrotorcraftemergencycertificationgovernmentaeroclubexchangelogisticschampionshiphomebuiltcouncilconferencecontrolairlinecivilaviationjournalorgcomnetedugovcoorgcomnomnetobjofforgcomnetuwukiloappsframerorgmilcomnetedugovcoradioorgcomnetcommuneedogpbcoitgvorgedugov*spreviewfrontendrelayononstagingupid*mtls*privatelinktypedreamdeveloperbravemochawindsurfaivenmirenupsunwnextbegetngrokclerkwale2bwebcsbrunputerflutterflowspawnbaseshiptodaymagicpatternsnetlifyondigitaloceanrailwayhostedclaudehasurabotdashvercelgithubluyanigadgetreplitcloudflaretelebitedgecomputeevervaultdetaexponyatnoopencrpplxzeaburwasmerframerzeropsconvexmedusajsspritesonherculeseasypanelstreamlitsnowflakemesserliloginlinehackclubnorthflankbase44corespeedadaptableleapcellngrok-freeclerkstagelovableon-fleek*us-west-3ap-south-2us-central-2us-central-1eu-central-1ap-south-1us-west-2us-east-2eu-north-1ap-north-1us-west-1us-east-1*rcloudintsegorgmilcomgobbetnetintedugovturmusicasenasamutualcoopip6uriurnin-addre164homeirisgovdixdaemoncloudnssthwien*inexexkunden4accogvormymyspreadshop4lima2ixortsinfofuturecmsfuturehosting12hpprivfuturemailinglima-cityfunkfeuer123webseitednshomemelmyspreadshopcloudletswasantqldvicactnswtascatholicwasaqldvictasvpsidwasantozqldorgcomvicasnactnetedugovnswtasconfhrsncomairflowlambda-urltransfer-webappairflowtransfer-webapptransfer-webapptransfer-webapp-fipstransfer-webappeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1privatenotebookstudiolabelingnotebookstudionotebooknotebook-fipslabelingnotebookstudionotebook-fipsnotebookstudio-fipsnotebook-fipsnotebookstudionotebook-fipsnotebookstudioeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2experimentsus-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1onrepostsagemakercopporgmilcompronetintedugovbiznameinfoshoprsorgmilcomnetedugovbrendlyresolvenzauscotvstoreorgcomnetedugovbizinfoidacaicoittvorgmilcomschnetedugovinfocloudezproxyacmymyspreadshopkuleuvenwebhostingtransurl123websitecloudnsinterhostsolutionsddns5476103298edgfacbmlonihkjutwvqpsryxzbarsycoororgcomedumyftpno-iporxcloud-ipfor-somemmafanfor-morewebhopselfipjozidyndnscloudnsdscloudfor-thefor-betteractivetrailcoeconorestooteorgcomeconeteduassurmoneyafricaarchitectesrestaurantloisirstourismavocatsinfoagrounivcoorgcomnetedugovtvdeportesaludtksatorgmilcomwebgobnetinteducienciaboliviarevistacooperativaempresanombreindustriamusicapatriamedicinademocraciapoliticapuebloindigenaplurinacionalarteblogwikiinfoagrotransportenoticiasprofesionalacademiaeconomiaecologiamovimientotecnologianaturalsimplesitecepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesmscepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesms*biaamfmtcmptvfeirasampajampanatalbelemananiradiog12medindfndbmdtrdthepoaggfjdfdefinfenflegsegongengcngorgzlgslglogppgmillelqslcimcomnomadmjabimbbibbsbabcrectecsjcetcpscpvhudieticriapipsiecnbiorioecogeoteoodoproatoartfstmatvetdetbetnetcntnotfotgrueduajuespappreptmpemparqsrvadvdevgovntrturagrjorfarjusmusdesvixxyzcozfozslzbhzmaringasantamariacampinagrandegoianiasorocabafloripasaobernardocuritibaboavistarecifeaparecidasaogoncasalvadorcuiabamorenamacapalondrinacontagemsocialfortalmaceioleilaoosascoriobranconiteroi9guacutcheblogflogvlogwikitaxicoopmanauspalmascaxiasjoinvillebaruericampinassantoandreribeiraoriopretoweorgcomnetedugovv0windsurfshiptodaycloudsitecoaccoorgnetgovofmilcomgovmediatechzacoorgcomnetedugsjgovmydnspenfnlabnbmbgcbcqconcontnuyksknsmyspreadshopno-ipawdevboxbarsyonidatemfuinabusavinstanceseceuguukussryzespawncsxcloud-ipmyphotosfantasyleaguetwmailcleverappsscrappingccwucloudnsftpaccessgame-serverccgovobjectsrmalpgcust*svcalp1aeappenginermalpgmyspreadshop4lima2ixsquare7cloudscale123websitefirenet12hpflowgotdnslinkyard-cloudcloudnslima-citydnskingobjectstorageedaccogoorusorgcomnetinteduaéroportxn--aroport-byaassogouvcomilgobgovcloudnses-1eu-west-1us-east-1euvipit1eurarubait1s3lbwebsites3websiteru-spbru-mskelasticcsrunstnukukcaukusnl-ams-1fr-par-1fr-par-2functionsnodess3ddlwhmrdbfnck8sifrs3-websitecockpitscblmgdbdtwhkafkpubprivs3ddlwhmrdbk8sifrs3-websitecockpitscblmgdbdtwhkafks3ddlrdbk8sifrs3-websitecockpitscblmgdbdtwhkafkk8sscalebookpl-wawfr-parnl-amsbaremetalsmartlabelinginstancesdechk2kuleuvenlaravelvoorloperurownoxazapscwhstgrvaporobservablehqelementorantagonistreclaimjoteluluencowaydiademjelasticmatlabmagentositetrendhostingaxarnetperspectajenv-arubajelejoteravendbemergenttrafficplexconvexkeliwebserveboltbegetcdnstaticson-rancherprimetelonstackitunison-servicesdnshomelinkyardbarsyjelecloudnscocomnetgovmycn-northwest-1cn-north-1s3s3-accesspoints3-websites3s3-accesspointrdsdualstacks3-deprecatedemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspoints3s3-accesspointrdsdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicn-northwest-1cn-north-1cn-northwest-1ebcomputeelbcn-north-1airflowcn-northwest-1cn-north-1oncn-northwest-1cn-north-1amazonawssagemakeramazonwebservicesdirectasgdsdhehahljlnmhbacscahqhshhihnlnynsnmofjbjzjxjtjhkcqtwgsjssxnxjxgxxzgz網絡网络公司orgmilcomnetedugovxn--55qx5dcanva-appsxn--io0a7iquickconnectcanvasitekhsjxn--od0algmyqnapcloudsrvrlessclustersrealtimestorageleadpagescarrdcrdorgmilcomnomnetedugovhidnssupabaserdpareplmypiumsoxmitotaplpagesfirewalledreplitowodevwebview-assetsvfswebview-assetss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecateds3-websites3-object-lambdaexecute-apis3s3-accesspoints3-websites3-accesspoint-fipss3-fipss3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipss3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9vfss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1us-northeast-1ap-southeast-1me-south-1af-south-1ap-south-1ap-southeast-7us-west-2eu-west-2ap-east-2us-east-2ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ap-southeast-6ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1mrapaccesspoints3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3eu-west-3ap-south-2eu-south-2computes3-ap-northeast-2elbrdss3-ap-east-1s3-sa-east-1s3-us-gov-west-1s3-eu-central-1s3-ca-central-1eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3s3-website-us-west-2s3-website-eu-west-1s3-external-1eu-central-1me-central-1ca-central-1il-central-1s3-us-west-1s3-eu-west-1s3-website-sa-east-1s3-website-ap-southeast-2ap-northeast-1ap-southeast-1s3-us-west-2s3-eu-west-2me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2s3-website-ap-southeast-1s3-1s3-globals3-ap-northeast-3eu-north-1airflowap-southeast-2s3-us-gov-east-1s3-fips-us-gov-east-1s3-me-south-1s3-ap-south-1ap-northeast-2s3-website-us-west-1ap-southeast-5s3-eu-north-1s3-ap-southeast-1s3-website-us-gov-west-1compute-1s3-eu-west-3us-gov-west-1s3-website-ap-northeast-1us-gov-east-1s3-fips-us-gov-west-1s3-website-us-east-1s3-ap-southeast-2ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3-us-east-2s3-ap-northeast-1authauthauth-fipsauth-fipseu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1rservicesbuilderstg-builderdev-builder*ociocpocsdemoinstanceeu-west-3eu-south-2ap-southeast-3ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1previeweu-4us-4us-1eu-1us-2eu-2us-3eu-3appspaasrag-cloudrag-cloud-chjcloudjcloud-ver-jpcdemonodebalancermembersipeuxvsoncillaocelotonzayalilynxsphinxfentigercustomercaracalo365cloudstaticxendevapp001testcode-builder-stgplatformapimediasiteprojedrydpagesjsu2u2-localx0desazacncoitrueu4uhkukgrbrushatenadiarymyspreadshopfrom-flfrom-wvwebspace-hosttheworkpchatenablogservesarcasmapplinzisakuratanwixsiteappchizigiizeis-into-carsdnsiskinkyadobeaemcloudis-a-therapistpgfogmyvncdojinis-an-actress1kappfldrvkozowqa2jpnmexprgmrfirewall-gatewaydynnscafjsfbsbxooguyxnbayfrom-gawoltlab-demois-a-anarchistwiardwebteaches-yogadattowebtb-hostinglive-websiteservegamegotpantheonfrom-nhsubsc-payfrom-ohvipsinaappfrom-cadyndns-officehomelinuxfrom-mahercules-appservebbsstreakusercontentfrom-okfrom-wyfastly-terrariumis-a-llamaqualyhqportalserveexchangeon-vaporvivenushopciscofreakgrayjayleaguesmetaaiusercontentfrom-iais-a-libertariansaves-the-whalestaveusercontentyolasiteoperaunitepoint2thisis-a-catererlinodeusercontentfrom-vagithubusercontentsells-for-lesshosteurcanva-appsplaystation-cloudddnsfreefrom-pafrom-prfrom-waddnskingoutsystemscloudhotelwithflightmydattois-a-nascarfanmydbserverminiserverdamnserverservehumouris-a-playerfrom-nvfrom-nmemergentagentgentappsamplifyappfrom-kyis-an-accountantnfshostserveircfrom-akpythonanywherestackhero-networkpostman-echolikescandydyndns-mailobservableusercontentserveftpfreeboxosfrom-utcdn77-storageamazonawsneat-urldyndns-serverlinodeis-a-teacherfrom-vtgleezemythic-beastsus1-pleniteu1-plenitla1-plenitpaywhirlservecounterstrikejdevcloudhealth-carereformis-into-animegoogleapisis-a-painterafricaisa-hockeynutatmetais-an-actora2hostedis-a-democratdatadetectest-le-patrondigitaloceanspacesis-a-designeris-a-hunterlinodeobjectstemp-dnsissmarterthanyoufrom-arsimplesiteevennodetownnews-stagingis-a-liberalgooglecodejelasticservemp3stdlibqualyhqpartnerdyndns-free1cooldnsest-a-la-masiondrayddnsdynuddnsfrom-orfrom-miis-a-bloggerfrom-himydobisscanvacodeis-an-engineerest-a-la-maisonupsunappdevinappswafflecellmyasustorwpenginepoweredfrom-ctservep2psame-appmyshopblocksthingdustdatalikes-piediscordsezis-with-thebanddev-myqnapcloudlpusercontentis-leetshopitsite3utilitiesis-a-personaltrainersinaappladeskis-a-cheflogoipselfipbase44-sandboxnospamproxyalibabacloudcsmesswithdnsauthgearappsiamallamawithgooglelutrausercontentmochausercontentframercanvasmytabitdyndns-homew-credentialless-staticblitzcpserverdiscordsaysis-a-nurseappspotatlassian-isolated-3premotewdfrom-mtwixstudiocode0emm180rmyactivedirectoryawsappsmytuleapdnsabrpolyspaceqbuserrenderbuiltwithdarkboutirgotdnsabrdnsdopaascanva-hosted-embedawsglobalacceleratorhomesecuritypcmyiphostditchyouripclever-clouddyndns-ipon-aptibleis-a-musiciansecuritytacticsappspaceusercontenthomeunixstrapiappsame-previewcf-ipfsmycloudnaselasticbeanstalkis-certifieddontexistkasserverik-serverdrive-platformatlassian-3pfirebaseappherokuappawsapprunnerbarsycenteris-a-cubicle-slaveservehttpmyshopifyis-a-guruquicksytessiiitesorsitesmagicpatternsappis-a-cpameteorappfrom-wiis-a-rockstarbumbleshrimpdattolocalreadthedocs-hostedfrom-rifamilydsdyndns-picsplesknsbplaceddnsaliasdynaliasdyndns-remotedoomdnsip-ddnsblogdnsis-a-doctorroutingthecloudamazoncognitobarsyonlinedsmynasddnsgurucloudflare-ipfsdeus-canvasfrom-idsmushcdnpagespeedmobilizerdyndns-at-homeunusualpersonhosted-by-previderis-a-republicandyn-o-saurstreamlitappworkisboringonthewificprapidqualifioappis-uberleetis-slickgetmyipwpdevcloudtypeformdyndns-at-workgentlentapismynascloudw-corp-staticblitzfrom-ingeekgalaxyservebeerfrom-mdonrenderspace-to-rentaivencloudappspacehostedonfabricawafaicloudcodespotblogspotatlassian-3p-us-gov-modfrom-ndfrom-msis-a-techieis-a-studentcustomer-ociis-a-photographerdurumisfrom-ksmassivegriddyndns-wikiis-an-entertaineris-a-hard-workermysecuritycamerafrom-mnrackmazedyndns-blogis-a-bulls-fanwritesthisblogfreemyipsimple-urlfrom-sdreservdauthgear-stagingest-mon-blogueuris-into-gamesrice-labsxtooldevicesakurawebis-an-anarchistoraclecloudappsdyndns-worksells-for-urhcloudfrom-dcfastvps-serverwpmucdnis-a-geekscrysecfrom-txis-into-cartoonsmodelscapetrycloudflarelocaltonetstreak-linkbalena-devicesfrom-njforgeblocksfreebox-oswebadorsitefrom-ncdoesntexisthobby-sitestreaklinkshomesecuritymacownprovidertuleap-partnersdattorelaywphostedmailalpha-myqnapcloudservequakeis-a-socialistservehalflifepivohostingdynuhostingquipelementsw-staticblitzdyndns-webfrom-deproject-studyaliases121is-not-certifiedhercules-devis-a-financialadvisorservepicsis-a-greenloseyouripfrom-ilwithyoutubemwcloudnonprodwiredbladehostingdnsdojofrom-tnpixolinomyqnapcloudis-an-artisthostedpiis-a-landscaperauiusercontentoaiusercontenton-forgeis-a-conservativedreamhostersnet-freaksapps-1and1is-goneencoreapifastly-edgefrom-nesalesforcefrom-scdeployagentoraclegovcloudappsfrom-alis-a-lawyercechirevultrobjectsstufftoreadisa-geekddnsgeeklovableprojecttry-snowplowfrom-moblogsyteis-a-bookkeepernogmyforumravendbmyboxdeelementoredsaacficogoorinforgcomgobnatneteduidstoreorgcomnetintedudevnomepublorgcomneteduathgovtestscalculatorspaynowinfoquizzesresearchedcloudnsfunnelsassessmentsjscaleforcetmacltdorgmilcompronetgovbizpresseklogesrsccloudcustomfltusrcloude4corealmgovmunicontentproxy9metacentrumdyndyndyndnsdynpagespages-researchitionoccustomercomymyspreadshopipv64diskussionsbereich4limacomrub2ixfirewall-gatewayddnssspdnsbarsykeymachinesquare7myhome-serverspeedpartnercommunity-proschuldockxenonconnectgünstigliefernbwcloud-os-instancedyndnssecmy-routerxn--gnstigliefern-wobin-butterl-o-g-i-nisteingeekin-dslin-berlinin-brbfuettertdasnetzleitungsenin-vpnlcube-serverdyn-ip24logoipdyn-berlinruhr-uni-bochum12hpgoipsrvdnsfruskygit-repossvn-reposinternet-dnsgünstigbestellenhome-webserverxn--gnstigbestellen-zvbbplacedheimdnscosidnswebspaceconfiglima-citydyndns1istmeinvirtualuserschulplattformmy-gatewayddnsseclebtimnetztest-iservmein-iservvirtual-userhome64iservschuletaifun-dnstraeumtgeradeschulserverdynamisches-dns123webseitednshomehs-heilbronndnsupdaterbssgraphicdwadpdwdaepeweaawapaafpfwfabwbpbacwcpcciwebuserapiobjectsidsiskospockkimodorikerbonesteamsparisjanewaypicardglobaltarpitreedpikekiraworfsulukirkarchertuckerhackercanarywesleystagingprereleaset3r2lpbravepanelngrokiservstglclcrmerpflypagesbarsyvivenushoplocalcertlocalplayerbearbloggatewaydeno-stagingis-not-ais-a-goodbotdashvercelmocha-sandboxplatter-appreplitgithubpreviewworkersinbrowserevervaultdetais-ahrsndenoxmitmodxmyaddrstorageapipayloadgrebedocruncontainersstgstagelclstageloginlineis-a-fullstackleapcellngrok-freeis-coolstoragewebharemediatechlibp2pdiscourseimaginecomyspreadshopstoreregbiz123hjemmesidefirmcoorgcomnetedugovsldorgmilcomwebgobartnetedugovtmorgpolcomsocartnetedugovassoagrondiscoodontk12medcuegyecpaabgengorgmilgalsaltulcomadmesmgobpubdocmonfindgnriouioproartlatvetnetfotedulojgovntrturibrbarxxxofficialbasechefprofmktgpsictechinfoarqtcontdentrrpppsiqgit-pagesritmedfieorgcomlibprieduaipgovriikmeactvsportorgmilcomscieunnetedugovnameinfopintouchtawktotawkmyspreadshoporgcomnomgobedu123miwebcomputeorgcomnetedugovbiznameinfocognito-idpeusc-de-east-1onjelasticnxaspdnsbarsydirectwpdeuxfleurstransurldogadoprvwcloudnsamazonwebservicesdnshomeuserpartycokoobinmkmstorjfidemopaasdymyspreadshopalandkapsiikixn--hkkinen-5wacloudplatformdatacenterhäkkinen123kotisivuidacorgmilcompronetedugovbiznameinforadioorgcomneteduuserexperts-comptablestmmyspreadshopgretaprdcomnomynhccifbxoshuissier-justicenotairesaeroportfreeboxoson-webavocatassoportgouvkdnschirurgiens-dentistes-en-franceavouesfbx-os123sitewebveterinairechirurgiens-dentistespharmacienchambagrimedecinfreebox-osdediboxgoupilemszicpyicpvicppleysheezypagesedugovcnpyorgcomcybllcpvtnetedugovtnxonlineschooldaemond6atcopanelorgnetplybotdashstackitkaasorgmilcomnetedugovbizmodltdorgcomedugovcoorgcomneteduappwriteacorgcomnetedugovcloudtranslateusercontentorgcomnetedumobiassoorgcomnetedugovbarsysimplesitediscourseindorgmilcomgobneteduorgcomwebnetedugovguaminfonxhra教育敎育網絡网絡组織組織网络網络组织組织公司政府個人个人箇人ltdorgcomincneteduidvgovxn--uc0ay4axn--55qx5dxn--mk0axixn--io0a7ixn--uc0atvxn--zf0avxxn--lcvr32dxn--od0algxn--wcvs22dxn--gmqw5axn--od0aq3bxn--mxtq1mxn--ciqpnxn--tn0agxn--gmq050iorgmilcomgobneteduiservwp2tempurlmircloudfreesitewpmudevmyfastgadgetcloudaccessjelehalfboltfastvpsemergenteasypanelopencraftizcombrendlynamefromrtpersoadultmedorgpolrelcomproartnetedufirminfoassoshopcoopgouvtmcomediahotelforumvideosportorgsexagrargameslakaseroticaerotikatozsdereklamcasino2000filmsuliinfoboltshopprivnewsszexcityutazasjogaszkonyveloingatlaneacaicogoormyᬩᬮᬶmilwebschnetkopbizzonedesaponpesxn--9tfkymyspreadshopgovmytabittabitorderravpageaccok12idforgnetgovmuniltdplcaccotttvorgcomnetmeca6g5gpgamubacaicniocoukuptverdruscsdelhiindorgmilcomwebnicfingenpronetintedugovresbizbiharbarsyinternetbusinessschooltravelsupabasealumnigujaratfirminfoaeropostbankcoopindevscloudnsno-ipbarsybarrell-of-knowledgebarrel-of-knowledgensupdategroks-thisdnsupdatefor-ourknowsitalldvrcammittwalddynamic-dnsv-infowebhopselfipdyndnshere-for-moreilovecollegemayfirstforumzcloudnsmittwaldservertypo3servergroks-theeusekd1uk0cdndyndnsidrawsainaueuapjpusstagemocksysdevicesclientcustreservdcustdevdisrecprodtestingcobeebyteutwenteboxfusebravepstmndedynngrokorgmilcomnomhzcnetedugovqcxqzzbarsythingdustmo-siemensrb-hostingprotonetfh-muenstergitbookbluebitecloudbeesusercontentnodeartkiloappsforgerockdarklangresinstagingapigeebubbleb-datascryptedhypernodedappnodepantheonsitegitlabgithubkeeneticvirtualservercleverappshostyhostingon-rioedugitticketstelebiton-acornwixstudioon-k3sicp0icp12038jeleqotobigvlairbubbleappsmyaddrstolosmyrdbxwebflowdrive-platformbeagleboardhasura-applolipopdefinimavaporcloudmusicianwebflowtestazurecontainerresindevicereadthedocsloginlineeditorxmoonscalesandcatsbasicserverwebthingsbrowsersafetymarkbeebyteappbitbucketidaccovistablogorgschnetgovxn--mgba3a4f16axn--mgba3a4fraarvanedgeايرانایرانjclaspeziapdudcefegelemeperetevebacanatavaparasabgagfgogrgpgalclblimfmrmcbmbvbfclcmcvcrcpcchlimifibicivipirisimncnbnanenrnpntnnolomobocoaogorosopotoptvtatctbtmtltotpulunutpspapaqsvpvvvtvavvrtrsrprgrfrcrbrarorkrvstsssbscsmsispzczbzbozen-suedtirolmyspreadshopxn--bulsan-sdtirol-nsbxn--valledaoste-ebbtrentinoaltoadigetrentin-sued-tirolxn--forlcesena-c8axn--forl-cesena-fcbxn--bozen-sdtirol-2obtriestetrentinsuedtiroltrentino-s-tirollecceudineaostesienaparmaluccapaviagenoapaduaaostamonzaabruzzoternirietiturinmilanbozenlaziofermoleccocuneonuoropratola-speziavdataaligfvgpugmolcalcamlomumbsicpmnvenvaoedugovabrsarmaremrbastoslazibxosfirenzetrentinosüdtirolval-d-aostavalle-aostamessinacremonaravennatoscanatrentin-suedtirolbolognacalabriaurbinopesarofriuli-v-giuliaogliastraxn--valle-aoste-ebblaquilaandriatranibarlettasyncloudtrentinosudtirolxn--valle-d-aoste-ehbaostavalleyvalled-aostatrentino-alto-adigevallee-d-aostexn--balsan-sdtirol-nsbpistoiasicilialucaniacataniaiserniaperugiabresciaveneziagorizialiguriaimperiabulsan-suedtirolbalsan-suedtirolbarlettatraniandriaxn--trentino-sdtirol-szbforlì-cesenatuscanyvallée-d-aostemantovavallée-aostecasertapiemontevalleaostaval-daostafriulivgiuliatrevisoforli-cesenavalléedaosteferrarapescaravald-aostatrentino-altoadigefriuli-vegiuliavallee-aostecarboniaiglesiastarantomediocampidanovalleedaostetrentinosud-tirolcampobassotrentinsüd-tiroltrentinosüd-tirolmonzabrianzatrentino-südtirolxn--trentino-sd-tirol-c3bpotenzacosenzavicenzaemiliaromagnavenicefrosinonemarchepordenonetrentinosued-tirolvaresemolisevalléeaostefriuli-veneziagiuliabasilicatalatinaanconasavonaveronamodenaaquilabiellabolzano-altoadigepugliafoggiaumbriatrentino-stirolgenovapadovamateranovararagusapiacenzatrentinostirolvalleeaostetempio-olbiatrentinsudtirolmassa-carrarafriuliveneziagiuliatrentinosuedtirolandria-barletta-tranitrapanixn--cesenaforl-i8amaceratacaltanissettaascoli-picenobrindisicarraramassacagliaririmininapolivibo-valentiachietibulsan-sudtirolbalsan-sudtiroltrentino-a-adigebulsanbalsaniglesiascarboniamilanotorinoteramodell-ogliastraarezzotrentinoalto-adigerovigotrentovenetoiglesias-carboniatrentino-sud-tirolaltoadigereggio-emiliareggio-calabriasardegnatranibarlettaandriapiedmontxn--sdtirol-n2amedio-campidanotrentino-süd-tirolfriuli-vgiuliafriuli-ve-giuliaromeennaromapisa32-b16-b64-blodiastibarineencomonaplesforlicesenailiadboxosalessandriasicilytrani-barletta-andriaxn--trentin-sdtirol-7vbpesarourbinotrentinsued-tirolcesena-forliforlìcesenaemilia-romagnamonzaebrianzaxn--trentinsdtirol-nsbtrentinos-tiroltrentinsüdtirolvalledaostaolbia-tempiocampidanomediovibovalentiasassarivalle-daostalombardyfriulivegiuliareggioemiliamonzaedellabrianzaalto-adigevercellitrentin-sudtiroltraniandriabarlettatrentino-sudtirolascolipicenobozen-südtirolfriulive-giuliaflorencevaldaostaxn--cesena-forl-mcbcarbonia-iglesiasaosta-valleycarrara-massadellogliastratrentinoa-adigexn--valleaoste-e7apesaro-urbinoxn--trentinosdtirol-7vbxn--trentin-sd-tirol-rzbxn--trentinsd-tirol-6vbtrani-andria-barlettatrentin-süd-tirolxn--trentinosd-tirol-rzbgrossetomonza-e-della-brianzasüdtirolreggiocalabriatrentinoaadigetrentin-südtirolfriuliv-giuliaverbaniacampaniatrentino-aadigefriulivenezia-giuliasardiniaandriabarlettatranibarletta-trani-andriacatanzarooristanourbino-pesarocesena-forlìvalle-d-aostacampidano-medio123homepagesiracusatempioolbiasuedtirollombardiaavellinocesenaforlìtrentinofriuli-venezia-giuliabozen-sudtirolandria-trani-barlettabulsan-südtirolbalsan-südtirolmonza-brianzabolzanotrentino-sued-tirolbellunosalernolivornocrotonesondriodnshometrentinsud-tirolmassacarraratrentin-sud-tiroltrentino-suedtirolviterbobergamocesenaforliolbiatempiopalermobeneventoagrigentoofcoorgnetfmaitvphdengorgmilcomschnetedugovperagrikanieasukehandachitatokaiaisaikonanoharuamaobuhigashiuraowariasahiinuyamatobishimaiwakurashitarainazawatoyonegamagorimihamatoyotataharakariyayatomioguchikomakimiyoshinishiotokonamekiyosuchiryutoyohashiokazakiisshikikasugaikotakiratoeianjotogofusosetohazutsushimashinshirotakahamanisshinshikatsuhekinantoyokawaichinomiyatoyoakeodateogataakitaikawakyowahonjoogayurihonjonoshirokamiokakatagamimitanegojomeyokotekosakadaisenkazunonikahohonjyomoriyoshimisatohappoukamikoanihachirogatahigashinarusesembokufujisatokitaakitaitayanagiowanitakkomutsutsurutahirosakigonoheoirasetowadamisawanohejiaomorishingohiranairokunohehashikamitsugarushichinohehachinohenakadomarisannohekuroishisakaeisumiasahiotakiinzaiabikomatsudoyachiyomutsuzawakujukuriomigawakashiwatoganemihamanaritasakuranagaramobarahanamigawachoshishiroichoseikozakishisuikatorimidorichonankyonanfuttsuonjukufunabashinagareyamanodasosatakochuotohnoshourayasukimitsuyokaichibayotsukaidosodegauratateyamakamagayayokoshibahikariyachimatakatsuuratomisatokisarazukamogawaichikawanarashinoichinomiyashimofusaminamibososhirakoichiharaoamishirasatoikatahonaiainansaijoseiyoiyoozuuwajimaniihamanamikatamasakiuchikokihokutobetoonshikokuchuomatsuyamaimabarikamijimakumakogenyawatahamamatsunosabaeikedaobamasakaifukuiohionotsurugamihamawakasaminamiechizeneiheijikatsuyamatakahamaechizensoedaukihaomutaokawanishiogoribuzenonojosueumiokiotochikugosasagurisaigawamizumakishinyoshitomikurumekurateyamadakasuganakamamiyamanogatatakatahakataiizukakawaratagawakasuyaashiyainatsukimunakataminamitsuikishonaikurogifukuchikeisenhigashimiyakoshinguyukuhashiokagakiyamekogaongausuikahotohochuotoyotsumiyawakadazaifuhisayamatachiaraiyanagawanakagawahirokawachikujochikushinochikuhochikuzennamieotamaokumashowateneiiwakikoorinangoononishigoshimogoomotegomishimafukushimaasakawakagamiishishirakawaiitatefutabahiratayugawahanawakitakatakawamatakunimiyabukibandaihigashihironoyamatomiharuyamatsuriaizubangedatesomaaizuwakamatsuyanaizuaizumisatonishiaizuizumizakikitashiobarataishinkaneyamakoriyamainawashirotanagurafurudonosamegawasukagawaishikawatamakawaikedaogakitaruiginanenahashimahichisonakatsugawaibigawashirakawamizunamiminokamomitakekawauesekigaharatomikasakahogikitagatayamagatatajimianpachimotosuyaotsukakamigaharahidakanisekitokigujominogodoyorogifukasamatsutakayamawanouchihigashishirakawakasaharashimonitatsumagoichiyodakannakanrashowameiwakiryuotaoratomiokafujiokaitakuranaganoharahigashiagatsumatakasakishibukawaminakamikatashinatsukiyonokawabanumataannakaoizumimidorishintoisesakiuenoyoshiokakusatsutakayamanakanojonanmokutamamuratatebayashimaebashiotakekaitadaiwahongofuchukuietajimashobaramiharahatsukaichihigashihiroshimamiyoshikumanokurenakasakaseraseranishiasaminamifukuyamashinichionomichiosakikamijimajinsekikogentakeharaotobenanaeikedatohmaozoraobiraabirakyowaeniwataikibibaisharirebunerimohiroooketootarupippunishiokoppechitosefurubirahakodateshiranukakitahiroshimakushiroobihironanporoiwamizawaniikappukunneppufukushimanakasatsunaitoyourakuromatsunaiakabirakamisunagawashibechaurakawakamifuranonakatombetsuasahikawashimokawakayabeokoppebiratoriabashirisaromaatsumanumatahidakabifukamukawamikasahorokanaitoyotomisarufutsuhigashikawaishikarikitamiyoichiesashiiwanaitomariminamifuranoakkeshifuranotoyakoyakumootoineppushikaoishiraoinemuronayorohaboroashorobihororishirifujiutashinaihokutotakasuebetsuurausuassabukikonaishimamakinaiedatetoyabieinikiesanuryuoumuteshikagarikubetsuashibetsukimobetsuaibetsutobetsusobetsuembetsushimizuchippubetsurishirihokuryuhoronobeshintokutsubetsushibetsuhonbetsumombetsutsukigatakuriyamakoshimizushiriuchikutchanmurorannoboribetsukamishihorowassamushinshinotsukembuchiwakkanaikamoenaikiyosatotakinoueshikabesunagawafukagawanakagawatakikawakamikawahigashikagurahamatonbetsumatsumaemoseushirankoshishakotanimakanemashikeotofuketomakomaisandatambaitamiawajikasaiasagoshisoonoakoyashirotoyookaminamiawajiinagawafukusakitakasagokamigorikasugaharimayokawaashiyahimejiakashitaishiaogakisannantakinosumototakarazukanishinomiyashingugoshikinishiwakiyokatakaaioimikisayoyabukawanishiamagasakisasayamashinonsenkakogawaichikawakamikawatatsunotsukubaiwamaogawaasahisakaitokaioaraiitakobandodaigosuifuinaamikasumigaurakashimaomitamayachiyoshimodatetomobetoridehitachinakainashikisakuragawakasamayawaramoriyahitachiomiyanamegatayamagatahitachikamisuushikutakahagiibarakitonekoganakasowayukimihojosomitoryugasakishimotsumafujishirotsuchiurachikuseihitachiotashirosatotamatsukuriuchiharashikahakuinanaotsubatawajimakahokukawakitatsurugikaganominotosuzuuchinadakomatsuanamizunakanotohakusannonoichikanazawaiwateshiwafudaikawaimoriokaofunatohanamakikuzumakikitakamininohekunoheyamadayahabasumitaichinosekitanohatahiraizumirikuzentakatajobojiotsuchihironomiyakoiwaizumikarumaiichinohenodakujitonooshushizukuishifujisawamizusawakamaishikanegasakimannoutazukotohiraayagawazentsujihigashikagawauchinomikanonjisanukimarugamemitoyotakamatsutadotsunaoshimatonoshoakuneamamiizumihiokiyusuikinkoisasookouyamanakatanekagoshimakanoyaisenkawanabeminamitanemakurazakitarumizunishinoomotematsumotosatsumasendaioimatsudaayaseebinamiurazushinakaiodawaraiseharasagamiharahakoneaikawakaiseiatsugitsukuihadanoyamatoyamakitazamaoisochigasakininomiyayokosukakamakuraminamiashigarafujisawasamukawakiyokawahiratsukayugawaraokawaumajikochitsunootoyoakiinonishitosayasudahidakamiharasakawaniyodogawahigashitsunokagamigeiseisusakiotsukinaharisukumomurototosakamiochitoyotosashimizumotoyamanankokunakamurakitagawayusuharaogunichoyoukiasoutoozugyokutoamakusamifunetakamoriyamagaminamataminamiogunikikuchisumotoyamatonagasumashikiaraokumamotokamiamakusanishiharayatsushiroayabeseikasakyoideineujinakagyokameokakyotangokyotanabekyotambaminamiyamashiroyamashinatanabeyawatawazukaminaminantanmiyazuhigashiyamafukuchiyamakitamukokamojoyokizumaizuruujitawaraoyamazakinagaokakyokumiyamakawagoeinabeshimameiwaasahitaikiudonoisetsukisosakikuwanamihamamiyamasuzukatamakimisuginabarikumanokomonominamiisewataraitobakiwatakikihotadomatsusakayokkaichikameyamaureshinoishinomakishichikashukuohirataiwaosakizaohigashimatsushimashikamaiwanumashibataogawaraonagawakawasakiseminemarumoriminamisanrikukakudamuratawakuyatomiyanatoriwataritagajomisatotomekamirifushiroishimatsushimayamamotoshiogamafurukawahyugaebinotsunosaitoayakushimanobeokakitauramiyazakitakazakigokaseshiibamimatashintomikunitomikitakatakobayashikawaminamitakaharukijotakanabemiyakonojonishimeranichinankitagawakadogawamorotsukakisofukushimaminamimakisakaeobuseikedaogawamiasaokayaasahiotakiotarichinoinaomichikumakomaganechikuhokukaruizawayasuokaooshikaikusakaminamiaikitogakushimatsukawakawakamitateshinatakamorikitaaikishiojirimiyadahakubaiizunaiijimaiiyamamiyotasuzakayasakatoguraookuwanagawaminowahirayayamagataminamiminowafujimiomachisakakitakaginaganonakanosakuhokomoronagisoshinanomachiwadauedaiidaharasuwatomiachiaokianankisosakunozawaonsenagematsutakayamashimosuwamatsumotoyamanouchinakagawamochizukiazuminotatsunoobamaomuraseihiunzenosetofutsuikichijiwanagasakiisahayahasamisaikaikawatanasasebohiradokuchinotsugototogitsutsushimashimabarashinkamigotomatsuurayamazoekashibaikomakawaitenrioyodosangokoryoudaojiikarugayamatokoriyamatenkawakatsuragikurotakikawakamimiyakemitsuetakatorikamikitayamayamatotakadahegurishinjokanmakisakuraitawaramotogoseoudanarasoniandokawanishishimoichihigashiyoshinokashiharashimokitayamanosegawayoshinomintsivorytopazsakuragehirnsumomoaseinetopalmail-boxmokurenyoitamuikaojiyagosensanjoaganomyokoseiroagaomishibataniigatanagaokamurakamiuonumayuzawakariwatagamitainaitsunanminamiuonumatochioyahikojoetsuseiroukamosadoizumozakitokamachiitoigawasekikawakashiwazakitsubamemitsukekokonoesaikiusukibeppuusahimeshimakunisakihasamataketatsukumihitaoitahijikusuyufukujukamitsuebungoonobungotakadaibaraniimibizentsuyamaokayamakasaokahayashimayakagemaniwaakaiwamisakishinjotamanotakahashikibichuowakesojanagishookumenannishiawakurakurashikiasakuchisetouchikagaminosatoshotomigusukunakagusukuyaeseizenaurumaiheyaaguniogiminanjokinminamidaitokitanakagusukuyonaguniokinawaishigakikunigamiurasoekadenataramahiraraginozataketomishimojizamamitonakiitomanhigashimotobuyonabarugushikamionnanahanagohaebarukumejimakitadaitonakijinnishiharayomitanginowantokashikiishikawaikedasuitaminohizuminishisakaikananabenodaitoosakasayamayaokishiwadatadaokakaizukatondabayashichihayaakasakakumatorikadomasayamahigashiosakashijonawatehirakatataishimisakitajirihannansennankatanotoyonominatosettsuhigashiyodogawaibarakinosekitachuohigashisumiyoshifujiiderakashiwaraizumiotsutoyonakamatsubaramoriguchiizumisanoshimamototakatsukineyagawahabikinotakaishikawachinaganoyoshinogarikamiminearitaouchiimarihizenogikashimaariakekiyamafukudomikitagatakitahataomachigenkaikanzakinishiaritakyuragisagataratosutakushiroishikaratsuhamatamakouhokukawagoeyoshidasatteogoseirumaasakaurawaogawaniizaomiyayoriiotakishikihonjooganohannohanyuinasaitamaokegawaarakawayoshikawayokozehasudasayamahidakafukayachichibuiwatsukiryokamiyoshimikamiizumifujimiwarabiranzanmiyoshiminanoyashiosakadosugitomisatohigashichichibutodasokakukiyonokazoshiraokakasukabekounosukawajimatsurugashimamiyashirokitamotohatoyamamoroyamahatogayakumagayakawaguchinagatorokamisatomatsubushinamegawatokigawakamikawafujiminohigashimatsuyamakoshigayatokorozawas3isk01isk02ryuohkoseikonanaishorittotakashimamaibarahikonetorahimenishiazaikokagamokotoyasuotsukusatsunagahamamoriyamatoyosatotakatsukinotogawaomihachimanhigashiomiakagiunnanizumogotsuamayatsukakakinokimatsuehamadamasudahikawahikimiokuizumoyasugiyakumomisatotamayuohdahigashiizumookinoshimanishinoshimatsuwanoshimaneshimadafujiedayoshidashimodagotembaiwataatamikosaiyaizuitoizumishimahaibaramakinoharaomaezakikawanehonkannamisusonohigashiizufukuroinumazukawazufujiaraishizuokahamamatsushimizuizunokunimatsuzakimorimachiminamiizunishiizukikugawakakegawafujikawafujinomiyaujiietsugaoyamayaitaohiranikkoashikagakuroisokanumasakurashioyakarasuyamamotegiichikaikaminokawatochigihagamokanogisanobatonasumibunasushiobaranishikatautsunomiyaiwafunemashikoshimotsukeohtawaratakanezawaitanokomatsushimatokushimaichibaminamiaizumiwajikikainanmiyoshinarutomimamugiananmatsushigesanagochishishikuinakagawamachidachiyodakomaefussainagitaitochofufuchuomeotahigashiyamatotoshimaokutamaaogashimakodairaedogawaarakawahachiojishinagawatachikawashibuyasuginamihinodekiyosesumidaoshimanerimamitakahamuraadachinakanomizuhobunkyomegurominatokoganeihigashikurumekokubunjihigashimurayamamusashimurayamatamakitahinochuokotokatsushikakouzushimaogasawaraakishimakunitachishinjukusetagayamusashinohachijoitabashiakirunohinoharachizunanbukotouramisasawakasayonagokogehinoyazutottorinichinansakaiminatokawaharaoyabetairainamiasahinantoimizufuchutakaokakurobeyamadajohanatoyamatonaminyuzenfunahashinakaniikawanamerikawaunazukitogahimiuozufukumitsutateyamakamiichiiwadearidayuasainamitaijikatsuragiaridagawatanabemihamahidakakainankiminomisatoshingushirahamakamitondayurakozakoyagobokitayamawakayamakudoyamahashimotokushimotokozagawahirogawakinokawanachikatsuurarsuseroeoishidasagaeoguniasahinagaitendonanyoobanazawanishikawasakataohkuratozawamikawamamurogawayamagatafunagatatakahatashonaishinjokahokuiideyuzakawanishitsuruokakaminoyamayamanobeshiratakamurayamanakayamakaneyamahigashineyonezawasakegawamitouubeyuuabushimonosekitabuseoshimatoyotaiwakunihikarishunannagatohagihofukudamatsutokuyamashowadoshitsurunanbukoshukaiminami-alpsnirasakikosugeotsukioshinohokutominobuyamanashifuefukichuokofuichikawamisatoyamanakakonakamichitabayamanishikatsuranarusawafujikawahayakawafujiyoshidafujikawaguchikouenohara長野京都岐阜大阪三重群馬千葉滋賀佐賀奈良adednelgaccogogror秋田愛知高知埼玉沖縄栃木熊本岩手青森山梨新潟島根鳥取長崎香川宮城石川大分宮崎茨城山口兵庫山形徳島広島福島福岡岡山富山静岡愛媛福井東京xn--4it168dhatenadiaryxn--vgu402ckawaiishophatenablogcocottenamaste北海道penneehimeiwateversestabachibashigagonnagunmapermahaccaakitaosakauh-ohblushkochiaichifukuikuroncapooitigohyogotokyokyotopunyuthickcheap0t00g00j0mie2-ddaapyawjg0amfemsubxiiboomoobutchueekpgwrgrherskrboyrdyupperunderflierchipsmydnsheavyangryhippygirlyrulez神奈川鹿児島和歌山bambinaxn--nit225kokayamasaitamaxn--k7yn95exn--1lqs03nsapporoparasitelolipopmcxn--efvn9sniigatafukuokatokushimafukushimahiroshimakagoshimafakefurokinawaxn--8pvr4ucoolblogxn--0trq7p7nnkawasakinagasakimiyazakichilloutxn--8ltr62kxn--klty5xpeeweezombiecutegirlxn--rny31hxn--uuwu58axn--ntso0iqx3axn--djrs72d6uytoyamanikitanyantakagawamimozanagoyaboyfriendxn--2m4a15egreaterchowderegoismyamagatafashionstorexn--elqq16hxn--pssu33lsendaimiyagixn--rht27zpecoriaomorisaloonwatsonvivianxn--djty4knobushipigboatnaganopinokoxn--f6qx53asadistvelvetsecretxn--5js045dchicappayamanashiibarakidigickgirlfriendxn--1lqs71dmongolianxn--c3s14mxn--qqqt11mtochigixn--5rtq34kparallelo0o0mondkobesagabonadecaoitanarafoolkilldecimainhiholomosblokilociaoundopupugifutankcrapflopnooroopsmodsholyjeezstripperpepperbittershizuokaxn--rht3dkitakyushureadymadeicurusversusmatrixxn--rht61ehungryfloppygloomycrankyhandcraftedlittlestarxn--klt787dxn--kltx9awhitesnowsunnydaytottorilovepoptheshopbuyshopxn--5rtp49cxn--d5qv7z876cwebaccelxn--kbrq7oxn--4pvxsxn--1ctwolovesickkumamotocatfoodxn--tor131oyokohamawakayamatonkotsuxn--ehqz56nxn--uist22hxn--6btw5axn--kltp7dyamaguchifrenchkisspussycatxn--4it797kxn--uisz3gbabybluexn--zbx025dnetgamersxn--7t0a264ckanagawaxn--6orx2rishikawaxn--ntsq17ghalfmoonschoolbusjellybeanxn--mkru45iusercontentlolitapunkxn--32vp30hsakurastoragehokkaidoshimanecandypopbabymilksupersaleweblikeraindropbackdropwebsozaikikirarahateblodaynightmeneacsccogoormobiinfoaeusxxorgmilcomnetedugovorgcomnetedugovbizinfotmprdorgmilcomnomedugovassnotairespresseassocoopgouvveterinairemedecinpharmaciensorgnetedugovtraorgcomedurepgovmeneperekgacscaiiocogoitoresmshsseoulbusanulsandaeguc01milvkimmvchungnamjeonnamjeonbukeliv-dnsgyeonggijejueliv-cdnincheondaejeongangwongyeongbukgwangjuchungbukgyeongnameliv-apicoeduindorgcomembnetedugovorgmilcomnetedugovjcloudorgcomnetintedugovperbnrinfocooyorgcomnetedugovipfscanvamypepw3sstorachakeeneticjoinmcinbrowserdwebcyonnftstoragemyfritzaemewphlxachotelltdorgcomwebsocschngonetintedugrpgovassnomgacsccoorgnetedugovbizinfo123websiteidorgmilcomasnnetedugovconfidmedorgcomplcschnetedugovaccoorgnetgovpresstmassoirseproxaccosoundcasthoptocraftvp4c66orgnetedugovitsmcdirmyboxbarsyedgestacksynologylogintonohostwebhopdiskstationi234tcp4hoocgroknoipprivmydsddnsdnsforlohmustransipdscloudfilegear-sgbrasiliafilegearframerbarsybarsyonlinecoprdorgmilcomnomedugovinforgcomnetedugovnameacprorgcomartnetedugovpresseinfoassoinstgouvorgnycedugovbarsydscloudjuorgcomnetedugovminisiteaccoororgcomnetgovorgmilcompronetintedugovbizmuseumnameinfoaerocoopaccoorgcomnetintedugovbizcooporgcomgobneteduorgmilcomnetedugovbiznameaccoorgmilneteduadvgovcoorgcomnetaltgovforgotherhiskeeneticispmanagernomassoprod5476132eastasiacentraluswesteuropewestus2eastus2rucdnwest1-usfra1-desandboxjls-sto1jls-sto3jls-sto2aglobalabglobalsslmapprodfreetlsmaplon-1lon-2ny-1fr-1sg-1ny-2paassnwebpaashostingjelasticnordeste-idcsocuserpagescwebfileblobservicebuscoreatlricnjsjelasticwebsitestoragesezagbinruhuukjptsmyspreadshopmynetnameakamaiorigin-stagingfrom-coipv64dynv6cdn77serveblogadobeaemcloudhicamsprytdnsupno-ipownipde5ovhicpfirewall-gatewaysytesmypsxbarsyusgovcloudapimyamazemyradwebakamaihdsaveincloudfastlylbfrom-lasubsc-paysquare7in-the-bandblackbaudcdnhomelinuxoninfernoctfcloudservebbsdns-dynamiccloudfrontakamai-stagingipifonyham-radio-opsenseeringclickrisingcommunity-profrom-nylocalcertgrafana-devedgesuite-stagingcloudflareanycasteating-organicatlassian-devmydattofeste-iplocaltotorprojectknx-serveredgekeycloudflareglobalcloudyclustercasacamserveftpakamaized-stagingakamaiorigindns-cloudmyeffectboomlabotdashbuyshousestwmailhetemlazure-mobilein-dslthruhereredirectmedynuddnsbouncemesupabaseluyanicloudappakamaicloudfunctionsdebiannhlfanpgafanstatic-accessin-vpnmysynologymafeloappudohomeftptrafficmanagersiteleafseidatmemsetcloudflarecloudaccesskeyword-onazure-apiis-a-chefdoes-itgets-itwebhopselfiphomeipkicks-assedgesuitewindowsserver-ontunnelmolemydissentscrapper-sitecloudflarecnuni5srcfggffiobbzabcdenodynuopikddnsvpndnsakadnselastxkinghostvps-hostfastlyhomeunixazureedgeshopselectdontexistmyfritzcloudjiffyalwaysdatasells-itsquaresbroke-itazurefddattolocalat-band-campmeinforumfamilydsazurestaticappsdefinimabplaceddnsaliasdynaliasnow-dnsblogdnsroutingthecloudendofinternetdsmynasakamaiedgemymediapcadobeio-staticakamaiedge-stagingakamaihd-stagingddns-ipprivatizehealthinsurancelive-onkrellianschokokeksmassivegridmysecuritycamerarackmazeserveminecraftfrom-azis-a-geekakamaizedmoonscalecryptonomicoffice-on-theusgovtrafficmanageradobeioruntimeedgekey-stagingreserve-onlinechannelsdvrdnsdojousgovcloudappcdn77-sslapps-1and1podzoneazurewebsitesdynathomescaleforceyandexcloudvusercontentisa-geekcdn-edgescoaemalcesappwriteazimuthtlonarvonoticeablestorecomwebrecnetperotherfirminfoartslgdloncogoiltdorgmilcolcomplcschgenngonetedugovbiznamefirmmobiacincoorgmilcomnomwebgobnetintedubizinfocomyspreadshopdemongovtransurl123websitehosting-clusterkhplaycistrongsnesosvalervålerxn--vler-qoaossandeheroysandeherøybøboheroyherøyxn--hery-iraxn--b-5gavalerbøboxn--b-5gasandesandexn--hery-iraxn--vler-qoavålerhåreålaahavaofsfvfhlolnlalrlhmfmtmahcostntbuåstrmreigersundmyspreadshopgálsáeidsvolltingvollgildeskalflorøvadsøvardøvanylvenxn--bhccavuotna-k7astrandaxn--kvnangen-k0axn--sknland-fxaxn--mosjen-eyarakkestadhyllestadnannestadvevelstadvaapstenordre-landsondre-landsøndre-landtjieltexn--vrggt-xqadsør-aurdalsor-aurdalheradstordmoldefordeførdeseljefedjeryggehemnexn--krehamn-dxasognegranesøgnebrynetjomevallebykletokkegiskedovretjømehobølvoldasaudatolgasømnaviknadønnasomnadonnatranafrananesnaraumasmolatrænafrænalesjasmølaørstaorstahitrafloraaukraloppafrøyarissasnasahalsagalsaromsaraisaráisafroyasnåsagronghobolfjelltydalårdalardalaskimharamkraanghkekråanghkesorumbarumhurumbærumsørummodumsálátbálátfrognbjugnvåganvagangulenskienløtenlotenstrynvefsnxn--merker-kuaskaunsveiobømlobomloskjåkvardoflorovadsosalatbalatsálatklæbuklabuselbubarduulvikskjakklepprisørxn--nttery-byaeflåeidflahofmilgolholsellomskifetvikdepvgsfhsaskerrisorhamarasnesåsnesrørosrorosxn--slat-5namasoynaroyvaroyluroydyroyaskoyradoyandoyrodoymeloyradøyandøyrødøymeløyaskøylurøydyrøymåsøyværøynærøyhoylandethøylandetdivtasvuodnalørenskoglorenskognesoddtangenxn--tjme-hraxn--smla-hraxn--stjrdal-s1aunjargalillehammerunjárgaxn--hamary-fyadavvenjargaxn--bearalvhki-y4a123hjemmesidegjerdrumxn--brnnysund-m8acxn--tnsberg-q1axn--mlatvuopmi-s4axn--snsa-roaxn--skierv-utaxn--brum-voatysfjordkvafjordeidfjordkvæfjordsongdalenmjondalenmjøndalenxn--gls-elackragerogáŋgaviikagangaviikasørreisasorreisasør-varangersor-varangerxn--risr-iraskiervaxn--frna-woaxn--trna-woakvinesdalleksvikleirvikrøyrvikroyrviksvelvikvenneslaevje-og-hornnessandnessjøenmarnardalvindafjordsandefjordenebakksnillfjordullensvangxn--trany-yuabrønnøysundnamsskoganaustevollxn--stjrdalshalsen-sqbnord-aurdalnord-frontrøgstadtrogstadgrimstadflakstadgjerstadxn--sandy-yuaxn--leagaviika-52bnore-og-uvdalvegarsheixn--rlingen-mxaxn--ggaviika-8ya47hvegårsheikarlsoykvitsoymasfjordenhamaroyinderoyosteroydavvenjárgasauheradguovdageaidnuxn--vre-eiker-k8abronnoysiellakkrødsheradkrodsheradkvinnheradbrønnøyxn--mtta-vrjjat-k7afxn--lrenskog-54akvitsøyvárggátkarlsøyosterøyinderøyhamarøybronnoysundxn--aurskog-hland-jnbbahccavuotnabáhccavuotnagiehtavuoatnastor-elvdalmidtre-gauldalxn--gildeskl-g0akarasjokevenassixn--bievt-0qaxn--yer-znalebesbynessebyxn--hbmer-xqamalselvmålselvxn--unjrga-rtamøre-og-romsdalmore-og-romsdalhareidmelandørlandorlandstrandålgårdsolundalgardafjordåfjorddielddanuorrikautokeinoxn--stre-toten-zcbskodjeaejriestangeliernebamblestokkefauskesnåasesnaasekongsvingerlangevagberlevagxn--flor-jrahattfjelldalostre-totenøstre-totenvestfoldxn--mely-iraálaheadjualaheadjunordreisaxn--troms-zuaxn--lgrd-poacporsangerflatangerstavangerleikangerbremangersamnangergieldakarasjohkaxn--rdy-0nabfrostautsirasnoasatromsaxn--sr-aurdal-l8aflekkefjordjølsterjolsteraremarkhedmarknååmesjevuemienaamesjevuemiexn--vard-jrarollagmeråkermerakerorskogørskogxn--bdddj-mrabdákŋoluoktaxn--osyro-wuaaknoluoktatrysilskjervøymandaljondalbindalrindalmeldalsuldalorkdalsigdalalvdallærdalhurdalsirdalverdallerdallardaloppdalåseralaseralhadselkragerødivttasvuotnaoverhallasteinkjerxn--hnefoss-q1askedsmokorsettromsøxn--dyry-iravestre-totenmuseumxn--sandnessjen-ogbrahkkeravjufylkesbiblbájddarbajddarxn--laheadju-7yarennesøyxn--koluokta-7ya57hxn--hgebostad-g3aleirfjordstorfjordbalsfjordbåtsfjordbatsfjordmuosátbievátloabátkárášjohkanøtterøyxn--mjndalen-64anordkappláhppilahppialstahaugsiljanverranrøykenroykenhaldenlyngenbergenhortenhønefosshonefosstroandinbeiarnvarggatosoyroosøyrotromsoidrettmuosatbievatruovatloabatvoagattynsetnessetxn--indery-fyaskánitskanitraholtråholtxn--ystre-slidre-ujbandebusarpsborgbearduxn--karlsy-fyahordalandjorpelandjørpelanddeatnuringsakersør-odalsor-odalxn--slt-elabringerikeaudnedalnittedalnissedalhemsedalslattumsurnadalxn--blt-elabelverumstjørdalnaustdalhjartdalgjøvikfyresdalhasviknarviklarvikgjovikmalvikgamviklenvikporsgrunnstjordalengerdaldrobakdrøbakxn--msy-ula0hvestvagoyxn--vgan-qoaxn--ryken-vuaxn--lten-graxn--stfold-9xaxn--hpmir-xqaxn--lury-iramálatvuopmimalatvuopmitysværkirkenesbirkenesmoskenesbáidárxn--fjord-lraxn--rdal-poabahcavuotnabáhcavuotnaxn--frde-gralindåsbearalvahkixn--hobl-iraráhkkerávjuxn--loabt-0qavågåáltábodøsundlundraderådeetnetimeholeauregrueoddavagavegaranatanaarnasolasulaaltalekafusavangbergkvamåmliamlibokntinnroangranosenoslobodorøstroststatåmotamotivguprivøyeroyerliermossvossxn--nvuotna-hwalusterlunnermarkerhábmerhabmerhvalerfjalerxn--rholt-mratysvarbaidarfitjargaularhápmirhapmirmelhusfosnesøksnesoksnestysneshemnesevenesflesbergeidsbergtonsbergtønsberglindasxn--sndre-land-0cbnamsosxn--srum-graøystre-slidreoystre-slidrevestre-slidretrondheimbalestrandxn--langevg-jxaaustrheimxn--skjk-soavagsoyaveroysandoykarmoyfinnoytranoyvestbytranbysykkylvenxn--hyanger-q1aspjelkavikandasuoloxn--fl-ziaxn--drbak-wuastathellexn--sr-varanger-ggbtelemarkxn--bhcavuotna-s4axn--porsgu-sta26fčáhcesuolocahcesuoloakrehamnåkrehamnsandøykarmøyfinnøytranøyvågsøyaverøynamdalseidxn--lesund-huabadaddjaxn--vegrshei-c0axn--btsfjord-9zagildeskålporsanguxn--trgstad-r1anávuotnanavuotnahammerfestxn--sgne-graxn--brnny-wuacibestadharstadnarviikaevenáššivestnesgjemnessandnesagdenesrennesoyxn--avery-yuaxn--tysvr-vrabearalváhkikongsbergspydebergrandabergxn--andy-iradavvesiidaxn--krdsherad-m8aporsáŋgufredrikstadbjerkreimringeburennebuaurskog-holandnotteroyxn--vgsy-qoa0jxn--rmskog-byaskierváivelandbyglandfrolandaurlandforsandxn--bjddar-ptamidsundålesundalesundfetsundfarsundovre-eikerøvre-eikerakershusxn--moreke-juasørfoldøstfoldostfoldsorfoldhøyangerhoyangerlevangerorkangertanangerxn--vestvgy-ixa6olillesandulsteinxn--rennesy-v1agranvinskjervoyxn--klbu-woalavagisxn--h-2faxn--ryrvik-byakafjordkåfjordseljordfolkebiblxn--gjvik-wuajevnakerxn--kfjord-iuabudejjuxn--kranghke-b0axn--davvenjrga-y4axn--rland-uuaxn--ldingen-q1axn--mlselv-iuaxn--rady-iraxn--linds-prabrumunddalxn--ygarden-p1amo-i-ranaeidskogrømskogromskoghjelmelandxn--finny-yuaxn--sr-odal-q1axn--skjervy-v1aballangenkvanangenkvænangengratangenxn--hmmrfeasta-s4acvossevangensuohkanxn--rde-ulaxn--mli-tlaxn--ksnes-uuanordlandskanlandskånlandsortlandfuoiskuxn--rros-graxn--hcesuolo-7ya35bxn--eveni-0qa01gagaivuotnagáivuotnaxn--seral-lradrammenmodalenmosjoenjan-mayentorskensteigengloppenxn--snes-poamatta-varjjatxn--sr-fron-q1aomasvuotnajessheimbådåddjåxn--krager-gyaxn--kvfjord-nxaxn--asky-iraxn--snase-nraxn--bidr-5nacholtålenxn--vads-jraxn--jlster-byamosjøenxn--rst-0nastavernxn--ostery-fyaxn--oppegrd-ixaxn--sknit-yqaxn--risa-5naoppegårdskiptvetrendalenholtalenxn--mot-tlaxn--lhppi-xqaxn--holtlen-hxaxn--srreisa-q1akopervikxn--muost-0qaxn--bmlo-grahokksundkvalsundegersundxn--karmy-yuaullensakerxn--hylandet-54axn--kvitsy-fyaxn--bod-2nalangevågberlevågkristiansandxn--rsta-frahornindalstjørdalshalsenstjordalshalsensandnessjoenhámmárfeastaxn--lrdal-srasør-fronsor-fronnord-odalkristiansundmátta-várjjatvestvågøynesoddennotoddenbuskerudøygardenoygardensalangenlavangenralingenrælingenlodingenlødingenleaŋgaviikalaakesvuemieleangaviikauenorgexn--srfold-byaaskvollxn--rskog-uuaxn--nry-yla5gxn--vry-yla5ghammarfeastaxn--rhkkervju-01afxn--givuotna-8yakommunekrokstadelvanedre-eikerhagebostadhægebostadxn--berlevg-jxakviteseidxn--s-1faxn--l-1faxn--nmesjevuemie-tcbafuosskomoårekemoarekexn--lt-liacxn--jrpeland-54asvalbardoppegardholmestrandtvedestrandsogndalsokndalarendalsunndalfolldalxn--krjohka-hwab49jlyngdaletnedalnorddalsaltdalgausdalskedsmovaksdalgjesdalstordalxn--frya-hraaarbortedrangedalxn--smna-graaurskog-hølandxn--vg-yiabtjeldsundhaugesundlindesnesxn--mre-og-romsdal-qqbxn--dnna-gradynmerseineshacknetenterprisecloudmineaccomaorimāoriorgmilcriiwigennetschoolhealthkiwigovtgeekxn--mori-qsacloudnsparliamentcomedorgcompronetedugovmuseumwebsitekinservicebarsywebsitebuildereerobookheimdnsleapcelleero-stagetechcrscsslorigingohomecdbedeeeiemesecabgngilnlalplchfisiincnnoroptatitmtltruauhulumkdkukskjplvtrgrfrkrhrusesismycynzcznetinteduassoososcloudstgbetaaezaeuhkusjshatenadiarycdn77hoptozaptois-a-knightmyftpno-ipjpnddnssdpdnsspdnsbarsysweetpepperis-a-bruinsfanis-very-sweetservegameis-a-soxfanhomelinuxcdn77-secureservebbsmisconfusedwebredirectblogsitefreedesktopcouchpotatofriestoolforgeaccesscamis-lostreadmyblogsmall-webfedorapeopleserveftpis-a-celticsfanmywirepotagertwmailin-dslsellsyourhomeread-booksfreeddnscable-modemis-savednflfanufcfanmlbfanstuff-4-saleendoftheinternetin-vpnmy-firewallhomeftpis-localis-a-chefboldlygoingnowherewebhopselfipkicks-assroxatunkcamdvrfedoraprojectgotdnsdvrdnsdyndnspubtlspimientahomeunixdontexistfedorainfracloudwmflabsfspagesbmoattachmentsteckidsfamilydsdnsaliasdynaliasnow-dnscloudnsdoomdnsduckdnsblogdnshomednsroutingthecloudendofinternetdsmynasip-dynamicpoivronhttpbinmyfirewallis-very-evilmysecuritycamerais-a-linux-userwmcloudis-a-geektuxfamilyis-a-candidatedoesntexistis-very-badhobby-sitegame-hostaltervistais-foundis-a-patsfandnsdojohepforgepodzonedynservcollegefanis-very-goodfrom-meis-very-niceisa-geeknerdpolacmedsldingorgcomnomgobabonetedupleskaemhlxmyboxrockyprvcydeuxfleurspdnscodebergheyflowstatichostorgmilcomnomgobneteduorgcomeduiorgmilcomngonetedugovcloudns1337ngrokacorggogfamcomwebgobnetedugokgopgkpgovgosbizpasaugumicsopozpapuwmwsrprusiskwpspkppspkmpspokeoiawsawifoumsdnskokwpmuppuppsppiwwiwoowuzswkzoschrzpisdnwzmiuwwitdpssewsseumigugimoirmpinbwinbwiihupporzgwgriwupowwskrwioswuozstarostwokonsulattmpccopruszkowmyspreadshopostrodakartuzyopolegminamediaustkazgorajgoraolawailawalomzawloclradombytomjaworznotargilubinkoninzagantorunkutnokepnonakloczestsopotsanokturekplockslasksklepzarowlukowmedaidgdaorgmilrelcomnomatmgsmartneteduelkgovwawsossexbiztgorysejnytychypomorzeboleslawiechomesklepsdscloudunicloudzakopanelegnicarawa-mazbydgoszczswidnikkrasnikwloclawekbielawamragowograjeworealestatebeskidykaszubymalopolskaprzeworskswiebodzinlecznadfirmaszkolawarmiagdyniamiastakazimierz-dolnymalborkswidnicadlugolekaostrolekapodlasieelblagtravelsimplesitezachpomormielecszczecinnieruchomosciwalbrzychlezajsklublinbedzinpoznanwielunmielnooleckostarachowicedkontopowiatwroclawrybniksuwalkileborkslupskgdanskostrowwlkptarnobrzegtourismwegrowkrakowglogowyou2pilanysamailwrocinfoagroautobeepshopprivlapypiszlodzcfolksecommerce-shopmazurypulawyskoczowrzeszowpomorskiezgierzkaliszolkuszlowiczostrowiecsosnowiecmazowszewodzislawbialowiezazgorzeleckatowicepabianicejelenia-gorawolominkarpaczsieradznowarudaczeladzkonskowolaskierniewiceswinoujscieturystykabieszczadycieszynketrzynolsztynbialystokbabia-goraprochowicewarszawastalowa-wolapolkowicegorlicegliwiceponiatowalimanowalubartowaugustowkobierzyceopocznognieznoszczytnokolobrzegshoparenapodhalebielskoklodzkostargardatwithplayitownnamecoorgnetedugovacorgcomproestnetedugovbiznameislaprofinforechtngrokmedaaaacacpaenglawjurbarbarsykeeneticavocatacctcloudnsorgcomsecplonetedugov123paginaweborgcomnetintedugovnomepublidkinbarsygovx443cloudnsorgmilcomnetedugovcooporgmilcomschnetedugovnamecomcannetlibassoaemclantmcontstoreorgcomnomrecwwwbarsyfirminfoshopartsstackitmyddnswebspacelima-cityacincooxorgedugovbarsybrendlyhbvpsvpsspectrumlandinghostingacppmordoviamcprecbgorgmilcomspbnetintedumsknovgovbirrasmcdirmytismircloudvladimirnalchikadygeyamarinepyatigorskmyjinobashkiriaeurodirvladikavkazna4ugroznykustanaikalmykiacldmaildagestaniranbuildcanvaliaravalwixdevelopmentappwritemigrationneedleverceldatabasestackitcodereplravendbonporterlovableaccoorgmilnetgovcoopmedorgcompubschnetedugovservicemecomygovorggovtvmedorgcomnetedugovinfoedgfacbmlonihkutwpsryxzbdtmacfhppmyspreadshopbrandpartiorgcomfhvpress123minsidaitcouldbeworlanbibkommunalforbundfhskiopsyskomvuxkomforbnaturbruksgymnloginlineorgcomnetedugovenscaledeuusentbotdaorgmilcomnetgovnowteleporthashbangplatformlovablebarsyshopwarebasehoplixbarsyonlinemsf5gitappgitpagecofigma-govcaffeinefigmacanvasoltstputerbarsysupportchatgptsquareomniweopensocialcpanelnotionnovecorewpsquaredpreviewjelecyonbyensrhtfastvpspieboxconvexjouwwebheyflowplatformshloginlinemadethissourcecraftclouderaorgorgcomartedugouvunivmeorgcomnetedugovsurveysstatichfheiyuxs4allprojectmyfastubervibehostapp-ionosdeployagentmecoorgcomschnetedugovbizcncostoreorgmilcomneteduembaixadaconsuladokiraranohoprincipesaotomeheliohobarsystorebaseshopwaresellfyabkhaziavologdamordoviapenzalenugsochinavoiexnetspbmsknovnorth-kazakhstanashgabadkareliaarmeniageorgiavladimirnalchikivanovobukharaadygeyakhakassiakalugakrasnodarjambylaktyubinsktroitskbryanskobninskkurganazerbaijanpokrovskbashkiriatselinogradvladikavkazmurmansktulatuvamangyshlaktashkentchimkentgroznykaragandatermezarkhangelskkustanaikalmykiabalashoveast-kazakhstankaracoldagestantogliattibarsyredorgcomgobedumirenknightpointaccoorgjelasticdiscoursecleverappsschacmiincogoornetonlineshopcogoorgmilcomwebnicnetintedugovbiznametestcoorgmilcomnomnetedugovorangecloudpersoindorgcomfinnatnetgovensmincomtourismintlinfox0611oyaorgmilcomnetedugovquickconnectvpnplusnettprequalifymeaddrmyaddrntdllwadlnctvavdrk12orgmilpolbeltelcomwebgennetedutskkepgovbbsbiznameinfocoorgmilcompronetedugovbiznameinfobetter-thanworse-thansakurafromdyndnson-the-webmymailerorgmilurlcomneteduidvgovmydnsgameclubebizmeneacsccogotvorhotelmilmobiinfovodteiflgplkmsmsbcckhincndnvncoztltmkckppzpdprvcvkvlvcrkrkscxuzchernovtsyrivneyaltaodesavolynrovnolutskltdinforgcomnetedugovbizvinnicazhitomirternopilpoltavakropyvnytskyizaporizhzhiasevastopolsebastopoluzhgoroduzhhorodkharkovkharkivvinnytsiakhmelnytskyizaporizhzhecrimeaodessazhytomyrnikolaevcherkassydonetskluganskluhanskkirovogradivano-frankivskchernivtsikrymkievkyivlvivsumyzakarpattiamykolaivcherkasychernigovkhersonchernihivdnipropetrovskdnepropetrovskkhmelnitskiyneacsccogoorusorgmilcomedugovvmdhmyspreadshopadimono-ipbarsybytemarkbarsyonlinelayershiftnh-servretrosnubapicampaignservicelugaffinitylotteryweeklylotteryraffleentrygluglugsmeaccoindependent-inquestnimsitecopropymntltdorgplcschnetgovnhsbarsyindependent-commissionindependent-reviewpolicepublic-inquiryindependent-panelconnhospindependent-inquiryroyal-commissionoraclegovcloudappscck12libccphxcclibpvtparochchtrcck12libcceatonk12coglibtecgendstmusann-arborwashtenawcck12glghcck12sealibforksolympiabainbridge-islkeyporthoquiamyarrow-pointcentraliaport-townsendsequimport-ludlowrentonsilverdalebremertonredmondsheltonbellevueport-orchardport-angeleskingstonchehalisaberdeengig-harborseattlepoulsboidmdndsddemenegacalamaiavawapailalflnmdcncscohnhmihiviwiriinmntnmocoutvtctmtgunjokakwvnvprarorasmskstxwynykyazisadninsnngosrvis-bymircloudservernamepointtoenscaledland-4-salefreeddnsstuff-4-saleazure-apinoipcloudnsgolffanheliohostazurewebsitesgvorgmilcomgubneteducoorgcomnetd0egvorgmilcomnetedugovmydnsiacostoree12orgmilcomnomwebgobbibrectecnetintedugovraremprendefirminfoartseducok12orgcomnethidnsidacaiiosonlahanamhanoicamauhueorgcompronetintedugovbizbacninhtayninhhoabinhnamdinhtravinhhaiphongvinhlonghaiduongquangnamquangtrithuathienhuequangninhbacgianghaugiangquangbinhsoctrangbentrethanhphohochiminhdanangkontumhatinhkhanhhoathanhhoahealthgialailaocaiyenbaibackanngheanlonganphuyenphuthocanthodaklakdongnainameinfovinhphucdongthapkiengiangtiengiangquangngailaichaulangsonlamdongdaknonghagiangangiangcaobangbinhduongninhthuanbinhthuanbaclieuthaibinhninhbinhbinhdinhtuyenquanghungyenbaria-vungtauthainguyendienbienbinhphuocschbizputerimagine-proxyorgcomnetedugovcloud66advisormypetsdyndnsxn--8dbq2axn--4dbgdty6cxn--5dbhl8dxn--hebda8bxn--80auxn--d1atxn--c1avgxn--o1acxn--o1achxn--90azhxn--55qx5dxn--uc0atvxn--od0algxn--wcvs22dxn--gmqw5axn--mxtq1mxn--12c1fe0brxn--h3cuzk1dixn--12co0c3b4evaxn--12cfi8ixb8lxn--o3cyx2axn--m3ch0j3axn--j1adpxn--90amcxn--90a1afxn--h1ahnxn--j1ael8bxn--h1alizxn--c1avgxn--j1aefxn--80aaa0cvacxn--41acaffeineexeopentunnelbotdashtelebitorgtmaccoagricorgmilnomwebnicngonetaltedugovlawnisschoolgrondaraccoorgmilcomschnetedugovbizinfoprg1-zeropstritonstackitlimazeropsaccoorgmilgovяспборгкоммскбизмирсамаракрымсочиакодпроргобрупрצהלממשלישובאקדמיהองค์กรธุรกิจรัฐบาลศึกษาทหารเน็ต教育網絡組織公司政府個人닷넷한국澳门新闻澳門联通家電嘉里招聘通販닷컴삼성コムგეбгрфеюadcdbdgdidmdsdtdaebedeeegeiejekemenepereseveyegabacalamanauavapaqasazacfbfafgfnfpfwftfbgcgagggegkgngmgsgpgvgtgugilmlnlalclglplsltlhmimjmkmmmomambmcmdmfmgmzmpmsmtmgbbblbsbecccacnclcmcvctcscmhkhghchbhthphshlinikifigiaibicivisikninhnmncnbngnsnpnvntnjoionomobocoaofodorosotoptstttytatbtetgtithtmtltrusuvuaucueuguhulumunufjdjbjtjsjlkmkhkfkdkcktkukskpkgpmpnpkpjpgqaqmqiqsvtvcvbvmvlvrwpwtwzwbwcwawgwkwmwtrsrprgrfrercrbrarnrmrlrkrirhrwsusrssspsgsesbsaslsmsissxmxaxcxuypysylymykygybycyuztzsznzmzkzdzczbzazελευ世界台灣购物公益点看臺灣网络書籍在线网站手机机构大拿游戏信息台湾谷歌慈善商标香港中国餐厅网址中國商城食品微博政务移动集团公司八卦商店健康网店政府时尚佛山中信娱乐广东企业homedepotengineeringاماراتrepublicankuokgroupversicherungchannelcitadelxn--pgbs0dhxn--b4w605ferdstatebankwebsitexn--mgb9awbf亚马逊淡马锡alibabaxn--ngbc5azdxn--mgbbh1axn--45br5cyltoshibabuildworldcloudtradeguideplacespacedancemoviephoneprimesmilebiblestyleappleazurestoreskypegripexn--l1accdrivelottehorsehouseleasechasereisestadahondaomegaaetnaamicaninjanokiamediadeltavodkaedekaosakapizzaslingemailgmailtirolshelltmallfinallegaltotalhotelamfamforumrehabmusicciticricohcoachwatchboschearthfaithirishmiamiarchidubaiguccipraxiみんなストアセールcanonsalononionnikonepsonkoelngreensevencrownikanoradioaudioweiboglobopromogalloyahoociscorodeovideomangobingotokyovolvolottokyotophotosmartsportquesttrusthyattjetztadultcymrubaidutushuxn--kprw13dubankclickblackmerckgroupsharpcheapnowtvxn--h2brj9cקוםհայоргсрбмонкомбелмкдқазрусукрمصرقطرعربكومdadcfdmedwedredphdthdbidpidkrdmsdltdiceonewmeglemoerwecfageacbanbambaaaammakianraspacpaaxawtfbcgaegongingaigvigorgdogdhlmilrilonlaolloluoljllcalgalnflafltelsrlfrllplkimibmcamcombommomifmabbjcbscbcabnabtabmlbpubabcbbcnecincpncllcstcwtcpwcnyckfhbzhovhmoiskiobisbitcifyituipinvinwinxincbnbcnmanfangdnmenrenkpnmtnyunrunfununobiojioriohbogmofooboooooacoecoceongoproartistottnttbbtcateatlatvetpetbetnethktmitfitintjothotgotdotbotprueduicujnjyouinknhktdkappsapgapmapdnptopgopllpjmpzipvipripesqtrvdtvitvdevmovgovhivnrwlawsewnewbmwwownowhowdvrftrmtrsfrbarcartvscrseusawsupsubssbsadsddsldssasbmsmlsxxxboxfoxgmxtjxsextaxbuyflydiysoyjoyskypaydaygayxyzanzbizwebersenerpokerlameractortatarsolarລາວคอมไทยtourslocusnexuslexusgiftsbeatsboatspartspressglassswissकॉमनेटtiresgivescodeshomesgamestunesshoescardswalesloansvegastoolsdealsautosparisファッションworkssucksrocksxeroxforexfedexpartylillymoneystudyrugbytoraytoday中文网xn--unup4y天主教飞利浦新加坡enterprises我爱你嘉里大酒店christmasxn--fct429kholdingsxn--8y0a063axn--mgbx4cd0ablifestyleabogadoallstatenetbankكاثوليكxn--s9brj9cxn--gk3at1ebestbuycharityxn--55qx5dmicrosoftpropertybasketballhomegoodscorsicajewelrygallerygrocerysurgerycountrybrusselsverisignferreroxn--czr694bhdfcbankcommbanksoftbankپاكستانپاکستانnextdirectالسعوديهالعليانxn--h2brj9c8cxn--80adxhksshikshaxn--mgbai9azgqp6jcuisinellabarclayscatholicxn--kpry57dcompanyxn--xhq521bblackfridayxn--mgba3a3ejtsandvikxn--d1acj3bacademydownloadمليسياxn--j1amhxn--w4r85el8fhu5dnraipirangaathletaxn--fhbeixn--mgbqly7cvafrzuerichxn--c2br7gஇலங்கைcontractorsxn--io0a7igraphicsinsurancetemasekxn--xkc2al3hye2amotorcyclesphotographydirectoryplumbingxn--vhquvclothingtrainingcleaningwilliamhilllightingxn--mgba3a4f16ashoppingcateringeducationokinawapicturesventuresproductionsxn--9et52uwalmartഭാരതംsupportrealestatecapitalonexn--nqv7fs00emaauspostfloristdentistxn--qxamgodaddybradescobargainsmitsubishikerryhotelsxn--9dbq2axn--3pxu8kimmobilienxn--fjq720axn--mgbtx2bholidaymckinseymadridbusinessbuildershelsinkixn--4gbrimмоскваالسعودیةcoffeedegreelacaixapartnersalsaceofficeabbvievoyageorangegeorgeonlinechromemobilekindlegoogleoraclecircleschulesecureinsurexn--mgba7c0bbn0aestatexn--mgbc0a9azcgcruisehangoutxn--vuq861bxn--42c2d9arexrothfirestoneuniversityxn--nnx388alifeinsuranceextraspaceонлайнvermögensberatersoftwarexn--fiqs8sxn--mgbab2bdxn--w4rs40ltiendaभारतम्africatoyotaotsukasakuracameracreditcardnagoyaconsultingnetworkjunipertheatermonsterprogressivepioneerxn--55qw42gracingdatingvotingvikinglivinggivingxn--bck1b9a5dre4cbrotherweatherjoburgفلسطينlplfinancialxn--clchc0ea0b2g2a9gcdfutbolschoolsocialglobaldentalwoodsidechanelairtelmatteltravelrealtorwebcamstreamభారత్unicomalstomxn--nodexn--6frz82gmuseumfurniturexn--rvc1e0am3exn--mix891faccenturexn--11b4c3dismailineustardiscountquebeccomsecclinicservicesxn--y9a3aqxn--c1avgswatchchurchsearchالاردنmarketingcontacthealthmonashshoujisanofitaipeiamericanexpresssuzukiアマゾンクラウドポイントbhartiグーグルxn--mgberp4a5d4armemorialxn--1qqw23alondonmormoninstitutevisionbostonnortoncouponmaisonamazonvirginberlindesigndurbanolayannissananquanxihuanhitachikaufengardenreisenbayerntechnologydatsunxn--90a3aclatinocasinostudiophysioxn--ngbe9e0apharmacytattootaobaoaramcoexpertreportabbottdirectselectimamatfairwindspictettargetmarketintuittravelersinsurancecreditdupontryukyusuppliesxn--tckwebnpparibasschmidtmerckmsdyodobashirestaurantbridgestonecricketxn--fpcrj9c3dbostikbroadwayattorneylefrakemerckxn--fiq228c5hscareersfarmerswinnersflowersxn--wgbh1cguitarsxn--54b7fta0ccxn--p1acfmakeupgalluplandroverxn--kcrx77d1x4agoldpointbauhausxn--mgbayh7gpahiphopplaystationxn--mgba3a4fraxn--eckvdtc9dhyundaixn--gckr3f0fistanbulticketsmarketsflightschintaireviewsxn--3e0b707ewindowsxn--fiqz9sfinancialxn--fzys8d69uvgmابوظبيdiscoverreviewবাংলাxn--5su34j936bgsgmoscowobserverapartmentsдетиارامكوсайтeurovisionxn--i1b6b1a6a2exn--xkc2dl3a5ee0hتونسموقعبارتڀارتشبكةعمانبيتكعراقreadkredbondlandbandfundfoodprodgoldfordtubecafesafelifeggeeieeefreefagepagegugezonewinememenamegamesaleablebikenikelikecarecbreherefiresaveloveliveblueartedatesitevotecaseluxebofamodaltdaasdatiaayogasinavanashiaasiajavabbvatevavivadatazaraarpacasavisasncfprofmaifsurfgolfdvagsongbingpingwangkpmggoogblogpohlfailcooldellcalldeallidlsarlfilmteamroomfarmimdbarabclubhdfcicbchsbcgmbhrichtechfishdishcashminiernikddiaudiwikimobitaxicitikiwidesiqponskinloanakdnwienopenporncerntownimmolimoolloinfonicofidolegosaxozeroaerovivoautovotomotofastbestresthostpostnextlgbtchatseatgiftmeetdietreitmintrentgentspotscotguruitausohumenucyoubanklinkpinkdclktalksilkbookseekworkrsvpaarpjeepshopcoophelpcamppccwshowbeerstarruhrflirweirhaircarsparsjprshausplusnewstipstoysjobskidsfanspicsdocsxboxamexsexynavycitysonyarmyallybabyplaydeliverybuzzgbizlamborghiniphilipsලංකාಭಾರತfitnessexpresslanxesspfizercenterwalterlawyersoccercareerkosherbrokerlockerdealerdoctorauthorxn--mgbqly7c0a67fbcvermögensberatungjaguarxn--pssy2uxn--hxt814eflickrrepairrogersairbusxn--mgbai9a5eva00beventsyachtsxn--t60b56aভাৰতভারতभारतभारोतviajeshermeshughesxn--j1aefसंगठनvillasଭାରତclaimshotelsભારતzapposphotosjuegoscondostatamotorsgratistennisਭਾਰਤtkmaxxtjmaxxschaeffleryandexxn--80aswgrealtysafetybeautyluxuryxn--3ds443gsupplyfamilyxn--o3cw4hhockeysydneyxn--90aenissayalipayenergycomputeragencyxn--rovu88b電訊盈科xn--gecrj9cstatefarmaccountantaquarelleolayangroup香格里拉xn--p1ai组织机构xn--1ck2e1bxn--mgbt3dhdschwarzموريتانياabudhabinowruzkomatsufujitsuhospitalxn--80asehdbxn--mgbtf8flxn--j6w193gxn--yfro4i67oprudentialxn--flw351ecruisescoursesrecipesxn--e1a4cferrarixn--ses554gxn--wgbl6awatchesstaplessinglesxn--mgbcpq6gpa1axn--otu796dpropertiescreditunionxn--mgbah1a3hjkrdstockholmhisamitsuالسعوديةstcgroupdomainsoriginscouponsbloombergclubmedfroganslimitedxn--80aqecdr1aexposedinternationalequipmentbarclaycardxn--q7ce6axn--mgbi4ecexpprotectionassociatesconstructionxn--cck2b3bxn--45q11candroidfoundationישראלxn--mgbca7dzdocliniqueboutiqueengineerxn--qxa6asystemsfirmdalefashionauctionxn--nqv7finfinitirentalsreliancetradingweddingfishinghostinggentingbookingcookingxn--3hcrj9cgraingerxn--czrs0tdemocratsamsungyokohamaxn--h2breg3evexn--nyqy26alundbeckmelbournevacationssolutionsfrontierxn--vermgensberatung-pwbmanagementxn--cg4bkixn--mgb2ddeslincolnhamburgsandvikcoromantblockbusterairforcebarefootxn--4dbrk0ceinvestmentsfeedbackcommunityxn--ngbrxالبحرينdiamondsamsterdamhealthcareredumbrellaxn--mxtq1mxn--2scrj9cagakhanxn--mgbpl2fhкатоликcaravanசிங்கப்பூர்richardlimortgageamericanfamilyxn--fzc2c9e2cscholarshipssaarlandxn--imr513nvlaanderensamsclubgoodyearkitchenஇந்தியாweatherchannelallfinanzxn--kput3iالسعودیۃxn--90aisxn--efvy88hالجزائرxn--mgbaam7a8hexchangejpmorganxn--tiq49xqyjfidelitysecurityxn--mk1bu44cwanggouxn--fiq64bxn--6qq986b3xlxn--mgbbh1a71exn--80ao21amarshallsxn--5tzm5gtravelerspanasoniclatrobeyoutubeaccountantsxn--rhqv96gxn--cckwcxetdanalyticsxn--ygbi2ammxبازاربھارتسوريةorganicfreseniusسورياxn--9krt00axn--qcka1pmcxn--jlq480n2rgdeloittesciencefinancexn--jvr189mxn--30rr7yhomesensehotmailbaseballfootballleclercboehringerxn--q9jyb4cxn--mix082fاليمنهمراهpolitieسودانايرانایرانnetflixyamaxunxn--lgbbat1ad8jcollegestoragecapetowncolognekerrypropertiesxn--mgbgu82axn--ogbpf8flxn--czru2dwhoswhociprianilasallexn--g2xx48cforsalebanamexaudiblexn--vermgensberater-ctbxn--zfr164bericssonvanguardxn--45brj9cindustriestheatremarriottxn--3bst00mcomparexn--mgberp4a5d4a87gcapitaldigitalالمغربbarcelonashangrilaxn--d1alfcalvinkleinwwwcitysapporokawasakinagoyasendaikobekitakyushuyokohamackjp",s_=621,o_=625,Qv=Xi.length,Zv=jc.length,Fv=new Uint32Array(Zv),gc=new Uint32Array(Zv),ip=new Int32Array(Qv).fill(-1);for(let e=0,n=0;e<Qv;e+=1)for(let s=Sc[e];s<Sc[e+1];s+=1){Fv[s]=n;const r=n+jc[s];let c=5381;for(let f=r-1;f>=n;f-=1)c=c*33^np.charCodeAt(f);gc[s]=c>>>0,jc[s]===1&&np.charCodeAt(n)===42&&(ip[e]=s),n=r}let Dn=-1,sp=0,op=0;function fy(e,n,s,r){if(jc[e]!==r)return!1;const c=Fv[e];for(let f=0;f<r;f+=1)if(np.charCodeAt(c+f)!==n.charCodeAt(s+f))return!1;return!0}function gy(e,n,s,r,c){let f=Sc[e],g=Sc[e+1];for(;f<g;){const y=f+g>>>1,x=gc[y];if(x<n)f=y+1;else if(x>n)g=y;else{for(let k=y;k>=f&&gc[k]===n;k-=1)if(fy(k,s,r,c))return k;for(let k=y+1;k<g&&gc[k]===n;k+=1)if(fy(k,s,r,c))return k;return-1}}return-1}function yy(e,n,s){let r=n,c=e.length,f=5381;Dn=-1;for(let y=e.length-1;y>=0;y-=1){const x=e.charCodeAt(y);if(x===46){const k=y+1;let S=gy(r,f>>>0,e,k,c-k);if(S===-1&&(S=ip[r]),S===-1)return Dn!==-1;r=hy[S],(Xi[r]&s)!==0&&(Dn=r,sp=k,op=c),c=y,f=5381}else f=f*33^x}let g=gy(r,f>>>0,e,0,c);return g===-1&&(g=ip[r]),g!==-1&&(r=hy[g],(Xi[r]&s)!==0&&(Dn=r,sp=0,op=c)),Dn!==-1}function Yv(e,n,s){if(i_(e,n,s))return;const r=(n.allowPrivateDomains?2:0)|(n.allowIcannDomains?1:0);if(yy(e,o_,r)){s.isIcann=(Xi[Dn]&1)!==0,s.isPrivate=(Xi[Dn]&2)!==0,s.publicSuffix=e.slice(op+1);return}if(yy(e,s_,r)){s.isIcann=(Xi[Dn]&1)!==0,s.isPrivate=(Xi[Dn]&2)!==0,s.publicSuffix=e.slice(sp);return}s.isIcann=!1,s.isPrivate=!1;const c=e.lastIndexOf(".");s.publicSuffix=c===-1?e:e.slice(c+1)}const Ac=n_();function r_(e,n){return Hv(Ac),Kv(e,0,Yv,n,Ac).hostname}function l_(e,n){return Hv(Ac),Kv(e,5,Yv,n,Ac).domainWithoutSuffix}const c_={allowPrivateDomains:!0};new $N({fuzzyLink:!0,fuzzyEmail:!1}).tlds(GN);function Ip(e){if(e==null)return null;const n=e.trim();if(!n)return null;const s=r_(n);return s?s.replace(/^www\./i,"").toLowerCase():null}function u_(e){return e==null||e.trim()===""?"":l_(e,c_)?.toLowerCase()??""}const d_=new Intl.Segmenter("en",{granularity:"word"}),m_=/[\p{L}\p{N}]+/gu;function p_(e){return e.normalize("NFKC").toLocaleLowerCase("en")}function h_(e){const n=[];for(const s of d_.segment(e))if(s.isWordLike)for(const r of s.segment.match(m_)??[])n.push(r);return n}function f_(e){return h_(p_(e))}function Ji(e){return f_(e).join("")}const Xv=_(["cli","api","config-file"]);function g_(e){const n=new Set,s=new Set;for(const r of e){if(n.has(r.label)){s.add(r.label);continue}n.add(r.label)}return[...s]}function y_(e,n){return n?e.some(s=>s.label===n):!0}h({displayName:l().min(1),canonicalDomain:l().min(1),ownedDomains:b(l().min(1)).optional(),aliases:b(l()).optional(),country:l().length(2),language:l().min(2),tags:b(l()).optional(),labels:Pe(l(),l()).optional(),providers:b(ct).optional(),providerModels:Pp.optional(),locations:b(ra).optional(),defaultLocation:l().nullable().optional(),measurement:Lp.optional(),autoExtractBacklinks:R().optional(),configSource:Xv.optional()});const b_=h({id:l(),name:l(),displayName:l().optional(),canonicalDomain:l(),ownedDomains:b(l()).default([]),aliases:b(l()).default([]),country:l().length(2),language:l().min(2),tags:b(l()).default([]),labels:Pe(l(),l()).default({}),providers:b(l()).default([]),providerModels:Pp.default({}),locations:b(ra).default([]),defaultLocation:l().nullable().optional(),measurement:Lp.default($v),autoExtractBacklinks:R().default(!1),configSource:Xv.default("cli"),configRevision:p().int().positive().default(1),createdAt:l().optional(),updatedAt:l().optional()});h({id:l(),query:l(),createdAt:l()});h({id:l(),keyword:l(),createdAt:l()});h({queries:b(l().trim().min(1)).min(1)});h({keywords:b(l().trim().min(1)).min(1)});h({provider:ct,count:p().int().min(1).max(20).optional()});h({id:l(),domain:l(),createdAt:l()});h({competitors:b(l().trim().min(1)).min(1)});function rp(e){return Ip(e)??e.trim().toLowerCase().replace(/^www\./,"")}function v_(e){const n=[e.canonicalDomain,...e.ownedDomains??[]],s=new Set,r=[];for(const c of n){const f=c.trim();if(!f)continue;const g=rp(f);s.has(g)||(s.add(g),r.push(f))}return r}const x_=h({name:l().min(1).max(63).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,{message:"Name must be a lowercase slug (letters, numbers, hyphens)"}),labels:Pe(l(),l()).optional().default({})}),k_=h({preset:l().optional(),cron:l().optional(),timezone:l().optional().default("UTC"),providers:b(ct).optional().default([]),enabled:R().optional()}).refine(e=>e.preset&&!e.cron||!e.preset&&e.cron,{message:'Exactly one of "preset" or "cron" must be provided'}).optional(),w_=h({channel:W("webhook"),url:l().url(),events:b(Up).min(1)}),S_=h({gsc:h({propertyUrl:l()}).optional(),syncSchedule:h({preset:l().optional(),cron:l().optional()}).optional()}).optional(),by=b(l().min(1)),j_=h({displayName:l().min(1),canonicalDomain:l().min(1),ownedDomains:b(l().min(1)).optional().default([]),aliases:b(l().min(1)).optional().default([]),country:l().length(2),language:l().min(2),queries:by.optional(),keywords:by.optional(),competitors:b(l().min(1)).optional().default([]),providers:b(ct).optional().default([]),providerModels:Pp.optional().default({}),locations:b(ra).optional().default([]),defaultLocation:l().optional(),measurement:Lp.optional().default($v),schedule:k_,notifications:b(w_).optional().default([]),google:S_,autoExtractBacklinks:R().optional().default(!1)}).superRefine((e,n)=>{e.queries!==void 0&&e.keywords!==void 0&&n.addIssue({code:"custom",message:"Use spec.queries; spec.keywords is accepted only as a legacy alias when spec.queries is omitted",path:["keywords"]});const s=g_(e.locations);s.length>0&&n.addIssue({code:"custom",message:`Duplicate location labels are not allowed: ${s.join(", ")}`,path:["locations"]}),y_(e.locations,e.defaultLocation)||n.addIssue({code:"custom",message:`defaultLocation "${e.defaultLocation}" must match a configured location label`,path:["defaultLocation"]})});h({apiVersion:W("canonry/v1"),kind:W("Project"),metadata:x_,spec:j_});const A_=2,N_=l().regex(/^[a-f0-9]{64}$/),Ic=l().trim().min(1).max(256),vy=_(["sensitive","insensitive"]),be=l().trim().min(1).max(128).regex(/^[a-z0-9][\w.~-]*$/i,"Must be a URL-safe stable key"),__=l().trim().min(1).refine(e=>Ip(e)!==null,"A competitor domain must be a valid hostname"),C_=pt("kind",[h({kind:W("exact"),url:l().min(1),pathCase:vy}).strict(),h({kind:W("prefix"),host:l().min(1),pathPrefix:l().min(1),pathCase:vy}).strict(),h({kind:W("host"),host:l().min(1)}).strict()]),z_=h({canonicalHost:l().min(1),ownedHosts:b(l().min(1)),names:b(l().min(1))}).strict(),E_=h({projectBrand:z_}).strict(),D_=h({stableKey:be,label:l().trim().min(1),aliases:b(l().min(1)),urlMatchers:b(C_),mentionNotApplicable:R(),discoveryIdentity:l().min(1).nullable()}).strict(),Jv=h({stableKey:be,label:l().trim().min(1),domain:__,aliases:b(l().min(1))}).strict(),T_=h({stableKey:be,label:l().trim().min(1),targetKeys:b(be),competitors:b(Jv)}).strict(),R_=_(["manual","query-set","template","discovery"]),O_=h({source:R_,sourceId:l().min(1).nullable(),capturedAt:l().datetime()}).strict(),q_=h({queryId:Ic,queryText:l().min(1),provenance:O_}).strict(),B_=h({providers:b(ct).min(1),models:Pe(ct,l().min(1)),location:ra.nullable()}).strict(),M_=h({stableKey:l().min(1),queryId:Ic,queryText:l().min(1),context:B_,expectedSnapshots:p().int().nonnegative()}).strict(),Vp=_(["branded","non-brand"]),P_=h({targetKey:be,queryId:Ic,queryClass:Vp,executionNodeKey:l().min(1)}).strict(),U_=h({executionNodeKey:l().min(1),targetKey:be,queryId:Ic}).strict(),Vc=h({schemaVersion:W(A_),identities:E_,targets:b(D_),groups:b(T_),querySnapshots:b(q_),assignments:b(P_),executionNodes:b(M_),usageEdges:b(U_),compiledChecksum:N_}).strict().superRefine((e,n)=>{const s=new Set;for(const c of e.executionNodes)s.has(c.stableKey)&&n.addIssue({code:mt.custom,path:["executionNodes"],message:`Duplicate execution node key "${c.stableKey}"`}),s.add(c.stableKey);const r=new Set(e.targets.map(c=>c.stableKey));e.usageEdges.forEach((c,f)=>{s.has(c.executionNodeKey)||n.addIssue({code:mt.custom,path:["usageEdges",f,"executionNodeKey"],message:`Usage edge references unknown execution node "${c.executionNodeKey}"`}),r.has(c.targetKey)||n.addIssue({code:mt.custom,path:["usageEdges",f,"targetKey"],message:`Usage edge references unknown Target "${c.targetKey}"`})}),e.assignments.forEach((c,f)=>{r.has(c.targetKey)||n.addIssue({code:mt.custom,path:["assignments",f,"targetKey"],message:`Assignment references unknown Target "${c.targetKey}"`})});for(const c of e.groups)for(const f of c.targetKeys)r.has(f)||n.addIssue({code:mt.custom,path:["groups"],message:`Group "${c.stableKey}" references unknown Target "${f}"`})}),$p=100;function to(e){return h({items:b(e),nextCursor:l().min(1).nullable(),totalEstimate:p().int().nonnegative().optional()}).strict()}const Gp=_(["no_completed_run","plan_v1","no_population","evidence_incomplete","not_applicable"]),Mt=pt("state",[h({state:W("available"),value:p(),numerator:p().int().nonnegative().optional(),denominator:p().int().positive().optional()}).strict(),h({state:W("unavailable"),reason:Gp}).strict()]),Hp=_(["all","group","property"]),Wa=_(["all","branded","non-brand"]),L_=_(["label-asc","label-desc","citationCoverage-asc","citationCoverage-desc","mentionCoverage-asc","mentionCoverage-desc"]),Kp=_(["not_measured","queued","running","complete","partial","failed"]),I_=_(["run_measurement","review_flags","complete_setup","republish_setup","none"]);h({scope:Hp,groupKey:be.optional(),targetKey:be.optional(),queryClass:Wa.optional(),provider:ct.optional(),location:l().trim().min(1).optional(),from:l().trim().min(1).optional(),to:l().trim().min(1).optional(),runId:l().trim().min(1).optional(),search:l().optional(),sort:L_.optional(),cursor:l().trim().min(1).optional(),limit:p().int().positive().max($p).optional()}).strict();const V_=h({provider:ct,mentionCoverage:Mt,citationCoverage:Mt}).strict(),$_=h({bothSignals:p().int().nonnegative(),mentionedOnly:p().int().nonnegative(),citedOnly:p().int().nonnegative(),neither:p().int().nonnegative(),notMeasured:p().int().nonnegative(),total:p().int().nonnegative()}).strict(),G_=h({targetKey:be,label:l().min(1),mentionCoverage:Mt,citationCoverage:Mt,providers:b(V_),flags:p().int().nonnegative()}).strict(),H_=h({kind:_(["project","competitor"]),stableKey:l().min(1),label:l().min(1),domain:l().min(1),credits:p().int().nonnegative(),share:p().min(0).max(1)}).strict(),K_=h({groupKey:be,queryClass:W("non-brand"),denominator:p().int().positive(),entries:b(H_)}).strict();h({mode:_(["active-v1","active-v2"]),scope:h({kind:Hp,key:l().min(1).optional(),label:l().min(1)}).strict(),queryClass:Wa,measurement:h({state:Kp,currentRunId:l().min(1).optional(),displayedRunId:l().min(1).optional(),completed:p().int().nonnegative(),expected:p().int().nonnegative(),completedAt:l().datetime().optional(),includesHistoricalData:R().optional()}).strict(),nextAction:h({kind:I_,count:p().int().nonnegative().optional()}).strict(),metrics:h({propertiesMentioned:Mt,mentionCoverage:Mt,citationCoverage:Mt,brandPresence:Mt,sov:Mt.describe("Deprecated alias of brandPresence carrying the identical value. Remove once the browser migrates.")}).strict(),properties:to(G_),outcomes:$_,flags:h({total:p().int().nonnegative()}).strict(),namedShareOfVoice:K_.optional()}).strict();const Wv=_(["sources","answers"]),Q_=Wv.enum;Q_.sources;h({targetKey:be,queryClass:Wa.optional(),provider:ct.optional(),location:l().trim().min(1).optional(),runId:l().trim().min(1).optional(),shape:Wv.optional(),cursor:l().trim().min(1).optional(),limit:p().int().positive().max($p).optional()}).strict();const e2=1,qr=p().int().positive(),Pt=l().trim().min(1).max(128).regex(/^[a-z0-9][\w.~-]*$/i,"Must be a URL-safe stable key"),Br=l().trim().min(1).max(256),xy=_(["sensitive","insensitive"]);function Nc(e){const n=Ip(e);if(!n)throw new Error(`Invalid measurement host: ${e}`);return n}function Z_(e){const n=[];let s=!1;for(let r=0;r<e.length;r++){const c=e[r];c==="/"?(s||n.push(c),s=!0):(n.push(c),s=!1)}for(;n.length>1&&n.at(-1)==="/";)n.pop();return n.length?n.join(""):"/"}function ky(e){try{return decodeURI(e).normalize("NFC").toLowerCase()}catch{return e.normalize("NFC").toLowerCase()}}function t2(e){const n=new URL(`https://measurement.invalid${e}`).pathname;return Z_(n.replace(/%[0-9a-f]{2}/gi,s=>s.toUpperCase()))}function lp(e){const n=e.trim();if(!n||n.includes("?")||n.includes("#")||n.includes("://")||n.includes("\\"))throw new Error(`Invalid measurement path prefix: ${e}`);const s=n.startsWith("/")?n:`/${n}`;for(const r of s.split("/")){let c;try{c=decodeURIComponent(r)}catch{throw new Error(`Invalid measurement path prefix: ${e}`)}if(c==="."||c==="..")throw new Error(`Invalid measurement path prefix: ${e}`)}try{return t2(s)}catch{throw new Error(`Invalid measurement path prefix: ${e}`)}}function F_(e){const n=/^[a-z][a-z0-9+.-]*:\/\/[^/?#]*/i.exec(e);if(!n)throw new Error(`Invalid exact measurement URL: ${e}`);return e.slice(n[0].length).split(/[?#]/,1)[0]||"/"}function wy(e){const n=e.trim();if(!n||n.includes("\\"))throw new Error(`Invalid exact measurement URL: ${e}`);let s;try{s=new URL(n)}catch{throw new Error(`Invalid exact measurement URL: ${e}`)}if(s.protocol!=="http:"&&s.protocol!=="https:"||s.username||s.password||s.port||s.search||s.hash)throw new Error(`Invalid exact measurement URL: ${e}`);const r=Nc(s.hostname),c=lp(F_(n));return`https://${r}${c}`}const Er=l().trim().min(1).refine(e=>{try{return Nc(e),!0}catch{return!1}},"A target URL matcher host must be a valid hostname").overwrite(e=>Nc(e)),Y_=l().trim().min(1).refine(e=>{try{return lp(e),!0}catch{return!1}},"A target URL matcher pathPrefix must be an absolute path without query or fragment").overwrite(e=>lp(e)),X_=l().trim().min(1).refine(e=>{try{return wy(e),!0}catch{return!1}},"A target exact matcher must be an HTTP(S) URL without credentials, port, query, or fragment").overwrite(e=>wy(e)),J_=pt("kind",[h({kind:W("exact"),url:X_,pathCase:xy}).strict(),h({kind:W("prefix"),host:Er,pathPrefix:Y_,pathCase:xy}).strict(),h({kind:W("host"),host:Er}).strict()]),a2=l().trim().min(1).max(256).refine(e=>Ji(e).length>0,"A target alias must contain mention text"),W_=Pe(l().trim().min(1),l()),eC=Er,n2=h({stableKey:Pt,label:l().trim().min(1),urls:b(J_).min(1),aliases:b(a2),metadata:W_.optional()}).strict(),Qp=h({stableKey:Pt,label:l().trim().min(1),targetKeys:b(Pt).min(1),competitors:b(eC).optional()}).strict(),i2=h({targetKey:Pt,queryIds:b(Br).min(1),context:ra.nullable().optional()}).strict();function tC(e,n){return e<n?-1:e>n?1:0}function aC(e,n=s=>s){const s=new Set,r=new Set;for(const c of e){const f=n(c);s.has(f)&&r.add(f),s.add(f)}return r}function Tm(e,n,s,r,c){for(const f of aC(n,c))e.addIssue({code:"custom",path:[...s],message:`Duplicate ${r}: ${f}`})}function Sy(e){if(e.kind==="host")return{host:e.host,pathname:null};if(e.kind==="prefix")return{host:e.host,pathname:e.pathPrefix};const n=new URL(e.url);return{host:Nc(n.hostname),pathname:t2(n.pathname||"/")}}function nC(e,n,s,r){return e===s||(n==="insensitive"||r==="insensitive")&&ky(e)===ky(s)}function iC(e,n){if(e.kind!==n.kind)return!1;const s=Sy(e),r=Sy(n);return s.host!==r.host?!1:e.kind==="host"||n.kind==="host"?!0:nC(s.pathname,e.pathCase,r.pathname,n.pathCase)}function sC(e){const n=new Set;return[...e].sort(tC).filter(s=>{const r=Ji(s);return n.has(r)?!1:(n.add(r),!0)})}const s2=h({schemaVersion:W(e2),targets:b(n2).min(1),groups:b(Qp).optional(),targetQuerySelections:b(i2).optional()}).strict().superRefine((e,n)=>{const s=e.groups??[],r=e.targetQuerySelections??[];Tm(n,e.targets.map(x=>x.stableKey),["targets"],"target stable key"),Tm(n,s.map(x=>x.stableKey),["groups"],"group stable key");const c=new Set(e.targets.map(x=>x.stableKey)),f=new Set(s.map(x=>x.stableKey));for(const x of c)f.has(x)&&n.addIssue({code:"custom",path:["groups"],message:`Target and group stable keys must be globally unique: ${x}`});const g=new Map,y=[];e.targets.forEach((x,k)=>{for(const S of sC(x.aliases)){const j=Ji(S),A=g.get(j);A&&A!==x.stableKey&&n.addIssue({code:"custom",path:["targets",k,"aliases"],message:`Target alias is already assigned to target ${A}: ${S}`}),g.set(j,x.stableKey)}x.urls.forEach((S,j)=>{y.find(z=>z.targetKey!==x.stableKey&&iC(z.matcher,S))&&n.addIssue({code:"custom",path:["targets",k,"urls",j],message:"Target URL matcher has an equal-specificity cross-target tie"}),y.push({targetKey:x.stableKey,matcher:S})})}),s.forEach((x,k)=>{Tm(n,x.targetKeys,["groups",k,"targetKeys"],"group target key");for(let S=0;S<x.targetKeys.length;S++){const j=x.targetKeys[S];c.has(j)||n.addIssue({code:"custom",path:["groups",k,"targetKeys",S],message:`Unknown target: ${j}`})}}),r.forEach((x,k)=>{c.has(x.targetKey)||n.addIssue({code:"custom",path:["targetQuerySelections",k,"targetKey"],message:`Unknown target: ${x.targetKey}`})})});s2.transform(e=>({...e,groups:e.groups??[],targetQuerySelections:e.targetQuerySelections??[]}));h({expectedActiveRevision:qr.nullable(),plan:s2}).strict();const oC=h({queryId:Br,queryText:l().min(1)}).strict(),Zp=h({stableKey:l().min(1),queryText:l().min(1),context:ra.nullable(),expectedSnapshots:p().int().nonnegative()}).strict(),rC=h({kind:W("baseline"),executionNodeKey:l().min(1),queryId:Br}).strict(),lC=h({kind:W("target"),executionNodeKey:l().min(1),queryId:Br,targetKey:Pt}).strict(),cp=pt("kind",[rC,lC]),o2=h({code:W("target-alias-prefix-overlap"),message:l().min(1),targetKeys:b(Pt).min(1),aliases:b(l().min(1)).min(1)}).strict(),r2=n2.extend({mentionNotApplicable:R()}),l2=h({schemaVersion:W(e2),defaultContext:ra.nullable(),effectiveOwnedHosts:b(Er),projectCanonicalHost:Er,projectBrandNames:b(a2),targets:b(r2),groups:b(Qp),targetQuerySelections:b(i2),querySnapshots:b(oC),executionNodes:b(Zp),usageEdges:b(cp),warnings:b(o2)}).strict(),cC=l2,c2=pt("schemaVersion",[l2,Vc]),Fp=l().regex(/^[a-f0-9]{64}$/),Yp=l().datetime(),u2=h({schemaVersion:W(1),providers:b(l().min(1)).min(1),models:Pe(l().min(1),l().min(1)),checksum:l().regex(/^[a-f0-9]{64}$/)}).strict(),uC=h({groups:b(Pt).optional(),targets:b(Pt).optional()}).strict(),dC=h({groups:b(Pt),targets:b(Pt),queries:b(l().min(1)),resolvedTargets:b(Pt)}).strict().superRefine((e,n)=>{e.resolvedTargets.length===0&&e.queries.length===0&&n.addIssue({code:"custom",path:["resolvedTargets"],message:"A recorded scope must name something it measured"})});h({stableKey:Pt,retiredAt:l().datetime()});h({active:h({revision:qr,checksum:Fp,createdAt:Yp,plan:c2}).nullable()});h({versions:b(h({revision:qr,checksum:Fp,createdAt:Yp,active:R()}))});h({version:h({revision:qr,checksum:Fp,createdAt:Yp,active:R(),plan:c2})});const yc=h({targets:p().int(),groups:p().int(),queries:p().int(),executionNodes:p().int(),usageEdges:p().int(),baselineEdges:p().int(),targetEdges:p().int(),dedupSavings:p().int()}).strict(),mC=_(["invalid-authoring","duplicate-identity","unknown-target","unknown-query","invalid-project-context","unowned-target-url","owned-competitor","target-query-context-conflict","target-url-ownership-tie","target-alias-cross-target-collision","target-alias-project-brand-collision","target-alias-prefix-overlap"]),d2=h({id:mC,severity:_(["fail","warn"]),message:l().min(1),path:b(Ge([l(),p().int()]))}).strict(),pC=h({baseline:p().int().nonnegative(),target:p().int().nonnegative()}).strict(),m2=h({ok:W(!0),checks:b(d2),executionNodes:b(Zp),dedupSaved:p().int().nonnegative(),usageEdges:pC,estCostUsd:me(),plan:cC,warnings:b(o2),counts:yc}).strict(),p2=h({ok:W(!1),checks:b(d2).min(1),executionNodes:b(Zp).length(0),dedupSaved:W(0),usageEdges:h({baseline:W(0),target:W(0)}).strict(),estCostUsd:me()}).strict();pt("ok",[m2,p2]);const uc=h({targetKey:Pt,context:ra.nullable(),queryIds:b(Br)}).strict();function jy(e){return h({added:b(e),removed:b(e),changed:b(h({stableKey:Pt,before:e,after:e}).strict()),unchanged:b(Pt)}).strict()}const hC=m2.extend({diff:h({activeRevision:qr.nullable(),targets:jy(r2),groups:jy(Qp),querySelections:h({added:b(uc),removed:b(uc),changed:b(h({targetKey:Pt,before:uc,after:uc}).strict()),unchanged:b(h({targetKey:Pt,context:ra.nullable()}).strict())}).strict(),execution:h({addedNodeKeys:b(l().min(1)),removedNodeKeys:b(l().min(1)),addedUsageEdges:b(cp),removedUsageEdges:b(cp),counts:h({before:yc.nullable(),after:yc,delta:yc.nullable()}).strict()}).strict()}).strict()}).strict(),fC=p2.extend({diff:me()}).strict();pt("ok",[hC,fC]);const $c=_(["complete","partial","failed","unsupported"]);$c.enum;_(["proposed","alias","shared","unmatched","excluded"]);_(["primary-match","exact-slug-match","excluded-slug","shared-path","unmatched-path","alias-without-primary","unsupported-slug"]);const gC=_(["invalid-url","unowned-host","duplicate-url","url-cap-reached"]),yC=h({kind:_(["exact","prefix","suffix","contains"]),value:l().trim().min(1)}).strict(),Ay=h({host:l().trim().min(1),pathTemplate:l().trim().min(1)}).strict(),Xp=h({primary:Ay,aliases:b(Ay).optional(),excludedSlugSuffixes:b(l().trim().min(1)).optional(),excludedSlugPatterns:b(yC).optional()}).strict();h({sitemapUrl:l().url().refine(e=>{try{const n=new URL(e).protocol;return n==="http:"||n==="https:"}catch{return!1}},"Sitemap URL must use http or https"),rule:Xp,maxUrls:p().int().positive().max(1e4).optional()}).strict();const Rm=h({url:l(),canonicalUrl:l().nullable(),classification:_(["shared","unmatched","excluded"]),reason:_(["excluded-slug","shared-path","unmatched-path","alias-without-primary","unsupported-slug"])}).strict().superRefine((e,n)=>{({shared:["shared-path"],unmatched:["unmatched-path","alias-without-primary","unsupported-slug"],excluded:["excluded-slug"]})[e.classification].includes(e.reason)||n.addIssue({code:"custom",message:"Discovery classification and reason do not match"})}),bC=h({classification:W("proposed"),reason:W("primary-match"),stableKey:Pt,slug:l().trim().min(1),label:l().trim().min(1),primaryUrl:l().url(),aliasCoverageUrls:b(l().url())}).strict(),vC=h({classification:W("alias"),reason:W("exact-slug-match"),slug:l().trim().min(1),url:l().url(),targetStableKey:Pt}).strict(),xC=h({kind:gC,url:l(),canonicalUrl:l().nullable(),duplicateOf:l().optional()}).strict();h({proposed:b(bC),aliases:b(vC),shared:b(Rm),unmatched:b(Rm),excluded:b(Rm),diagnostics:b(xC)}).strict().superRefine((e,n)=>{const s=[["shared",["shared"]],["unmatched",["unmatched"]],["excluded",["excluded"]]];for(const[r,c]of s)for(const f of e[r])c.includes(f.classification)||n.addIssue({code:"custom",path:[r],message:"Discovery item is in the wrong result bucket"})});const Jp=_(["assigned","sibling","ownedUnmapped","external","ambiguous","invalid"]),h2=_(["baseline","target"]),f2=_(["incomplete","evidence-incomplete","no-population","aliasless","no-competitors","no-project-aliases"]),Wi=Ge([h({numerator:p().int().nonnegative(),denominator:p().int().positive(),rate:p().min(0).max(1)}).strict(),h({numerator:me(),denominator:me(),rate:me(),reason:f2}).strict()]).superRefine((e,n)=>{e.numerator!==null&&e.numerator>e.denominator&&n.addIssue({code:"custom",path:["numerator"],message:"Rate numerator cannot exceed denominator"})}),kC=l().trim().min(1).overwrite(e=>e.toLocaleLowerCase("en")),wC=h({executionId:l().trim().min(1),queryText:l().trim().min(1),provider:kC,context:ra.nullable(),requestedModel:l().trim().min(1).optional()}).strict();h({schemaVersion:W(1),expectedSlots:b(wC)}).strict().superRefine((e,n)=>{const s=new Set;for(const[r,c]of e.expectedSlots.entries()){const f=[c.executionId,c.provider].join("\0");s.has(f)&&n.addIssue({code:"custom",path:["expectedSlots",r],message:"Duplicate expected provider slot"}),s.add(f)}});const Gc=h({executed:p().int().nonnegative(),expected:p().int().nonnegative(),complete:R(),sourceComplete:R(),sourceCompleteObservations:p().int().nonnegative(),answerComplete:R()}).strict(),Ny=Ge([h({domain:l().trim().min(1),own:R(),presentIn:p().int().nonnegative(),of:p().int().positive()}).strict(),h({domain:l().trim().min(1),own:R(),presentIn:me(),of:me(),reason:f2}).strict()]),SC=h({domains:b(Ny),providers:b(h({provider:ct,domains:b(Ny)}).strict())}).strict(),jC=h({provider:ct,completeness:Gc,answerCoverage:Wi}).strict(),AC=h({id:l().trim().min(1),label:l().trim().min(1),targetIds:b(l().trim().min(1)),completeness:Gc,answerCoverage:Wi,targetCoverage:Wi,sov:SC,providers:b(jC)}).strict(),NC=h({provider:ct,completeness:Gc,citationCoverage:Wi,mentionCoverage:Wi}).strict(),_C=h({id:l().trim().min(1),label:l().trim().min(1),completeness:Gc,citationCoverage:Wi,mentionCoverage:Wi,providers:b(NC)}).strict(),g2=h({observationId:l().trim().min(1),expectedSlotId:l().trim().min(1),executionId:l().trim().min(1),usageEdgeId:l().trim().min(1),usageEdgeType:h2,provider:ct,queryText:l().trim().min(1),location:l().nullable(),sourceUrl:l(),bridged:R(),historical:R(),evidenceComplete:R(),classification:Jp,normalizedUrl:l().nullable(),matchedTargetIds:b(l().trim().min(1)),matchedUrlIds:b(l().trim().min(1))}).strict(),CC=h({sourceUrl:l(),normalizedUrl:l().nullable(),classification:Jp,matchedTargetIds:b(l().trim().min(1)),matchedUrlIds:b(l().trim().min(1))}).strict(),zC=h({observationId:l().trim().min(1),expectedSlotId:l().trim().min(1),executionId:l().trim().min(1),usageEdgeId:l().trim().min(1),usageEdgeType:h2,provider:ct,queryText:l().trim().min(1),location:l().nullable(),queryClass:Ge([_(["branded","non-brand"]),me()]),mentioned:R().nullable(),cited:R().nullable(),sources:b(CC),sourceCount:p().int().nonnegative(),sourcesTruncated:R(),bridged:R(),historical:R(),evidenceComplete:R()}).strict(),EC=h({bridgedObservationIds:b(l()),historicalObservationIds:b(l()),evidenceIncompleteObservationIds:b(l()),ambiguousObservationIds:b(l()),unmatchedObservationIds:b(l())}).strict(),DC=h({id:l().trim().min(1),status:_(["completed","partial"]),createdAt:l().datetime(),startedAt:l().datetime().nullable(),finishedAt:l().datetime().nullable()}).strict();h({revision:p().int().positive(),run:DC.nullable(),groups:b(AC),targets:b(_C),evidence:b(g2),diagnostics:EC}).strict();h({property:h({targetKey:be,label:l().min(1)}).strict(),queryClass:Wa,measurement:h({state:Kp,displayedRunId:l().min(1).optional(),completedAt:l().datetime().optional()}).strict(),evidence:to(g2).optional(),answers:to(zC).optional()}).strict().refine(e=>e.evidence===void 0!=(e.answers===void 0),{message:"Exactly one of evidence or answers is present, naming the shape that was served."});const Wp=_(["used","not-used","unknown","not-applicable"]);Wp.enum;const e0=_(["native-auto-v1","search-required-v1"]);e0.enum;const Xa=l().trim().min(1),Mr=l().trim().min(1),TC=l().trim().min(1),Fe=p().int().nonnegative(),Pr=h({state:Kp,displayedRunId:Xa.nullable(),planRevision:p().int().positive(),completedAt:l().datetime().nullable()}).strict(),Ur=h({targetKey:be,label:Mr}).strict(),_a={runId:Xa.optional(),provider:ct.optional(),location:TC.optional()},Dr=l().trim().min(1);h({runId:_a.runId,groupKey:be.optional(),queryClass:Wa.default("non-brand"),provider:_a.provider,location:_a.location,limit:p().int().positive().max(50).optional()}).strict();const RC=Ur.extend({mentionCoverage:Mt,citationCoverage:Mt,flags:Fe,recommendedInstead:b(h({name:Dr,occurrences:Fe}).strict()).max(5),recommendedInsteadTotal:Fe,recommendedInsteadTruncated:R()}).strict().superRefine((e,n)=>{e.recommendedInstead.length>e.recommendedInsteadTotal&&n.addIssue({code:mt.custom,path:["recommendedInsteadTotal"],message:"Total cannot be smaller than the returned replacements"}),e.recommendedInsteadTruncated!==e.recommendedInstead.length<e.recommendedInsteadTotal&&n.addIssue({code:mt.custom,path:["recommendedInsteadTruncated"],message:"Truncation must agree with the replacement total"})}),OC=h({groupKey:be,label:Mr,propertyCount:Fe,propertiesMentioned:Mt,mentionCoverage:Mt,citationCoverage:Mt}).strict();h({portfolio:h({groupKey:be.nullable(),label:Mr.nullable(),measurementScope:Ge([_(["full","spot_check"]),me()])}).strict(),measurement:Pr,queryClass:Wa,metrics:h({propertiesMentioned:Mt,mentionCoverage:Mt,citationCoverage:Mt}).strict(),weakestProperties:b(RC),markets:b(OC),totalProperties:Fe,truncated:R()}).strict();h({targetKey:be,runId:_a.runId,provider:_a.provider,location:_a.location,queryClass:Wa.optional(),offset:p().int().nonnegative().optional(),limit:p().int().positive().max(100).optional()}).strict();_(["answered","missing"]);const up={queryId:Xa,text:Mr,class:Vp,provider:ct,requestedModel:l().nullable(),servedModel:l().nullable(),location:l().nullable()},qC=pt("status",[h({resultId:Xa,...up,status:W("answered"),mentioned:R().nullable(),cited:R().nullable(),recommendedInstead:b(Dr),answerExcerpt:l().nullable()}).strict(),h({resultId:me(),...up,status:W("missing"),mentioned:me(),cited:me(),recommendedInstead:b(Dr).length(0),answerExcerpt:me()}).strict()]);h({property:Ur,measurement:Pr,queryClass:Wa,questions:b(qC),total:Fe,truncated:R()}).strict();h({targetKey:be,resultId:Xa}).strict();const BC=h({url:Xa,classification:Jp,matchedTargetKeys:b(be),assigned:R(),historical:R(),evidenceComplete:R()}).strict().superRefine((e,n)=>{e.assigned!==(e.classification==="assigned")&&n.addIssue({code:mt.custom,path:["assigned"],message:"Assigned must agree with the source attribution classification"})});h({property:Ur,measurement:Pr,question:h({resultId:Xa,...up,status:W("answered")}).strict(),mentioned:R().nullable(),cited:R().nullable(),recommendedInstead:b(Dr),answer:l().nullable(),sources:b(BC),captureStatus:Ge([$c,me()]),retrievalStatus:Ge([Wp,me()]),retrievalContract:Ge([e0,me()])}).strict();h({targetKey:be,runId:_a.runId,provider:_a.provider,location:_a.location,queryClass:Wa.optional(),limit:p().int().positive().max(50).optional()}).strict();const MC=pt("state",[h({state:W("available"),answeredResults:Fe,targetMissResults:Fe,recommendationOccurrences:Fe}).strict(),h({state:W("unavailable"),reason:Gp}).strict()]),PC=h({name:Dr,occurrences:Fe,providers:b(ct).max(5),providerTotal:Fe,providersTruncated:R(),questions:b(Mr).max(5),questionTotal:Fe,questionsTruncated:R()}).strict().superRefine((e,n)=>{(e.providers.length>e.providerTotal||e.questions.length>e.questionTotal)&&n.addIssue({code:mt.custom,message:"Evidence totals cannot be smaller than returned evidence"}),e.providersTruncated!==e.providers.length<e.providerTotal&&n.addIssue({code:mt.custom,path:["providersTruncated"],message:"Provider truncation must agree with its total"}),e.questionsTruncated!==e.questions.length<e.questionTotal&&n.addIssue({code:mt.custom,path:["questionsTruncated"],message:"Question truncation must agree with its total"})});h({property:Ur,measurement:Pr,queryClass:Wa,basis:MC,competitors:b(PC),total:Fe,truncated:R()}).strict();h({runId:_a.runId,scope:Hp.default("all"),groupKey:be.optional(),targetKey:be.optional(),queryClass:Wa.default("all"),provider:_a.provider,location:_a.location,limit:p().int().positive().max(50).optional()}).strict().superRefine((e,n)=>{e.scope==="all"&&(e.groupKey!==void 0||e.targetKey!==void 0)&&n.addIssue({code:mt.custom,path:["scope"],message:"All scope cannot name a group or Property"}),e.scope==="group"&&(e.groupKey===void 0||e.targetKey!==void 0)&&n.addIssue({code:mt.custom,path:["groupKey"],message:"Group scope requires groupKey only"}),e.scope==="property"&&(e.targetKey===void 0||e.groupKey!==void 0)&&n.addIssue({code:mt.custom,path:["targetKey"],message:"Property scope requires targetKey only"})});const y2=_(["no_previous_run","execution_identity_changed","incomplete","not_comparable"]),b2=Pr.extend({executionIdentity:Xa.nullable(),measurementScope:Ge([_(["full","spot_check"]),me()])}).strict(),fr=pt("state",[h({state:W("available"),previous:Mt,current:Mt,delta:p()}).strict().superRefine((e,n)=>{if(e.previous.state!=="available"||e.current.state!=="available"){n.addIssue({code:mt.custom,message:"Available deltas require two available metrics"});return}Math.abs(e.delta-(e.current.value-e.previous.value))>Number.EPSILON&&n.addIssue({code:mt.custom,path:["delta"],message:"Delta must equal current minus previous"})}),h({state:W("unavailable"),reason:Gp}).strict()]);h({current:b2,comparison:pt("state",[h({state:W("available"),previous:h({displayedRunId:Xa,planRevision:p().int().positive(),completedAt:l().datetime().nullable(),executionIdentity:Xa,measurementScope:_(["full","spot_check"])}).strict(),metrics:h({propertiesMentioned:fr,mentionCoverage:fr,citationCoverage:fr}).strict(),changedProperties:b(Ur.extend({mentionCoverage:fr,citationCoverage:fr,flags:Fe}).strict()),totalProperties:Fe,truncated:R()}).strict(),h({state:W("unavailable"),reason:y2}).strict()])}).strict().superRefine((e,n)=>{if(e.comparison.state==="available"){if(e.current.displayedRunId===null||e.current.executionIdentity===null){n.addIssue({code:mt.custom,path:["current"],message:"A comparison requires an identified current run"});return}e.comparison.previous.planRevision!==e.current.planRevision&&n.addIssue({code:mt.custom,path:["comparison","previous","planRevision"],message:"Comparisons cannot cross plan revisions"}),e.comparison.previous.executionIdentity!==e.current.executionIdentity&&n.addIssue({code:mt.custom,path:["comparison","previous","executionIdentity"],message:"Comparisons cannot cross execution identities"})}});h({runId:_a.runId}).strict();const UC=_(["no_completed_run","incomplete","evidence_incomplete","no_population","not_applicable"]),Hc=h({state:W("unavailable"),reason:UC}).strict(),LC=h({state:W("available"),expected:Fe,executed:Fe,answered:Fe,missing:Fe}).strict(),IC=pt("state",[LC,Hc]).superRefine((e,n)=>{e.state==="available"&&(e.executed+e.missing!==e.expected&&n.addIssue({code:mt.custom,message:"Expected must equal executed plus missing"}),e.answered>e.executed&&n.addIssue({code:mt.custom,path:["answered"],message:"Answered cannot exceed executed"}))}),VC=h({state:W("available"),complete:Fe,partial:Fe,failed:Fe,unsupported:Fe,notRecorded:Fe}).strict(),$C=pt("state",[VC,Hc]),GC=h({state:W("available"),used:Fe,notUsed:Fe,unknown:Fe,notApplicable:Fe,notRecorded:Fe}).strict(),HC=pt("state",[GC,Hc]),KC=h({state:W("available"),expectedQuestions:Fe,answeredQuestions:Fe,missingQuestions:Fe}).strict(),QC=pt("state",[KC,Hc]).superRefine((e,n)=>{e.state==="available"&&e.answeredQuestions+e.missingQuestions!==e.expectedQuestions&&n.addIssue({code:mt.custom,message:"Expected questions must equal answered plus missing"})});h({run:b2,completeness:IC,capture:$C,retrieval:HC,population:QC,comparison:pt("state",[h({state:W("available"),previousDisplayedRunId:Xa}).strict(),h({state:W("unavailable"),reason:y2}).strict()])}).strict().superRefine((e,n)=>{if(e.completeness.state!=="available")return;const s=e.completeness.executed;e.capture.state==="available"&&e.capture.complete+e.capture.partial+e.capture.failed+e.capture.unsupported+e.capture.notRecorded!==s&&n.addIssue({code:mt.custom,path:["capture"],message:"Capture counts must total executed snapshots"}),e.retrieval.state==="available"&&e.retrieval.used+e.retrieval.notUsed+e.retrieval.unknown+e.retrieval.notApplicable+e.retrieval.notRecorded!==s&&n.addIssue({code:mt.custom,path:["retrieval"],message:"Retrieval counts must total executed snapshots"})});const ao=l().regex(/^[a-f0-9]{64}$/),Ja=l().trim().min(1).max(256),wi=p().int().positive(),_y=h({kind:_(["user","api-key","system"]),id:l().trim().min(1),label:l().trim().min(1)}).strict(),ZC=_(["proposed","included","excluded"]),FC=_(["manual","sitemap"]),t0=h({stableKey:be,label:l().trim().min(1),status:ZC,aliases:b(l().trim().min(1)),urlMatchers:b(l().trim().min(1)),source:FC,discoveredUrl:l().trim().min(1).optional(),discoveryIdentity:l().trim().min(1).optional()}).strict(),Kc=h({providers:b(ct).optional(),models:Pe(ct,l().trim().min(1)).optional(),locations:b(l().trim().min(1)).optional()}).strict(),YC=_(["branded","non-brand","unclassified"]),XC=_(["rule","operator"]),v2=h({targetKey:be,queryId:Ja,contextOverride:Kc.optional(),queryClass:YC,classificationSource:XC}).strict(),a0=Jv,x2=h({stableKey:be,label:l().trim().min(1),targetKeys:b(be),competitors:b(a0)}).strict(),JC=h({sitemapUrl:l().url(),rule:Xp,exclusions:b(l().trim().min(1)),inputChecksum:ao,reviewedAt:l().datetime().optional()}).strict(),WC=h({providers:b(ct),models:Pe(ct,l().trim().min(1)).optional(),locations:b(l().trim().min(1))}).strict(),e9=h({defaultContext:WC,targets:b(t0),assignments:b(v2),groups:b(x2),discovery:JC.optional()}).strict(),t9=h({id:l().trim().min(1),projectId:l().trim().min(1),schemaVersion:W(2),baseActiveVersionId:l().trim().min(1).nullable(),baseActiveRevision:wi.nullable(),authoring:e9,createdBy:_y,updatedBy:_y,createdAt:l().datetime(),updatedAt:l().datetime()}).strict(),n0=h({targets:p().int().nonnegative(),includedTargets:p().int().nonnegative(),assignments:p().int().nonnegative(),unclassifiedAssignments:p().int().nonnegative(),groups:p().int().nonnegative(),competitors:p().int().nonnegative()}).strict(),a9=h({code:l().trim().min(1),message:l().trim().min(1),path:b(Ge([l(),p().int()]))}).strict(),n9=h({etag:l().trim().min(1),changed:R(),warnings:b(a9),counts:n0}).strict();h({draft:t9.nullable(),etag:l().trim().min(1).nullable()}).strict();to(t0);to(v2);to(x2);h({search:l().optional(),cursor:l().trim().min(1).optional(),limit:p().int().positive().max($p).optional()}).strict();h({expectedActiveRevision:wi.nullable()}).strict();h({sitemapUrl:l().url(),rule:Xp,exclusions:b(l().trim().min(1)).optional()}).strict();const i9=h({discoveryIdentity:l().trim().min(1),action:_(["create","rebind","ignore"]),targetKey:be.optional(),label:l().trim().min(1).optional()}).strict();h({selections:b(i9),selectedTargetKeys:b(be).optional()}).strict().superRefine((e,n)=>{e.selections.length===0&&e.selectedTargetKeys===void 0&&n.addIssue({code:"custom",message:"A proposal or reviewed Property selection is required."}),e.selectedTargetKeys&&new Set(e.selectedTargetKeys).size!==e.selectedTargetKeys.length&&n.addIssue({code:"custom",path:["selectedTargetKeys"],message:"Property keys must be unique."})});h({target:t0}).strict();h({targetKey:be,label:l().trim().min(1)}).strict();h({targetKey:be,mergedKeys:b(be).min(1)}).strict();h({targetKey:be,cleanup:W("assignments-and-group-memberships").optional()}).strict();h({targetKey:be,discoveryIdentity:l().trim().min(1),discoveredUrl:l().url()}).strict();const k2={targetKeys:b(be).optional(),groupKeys:b(be).optional()};function w2(e,n){(e.targetKeys?.length??0)===0&&(e.groupKeys?.length??0)===0&&n.addIssue({code:"custom",message:"At least one Target or group selector is required."})}h(k2).strict().superRefine(w2);const s9=h({...k2,queryIds:b(Ja).min(1),contextOverride:Kc.optional()}).strict().superRefine(w2);Ge([h({targetKey:be,queryIds:b(Ja).min(1),contextOverride:Kc.optional()}).strict(),s9]);const o9=h({groupKey:be,label:l().trim().min(1),memberCount:p().int().positive()}).strict();h({draftEtag:l().trim().min(1),groups:b(o9),resolvedTargetKeys:b(be),overlapCount:p().int().nonnegative(),assignments:h({requested:p().int().nonnegative(),added:p().int().nonnegative(),alreadyPresent:p().int().nonnegative()}).strict(),execution:h({addedNodes:p().int().nonnegative(),addedProviderCalls:p().int().nonnegative(),fullRunNodes:p().int().nonnegative(),fullRunProviderCalls:p().int().nonnegative()}).strict()}).strict();h({pairs:b(h({targetKey:be,queryId:Ja}).strict()).min(1),contextOverride:Kc.optional()}).strict();Ge([h({targetKey:be,queryId:Ja}).strict(),h({targetKeys:b(be).min(1),queryId:Ja}).strict()]);h({targetKey:be}).strict();h({queryClass:Vp,assignments:b(h({targetKey:be,queryId:Ja}).strict()).min(1)}).strict();h({group:h({stableKey:be,label:l().trim().min(1),targetKeys:b(be),competitors:b(a0).optional()}).strict()}).strict();h({groupKey:be}).strict();h({groupKey:be,competitor:a0}).strict();h({groupKey:be,competitorKey:be}).strict();const _c=h({ruleId:l().trim().min(1),severity:_(["fail","warn"]),message:l().trim().min(1),path:b(Ge([l(),p().int()]))}).strict();pt("ok",[h({ok:W(!0),compiledChecksum:ao,checks:b(_c),counts:n0,plan:Vc}).strict(),h({ok:W(!1),compiledChecksum:me(),checks:b(_c).min(1)}).strict()]);const Cy=h({added:b(l().trim().min(1)),removed:b(l().trim().min(1)),changed:b(l().trim().min(1)),unchanged:b(l().trim().min(1))}).strict(),r9=h({activeRevision:wi.nullable(),targets:Cy,groups:Cy,assignments:h({added:p().int().nonnegative(),removed:p().int().nonnegative(),reclassified:p().int().nonnegative()}).strict(),execution:h({addedNodeKeys:b(l().trim().min(1)),removedNodeKeys:b(l().trim().min(1))}).strict()}).strict();pt("ok",[h({ok:W(!0),compiledChecksum:ao,checks:b(_c),counts:n0,plan:Vc,diff:r9}).strict(),h({ok:W(!1),compiledChecksum:me(),checks:b(_c).min(1),diff:me()}).strict()]);h({expectedActiveRevision:wi.nullable(),expectedCompiledChecksum:ao}).strict();h({published:R(),active:h({revision:wi,checksum:ao,compiledChecksum:ao,createdAt:l().datetime(),plan:Vc}).strict()}).strict();h({discarded:R()}).strict();h({expectedActiveRevision:wi}).strict();h({deactivated:R(),previousRevision:wi.nullable()}).strict();const l9=_(["republish_required","setup_in_progress","awaiting_first_run","operational","simple"]),c9=_(["republish_setup","continue_setup","run_measurement","view_measurement","start_setup"]),u9=_(["simple","draft-only","active-v1","active-v2"]);h({state:l9,nextAction:c9,mode:u9,activeRevision:wi.nullable(),activeSchemaVersion:Ge([W(1),W(2)]).nullable(),draft:h({etag:l().trim().min(1),updatedAt:l().datetime()}).strict().nullable()}).strict();const S2=h({id:l().trim().min(1),projectId:l().trim().min(1),name:l().trim().min(1),description:l().nullable(),itemCount:p().int().nonnegative(),createdAt:l().datetime(),updatedAt:l().datetime()}).strict(),d9=h({queryId:Ja,queryText:l().min(1),position:p().int().nonnegative()}).strict();S2.extend({items:b(d9)}).strict();h({querySets:b(S2)}).strict();h({name:l().trim().min(1),description:l().nullable().optional(),queryIds:b(Ja)}).strict();const m9=h({id:l().trim().min(1),projectId:l().trim().min(1),name:l().trim().min(1),description:l().nullable(),pattern:l().trim().min(1),variables:b(l().trim().min(1)),createdAt:l().datetime(),updatedAt:l().datetime()}).strict();h({templates:b(m9)}).strict();h({name:l().trim().min(1),description:l().nullable().optional(),pattern:l().trim().min(1),variables:b(l().trim().min(1))}).strict();h({bindings:b(Pe(l().trim().min(1),l().trim().min(1))).min(1),querySetId:l().trim().min(1).optional()}).strict();h({created:b(h({queryId:Ja,queryText:l().min(1)}).strict()),existing:b(h({queryId:Ja,queryText:l().min(1)}).strict())}).strict();const Cc=l().regex(/^[a-f0-9]{64}$/),Qc=p().int().positive();h({stableKey:be,kind:_(["target","group"]),retiredAt:l().datetime().nullable()}).strict();h({csv:l()}).strict();_(["matched","ambiguous","unmatched","invalid","duplicate","proposed","excluded"]);const p9=_(["column-count","missing-property","missing-group","invalid-url","property-not-found","property-label-ambiguous","url-not-exact-match","target-proposed","target-excluded","group-label-ambiguous","group-key-conflict"]),dp=h({dataRow:Qc,property:l(),group:l(),url:l().nullable(),normalizedProperty:l(),normalizedGroupLabel:l()}).strict(),gr=dp.extend({reason:p9}),h9=h({source:_(["draft-target","draft-group","persisted-segment","retired-segment","proposed-group"]),stableKey:be,kind:_(["target","group"]).optional(),retiredAt:l().datetime().nullable().optional(),normalizedGroupLabel:l().optional()}).strict(),f9=h({proposedGroupKey:be,evidence:b(h9).min(1)}).strict(),g9=pt("status",[dp.extend({status:W("matched"),targetKey:be,groupKey:be}).strict(),gr.extend({status:W("ambiguous"),candidateTargetKeys:b(be).min(1).optional(),candidateGroupKeys:b(be).min(1).optional()}).strict(),gr.extend({status:W("unmatched")}).strict(),gr.extend({status:W("invalid"),groupKeyConflict:f9.optional()}).strict(),dp.extend({status:W("duplicate"),duplicateOfRow:Qc,targetKey:be,groupKey:be}).strict(),gr.extend({status:W("proposed"),targetKey:be}).strict(),gr.extend({status:W("excluded"),targetKey:be}).strict()]),y9=h({normalizedGroupLabel:l(),groupKey:be,label:l().trim().min(1),action:_(["create","extend"]),matchedRows:b(Qc),targetKeys:b(be),addedTargetKeys:b(be),unchangedTargetKeys:b(be)}).strict(),b9=h({dataRows:p().int().nonnegative(),matchedRows:p().int().nonnegative(),ambiguousRows:p().int().nonnegative(),unmatchedRows:p().int().nonnegative(),invalidRows:p().int().nonnegative(),duplicateRows:p().int().nonnegative(),proposedRows:p().int().nonnegative(),excludedRows:p().int().nonnegative(),needsAttention:p().int().nonnegative(),groupsReady:p().int().nonnegative(),groupsToCreate:p().int().nonnegative(),groupsToExtend:p().int().nonnegative(),membershipsReady:p().int().nonnegative(),addedMemberships:p().int().nonnegative(),unchangedMemberships:p().int().nonnegative()}).strict();h({draftEtag:l().trim().min(1),sourceChecksum:Cc,previewChecksum:Cc,rows:b(g9),groupChanges:b(y9),counts:b9}).strict();h({csv:l(),sourceChecksum:Cc,previewChecksum:Cc,acceptedRows:b(Qc).min(1)}).strict().superRefine((e,n)=>{new Set(e.acceptedRows).size!==e.acceptedRows.length&&n.addIssue({code:"custom",path:["acceptedRows"],message:"Accepted CSV data rows must be unique."})});n9.extend({appliedRows:p().int().nonnegative(),addedMemberships:p().int().nonnegative(),unchangedMemberships:p().int().nonnegative()}).strict();const j2=_(["introduced","repointed","retired"]),v9=j2.enum;h({modelId:l().trim().min(1),date:l().regex(/^\d{4}-\d{2}-\d{2}$/,"date must be YYYY-MM-DD"),kind:j2,confirmed:R(),sourceUrl:l().url(),note:l().min(1)});const x9=[{modelId:"chatgpt-4o-latest",date:"2024-08-15",kind:"introduced",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'Verbatim: "Released dynamic model for chatgpt-4o-latest—this model will point to the latest GPT-4o model used by ChatGPT." First moving id in the lineage.'},{modelId:"chatgpt-4o-latest",date:"2026-02-17",kind:"retired",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/deprecations.md",note:'Shutdown 2026-02-17, replacement gpt-5.1-chat-latest. Announced under the heading "2025-11-18: chatgpt-4o-latest snapshot".'},{modelId:"gpt-5.1-chat-latest",date:"2025-11-13",kind:"introduced",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:"Introduced inside the GPT-5.1 launch entry, not as a standalone entry."},{modelId:"gpt-5.2-chat-latest",date:"2025-12-11",kind:"introduced",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:"Introduced inside the GPT-5.2 launch entry."},{modelId:"gpt-5.2-chat-latest",date:"2026-02-10",kind:"repointed",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'Verbatim: "Updated the gpt-5.2-chat-latest slug to point to the latest model currently used in ChatGPT." Target model NOT named.'},{modelId:"gpt-5.3-chat-latest",date:"2026-03-03",kind:"introduced",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'Verbatim: "Released gpt-5.3-chat-latest to the Chat Completions and Responses API. This model points to the GPT-5.3 Instant snapshot currently used in ChatGPT."'},{modelId:"gpt-5.3-chat-latest",date:"2026-03-16",kind:"repointed",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'Verbatim: "Updated the gpt-5.3-chat-latest slug to point to the latest model currently used in ChatGPT." Target model NOT named.'},{modelId:"chat-latest",date:"2026-05-05",kind:"introduced",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'Verbatim: "Released chat-latest snapshot which points to the latest Instant model currently used in ChatGPT... The underlying model snapshot will be regularly updated."'},{modelId:"chat-latest",date:"2026-05-28",kind:"repointed",confirmed:!1,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'UNCONFIRMED. The entry reads "Released chat-latest snapshot..." — the verb is "Released", the same boilerplate as the 2026-05-05 entry, not "Updated" as used on 2026-06-24. Only "the latest improvements" vs "our latest improvements" differs. Either a real change logged with copy-pasted text, or a duplicated entry; the record does not disambiguate.'},{modelId:"chat-latest",date:"2026-06-24",kind:"repointed",confirmed:!0,sourceUrl:"https://developers.openai.com/api/docs/changelog",note:'Verbatim (re-read at source 2026-07-20): "Updated the chat-latest snapshot, which points to the latest Instant model currently used in ChatGPT." The verb is "Updated", unlike the "Released" boilerplate of 2026-05-05 and 2026-05-28, which is the wording the changelog reserves for a real change. Target model NOT named. The only unambiguous chat-latest change on record.'}];v9.repointed;new Set(x9.map(e=>e.modelId.toLowerCase()));const k9=_(["not-exposed","no-known-change","known-change"]);k9.enum;const w9=h({modelId:l().trim().min(1),date:l().regex(/^\d{4}-\d{2}-\d{2}$/),confirmed:R(),sourceUrl:l().url()}),S9=h({status:_(["no-known-change","known-change"]),modelIds:b(l().trim().min(1)).min(1),changes:b(w9),changeCount:p().int().nonnegative(),unverifiedChangeCount:p().int().nonnegative(),firstChangeDate:l().optional(),lastChangeDate:l().optional(),knownGoodAsOf:l(),checkedThroughPeriodEnd:R()}),j9={openai:"ChatGPT",chatgpt:"ChatGPT",anthropic:"Claude",claude:"Claude",google:"Gemini",gemini:"Gemini",perplexity:"Perplexity"};function A9(e){const n=e.trim().toLowerCase();return j9[n]??e.charAt(0).toUpperCase()+e.slice(1)}function Om(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?Math.floor(e):0}function yr(e){return typeof e=="string"&&e.trim().length>=10?e.trim().slice(0,10):null}function qm(e){return[...new Set(e.filter(n=>n!==null))].sort()}function N9(e,n){const s=A9(e),r=Array.isArray(n.changes)?n.changes:[],c=Om(n.changeCount)||r.length,f=Math.min(c,Om(n.unverifiedChangeCount)||Om(n.unconfirmedChangeCount)||r.filter(S=>S.confirmed===!1).length),g=yr(n.knownGoodAsOf),y=n.checkedThroughPeriodEnd!==!1,x={engine:s,confirmedCount:c-f,unconfirmedCount:f,knownGoodAsOf:g,checkedThroughPeriodEnd:y};if(r.length>0)return{...x,confirmedDates:qm(r.filter(S=>S.confirmed!==!1).map(S=>yr(S.date))),unconfirmedDates:qm(r.filter(S=>S.confirmed===!1).map(S=>yr(S.date)))};const k=qm([yr(n.firstChangeDate),yr(n.lastChangeDate)]);return c===0?{...x,confirmedDates:[],unconfirmedDates:[]}:f===0?{...x,confirmedDates:k,unconfirmedDates:[]}:x.confirmedCount===0?{...x,confirmedDates:[],unconfirmedDates:k}:{...x,confirmedDates:[],unconfirmedDates:[]}}function _9(e){return e.length===1?e[0]:e.length===2?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")}, and ${e[e.length-1]}`}function zy(e,n){return e.length===0?null:e.length===1&&n<=1?`on ${e[0]}`:`more than once between ${e[0]} and ${e[e.length-1]}`}function C9(e){const n=zy(e.confirmedDates,e.confirmedCount),s=zy(e.unconfirmedDates,e.unconfirmedCount),r=`The model behind ${e.engine}`;if(e.confirmedCount>0&&e.unconfirmedCount===0)return n?`${r} was updated ${n}, inside this period.`:`${r} was updated inside this period.`;if(e.confirmedCount===0)return s?`${r} may have been updated ${s}, inside this period, though that is not confirmed.`:`${r} may have been updated inside this period, though that is not confirmed.`;if(n&&s)return`${r} was updated ${n}, inside this period, and may also have been updated ${s}.`;const c=e.unconfirmedCount>1?"more times":"once more";return`${r} was updated inside this period, and may have been updated ${c}, though that is not confirmed.`}function Ey(e){const n=e.filter(r=>!r.checkedThroughPeriodEnd&&r.knownGoodAsOf!==null);return n.length===0?null:`We last checked for model updates on ${n.map(r=>r.knownGoodAsOf).sort()[0]}, and this period runs past that date, so there may be later updates we do not know about.`}function LU(e){const n=Object.entries(e??{}).map(([x,k])=>N9(x,k??{})).sort((x,k)=>x.engine.localeCompare(k.engine));if(n.length===0)return null;const s=n.filter(x=>x.confirmedCount+x.unconfirmedCount>0);if(s.length===0){const x=[...new Set(n.map(z=>z.engine))],k=x.length>1,S=Ey(n),j=[...new Set(n.map(z=>z.knownGoodAsOf).filter(z=>z!==null))].sort(),A=S??(j.length>0?`We last checked for model updates on ${j[0]}.`:null);return{kind:"no-known-change",text:`No model updates are on record for ${_9(x)} in this period.`,detail:`${k?"These engines":"This engine"} can be moved onto a different underlying model without the data ever showing a different model name, so we check each period against a record of known updates. Nothing is listed inside this one.${A?` ${A}`:""}`}}const r=s.reduce((x,k)=>x+k.confirmedCount+k.unconfirmedCount,0),c=s.some(x=>x.confirmedCount>0),f=r===1?"this update":"these updates",g=c?`Some of the movement in these numbers may come from ${f} rather than from a real change in how AI answers about you, so compare periods carefully.`:`If so, some of the movement in these numbers may come from ${f} rather than from a real change in how AI answers about you, so compare periods carefully.`,y=Ey(n);return{kind:"change",text:`${s.map(C9).join(" ")} ${g}${y?` ${y}`:""}`}}const z9=_(["gsc","ga4","gbp"]);h({id:l(),domain:l(),connectionType:z9,propertyId:l().nullable().optional(),sitemapUrl:l().nullable().optional(),scopes:b(l()).default([]),createdAt:l(),updatedAt:l()});const E9=h({date:l(),query:l(),page:l(),country:l().nullable().optional(),device:l().nullable().optional(),clicks:p(),impressions:p(),ctr:p(),position:p()});_(["clicks","impressions","date"]);h({rows:b(E9),totalMatching:p(),truncated:R(),latestAvailableDate:l().nullable()});const D9=h({date:l(),clicks:p(),impressions:p(),ctr:p()});h({totals:h({clicks:p(),impressions:p(),ctr:p(),days:p()}),daily:b(D9)});const T9=h({page:l(),clicks:p(),impressions:p(),ctr:p()});h({rows:b(T9),totals:h({clicks:p(),impressions:p(),ctr:p(),days:p(),coveredFrom:l().nullable(),coveredThrough:l().nullable(),complete:R()}).nullable(),totalsSource:W("property-daily"),rankedFrom:l().nullable(),rankedThrough:l().nullable()});const mp=h({id:l(),url:l(),indexingState:l().nullable().optional(),verdict:l().nullable().optional(),coverageState:l().nullable().optional(),pageFetchState:l().nullable().optional(),robotsTxtState:l().nullable().optional(),crawlTime:l().nullable().optional(),lastCrawlResult:l().nullable().optional(),isMobileFriendly:R().nullable().optional(),richResults:b(l()).default([]),referringUrls:b(l()).default([]),inspectedAt:l()});_(["stable","reindexed","deindexed","still-missing","new"]);const R9=h({url:l(),previousState:l().nullable(),currentState:l().nullable(),transitionDate:l()}),O9=h({reason:l(),count:p(),urls:b(mp).default([])});h({summary:h({total:p(),indexed:p(),notIndexed:p(),deindexed:p(),percentage:p()}),lastInspectedAt:l().nullable(),lastSyncedAt:l().nullable(),indexed:b(mp).default([]),notIndexed:b(mp).default([]),deindexed:b(R9).default([]),reasonGroups:b(O9).default([])});h({url:l(),type:_(["URL_UPDATED","URL_DELETED"]),notifiedAt:l()});const q9=h({url:l(),type:_(["URL_UPDATED","URL_DELETED"]),notifiedAt:l(),status:_(["success","error"]),error:l().optional()});h({summary:h({total:p().int().nonnegative(),succeeded:p().int().nonnegative(),failed:p().int().nonnegative()}),results:b(q9).default([])});h({date:l(),indexed:p(),notIndexed:p(),unknownPages:p().default(0),verifiedByInspection:p().default(0),derivedFromImpressions:p().default(0),reasonBreakdown:Pe(l(),p()).default({})});const B9=h({siteUrl:l(),permissionLevel:l()});h({sites:b(B9).default([])});const M9=h({type:l(),submitted:l(),indexed:l().optional().describe("Deprecated compatibility field.")}),A2=h({path:l(),parentSitemapUrl:l().optional(),lastSubmitted:l().optional(),isPending:R().optional(),isSitemapsIndex:R().optional(),type:l().optional(),lastDownloaded:l().optional(),warnings:l().optional(),errors:l().optional(),contents:b(M9).optional()});h({sitemaps:b(A2).default([]),summary:h({total:p().int().nonnegative(),indexes:p().int().nonnegative(),files:p().int().nonnegative()}),preferredSubmissionUrls:b(l()).default([])});h({sitemapUrls:b(l().url().refine(e=>{const n=new URL(e).protocol;return n==="http:"||n==="https:"},{message:"Sitemap URL must use http or https."})).min(1).max(50)});const P9=h({sitemapUrl:l(),status:_(["accepted","error"]),submittedAt:l().optional(),error:l().optional()});h({summary:h({total:p().int().nonnegative(),accepted:p().int().nonnegative(),failed:p().int().nonnegative()}),results:b(P9)});h({sitemaps:b(A2),primarySitemapUrl:l(),run:h({id:l(),projectId:l(),kind:l(),status:l(),trigger:l(),createdAt:l()}).nullable()});const U9=h({name:l(),accountName:l().nullable(),type:l().nullable(),role:l().nullable()});h({accounts:b(U9),total:p().int().nonnegative()});const L9=h({id:l(),projectId:l(),accountName:l(),locationName:l(),displayName:l(),primaryCategoryDisplayName:l().nullable(),storefrontAddress:l().nullable(),websiteUri:l().nullable(),placeId:l().nullable(),mapsUri:l().nullable(),additionalCategories:b(l()),description:l().nullable(),serviceArea:Pe(l(),La()).nullable(),regularHours:Pe(l(),La()).nullable(),primaryPhone:l().nullable(),openStatus:l().nullable(),openingDate:l().nullable(),selected:R(),syncedAt:l().nullable(),createdAt:l(),updatedAt:l()});h({locations:b(L9),totalDiscovered:p().int().nonnegative(),totalSelected:p().int().nonnegative()});h({selectAllNew:R().default(!0),accountName:l().optional(),switchAccount:R().default(!1)});h({selected:R()});h({locationNames:b(l()).optional(),daysOfMetrics:p().int().positive().max(540).optional(),monthsOfKeywords:p().int().positive().max(18).optional()});h({runId:l(),status:l()});const I9=h({locationName:l(),date:l(),metric:l(),value:p().int()});h({metrics:b(I9),total:p().int().nonnegative()});const V9=h({locationName:l(),periodStart:l(),periodEnd:l(),keyword:l(),valueCount:p().int().nullable(),valueThreshold:p().int().nullable()});h({keywords:b(V9),total:p().int().nonnegative(),thresholdedPct:p().int().min(0).max(100)});const $9=h({locationName:l(),placeActionLinkName:l(),placeActionType:l(),uri:l().nullable(),isPreferred:R(),providerType:l().nullable()});h({placeActions:b($9),total:p().int().nonnegative()});const G9=h({locationName:l(),populatedGroupCount:p().int().nonnegative(),syncedAt:l(),attributes:Pe(l(),La())});h({lodging:b(G9),total:p().int().nonnegative()});const H9=h({name:l(),valueType:l(),values:b(Ge([R(),l()])),unsetValues:b(l()),uris:b(l())}),K9=h({locationName:l(),attributeCount:p().int().nonnegative(),syncedAt:l(),attributes:b(H9)});h({attributes:b(K9),total:p().int().nonnegative()});const Q9=h({locationName:l(),placeId:l(),tier:l(),amenities:b(l()),syncedAt:l(),place:Pe(l(),La())});h({places:b(Q9),total:p().int().nonnegative()});h({scope:h({locationName:l().nullable(),locationCount:p().int().nonnegative()}),performance:h({totals:Pe(l(),p()),recent7d:Pe(l(),p()),prior7d:Pe(l(),p()),deltaPct:Pe(l(),p().nullable())}),freshness:h({dataThroughDate:l().nullable(),latestStoredDate:l().nullable(),pendingDays:p().int().nonnegative()}),timeseries:b(h({date:l(),pending:R(),metrics:Pe(l(),p())})),keywords:h({total:p().int().nonnegative(),thresholdedCount:p().int().nonnegative(),thresholdedPct:p().int().min(0).max(100)}),placeActions:h({total:p().int().nonnegative(),hasReservationCta:R(),hasBookingCta:R(),hasDirectMerchantCta:R()}),lodging:h({lodgingLocationCount:p().int().nonnegative(),populatedLodgingCount:p().int().nonnegative(),emptyLodgingCount:p().int().nonnegative()}),profileCompleteness:h({locationCount:p().int().nonnegative(),withSecondaryCategories:p().int().nonnegative(),secondaryCategoryTotal:p().int().nonnegative(),withDescription:p().int().nonnegative(),withServiceArea:p().int().nonnegative(),withHours:p().int().nonnegative(),withPrimaryPhone:p().int().nonnegative(),permanentlyClosed:p().int().nonnegative(),temporarilyClosed:p().int().nonnegative()})});const Z9={BUSINESS_DIRECTION_REQUESTS:"Direction requests",WEBSITE_CLICKS:"Website clicks",CALL_CLICKS:"Call clicks",BUSINESS_BOOKINGS:"Bookings",BUSINESS_CONVERSATIONS:"Conversations",BUSINESS_FOOD_ORDERS:"Food orders",BUSINESS_FOOD_MENU_CLICKS:"Food menu clicks",BUSINESS_IMPRESSIONS_DESKTOP_SEARCH:"Search impressions (desktop)",BUSINESS_IMPRESSIONS_MOBILE_SEARCH:"Search impressions (mobile)",BUSINESS_IMPRESSIONS_DESKTOP_MAPS:"Maps impressions (desktop)",BUSINESS_IMPRESSIONS_MOBILE_MAPS:"Maps impressions (mobile)"};function F9(e){const n=e.replace(/^BUSINESS_/,"").split("_").filter(Boolean).map(r=>r.toLowerCase());if(n.length===0)return e;const s=n.join(" ");return s.charAt(0).toUpperCase()+s.slice(1)}function IU(e){return Z9[e]??F9(e)}const Y9=["BUSINESS_DIRECTION_REQUESTS","WEBSITE_CLICKS","CALL_CLICKS"],X9=["BUSINESS_IMPRESSIONS_DESKTOP_SEARCH","BUSINESS_IMPRESSIONS_MOBILE_SEARCH","BUSINESS_IMPRESSIONS_DESKTOP_MAPS","BUSINESS_IMPRESSIONS_MOBILE_MAPS"];function VU(e){return Y9.includes(e)?"conversion":X9.includes(e)?"reach":"other"}h({id:l(),domain:l(),siteUrl:l().nullable().optional(),createdAt:l(),updatedAt:l()});const Bm=h({id:l(),url:l(),httpCode:p().nullable().optional(),inIndex:R().nullable().optional(),lastCrawledDate:l().nullable().optional(),inIndexDate:l().nullable().optional(),inspectedAt:l(),documentSize:p().nullable().optional(),anchorCount:p().nullable().optional(),discoveryDate:l().nullable().optional()});h({summary:h({total:p(),indexed:p(),notIndexed:p(),unknown:p().optional(),percentage:p()}),lastInspectedAt:l().nullable(),indexed:b(Bm).default([]),notIndexed:b(Bm).default([]),unknown:b(Bm).default([]).optional()});h({query:l(),impressions:p(),clicks:p(),ctr:p(),averagePosition:p()});h({date:l(),indexed:p(),notIndexed:p(),unknown:p()});const J9=h({url:l(),status:_(["success","error"]),submittedAt:l(),error:l().optional()});h({summary:h({total:p().int().nonnegative(),succeeded:p().int().nonnegative(),failed:p().int().nonnegative()}),results:b(J9).default([])});const N2=h({url:l(),verified:R()});h({sites:b(N2).default([])});h({connected:R(),domain:l(),siteUrl:l().nullable(),createdAt:l().nullable(),updatedAt:l().nullable()});h({connected:R(),domain:l(),siteUrl:l().nullable(),availableSites:b(N2).default([])});h({siteUrl:l()});const W9=h({name:l(),alive:R(),lastUsed:l().nullable()});h({connected:R(),endpoint:l(),version:l().optional(),browserVersion:l().optional(),targets:b(W9).default([])});const uo=_(["live","staging"]);h({projectName:l(),url:l(),stagingUrl:l().optional(),username:l(),defaultEnv:uo,createdAt:l(),updatedAt:l()});const Dy=h({url:l(),reachable:R(),pageCount:p().nullable().optional(),version:l().nullable().optional(),error:l().nullable().optional(),plugins:b(l()).optional(),authenticatedUser:h({id:p(),slug:l()}).nullable().optional()});h({connected:R(),projectName:l(),defaultEnv:uo,live:Dy.nullable(),staging:Dy.nullable(),adminUrl:l().nullable().optional()});const ez=h({id:p(),slug:l(),title:l(),status:l(),modifiedAt:l().nullable().optional(),link:l().nullable().optional()}),_2=h({title:l().nullable(),description:l().nullable(),noindex:R().nullable(),writable:R().default(!1),writeTargets:b(l()).default([])}),tz=h({type:l(),json:Pe(l(),La())}),az=ez.extend({env:uo,content:l(),seo:_2,schemaBlocks:b(tz).default([])}),Ty=az.extend({contentHash:l(),contentSnippet:l()}),C2=h({manualRequired:W(!0),targetUrl:l(),adminUrl:l().nullable().optional(),content:l(),nextSteps:b(l()).default([])}),nz=h({slug:l(),severity:_(["high","medium","low"]),code:_(["noindex","missing-seo-title","missing-meta-description","missing-schema","thin-content"]),message:l()});h({slug:l(),title:l(),status:l(),wordCount:p(),seo:_2,schemaPresent:R(),issues:b(nz).default([])});const iz=h({slug:l(),status:_(["applied","skipped","manual"]),error:l().optional(),manualAssist:C2.optional()});h({env:uo,strategy:_(["plugin","manual"]),results:b(iz)});const sz=h({slug:l(),status:_(["deployed","stripped","skipped","failed"]),schemasInjected:b(l()).optional(),manualAssist:C2.optional(),error:l().optional()});h({env:uo,results:b(sz)});const oz=h({slug:l(),title:l(),canonrySchemas:b(l()),thirdPartySchemas:b(l()),hasCanonrySchema:R()});h({env:uo,pages:b(oz)});const rz=h({name:l(),status:_(["completed","skipped","failed"]),summary:l().optional(),error:l().optional()});h({projectName:l(),steps:b(rz)});h({slug:l(),live:Ty,staging:Ty,hasDifferences:R(),differences:h({title:R(),slug:R(),content:R(),seoTitle:R(),seoDescription:R(),noindex:R(),schema:R()})});const lz=h({name:l(),displayName:l().optional(),keyUrl:l().optional(),modelHint:l().optional(),model:l().optional(),defaultModel:l().optional(),configured:R(),quota:wN.optional(),vertexConfigured:R().optional()}),cz=h({name:l(),displayName:l(),mode:_(["api","browser"]),modelConfigurable:R(),defaultModel:l(),knownModels:b(h({id:l(),displayName:l(),tier:_(["flagship","standard","fast","economy"])})).default([]),modelValidationPattern:h({source:l(),flags:l()}),modelValidationHint:l()}),Ry=h({configured:R()});h({providers:b(lz).default([]),providerCatalog:b(cz).default([]),google:Ry,bing:Ry});const Si=_(["queued","running","completed","partial","failed","cancelled"]),na=Si.enum,z2=_(["answer-visibility","site-audit","gsc-sync","inspect-sitemap","ga-sync","bing-inspect","bing-inspect-sitemap","backlink-extract","traffic-sync","aeo-discover-seed","aeo-discover-probe","gbp-sync","ads-sync"]),Te=z2.enum,i0=_(["manual","scheduled","config-apply","backfill","probe"]),Ys=i0.enum,Rn=_(["cited","not-cited"]),zc=Rn.enum,Ec=_(["visible","not-visible"]);Ec.enum;const Tr=_(["mentioned","not-mentioned"]);Tr.enum;const E2=_(["new","cited","lost","emerging","not-cited"]);E2.enum;const uz=_(["new","mentioned","lost","emerging","not-mentioned"]);uz.enum;const dz=_([Ys.manual,Ys.probe]);h({kind:W(Te["answer-visibility"]).optional(),trigger:dz.optional(),providers:b(ct).optional(),queries:b(l().min(1)).min(1).optional(),measurementScope:uC.optional(),location:l().min(1).optional(),allLocations:R().optional(),noLocation:R().optional()}).refine(e=>+!!e.location+ +!!e.allLocations+ +!!e.noLocation<=1,{message:'Only one of "location", "allLocations", or "noLocation" may be provided'});const mz=h({message:l(),raw:La().optional()}),pz=h({message:l().optional(),providers:Pe(l(),mz).optional()}),hz=h({id:l(),projectId:l(),kind:z2,status:Si,trigger:i0.default("manual"),measurementPlanVersionId:l().nullable().optional(),measurementManifest:Pe(l(),La()).nullable().optional(),measurementScope:dC.nullable().optional(),measurementExecutionIdentity:u2.nullable().optional(),location:l().nullable().optional(),queries:b(l()).nullable().optional(),startedAt:l().nullable().optional(),finishedAt:l().nullable().optional(),error:pz.nullable().optional(),queryBasketRevision:p().int().nullable().optional(),createdAt:l()});function s0(e){if(e.providers){const n=Object.entries(e.providers);if(n.length===1){const[s,r]=n[0];return`${s}: ${r.message}`}if(n.length>1)return n.map(([s,r])=>`${s}: ${r.message}`).join(" • ")}return e.message??"Run failed."}const Zc=h({uri:l(),title:l()}),fz=h({status:_(["applied","ignored","browser-implicit","unknown"]),resolved:ra.nullable().optional()}),D2=h({id:l(),runId:l(),queryId:l(),query:l().optional(),provider:ct,citationState:Rn,answerMentioned:R().optional(),visibilityState:Ec.optional(),mentionState:Tr.optional(),transition:E2.optional(),answerText:l().nullable().optional(),citedDomains:b(l()).default([]),citedUrls:b(l()).nullable().default(null),captureStatus:Ge([$c,me()]).default(null),sourceCount:p().int().nonnegative().nullable().default(null),resolvedCount:p().int().nonnegative().nullable().default(null),captureVersion:p().int().positive().nullable().default(null),retrievalStatus:Ge([Wp,me()]).default(null),retrievalContract:Ge([e0,me()]).default(null),competitorOverlap:b(l()).default([]),recommendedCompetitors:b(l()).default([]),matchedTerms:b(l()).default([]),groundingSources:b(Zc).default([]),searchQueries:b(l()).default([]),model:l().nullable().optional(),servedModel:l().nullable().optional(),location:l().nullable().optional(),requestedContext:ra.nullable().optional(),supportedContext:fz.nullable().optional(),createdAt:l()});h({snapshots:b(D2),total:p().int().nonnegative()});const gz=h({queryId:l().nullable(),query:l().nullable(),run1State:Rn.nullable(),run2State:Rn.nullable(),run1AnswerMentioned:R().nullable(),run2AnswerMentioned:R().nullable(),run1VisibilityState:Ec.nullable(),run2VisibilityState:Ec.nullable(),run1MentionState:Tr.nullable().optional(),run2MentionState:Tr.nullable().optional(),changed:R(),visibilityChanged:R()});h({run1:l(),run2:l(),diff:b(gz)});const yz=hz.extend({snapshots:b(D2).optional()}),bz=h({totalRuns:p().int().nonnegative(),run:yz.nullable()});h({id:l(),projectId:l().nullable().optional(),actor:l(),action:l(),entityType:l(),entityId:l().nullable().optional(),diff:La().optional(),userAgent:l().nullable().optional(),actorSession:l().nullable().optional(),createdAt:l()});const vz=_(["yes","no","unknown","not-mentioned"]),Oy=b(l().min(1));h({companyName:l().min(1),domain:l().min(1),queries:Oy.optional(),phrases:Oy.optional(),competitors:b(l().min(1)).optional().default([])}).superRefine((e,n)=>{e.queries!==void 0&&e.phrases!==void 0&&n.addIssue({code:"custom",message:"Use queries; phrases is accepted only as a legacy alias when queries is omitted",path:["phrases"]})});const xz=h({name:l(),count:p().int().nonnegative()}),kz=h({id:l(),name:l(),weight:p(),score:p(),findings:b(h({type:l(),message:l()})).default([]),recommendations:b(l()).default([])}),wz=h({url:l(),finalUrl:l(),auditedAt:l(),overallScore:p(),summary:l(),factors:b(kz).default([])}),Sz=h({industry:l(),summary:l(),services:b(l()).default([]),categoryTerms:b(l()).default([])}),jz=h({provider:l(),displayName:l(),model:l().nullable().optional(),mentioned:R(),cited:R(),describedAccurately:vz,accuracyNotes:l().nullable().optional(),incorrectClaims:b(l()).default([]),recommendedCompetitors:b(l()).default([]),citedDomains:b(l()).default([]),groundingSources:b(Zc).default([]),searchQueries:b(l()).default([]),answerText:l(),error:l().nullable().optional()}),Az=h({query:l(),providerResults:b(jz).default([])}),Nz=h({totalQueries:p().int().nonnegative(),totalProviders:p().int().nonnegative(),totalComparisons:p().int().nonnegative(),mentionCount:p().int().nonnegative(),citationCount:p().int().nonnegative(),topCompetitors:b(xz).default([]),visibilityGap:l(),whatThisMeans:b(l()).default([]),recommendedActions:b(l()).default([])});h({companyName:l(),domain:l(),homepageUrl:l(),generatedAt:l(),queries:b(l()).default([]),competitors:b(l()).default([]),profile:Sz,audit:wz,queryResults:b(Az).default([]),summary:Nz});const T2=_(["pass","partial","fail"]);T2.enum;const R2=_(["up","down","flat"]);R2.enum;const _z=h({id:l(),name:l(),weight:p(),avgScore:p(),status:T2,pagesPassing:p().int().nonnegative(),pagesPartial:p().int().nonnegative(),pagesFailing:p().int().nonnegative()}),Cz=h({factorId:l(),factorName:l(),avgScore:p(),affectedPages:p().int().nonnegative(),totalPages:p().int().nonnegative(),affectedPct:p().int().nonnegative(),topRecommendations:b(l()).default([])});h({project:l(),hasData:R(),runId:l().nullable(),runStatus:Si.nullable(),sitemapUrl:l().nullable(),auditedAt:l().nullable(),aggregateScore:p(),pagesDiscovered:p().int().nonnegative(),pagesAudited:p().int().nonnegative(),pagesSkipped:p().int().nonnegative(),pagesErrored:p().int().nonnegative(),deltaScore:p().nullable(),trend:R2.nullable(),previousScore:p().nullable(),previousAuditedAt:l().nullable(),factors:b(_z).default([]),crossCuttingIssues:b(Cz).default([]),prioritizedFixes:b(l()).default([])});const zz=h({id:l(),name:l(),weight:p(),score:p()}),Ez=h({url:l(),overallScore:p(),status:_(["success","error"]),error:l().nullable().optional(),factors:b(zz).default([])});h({project:l(),runId:l().nullable(),auditedAt:l().nullable(),total:p().int().nonnegative(),pages:b(Ez).default([])});const Dz=h({runId:l(),auditedAt:l(),aggregateScore:p(),pagesAudited:p().int().nonnegative()});h({project:l(),points:b(Dz).default([])});h({sitemapUrl:l().url().optional(),limit:p().int().positive().max(2e3).optional()});h({runId:l(),status:Si});const o0=_(["answer-visibility","traffic-sync","gbp-sync","data-refresh","backlinks-sync","site-audit","ads-sync","doctor"]);o0.enum;h({id:l(),projectId:l(),kind:o0,cronExpr:l(),preset:l().nullable().optional(),timezone:l().default("UTC"),enabled:R().default(!0),providers:b(ct).default([]),sourceId:l().nullable().optional(),lastRunAt:l().nullable().optional(),nextRunAt:l().nullable().optional(),createdAt:l(),updatedAt:l()});h({kind:o0.optional(),preset:l().optional(),cron:l().optional(),timezone:l().optional().default("UTC"),enabled:R().optional().default(!0),providers:b(ct).optional().default([]),sourceId:l().optional()}).refine(e=>e.preset&&!e.cron||!e.preset&&e.cron,{message:'Exactly one of "preset" or "cron" must be provided'});const r0=_(["competitor","directory","social","forum","news","reference","blog","ecommerce","video","academic","other"]);r0.enum;const l0=_(["cited","aspirational","wasted-surface"]),qy=l0.enum;qy.cited,qy.aspirational;const Fc=_(["direct-competitor","ota-aggregator","editorial-media","other","unknown"]),Tz=Fc.enum;Tz["direct-competitor"];const Yc=_(["queued","seeding","probing","completed","failed"]);Yc.enum;const O2=h({domain:l().min(1),hits:p().int().positive(),competitorType:Fc.default("unknown")}),Rz=h({id:l(),sessionId:l(),projectId:l(),query:l(),bucket:l0.nullable().default(null),citationState:Rn,citedDomains:b(l()).default([]),answerMentioned:R().nullable().default(null),createdAt:l()}),Oz=h({id:l(),projectId:l(),status:Yc,icpDescription:l().nullable().optional(),seedProvider:l().nullable().optional(),seedCountRaw:p().int().nullable().optional(),seedCount:p().int().nullable().optional(),seedFromAnswerCount:p().int().nullable().optional(),seedFromGroundingCount:p().int().nullable().optional(),seedBrandFilteredCount:p().int().nullable().optional(),buyerDescription:l().nullable().optional(),locations:b(ra).nullable().optional(),seedRawCandidates:b(l()).nullable().optional(),dedupClusterMinSims:b(p()).nullable().optional(),dedupBandPairFraction:p().nullable().optional(),dedupPairsTotal:p().int().nullable().optional(),seedProviders:b(l()).nullable().optional(),seedProviderCounts:Pe(l(),p().int()).nullable().optional(),canonicalCount:p().int().nullable().optional(),dedupThreshold:p().nullable().optional(),probeCount:p().int().nullable().optional(),citedCount:p().int().nullable().default(null),aspirationalCount:p().int().nullable().default(null),wastedCount:p().int().nullable().default(null),competitorMap:b(O2).default([]),warning:l().nullable().optional(),error:l().nullable().optional(),startedAt:l().nullable().optional(),finishedAt:l().nullable().optional(),createdAt:l()});Oz.extend({probes:b(Rz).default([])});const qz=500,Bz=8,Mz=["gemini","openai"],Pz=_(Mz);h({icpDescription:l().min(1).optional(),buyerDescription:l().min(1).optional(),seedProviders:b(Pz).min(1).transform(e=>[...new Set(e)].sort()).optional(),dedupThreshold:p().min(0).max(1).optional(),maxProbes:p().int().positive().max(qz).optional(),probeConcurrency:p().int().min(1).max(Bz).optional(),locations:b(l().min(1)).optional()});h({buckets:b(l0).min(1).optional(),includeCompetitors:R().optional(),competitorTypes:b(Fc).min(1).optional()});h({sessionId:l(),projectId:l(),status:Yc,queriesByBucket:h({cited:b(l()),aspirational:b(l()),"wasted-surface":b(l())}),suggestedCompetitors:b(O2)});h({sessionId:l(),projectId:l(),promoted:h({queries:b(l()),competitors:b(l())}),skipped:h({queries:b(l()),competitors:b(l())})});Ge([W("cli"),l().regex(/^discovery:.+$/)]);const Uz=h({query:l().min(1),probeHits:p().int().positive()}),Lz=h({rawCandidates:p().int().nonnegative(),admitted:p().int().nonnegative(),rejected:h({belowFloor:p().int().nonnegative(),length:p().int().nonnegative(),navigational:p().int().nonnegative(),duplicate:p().int().nonnegative(),offAnchor:p().int().nonnegative(),semanticDuplicate:p().int().nonnegative()})});h({sessionId:l(),projectId:l(),provider:l(),status:Yc,minProbeHits:p().int().positive(),anchorApplied:R(),semanticNoveltyApplied:R(),candidates:b(Uz),stats:Lz});const c0=_(["own","direct-competitor","ota-aggregator","editorial-media","other"]);c0.enum;const q2=_(["7d","30d","90d","all"]),By=_(["improving","declining","stable"]),Iz=_(["mentioned","cited"]);Iz.enum;const pp=h({citationRate:p(),cited:p().int(),total:p().int(),mentionRate:p(),mentionedCount:p().int()}),u0=l().trim().min(1),Vz=b(u0).min(1).superRefine((e,n)=>{for(let s=1;s<e.length;s+=1)e[s-1]>=e[s]&&n.addIssue({code:"custom",message:"mixed model IDs must be sorted and unique",path:[s]})}),no=pt("status",[h({status:W("known"),model:u0}),h({status:W("unknown")}),h({status:W("mixed"),models:Vz,includesUnknown:R()})]),$z=h({observedAt:l(),bucketStartDate:l(),from:no,to:no,fromPreWindowAnchor:R().optional(),anchorObservedAt:l().optional()}),B2=h({latestObservation:h({observedAt:l(),state:no}),events:b($z),eventTotal:p().int().nonnegative().optional(),anchorUnavailable:R().optional()}),Gz=Pe(l(),B2),Hz=B2.extend({latestServedModelIds:b(u0).default([])}),Kz=Pe(l(),Hz),Qz=h({observedAt:l(),configured:no,served:no}),Zz=h({rate:p().nullable(),projectMentionSnapshots:p().int().nonnegative(),competitorMentionSnapshots:p().int().nonnegative()}),Fz=h({startDate:l(),endDate:l(),dataStartDate:l(),dataEndDate:l(),sweepCount:p().int().nonnegative(),citationRate:p(),cited:p().int(),total:p().int(),queryCount:p().int(),mentionRate:p(),mentionedCount:p().int(),mentionShare:Zz,byProvider:Pe(l(),pp),modelEvidenceByProvider:Pe(l(),no).default({}),basketRevision:p().int().nullable().default(null)}),Yz=h({revision:p().int(),at:l(),added:b(l()),removed:b(l())}),Xz=h({date:l(),delta:p().int(),label:l()}),Jz=h({at:l(),identity:u2});h({window:q2,buckets:b(Fz),overall:pp,byProvider:Pe(l(),pp),trend:By,mentionTrend:By,queryChanges:b(Xz),basketChanges:b(Yz).default([]),executionIdentityChanges:b(Jz).default([]),referenceBasketRevision:p().int().nullable().default(null),modelAttribution:Gz.default({}),servedModelAttribution:Kz.default({}),modelServiceMismatch:Pe(l(),Qz).default({}),modelPointerChanges:Pe(l(),S9).default({})});const My=h({category:r0,label:l(),count:p().int(),percentage:p(),topDomains:b(h({domain:l(),count:p().int()}))}),Wz=h({domain:l(),count:p().int(),percentage:p(),category:r0,label:l(),surfaceClass:c0}),eE=h({surfaceClass:c0,label:l(),count:p().int(),percentage:p(),domainCount:p().int()}),Py=h({totalCitedSlots:p().int(),domainTotal:p().int(),entries:b(Wz),truncatedDomainCount:p().int(),truncatedCitedSlots:p().int(),bySurfaceClass:b(eE)});h({overall:b(My),byQuery:Pe(l(),b(My)),ranked:Py,byProvider:Pe(l(),Py),runId:l(),window:q2,limit:p().int().nullable()});const d0=h({total:p().int(),checked:p().int(),mentioned:p().int(),cited:p().int(),mentionRate:p().nullable(),citedRate:p().nullable()}),M2=d0.extend({provider:l(),firstObserved:l(),lastObserved:l()}),tE=d0.extend({queryId:l().nullable(),query:l(),firstObserved:l(),lastObserved:l(),providers:b(M2).optional()}),aE=h({since:l().nullable(),until:l().nullable(),lastRuns:p().int().nullable(),runCount:p().int()}),nE=_(["provider"]),hp=h({domain:l(),mentions:p().int()}),iE=h({percent:p().nullable(),projectMentions:p().int(),competitorMentions:p().int(),snapshotsWithAnswerText:p().int(),perCompetitor:b(hp)});h({project:l(),groupBy:nE.optional(),window:aE,totals:d0,byProvider:b(M2).optional(),queries:b(tE),shareOfVoice:iE.optional()});const sE=_(["within-noise","moved","insufficient-data","model-discontinuous","model-unknown"]),oE=_(["up","down","flat"]),Uy=h({point:p().nullable(),ciLow:p().nullable(),ciHigh:p().nullable(),numerator:p().int(),denominator:p().int()}),rE=_(["mention-share-of-voice","cited-share-of-voice","mention-rate","cited-rate"]),lE=h({key:rE,label:l(),driftRobust:R(),from:Uy,to:Uy,rateRatio:p().nullable(),direction:Ge([oE,me()]),verdict:sE}),Ly=h({month:l(),since:l(),until:l(),runCount:p().int(),lowRunCount:R()}),cE=h({queryCount:p().int(),excludedFromOnly:p().int(),excludedToOnly:p().int(),providers:b(l()),excludedProviders:b(l())}),uE=h({provider:l(),fromModels:b(l()),toModels:b(l())}),dE=_(["included","model-discontinuous","model-unknown"]),mE=h({provider:l(),status:dE,fromModels:b(l()),toModels:b(l())}),pE=_(["comparable","model-discontinuous","model-unknown","insufficient-data"]),hE=h({status:pE,comparedProviders:b(l()),providers:b(mE)}),fE=h({provider:l(),from:h({checked:p().int(),mentioned:p().int(),cited:p().int()}),to:h({checked:p().int(),mentioned:p().int(),cited:p().int()})}),gE=h({from:h({count:p().int(),of:p().int()}),to:h({count:p().int(),of:p().int()})});h({project:l(),from:Ly,to:Ly,basket:cE,metrics:b(lE),queriesMentioned:gE,byProvider:b(fE),modelChanges:b(uE),continuity:hE,competitors:h({from:b(hp),to:b(hp)})});_(["json","csv"]);const yE=h({runId:l(),runKind:W("answer-visibility"),runStatus:Si,runTrigger:i0,runCreatedAt:l(),runStartedAt:l().nullable(),runFinishedAt:l().nullable(),snapshotId:l(),snapshotCreatedAt:l(),queryId:l().nullable(),query:l().nullable(),provider:l(),model:l().nullable(),location:l().nullable(),citationState:Rn,cited:R(),answerMentioned:R().nullable(),mentionState:Ge([Tr,me()]),citedDomains:b(l()),citedUrls:b(l()).nullable(),captureStatus:Ge([$c,me()]),sourceCount:p().int().nonnegative().nullable(),resolvedCount:p().int().nonnegative().nullable(),captureVersion:p().int().positive().nullable(),competitorOverlap:b(l()),recommendedCompetitors:b(l()),answerText:l().nullable(),groundingSources:b(Zc),searchQueries:b(l())}),bE=h({since:l().nullable(),until:l().nullable(),includeProbes:R()});h({schemaVersion:W("canonry.results-export/v1"),generatedAt:l(),project:h({id:l(),name:l(),displayName:l(),canonicalDomain:l(),country:l(),language:l()}),filters:bE,recordCount:p().int().nonnegative(),records:b(yE)});const Xc=_(["organic","paid"]);Xc.enum;h({id:l(),projectId:l(),propertyId:l(),clientEmail:l(),connected:R(),createdAt:l(),updatedAt:l()});h({date:l(),landingPage:l(),sessions:p(),organicSessions:p(),users:p()});const m0=_(["session","first_user","manual_utm"]),vE=h({source:l(),medium:l(),trafficClass:Xc,sessions:p(),users:p().optional(),sourceDimension:m0}),xE=h({source:l(),medium:l(),trafficClass:Xc,sourceDimension:m0,landingPage:l(),sessions:p(),users:p().optional()}),kE=h({source:l(),medium:l(),sessions:p(),users:p(),channelGroup:l()}),br=h({sessions:p(),sharePct:p(),sharePctDisplay:l()}),wE=h({organic:br,social:br,direct:br,ai:br,other:br});h({totalSessions:p(),totalOrganicSessions:p(),totalDirectSessions:p(),totalUsers:p().nullable(),topPages:b(h({landingPage:l(),sessions:p(),organicSessions:p(),directSessions:p(),users:p()})),aiReferrals:b(vE),aiReferralLandingPages:b(xE),aiSessionsDeduped:p(),aiUsersDeduped:p().optional(),paidAiSessionsDeduped:p(),paidAiUsersDeduped:p().optional(),organicAiSessionsDeduped:p(),organicAiUsersDeduped:p().optional(),aiSessionsBySession:p(),aiUsersBySession:p().optional(),paidAiSessionsBySession:p(),paidAiUsersBySession:p().optional(),organicAiSessionsBySession:p(),organicAiUsersBySession:p().optional(),socialReferrals:b(kE),socialSessions:p(),socialUsers:p(),channelBreakdown:wE,organicSharePct:p(),aiSharePct:p(),aiSharePctBySession:p(),paidAiSharePct:p(),paidAiSharePctBySession:p(),organicAiSharePct:p(),organicAiSharePctBySession:p(),directSharePct:p(),socialSharePct:p(),organicSharePctDisplay:l(),aiSharePctDisplay:l(),aiSharePctBySessionDisplay:l(),paidAiSharePctDisplay:l(),paidAiSharePctBySessionDisplay:l(),organicAiSharePctDisplay:l(),organicAiSharePctBySessionDisplay:l(),directSharePctDisplay:l(),socialSharePctDisplay:l(),otherSessions:p(),otherSharePct:p(),otherSharePctDisplay:l(),lastSyncedAt:l().nullable()});h({connected:R(),propertyId:l().nullable(),clientEmail:l().nullable(),authMethod:_(["service-account","oauth"]).nullable(),lastSyncedAt:l().nullable(),createdAt:l().nullable().optional(),updatedAt:l().nullable().optional()});h({synced:R(),rowCount:p().int().nonnegative(),aiReferralCount:p().int().nonnegative(),socialReferralCount:p().int().nonnegative(),days:p().int().nonnegative(),syncedAt:l(),measurement:h({acquisition:h({days:p().int().nonnegative(),status:_(["ready","error"]),rowCount:p().int().nonnegative(),error:l().optional()}),leads:h({days:p().int().nonnegative(),status:_(["ready","error","not-configured"]),rowCount:p().int().nonnegative(),attributionScope:_(["landing-page","channel"]).optional(),error:l().optional()})}),syncedComponents:b(l()).optional()});h({date:l(),source:l(),medium:l(),trafficClass:Xc,landingPage:l(),sessions:p(),users:p(),sourceDimension:m0});const SE=h({source:l(),sessions:p(),paidSessions:p(),organicSessions:p()}),jE=h({date:l(),sessions:p(),paidSessions:p(),organicSessions:p(),bySource:b(SE)});h({days:b(jE),sources:b(l()),totalSessions:p(),totalPaidSessions:p(),totalOrganicSessions:p()});h({date:l(),source:l(),medium:l(),sessions:p(),users:p(),channelGroup:l()});h({date:l(),sessions:p(),organicSessions:p(),users:p(),usersSource:_(["deduplicated","landing-page-sum"])});h({id:l(),projectId:l(),runId:l().nullable(),overallCitedRate:p(),overallMentionRate:p(),totalPairs:p().int().nonnegative(),citedPairs:p().int().nonnegative(),mentionedPairs:p().int().nonnegative(),providerBreakdown:Pe(l(),h({citedRate:p(),mentionRate:p(),cited:p().int().nonnegative(),mentioned:p().int().nonnegative(),total:p().int().nonnegative()})),createdAt:l(),status:_(["ready","no-data"]),reason:W("no-runs-yet").optional()});const P2=_(["claude","openai","gemini","zai","deepinfra"]),AE=h({id:P2,label:l(),defaultModel:l(),configured:R(),keySource:_(["config","env"]).nullable()});h({providers:b(AE).default([]),defaultProvider:P2.nullable()});const NE=_(["aero","user","compaction"]);NE.enum;const U2=128;h({key:l().min(1).max(U2),value:l().min(1)});h({key:l().min(1).max(U2)});const mo=_(["commoncrawl","bing-webmaster"]);mo.enum;const p0=_(["queued","downloading","querying","ready","failed"]);p0.enum;h({id:l(),release:l(),status:p0,phaseDetail:l().nullable().optional(),vertexPath:l().nullable().optional(),edgesPath:l().nullable().optional(),vertexSha256:l().nullable().optional(),edgesSha256:l().nullable().optional(),vertexBytes:p().int().nullable().optional(),edgesBytes:p().int().nullable().optional(),projectsProcessed:p().int().nullable().optional(),domainsDiscovered:p().int().nullable().optional(),downloadStartedAt:l().nullable().optional(),downloadFinishedAt:l().nullable().optional(),queryStartedAt:l().nullable().optional(),queryFinishedAt:l().nullable().optional(),error:l().nullable().optional(),createdAt:l(),updatedAt:l()});const _E=h({linkingDomain:l(),numHosts:p().int(),source:mo}),CE=h({projectId:l(),release:l(),targetDomain:l(),totalLinkingDomains:p().int(),totalHosts:p().int(),top10HostsShare:l(),queriedAt:l(),source:mo,excludedLinkingDomains:p().int().optional(),excludedHosts:p().int().optional()});h({source:mo,summary:CE.nullable(),total:p().int(),rows:b(_E)});h({release:l(),totalLinkingDomains:p().int(),totalHosts:p().int(),top10HostsShare:l(),queriedAt:l(),source:mo});const zE=h({source:mo,connected:R(),hasData:R(),latestRelease:l().nullable(),totalLinkingDomains:p().int(),lastSyncedAt:l().nullable()});h({projectId:l(),targetDomain:l(),sources:b(zE),anyConnected:R(),anyData:R()});h({duckdbInstalled:R(),duckdbVersion:l().nullable().optional(),duckdbSpec:l(),pluginDir:l()});h({installed:R(),version:l(),path:l(),alreadyPresent:R()});h({release:l(),vertexUrl:l(),edgesUrl:l(),vertexBytes:p().int().nullable(),edgesBytes:p().int().nullable(),lastModified:l().nullable()});h({release:l(),syncStatus:p0.nullable(),bytes:p().int(),lastUsedAt:l().nullable()});const h0=_(["positive","caution","negative","neutral"]),hi=h({label:l(),value:l(),delta:l(),tone:h0,description:l(),tooltip:l().optional(),trend:b(p()),progress:p().optional(),providerCoverage:l().optional()}),EE=hi.extend({breakdown:h({projectMentionSnapshots:p().int().nonnegative(),competitorMentionSnapshots:p().int().nonnegative(),perCompetitor:b(h({domain:l(),mentionSnapshots:p().int().nonnegative(),shareOfCompetitiveTotal:p()})),snapshotsWithAnswerText:p().int().nonnegative(),snapshotsTotal:p().int().nonnegative()})}),Mm=h({gained:p().int().nonnegative(),lost:p().int().nonnegative(),tone:h0,hasPreviousRun:R(),gainedQueries:b(l()).optional(),lostQueries:b(l()).optional()}),DE=h({hasPreviousRun:R(),comparable:R(),querySetChanged:R(),previousRunAt:l().nullable(),currentQueryCount:p().int().nonnegative(),previousQueryCount:p().int().nonnegative(),comparableQueryCount:p().int().nonnegative(),addedQueryCount:p().int().nonnegative(),removedQueryCount:p().int().nonnegative(),addedQueries:b(l()),removedQueries:b(l())}),TE=h({id:l(),projectId:l(),runId:l().nullable(),type:_(["regression","gain","opportunity","first-citation","provider-pickup","persistent-gap","competitor-gained","competitor-lost","gbp-lodging-gap","gbp-listing-discrepancy","gbp-cta-gap","gbp-description-missing","gbp-metric-drop","gbp-keyword-drop"]),severity:_(["critical","high","medium","low"]),title:l(),query:l(),provider:l(),recommendation:h({action:l(),target:l().optional(),reason:l()}).optional(),cause:h({cause:l(),competitorDomain:l().optional(),details:l().optional()}).optional(),dismissed:R(),createdAt:l()}),RE=h({id:l(),projectId:l(),runId:l().nullable(),overallCitedRate:p(),overallMentionRate:p(),totalPairs:p().int().nonnegative(),citedPairs:p().int().nonnegative(),mentionedPairs:p().int().nonnegative(),providerBreakdown:Pe(l(),h({citedRate:p(),mentionRate:p(),cited:p().int().nonnegative(),mentioned:p().int().nonnegative(),total:p().int().nonnegative()})),createdAt:l(),status:_(["ready","no-data"]),reason:W("no-runs-yet").optional()});h({project:b_,latestRun:bz,health:RE.nullable(),topInsights:b(TE),queryCounts:h({totalQueries:p().int().nonnegative(),citedQueries:p().int().nonnegative(),notCitedQueries:p().int().nonnegative(),citedRate:p(),mentionedQueries:p().int().nonnegative(),notMentionedQueries:p().int().nonnegative(),mentionRate:p()}),providers:b(h({provider:l(),citedRate:p(),cited:p().int().nonnegative(),total:p().int().nonnegative()})),transitions:h({since:l().nullable(),gained:p().int().nonnegative(),lost:p().int().nonnegative(),emerging:p().int().nonnegative()}),scores:h({mention:hi,visibility:hi,mentionShare:EE,gapQueries:hi,mentionGaps:hi,indexCoverage:hi,competitorPressure:hi,runStatus:hi}),movementSummary:Mm,citationMovement:Mm,mentionMovement:Mm,movementComparison:DE,competitors:b(h({id:l(),domain:l(),citationCount:p().int().nonnegative(),totalQueries:p().int().nonnegative(),pressureLabel:_(["None","Low","Moderate","High"]),citedQueries:b(l())})),providerScores:b(h({provider:l(),model:l().nullable(),score:p(),cited:p().int().nonnegative(),total:p().int().nonnegative(),trend:b(p()).optional()})),attentionItems:b(h({id:l(),tone:h0,title:l(),detail:l(),actionLabel:l(),href:l()})),runHistory:b(h({runId:l(),createdAt:l(),citedCount:p().int().nonnegative(),totalCount:p().int().nonnegative(),citationRate:p(),mentionedCount:p().int().nonnegative(),mentionRate:p(),status:l()})),suggestedQueries:h({rows:b(h({query:l(),impressions:p(),clicks:p(),avgPosition:p(),reason:l()})),totalCandidates:p().int().nonnegative(),skippedAlreadyTracked:p().int().nonnegative()}),dateRangeLabel:l(),contextLabel:l()});_(["snapshot","insight"]);const OE=h({kind:W("snapshot"),id:l(),runId:l(),query:l(),provider:l(),model:l().nullable(),citationState:Rn,matchedField:_(["answerText","citedDomains","citedUrls","searchQueries","query"]),snippet:l(),createdAt:l()}),qE=h({kind:W("insight"),id:l(),runId:l().nullable(),type:_(["regression","gain","opportunity","first-citation","provider-pickup","persistent-gap","competitor-gained","competitor-lost","gbp-lodging-gap","gbp-listing-discrepancy","gbp-cta-gap","gbp-description-missing","gbp-metric-drop","gbp-keyword-drop"]),severity:_(["critical","high","medium","low"]),title:l(),query:l(),provider:l(),matchedField:_(["title","query","recommendation","cause"]),snippet:l(),dismissed:R(),createdAt:l()}),BE=pt("kind",[OE,qE]);h({query:l(),totalHits:p().int().nonnegative(),truncated:R(),hits:b(BE)});const L2=_(["create","expand","refresh","add-schema"]);L2.enum;function $U(e){switch(e){case"create":return"Create";case"expand":return"Expand";case"refresh":return"Refresh";case"add-schema":return"Add schema"}}const I2=_(["gsc","competitor-evidence","both"]);I2.enum;const V2=_(["high","medium","low"]);V2.enum;const ME=_(["blog-post","comparison","listicle","how-to","guide","glossary"]);ME.enum;const $2=_(["proposed","briefed","payload-generated","draft-created","published","validated","dismissed"]);$2.enum;const f0=_(["ownable","ceded"]);f0.enum;const PE=h({url:l(),gscImpressions:p().nonnegative(),gscClicks:p().nonnegative(),gscAvgPosition:p().nonnegative().nullable(),organicSessions:p().nonnegative()}),UE=h({domain:l(),url:l(),title:l(),citationCount:p().int().nonnegative()}),LE=h({demand:p(),competitor:p(),absence:p(),gapSeverity:p()}),IE=h({actionId:l(),state:$2,lastUpdated:l()}),G2=h({targetRef:l(),query:l(),action:L2,ourBestPage:PE.nullable(),winningCompetitor:UE.nullable(),score:p(),scoreBreakdown:LE,drivers:b(l()),demandSource:I2,actionConfidence:V2,existingAction:IE.nullable(),winnabilityClass:f0,winnability:p().min(0).max(1).nullable()});h({targets:b(G2),contextMetrics:h({totalAiReferralSessions:p().int().nonnegative(),latestRunId:l(),runTimestamp:l()})});const VE=h({targetRef:l(),addressedUrl:l().nullable(),note:l().nullable(),dismissedAt:l()});h({dismissals:b(VE)});h({targetRef:l().min(1),addressedUrl:l().url().optional(),note:l().max(500).optional()});h({targetRef:l(),promptVersion:l(),provider:l(),model:l(),responseText:l(),costMillicents:p().int().nonnegative(),generatedAt:l()});h({provider:l().optional(),model:l().optional(),forceRefresh:R().optional()});const $E=h({targetQuery:l().trim().min(1),winnabilityClass:f0,angle:l().trim().min(1),whyWinnable:l().trim().min(1),schemaHookup:l().trim().min(1),controllableSurfaceRationale:l().trim().min(1)});h({targetRef:l(),promptVersion:l(),provider:l(),model:l(),brief:$E,costMillicents:p().int().nonnegative(),generatedAt:l()});const GE=h({domain:l(),competitorType:Fc,hits:p().int().nonnegative(),updatedAt:l()});h({classifications:b(GE)});const HE=h({uri:l(),title:l(),domain:l(),isOurDomain:R(),isCompetitor:R(),citationCount:p().int().nonnegative(),providers:b(ct)}),H2=h({query:l(),groundingSources:b(HE)});h({sources:b(H2),latestRunId:l()});const K2=h({query:l(),competitorDomains:b(l()),competitorCount:p().int().nonnegative(),missRate:p().min(0).max(1),lastSeenInRunId:l()});h({gaps:b(K2),latestRunId:l()});const Q2=_(["ok","warn","fail","skipped"]);Q2.enum;const g0=_(["global","project"]);g0.enum;const Z2=_(["auth","config","providers","integrations","database","schedules","agent"]);Z2.enum;const KE=h({id:l(),category:Z2,scope:g0,title:l(),status:Q2,code:l().describe('Stable machine-readable code (e.g. "google.token.refresh-failed"). Use this for filtering and remediation logic.'),summary:l(),remediation:l().nullable().optional().describe('Operator-facing next step. Null when status is "ok" or no specific remediation applies.'),details:Pe(l(),La()).optional().describe("Structured context — principal email, redirect URI, missing scopes, etc. Stable per check id."),durationMs:p().int().nonnegative().describe("How long the check took to execute.")});h({scope:g0,project:l().nullable().describe('Project name when scope is "project", null otherwise.'),generatedAt:l().describe("ISO-8601 timestamp when this doctor run started."),durationMs:p().int().nonnegative(),summary:h({total:p().int().nonnegative(),ok:p().int().nonnegative(),warn:p().int().nonnegative(),fail:p().int().nonnegative(),skipped:p().int().nonnegative()}),checks:b(KE)});const QE=h({provider:l(),citationState:Rn,cited:R(),mentioned:R(),runId:l(),runCreatedAt:l()}),ZE=h({queryId:l(),query:l(),providers:b(QE),citedCount:p().int().nonnegative(),mentionedCount:p().int().nonnegative(),totalProviders:p().int().nonnegative()}),FE=h({queryId:l(),query:l(),provider:l(),citingCompetitors:b(l()),runId:l(),runCreatedAt:l()}),YE=h({providersConfigured:p().int().nonnegative(),providersCiting:p().int().nonnegative(),providersMentioning:p().int().nonnegative(),totalQueries:p().int().nonnegative(),queriesCitedAndMentioned:p().int().nonnegative(),queriesCitedOnly:p().int().nonnegative(),queriesMentionedOnly:p().int().nonnegative(),queriesInvisible:p().int().nonnegative(),latestRunId:l().nullable(),latestRunAt:l().nullable()});h({summary:YE,byQuery:b(ZE),competitorGaps:b(FE),status:_(["ready","no-data"]),reason:_(["no-runs-yet","no-queries"]).optional()});const GU=[7,14,30,90],HU=30;Ge([W(7),W(14),W(30),W(90)]).describe("Report window in days (7, 14, 30, or 90). Defaults to 30 when omitted.");const XE=_(["prompt","request-param","browser-geo","ignored"]),JE=h({label:l(),city:l(),region:l(),country:l(),otherConfiguredLabels:b(l())}),WE=h({provider:l(),treatment:XE,description:l()}),eD=h({generatedAt:l(),project:h({id:l(),name:l(),displayName:l(),canonicalDomain:l(),country:l(),language:l()}),location:JE.nullable(),providerLocationHandling:b(WE),periodStart:l().nullable(),periodEnd:l().nullable(),periodDays:p().int().positive()}),tD=h({citationRate:p(),citedQueryCount:p(),totalQueryCount:p(),mentionRate:p(),mentionedQueryCount:p(),trend:_(["up","down","flat","unknown"]),queryCount:p(),competitorCount:p(),providerCount:p(),gsc:h({clicks:p(),impressions:p(),ctr:p(),avgPosition:p(),periodStart:l(),periodEnd:l()}).nullable(),ga:h({sessions:p(),users:p(),periodStart:l(),periodEnd:l()}).nullable(),findings:b(h({title:l(),detail:l(),tone:_(["positive","caution","negative","neutral"])}))}),aD=h({citationState:_(["cited","not-cited","pending"]),answerMentioned:R().nullable(),model:l().nullable()}),nD=h({queries:b(l()),providers:b(l()),matrix:b(b(aD.nullable())),providerRates:b(h({provider:l(),citedCount:p(),mentionedCount:p(),totalCount:p(),citationRate:p(),mentionRate:p()}))}),iD=h({domain:l(),citationCount:p(),totalCount:p(),pressureLabel:_(["High","Moderate","Low","None"]),citedQueries:b(l()),sharePct:p(),theirCitedPages:b(h({url:l(),citedFor:b(l())}))}),sD=h({projectCitationCount:p(),competitors:b(iD)}),oD=h({domain:l(),mentionCount:p(),totalCount:p(),pressureLabel:_(["High","Moderate","Low","None"]),mentionedQueries:b(l()),sharePct:p()}),rD=h({projectMentionCount:p(),totalAnswerSnapshots:p(),competitors:b(oD)}),lD=h({category:l(),label:l(),count:p(),sharePct:p()}),cD=h({categories:b(lD),topDomains:b(h({domain:l(),count:p(),isCompetitor:R()}))}),uD=h({query:l(),clicks:p(),impressions:p(),ctr:p(),avgPosition:p(),category:_(["brand","lead-gen","industry","other"])}),dD=h({periodStart:l(),periodEnd:l(),totalClicks:p(),totalImpressions:p(),ctr:p(),avgPosition:p(),topQueries:b(uD),categoryBreakdown:b(h({category:_(["brand","lead-gen","industry","other"]),clicks:p(),impressions:p(),sharePct:p()})),trend:b(h({date:l(),clicks:p(),impressions:p()})),trackedButNoGsc:b(l()),gscButNotTracked:b(l())}),mD=h({totalSessions:p(),totalUsers:p(),totalOrganicSessions:p(),periodStart:l(),periodEnd:l(),topLandingPages:b(h({page:l(),sessions:p(),users:p(),organicSessions:p()})),channelBreakdown:b(h({channel:l(),sessions:p(),sharePct:p()}))}),pD=h({totalSessions:p(),organicSessions:p(),paidSessions:p(),channels:b(h({channelGroup:l(),sessions:p(),sharePct:p()})),topCampaigns:b(h({source:l(),medium:l(),sessions:p()}))}),hD=h({totalSessions:p(),paidSessions:p(),organicSessions:p(),totalUsers:p().optional(),paidUsers:p().optional(),organicUsers:p().optional(),bySource:b(h({source:l(),sessions:p(),users:p().optional(),paidSessions:p(),organicSessions:p(),sharePct:p()})),trend:b(h({date:l(),sessions:p()})),topLandingPages:b(h({page:l(),sessions:p(),users:p().optional()}))}),fD=h({windowStart:l(),windowEnd:l(),hasData:R(),verifiedCrawlerHits:h({current:p(),prior:p(),deltaPct:p().nullable()}),unverifiedCrawlerHits:h({current:p(),prior:p(),deltaPct:p().nullable()}),aiUserFetchHits:h({current:p(),prior:p(),deltaPct:p().nullable()}),referralArrivals:h({current:p(),prior:p(),deltaPct:p().nullable()}),referralArrivalsByClass:h({paid:h({current:p(),prior:p(),deltaPct:p().nullable()}),organic:h({current:p(),prior:p(),deltaPct:p().nullable()}),unclassified:h({current:p(),prior:p(),deltaPct:p().nullable()})}),referralArrivalsClassSummary:l(),byOperator:b(h({operator:l(),verifiedHits:p(),unverifiedHits:p(),userFetchHits:p(),referralArrivals:p(),deltaPct:p().nullable()})),topCrawledPaths:b(h({path:l(),verifiedHits:p(),distinctOperators:p()})),referralProducts:b(h({product:l(),arrivals:p(),distinctLandingPaths:p()})),dailyTrend:b(h({date:l(),verifiedCrawlerHits:p(),userFetchHits:p(),referralArrivals:p()})),topReferralLandingPaths:b(h({path:l(),arrivals:p(),distinctProducts:p()}))}),gD=h({provider:_(["google","bing"]).nullable(),total:p(),indexed:p(),notIndexed:p(),deindexed:p(),unknown:p(),indexedPct:p()}),yD=h({runId:l(),date:l(),citationRate:p(),citedQueryCount:p(),totalQueryCount:p(),mentionRate:p(),mentionedQueryCount:p(),providerRates:b(h({provider:l(),citationRate:p(),mentionRate:p()}))}),fp=h({id:l(),type:_(["regression","gain","opportunity"]),severity:_(["critical","high","medium","low"]),title:l(),query:l(),provider:l(),recommendation:l().nullable(),createdAt:l(),instanceCount:p()}),bD=h({horizon:_(["immediate","short-term","medium-term"]),title:l(),rationale:l()}),Gs=h({current:p(),prior:p(),deltaAbs:p(),deltaPct:p().nullable(),direction:_(["up","down","flat"]),window:p().optional()}),vD=h({provider:l(),current:p(),prior:p(),deltaAbs:p(),direction:_(["up","down","flat"])}),xD=h({enoughHistory:R(),headline:l(),citationRate:Gs.nullable(),mentionRate:Gs.nullable(),citedQueryCount:Gs.nullable(),mentionedQueryCount:Gs.nullable(),gscClicksDelta:Gs.nullable(),aiReferralsDelta:Gs.nullable(),comparisonWindowDays:p().int().positive(),providerMovements:b(vD),wins:b(fp),regressions:b(fp)});_(["agency","client"]);const kD=_(["agency","client","both"]),wD=_(["immediate","short-term","medium-term"]),SD=_(["high","medium","low"]);_(["positive","caution","negative","neutral"]);const jD=_(["content","competitors","provider","search-demand","indexing","location","monitoring"]),y0=h({audience:kD,priority:p(),horizon:wD,category:jD,title:l(),action:l(),why:b(l()),evidence:b(l()),successMetric:l(),confidence:SD,targetRef:l().optional()}),AD=h({headline:l(),overview:l(),actionItems:b(y0),confidenceNotes:b(l())}),ND=h({title:l(),detail:l(),severity:_(["positive","caution","negative","neutral"]),evidence:b(l())}),_D=h({priorities:b(y0),diagnostics:b(ND)});function KU(e){return e.horizon==="immediate"?"negative":e.confidence==="high"?"caution":e.confidence==="low"?"neutral":"caution"}function QU(e){switch(e){case"critical":return"Critical";case"high":return"High";case"medium":return"Medium";case"low":return"Low"}}function ZU(e){switch(e){case"immediate":return"Immediate";case"short-term":return"Short term";case"medium-term":return"Medium term"}}function FU(e){switch(e){case"content":return"Content";case"competitors":return"Competitors";case"provider":return"Provider";case"search-demand":return"Search demand";case"indexing":return"Indexing";case"location":return"Location";case"monitoring":return"Monitoring"}}function YU(e){switch(e){case"high":return"High";case"medium":return"Medium";case"low":return"Low"}}h({meta:eD,executiveSummary:tD,citationScorecard:nD,competitorLandscape:sD,mentionLandscape:rD,aiSourceOrigin:cD,gsc:dD.nullable(),ga:mD.nullable(),socialReferrals:pD.nullable(),aiReferrals:hD.nullable(),serverActivity:fD.nullable(),indexingHealth:gD.nullable(),citationsTrend:b(yD),whatsChanged:xD,insights:b(fp),recommendedNextSteps:b(bD),actionPlan:b(y0),clientSummary:AD,agencyDiagnostics:_D,contentOpportunities:b(G2),contentGaps:b(K2),groundingSources:b(H2)});const CD=Ge([W(60),W(90)]),zD=_(["earliest","middle","prior","latest"]),Hs=h({clicks:p().int().nonnegative(),impressions:p().int().nonnegative()}),F2=h({name:zD,startDate:l(),endDate:l()}),ED=F2.extend({totals:Hs}),DD=F2.extend({organicSessions:p().int().nonnegative()}),Pm=h({startDate:l(),endDate:l(),observedDays:p().int().nonnegative()}),dc=h({verified:p().int().nonnegative(),claimedUnverified:p().int().nonnegative(),unknownAiLike:p().int().nonnegative()}),Iy=h({total:p().int().nonnegative(),paid:p().int().nonnegative(),organic:p().int().nonnegative(),unknown:p().int().nonnegative()});h({contractVersion:W("organic-evidence/v1"),periodDays:CD,asOfDate:l().nullable(),coverage:h({gsc:R(),ga4:R(),server:R(),visibility:R()}),sourceCoverage:h({gsc:Pm.nullable(),ga4:Pm.nullable(),server:Pm.nullable(),visibility:h({completedAt:l(),ageDays:p().nonnegative()}).nullable()}),gsc:h({propertyTotals:Hs,namedBrand:Hs,namedNonBrand:Hs,suppressedOrUnreportedResidual:Hs,cohorts:b(ED)}).nullable(),ga4:h({organicSessions:p().int().nonnegative(),cohorts:b(DD)}).nullable(),gaAiReferrals:h({paidSessions:p().int().nonnegative(),organicSessions:p().int().nonnegative()}).nullable(),server:h({crawlerHits:dc,userFetchHits:dc,referralSessions:Iy}).nullable(),visibility:h({runId:l(),completedAt:l(),ageDays:p().nonnegative(),answerPairs:p().int().nonnegative(),mentionedPairs:p().int().nonnegative(),citedPairs:p().int().nonnegative()}).nullable(),measurement:TN,pages:b(h({path:l(),gsc:Hs,ga4OrganicSessions:p().int().nonnegative(),server:h({crawlerHits:dc,userFetchHits:dc,referralSessions:Iy})})),findings:b(h({tone:_(["positive","caution","neutral"]),title:l(),detail:l()})),limitations:b(h({code:l(),detail:l()}))});const TD=_(["claude","codex"]);TD.enum;const RD=_(["claude","codex","all"]);RD.enum;const Y2=h({content:p().int().nonnegative(),sitemap:p().int().nonnegative(),robots:p().int().nonnegative(),asset:p().int().nonnegative(),other:p().int().nonnegative()}),OD=_(["content","sitemap","robots","asset","other"]),b0=_(["cloud-run","wordpress","cloudflare","vercel","generic-log"]);b0.enum;const qD=_(["raw-request-events","aggregate-request-metrics","request-url","status-code","user-agent","remote-ip","referer","cursor-pull"]);qD.enum;const BD=_(["raw-request","aggregate-bucket"]),MD=BD.enum,PD=_(["observed","provider-aggregated","inferred"]),UD=PD.enum,LD=h({type:l().nullable(),labels:Pe(l(),l())}),ID=h({sourceType:b0,evidenceKind:W(MD["raw-request"]),confidence:W(UD.observed),eventId:l().min(1),observedAt:l().min(1),method:l().nullable(),requestUrl:l().nullable(),host:l().nullable(),path:l().min(1),queryString:l().nullable(),status:p().int().nullable(),userAgent:l().nullable(),remoteIp:l().nullable(),referer:l().nullable(),latencyMs:p().nullable(),requestSizeBytes:p().int().nullable(),responseSizeBytes:p().int().nullable(),providerResource:LD,providerLabels:Pe(l(),l())});h({events:b(ID),rawEntryCount:p().int().nonnegative(),skippedEntryCount:p().int().nonnegative(),nextPageToken:l().optional(),filter:l()});const X2=_(["connected","paused","error","archived"]),XU=X2.enum,J2=_(["oauth","service-account"]);J2.enum;const VD=_(["verified","claimed_unverified","unknown_ai_like"]),JU=VD.enum;h({gcpProjectId:l().min(1),serviceName:l().nullable().optional(),location:l().nullable().optional(),authMode:J2});h({baseUrl:l().url(),username:l().min(1)});const v0=_(["production","preview"]);v0.enum;h({projectId:l().min(1),teamId:l().min(1),environment:v0});const W2=h({id:l(),projectId:l(),sourceType:b0,displayName:l(),status:X2,lastSyncedAt:l().nullable(),lastCursor:l().nullable(),lastError:l().nullable(),skippedThroughAt:l().nullable(),archivedAt:l().nullable(),config:Pe(l(),La()),createdAt:l(),updatedAt:l()});h({gcpProjectId:l().min(1),serviceName:l().min(1).optional(),location:l().min(1).optional(),displayName:l().min(1).optional(),keyJson:l().optional()});h({baseUrl:l().url(),username:l().min(1),applicationPassword:l().min(1),displayName:l().min(1).optional()});h({projectId:l().min(1),teamId:l().min(1),token:l().min(1),environment:v0.optional(),displayName:l().min(1).optional()});h({sourceId:l(),runId:l(),syncedAt:l(),pulledEvents:p().int().nonnegative(),selfTrafficExcluded:p().int().nonnegative(),crawlerHits:p().int().nonnegative(),aiUserFetchHits:p().int().nonnegative(),aiReferralHits:p().int().nonnegative(),unknownHits:p().int().nonnegative(),crawlerBucketRows:p().int().nonnegative(),aiUserFetchBucketRows:p().int().nonnegative(),aiReferralBucketRows:p().int().nonnegative(),sampleRows:p().int().nonnegative(),windowStart:l(),windowEnd:l()});h({days:p().int().positive().optional()});h({advanceToNow:W(!0)});h({sourceId:l(),runId:l(),status:Si,windowStart:l(),windowEnd:l(),daysRequested:p().int().positive(),daysApplied:p().int().positive()});const $D=h({crawlerHits:p().int().nonnegative(),crawlerContentHits:p().int().nonnegative(),crawlerInfraHits:p().int().nonnegative(),crawlerSegments:Y2,aiUserFetchHits:p().int().nonnegative(),aiReferralHits:p().int().nonnegative(),sampleCount:p().int().nonnegative()});h({sources:b(W2)});const GD=W2.extend({totals24h:$D,latestRun:h({runId:l(),status:Si,startedAt:l().nullable(),finishedAt:l().nullable(),error:l().nullable()}).nullable()});h({sources:b(GD)});const HD=_(["crawler","ai-user-fetch","ai-referral"]),x0=HD.enum,ex=_(["hour","day"]);ex.enum;const KD=h({bucket:l(),crawlerHits:p().int().nonnegative(),aiUserFetchHits:p().int().nonnegative(),aiReferralHits:p().int().nonnegative()}),QD=h({kind:W(x0.crawler),sourceId:l(),tsHour:l(),botId:l(),operator:l(),verificationStatus:l(),pathNormalized:l(),pathClass:OD,status:p().int(),hits:p().int().nonnegative()}),ZD=h({kind:W(x0["ai-user-fetch"]),sourceId:l(),tsHour:l(),botId:l(),operator:l(),verificationStatus:l(),pathNormalized:l(),status:p().int(),hits:p().int().nonnegative()}),FD=h({kind:W(x0["ai-referral"]),sourceId:l(),tsHour:l(),product:l(),operator:l(),sourceDomain:l(),evidenceType:l(),landingPathNormalized:l(),status:p().int(),hits:p().int().nonnegative(),paidHits:p().int().nonnegative(),organicHits:p().int().nonnegative(),unknownHits:p().int().nonnegative()}),YD=pt("kind",[QD,ZD,FD]);h({windowStart:l(),windowEnd:l(),series:h({granularity:ex,points:b(KD)}),totals:h({crawlerHits:p().int().nonnegative(),crawlerContentHits:p().int().nonnegative(),crawlerInfraHits:p().int().nonnegative(),crawlerSegments:Y2,aiUserFetchHits:p().int().nonnegative(),aiReferralHits:p().int().nonnegative(),aiReferralPaidHits:p().int().nonnegative(),aiReferralOrganicHits:p().int().nonnegative(),aiReferralUnknownHits:p().int().nonnegative()}),eventRows:h({total:p().int().nonnegative(),returned:p().int().nonnegative(),truncated:R()}),events:b(YD)});const tx=_(["queued","running","completed","partial","failed"]),WU=tx.enum,ax=_(["queued","running","completed","failed"]),eL=ax.enum;h({queries:b(l().trim().min(1).max(4e3)).min(1).max(50),provider:l().trim().min(1).optional(),model:l().trim().min(1).max(200).optional(),location:ra.nullable().optional(),idempotencyKey:l().trim().min(1).max(128).optional()}).superRefine((e,n)=>{e.model&&!e.provider&&n.addIssue({code:mt.custom,path:["provider"],message:"provider is required when model is supplied"})});const nx=h({id:l(),projectId:l(),status:tx,provider:l(),requestedModel:l().nullable(),resolvedModel:l(),location:ra.nullable(),totalQueries:p().int(),completedQueries:p().int(),failedQueries:p().int(),error:l().nullable(),startedAt:l().nullable(),finishedAt:l().nullable(),createdAt:l()}),XD=h({id:l(),position:p().int(),query:l(),status:ax,requestedModel:l().nullable(),resolvedModel:l(),servedModel:l().nullable(),answerText:l().nullable(),groundingSources:b(Zc),citedDomains:b(l()),searchQueries:b(l()),namedCompetitors:b(l()).default([]),citedCompetitorDomains:b(l()).default([]),answerMentioned:R().nullable(),citationState:Rn.nullable(),error:l().nullable(),startedAt:l().nullable(),finishedAt:l().nullable(),createdAt:l()});nx.extend({queries:b(XD)});h({runs:b(nx)});h({apiKey:l().min(1)});h({id:l(),name:l(),status:l(),currencyCode:l().nullable(),timezone:l().nullable(),url:l().nullable(),reviewStatus:l().nullable(),integrityReviewStatus:l().nullable(),integrityDecision:l().nullable()});h({q:l().trim().min(1).max(200),limit:p().int().min(1).max(100).default(20)});const JD=h({id:l(),type:l(),canonicalName:l(),countryCode:l(),name:l(),regionCode:l().nullable()});h({count:p().int().nonnegative(),query:l(),results:b(JD)});const WD=h({id:l(),clientType:l().optional(),name:l().optional(),pixelId:l().optional()});h({pixels:b(WD)});const eT=h({id:l(),name:l().optional()}),tT=h({id:l(),name:l().optional(),eventType:l().optional(),customEventName:l().nullable().optional(),attributionWindowDays:p().int().positive().optional(),adAccountId:l().optional(),sourceIds:b(l()).optional(),sources:b(eT).optional(),archived:R().optional(),version:p().int().nonnegative().optional()});h({eventSettings:b(tT)});h({connected:R(),adAccountId:l().nullable().optional(),displayName:l().nullable().optional(),currencyCode:l().nullable().optional(),timezone:l().nullable().optional(),status:l().nullable().optional(),reviewStatus:l().nullable().optional(),integrityReviewStatus:l().nullable().optional(),integrityDecision:l().nullable().optional(),lastSyncedAt:l().nullable().optional(),conversionTrackingConfigured:R().optional()});h({disconnected:R()});h({runId:l(),status:l()});const aT=h({type:l().nullable().optional(),title:l().nullable().optional(),body:l().nullable().optional(),targetUrl:l().nullable().optional(),fileId:l().nullable().optional()}),Lr=_(["impressions","clicks"]),nT=Lr.enum,Ir=_(["impression","click"]);Ir.enum;const iT=h({id:l(),adGroupId:l(),name:l(),status:l(),reviewStatus:l().nullable().optional(),creative:aT.nullable().optional(),upstreamUpdatedAt:p().int().nullable().optional(),syncedAt:l().optional()}),sT=h({id:l(),campaignId:l(),name:l(),description:l().nullable().optional(),status:l(),billingEventType:Ge([Ir,me()]).optional(),maxBidMicros:p().int().nullable().optional(),contextHints:b(l()).default([]),ads:b(iT).default([]),upstreamUpdatedAt:p().int().nullable().optional(),syncedAt:l().optional()}),oT=h({id:l(),name:l(),description:l().nullable().optional(),status:l(),startTime:p().int().nullable().optional(),endTime:p().int().nullable().optional(),biddingType:Ge([Lr,me()]).optional(),dailySpendLimitMicros:p().int().nullable().optional(),lifetimeSpendLimitMicros:p().int().nullable().optional(),conversionEventSettingIds:b(l()).default([]),locationIds:b(l()).optional(),adGroups:b(sT).default([]),upstreamUpdatedAt:p().int().nullable().optional(),syncedAt:l().optional()});h({campaigns:b(oT)});const ix=_(["campaign","ad_group"]);ix.enum;const rT=h({level:ix,entityId:l(),date:l(),impressions:p().int(),clicks:p().int(),spendMicros:p().int(),conversions:p().int(),ctr:p().nullable(),cpcMicros:p().int().nullable(),inProgress:R()});h({rows:b(rT),currencyCode:l().nullable().optional()});const sx=h({from:l().nullable(),to:l().nullable(),inProgressDate:l().nullable()}),ox=h({impressions:p().int(),clicks:p().int(),spendMicros:p().int(),conversions:p().int(),ctr:p().nullable(),cpcMicros:p().int().nullable()});h({connected:R(),displayName:l().nullable().optional(),currencyCode:l().nullable().optional(),lastSyncedAt:l().nullable().optional(),campaignCount:p().int(),adGroupCount:p().int(),adCount:p().int(),window:sx,totals:ox});const rx=_(["unavailable","partial","complete"]);rx.enum;const lx=_(["no_ads_connection","connection_not_synced","no_ads_sync","entity_rows_missing_sync_run_id","entity_rows_span_multiple_sync_runs","source_sync_missing","source_sync_not_ads_sync","source_sync_not_completed"]);lx.enum;const cx=_(["unavailable","reported"]);cx.enum;const lT={storedSnapshot:"stored_ads_snapshot"},ux=_(["unavailable","partial_snapshot","metrics_unavailable","observed_activity","no_observed_activity"]);ux.enum;const cT=h({id:l(),name:l(),status:l(),reviewStatus:l().nullable()}),uT=h({id:l(),name:l(),status:l(),billingEventType:Ge([Ir,me()]),maxBidMicros:p().int().nullable(),contextHints:b(l()),ads:b(cT)}),dT=h({id:l(),name:l(),status:l(),biddingType:Ge([Lr,me()]),dailySpendLimitMicros:p().int().nullable(),lifetimeSpendLimitMicros:p().int().nullable(),conversionEventSettingIds:b(l()),adGroups:b(uT)});h({snapshot:h({status:rx,issue:Ge([lx,me()]),lastSyncedAt:l().nullable(),campaignCount:p().int().nonnegative(),adGroupCount:p().int().nonnegative(),adCount:p().int().nonnegative(),sourceSync:h({runId:l(),status:Si}).nullable()}),historicalCampaignRollups:h({status:cx,window:sx,totals:ox.nullable()}),storedConfiguration:h({basis:W(lT.storedSnapshot),connection:h({status:l().nullable(),reviewStatus:l().nullable(),integrityReviewStatus:l().nullable(),integrityDecision:l().nullable(),conversionTrackingConfigured:R()}).nullable(),campaigns:b(dT)}),assessment:h({state:ux})});const qn=l().min(8).max(128).regex(/^[\w.:-]+$/,"operationKey may contain letters, numbers, dot, underscore, colon, and hyphen"),gt=l().min(1).max(200),as=l().min(3).max(1e3).refine(e=>e.trim().length>0),io=p().int().min(946684800).max(4102444800),so=p().int().positive().max(Number.MAX_SAFE_INTEGER),k0=l().regex(/^[a-f0-9]{64}$/),dx=b(gt).max(100).refine(e=>new Set(e).size===e.length,"conversionEventSettingIds must be unique"),mx=l().url().refine(e=>new URL(e).protocol==="https:",{message:"URL must use https"}),px=_(["image_upload","campaign_create","campaign_update","campaign_pause","campaign_tree_activate","ad_group_create","ad_group_update","ad_group_pause","ad_create","ad_update","ad_pause"]);px.enum;const hx=_(["pending","reconciling","succeeded","failed","unknown"]),Xs=hx.enum,fx=_(["known_entity","create_fingerprint","manual_only"]);fx.enum;const gx=_([Xs.pending,Xs.unknown,Xs.reconciling]);gx.enum;const yx=_(["active","paused","archived"]);yx.enum;const bx=_(["file","campaign","ad_group","ad"]);bx.enum;const vx=_(["campaign","ad_group","ad"]);vx.enum;const w0=h({id:gt,expectedUpdatedAt:p().int().nonnegative()}).strict(),mT=w0,Dc=100,pT=w0.extend({ads:b(mT).min(1).max(Dc-1)}).strict(),hT=w0.extend({adGroups:b(pT).min(1).max(Dc-1)}).strict();function fT(e,n){return e<n?-1:e>n?1:0}function Vy(e,n,s){for(let r=1;r<e.length;r+=1)if(fT(e[r-1].id,e[r].id)>=0){s.addIssue({code:"custom",path:n,message:"Activation manifest entities must be uniquely sorted by id"});return}}const xx=h({campaign:hT}).strict().superRefine((e,n)=>{1+e.campaign.adGroups.reduce((c,f)=>c+1+f.ads.length,0)>Dc&&n.addIssue({code:"custom",path:["campaign"],message:`Activation manifests may contain at most ${Dc} entities`}),Vy(e.campaign.adGroups,["campaign","adGroups"],n);const r=new Set;for(let c=0;c<e.campaign.adGroups.length;c+=1){const f=e.campaign.adGroups[c];Vy(f.ads,["campaign","adGroups",c,"ads"],n);for(let g=0;g<f.ads.length;g+=1){const y=f.ads[g];r.has(y.id)&&n.addIssue({code:"custom",path:["campaign","adGroups",c,"ads",g,"id"],message:"An ad may appear only once in an activation manifest"}),r.add(y.id)}}}),kx=k0,gT=_(["approved","executing","consumed","revoked","expired","unknown"]),Tn=gT.enum,yT=_(["pending","executing","active","failed","rollback_executing","rolled_back","rollback_failed","unknown"]),ji=yT.enum,bT=h({name:as.optional(),description:l().max(4e3).nullable().optional(),status:yx.optional(),startTime:io.nullable().optional(),endTime:io.nullable().optional(),lifetimeSpendLimitMicros:so.min(1e6).optional(),locationIds:b(gt).max(100).optional(),biddingType:Lr.optional(),conversionEventSettingIds:dx.optional(),campaignId:gt.optional(),contextHints:b(l().min(1).max(1e3)).max(100).optional(),maxBidMicros:so.max(1e8).optional(),billingEventType:Ir.optional(),adGroupId:gt.optional(),creativeFingerprint:k0.optional()}).strict();h({operationKey:qn,imageUrl:mx});h({operationKey:qn,name:as,description:l().max(4e3).optional(),startTime:io.optional(),endTime:io.optional(),lifetimeSpendLimitMicros:so.min(1e6),locationIds:b(gt).min(1).max(100),biddingType:Lr.optional(),conversionEventSettingIds:dx.optional()}).superRefine((e,n)=>{e.startTime!==void 0&&e.endTime!==void 0&&e.endTime<=e.startTime&&n.addIssue({code:"custom",path:["endTime"],message:"endTime must be after startTime"}),e.biddingType===nT.clicks&&(e.conversionEventSettingIds===void 0||e.conversionEventSettingIds.length===0)&&n.addIssue({code:"custom",path:["conversionEventSettingIds"],message:"conversionEventSettingIds must be non-empty when biddingType is clicks"})});h({operationKey:qn,campaignId:gt,name:as,description:l().max(4e3).optional(),contextHints:b(l().min(1).max(1e3)).min(1).max(100),maxBidMicros:so.max(1e8),billingEventType:Ir.optional()});const wx=h({title:l().min(3).max(50),body:l().min(1).max(100),targetUrl:mx,fileId:gt});h({operationKey:qn,adGroupId:gt,name:as,creative:wx});function S0(e){return Object.keys(e).some(n=>n!=="operationKey"&&n!=="expectedUpdatedAt")}h({operationKey:qn,expectedUpdatedAt:p().int().nonnegative(),name:as.optional(),description:l().max(4e3).nullable().optional(),startTime:io.nullable().optional(),endTime:io.nullable().optional(),lifetimeSpendLimitMicros:so.min(1e6).optional(),locationIds:b(gt).min(1).max(100).optional()}).refine(S0,{message:"At least one campaign field must be updated"});h({operationKey:qn,expectedUpdatedAt:p().int().nonnegative(),name:as.optional(),description:l().max(4e3).nullable().optional(),contextHints:b(l().min(1).max(1e3)).min(1).max(100).optional(),maxBidMicros:so.max(1e8).optional()}).refine(S0,{message:"At least one ad group field must be updated"});h({operationKey:qn,expectedUpdatedAt:p().int().nonnegative(),name:as.optional(),creative:wx.optional()}).refine(S0,{message:"At least one ad field must be updated"});h({operationKey:qn});const Jc=h({id:l(),adAccountId:l().nullable(),operationKey:l(),kind:px,state:hx,entityType:Ge([bx,me()]),entityId:l().nullable(),upstreamUpdatedAt:p().int().nullable(),errorCode:l().nullable(),errorMessage:l().nullable(),reconcileStrategy:Ge([fx,me()]),reconcileParentId:gt.nullable(),reconcileFingerprint:k0.nullable(),reconcileFields:bT.nullable(),reconcileAttempts:p().int().nonnegative(),lastReconciledAt:l().nullable(),createdAt:l(),updatedAt:l()});h({operation:Jc,replayed:R()});const lt=Ov({offset:!0}),po={id:gt,projectId:gt,adAccountId:gt,manifestHash:kx,manifest:xx,executorApiKeyId:gt,approverApiKeyId:gt,expiresAt:lt,approvedAt:lt,createdAt:lt,updatedAt:lt,revocationRequestedAt:lt.nullable()},vT=h({...po,state:W(Tn.approved),operationId:me(),executionStartedAt:me(),consumedAt:me(),revokedAt:me(),expiredAt:me()}).strict(),xT=h({...po,state:W(Tn.executing),operationId:gt,executionStartedAt:lt,consumedAt:me(),revokedAt:me(),expiredAt:me()}).strict(),kT=h({...po,state:W(Tn.consumed),operationId:gt,executionStartedAt:lt,consumedAt:lt,revokedAt:me(),expiredAt:me()}).strict(),wT=h({...po,state:W(Tn.revoked),operationId:me(),executionStartedAt:me(),consumedAt:me(),revokedAt:lt,expiredAt:me()}).strict(),ST=h({...po,state:W(Tn.expired),operationId:me(),executionStartedAt:me(),consumedAt:me(),revokedAt:me(),expiredAt:lt}).strict(),jT=h({...po,state:W(Tn.unknown),operationId:gt,executionStartedAt:lt,consumedAt:me(),revokedAt:me(),expiredAt:me()}).strict(),Sx=pt("state",[vT,xT,kT,wT,ST,jT]).superRefine((e,n)=>{e.executorApiKeyId===e.approverApiKeyId&&n.addIssue({code:"custom",path:["executorApiKeyId"],message:"The activation executor must use a different API key from the approver"}),e.revocationRequestedAt!==null&&e.state!==Tn.executing&&e.state!==Tn.unknown&&e.state!==Tn.consumed&&n.addIssue({code:"custom",path:["revocationRequestedAt"],message:"Only an executing, cancelled, or unresolved activation can carry a cancellation request"})}),Ai={id:gt,operationId:gt,ordinal:p().int().nonnegative(),entityType:vx,entityId:gt,expectedUpdatedAt:p().int().nonnegative(),createdAt:lt,updatedAt:lt},Vr={errorCode:me(),errorMessage:me()},j0={errorCode:l().min(1).max(100),errorMessage:l().min(1).max(500),remediation:l().min(1).max(500)},AT=h({...Ai,...Vr,state:W(ji.pending),providerUpdatedAt:me(),remediation:me(),startedAt:me(),finishedAt:me()}).strict(),NT=h({...Ai,...Vr,state:W(ji.executing),providerUpdatedAt:me(),remediation:me(),startedAt:lt,finishedAt:me()}).strict(),_T=h({...Ai,...Vr,state:W(ji.active),providerUpdatedAt:p().int().nonnegative(),remediation:me(),startedAt:lt,finishedAt:lt}).strict(),CT=h({...Ai,...j0,state:W(ji.failed),providerUpdatedAt:Ge([p().int().nonnegative(),me()]),startedAt:lt,finishedAt:lt}).strict(),zT=h({...Ai,...Vr,state:W(ji.rollback_executing),providerUpdatedAt:p().int().nonnegative(),remediation:l().min(1).max(500),startedAt:lt,finishedAt:me()}).strict(),ET=h({...Ai,...Vr,state:W(ji.rolled_back),providerUpdatedAt:p().int().nonnegative(),remediation:l().min(1).max(500),startedAt:lt,finishedAt:lt}).strict(),DT=h({...Ai,...j0,state:W(ji.rollback_failed),providerUpdatedAt:p().int().nonnegative(),startedAt:lt,finishedAt:lt}).strict(),TT=h({...Ai,...j0,state:W(ji.unknown),providerUpdatedAt:Ge([p().int().nonnegative(),me()]),startedAt:lt,finishedAt:lt}).strict(),RT=pt("state",[AT,NT,_T,CT,zT,ET,DT,TT]),gp={exact:"exact",refreshSemanticallyUnchanged:"refresh_semantically_unchanged"},OT=_([gp.exact,gp.refreshSemanticallyUnchanged]);h({manifest:xx,executorApiKeyId:gt,expiresAt:lt,versionPolicy:OT.default(gp.exact)}).strict();h({grant:Sx}).strict();h({}).strict();h({operationKey:qn,grantId:gt,manifestHash:kx}).strict();h({grant:Sx,operation:Jc,steps:b(RT)}).strict();const qT=[Xs.pending,Xs.unknown,Xs.reconciling];function BT(e){if(e===void 0||e==="")return qT;if(Array.isArray(e)){const n=[];for(const s of e)typeof s=="string"?n.push(...s.split(",")):n.push(s);return n}return typeof e=="string"?e.split(",").filter(Boolean):e}h({state:kN(BT,b(gx).min(1).max(3).refine(e=>new Set(e).size===e.length,"state values must be unique")),limit:Iv().int().min(1).max(200).default(100),cursor:l().min(1).max(1e3).optional()});h({operations:b(Jc),count:p().int().nonnegative(),nextCursor:l().nullable()});h({}).strict();h({operation:Jc,resolved:R()});h({campaignId:l().min(1).max(200).optional(),lookbackDays:Iv().int().min(1).max(30).default(7)});const jx=_(["campaign","ad_group","ad"]);jx.enum;const Ax=_(["both","live-only","stored-only"]);Ax.enum;const MT=W("live-provider-read"),PT=h({date:l().nullable(),startTime:p().nullable(),endTime:p().nullable(),impressions:p().nullable(),clicks:p().nullable(),spend:p().nullable(),conversions:p().nullable(),ctr:p().nullable(),cpc:p().nullable(),cpm:p().nullable()}),$y=h({impressions:p().int(),clicks:p().int(),spendMicros:p().int(),conversions:p().int()}),UT=h({date:l(),live:$y.nullable(),stored:$y.nullable(),drifted:R()}),LT=h({field:l(),live:l().nullable(),stored:l().nullable()}),IT=h({name:l().nullable(),status:l(),reviewStatus:l().nullable(),mode:l().nullable(),updatedAt:p().nullable()}),VT=h({name:l(),status:l(),reviewStatus:l().nullable(),upstreamUpdatedAt:p().nullable(),syncedAt:l()}),$T=h({entityType:jx,id:l(),parentId:l().nullable(),presence:Ax,live:IT.nullable(),stored:VT.nullable(),fieldDeltas:b(LT),liveMetrics:b(PT).nullable(),metricDeltas:b(UT).nullable(),drifted:R()}),GT=h({surface:l(),entityId:l().nullable(),upstreamStatus:p().int().nullable()});h({basis:MT,fetchedAt:l(),adAccountId:l(),storedSnapshotSyncedAt:l().nullable(),metricsWindow:h({lookbackDays:p().int().positive()}),bounds:h({maxCampaigns:p().int().positive(),maxAdGroupsPerCampaign:p().int().positive(),maxAdsPerAdGroup:p().int().positive(),maxReaderCalls:p().int().positive(),readerCalls:p().int().nonnegative(),maxPagesPerReaderCall:p().int().positive(),maxUpstreamHttpRequests:p().int().positive(),truncated:R()}),entities:b($T),drift:h({entitiesCompared:p().int().nonnegative(),driftedEntities:p().int().nonnegative(),statusDrifted:p().int().nonnegative(),metricsDrifted:p().int().nonnegative()}),errors:b(GT)});const Nx=_(["admin","viewer"]),HT=/^[a-z\d][\w.-]{0,63}$/i,KT=l().regex(HT,"A name may use letters, digits, dots, dashes and underscores, and must start with a letter or digit."),Gy=12,QT=l().min(Gy,`A password must be at least ${Gy} characters.`),_x=h({id:l(),name:l(),role:Nx,createdAt:l(),lastLoginAt:l().nullable()});h({users:b(_x)});h({name:KT,password:QT,role:Nx});h({name:l().min(1),password:l().min(1)});h({authRequired:R(),user:_x.pick({name:!0,role:!0}).nullable()});const At=1,Um=_(["system","project","queries","competitors","run"]),Lm=_(["0","1","2-3","4-5","6-10","11+"]);function cn(e){return!Number.isFinite(e)||e<=0?"0":e<2?"1":e<4?"2-3":e<6?"4-5":e<11?"6-10":"11+"}const Hy=_(["api_unavailable","database_unavailable","worker_unavailable","no_provider","no_queries","provider_save_failed","project_create_failed","query_save_failed","run_rejected","run_failed","run_cancelled","unknown"]),mc=h({eventId:l().uuid(),flowVersion:W(At),onboardingSessionId:l().uuid()});pt("event",[mc.extend({event:W("onboarding.started"),step:Um,resumed:R()}).strict(),mc.extend({event:W("onboarding.step_completed"),step:Um,method:_(["existing","inline","manual","generated","skipped","automatic"]),countBucket:Lm.optional()}).strict(),mc.extend({event:W("onboarding.blocked"),step:Um,action:_(["continue","configure_provider","generate_queries","save","launch_run","retry_run"]),reasonCode:Hy}).strict(),mc.extend({event:W("run.requested"),origin:W("dashboard_setup"),result:_(["queued","rejected"]),providerCountBucket:Lm,queryCountBucket:Lm,reasonCode:Hy.optional()}).strict()]);h({accepted:R()});const ZT=4;function FT(e){return e.length<ZT}var YT=(e=>(e.Clicks="clicks",e.Impressions="impressions",e.CTR="ctr",e.Position="position",e))(YT||{});const tL={clicks:"Clicks",impressions:"Impressions",ctr:"CTR",position:"Position"},aL={clicks:"Clicks",impressions:"Impr",ctr:"CTR",position:"Pos"},XT=s0;function JT(e){const n=[];if(e.message&&n.push(e.message),e.providers)for(const[s,r]of Object.entries(e.providers)){const c=`[${s}] ${r.message}`;r.raw!==void 0?n.push(`${c}
|
|
53
|
+
|
|
54
|
+
${JSON.stringify(r.raw,null,2)}`):n.push(c)}return n.length>0?n.join(`
|
|
55
|
+
|
|
56
|
+
`):"Run failed."}function WT(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" ")}function nL(e){if(!e)return"—";try{return new Date(e).toLocaleString()}catch{return e}}function iL(e){return e===null?"Unknown":e?"Pass":"Fail"}function Ky(e){return e===0?"12:00 AM":e<12?`${e}:00 AM`:e===12?"12:00 PM":`${e-12}:00 PM`}function sL(e,n){return e==="twice-daily"?"twice-daily":e.startsWith("weekly@")?`${e}@${n}`:`daily@${n}`}function oL(e,n){if(!e)return{freq:"custom",hour:6,customCron:n};if(e==="twice-daily")return{freq:"twice-daily",hour:6,customCron:""};const s=e.match(/^daily(?:@(\d+))?$/);if(s)return{freq:"daily",hour:s[1]?parseInt(s[1]):6,customCron:""};const r=e.match(/^(weekly@(?:mon|tue|wed|thu|fri|sat|sun))(?:@(\d+))?$/);return r?{freq:r[1],hour:r[2]?parseInt(r[2]):6,customCron:""}:{freq:"custom",hour:6,customCron:n}}function rL(e,n,s){const r=s==="UTC"?"UTC":s.split("/").pop()?.replace(/_/g," ")??s;if(!e)return`Custom: ${n} · ${r}`;if(e==="twice-daily")return`Twice a day (6am & 6pm) · ${r}`;const c=e.match(/^daily(?:@(\d+))?$/);if(c){const g=c[1]?parseInt(c[1]):6;return`Every day at ${Ky(g)} · ${r}`}const f=e.match(/^weekly@(mon|tue|wed|thu|fri|sat|sun)(?:@(\d+))?$/);if(f){const g={mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday",sun:"Sunday"},y=f[2]?parseInt(f[2]):6;return`Every ${g[f[1]]} at ${Ky(y)} · ${r}`}return`${e} · ${r}`}function eR(e,n){return n&&n!==e?`${e} · ${n}`:e}function lL(){const e=Intl.DateTimeFormat().resolvedOptions().timeZone,n=new Intl.DateTimeFormat("en-US",{timeZoneName:"short"}).formatToParts().find(s=>s.type==="timeZoneName")?.value;return eR(e,n)}function tR(e){const n=e.replace(/\/+$/,"")||"/";return n==="/"?"overview":n==="/projects"?"projects":n.startsWith("/projects/")?"project":n==="/runs"?"runs":n==="/traffic"||n.startsWith("/traffic/")?"traffic":n==="/backlinks"?"backlinks":n==="/settings"?"settings":n==="/setup"?"setup":"other"}function aR(e,n){return!n||n.includes(e)}const Cx=["overview","search-console","local","discovery","report","activity","backlinks","technical-aeo","history","settings"],nR=new Set(Cx);function cL(e){const n=e??Cx,s=[...new Set(n.filter(r=>nR.has(r)))];return s.length>0?s:["overview"]}function uL(e,n){return aR(e,n)||!n?e:n.includes("overview")?"overview":n[0]??"overview"}const Qy={bg:"--canonry-embed-bg",fg:"--canonry-embed-fg",accent:"--color-link"},iR=/^(?:#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})|rgba?\([0-9.,%\s/]+\)|hsla?\([0-9.,%\s/a-z]+\))$/i,sR=/^[a-z0-9][a-z0-9 -]{0,48}$/i;function zx(e){const n=e?.font?.trim();return n&&sR.test(n)?n:void 0}function oR(e){const n=e?.mode?.trim();return n==="light"||n==="dark"?n:void 0}function rR(e){if(!e)return{};const n={};for(const[r,c]of Object.entries(e)){const f=Object.hasOwn(Qy,r)?Qy[r]:void 0;if(!f||typeof c!="string")continue;const g=c.trim();iR.test(g)&&(n[f]=g)}const s=zx(e);return s&&(n["--font-sans"]=`"${s}", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif`),n}function lR(e){const n=zx(e);if(n)return`https://fonts.googleapis.com/css2?family=${n.replace(/ /g,"+")}:wght@400;500;600;700&display=swap`}const ke=(e,n,s,r)=>{const c={_id:e,baseUrl:n?.baseUrl||(n?.client??B).getConfig().baseUrl};return s&&(c._infinite=s),n?.body&&(c.body=n.body),n?.headers&&(c.headers=n.headers),n?.path&&(c.path=n.path),n?.query&&(c.query=n.query),[c]},cR=e=>ke("getApiV1ProjectsByName",e),uR=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await $b({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:cR(e)}),dR=e=>ke("getApiV1ProjectsByNameMeasurementPlan",e),dL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await NS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:dR(e)}),mR=e=>ke("getApiV1ProjectsByNameMeasurementReport",e),mL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await _S({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:mR(e)}),pR=e=>ke("getApiV1ProjectsByNameMeasurementSetup",e),pL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await CS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:pR(e)}),Ex=(e,n)=>{const s={...e[0]};return n.body&&(s.body={...e[0].body,...n.body}),n.headers&&(s.headers={...e[0].headers,...n.headers}),n.path&&(s.path={...e[0].path,...n.path}),n.query&&(s.query={...e[0].query,...n.query}),s},hR=e=>ke("getApiV1ProjectsByNameMeasurementOverview",e),hL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Gb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:hR(e)}),fR=e=>ke("getApiV1ProjectsByNameMeasurementOverview",e,!0),fL=e=>jb({queryFn:async({pageParam:n,queryKey:s,signal:r})=>{const f=Ex(s,typeof n=="object"?n:{query:{cursor:n}}),{data:g}=await Gb({...e,...f,signal:r,throwOnError:!0});return g},queryKey:fR(e)}),gR=e=>ke("getApiV1ProjectsByNameMeasurementPropertyEvidence",e,!0),gL=e=>jb({queryFn:async({pageParam:n,queryKey:s,signal:r})=>{const f=Ex(s,typeof n=="object"?n:{query:{cursor:n}}),{data:g}=await zS({...e,...f,signal:r,throwOnError:!0});return g},queryKey:gR(e)}),yR=e=>ke("getApiV1ProjectsByNameMeasurementQuestionResult",e),yL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await ES({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:yR(e)}),bR=e=>ke("getApiV1ProjectsByNameMeasurementPropertyCompetitors",e),bL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await DS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:bR(e)}),ho=e=>ke("getApiV1Projects",e),Wc=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await TS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:ho(e)}),vR=e=>ke("getApiV1ProjectsByNameResearchRuns",e),vL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await RS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:vR(e)}),xL=e=>({mutationFn:async s=>{const{data:r}=await OS({...e,...s,throwOnError:!0});return r}}),xR=e=>ke("getApiV1ProjectsByNameResearchRunsByRunId",e),kL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await qS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:xR(e)}),kR=e=>ke("getApiV1ProjectsByNameQueries",e),wL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Hb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:kR(e)}),wR=e=>ke("getApiV1ProjectsByNameRuns",e),SR=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Kb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:wR(e)}),A0=e=>ke("getApiV1Runs",e),N0=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await ZS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:A0(e)}),jR=e=>ke("getApiV1RunsById",e),Dx=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Qb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:jR(e)}),AR=e=>ke("getApiV1ProjectsByNameHistory",e),SL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await XS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:AR(e)}),NR=e=>ke("getApiV1History",e),jL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await JS({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:NR(e)}),_R=e=>ke("getApiV1ProjectsByNameSnapshotsDiff",e),AL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await tj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:_R(e)}),CR=e=>ke("getApiV1Settings",e),zR=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Zb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:CR(e)}),ER=e=>ke("getApiV1ProjectsByNameSchedule",e),NL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Fb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:ER(e)}),DR=e=>ke("getApiV1ProjectsByNameGoogleConnections",e),_L=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await hj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:DR(e)}),TR=e=>ke("getApiV1ProjectsByNameGoogleProperties",e),CL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await yj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:TR(e)}),RR=e=>ke("getApiV1ProjectsByNameGoogleGscPerformance",e),zL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await kj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:RR(e)}),OR=e=>ke("getApiV1ProjectsByNameGoogleGscPerformanceDaily",e),EL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await wj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:OR(e)}),qR=e=>ke("getApiV1ProjectsByNameGoogleGscInspections",e),DL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await jj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:qR(e)}),BR=e=>ke("getApiV1ProjectsByNameGoogleGscDeindexed",e),TL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Aj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:BR(e)}),MR=e=>ke("getApiV1ProjectsByNameGoogleGscCoverage",e),RL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Yb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:MR(e)}),PR=e=>ke("getApiV1ProjectsByNameGoogleGscCoverageHistory",e),OL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Nj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:PR(e)}),qL=e=>ke("getApiV1ProjectsByNameGoogleGscSitemaps",e),UR=e=>ke("getApiV1ProjectsByNameGbpLocations",e),BL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Ej({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:UR(e)}),ML=e=>({mutationFn:async s=>{const{data:r}=await Dj({...e,...s,throwOnError:!0});return r}}),PL=e=>({mutationFn:async s=>{const{data:r}=await Tj({...e,...s,throwOnError:!0});return r}}),LR=e=>ke("getApiV1ProjectsByNameGbpKeywords",e),UL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Rj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:LR(e)}),IR=e=>ke("getApiV1ProjectsByNameGbpPlaceActions",e),LL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Oj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:IR(e)}),VR=e=>ke("getApiV1ProjectsByNameGbpLodging",e),IL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await qj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:VR(e)}),$R=e=>ke("getApiV1ProjectsByNameGbpPlaces",e),VL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Bj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:$R(e)}),GR=e=>ke("getApiV1ProjectsByNameGbpSummary",e),$L=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Mj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:GR(e)}),HR=e=>ke("getApiV1ProjectsByNameBingStatus",e),GL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Lj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:HR(e)}),KR=e=>ke("getApiV1ProjectsByNameBingSites",e),HL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Ij({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:KR(e)}),QR=e=>ke("getApiV1ProjectsByNameBingCoverage",e),KL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Xb({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:QR(e)}),ZR=e=>ke("getApiV1ProjectsByNameBingInspections",e),QL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await $j({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:ZR(e)}),FR=e=>ke("getApiV1ProjectsByNameBingPerformance",e),ZL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Qj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:FR(e)}),YR=e=>ke("getApiV1ProjectsByNameGaStatus",e),FL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Yj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:YR(e)}),XR=e=>ke("getApiV1ProjectsByNameGaTraffic",e),YL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Jj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:XR(e)}),JR=e=>ke("getApiV1ProjectsByNameGaAiReferralDaily",e),XL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await Wj({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:JR(e)}),WR=e=>ke("getApiV1ProjectsByNameGaSocialReferralHistory",e),JL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await e4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:WR(e)}),eO=e=>ke("getApiV1ProjectsByNameGaSessionHistory",e),WL=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await t4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:eO(e)}),tO=e=>ke("getApiV1ProjectsByNameReport",e),eI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await n4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:tO(e)}),aO=e=>ke("getApiV1ProjectsByNameHealthHistory",e),tI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await i4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:aO(e)}),nO=e=>ke("getApiV1ProjectsByNameCitationsVisibility",e),aI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await s4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:nO(e)}),iO=e=>ke("getApiV1ProjectsByNameTrafficSources",e),nI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await A4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:iO(e)}),sO=e=>ke("getApiV1ProjectsByNameTrafficStatus",e),iI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await N4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:sO(e)}),oO=e=>ke("getApiV1ProjectsByNameTrafficSourcesById",e),sI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await _4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:oO(e)}),rO=e=>ke("getApiV1ProjectsByNameTrafficEvents",e),oI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await C4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:rO(e)}),lO=e=>ke("getApiV1ProjectsByNameDiscoverSessions",e),rI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await E4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:lO(e)}),cO=e=>ke("getApiV1ProjectsByNameDiscoverSessionsById",e),lI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await D4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:cO(e)}),uO=e=>ke("getApiV1ProjectsByNameDiscoverSessionsByIdPromote",e),cI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await T4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:uO(e)}),dO=e=>ke("getApiV1ProjectsByNameTechnicalAeo",e),uI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await O4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:dO(e)}),mO=e=>ke("getApiV1ProjectsByNameTechnicalAeoPages",e),dI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await q4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:mO(e)}),pO=e=>ke("getApiV1ProjectsByNameTechnicalAeoTrend",e),mI=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await B4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:pO(e)}),hO=e=>ke("getApiV1ProjectsByNameAgentProviders",e),fO=e=>Se({queryFn:async({queryKey:n,signal:s})=>{const{data:r}=await P4({...e,...n[0],signal:s,throwOnError:!0});return r},queryKey:hO(e)});function Zy(e){return e.state==="ok"?"positive":e.state==="checking"?"neutral":"negative"}function Tx(e){switch(e){case"completed":return"positive";case"partial":return"caution";case"failed":return"negative";case"cancelled":return"caution";case"queued":case"running":return"neutral";default:return"neutral"}}function pI(e){switch(e){case"cited":return"positive";case"emerging":return"caution";case"not-cited":return"caution";case"lost":return"negative";case"pending":return"neutral";default:return"neutral"}}function hI(e){return e==="High"?"negative":e==="Moderate"?"caution":"neutral"}const fI={positive:"text-positive-400",caution:"text-caution-400",negative:"text-negative-400",neutral:"text-secondary"};function gO(e){return e.displayName??e.name.charAt(0).toUpperCase()+e.name.slice(1)}function oo(e){const n=[e.detail,e.hint].filter(Boolean);return n.length>0?n.join(`
|
|
57
|
+
`):void 0}function yO(e,n,s){return e.map(r=>{if(r.id==="api")return{...r,tone:Zy(n.apiStatus),detail:n.apiStatus.state==="ok"?"Healthy":"Needs attention",meta:n.apiStatus.detail};if(r.id==="worker")return{...r,tone:Zy(n.workerStatus),detail:n.workerStatus.state==="ok"?"Healthy":"Needs attention",meta:n.workerStatus.detail};const c=s.providerStatuses.filter(x=>x.state==="ready").length,f=s.providerStatuses.length,g=c>0,y=s.providerStatuses.filter(x=>x.state==="ready").map(x=>gO(x)).join(" · ");return{...r,label:"Providers",tone:g?"positive":"caution",detail:`${c} of ${f} configured`,meta:y||"None configured"}})}function bO(e,n){if(e.apiStatus.state!=="ok")return"Launch is blocked until the API responds cleanly.";if(e.apiStatus.databaseConfigured===!1)return"Launch is blocked until the API has a database connection configured.";if(e.workerStatus.state!=="ok")return"Launch is blocked until the worker is healthy and heartbeats are current.";if(!n.providerStatuses.some(s=>s.state==="ready"))return"Launch is blocked until at least one provider is configured."}function vO(e,n,s){const r=bO(n,s),c=structuredClone(e);return c.healthChecks=c.healthChecks.map(f=>{if(f.id==="api")return{...f,detail:n.apiStatus.detail,state:n.apiStatus.state==="ok"?"ready":"attention"};if(f.id==="worker")return{...f,detail:n.workerStatus.detail,state:n.workerStatus.state==="ok"?"ready":"attention"};const g=s.providerStatuses.some(y=>y.state==="ready");return{...f,detail:g?"At least one provider configured.":"No providers configured.",state:g?"ready":"attention"}}),c.launchState.enabled=r===void 0,c.launchState.blockedReason=r,c.launchState.summary=r??"Queue a visibility sweep first, then follow with a site audit to explain movement.",c}const Rx="canonry.run-tracker",yp=new Set;let Fy=!1,xO=0,eu={runs:{},batches:{}};function kO(){const e=On();for(const n of yp)n(e)}function wO(e){if(!e)return{runs:{},batches:{}};try{const n=JSON.parse(e);return{runs:n.runs??{},batches:n.batches??{}}}catch{return{runs:{},batches:{}}}}function SO(){typeof window>"u"||window.sessionStorage.setItem(Rx,JSON.stringify(eu))}function Ox(){Fy||(Fy=!0,!(typeof window>"u")&&(eu=wO(window.sessionStorage.getItem(Rx))))}function tu(e){eu=e,SO(),kO()}function On(){return Ox(),eu}function qx(e){return Ox(),yp.add(e),()=>{yp.delete(e)}}function _0(e){const n=On();tu({...n,runs:{...n.runs,[e.id]:{runId:e.id,projectId:e.projectId,projectLabel:e.projectLabel,kind:e.kind,sourceAction:e.sourceAction,lastAnnouncedStatus:e.lastAnnouncedStatus??"queued",trackedAt:e.trackedAt??Date.now()}}})}function Im(e){const n=On();if(!n.runs[e])return;const{[e]:s,...r}=n.runs;tu({...n,runs:r})}function jO(e){const n=On(),s=`batch_${Date.now()}_${++xO}`;return tu({...n,batches:{...n.batches,[s]:{batchId:s,runIds:e.runIds,queuedCount:e.queuedCount,skippedCount:e.skippedCount}}}),s}function AO(e){const n=On();if(!n.batches[e])return;const{[e]:s,...r}=n.batches;tu({...n,batches:r})}function NO(e){return e==="completed"||e==="partial"||e==="failed"||e==="cancelled"}const _O=10*6e4;function CO(e,n,s,r){return e.filter(c=>!n.has(c.runId)&&s-(c.trackedAt??0)>=r)}function zO(e,n){let s=0,r=0,c=0,f=0,g=0;for(const y of e){const x=n[y]?.status;x==="completed"?s+=1:x==="partial"?r+=1:x==="failed"?c+=1:x==="cancelled"?f+=1:g+=1}return{completed:s,partial:r,failed:c,cancelled:f,pending:g,finished:g===0}}const Yy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xy=Db,Bx=(e,n)=>s=>{var r;if(n?.variants==null)return Xy(e,s?.class,s?.className);const{variants:c,defaultVariants:f}=n,g=Object.keys(c).map(k=>{const S=s?.[k],j=f?.[k];if(S===null)return null;const A=Yy(S)||Yy(j);return c[k][A]}),y=s&&Object.entries(s).reduce((k,S)=>{let[j,A]=S;return A===void 0||(k[j]=A),k},{}),x=n==null||(r=n.compoundVariants)===null||r===void 0?void 0:r.reduce((k,S)=>{let{class:j,className:A,...z}=S;return Object.entries(z).every($=>{let[L,P]=$;return Array.isArray(P)?P.includes({...f,...y}[L]):{...f,...y}[L]===P})?[...k,j,A]:k},[]);return Xy(e,g,x,s?.class,s?.className)},EO=(e,n)=>{const s=new Array(e.length+n.length);for(let r=0;r<e.length;r++)s[r]=e[r];for(let r=0;r<n.length;r++)s[e.length+r]=n[r];return s},DO=(e,n)=>({classGroupId:e,validator:n}),Mx=(e=new Map,n=null,s)=>({nextPart:e,validators:n,classGroupId:s}),Tc="-",Jy=[],TO="arbitrary..",RO=e=>{const n=qO(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:g=>{if(g.startsWith("[")&&g.endsWith("]"))return OO(g);const y=g.split(Tc),x=y[0]===""&&y.length>1?1:0;return Px(y,x,n)},getConflictingClassGroupIds:(g,y)=>{if(y){const x=r[g],k=s[g];return x?k?EO(k,x):x:k||Jy}return s[g]||Jy}}},Px=(e,n,s)=>{if(e.length-n===0)return s.classGroupId;const c=e[n],f=s.nextPart.get(c);if(f){const k=Px(e,n+1,f);if(k)return k}const g=s.validators;if(g===null)return;const y=n===0?e.join(Tc):e.slice(n).join(Tc),x=g.length;for(let k=0;k<x;k++){const S=g[k];if(S.validator(y))return S.classGroupId}},OO=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),s=n.indexOf(":"),r=n.slice(0,s);return r?TO+r:void 0})(),qO=e=>{const{theme:n,classGroups:s}=e;return BO(s,n)},BO=(e,n)=>{const s=Mx();for(const r in e){const c=e[r];C0(c,s,r,n)}return s},C0=(e,n,s,r)=>{const c=e.length;for(let f=0;f<c;f++){const g=e[f];MO(g,n,s,r)}},MO=(e,n,s,r)=>{if(typeof e=="string"){PO(e,n,s);return}if(typeof e=="function"){UO(e,n,s,r);return}LO(e,n,s,r)},PO=(e,n,s)=>{const r=e===""?n:Ux(n,e);r.classGroupId=s},UO=(e,n,s,r)=>{if(IO(e)){C0(e(r),n,s,r);return}n.validators===null&&(n.validators=[]),n.validators.push(DO(s,e))},LO=(e,n,s,r)=>{const c=Object.entries(e),f=c.length;for(let g=0;g<f;g++){const[y,x]=c[g];C0(x,Ux(n,y),s,r)}},Ux=(e,n)=>{let s=e;const r=n.split(Tc),c=r.length;for(let f=0;f<c;f++){const g=r[f];let y=s.nextPart.get(g);y||(y=Mx(),s.nextPart.set(g,y)),s=y}return s},IO=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,VO=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,s=Object.create(null),r=Object.create(null);const c=(f,g)=>{s[f]=g,n++,n>e&&(n=0,r=s,s=Object.create(null))};return{get(f){let g=s[f];if(g!==void 0)return g;if((g=r[f])!==void 0)return c(f,g),g},set(f,g){f in s?s[f]=g:c(f,g)}}},bp="!",Wy=":",$O=[],eb=(e,n,s,r,c)=>({modifiers:e,hasImportantModifier:n,baseClassName:s,maybePostfixModifierPosition:r,isExternal:c}),GO=e=>{const{prefix:n,experimentalParseClassName:s}=e;let r=c=>{const f=[];let g=0,y=0,x=0,k;const S=c.length;for(let L=0;L<S;L++){const P=c[L];if(g===0&&y===0){if(P===Wy){f.push(c.slice(x,L)),x=L+1;continue}if(P==="/"){k=L;continue}}P==="["?g++:P==="]"?g--:P==="("?y++:P===")"&&y--}const j=f.length===0?c:c.slice(x);let A=j,z=!1;j.endsWith(bp)?(A=j.slice(0,-1),z=!0):j.startsWith(bp)&&(A=j.slice(1),z=!0);const $=k&&k>x?k-x:void 0;return eb(f,z,A,$)};if(n){const c=n+Wy,f=r;r=g=>g.startsWith(c)?f(g.slice(c.length)):eb($O,!1,g,void 0,!0)}if(s){const c=r;r=f=>s({className:f,parseClassName:c})}return r},HO=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((s,r)=>{n.set(s,1e6+r)}),s=>{const r=[];let c=[];for(let f=0;f<s.length;f++){const g=s[f],y=g[0]==="[",x=n.has(g);y||x?(c.length>0&&(c.sort(),r.push(...c),c=[]),r.push(g)):c.push(g)}return c.length>0&&(c.sort(),r.push(...c)),r}},KO=e=>({cache:VO(e.cacheSize),parseClassName:GO(e),sortModifiers:HO(e),...RO(e)}),QO=/\s+/,ZO=(e,n)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:c,sortModifiers:f}=n,g=[],y=e.trim().split(QO);let x="";for(let k=y.length-1;k>=0;k-=1){const S=y[k],{isExternal:j,modifiers:A,hasImportantModifier:z,baseClassName:$,maybePostfixModifierPosition:L}=s(S);if(j){x=S+(x.length>0?" "+x:x);continue}let P=!!L,V=r(P?$.substring(0,L):$);if(!V){if(!P){x=S+(x.length>0?" "+x:x);continue}if(V=r($),!V){x=S+(x.length>0?" "+x:x);continue}P=!1}const ne=A.length===0?"":A.length===1?A[0]:f(A).join(":"),X=z?ne+bp:ne,ee=X+V;if(g.indexOf(ee)>-1)continue;g.push(ee);const re=c(V,P);for(let he=0;he<re.length;++he){const q=re[he];g.push(X+q)}x=S+(x.length>0?" "+x:x)}return x},FO=(...e)=>{let n=0,s,r,c="";for(;n<e.length;)(s=e[n++])&&(r=Lx(s))&&(c&&(c+=" "),c+=r);return c},Lx=e=>{if(typeof e=="string")return e;let n,s="";for(let r=0;r<e.length;r++)e[r]&&(n=Lx(e[r]))&&(s&&(s+=" "),s+=n);return s},YO=(e,...n)=>{let s,r,c,f;const g=x=>{const k=n.reduce((S,j)=>j(S),e());return s=KO(k),r=s.cache.get,c=s.cache.set,f=y,y(x)},y=x=>{const k=r(x);if(k)return k;const S=ZO(x,s);return c(x,S),S};return f=g,(...x)=>f(FO(...x))},XO=[],Bt=e=>{const n=s=>s[e]||XO;return n.isThemeGetter=!0,n},Ix=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,JO=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,WO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eq=/\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$/,tq=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,aq=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nq=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mi=e=>JO.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),pi=e=>!!e&&Number.isInteger(Number(e)),Vm=e=>e.endsWith("%")&&Me(e.slice(0,-1)),En=e=>WO.test(e),$x=()=>!0,iq=e=>eq.test(e)&&!tq.test(e),z0=()=>!1,sq=e=>aq.test(e),oq=e=>nq.test(e),rq=e=>!ye(e)&&!ve(e),lq=e=>Ni(e,Kx,z0),ye=e=>Ix.test(e),Yi=e=>Ni(e,Qx,iq),tb=e=>Ni(e,gq,Me),cq=e=>Ni(e,Fx,$x),uq=e=>Ni(e,Zx,z0),ab=e=>Ni(e,Gx,z0),dq=e=>Ni(e,Hx,oq),pc=e=>Ni(e,Yx,sq),ve=e=>Vx.test(e),vr=e=>ns(e,Qx),mq=e=>ns(e,Zx),nb=e=>ns(e,Gx),pq=e=>ns(e,Kx),hq=e=>ns(e,Hx),hc=e=>ns(e,Yx,!0),fq=e=>ns(e,Fx,!0),Ni=(e,n,s)=>{const r=Ix.exec(e);return r?r[1]?n(r[1]):s(r[2]):!1},ns=(e,n,s=!1)=>{const r=Vx.exec(e);return r?r[1]?n(r[1]):s:!1},Gx=e=>e==="position"||e==="percentage",Hx=e=>e==="image"||e==="url",Kx=e=>e==="length"||e==="size"||e==="bg-size",Qx=e=>e==="length",gq=e=>e==="number",Zx=e=>e==="family-name",Fx=e=>e==="number"||e==="weight",Yx=e=>e==="shadow",yq=()=>{const e=Bt("color"),n=Bt("font"),s=Bt("text"),r=Bt("font-weight"),c=Bt("tracking"),f=Bt("leading"),g=Bt("breakpoint"),y=Bt("container"),x=Bt("spacing"),k=Bt("radius"),S=Bt("shadow"),j=Bt("inset-shadow"),A=Bt("text-shadow"),z=Bt("drop-shadow"),$=Bt("blur"),L=Bt("perspective"),P=Bt("aspect"),V=Bt("ease"),ne=Bt("animate"),X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],re=()=>[...ee(),ve,ye],he=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],ae=()=>[ve,ye,x],Ae=()=>[mi,"full","auto",...ae()],de=()=>[pi,"none","subgrid",ve,ye],ge=()=>["auto",{span:["full",pi,ve,ye]},pi,ve,ye],qe=()=>[pi,"auto",ve,ye],De=()=>["auto","min","max","fr",ve,ye],at=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...ae()],ie=()=>[mi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ae()],ue=()=>[mi,"screen","full","dvw","lvw","svw","min","max","fit",...ae()],_e=()=>[mi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...ae()],le=()=>[e,ve,ye],He=()=>[...ee(),nb,ab,{position:[ve,ye]}],J=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",pq,lq,{size:[ve,ye]}],K=()=>[Vm,vr,Yi],te=()=>["","none","full",k,ve,ye],se=()=>["",Me,vr,Yi],Ce=()=>["solid","dashed","dotted","double"],rt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ne=()=>[Me,Vm,nb,ab],Ke=()=>["","none",$,ve,ye],Ye=()=>["none",Me,ve,ye],Ut=()=>["none",Me,ve,ye],za=()=>[Me,ve,ye],It=()=>[mi,"full",...ae()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[En],breakpoint:[En],color:[$x],container:[En],"drop-shadow":[En],ease:["in","out","in-out"],font:[rq],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[En],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[En],shadow:[En],spacing:["px",Me],text:[En],"text-shadow":[En],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",mi,ye,ve,P]}],container:["container"],columns:[{columns:[Me,ye,ve,y]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"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:re()}],overflow:[{overflow:he()}],"overflow-x":[{"overflow-x":he()}],"overflow-y":[{"overflow-y":he()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Ae()}],"inset-x":[{"inset-x":Ae()}],"inset-y":[{"inset-y":Ae()}],start:[{"inset-s":Ae(),start:Ae()}],end:[{"inset-e":Ae(),end:Ae()}],"inset-bs":[{"inset-bs":Ae()}],"inset-be":[{"inset-be":Ae()}],top:[{top:Ae()}],right:[{right:Ae()}],bottom:[{bottom:Ae()}],left:[{left:Ae()}],visibility:["visible","invisible","collapse"],z:[{z:[pi,"auto",ve,ye]}],basis:[{basis:[mi,"full","auto",y,...ae()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,mi,"auto","initial","none",ye]}],grow:[{grow:["",Me,ve,ye]}],shrink:[{shrink:["",Me,ve,ye]}],order:[{order:[pi,"first","last","none",ve,ye]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:ge()}],"col-start":[{"col-start":qe()}],"col-end":[{"col-end":qe()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:ge()}],"row-start":[{"row-start":qe()}],"row-end":[{"row-end":qe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":De()}],"auto-rows":[{"auto-rows":De()}],gap:[{gap:ae()}],"gap-x":[{"gap-x":ae()}],"gap-y":[{"gap-y":ae()}],"justify-content":[{justify:[...at(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...at()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":at()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:ae()}],px:[{px:ae()}],py:[{py:ae()}],ps:[{ps:ae()}],pe:[{pe:ae()}],pbs:[{pbs:ae()}],pbe:[{pbe:ae()}],pt:[{pt:ae()}],pr:[{pr:ae()}],pb:[{pb:ae()}],pl:[{pl:ae()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mbs:[{mbs:I()}],mbe:[{mbe:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":ae()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ae()}],"space-y-reverse":["space-y-reverse"],size:[{size:ie()}],"inline-size":[{inline:["auto",...ue()]}],"min-inline-size":[{"min-inline":["auto",...ue()]}],"max-inline-size":[{"max-inline":["none",...ue()]}],"block-size":[{block:["auto",..._e()]}],"min-block-size":[{"min-block":["auto",..._e()]}],"max-block-size":[{"max-block":["none",..._e()]}],w:[{w:[y,"screen",...ie()]}],"min-w":[{"min-w":[y,"screen","none",...ie()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[g]},...ie()]}],h:[{h:["screen","lh",...ie()]}],"min-h":[{"min-h":["screen","lh","none",...ie()]}],"max-h":[{"max-h":["screen","lh",...ie()]}],"font-size":[{text:["base",s,vr,Yi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,fq,cq]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Vm,ye]}],"font-family":[{font:[mq,uq,n]}],"font-features":[{"font-features":[ye]}],"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:[c,ve,ye]}],"line-clamp":[{"line-clamp":[Me,"none",ve,tb]}],leading:[{leading:[f,...ae()]}],"list-image":[{"list-image":["none",ve,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:le()}],"text-color":[{text:le()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",ve,Yi]}],"text-decoration-color":[{decoration:le()}],"underline-offset":[{"underline-offset":[Me,"auto",ve,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ae()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,ye]}],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",ve,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:He()}],"bg-repeat":[{bg:J()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pi,ve,ye],radial:["",ve,ye],conic:[pi,ve,ye]},hq,dq]}],"bg-color":[{bg:le()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:le()}],"gradient-via":[{via:le()}],"gradient-to":[{to:le()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-bs":[{"border-bs":se()}],"border-w-be":[{"border-be":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ce(),"hidden","none"]}],"divide-style":[{divide:[...Ce(),"hidden","none"]}],"border-color":[{border:le()}],"border-color-x":[{"border-x":le()}],"border-color-y":[{"border-y":le()}],"border-color-s":[{"border-s":le()}],"border-color-e":[{"border-e":le()}],"border-color-bs":[{"border-bs":le()}],"border-color-be":[{"border-be":le()}],"border-color-t":[{"border-t":le()}],"border-color-r":[{"border-r":le()}],"border-color-b":[{"border-b":le()}],"border-color-l":[{"border-l":le()}],"divide-color":[{divide:le()}],"outline-style":[{outline:[...Ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,ve,ye]}],"outline-w":[{outline:["",Me,vr,Yi]}],"outline-color":[{outline:le()}],shadow:[{shadow:["","none",S,hc,pc]}],"shadow-color":[{shadow:le()}],"inset-shadow":[{"inset-shadow":["none",j,hc,pc]}],"inset-shadow-color":[{"inset-shadow":le()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:le()}],"ring-offset-w":[{"ring-offset":[Me,Yi]}],"ring-offset-color":[{"ring-offset":le()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":le()}],"text-shadow":[{"text-shadow":["none",A,hc,pc]}],"text-shadow-color":[{"text-shadow":le()}],opacity:[{opacity:[Me,ve,ye]}],"mix-blend":[{"mix-blend":[...rt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":rt()}],"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":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ne()}],"mask-image-linear-from-color":[{"mask-linear-from":le()}],"mask-image-linear-to-color":[{"mask-linear-to":le()}],"mask-image-t-from-pos":[{"mask-t-from":Ne()}],"mask-image-t-to-pos":[{"mask-t-to":Ne()}],"mask-image-t-from-color":[{"mask-t-from":le()}],"mask-image-t-to-color":[{"mask-t-to":le()}],"mask-image-r-from-pos":[{"mask-r-from":Ne()}],"mask-image-r-to-pos":[{"mask-r-to":Ne()}],"mask-image-r-from-color":[{"mask-r-from":le()}],"mask-image-r-to-color":[{"mask-r-to":le()}],"mask-image-b-from-pos":[{"mask-b-from":Ne()}],"mask-image-b-to-pos":[{"mask-b-to":Ne()}],"mask-image-b-from-color":[{"mask-b-from":le()}],"mask-image-b-to-color":[{"mask-b-to":le()}],"mask-image-l-from-pos":[{"mask-l-from":Ne()}],"mask-image-l-to-pos":[{"mask-l-to":Ne()}],"mask-image-l-from-color":[{"mask-l-from":le()}],"mask-image-l-to-color":[{"mask-l-to":le()}],"mask-image-x-from-pos":[{"mask-x-from":Ne()}],"mask-image-x-to-pos":[{"mask-x-to":Ne()}],"mask-image-x-from-color":[{"mask-x-from":le()}],"mask-image-x-to-color":[{"mask-x-to":le()}],"mask-image-y-from-pos":[{"mask-y-from":Ne()}],"mask-image-y-to-pos":[{"mask-y-to":Ne()}],"mask-image-y-from-color":[{"mask-y-from":le()}],"mask-image-y-to-color":[{"mask-y-to":le()}],"mask-image-radial":[{"mask-radial":[ve,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ne()}],"mask-image-radial-from-color":[{"mask-radial-from":le()}],"mask-image-radial-to-color":[{"mask-radial-to":le()}],"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":ee()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ne()}],"mask-image-conic-from-color":[{"mask-conic-from":le()}],"mask-image-conic-to-color":[{"mask-conic-to":le()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:He()}],"mask-repeat":[{mask:J()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,ye]}],filter:[{filter:["","none",ve,ye]}],blur:[{blur:Ke()}],brightness:[{brightness:[Me,ve,ye]}],contrast:[{contrast:[Me,ve,ye]}],"drop-shadow":[{"drop-shadow":["","none",z,hc,pc]}],"drop-shadow-color":[{"drop-shadow":le()}],grayscale:[{grayscale:["",Me,ve,ye]}],"hue-rotate":[{"hue-rotate":[Me,ve,ye]}],invert:[{invert:["",Me,ve,ye]}],saturate:[{saturate:[Me,ve,ye]}],sepia:[{sepia:["",Me,ve,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,ye]}],"backdrop-blur":[{"backdrop-blur":Ke()}],"backdrop-brightness":[{"backdrop-brightness":[Me,ve,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Me,ve,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,ve,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,ve,ye]}],"backdrop-invert":[{"backdrop-invert":["",Me,ve,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Me,ve,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Me,ve,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,ve,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ae()}],"border-spacing-x":[{"border-spacing-x":ae()}],"border-spacing-y":[{"border-spacing-y":ae()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",ve,ye]}],ease:[{ease:["linear","initial",V,ve,ye]}],delay:[{delay:[Me,ve,ye]}],animate:[{animate:["none",ne,ve,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[L,ve,ye]}],"perspective-origin":[{"perspective-origin":re()}],rotate:[{rotate:Ye()}],"rotate-x":[{"rotate-x":Ye()}],"rotate-y":[{"rotate-y":Ye()}],"rotate-z":[{"rotate-z":Ye()}],scale:[{scale:Ut()}],"scale-x":[{"scale-x":Ut()}],"scale-y":[{"scale-y":Ut()}],"scale-z":[{"scale-z":Ut()}],"scale-3d":["scale-3d"],skew:[{skew:za()}],"skew-x":[{"skew-x":za()}],"skew-y":[{"skew-y":za()}],transform:[{transform:[ve,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:re()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:It()}],"translate-x":[{"translate-x":It()}],"translate-y":[{"translate-y":It()}],"translate-z":[{"translate-z":It()}],"translate-none":["translate-none"],accent:[{accent:le()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:le()}],"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",ve,ye]}],"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":ae()}],"scroll-mx":[{"scroll-mx":ae()}],"scroll-my":[{"scroll-my":ae()}],"scroll-ms":[{"scroll-ms":ae()}],"scroll-me":[{"scroll-me":ae()}],"scroll-mbs":[{"scroll-mbs":ae()}],"scroll-mbe":[{"scroll-mbe":ae()}],"scroll-mt":[{"scroll-mt":ae()}],"scroll-mr":[{"scroll-mr":ae()}],"scroll-mb":[{"scroll-mb":ae()}],"scroll-ml":[{"scroll-ml":ae()}],"scroll-p":[{"scroll-p":ae()}],"scroll-px":[{"scroll-px":ae()}],"scroll-py":[{"scroll-py":ae()}],"scroll-ps":[{"scroll-ps":ae()}],"scroll-pe":[{"scroll-pe":ae()}],"scroll-pbs":[{"scroll-pbs":ae()}],"scroll-pbe":[{"scroll-pbe":ae()}],"scroll-pt":[{"scroll-pt":ae()}],"scroll-pr":[{"scroll-pr":ae()}],"scroll-pb":[{"scroll-pb":ae()}],"scroll-pl":[{"scroll-pl":ae()}],"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",ve,ye]}],fill:[{fill:["none",...le()]}],"stroke-w":[{stroke:[Me,vr,Yi,tb]}],stroke:[{stroke:["none",...le()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}},bq=YO(yq);function Va(...e){return bq(Db(e))}const vq=Bx("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400 focus-visible:ring-offset-2 focus-visible:ring-offset-overlay-scrim disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-accent text-on-inverse hover:bg-mono-200",secondary:"border border-base bg-bg text-heading hover:bg-bg-elevated",ghost:"text-secondary hover:bg-bg-elevated hover:text-primary",outline:"border border-base bg-transparent text-heading hover:bg-bg-elevated",destructive:"bg-negative-600 text-on-emphasis hover:bg-negative-700"},size:{default:"h-10 px-4 md:h-9",sm:"h-9 px-3 text-xs md:h-8",icon:"size-10 md:size-9"}},defaultVariants:{variant:"default",size:"default"}}),Ee=D.forwardRef(({className:e,variant:n,size:s,asChild:r=!1,...c},f)=>{const g=r?Dw:"button";return u.jsx(g,{ref:f,className:Va(vq({variant:n,size:s,className:e})),...c})});Ee.displayName="Button";const xq=Bx("inline-flex items-center rounded-md border px-2 py-0.5 text-[11px] font-medium tracking-wide",{variants:{variant:{neutral:"border-base bg-bg text-neutral",success:"border-positive bg-positive-soft text-positive",warning:"border-caution-500/25 bg-caution-soft text-caution",destructive:"border-negative bg-negative-soft text-negative"}},defaultVariants:{variant:"neutral"}});function Xx({className:e,variant:n,...s}){return u.jsx("div",{className:Va(xq({variant:n}),e),...s})}const kq=220;function ib({compact:e=!1,version:n,updateAvailable:s,onDismissUpdate:r}){const c=!e&&n&&n!=="unknown",[f,g]=D.useState(!1),y=!e&&s&&r,x=()=>{g(!0),window.setTimeout(()=>{r?.(),g(!1)},kq)};return e?u.jsxs(Je,{to:"/",className:"brand-lockup brand-lockup-compact","aria-label":"Canonry home",children:[u.jsx("img",{className:"brand-icon",src:"./favicon.svg",alt:"","aria-hidden":"true"}),u.jsx("span",{className:"brand-copy",children:u.jsx("span",{className:"brand-mark",children:"Canonry"})})]}):u.jsxs("div",{className:"brand-lockup brand-lockup-wrapper",children:[u.jsx(Je,{to:"/",className:"brand-icon-link","aria-label":"Canonry home",tabIndex:-1,children:u.jsx("img",{className:"brand-icon",src:"./favicon.svg",alt:"","aria-hidden":"true"})}),u.jsxs("div",{className:"brand-copy",children:[u.jsx(Je,{to:"/",className:"brand-mark",children:"Canonry"}),!y&&c?u.jsxs("span",{className:"brand-version",children:["v",n]}):null]}),y?u.jsxs("span",{className:`brand-update-bubble ${f?"brand-update-bubble-closing":""}`,role:"status","aria-live":"polite",children:[u.jsxs("a",{className:"brand-update-bubble-link",href:s.url,target:"_blank",rel:"noopener noreferrer",title:`Open release: ${s.upgradeCommand}`,"aria-label":`New version v${s.latest} available — open release page`,children:[u.jsxs("span",{className:"brand-update-bubble-from",children:["v",s.current]}),u.jsx(Tw,{className:"brand-update-bubble-arrow size-3","aria-hidden":"true"}),u.jsxs("span",{className:"brand-update-bubble-to",children:["v",s.latest]})]}),u.jsx("button",{type:"button",className:"brand-update-bubble-dismiss",onClick:x,"aria-label":`Dismiss update notification for v${s.latest}`,children:u.jsx(ro,{className:"size-3","aria-hidden":"true"})})]}):null]})}function wq({provider:e}){const n={gemini:"border-blue-800/50 bg-blue-950/40 text-blue-300",openai:"border-green-800/50 bg-green-950/40 text-green-300",claude:"border-amber-800/50 bg-amber-950/40 text-amber-300",perplexity:"border-teal-800/50 bg-teal-950/40 text-teal-300",local:"border-purple-800/50 bg-purple-950/40 text-purple-300"},r=Object.hasOwn(n,e)?`provider-badge--${e} ${n[e]}`:"border-zinc-700 bg-zinc-800 text-zinc-300";return u.jsx("span",{className:`inline-flex items-center rounded-full border px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide ${r}`,children:e})}function ga({tone:e,children:n,...s}){const r=e==="positive"?"success":e==="caution"?"warning":e==="negative"?"destructive":"neutral";return u.jsx(Xx,{variant:r,...s,children:n})}function E0({status:e}){return u.jsx(ga,{tone:Tx(e),children:WT(e)})}const Sq=Eb,jq=_b,Jx=D.forwardRef(({className:e,...n},s)=>u.jsx(kp,{ref:s,className:Va("fixed inset-0 z-50 bg-overlay-scrim/70 backdrop-blur-sm",e),...n}));Jx.displayName=kp.displayName;const Aq=400,Nq=1200,_q=720,Wx=D.forwardRef(({className:e,children:n,...s},r)=>{const[c,f]=D.useState(_q),g=D.useRef(!1),y=D.useRef(0),x=D.useRef(0),k=D.useCallback(A=>{g.current=!0,y.current=A.clientX,x.current=c,A.target.setPointerCapture(A.pointerId),A.preventDefault()},[c]),S=D.useCallback(A=>{if(!g.current)return;const z=y.current-A.clientX,$=Math.min(Nq,Math.max(Aq,x.current+z));f($)},[]),j=D.useCallback(()=>{g.current=!1},[]);return u.jsxs(jq,{children:[u.jsx(Jx,{}),u.jsxs(wp,{ref:r,className:Va("fixed z-50 flex flex-col bg-bg px-5 py-4 shadow-2xl overflow-hidden","max-md:inset-x-0 max-md:bottom-0 max-md:top-auto max-md:max-h-[88vh] max-md:rounded-t-2xl max-md:border-t","md:inset-y-0 md:right-0 md:h-full md:border-l","border-base",e),style:{width:`min(${c}px, 100vw)`},...s,children:[u.jsx("div",{className:"absolute inset-y-0 left-0 w-1.5 cursor-col-resize hover:bg-mono-700/50 active:bg-mono-600/50 transition-colors max-md:hidden",onPointerDown:k,onPointerMove:S,onPointerUp:j}),n,u.jsxs(Cb,{className:"absolute right-4 top-4 inline-flex size-8 items-center justify-center rounded-md text-muted transition hover:bg-bg-elevated hover:text-heading focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400",children:[u.jsx(ro,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});Wx.displayName=wp.displayName;const Cq=({className:e,...n})=>u.jsx("div",{className:Va("flex flex-col gap-1.5 pr-10",e),...n}),e3=D.forwardRef(({className:e,...n},s)=>u.jsx(Sp,{ref:s,className:Va("text-lg font-medium text-primary",e),...n}));e3.displayName=Sp.displayName;const t3=D.forwardRef(({className:e,...n},s)=>u.jsx(zb,{ref:s,className:Va("text-sm text-muted",e),...n}));t3.displayName=zb.displayName;function $m({title:e,subtitle:n,children:s,open:r,onClose:c}){return u.jsx(Sq,{open:r,onOpenChange:f=>f?void 0:c(),children:u.jsxs(Wx,{children:[u.jsxs(Cq,{className:"drawer-head",children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:n}),u.jsx(e3,{id:"drawer-title",children:e}),u.jsx(t3,{className:"sr-only",children:n})]}),u.jsx("div",{className:"drawer-body",children:s})]})})}function xr({text:e}){const[n,s]=D.useState(null),r=D.useRef(null),c=D.useCallback(()=>{if(!r.current)return;const y=r.current.getBoundingClientRect();s({top:y.top,left:y.left+y.width/2})},[]),f=D.useCallback(()=>s(null),[]),g=D.useCallback(()=>{n===null?c():f()},[n,c,f]);return u.jsxs("span",{className:"info-tooltip-wrapper",onMouseEnter:c,onMouseLeave:f,children:[u.jsx("button",{ref:r,type:"button",className:"info-tooltip-trigger","aria-label":e,"aria-expanded":n!==null,onFocus:c,onBlur:f,onClick:g,onKeyDown:y=>{y.key==="Escape"&&f()},children:u.jsxs("svg",{className:"info-tooltip-icon",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[u.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),u.jsx("path",{d:"M8 7v4M8 5.5v0",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}),n!==null&&Sw.createPortal(u.jsx("span",{"aria-hidden":"true",style:{position:"fixed",top:n.top,left:n.left,transform:"translateX(-50%) translateY(calc(-100% - 8px))",zIndex:9999,pointerEvents:"none",width:"14rem",padding:"0.5rem 0.75rem",fontSize:"11px",fontWeight:400,textTransform:"none",letterSpacing:"normal",lineHeight:"1rem",color:"var(--color-neutral-text)",backgroundColor:"var(--color-bg-elevated)",border:"1px solid color-mix(in oklab, var(--color-border-strong) 60%, transparent)",borderRadius:"0.5rem",boxShadow:"0 10px 15px -3px var(--color-shadow-tooltip), 0 4px 6px -4px var(--color-shadow-tooltip)"},children:e}),document.body)]})}const zq=/[\s\-_]+/;function Eq(e){const n=e.split(zq).filter(Boolean);return n.length===0?null:n.map(s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("[\\s\\-_]*")}function sb(e,n){const s=Dq(n),r=e.split(/(\*\*[^*]+\*\*)/).filter(Boolean).map(k=>k.startsWith("**")&&k.endsWith("**")?{type:"bold",value:k.slice(2,-2)}:{type:"text",value:k}),c=s.flatMap(k=>k.terms).filter(k=>k.trim().length>1);if(c.length===0)return r.map((k,S)=>k.type==="bold"?$s.createElement("strong",{key:`b-${S}`,className:"text-strong font-semibold"},k.value):k.value).filter(Boolean);const g=[...c].sort((k,S)=>S.length-k.length).map(Eq).filter(k=>!!k);if(g.length===0)return r.map((k,S)=>k.type==="bold"?$s.createElement("strong",{key:`b-${S}`,className:"text-strong font-semibold"},k.value):k.value).filter(Boolean);const y=new RegExp(`(${g.join("|")})`,"gi"),x=new Map;for(const k of s)for(const S of k.terms){const j=Ji(S);j&&!x.has(j)&&x.set(j,k.className)}return r.flatMap((k,S)=>k.value.split(y).map((A,z)=>{if(!A)return null;if(z%2===1){const L=x.get(Ji(A))??"answer-highlight";return k.type==="bold"?$s.createElement("mark",{key:`hl-${S}-${z}`,className:L},$s.createElement("strong",{className:"text-strong font-semibold"},A)):$s.createElement("mark",{key:`hl-${S}-${z}`,className:L},A)}return k.type==="bold"?$s.createElement("strong",{key:`b-${S}-${z}`,className:"text-strong font-semibold"},A):A})).filter(Boolean)}function Dq(e){return e.length===0?[]:typeof e[0]=="string"?[{terms:e,className:"answer-highlight"}]:e}function vp(e){const n=(e??"").trim();return n&&(n.startsWith("/")||/^https?:\/\//i.test(n)||/^mailto:/i.test(n))?n:null}function Gm(e,n){switch(e){case"new":return"First observation";case"emerging":return"First mention";case"lost":return"Lost since last run";default:return n==="mentioned"||n==="visible"?"Mentioned in latest run":n==="pending"?"Awaiting first run":"Not mentioned in latest run"}}function Tq({evidence:e,project:n,onClose:s}){const[r,c]=D.useState(!1),[f,g]=D.useState("mentions"),[y,x]=D.useState(-1),[k,S]=D.useState(null),[j,A]=D.useState(!1),[z,$]=D.useState({}),L=v_(n.project),P=new Set(L.map(rp)),V=e.runHistory,ne=V.length>1,[X,ee]=D.useState(null),re=D.useRef(!1);D.useEffect(()=>{if(re.current||e.answerSnippet&&(e.visibilityState!=null||e.answerMentioned!=null))return;const K=V.at(-1);K&&(re.current=!0,bc(K.runId).then(te=>{const se=te.snapshots?.find(Ce=>Ce.query===e.query&&Ce.provider===e.provider);se&&ee({citationState:se.citationState,answerMentioned:se.answerMentioned,visibilityState:se.visibilityState,visibilityTransition:K.visibilityTransition,provider:se.provider,model:se.model??e.model,answerSnippet:se.answerText??e.answerSnippet,citedDomains:se.citedDomains??e.citedDomains,competitorDomains:se.competitorOverlap??e.competitorDomains,recommendedCompetitors:se.recommendedCompetitors??e.recommendedCompetitors??[],matchedTerms:se.matchedTerms??e.matchedTerms??[],groundingSources:se.groundingSources??e.groundingSources,searchQueries:se.searchQueries,evidenceUrls:[],changeLabel:e.visibilityChangeLabel??e.changeLabel,summary:e.summary})}).catch(()=>{}))},[e,V]);const he=y>=0&&k!==null,q=he?k:X||{citationState:e.citationState,answerMentioned:e.answerMentioned,visibilityState:e.visibilityState,visibilityTransition:V.at(-1)?.visibilityTransition,provider:e.provider,model:e.model,answerSnippet:e.answerSnippet,citedDomains:e.citedDomains,competitorDomains:e.competitorDomains,recommendedCompetitors:e.recommendedCompetitors??[],matchedTerms:e.matchedTerms??[],groundingSources:e.groundingSources,searchQueries:e.searchQueries??[],evidenceUrls:e.evidenceUrls,changeLabel:e.visibilityChangeLabel??e.changeLabel,summary:e.summary},ae=q.visibilityState==="pending"||q.citationState==="pending",Ae=ae?!1:q.visibilityState!=null?q.visibilityState==="visible":q.answerMentioned!=null?q.answerMentioned:q.citationState===zc.cited||q.citationState==="emerging",de=q.answerMentioned!=null||q.visibilityState!=null||q.recommendedCompetitors.length>0,ge=q.citedDomains.length>0||q.groundingSources.length>0||q.evidenceUrls.length>0,qe=n.project.displayName||n.project.name,De=[...L.map(rp),qe,qe.split(" ").slice(0,2).join(" "),...q.matchedTerms].filter(K=>K.trim().length>2),at=[...q.competitorDomains.flatMap(K=>{const te=u_(K);return te.length>=4?[te]:[]}),...q.recommendedCompetitors].filter(K=>K.trim().length>2),pe=[{terms:De,className:"answer-highlight-brand"},...at.length>0?[{terms:at,className:"answer-highlight-competitor"}]:[]],I=ae?"pending":q.visibilityTransition==="lost"?"lost":Ae?"mentioned":"not-mentioned",ie=D.useRef(0),ue=D.useCallback(async K=>{const te=++ie.current;if(K===-1||K===V.length-1){x(-1),S(null),c(!1);return}x(K),c(!1);const se=V[K],Ce=`${se.runId}::${e.query}::${e.provider}`;if(z[Ce]){S(z[Ce]);return}A(!0);try{const rt=await bc(se.runId);if(te!==ie.current)return;const Ne=rt.snapshots?.find(Ye=>Ye.query===e.query&&Ye.provider===e.provider)??rt.snapshots?.find(Ye=>Ye.query===e.query),Ke=Ne?{citationState:Ne.citationState,answerMentioned:Ne.answerMentioned,visibilityState:Ne.visibilityState,visibilityTransition:se.visibilityTransition,provider:Ne.provider,model:Ne.model??null,answerSnippet:Ne.answerText??"",citedDomains:Ne.citedDomains,competitorDomains:Ne.competitorOverlap,recommendedCompetitors:Ne.recommendedCompetitors??[],matchedTerms:Ne.matchedTerms??[],groundingSources:Ne.groundingSources,searchQueries:Ne.searchQueries,evidenceUrls:[],changeLabel:Gm(se.mentionTransition??se.visibilityTransition,se.mentionState??se.visibilityState),summary:""}:{citationState:se.citationState,answerMentioned:se.answerMentioned,visibilityState:se.visibilityState,visibilityTransition:se.visibilityTransition,provider:e.provider,model:se.model??null,answerSnippet:"",citedDomains:[],competitorDomains:[],recommendedCompetitors:[],matchedTerms:[],groundingSources:[],searchQueries:[],evidenceUrls:[],changeLabel:Gm(se.mentionTransition??se.visibilityTransition,se.mentionState??se.visibilityState),summary:"Snapshot data not available for this run."};$(Ye=>({...Ye,[Ce]:Ke})),S(Ke)}catch{if(te!==ie.current)return;S({citationState:se.citationState,answerMentioned:se.answerMentioned,visibilityState:se.visibilityState,visibilityTransition:se.visibilityTransition,provider:e.provider,model:se.model??null,answerSnippet:"",citedDomains:[],competitorDomains:[],recommendedCompetitors:[],matchedTerms:[],groundingSources:[],searchQueries:[],evidenceUrls:[],changeLabel:Gm(se.mentionTransition??se.visibilityTransition,se.mentionState??se.visibilityState),summary:"Failed to load historical run data."})}finally{te===ie.current&&A(!1)}},[V,e.query,e.provider,z]),le=(he||e.historyScope!=="provider")&&q.model?`${q.provider} (${q.model}) · ${q.changeLabel.toLowerCase()}`:`${q.provider} · ${q.changeLabel.toLowerCase()}`,He=!he&&e.historyScope==="provider"?[e.model?`Current model: ${e.model}`:null,e.modelsSeen&&e.modelsSeen.length>1?`History spans ${e.modelsSeen.length} models`:null].filter(Boolean).join(" · "):"",J=Ae?{label:"Mentioned in answer",title:"Your brand or domain is mentioned in this answer",meta:le}:q.visibilityTransition==="lost"?{label:"Mention lost",title:"Your brand no longer appears in this answer",meta:le}:ae?{label:"Pending",title:"Awaiting first run",meta:"No provider data yet"}:{label:"Not mentioned in answer",title:"Your brand or domain was not mentioned in this answer",meta:le},U=()=>{if(!q.answerSnippet)return null;const K=q.answerSnippet.split(`
|
|
58
|
+
`),te=[];let se=[],Ce=0;const rt=()=>{if(se.length===0)return;const Ne=se.join(" ").trim();Ne&&te.push(u.jsx("p",{className:te.length>0?"mt-2.5":"",children:sb(Ne,pe)},Ce++)),se=[]};for(const Ne of K){const Ke=Ne.trim();if(/^[-\u2013\u2014]{3,}$/.test(Ke)){rt(),te.push(u.jsx("hr",{className:"border-default my-3"},Ce++));continue}const Ye=Ke.match(/^(#{1,3})\s+(\S.*)$/);if(Ye){rt();const Ut=Ye[1].length,za=Ye[2].replace(/^[\p{Emoji}\p{Emoji_Component}\s]+/u,"").trim()||Ye[2],It=Ut===1?"text-[13px] font-semibold text-heading mt-4 mb-1":Ut===2?"text-xs font-semibold text-strong mt-3 mb-0.5":"text-xs font-medium text-neutral mt-2";te.push(u.jsx("p",{className:It,children:sb(za,pe)},Ce++));continue}if(Ke===""){rt();continue}se.push(Ke)}return rt(),te};return u.jsx(Eb,{open:!0,onOpenChange:K=>{K||s()},children:u.jsxs(_b,{children:[u.jsx(kp,{className:"fixed inset-0 z-50 bg-overlay-scrim/80 backdrop-blur-sm"}),u.jsxs(wp,{className:"evidence-modal","aria-describedby":void 0,children:[u.jsxs("div",{className:"evidence-modal-header",children:[u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsxs("p",{className:"eyebrow eyebrow-soft",children:[n.project.name," ","·"," ",q.provider||"All providers"]}),u.jsx(Sp,{className:"text-lg font-semibold text-primary truncate",children:e.query})]}),u.jsxs(Cb,{className:"inline-flex size-8 items-center justify-center rounded-md text-muted transition hover:bg-mono-800 hover:text-heading focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400 shrink-0",children:[u.jsx(ro,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]}),ne&&u.jsxs("div",{className:"evidence-modal-timeline",children:[u.jsx("p",{className:"drawer-section-label mb-1.5",children:"Run history"}),u.jsx("div",{className:"flex items-center gap-1 overflow-x-auto pb-1",children:V.map((K,te)=>{const se=y===-1&&te===V.length-1||y===te,Ce=K.visibilityState??(K.answerMentioned?"visible":"not-visible"),rt=K.visibilityTransition??Ce,Ne=Ce==="visible"?"bg-positive-400":rt==="emerging"?"bg-caution-400":rt==="lost"?"bg-negative-400":"bg-mono-600",Ye=new Date(K.createdAt).toLocaleDateString(void 0,{month:"short",day:"numeric"}),Ut=!!(K.model&&te>0&&V[te-1]?.model&&V[te-1].model!==K.model);return u.jsxs("button",{type:"button",className:`evidence-run-dot ${se?"evidence-run-dot--selected":""}`,onClick:()=>{ue(te===V.length-1?-1:te)},"aria-label":[`Run ${Ye}: ${Ce}`,K.model?`model ${K.model}`:null,Ut?"model changed":null].filter(Boolean).join(" — "),"aria-pressed":se,children:[u.jsx("span",{className:`size-2 rounded-full ${Ne} ${Ut?"ring-1 ring-caution-300/80 ring-offset-2 ring-offset-bg":""}`,"aria-hidden":"true"}),u.jsx("span",{className:"text-[10px] text-muted",children:Ye})]},te)})}),y>=0&&y<V.length&&u.jsxs("p",{className:"text-[11px] text-muted mt-1",children:["Viewing run from ",new Date(V[y].createdAt).toLocaleString()," ","—"," ",u.jsx("span",{className:"capitalize",children:V[y].visibilityState??(V[y].answerMentioned?"visible":"not-visible")}),u.jsxs("button",{type:"button",className:"text-secondary hover:text-strong ml-2",onClick:()=>{ue(-1)},children:["←"," Back to latest"]})]}),!he&&(e.modelTransitions?.length??0)>0&&u.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:e.modelTransitions.map(K=>u.jsx("span",{className:"inline-flex items-center rounded-full border border-caution-400/30 bg-caution-400/10 px-2 py-1 text-[10px] text-caution-100",children:`${K.fromModel??"unknown"} -> ${K.toModel??"unknown"} on ${new Date(K.createdAt).toLocaleDateString()}`},`${K.runId}:${K.toModel??"unknown"}`))})]}),u.jsxs("div",{className:"evidence-modal-body",children:[j&&u.jsxs("div",{className:"md:col-span-2 flex items-center justify-center py-12 text-muted text-sm",children:["Loading historical run data","…"]}),!j&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"evidence-modal-main",children:[u.jsxs("div",{className:`evidence-position-hero evidence-position-hero--${I}`,children:[u.jsx("p",{className:`evidence-position-label evidence-position-label--${I}`,children:J.label}),u.jsx("p",{className:`evidence-position-title evidence-position-title--${I}`,children:J.title}),u.jsx("p",{className:"evidence-position-meta",children:J.meta}),He&&u.jsx("p",{className:"mt-1 text-[11px] text-muted",children:He})]}),q.answerSnippet&&u.jsxs("div",{children:[u.jsx("p",{className:"drawer-section-label",children:"What the AI said"}),u.jsx("div",{className:`answer-snippet-block ${r?"evidence-answer-expanded":"evidence-answer-collapsed"}`,children:U()}),q.answerSnippet.length>280&&u.jsx("button",{type:"button",className:"mt-1.5 text-xs text-muted hover:text-neutral transition-colors",onClick:()=>c(!r),children:r?"↑ Collapse":"↓ Show full answer"})]}),!q.answerSnippet&&!j&&u.jsx("div",{className:"rounded-lg border border-subtle bg-surface-subtle px-4 py-8 text-center text-faint text-sm",children:"No answer text recorded for this run"}),q.searchQueries.length>0&&u.jsxs("div",{children:[u.jsxs("div",{className:"drawer-section-label flex items-center",children:[u.jsx("span",{children:"Web searches the model ran"}),u.jsx(xr,{text:"The search queries this AI model issued while researching your prompt. They reveal how the model reformulated your query — the phrasings worth optimizing your content for. Distinct from grounding sources (what it found) and citations (what it linked)."})]}),u.jsx("ul",{className:"grid gap-1",children:q.searchQueries.map((K,te)=>u.jsxs("li",{className:"flex items-start gap-2 text-sm text-neutral",children:[u.jsx(Rw,{className:"size-3.5 mt-0.5 shrink-0 text-faint","aria-hidden":"true"}),u.jsx("span",{className:"break-words",children:K})]},`${te}-${K}`))})]}),!he&&e.relatedTechnicalSignals.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"drawer-section-label",children:Ae?"Why you're visible":"What to fix"}),u.jsx("div",{className:"action-items-list",children:e.relatedTechnicalSignals.map((K,te)=>u.jsxs("div",{className:"action-item",children:[u.jsx("svg",{className:`action-item-icon ${Ae?"text-positive-400":"text-caution-400"}`,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:Ae?u.jsx("path",{d:"M3 8l3.5 3.5L13 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}):u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),u.jsx("path",{d:"M8 5v3.5M8 10.5v0",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}),u.jsx("span",{className:"action-item-text",children:K})]},te))})]}),q.summary&&u.jsx("p",{className:"text-xs text-faint border-t border-subtle pt-3 mt-1",children:q.summary})]}),u.jsxs("div",{className:"evidence-modal-sidebar",children:[(de||ge)&&u.jsxs("div",{className:"sidebar-tabs",children:[u.jsx("button",{className:`sidebar-tab ${f==="mentions"?"sidebar-tab--active":""}`,onClick:()=>g("mentions"),type:"button",title:"Canonry's answer-level visibility assessment and any company names extracted from the answer text.",children:"Mentions"}),u.jsx("button",{className:`sidebar-tab ${f==="sources"?"sidebar-tab--active":""}`,onClick:()=>g("sources"),type:"button",title:"Grounding links the model used to build the answer. These are supporting sources, not the primary visibility signal.",children:"Sources"})]}),f==="mentions"&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{children:[u.jsxs("div",{className:"drawer-section-label flex items-center",children:[u.jsx("span",{children:"Mention in answer"}),u.jsx(xr,{text:"Canonry scans the AI answer for your owned domains and project name. This is independent from grounding or citation sources."})]}),u.jsxs("div",{className:`mention-status mention-status--${Ae?"mentioned":"not-mentioned"}`,children:[u.jsx("span",{className:"mention-status-icon",children:ae?"…":Ae?"✓":"—"}),u.jsx("span",{className:"mention-status-label",children:ae?"Pending":Ae?"Mentioned":"Not mentioned"})]}),q.matchedTerms.length>0&&u.jsxs("div",{className:"mt-2",children:[u.jsx("p",{className:"text-[10px] uppercase tracking-wide text-muted mb-1.5",children:"Matched in answer"}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:q.matchedTerms.map(K=>u.jsx("span",{className:"mention-chip mention-chip--brand",children:K},K))})]}),!ae&&!Ae&&q.matchedTerms.length===0&&u.jsxs("div",{className:"mt-2",children:[u.jsx("p",{className:"text-[10px] uppercase tracking-wide text-muted mb-1.5",children:"Searched for"}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:De.map(K=>u.jsx("span",{className:"mention-chip mention-chip--muted",children:K},K))}),u.jsx("p",{className:"text-[11px] text-faint mt-1.5",children:"None of these appear in the answer text."})]})]}),(q.recommendedCompetitors.length>0||q.competitorDomains.length>0)&&u.jsxs("div",{children:[u.jsxs("div",{className:"drawer-section-label flex items-center",children:[u.jsx("span",{children:"Competitors in answer"}),u.jsx(xr,{text:"Competitors detected in the answer text or cited source links. Includes both tracked competitors and names extracted by Canonry."})]}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:(()=>{const K=q.competitorDomains.map(Ce=>Ce.replace(/^www\./,"")),te=new Set(K.map(Ce=>Ji(Ce.replace(/\.[^.]+$/,""))));return[...q.recommendedCompetitors.filter(Ce=>!te.has(Ji(Ce))),...K].map(Ce=>u.jsx("span",{className:"mention-chip mention-chip--competitor",children:Ce},Ce))})()})]})]}),f==="sources"&&u.jsxs(u.Fragment,{children:[q.citedDomains.length>0&&u.jsxs("div",{children:[u.jsxs("div",{className:"drawer-section-label flex items-center",children:[u.jsx("span",{children:"Domains from source links"}),u.jsx(xr,{text:"These domains were extracted from grounding or citation URLs. They are supporting-source metadata, not proof that the answer text mentioned them."})]}),u.jsx("div",{className:"citation-leaderboard",children:q.citedDomains.map((K,te)=>{const se=K.toLowerCase().replace(/^www\./,""),Ce=P.has(se),rt=!Ce&&q.competitorDomains.some(Ke=>Ke.toLowerCase().replace(/^www\./,"")===se),Ne=Ce?"you":rt?"competitor":"other";return u.jsxs("div",{className:`citation-leaderboard-item citation-leaderboard-item--${Ne}`,children:[u.jsxs("span",{className:"citation-leaderboard-rank",children:["#",te+1]}),u.jsx("span",{className:"citation-leaderboard-domain",children:K}),Ce&&u.jsx("span",{className:"citation-leaderboard-tag",children:"You"}),rt&&u.jsx("span",{className:"citation-leaderboard-tag",children:"Competitor"})]},K)})})]}),q.groundingSources.length>0&&u.jsxs("div",{children:[u.jsxs("div",{className:"drawer-section-label flex items-center",children:[u.jsxs("span",{children:["Grounding source links (",q.groundingSources.length,")"]}),u.jsx(xr,{text:"Links the model used as grounding or supporting context while producing the answer. These are not the same thing as answer visibility."})]}),u.jsx("ul",{className:"grid gap-0.5",children:q.groundingSources.map((K,te)=>{const se=vp(K.uri),Ce=K.title||K.uri;return u.jsx("li",{className:"truncate text-sm",children:se?u.jsx("a",{href:se,target:"_blank",rel:"noopener noreferrer",className:"text-secondary hover:text-strong transition-colors",children:Ce}):u.jsx("span",{className:"text-secondary",children:Ce})},te)})})]}),q.evidenceUrls.length>0&&u.jsxs("div",{children:[u.jsx("p",{className:"drawer-section-label",children:"Evidence URLs"}),u.jsx("ul",{className:"grid gap-1",children:q.evidenceUrls.map(K=>{const te=vp(K);return u.jsx("li",{className:"truncate text-sm",children:te?u.jsx("a",{href:te,target:"_blank",rel:"noopener noreferrer",className:"text-secondary hover:text-strong transition-colors",children:K}):u.jsx("span",{className:"text-secondary",children:K})},K)})})]}),q.citedDomains.length===0&&q.groundingSources.length===0&&q.evidenceUrls.length===0&&u.jsxs("div",{className:"flex items-center justify-center h-24 text-faint text-sm",children:["No source data ",he?"for this run":"yet"]})]}),!de&&!ge&&u.jsxs("div",{className:"flex items-center justify-center h-24 text-faint text-sm",children:["No answer visibility data ",he?"for this run":"yet"]})]})]})]})]})]})})}function Rq(e){const n=e.match(/^\/projects\/([^/]+)/);if(!n)return null;try{return decodeURIComponent(n[1])}catch{return n[1]}}function Oq(e,n){return e?n?.projects.find(r=>r.project.name===e||r.project.id===e)?.project.name??e:null}function qq(e,n){return Oq(Rq(e),n)}function Ya(e){const n=new Date("2026-02-20");return e.map((s,r)=>({runId:`run_mock_${r+1}`,citationState:s,createdAt:new Date(n.getTime()+r*2*24*60*60*1e3).toISOString()}))}const Hm=[{id:"project_citypoint",name:"Citypoint Dental NYC",canonicalDomain:"citypointdental.com",ownedDomains:[],aliases:[],country:"US",language:"en",tags:["local intent","priority"],labels:{},providers:[],providerModels:{},measurement:Cm,locations:[],defaultLocation:null,autoExtractBacklinks:!1,configSource:"cli",configRevision:1},{id:"project_harbor",name:"Harbor Legal Group",canonicalDomain:"harborlegal.com",ownedDomains:[],aliases:[],country:"US",language:"en",tags:["lead gen"],labels:{},providers:[],providerModels:{},measurement:Cm,locations:[],defaultLocation:null,autoExtractBacklinks:!1,configSource:"cli",configRevision:1},{id:"project_northstar",name:"Northstar Orthopedics",canonicalDomain:"northstarortho.com",ownedDomains:[],aliases:[],country:"US",language:"en",tags:["multi-location"],labels:{},providers:[],providerModels:{},measurement:Cm,locations:[],defaultLocation:null,autoExtractBacklinks:!1,configSource:"cli",configRevision:1}];function au(e){return{id:e.id,projectId:e.projectId,projectName:e.projectName,kind:e.kind,kindLabel:e.kindLabel,status:e.status,trigger:e.trigger??"manual",createdAt:e.createdAt,startedAt:e.startedAt,duration:e.duration,statusDetail:e.statusDetail,summary:e.summary,triggerLabel:e.triggerLabel}}const Bq=au({id:"run_citypoint_visibility_20260308",projectId:"project_citypoint",projectName:"Citypoint Dental NYC",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"completed",createdAt:"2026-03-08T12:15:00.000Z",startedAt:"Mar 8, 12:15 PM",duration:"6m 12s",statusDetail:"18 tracked queries checked; 3 citation losses detected on emergency-intent prompts.",summary:"Citation losses on emergency-intent prompts",triggerLabel:"Scheduled"}),Mq=au({id:"run_citypoint_queued_20260309",projectId:"project_citypoint",projectName:"Citypoint Dental NYC",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"queued",createdAt:"2026-03-09T08:05:00.000Z",startedAt:"Mar 9, 8:05 AM",duration:"Waiting for slot",statusDetail:"Ready to enqueue after the next provider rate window clears.",summary:"Queued follow-up after local ranking movement",triggerLabel:"Manual"}),Pq=au({id:"run_harbor_visibility_20260308",projectId:"project_harbor",projectName:"Harbor Legal Group",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"completed",createdAt:"2026-03-08T11:05:00.000Z",startedAt:"Mar 8, 11:05 AM",duration:"5m 07s",statusDetail:"12 tracked queries checked; local-intent visibility held steady across branded prompts.",summary:"Branded prompts remain stable",triggerLabel:"Scheduled"}),Uq=au({id:"run_northstar_visibility_20260308",projectId:"project_northstar",projectName:"Northstar Orthopedics",kind:"answer-visibility",kindLabel:"Answer visibility sweep",status:"running",createdAt:"2026-03-08T13:40:00.000Z",startedAt:"Mar 8, 1:40 PM",duration:"3m 10s",statusDetail:"Provider responses still in flight for 9 multi-location prompts.",summary:"Mid-run on treatment-location prompts",triggerLabel:"Manual"}),Lq=[{id:"evidence_citypoint_emergency_gemini",query:"emergency dentist brooklyn",provider:"gemini",model:"gemini-2.5-flash",location:null,citationState:"lost",changeLabel:"Lost since Mar 5",answerSnippet:"For urgent dental care in Brooklyn, Downtown Smiles and Harbor Dental are now cited first for emergency availability and same-day booking.",citedDomains:["downtownsmiles.com","harbordental.com"],evidenceUrls:["https://downtownsmiles.com/emergency-dentist-brooklyn","https://harbordental.com/same-day-emergency-care"],competitorDomains:["downtownsmiles.com","harbordental.com"],groundingSources:[],relatedTechnicalSignals:["FAQ schema missing on the emergency service page","llms.txt not found during latest site audit","Location pages link weakly into the emergency care hub"],summary:"AI answers now cite two competitors while your emergency page is no longer grounded.",runHistory:Ya(["cited","cited","cited","cited","cited","cited","cited","not-cited","not-cited"])},{id:"evidence_citypoint_emergency_openai",query:"emergency dentist brooklyn",provider:"openai",model:"gpt-5.4",location:null,citationState:"cited",changeLabel:"Cited for 6 runs",answerSnippet:"Citypoint Dental is listed as a top emergency dentist in Brooklyn for same-day appointments and walk-in availability.",citedDomains:["citypointdental.com","downtownsmiles.com"],evidenceUrls:["https://citypointdental.com/emergency-dentist-brooklyn"],competitorDomains:["downtownsmiles.com"],groundingSources:[],relatedTechnicalSignals:["Emergency page indexed with structured data"],summary:"OpenAI cites your emergency page consistently alongside one competitor.",runHistory:Ya(["not-cited","cited","cited","cited","cited","cited","cited"])},{id:"evidence_citypoint_emergency_claude",query:"emergency dentist brooklyn",provider:"claude",model:"claude-sonnet-4-6",location:null,citationState:"not-cited",changeLabel:"No citation across 12 runs",answerSnippet:"Based on the search results, top-rated emergency dental practices in Brooklyn include Downtown Smiles and Harbor Dental.",citedDomains:["downtownsmiles.com","harbordental.com"],evidenceUrls:[],competitorDomains:["downtownsmiles.com","harbordental.com"],groundingSources:[],relatedTechnicalSignals:["FAQ schema missing","llms.txt not found"],summary:"Claude does not cite your domain for this emergency query.",runHistory:Ya(["not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited"])},{id:"evidence_citypoint_invisalign_openai",query:"best invisalign dentist downtown brooklyn",provider:"openai",model:"gpt-5.4",location:null,citationState:"emerging",changeLabel:"First citation in 7 days",answerSnippet:"Citypoint Dental appears as an emerging recommendation for Invisalign in Downtown Brooklyn, supported by recent before-and-after case pages.",citedDomains:["citypointdental.com","clearlineortho.com"],evidenceUrls:["https://citypointdental.com/invisalign-downtown-brooklyn","https://citypointdental.com/case-studies/invisalign-open-bite"],competitorDomains:["clearlineortho.com"],groundingSources:[],relatedTechnicalSignals:["Structured data now present on two case-study pages","Internal links from service pages to case studies improved crawl depth"],summary:"Fresh case-study content is starting to earn citations on Invisalign prompts.",runHistory:Ya(["not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","cited"])},{id:"evidence_citypoint_invisalign_gemini",query:"best invisalign dentist downtown brooklyn",provider:"gemini",model:"gemini-2.5-flash",location:null,citationState:"cited",changeLabel:"Cited for 8 runs",answerSnippet:"Citypoint Dental in Downtown Brooklyn is highlighted for its Invisalign expertise and patient outcomes.",citedDomains:["citypointdental.com"],evidenceUrls:["https://citypointdental.com/invisalign-downtown-brooklyn"],competitorDomains:[],groundingSources:[],relatedTechnicalSignals:["Case study pages well-indexed"],summary:"Gemini consistently cites your Invisalign page with no competitor overlap.",runHistory:Ya(["cited","cited","cited","cited","cited","cited","cited","cited"])},{id:"evidence_citypoint_invisalign_claude",query:"best invisalign dentist downtown brooklyn",provider:"claude",model:"claude-sonnet-4-6",location:null,citationState:"not-cited",changeLabel:"No citation across 12 runs",answerSnippet:"For Invisalign in Downtown Brooklyn, Clear Line Ortho and Brooklyn Smiles are frequently recommended for their experienced orthodontists.",citedDomains:["clearlineortho.com","brooklynsmiles.com"],evidenceUrls:[],competitorDomains:["clearlineortho.com"],groundingSources:[],relatedTechnicalSignals:["No before/after schema on case study pages"],summary:"Claude does not surface your Invisalign content despite strong page quality.",runHistory:Ya(["not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited"])},{id:"evidence_citypoint_children_claude",query:"pediatric dentist brooklyn heights",provider:"claude",model:"claude-sonnet-4-6",location:null,citationState:"not-cited",changeLabel:"No citation across 4 runs",answerSnippet:"Answers cite neighborhood-specific pediatric practices with stronger family-focused FAQ content and clearer insurance details.",citedDomains:["brightkidsdental.com","parkpediatricdental.com"],evidenceUrls:["https://brightkidsdental.com/pediatric-dentist-brooklyn-heights","https://parkpediatricdental.com/insurance"],competitorDomains:["brightkidsdental.com","parkpediatricdental.com"],groundingSources:[],relatedTechnicalSignals:["No dedicated pediatric service page exists for Brooklyn Heights","Insurance content is buried three clicks deep"],summary:"Coverage gap is content-driven, not purely technical.",runHistory:Ya(["not-cited","not-cited","not-cited","not-cited"])},{id:"evidence_citypoint_children_gemini",query:"pediatric dentist brooklyn heights",provider:"gemini",model:"gemini-2.5-flash",location:null,citationState:"not-cited",changeLabel:"No citation across 12 runs",answerSnippet:"For pediatric dentistry in Brooklyn Heights, Bright Kids Dental and Park Pediatric Dental are cited for family-friendly care.",citedDomains:["brightkidsdental.com","parkpediatricdental.com"],evidenceUrls:[],competitorDomains:["brightkidsdental.com","parkpediatricdental.com"],groundingSources:[],relatedTechnicalSignals:["No dedicated pediatric page for Brooklyn Heights"],summary:"Gemini does not surface your domain for pediatric queries in this area.",runHistory:Ya(["not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited","not-cited"])},{id:"evidence_citypoint_children_openai",query:"pediatric dentist brooklyn heights",provider:"openai",model:"gpt-5.4",location:null,citationState:"cited",changeLabel:"First citation this month",answerSnippet:"Citypoint Dental is mentioned as offering pediatric services in Brooklyn, though specialized pediatric-only practices are also highlighted.",citedDomains:["citypointdental.com","brightkidsdental.com"],evidenceUrls:["https://citypointdental.com/family-dentistry"],competitorDomains:["brightkidsdental.com"],groundingSources:[],relatedTechnicalSignals:["Family dentistry page recently updated"],summary:"OpenAI recently started citing your family dentistry page for this query.",runHistory:Ya(["not-cited","not-cited","not-cited","not-cited","not-cited","cited"])}];Hm[0],Math.round(1/9*100),Math.round(2/9*100),Hm[1],Ya(["cited","cited","cited","cited","cited"]),Hm[2],Math.round(2/7*100),Math.round(3/7*100),Ya(["not-cited","not-cited","not-cited","cited"]);function Iq(e,n){return e.runs.find(s=>s.id===n)}function Vq(e,n){for(const s of e.projects){const r=s.visibilityEvidence.find(c=>c.id===n);if(r)return{project:s,evidence:r}}}function $q(e,n,s){if(e){const r=e.visibilityEvidence.find(c=>c.id===s);if(r)return{project:e,evidence:r}}if(n)return Vq(n,s)}const Gq={regression:"negative",gain:"positive",opportunity:"caution","first-citation":"positive","provider-pickup":"positive","persistent-gap":"caution","competitor-gained":"negative","competitor-lost":"neutral","gbp-lodging-gap":"negative","gbp-listing-discrepancy":"negative","gbp-cta-gap":"caution","gbp-description-missing":"caution","gbp-metric-drop":"negative","gbp-keyword-drop":"negative"},Hq={opportunity:"write","persistent-gap":"write","competitor-gained":"write","competitor-lost":"write",regression:"investigate",gain:"monitor","first-citation":"monitor","provider-pickup":"monitor","gbp-lodging-gap":"write","gbp-listing-discrepancy":"write","gbp-cta-gap":"write","gbp-description-missing":"write","gbp-metric-drop":"investigate","gbp-keyword-drop":"investigate"},Kq={regression:"lost",gain:"emerging",opportunity:"not-cited","first-citation":"emerging","provider-pickup":"emerging","persistent-gap":"not-cited","competitor-gained":"cited","competitor-lost":"not-cited","gbp-lodging-gap":"not-cited","gbp-listing-discrepancy":"not-cited","gbp-cta-gap":"not-cited","gbp-description-missing":"not-cited","gbp-metric-drop":"lost","gbp-keyword-drop":"lost"},Qq={regression:"Regression",gain:"Gain",opportunity:"Opportunity","first-citation":"First citation","provider-pickup":"Pickup","persistent-gap":"Gap","competitor-gained":"Competitor","competitor-lost":"Competitor","gbp-lodging-gap":"Lodging gap","gbp-listing-discrepancy":"Listing gap","gbp-cta-gap":"Booking CTA","gbp-description-missing":"Description gap","gbp-metric-drop":"Metric drop","gbp-keyword-drop":"Keyword drop"};function Zq(e){return{id:e.id,tone:Gq[e.type],title:e.title,detail:e.cause?.details??e.cause?.cause??"",actionLabel:e.recommendation?.action??Qq[e.type],actionGroup:Hq[e.type],affectedPhrases:[{query:e.query,evidenceId:"",provider:e.provider,citationState:Kq[e.type]}]}}function Fq(e){return e.filter(n=>!n.dismissed).map(Zq)}function a3(e){return{id:e.id,name:e.name,displayName:e.displayName,canonicalDomain:e.canonicalDomain,ownedDomains:e.ownedDomains??[],aliases:e.aliases??[],country:e.country,language:e.language,tags:e.tags,labels:e.labels,providers:e.providers??[],providerModels:e.providerModels??{},measurement:e.measurement,locations:e.locations??[],defaultLocation:e.defaultLocation??null,autoExtractBacklinks:e.autoExtractBacklinks??!1,configSource:e.configSource,configRevision:e.configRevision,createdAt:e.createdAt,updatedAt:e.updatedAt}}function ob(e){try{return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}catch{return e}}function Yq(e,n){if(!e)return"Waiting";if(!n)return"Running";const s=new Date(n).getTime()-new Date(e).getTime();if(s<1e3)return"<1s";const r=Math.floor(s/1e3);if(r<60)return`${r}s`;const c=Math.floor(r/60),f=r%60;return`${c}m ${f}s`}function n3(e){switch(e){case Te["answer-visibility"]:return"Answer visibility sweep";case Te["gsc-sync"]:return"GSC sync";case Te["inspect-sitemap"]:return"Sitemap inspection";case Te["ga-sync"]:return"GA sync";case Te["traffic-sync"]:return"Traffic sync";case Te["bing-inspect"]:return"Bing URL inspection";case Te["bing-inspect-sitemap"]:return"Bing sitemap inspection";case Te["site-audit"]:return"Site audit";case Te["backlink-extract"]:return"Backlink extract";case Te["aeo-discover-seed"]:return"Discovery (seed phase)";case Te["aeo-discover-probe"]:return"Discovery (probe phase)";case Te["gbp-sync"]:return"Business Profile sync";case Te["ads-sync"]:return"ChatGPT ads sync"}}function Xq(e){return e===Ys.manual?"Manual":e===Ys.scheduled?"Scheduled":e===Ys["config-apply"]?"Config apply":e}function nu(e,n){return{id:e.id,projectId:e.projectId,projectName:n,kind:e.kind,kindLabel:n3(e.kind),status:e.status,trigger:e.trigger??"manual",location:e.location??null,createdAt:e.createdAt,startedAt:e.startedAt?ob(e.startedAt):ob(e.createdAt),duration:Yq(e.startedAt??null,e.finishedAt??null),statusDetail:e.error?i3(e.error):Jq(e),summary:Wq(e),triggerLabel:Xq(e.trigger)}}function i3(e){const n=s0(e);return n.length>200?n.slice(0,200)+"…":n}function Jq(e){switch(e.status){case na.queued:return"Waiting for execution slot.";case na.running:return"Provider queries in progress.";case na.completed:return"All queries checked.";case na.partial:return"Run completed with some queries skipped.";case na.failed:return e.error?i3(e.error):"Run failed.";case na.cancelled:return"Run was cancelled.";default:return""}}function Wq(e){const n=n3(e.kind);switch(e.status){case na.queued:return`${n} queued`;case na.running:return`${n} in progress`;case na.completed:return`${n} completed`;case na.partial:return`${n} partially completed`;case na.failed:return`${n} failed`;case na.cancelled:return`${n} cancelled`;default:return e.status}}function eB(e,n,s,r){const c=[];let f=0;const g=new Set;if(s.length>0){const y=s.flatMap($=>$.snapshots??[]),x=new Map;for(const $ of y)if($.query){const L=`${$.query}::${$.provider}::${$.location??""}`;x.set(L,$)}const k=new Set(y.map($=>$.location??null));k.size===0&&k.add(null);const S=new Set(y.map($=>$.provider)),j=new Set(n.flatMap($=>Object.keys($.providerRuns??{}))),A=[...new Set([...S,...j])].sort(),z=A.length>0?A:["gemini"];for(const $ of n){if($.runs.length===0)continue;g.add($.query);const L=$.runs.at(-1),P=L?.transition??"not-cited";for(const V of z){const ne=[...k].filter(re=>x.has(`${$.query}::${V}::${re??""}`)),X=($.providerRuns?.[V]?.length??0)>0,ee=ne.length>0?ne:X?[null]:[];for(const re of ee){const he=re??"",q=x.get(`${$.query}::${V}::${he}`),ae=q?.model??null,Ae=ae?`${V}:${ae}`:null,de=$.providerRuns?.[V],ge=Ae?$.modelRuns?.[Ae]:void 0,qe=Ke=>Ke?.filter(Ye=>(Ye.location??null)===re),De=ne.length>0?qe(de):de,at=ne.length>0?qe(ge):ge,pe=(De?.length?De:null)??(at?.length?at:null),I=De?.length?"provider":at?.length?"model":"query",ie=pe?pe.at(-1).transition:P,ue=pe?pe.at(-1).visibilityTransition??(pe.at(-1).visibilityState==="visible"?"visible":"not-visible"):L?.visibilityTransition??(L?.visibilityState==="visible"?"visible":"not-visible"),_e=pe?.at(-1)?.citationState,le=pe?.at(-1)?.visibilityState,He=q?ie==="lost"?"lost":ie==="emerging"?"emerging":q.citationState===zc.cited?"cited":"not-cited":_e===zc.cited?"cited":"not-cited",J=q?.visibilityState??(le==="visible"?"visible":le==="pending"?"pending":"not-visible"),U=rb(pe||$.runs),K=lb(pe||$.runs),te=tB($,V),se=(pe??$.runs).map(Ke=>({runId:Ke.runId,citationState:Ke.citationState,createdAt:Ke.createdAt,model:te.get(Ke.runId)??null,answerMentioned:Ke.answerMentioned,visibilityState:Ke.visibilityState,visibilityTransition:Ke.visibilityTransition,mentionState:Ke.mentionState,mentionTransition:Ke.mentionTransition})),Ce=aB(se),rt=I==="provider"&&Ce.length<=1?"model":I,Ne=nB(se);c.push({id:`evidence_${e}_${f++}`,query:$.query,provider:q?.provider??V,model:q?.model??null,location:q?.location??re,citationState:He,answerMentioned:q?.answerMentioned,visibilityState:J,visibilityChangeLabel:cb(ue,K,{positive:"visible",negative:"not visible",first:"first visibility"}),changeLabel:cb(ie,U),answerSnippet:q?.answerText??"",citedDomains:q?.citedDomains??[],evidenceUrls:[],competitorDomains:q?.competitorOverlap??[],recommendedCompetitors:q?.recommendedCompetitors??[],matchedTerms:q?.matchedTerms??[],relatedTechnicalSignals:[],groundingSources:q?.groundingSources??[],searchQueries:q?.searchQueries??[],summary:iB(J,ue,$.query),runHistory:se,historyScope:rt,modelsSeen:Ce,modelTransitions:Ne})}}}}for(const y of r)g.has(y.query)||c.push({id:`evidence_${e}_${f++}`,query:y.query,provider:"",model:null,location:null,citationState:"pending",visibilityState:"pending",visibilityChangeLabel:"Awaiting first run",changeLabel:"Awaiting first run",answerSnippet:"",citedDomains:[],evidenceUrls:[],competitorDomains:[],recommendedCompetitors:[],matchedTerms:[],relatedTechnicalSignals:[],groundingSources:[],searchQueries:[],summary:`"${y.query}" has been added but no visibility run has been triggered yet.`,runHistory:[],historyScope:"query",modelsSeen:[],modelTransitions:[]});return c}function tB(e,n){const s=new Map,r=`${n}:`;for(const[c,f]of Object.entries(e.modelRuns??{})){if(!c.startsWith(r))continue;const g=c.slice(r.length),y=g==="unknown"?null:g;for(const x of f)s.set(x.runId,y)}return s}function aB(e){const n=new Set;for(const s of e)s.model&&n.add(s.model);return[...n]}function nB(e){const n=[];let s=null;for(const r of e){const c=r.model??null;c!==s&&s!==null&&n.push({runId:r.runId,createdAt:r.createdAt,fromModel:s,toModel:c}),s=c}return n}function rb(e){if(e.length===0)return 0;const n=e[e.length-1].citationState;let s=0;for(let r=e.length-1;r>=0&&e[r].citationState===n;r--)s++;return s}function lb(e){if(e.length===0)return 0;const n=e[e.length-1].visibilityState??"not-visible";let s=0;for(let r=e.length-1;r>=0&&(e[r].visibilityState??"not-visible")===n;r--)s++;return s}function cb(e,n,s){const r={positive:s?.positive??"cited",negative:s?.negative??"not cited",first:s?.first??"first citation"};switch(e){case"new":return"First observation";case"cited":case"visible":return n<=1?`${kr(r.positive)} in latest run`:`${kr(r.positive)} for ${n} runs`;case"lost":return"Lost since last run";case"emerging":return kr(r.first);case"not-cited":case"not-visible":return n<=1?`${kr(r.negative)} in latest run`:`${kr(r.negative)} across ${n} runs`;default:return e}}function kr(e){return e.charAt(0).toUpperCase()+e.slice(1)}function iB(e,n,s){switch(n){case"lost":return`Mention was lost for "${s}". Your brand no longer appeared in the latest answer.`;case"emerging":return`Your brand started appearing in AI answers for "${s}".`}switch(e){case"visible":return`Your brand or domain is mentioned in AI answers for "${s}".`;case"pending":return`"${s}" has been added but no run has been triggered yet.`;default:return`Your brand or domain was not mentioned in AI answers for "${s}".`}}function s3(e){const n=a3(e.project),s=eB(n.name,e.timeline,e.latestRunDetails,e.queries),c=[...e.runs].sort((f,g)=>g.createdAt.localeCompare(f.createdAt)).map(f=>nu(f,e.project.displayName||e.project.name));return e.overview?sB(n,e.overview,s,c):oB(n,s,c)}function sB(e,n,s,r){const c=Fq(n.topInsights);for(const f of n.attentionItems)f.id.startsWith("insight_")||c.push({id:f.id,tone:f.tone,title:f.title,detail:f.detail,actionLabel:f.actionLabel,actionGroup:"investigate",affectedPhrases:[]});return{project:e,dateRangeLabel:n.dateRangeLabel,contextLabel:n.contextLabel,mentionSummary:n.scores.mention,visibilitySummary:n.scores.visibility,mentionShareSummary:n.scores.mentionShare,queryCounts:{cited:n.queryCounts.citedQueries,total:n.queryCounts.totalQueries},gapQueries:n.scores.gapQueries,mentionGaps:n.scores.mentionGaps,indexCoverage:n.scores.indexCoverage,providerScores:n.providerScores,competitorPressure:n.scores.competitorPressure,runStatus:n.scores.runStatus,citationMovement:n.citationMovement,mentionMovement:n.mentionMovement,movementComparison:n.movementComparison,insights:c,visibilityEvidence:s,competitors:n.competitors.map(f=>({id:f.id,domain:f.domain,citationCount:f.citationCount,totalQueries:f.totalQueries,pressureLabel:f.pressureLabel,citedQueries:f.citedQueries,movement:"",notes:""})),recentRuns:r.slice(0,5),suggestedQueries:n.suggestedQueries}}function oB(e,n,s){const r={label:"",value:"No data",delta:"Loading…",tone:"neutral",description:"",tooltip:"",trend:[]};return{project:e,dateRangeLabel:"All time",contextLabel:`${e.country} / ${e.language.toUpperCase()}`,mentionSummary:{...r,label:"Mention Coverage"},visibilitySummary:{...r,label:"Citation Coverage"},mentionShareSummary:{...r,label:"Mention Share",breakdown:{projectMentionSnapshots:0,competitorMentionSnapshots:0,perCompetitor:[],snapshotsWithAnswerText:0,snapshotsTotal:0}},queryCounts:{cited:0,total:0},gapQueries:{...r,label:"Citation Gaps"},mentionGaps:{...r,label:"Mention Gaps"},indexCoverage:{...r,label:"Index Coverage"},providerScores:[],competitorPressure:{...r,label:"Competitor Pressure"},runStatus:{...r,label:"Run Status"},citationMovement:{gained:0,lost:0,tone:"neutral",hasPreviousRun:!1},mentionMovement:{gained:0,lost:0,tone:"neutral",hasPreviousRun:!1},movementComparison:{hasPreviousRun:!1,comparable:!1,querySetChanged:!1,previousRunAt:null,currentQueryCount:0,previousQueryCount:0,comparableQueryCount:0,addedQueryCount:0,removedQueryCount:0,addedQueries:[],removedQueries:[]},insights:[],visibilityEvidence:n,competitors:[],recentRuns:s.slice(0,5),suggestedQueries:{rows:[],totalCandidates:0,skippedAlreadyTracked:0}}}function rB(e){const n=a3(e.project),s=[...e.runs].sort((A,z)=>z.createdAt.localeCompare(A.createdAt)),r=s.find(A=>A.kind===Te["answer-visibility"])??s[0]??e.overview?.latestRun?.run??void 0,c=e.project.displayName||e.project.name,f=r?nu(r,c):lB(e.project.id,c),g=e.overview;if(!g)return{project:n,mentionScore:0,mentionDelta:"No data",mentionTone:"neutral",lastRun:f,insight:"No runs completed yet.",trend:[],competitorPressureLabel:"None"};const y=g.scores.mention,x=y.progress??0,k=g.queryCounts.mentionedQueries,S=g.queryCounts.totalQueries,j=g.providers.length;return{project:n,mentionScore:x,mentionDelta:S>0?`${k} of ${S} queries`:"No data",mentionTone:y.tone,providerCoverage:y.providerCoverage,lastRun:f,insight:S>0?`${k} of ${S} queries mentioned across ${j} provider${j===1?"":"s"}.`:"No runs completed yet.",trend:y.trend??[],competitorPressureLabel:g.scores.competitorPressure.value}}function lB(e,n){return{id:"none",projectId:e,projectName:n,kind:Te["answer-visibility"],kindLabel:"No runs yet",status:na.queued,trigger:Ys.manual,createdAt:"",startedAt:"",duration:"",statusDetail:"",summary:"No runs yet",triggerLabel:""}}function cB(e,n){const s=[],r=[],c=[];for(const g of e){r.push(s3(g)),c.push(rB(g));const y=[...g.runs].sort((x,k)=>k.createdAt.localeCompare(x.createdAt));for(const x of y)s.push(nu(x,g.project.displayName||g.project.name))}s.sort((g,y)=>y.createdAt.localeCompare(g.createdAt));const f=e.length>0;return{portfolioOverview:{projects:c,attentionItems:f?uB(r):[{id:"attention_setup",tone:"neutral",title:"No projects yet",detail:"Create your first project using the setup wizard, CLI, or API.",actionLabel:"Open setup",href:"/setup"}],recentRuns:s.slice(0,5),systemHealth:[{id:"api",label:"API",tone:"positive",detail:"Connected",meta:"Real-time data"},{id:"provider",label:"Gemini",tone:"positive",detail:"Configured",meta:"Provider active"}],...f?{}:{emptyState:{title:"No projects yet",detail:"Canonry becomes useful after one project, a small query set, and one competitor list are in place.",ctaLabel:"Launch setup",ctaHref:"/setup"}}},projects:r,runs:s,setup:{healthChecks:[{id:"api",label:"API reachable",detail:"API is responding.",state:"ready",guidance:"Required for project creation and run history."},{id:"provider",label:"Provider configured",detail:"Gemini key is configured.",state:"ready",guidance:"Required for answer-visibility sweeps."}],projectDraft:{name:"",canonicalDomain:"",country:"US",language:"en"},queryImportState:{mode:"paste",queryCount:0,preview:[]},competitorDraft:{domains:[],notes:"Use the CLI to add competitors."},launchState:{enabled:f,ctaLabel:f?"Trigger run":"Create a project first",summary:f?"Ready to run.":"Create a project first to launch a run."}},settings:{providerStatuses:(n?.providers??[]).map(g=>({name:g.name,displayName:g.displayName,keyUrl:g.keyUrl,modelHint:g.modelHint,model:g.model,defaultModel:g.defaultModel,state:g.configured?"ready":"needs-config",detail:g.configured?"Provider is configured.":"API key is missing.",quota:g.quota})),google:{state:n?.google?.configured?"ready":"needs-config",detail:n?.google?.configured?"Google OAuth app credentials are configured. Project-level GSC connections can be created from the dashboard.":"Google OAuth client ID and client secret are not configured yet."},bing:{state:n?.bing?.configured?"ready":"needs-config",detail:n?.bing?.configured?"Bing Webmaster Tools API key is configured. Project-level Bing connections can be created from the dashboard.":"Bing Webmaster Tools API key is not configured yet."},selfHostNotes:["Configuration is stored in ~/.canonry/config.yaml.","The local config file is the source of truth for authentication credentials.","Google OAuth app credentials and per-domain Google tokens are stored in local config, not the database.","Database is SQLite at ~/.canonry/data.db.","API key was auto-generated during canonry init."],bootstrapNote:"Use the UI, CLI, or ~/.canonry/config.yaml to manage settings. Authentication credentials persist to local config."}}}function uB(e){const n=[];for(const s of e){const r=s.visibilityEvidence.filter(f=>f.citationState==="lost");r.length>0&&n.push({id:`attention_${s.project.id}_lost`,tone:"negative",title:`${s.project.displayName||s.project.name} lost citations`,detail:`${r.length} quer${r.length>1?"ies":"y"} lost citation.`,actionLabel:"Open project",href:`/projects/${encodeURIComponent(s.project.name)}`});const c=s.recentRuns.filter(f=>f.status===na.running||f.status===na.queued);c.length>0&&n.push({id:`attention_${s.project.id}_active`,tone:"neutral",title:`${s.project.displayName||s.project.name} has active runs`,detail:`${c.length} run${c.length>1?"s":""} in progress.`,actionLabel:"View runs",href:"/runs"})}return n.length===0&&n.push({id:"attention_stable",tone:"positive",title:"All projects stable",detail:"No citation losses or active runs to flag."}),n}const o3=D.createContext(null);o3.Provider;function $r(){return D.useContext(o3)}function iu(e,n={}){const r=$r()?.dashboard??null,c=n.includeSettings??!0,{isAdmin:f}=Rr(),g=ia({...N0({client:oe,query:{kind:"answer-visibility"}}),enabled:!r,staleTime:Js,refetchInterval:V=>V.state.data?.some(ee=>ee.status==="running"||ee.status==="queued")?3e3:Js}),y=ia({...Wc({client:oe}),enabled:!r,refetchInterval:V=>{const ne=V.state.data,X=g.data?.some(re=>re.status==="running"||re.status==="queued");return(ne?.length??0)===0||!!X?T5:R5}}),x=ia({...zR({client:oe}),enabled:!r&&c&&f}),k=y.data??[],S=g.data??[],j=jw({queries:k.map(V=>{const ne=S.filter(re=>re.projectId===V.id),X=ne.filter(re=>(re.status==="completed"||re.status==="partial")&&re.kind==="answer-visibility"&&re.trigger!=="probe").sort((re,he)=>he.createdAt.localeCompare(re.createdAt)),ee=X.length>0?X[0].id:"no-run";return{queryKey:["project-overview-slim",V.id,ee],queryFn:async()=>{const re=await tv(V.name).catch(()=>null);return{project:V,runs:ne,queries:[],competitors:[],timeline:[],latestRunDetails:[],previousRunDetails:[],gscCoverage:null,bingCoverage:null,dbInsights:null,overview:re}},enabled:!r&&y.isSuccess&&g.isSuccess,staleTime:Xm}})}),A=j.every(V=>V.isSuccess),z=D.useMemo(()=>{if(r)return r;if(!y.data||!g.data||k.length>0&&!A)return null;const V=j.map(ne=>ne.data?{...ne.data,runs:S.filter(X=>X.projectId===ne.data.project.id)}:null).filter(ne=>ne!=null);return cB(V,x.data??null)},[r,y.data,g.data,x.data,A,j,k.length,S]),$=!r&&(y.isError||g.isError),L=!r&&!z&&!$,P=D.useCallback(async()=>{const V=[y.refetch(),g.refetch(),...j.map(ne=>ne.refetch())];c&&V.push(x.refetch()),await Promise.all(V)},[c,j,y.refetch,g.refetch,x.refetch]);return{dashboard:z,isLoading:L,isError:$,refetch:P}}const dB=20;function mB(e){const n=$r(),s=D.useMemo(()=>!n||!e?null:n.dashboard.projects.find(L=>L.project.name===e)??null,[n,e]),r=ia({...uR({client:oe,path:{name:e??""}}),enabled:!!e&&!s,staleTime:Xm,refetchOnWindowFocus:"always"}),c=ia({...SR({client:oe,path:{name:e??""},query:{kind:"answer-visibility"}}),enabled:!!e,staleTime:Js,refetchOnWindowFocus:"always",refetchInterval:L=>L.state.data?.some(ne=>ne.projectId===r.data?.id&&(ne.status==="running"||ne.status==="queued"))?3e3:Js}),f=r.data??null,g=D.useMemo(()=>f?(c.data??[]).filter(L=>L.projectId===f.id):[],[f,c.data]),{latestRunIds:y,previousRunIds:x,latestRunIdsKey:k,latestVisibilityRevision:S}=D.useMemo(()=>{const L=g.filter(ee=>(ee.status==="completed"||ee.status==="partial")&&ee.kind==="answer-visibility"&&ee.trigger!=="probe").sort((ee,re)=>re.createdAt.localeCompare(ee.createdAt)),P=L[0]?.createdAt??null,V=P?L.filter(ee=>ee.createdAt===P).map(ee=>ee.id):[],ne=L.find(ee=>ee.createdAt!==P)?.createdAt??null,X=ne?L.filter(ee=>ee.createdAt===ne).map(ee=>ee.id):[];return{latestRunIds:V,previousRunIds:X,latestRunIdsKey:[...V].sort().join(","),latestVisibilityRevision:P?`${P}:${[...V].sort().join(",")}`:"none"}},[g]),j=ia({queryKey:["project-dashboard-full",f?.id??null,k||"none"],queryFn:async()=>{if(!f||!e)return null;const[L,P,V,ne,X,ee,re,he,q]=await Promise.all([ev(e).catch(()=>[]),t5(e).catch(()=>[]),a5(e,void 0,dB).catch(()=>[]),y.length?Promise.all(y.map(ae=>bc(ae).catch(()=>null))).then(ae=>ae.filter(Ae=>Ae!=null)):Promise.resolve([]),x.length?Promise.all(x.map(ae=>bc(ae).catch(()=>null))).then(ae=>ae.filter(Ae=>Ae!=null)):Promise.resolve([]),y5(e).catch(()=>null),x5(e).catch(()=>null),k5(e).catch(()=>null),tv(e).catch(()=>null)]);return{project:f,runs:g,queries:L,competitors:P,timeline:V,latestRunDetails:ne,previousRunDetails:X,gscCoverage:ee,bingCoverage:re,dbInsights:he,overview:q}},enabled:!!f&&!!e&&c.isSuccess,staleTime:Xm,refetchOnWindowFocus:"always"}),A=D.useMemo(()=>j.data?s3({...j.data,runs:g}):s||null,[j.data,g,s]),z=D.useCallback(async()=>{await Promise.all([r.refetch(),c.refetch(),j.refetch()])},[r.refetch,c.refetch,j.refetch]),$=!A&&(r.isLoading||c.isLoading||j.isLoading);return{commandCenter:A,project:f,isLoading:$,isError:r.isError||c.isError||j.isError,latestVisibilityRevision:S,refetch:z}}const pB=["health"];async function hB(){const e=await S5("/health","API"),n=e.state==="ok"?{label:"Worker",state:"ok",detail:"In-process job runner"}:{label:"Worker",state:e.state,detail:`Depends on API health check · ${e.detail}`,statusCode:e.statusCode,hint:e.hint?`Worker status is inferred from API health in this deployment mode. ${e.hint}`:"Worker status is inferred from API health in this deployment mode."};return{apiStatus:e,workerStatus:n}}function D0(e,n){return ia({queryKey:pB,queryFn:hB,enabled:e,refetchInterval:15e3,initialData:n})}function fB(e){return ia({...Dx({client:oe,path:{id:e??""}}),enabled:!!e,refetchInterval:n=>{const s=n.state.data?.status;return s==="running"||s==="queued"?3e3:!1}})}function T0(){const e=qc(),n=Aw({strict:!1}),s=Nw({select:x=>x.location.pathname}),r=n.runId??null,c=n.evidenceId??null;return{runId:r,evidenceId:c,openRun:x=>{e({to:s,from:oa.to,search:k=>({...k,runId:x,evidenceId:void 0})})},openEvidence:x=>{e({to:s,from:oa.to,search:k=>({...k,evidenceId:x,runId:void 0})})},closeDrawer:()=>{e({to:s,from:oa.to,search:x=>({...x,runId:void 0,evidenceId:void 0})})}}}const gB={negative:"toast-card-negative",caution:"toast-card-caution",positive:"toast-card-positive",neutral:"toast-card-neutral"};function yB(e){if(e.cta)return`${e.cta.label}: ${e.title}`}function bB(){const e=D.useSyncExternalStore(E5,Mg,Mg),n=qc(),{openRun:s}=T0(),r=D.useCallback(f=>{Ym(f)},[]),c=D.useCallback(f=>{f.cta&&(f.cta.intent==="open-run-drawer"?s(f.cta.runId):n({to:"/runs"}),Ym(f.id))},[n,s]);return e.length===0?null:u.jsx("div",{className:"toast-viewport","aria-label":"Notifications",children:e.map(f=>u.jsxs("section",{role:f.tone==="negative"?"alert":"status","aria-live":f.tone==="negative"?"assertive":"polite","data-state":f.state,className:`toast-card ${gB[f.tone]}`,children:[u.jsxs("div",{className:"toast-copy",children:[u.jsx("p",{className:"toast-title",children:f.title}),f.detail?u.jsx("p",{className:"toast-detail",children:f.detail}):null,f.cta?u.jsx("button",{type:"button",className:"toast-action",onClick:()=>c(f),"aria-label":yB(f),children:f.cta.label}):null]}),u.jsx("button",{type:"button",onClick:()=>r(f.id),className:"toast-dismiss","aria-label":"Dismiss",children:u.jsx(ro,{className:"size-3.5"})})]},f.id))})}function Ar(e){switch(e){case Te["answer-visibility"]:return"Visibility sweep";case Te["gsc-sync"]:return"GSC sync";case Te["inspect-sitemap"]:return"Sitemap inspection";case Te["ga-sync"]:return"GA sync";case Te["traffic-sync"]:return"Traffic sync";case Te["bing-inspect"]:return"Bing URL inspection";case Te["bing-inspect-sitemap"]:return"Bing sitemap inspection";case Te["site-audit"]:return"Technical audit";case Te["backlink-extract"]:return"Backlink extract";case Te["aeo-discover-seed"]:return"Discovery (seed phase)";case Te["aeo-discover-probe"]:return"Discovery (probe phase)";case Te["gbp-sync"]:return"Business Profile sync";case Te["ads-sync"]:return"ChatGPT ads sync"}}function ub(e){return e==="running"?"Running":e==="queued"?"Queued":e==="partial"?"Partial":e==="completed"?"Completed":e==="failed"?"Failed":e==="cancelled"?"Cancelled":"Starting"}function vB(){const e=D.useSyncExternalStore(qx,On,On),n=D.useMemo(()=>Object.values(e.runs),[e.runs]),s=n.length>0,r=ia({...N0({client:oe}),enabled:s,staleTime:Js}),c=D.useMemo(()=>new Map((r.data??[]).map(y=>[y.id,y.status])),[r.data]);if(!s)return null;const f=n.map(y=>({...y,status:c.get(y.runId)??y.lastAnnouncedStatus})),g=f.length===1?Ar(f[0].kind):`${f.length} active tasks`;return u.jsxs("div",{className:"task-center",children:[u.jsxs("p",{className:"sr-only",role:"status","aria-live":"polite",children:[f.length," active ",f.length===1?"task":"tasks","."," ",f.map(y=>`${Ar(y.kind)} ${ub(y.status)}`).join(". "),"."]}),u.jsxs("details",{className:"task-center-details",children:[u.jsxs("summary",{className:"task-center-trigger",children:[u.jsx(Tb,{className:"size-3.5 shrink-0 motion-safe:animate-spin","aria-hidden":"true"}),u.jsx("span",{className:"task-center-summary",children:g}),u.jsx("span",{className:"task-center-count","aria-hidden":"true",children:f.length}),u.jsx(Rb,{className:"task-center-chevron size-3.5 shrink-0","aria-hidden":"true"})]}),u.jsxs("div",{className:"task-center-panel",children:[u.jsxs("div",{className:"task-center-heading",children:[u.jsx("span",{children:"Active tasks"}),u.jsx("span",{className:"tabular-nums text-faint",children:f.length})]}),u.jsx("ul",{className:"task-center-list",children:f.map(y=>u.jsxs("li",{className:"task-center-item",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("p",{className:"truncate text-[13px] font-medium text-strong",children:Ar(y.kind)}),u.jsx("p",{className:"mt-0.5 truncate text-xs text-muted",children:y.projectLabel??y.projectId})]}),u.jsx(ga,{tone:y.status==="failed"?"negative":y.status==="partial"?"caution":"neutral",children:ub(y.status)})]},y.runId))}),u.jsx(Je,{to:"/runs",className:"task-center-footer-link",children:"View all runs"})]})]})]})}function xB(e,n={}){const{threshold:s=80}=n,r=D.useRef(null),c=D.useRef({scrollHeight:0,wasAtEnd:!0});function f(x){return x.scrollHeight-x.scrollTop-x.clientHeight}function g(){const x=r.current;return x?f(x)<=s:!0}function y(){const x=r.current;x&&(x.scrollTop=x.scrollHeight,c.current.wasAtEnd=!0,c.current.scrollHeight=x.scrollHeight)}return D.useEffect(()=>{const x=r.current;if(!x)return;const k=()=>{c.current.wasAtEnd=f(x)<=s};return x.addEventListener("scroll",k,{passive:!0}),()=>x.removeEventListener("scroll",k)},[s]),D.useLayoutEffect(()=>{const x=r.current;if(!x)return;const k=x.scrollHeight;k>c.current.scrollHeight&&c.current.wasAtEnd&&(x.scrollTop=k),c.current.scrollHeight=k},e),D.useEffect(()=>{const x=r.current;if(!x||typeof ResizeObserver>"u")return;const k=new ResizeObserver(()=>{const S=x.scrollHeight;S>c.current.scrollHeight&&c.current.wasAtEnd&&(x.scrollTop=S),c.current.scrollHeight=S});return k.observe(x),x.firstElementChild&&k.observe(x.firstElementChild),()=>k.disconnect()},[]),{ref:r,scrollToEnd:y,isAtEnd:g}}async function R0(e){try{return await e.json()}catch{return{}}}function kB(){return typeof window<"u"&&window.__CANONRY_CONFIG__?.basePath?window.__CANONRY_CONFIG__.basePath.replace(/\/$/,"")+"/api/v1":"/api/v1"}const O0=kB();function q0(e){e===401&&Cp()}async function db(e){const n=await fetch(`${O0}/projects/${encodeURIComponent(e)}/agent/transcript`,{credentials:"include"});if(!n.ok){q0(n.status);const s=await R0(n);throw new Na(s.error?.message??`transcript fetch failed: ${n.status}`,n.status,s.error?.code)}return await n.json()}async function wB(e){const n=await fetch(`${O0}/projects/${encodeURIComponent(e)}/agent/transcript`,{method:"DELETE",credentials:"include"});if(!n.ok){q0(n.status);const s=await R0(n);throw new Na(s.error?.message??`reset failed: ${n.status}`,n.status,s.error?.code)}}async function SB({project:e,prompt:n,provider:s,modelId:r,scope:c,profile:f,signal:g,onEvent:y}){const x={prompt:n};s&&(x.provider=s),r&&(x.modelId=r),c&&(x.scope=c),f&&(x.profile=f);const k=await fetch(`${O0}/projects/${encodeURIComponent(e)}/agent/prompt`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(x),signal:g});if(!k.ok||!k.body){q0(k.status);const $=await R0(k);throw new Na($.error?.message??`prompt failed: ${k.status}`,k.status,$.error?.code)}const S=k.body.getReader(),j=new TextDecoder;let A="";const z=()=>{S.cancel().catch(()=>{})};g?.addEventListener("abort",z,{once:!0});try{for(;;){const{value:$,done:L}=await S.read();if(L)break;A+=j.decode($,{stream:!0});let P=A.indexOf(`
|
|
59
|
+
|
|
60
|
+
`);for(;P!==-1;){const V=A.slice(0,P);A=A.slice(P+2);for(const ne of V.split(`
|
|
61
|
+
`)){if(!ne.startsWith("data:"))continue;const X=ne.slice(5).trim();if(X)try{y(JSON.parse(X))}catch{}}P=A.indexOf(`
|
|
62
|
+
|
|
63
|
+
`)}}}finally{g?.removeEventListener("abort",z);try{S.releaseLock()}catch{}}}function r3(e){return!e||e.role!=="assistant"?"":e.content.filter(n=>n.type==="text").map(n=>n.text).join("")}const jB=[{label:"Status",prompt:"Quick status overview for this project — latest runs, current health, anything unusual."},{label:"Top insights",prompt:"Walk me through the 3 most severe active insights and what to do about each."},{label:"Last failed run",prompt:"If the latest run failed, dig into it and tell me what went wrong plus how to fix it."},{label:"Schedule",prompt:"What is the current sweep schedule, and is it appropriate given recent volatility?"}],AB=[{command:"/status",label:"Status",prompt:"Quick status overview for this project — latest runs, current health, anything unusual."},{command:"/insights",label:"Top insights",prompt:"Walk me through the 3 most severe active insights and what to do about each."},{command:"/last-run",label:"Last run",prompt:"Summarize the latest run for this project — provider mix, visibility changes, and anything that moved."},{command:"/last-failed",label:"Last failed run",prompt:"If the latest run failed, dig into it and tell me what went wrong plus how to fix it."},{command:"/run-sweep",label:"Run sweep now",prompt:"Run a new answer-visibility sweep for this project now and tell me when it lands."},{command:"/schedule",label:"Schedule",prompt:"What is the current sweep schedule, and is it appropriate given recent volatility?"},{command:"/queries",label:"Queries",prompt:"List the tracked queries for this project and flag any that are obvious duplicates or underperformers."},{command:"/competitors",label:"Competitors",prompt:"List this project's tracked competitors and call out which ones are showing up in answer citations."},{command:"/clear",label:"Clear conversation",action:"clear"}],fc=e=>`canonry:aero:provider:${e}`,mb=e=>`canonry:aero:scope:${e}`;function NB({projectName:e}){const[n,s]=D.useState(!1),[r,c]=D.useState(!1),[f,g]=D.useState([]),[y,x]=D.useState(""),[k,S]=D.useState(!1),[j,A]=D.useState([]),[z,$]=D.useState(""),[L,P]=D.useState(null),[V,ne]=D.useState(()=>typeof window>"u"?null:window.localStorage.getItem(fc(e))??null),[X,ee]=D.useState(()=>typeof window>"u"?"read-only":window.localStorage.getItem(mb(e))==="all"?"all":"read-only"),re=D.useRef(null),{ref:he}=xB([f,z,j]),q=D.useRef(null),[ae,Ae]=D.useState(0),de=D.useMemo(()=>{const J=y.trimStart();if(!J.startsWith("/"))return[];if(/\s/.test(J))return[];const U=J.toLowerCase();return AB.filter(K=>K.command.startsWith(U)||K.label.toLowerCase().includes(U.slice(1)))},[y]);D.useEffect(()=>{Ae(J=>de.length===0?0:Math.min(J,de.length-1))},[de.length]);const ge=ia({...fO({client:oe,path:{name:e}}),enabled:n,staleTime:6e4}),qe=D.useMemo(()=>{const J=ge.data?.providers??[];if(V){const K=J.find(te=>te.id===V&&te.configured);if(K)return K}const U=ge.data?.defaultProvider;return U?J.find(K=>K.id===U)??null:null},[V,ge.data]);D.useEffect(()=>{if(!ge.data||!V)return;ge.data.providers.find(U=>U.id===V&&U.configured)||(ne(null),window.localStorage.removeItem(fc(e)))},[ge.data,V,e]);const De=D.useCallback(J=>{ne(J),!(typeof window>"u")&&(J?window.localStorage.setItem(fc(e),J):window.localStorage.removeItem(fc(e)))},[e]),at=D.useCallback(()=>{ee(J=>{const U=J==="all"?"read-only":"all";return typeof window<"u"&&window.localStorage.setItem(mb(e),U),U})},[e]);D.useEffect(()=>{if(!n)return;const J=U=>{U.key==="Escape"&&(r?c(!1):s(!1))};return window.addEventListener("keydown",J),()=>window.removeEventListener("keydown",J)},[n,r]),D.useEffect(()=>{if(!n)return;let J=!1;P(null);const U=()=>{J||k||db(e).then(se=>{J||g(se.messages)}).catch(se=>{J||P(se instanceof Error?se.message:"Failed to load transcript")})};U();const te=window.setInterval(U,15e3);return()=>{J=!0,window.clearInterval(te)}},[n,e,k]),D.useEffect(()=>()=>{re.current?.abort()},[e]);async function pe(J){const U=J.trim();if(!U||k)return;P(null),x(""),S(!0),$(""),A([]);const K={role:"user",content:U,timestamp:Date.now()};g(se=>[...se,K]);const te=new AbortController;re.current=te;try{await SB({project:e,prompt:U,provider:V??void 0,scope:X,signal:te.signal,onEvent:I});const se=await db(e);g(se.messages)}catch(se){se.name!=="AbortError"&&P(se instanceof Error?se.message:"Prompt failed")}finally{S(!1),$(""),re.current=null}}function I(J){switch(J.type){case"message_update":$(r3(J.message));break;case"message_end":J.message.role==="assistant"&&$("");break;case"tool_execution_start":A(U=>[...U,{id:J.toolCallId,name:J.toolName,args:J.args,startedAt:Date.now()}]);break;case"tool_execution_end":A(U=>U.map(K=>K.id===J.toolCallId?{...K,endedAt:Date.now(),isError:J.isError,result:J.result}:K));break;case"error":P(J.message);break}}async function ie(){re.current?.abort();try{await wB(e),g([]),P(null)}catch(J){P(J instanceof Error?J.message:"Reset failed")}}const ue=f.length===0,_e=n&&r?"pointer-events-auto fixed inset-0 z-40 flex items-stretch justify-center bg-bg/70 p-4 sm:p-8 backdrop-blur-sm":"pointer-events-none fixed inset-x-0 bottom-0 z-40 flex justify-center p-3",le=r?"pointer-events-auto flex h-full w-full max-w-5xl flex-col overflow-hidden rounded-2xl border border-mono-800/80 bg-bg/95 shadow-2xl":"pointer-events-auto w-full max-w-3xl",He=r?"flex-1 overflow-y-auto px-6 py-5 text-sm text-strong":"max-h-[40vh] min-h-[120px] overflow-y-auto px-4 py-3 text-sm text-strong";return u.jsx("div",{className:_e,onClick:J=>{r&&J.target===J.currentTarget&&c(!1)},children:u.jsx("div",{className:le,children:n?u.jsxs("div",{className:r?"flex h-full flex-col":"flex flex-col overflow-hidden rounded-2xl border border-mono-800/80 bg-bg/95 shadow-xl backdrop-blur",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-mono-800/70 px-4 py-2.5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(jg,{className:"h-4 w-4 text-positive-400","aria-hidden":"true"}),u.jsx("span",{className:"text-sm font-medium text-heading",children:"Aero"}),u.jsx("span",{className:"text-[10px] uppercase tracking-wider text-muted",children:k?"working…":e})]}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx(_B,{providers:ge.data?.providers??[],active:qe,override:V,onPick:De,disabled:k}),u.jsx("button",{type:"button",onClick:Yt(ie),className:"rounded-md p-1.5 text-muted transition hover:bg-surface-inset hover:text-strong","aria-label":"Reset conversation",title:"Reset conversation",children:u.jsx(Ob,{className:"h-3.5 w-3.5","aria-hidden":"true"})}),u.jsx("button",{type:"button",onClick:()=>c(J=>!J),className:"rounded-md p-1.5 text-muted transition hover:bg-surface-inset hover:text-strong","aria-label":r?"Collapse":"Expand",title:r?"Collapse":"Expand",children:r?u.jsx(Ow,{className:"h-3.5 w-3.5","aria-hidden":"true"}):u.jsx(qw,{className:"h-3.5 w-3.5","aria-hidden":"true"})}),u.jsx("button",{type:"button",onClick:()=>{c(!1),s(!1)},className:"rounded-md p-1.5 text-muted transition hover:bg-surface-inset hover:text-strong","aria-label":"Close Aero",children:u.jsx(ro,{className:"h-4 w-4","aria-hidden":"true"})})]})]}),u.jsxs("div",{ref:he,className:He,children:[L&&u.jsx("div",{className:"mb-2 rounded-md border border-negative-700/40 bg-negative-950/40 px-3 py-2 text-xs text-negative-200",children:L}),ue&&!k&&u.jsxs("div",{className:"flex flex-col gap-3 py-2",children:[u.jsxs("p",{className:"text-sm text-secondary",children:["Ask about ",u.jsx("span",{className:"text-strong",children:e})," or choose a starting point."]}),u.jsx("div",{className:"flex flex-wrap gap-1.5",children:jB.map(J=>u.jsx("button",{type:"button",onClick:()=>{pe(J.prompt)},className:"rounded-md border border-base bg-bg-elevated/70 px-3 py-1.5 text-sm text-neutral transition hover:border-strong hover:bg-mono-800/70 hover:text-heading",children:J.label},J.label))})]}),TB(f,e,V,X),j.length>0&&u.jsx("div",{className:"mt-3 space-y-1.5",children:j.map(J=>u.jsx(l3,{trail:J},J.id))}),k&&z&&u.jsxs("div",{className:"mt-3",children:[u.jsx("div",{className:"mb-0.5 text-[10px] uppercase tracking-wider text-positive-400",children:"Aero"}),u.jsx(c3,{content:z})]}),k&&!z&&j.every(J=>J.endedAt!==void 0)&&u.jsx(BB,{})]}),u.jsx(CB,{projectName:e,activeProvider:qe,scope:X,onToggleScope:at,disabled:k}),u.jsxs("div",{className:"relative",children:[de.length>0&&u.jsx(zB,{matches:de,selectedIndex:ae,onHover:Ae,onPick:J=>{x(""),q.current?.focus(),J.action==="clear"?ie():pe(J.prompt)}}),u.jsxs("form",{className:"flex items-end gap-2 border-t border-mono-800/70 bg-bg/80 px-3 py-2.5",onSubmit:J=>{if(J.preventDefault(),de.length>0){const U=de[ae];x(""),U.action==="clear"?ie():pe(U.prompt);return}pe(y)},children:[u.jsx("textarea",{ref:q,value:y,onChange:J=>x(J.target.value),onKeyDown:J=>{if(de.length>0){if(J.key==="ArrowDown"){J.preventDefault(),Ae(U=>(U+1)%de.length);return}if(J.key==="ArrowUp"){J.preventDefault(),Ae(U=>(U-1+de.length)%de.length);return}if(J.key==="Tab"){J.preventDefault();const U=de[ae];x(`${U.command} `);return}if(J.key==="Escape"){J.preventDefault(),x("");return}}if(J.key==="Enter"&&!J.shiftKey)if(J.preventDefault(),de.length>0){const U=de[ae];x(""),U.action==="clear"?ie():pe(U.prompt)}else pe(y)},placeholder:"Ask Aero, or / for commands…",disabled:k,rows:r?3:1,className:"flex-1 resize-none bg-transparent text-sm text-heading placeholder:text-mono-600 focus:outline-none disabled:opacity-60"}),u.jsx("button",{type:"submit",disabled:k||!y.trim(),className:"inline-flex h-7 w-7 items-center justify-center rounded-md bg-positive-500 text-accent-fg transition hover:bg-positive-400 disabled:opacity-40","aria-label":"Send",children:u.jsx(Bw,{className:"h-3.5 w-3.5","aria-hidden":"true"})})]})]})]}):u.jsx("button",{type:"button",onClick:()=>s(!0),className:"flex w-full items-center justify-between rounded-lg border border-mono-800/80 bg-bg/95 px-4 py-2 text-left text-sm text-secondary shadow-lg transition hover:border-strong hover:bg-bg-elevated/90 hover:text-strong",children:u.jsxs("span",{className:"flex items-center gap-2",children:[u.jsx(jg,{className:"h-4 w-4 text-positive-400","aria-hidden":"true"}),"Ask Aero about ",e,"…"]})})})})}function _B({providers:e,active:n,override:s,onPick:r,disabled:c}){const[f,g]=D.useState(!1),y=D.useRef(null);if(D.useEffect(()=>{if(!f)return;const k=j=>{y.current?.contains(j.target)||g(!1)},S=j=>{j.key==="Escape"&&g(!1)};return window.addEventListener("mousedown",k),window.addEventListener("keydown",S),()=>{window.removeEventListener("mousedown",k),window.removeEventListener("keydown",S)}},[f]),e.length===0)return null;const x=n?.label.replace(/\s+\(.+\)$/,"")??"No provider";return u.jsxs("div",{ref:y,className:"relative",children:[u.jsxs("button",{type:"button",onClick:()=>g(k=>!k),disabled:c,className:"flex items-center gap-1 rounded-md px-2 py-1 text-sm text-secondary transition hover:bg-surface-inset hover:text-strong disabled:opacity-50","aria-label":"Switch agent model","aria-haspopup":"listbox","aria-expanded":f,title:n?`${n.label} · ${n.defaultModel}`:"Pick a provider",children:[u.jsx("span",{className:"font-medium text-strong",children:x}),u.jsx(Rb,{className:"h-3 w-3","aria-hidden":"true"})]}),f&&u.jsxs("div",{role:"listbox",className:"absolute right-0 top-full z-50 mt-1 w-64 overflow-hidden rounded-lg border border-base bg-bg shadow-xl",children:[u.jsx("div",{className:"border-b border-default px-3 py-2 text-sm font-medium text-secondary",children:"Answer engine"}),u.jsx("ul",{className:"max-h-72 overflow-y-auto py-1",children:e.map(k=>{const S=n?.id===k.id,j=s===k.id;return u.jsx("li",{children:u.jsxs("button",{type:"button",role:"option","aria-selected":S,disabled:!k.configured,onClick:()=>{k.configured&&(r(j?null:k.id),g(!1))},className:"flex w-full items-center gap-2 px-3 py-2.5 text-left text-sm transition enabled:hover:bg-bg-elevated disabled:cursor-not-allowed disabled:opacity-60",title:k.configured?k.defaultModel:`Add ${EB(k.id)} in Settings or your environment`,children:[u.jsx("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center",children:S?u.jsx(qb,{className:"h-3 w-3 text-positive-400","aria-hidden":"true"}):null}),u.jsx("span",{className:"min-w-0 flex-1 truncate font-medium text-heading",children:k.label.replace(/\s+\(.+\)$/,"")}),j&&u.jsx("span",{className:"rounded-md border border-positive-800/60 bg-positive-950/60 px-2 py-0.5 text-[11px] text-positive",children:"Pinned"}),!k.configured&&u.jsx("span",{className:"rounded-md border border-base px-2 py-0.5 text-[11px] text-secondary",children:"Needs setup"})]})},k.id)})}),s&&u.jsx("button",{type:"button",onClick:()=>{r(null),g(!1)},className:"w-full border-t border-default px-3 py-2 text-left text-[11px] text-secondary transition hover:bg-bg-elevated hover:text-heading",children:"Reset to auto-detected default"})]})]})}function CB({projectName:e,activeProvider:n,scope:s,onToggleScope:r,disabled:c}){const f=n?.label.replace(/\s+\(.+\)$/,"")??null,g=s==="all";return u.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-t border-mono-800/70 bg-bg/80 px-3 pt-2 text-sm text-secondary",children:[u.jsx("span",{className:"font-medium text-strong",children:e}),f&&u.jsxs(u.Fragment,{children:[u.jsx("span",{"aria-hidden":"true",children:"·"}),u.jsx("span",{children:f})]}),u.jsx("button",{type:"button",onClick:r,disabled:c,className:`ml-auto inline-flex items-center rounded-md border px-2 py-1 text-sm font-medium transition disabled:opacity-50 ${g?"border-caution-800/60 bg-caution-950/40 text-caution hover:border-caution-700 hover:text-caution-200":"border-base bg-bg-elevated/70 text-secondary hover:border-strong hover:text-strong"}`,title:g?"Aero can invoke write tools (run sweep, dismiss insight, etc). Click to restrict.":"Aero is restricted to read-only tools. Click to allow writes.",children:g?"Can make changes":"Read only"})]})}function zB({matches:e,selectedIndex:n,onHover:s,onPick:r}){return u.jsxs("div",{className:"absolute inset-x-3 bottom-full mb-2 overflow-hidden rounded-lg border border-base bg-bg/98 shadow-2xl",children:[u.jsx("div",{className:"border-b border-default px-3 py-1.5 text-[10px] uppercase tracking-wider text-muted",children:"Commands"}),u.jsx("ul",{role:"listbox",className:"max-h-72 overflow-y-auto py-1",children:e.map((c,f)=>{const g=f===n;return u.jsx("li",{children:u.jsxs("button",{type:"button",role:"option","aria-selected":g,onMouseEnter:()=>s(f),onClick:()=>r(c),className:`flex w-full items-center gap-3 px-3 py-2 text-left text-sm transition ${g?"bg-bg-elevated text-heading":"text-neutral hover:bg-bg-elevated/60"}`,children:[u.jsx("span",{className:"font-medium",children:c.label}),u.jsx("span",{className:"ml-auto font-mono text-[11px] text-secondary",children:c.command})]})},c.command)})})]})}function EB(e){switch(e){case"claude":return"ANTHROPIC_API_KEY";case"openai":return"OPENAI_API_KEY";case"gemini":return"GOOGLE_API_KEY";case"zai":return"ZAI_API_KEY";case"deepinfra":return"DEEPINFRA_TOKEN"}}function DB(e,n){const s=e.timestamp??0;return`${e.role}:${s}:${n}`}function TB(e,n,s,r){const c=[];for(let f=0;f<e.length;f++){const g=e[f],y=DB(g,f);if(g.role==="user"){const x=typeof g.content=="string"?g.content:JSON.stringify(g.content);if(x.startsWith("[system]"))continue;c.push(u.jsx(RB,{text:x,projectName:n,providerOverride:s,scope:r},y));continue}if(g.role==="assistant"){const x=new Map;let k=f+1;for(;k<e.length&&e[k].role==="toolResult";){const A=e[k];x.set(A.toolCallId,A),k++}const S=qB(g,x,g.timestamp??0),j=r3(g);c.push(u.jsxs(D.Fragment,{children:[S.length>0&&u.jsx("div",{className:"mt-3 space-y-1.5",children:S.map(A=>u.jsx(l3,{trail:A},A.id))}),j.trim()&&u.jsxs("div",{className:"mt-3",children:[u.jsx("div",{className:"mb-0.5 text-[10px] uppercase tracking-wider text-positive-400",children:"Aero"}),u.jsx(c3,{content:j})]})]},y)),f=k-1;continue}}return c}function RB({text:e,projectName:n,providerOverride:s,scope:r}){const[c,f]=D.useState(!1),g=D.useMemo(()=>OB(n,e,s,r),[n,e,s,r]);async function y(){try{await navigator.clipboard.writeText(g),f(!0),window.setTimeout(()=>f(!1),1500)}catch{}}return u.jsxs("div",{className:"group relative mt-3 rounded-md bg-bg-elevated/60 px-3 py-2 text-strong",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-muted",children:"You"}),u.jsx("button",{type:"button",onClick:Yt(y),className:"inline-flex items-center gap-1 rounded border border-mono-800/70 bg-bg/60 px-1.5 py-0.5 text-[10px] text-secondary opacity-0 transition hover:border-strong hover:text-heading group-hover:opacity-100 focus:opacity-100","aria-label":"Copy as CLI command",title:g,children:c?u.jsxs(u.Fragment,{children:[u.jsx(qb,{className:"h-2.5 w-2.5 text-positive-400","aria-hidden":"true"}),"Copied"]}):u.jsxs(u.Fragment,{children:[u.jsx(Pw,{className:"h-2.5 w-2.5","aria-hidden":"true"}),"Copy as CLI"]})})]}),u.jsx("div",{className:"whitespace-pre-wrap",children:e})]})}function OB(e,n,s,r){const c=["canonry","agent","ask",pb(e),pb(n)];return s&&c.push("--provider",s),r==="read-only"&&c.push("--scope","read-only"),c.join(" ")}function pb(e){return`'${e.replace(/'/g,"'\\''")}'`}function qB(e,n,s){const r=[];for(const c of e.content){if(c.type!=="toolCall")continue;const f=c,g=n.get(f.id);r.push({id:f.id,name:f.name,args:f.arguments,startedAt:s,endedAt:g?.timestamp,isError:g?.isError,result:g?.content})}return r}function l3({trail:e}){const[n,s]=D.useState(!1),r=e.endedAt===void 0,c=!r&&e.isError===!0,f=e.endedAt!=null?e.endedAt-e.startedAt:null,g=f==null||f<0?null:f<1e3?`${f}ms`:`${(f/1e3).toFixed(1)}s`,y=c?"border-negative-800/50":r?"border-positive-800/50":"border-mono-800/70",x=c?"bg-negative-950/20":r?"bg-positive-950/20":"bg-surface-hover";return u.jsxs("div",{className:`rounded-md border ${y} ${x} font-mono`,children:[u.jsxs("button",{type:"button",onClick:()=>s(k=>!k),className:"flex w-full items-center gap-2 px-2.5 py-1.5 text-left","aria-expanded":n,children:[u.jsx("span",{className:"flex h-3.5 w-3.5 shrink-0 items-center justify-center",children:r?u.jsx(Tb,{className:"h-3 w-3 animate-spin text-positive-400","aria-hidden":"true"}):c?u.jsx(Bb,{className:"h-3 w-3 text-negative-400","aria-hidden":"true"}):u.jsx(Mw,{className:"h-3 w-3 text-muted","aria-hidden":"true"})}),u.jsx("span",{className:"text-[11px] font-semibold text-heading",children:e.name}),u.jsxs("span",{className:"ml-auto flex items-center gap-2 text-[10px] text-muted",children:[r?u.jsx("span",{className:"text-positive-400",children:"running…"}):u.jsxs(u.Fragment,{children:[u.jsx("span",{children:c?"failed":"ok"}),g&&u.jsx("span",{children:g})]}),u.jsx(jp,{className:`h-3 w-3 transition-transform ${n?"rotate-90":""}`,"aria-hidden":"true"})]})]}),n&&u.jsxs("div",{className:"border-t border-default px-2.5 py-2 text-[11px] text-secondary",children:[u.jsx("div",{className:"mb-1 text-[9px] uppercase tracking-wider text-faint",children:"Args"}),u.jsx("pre",{className:"mb-2 overflow-x-auto whitespace-pre-wrap break-all text-[10px] text-neutral",children:hb(e.args)}),!r&&e.result!==void 0&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"mb-1 text-[9px] uppercase tracking-wider text-faint",children:c?"Error":"Result"}),u.jsx("pre",{className:"overflow-x-auto whitespace-pre-wrap break-all text-[10px] text-neutral",children:hb(e.result)})]})]})]})}function hb(e){try{const n=typeof e=="string"?e:JSON.stringify(e,null,2);return n.length>2e3?`${n.slice(0,2e3)}
|
|
64
|
+
… (${n.length-2e3} more chars)`:n}catch{return String(e)}}function c3({content:e}){return u.jsx("div",{className:"text-heading",children:u.jsx(Ww,{components:{h1:n=>u.jsx("h1",{...n,className:"mt-3 mb-2 text-base font-semibold text-primary"}),h2:n=>u.jsx("h2",{...n,className:"mt-3 mb-2 text-sm font-semibold text-primary"}),h3:n=>u.jsx("h3",{...n,className:"mt-3 mb-1.5 text-sm font-semibold text-heading"}),h4:n=>u.jsx("h4",{...n,className:"mt-2 mb-1 text-xs font-semibold uppercase tracking-wide text-neutral"}),p:n=>u.jsx("p",{...n,className:"mb-2 leading-relaxed"}),ul:n=>u.jsx("ul",{...n,className:"mb-2 ml-4 list-disc space-y-1"}),ol:n=>u.jsx("ol",{...n,className:"mb-2 ml-4 list-decimal space-y-1"}),li:n=>u.jsx("li",{...n,className:"marker:text-mono-600"}),strong:n=>u.jsx("strong",{...n,className:"font-semibold text-primary"}),em:n=>u.jsx("em",{...n,className:"text-strong"}),code:({children:n,...s})=>u.jsx("code",{...s,className:"rounded bg-mono-800/70 px-1 py-0.5 font-mono text-[12px] text-positive-200",children:n}),pre:n=>u.jsx("pre",{...n,className:"mb-2 overflow-x-auto rounded-md border border-base bg-bg-elevated/70 p-3 font-mono text-xs text-strong"}),a:n=>u.jsx("a",{...n,className:"text-positive-400 underline decoration-positive-700 hover:decoration-positive-400",target:"_blank",rel:"noopener noreferrer"}),table:n=>u.jsx("div",{className:"mb-2 overflow-x-auto",children:u.jsx("table",{...n,className:"w-full border-collapse text-xs"})}),thead:n=>u.jsx("thead",{...n,className:"border-b border-base"}),th:n=>u.jsx("th",{...n,className:"px-2 py-1 text-left font-semibold text-neutral"}),tr:n=>u.jsx("tr",{...n,className:"border-b border-mono-900"}),td:n=>u.jsx("td",{...n,className:"px-2 py-1 text-strong"}),blockquote:n=>u.jsx("blockquote",{...n,className:"mb-2 border-l-2 border-strong pl-3 italic text-secondary"}),hr:()=>u.jsx("hr",{className:"my-3 border-base"})},children:e})})}function BB(){return u.jsxs("div",{className:"mt-3 flex items-center gap-2",children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-positive-400",children:"Aero"}),u.jsxs("div",{className:"flex items-center gap-1","aria-label":"Aero is thinking",children:[u.jsx("span",{className:"aero-dot h-1.5 w-1.5 rounded-full bg-positive-400/80"}),u.jsx("span",{className:"aero-dot aero-dot-2 h-1.5 w-1.5 rounded-full bg-positive-400/60"}),u.jsx("span",{className:"aero-dot aero-dot-3 h-1.5 w-1.5 rounded-full bg-positive-400/40"})]})]})}function MB(){const e=Ab(),n=/^\/projects\/([^/]+)/.exec(e.pathname),s=n?decodeURIComponent(n[1]):null,r=ia({...Wc({client:oe}),enabled:s!==null,staleTime:6e4});if(!s)return null;const c=r.data??[],f=c.find(g=>g.id===s)??c.find(g=>g.name===s);return f?u.jsx(NB,{projectName:f.name},f.name):null}const PB={project:"getApiV1ProjectsByName",google:"getApiV1ProjectsByNameGoogle",gsc:"getApiV1ProjectsByNameGoogleGsc",bing:"getApiV1ProjectsByNameBing",ga:"getApiV1ProjectsByNameGa",gbp:"getApiV1ProjectsByNameGbp",ads:"getApiV1ProjectsByNameAds",traffic:"getApiV1ProjectsByNameTraffic",discovery:"getApiV1ProjectsByNameDiscover",researchRuns:"getApiV1ProjectsByNameResearchRuns",technicalAeo:"getApiV1ProjectsByNameTechnicalAeo",runs:"getApiV1ProjectsByNameRuns"};function un(e,n){const s=PB[n];return e.invalidateQueries({predicate:r=>{const c=r.queryKey[0];return typeof c?._id=="string"&&c._id.startsWith(s)}})}function Rc(e,n,s){switch(e.invalidateQueries({queryKey:A0({client:oe})}),e.invalidateQueries({queryKey:ho({client:oe})}),un(e,"runs"),n){case Te["answer-visibility"]:return;case Te["backlink-extract"]:return;case Te["site-audit"]:un(e,"technicalAeo");return;case Te["gsc-sync"]:case Te["inspect-sitemap"]:un(e,"gsc");return;case Te["ga-sync"]:un(e,"ga");return;case Te["traffic-sync"]:un(e,"ga"),un(e,"traffic");return;case Te["bing-inspect"]:case Te["bing-inspect-sitemap"]:un(e,"bing");return;case Te["aeo-discover-seed"]:case Te["aeo-discover-probe"]:return;case Te["gbp-sync"]:un(e,"gbp");return;case Te["ads-sync"]:un(e,"ads");return;default:return n}}const fb=[{label:"GitHub",href:"https://github.com/Canonry/canonry",Icon:Qw},{label:"Docs",href:"https://github.com/Canonry/canonry/tree/main/docs",Icon:Zw},{label:"Changelog",href:"https://github.com/Canonry/canonry/releases",Icon:Fw}],gb=e=>({label:e,state:"checking",detail:"Checking service health"}),UB={apiStatus:gb("API"),workerStatus:gb("Worker")};function LB(e){return e==="completed"?"positive":e==="partial"?"caution":"negative"}function IB(e){const n=Ar(e.kind);return e.status==="completed"?`${n} completed`:e.status==="partial"?`${n} completed with partial results`:e.status==="cancelled"?`${n} cancelled`:`${n} failed`}function VB(e,n){return e.error?`${n}: ${s0(e.error)}`:e.location?`${n} · ${e.location}`:n}function yb(e,n,s){if(n)return n;const r=s.find(c=>c.id===e);return r?.displayName||r?.name||e}function $B(e,n){return[e.completed>0?`${e.completed} completed`:null,e.partial>0?`${e.partial} partial`:null,e.failed>0?`${e.failed} failed`:null,e.cancelled>0?`${e.cancelled} cancelled`:null,n>0?`${n} skipped at queue time`:null].filter(Boolean).join(", ")}function GB(e){return e.failed>0||e.cancelled>0?"negative":e.partial>0?"caution":"positive"}function HB(){const e=yi(),n=D.useSyncExternalStore(qx,On,On),s=Object.keys(n.runs).length>0||Object.keys(n.batches).length>0,r=ia({...N0({client:oe}),enabled:s,staleTime:Js,refetchInterval:3e3}),c=ia({...Wc({client:oe}),enabled:s}),f=D.useRef({}),g=D.useCallback(()=>{r.refetch()},[r.refetch]);return D.useEffect(()=>{s&&g()},[s,g]),D.useEffect(()=>{if(!s||typeof window>"u")return;const y=()=>{document.visibilityState==="visible"&&g()};return window.addEventListener("focus",g),document.addEventListener("visibilitychange",y),()=>{window.removeEventListener("focus",g),document.removeEventListener("visibilitychange",y)}},[s,g]),D.useEffect(()=>{const y=r.data??[],x=c.data??[],k=Object.fromEntries(y.map(j=>[j.id,j])),S=Object.fromEntries(y.map(j=>[j.id,j.status]));for(const j of Object.values(n.runs)){const A=k[j.runId];if(!A||!NO(A.status)||(f.current[A.id]??j.lastAnnouncedStatus)===A.status)continue;const $=x.find(P=>P.id===A.projectId);if($&&Rc(e,A.kind,$.name),j.sourceAction==="run-all"){Im(A.id);continue}const L=yb(A.projectId,j.projectLabel,x);sa({title:IB(A),detail:VB(A,L),tone:LB(A.status),dedupeKey:`run:${A.id}`,dedupeMode:"replace",cta:{label:"View run",intent:"open-run-drawer",runId:A.id}}),Im(A.id)}if(r.data!==void 0){const j=new Set(y.map(z=>z.id)),A=CO(Object.values(n.runs),j,Date.now(),_O);for(const z of A){const $=x.find(L=>L.id===z.projectId);$&&Rc(e,z.kind,$.name),z.sourceAction!=="run-all"&&sa({title:`${Ar(z.kind)} status unavailable`,detail:yb(z.projectId,z.projectLabel,x),tone:"neutral",dedupeKey:`run-stale:${z.runId}`,dedupeMode:"replace"}),Im(z.runId)}}for(const j of Object.values(n.batches)){const A=zO(j.runIds,k);A.finished&&(sa({title:"Run-all batch finished",detail:$B(A,j.skippedCount),tone:GB(A),dedupeKey:`batch:${j.batchId}`,dedupeMode:"replace",cta:{label:"View runs",intent:"go-to-runs"}}),AO(j.batchId))}f.current=S},[c.data,r.data,n,e]),null}function KB(){const{account:e,isAdmin:n}=Rr(),s=$r(),r=D.useMemo(()=>Jb(),[]),c=D.useMemo(V4,[]),f=D.useMemo($4,[]),g=D.useMemo(G4,[]),{dashboard:y,isLoading:x,refetch:k}=iu(void 0,{includeSettings:!r}),A=D0(!s,s?.health).data??s?.health??UB,z=Ab(),{runId:$,evidenceId:L,closeDrawer:P}=T0(),[V,ne]=D.useState(!1),[X,ee]=D.useState(()=>{if(typeof window>"u")return!1;try{return window.localStorage.getItem("canonry:sidebarHidden")==="true"}catch{return!1}}),[re,he]=D.useState(()=>{if(typeof window>"u")return null;try{return window.localStorage.getItem("canonry:dismissedUpdateVersion")}catch{return null}}),[q]=D.useState(()=>typeof window>"u"?null:new URLSearchParams(window.location.search).get("force-update")),ae=q?{current:A.apiStatus.version??"0.0.0",latest:q,url:"https://www.npmjs.com/package/@canonry/canonry",upgradeCommand:"npm install -g @canonry/canonry"}:A.apiStatus.updateAvailable,Ae=g&&ae&&ae.latest!==re,de=()=>{if(ae){try{window.localStorage.setItem("canonry:dismissedUpdateVersion",ae.latest)}catch{}he(ae.latest)}},ge=()=>{const U=!X;try{U?window.localStorage.setItem("canonry:sidebarHidden","true"):window.localStorage.removeItem("canonry:sidebarHidden")}catch{}ee(U)},qe=fB($),De=qe.data??null,at=qe.isLoading;D.useEffect(()=>{De&&De.status!=="running"&&De.status!=="queued"&&k()},[De?.status,k]),D.useEffect(()=>{ne(!1)},[z.pathname]),D.useEffect(()=>{if(typeof window>"u"||!$&&!L)return;const U=K=>{K.key==="Escape"&&P()};return window.addEventListener("keydown",U),()=>{window.removeEventListener("keydown",U)}},[$,L,P]);const pe=y??s?.dashboard??null,I=z.pathname==="/setup"&&pe!==null&&pe.portfolioOverview.projects.length===0,ie=I?"app-shell-focus":X?"app-shell-sidebar-hidden":"",ue=$?(pe?Iq(pe,$):void 0)??(De?nu(De,pe?.projects.find(U=>U.project.id===De.projectId)?.project.displayName??pe?.projects.find(U=>U.project.id===De.projectId)?.project.name??"Unknown project"):void 0):void 0,_e=D.useMemo(()=>qq(z.pathname,pe),[z.pathname,pe]),{commandCenter:le}=mB(_e),He=D.useMemo(()=>{if(L)return $q(le,pe,L)},[L,le,pe]),J=(()=>{const U=z.pathname;if(U==="/")return"Portfolio";if(U==="/projects")return"Projects";if(U==="/runs")return"Runs";if(U==="/history")return"History";if(U==="/settings")return"Settings";if(U==="/setup")return"Setup";if(U==="/backlinks")return"Backlink data";if(U==="/traffic"||U.startsWith("/traffic/"))return"Traffic sources";if(U.startsWith("/projects/")){const te=U.split("/").filter(Boolean)[1];if(te&&pe){const se=pe.projects.find(Ce=>Ce.project.id===te);if(se)return se.project.name}return"Project"}return"Not found"})();if(D.useEffect(()=>{const U=lR(r?.theme);if(!U)return;const K=document.createElement("link");return K.rel="stylesheet",K.href=U,document.head.appendChild(K),()=>{document.head.removeChild(K)}},[r]),r){const U=!r.views||r.views.includes(tR(z.pathname));return u.jsxs("div",{className:"app-shell app-shell-embed","data-theme":oR(r.theme),style:rR(r.theme),children:[u.jsx("a",{className:"skip-link",href:"#content",children:"Skip to content"}),u.jsx("main",{id:"content",className:"page-shell",children:U?u.jsx(Km,{}):u.jsx("div",{className:"embed-view-unavailable",role:"status",children:"This view is not available in embed mode."})})]})}return u.jsxs("div",{className:`app-shell ${ie}`,children:[u.jsx("a",{className:"skip-link",href:"#content",children:"Skip to content"}),!I&&!X&&u.jsxs("aside",{id:"desktop-sidebar",className:"sidebar","aria-label":"Primary navigation",children:[u.jsx("div",{className:"sidebar-brand",children:u.jsx(ib,{version:A.apiStatus.version,updateAvailable:Ae?ae:null,onDismissUpdate:de})}),u.jsxs("nav",{className:"sidebar-nav",children:[u.jsxs(Je,{to:"/",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!0},children:[u.jsx(Uw,{className:"sidebar-icon"}),u.jsx("span",{children:"Portfolio"})]}),u.jsxs(Je,{to:"/projects",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!1},children:[u.jsx(Lw,{className:"sidebar-icon"}),u.jsx("span",{children:"Projects"})]}),u.jsxs(Je,{to:"/runs",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!0},children:[u.jsx(Iw,{className:"sidebar-icon"}),u.jsx("span",{children:"Runs"})]}),u.jsxs(Je,{to:"/history",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!0},children:[u.jsx(Vw,{className:"sidebar-icon"}),u.jsx("span",{children:"History"})]}),u.jsxs(Je,{to:"/traffic",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!1},children:[u.jsx($w,{className:"sidebar-icon"}),u.jsx("span",{children:"Traffic sources"})]}),u.jsxs(Je,{to:"/backlinks",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!0},children:[u.jsx(Gw,{className:"sidebar-icon"}),u.jsx("span",{children:"Backlink data"})]}),n&&u.jsxs(Je,{to:"/settings",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!0},children:[u.jsx(Hw,{className:"sidebar-icon"}),u.jsx("span",{children:"Settings"})]}),x?u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"sidebar-section-title",children:"Tracked projects"}),[1,2,3].map(U=>u.jsxs("div",{className:"sidebar-skeleton-item",children:[u.jsx("span",{className:"skeleton-circle size-2"}),u.jsx("span",{className:"skeleton-text flex-1",style:{width:`${50+U*15}%`}})]},U))]}):pe&&pe.projects.length>0?u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"sidebar-section-title",children:"Tracked projects"}),pe.projects.map(U=>{const K=U.visibilitySummary.tone;return u.jsxs(Je,{to:"/projects/$projectName",params:{projectName:U.project.name},className:"sidebar-project",activeProps:{className:"sidebar-project sidebar-project-active"},children:[u.jsx("span",{className:`sidebar-dot sidebar-dot-${K}`}),u.jsx("span",{children:U.project.displayName||U.project.name})]},U.project.id)})]}):x?null:u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"sidebar-section-title",children:"Resources"}),n&&u.jsxs(Je,{to:"/setup",className:"sidebar-link",activeProps:{className:"sidebar-link sidebar-link-active"},activeOptions:{exact:!0},children:[u.jsx(Kw,{className:"sidebar-icon"}),u.jsx("span",{children:"Setup"})]})]})]}),e&&u.jsxs("div",{className:"sidebar-account",children:[u.jsxs("div",{className:"sidebar-account-identity",children:[u.jsx("span",{className:"sidebar-account-name",children:e.name}),e.role==="viewer"?u.jsx("span",{className:"sidebar-account-role",children:"View only"}):null]}),u.jsx(Ee,{type:"button",variant:"ghost",size:"sm",onClick:Yt(async()=>{await qg(),window.location.reload()}),children:"Sign out"})]}),c?u.jsx("div",{className:"sidebar-footer",children:fb.map(({label:U,href:K,Icon:te})=>u.jsx("a",{className:"sidebar-footer-icon",href:K,target:"_blank",rel:"noopener noreferrer",title:U,"aria-label":U,children:u.jsx(te,{className:"size-4"})},K))}):null]}),u.jsxs("div",{className:"main-area",children:[u.jsxs("header",{className:"topbar",children:[u.jsxs("div",{className:"topbar-left",children:[!I&&u.jsx(Ee,{className:"sidebar-privacy-toggle",variant:"ghost",size:"icon",type:"button","aria-label":X?"Show sidebar":"Hide sidebar","aria-controls":X?void 0:"desktop-sidebar","aria-expanded":!X,title:X?"Show sidebar":"Hide sidebar",onClick:ge,children:X?u.jsx(Yw,{className:"size-4"}):u.jsx(Xw,{className:"size-4"})}),u.jsx("div",{className:"topbar-brand-mobile",children:u.jsx(ib,{compact:!0})}),u.jsxs("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:[u.jsx(Je,{to:"/",children:"Home"}),u.jsx(jp,{className:"breadcrumb-sep size-3"}),u.jsx("span",{className:"breadcrumb-current",children:J})]})]}),u.jsxs("div",{className:"topbar-actions",children:[u.jsx(vB,{}),u.jsxs("div",{className:"health-pill-row",children:[u.jsxs("span",{className:`health-pill health-pill-${A.apiStatus.state}`,title:oo(A.apiStatus),children:["API ",A.apiStatus.state==="ok"?"ok":A.apiStatus.state]}),u.jsxs("span",{className:`health-pill health-pill-${A.workerStatus.state}`,title:oo(A.workerStatus),children:["Worker ",A.workerStatus.state==="ok"?"ok":A.workerStatus.state]})]}),u.jsxs(Ee,{className:"nav-toggle",variant:"secondary",size:"icon",type:"button","aria-expanded":V,"aria-controls":"mobile-nav",onClick:()=>ne(U=>!U),children:[u.jsx(Jw,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"Open navigation"})]})]})]}),u.jsxs("div",{id:"mobile-nav",className:`mobile-nav ${V?"mobile-nav-open":""}`,children:[u.jsxs(Ee,{className:"mobile-nav-close",variant:"ghost",size:"icon",type:"button",onClick:()=>ne(!1),children:[u.jsx(ro,{className:"size-5"}),u.jsx("span",{className:"sr-only",children:"Close navigation"})]}),u.jsx(Je,{to:"/",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!0},children:"Portfolio"}),u.jsx(Je,{to:"/projects",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!1},children:"Projects"}),u.jsx(Je,{to:"/runs",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!0},children:"Runs"}),u.jsx(Je,{to:"/history",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!0},children:"History"}),u.jsx(Je,{to:"/traffic",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!1},children:"Traffic sources"}),u.jsx(Je,{to:"/backlinks",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!0},children:"Backlink data"}),n&&u.jsx(Je,{to:"/settings",className:"mobile-nav-link",activeProps:{className:"mobile-nav-link mobile-nav-link-active"},activeOptions:{exact:!0},children:"Settings"}),pe&&pe.projects.length>0?u.jsxs("div",{className:"mobile-nav-section",children:[u.jsx("p",{className:"mobile-nav-section-title",children:"Tracked projects"}),pe.projects.map(U=>u.jsx(Je,{to:"/projects/$projectName",params:{projectName:U.project.name},className:"mobile-nav-link",children:U.project.name},U.project.id))]}):null,e&&u.jsxs("div",{className:"mobile-nav-section",children:[u.jsx("p",{className:"mobile-nav-section-title",children:"Signed in"}),u.jsxs("div",{className:"sidebar-account",children:[u.jsxs("div",{className:"sidebar-account-identity",children:[u.jsx("span",{className:"sidebar-account-name",children:e.name}),e.role==="viewer"?u.jsx("span",{className:"sidebar-account-role",children:"View only"}):null]}),u.jsx(Ee,{type:"button",variant:"ghost",size:"sm","data-testid":"mobile-sign-out",onClick:Yt(async()=>{await qg(),window.location.reload()}),children:"Sign out"})]})]})]}),u.jsx("main",{id:"content",className:"page-shell",children:x&&!s?u.jsxs("div",{className:"page-skeleton",children:[u.jsxs("div",{className:"page-skeleton-header",children:[u.jsx("div",{className:"skeleton-text h-6 w-40"}),u.jsx("div",{className:"skeleton-text-sm w-72"})]}),u.jsx("div",{className:"page-skeleton-grid",children:[1,2,3].map(U=>u.jsxs("div",{className:"page-skeleton-card",children:[u.jsx("div",{className:"skeleton-text w-24"}),u.jsx("div",{className:"skeleton-text w-full"}),u.jsx("div",{className:"skeleton-text-sm w-3/4"})]},U))}),u.jsx("div",{className:"page-skeleton-grid",style:{gridTemplateColumns:"1fr 1fr"},children:[1,2].map(U=>u.jsxs("div",{className:"page-skeleton-card",children:[u.jsx("div",{className:"skeleton-text w-20"}),u.jsx("div",{className:"space-y-2",children:[1,2,3].map(K=>u.jsx("div",{className:"skeleton-text-sm w-full"},K))})]},U))})]}):u.jsx(Km,{})}),u.jsxs("footer",{className:"footer",children:[u.jsxs("span",{className:"footer-brand",children:[u.jsx("span",{children:u.jsx("a",{href:"https://canonry.ai",children:"Canonry"})}),A.apiStatus.version&&A.apiStatus.version!=="unknown"?u.jsxs("span",{className:"footer-version",children:["v",A.apiStatus.version]}):null]}),c?u.jsx("div",{className:"footer-links",children:fb.map(({label:U,href:K,Icon:te})=>u.jsx("a",{href:K,target:"_blank",rel:"noopener noreferrer",title:U,"aria-label":U,className:"footer-icon",children:u.jsx(te,{className:"size-3.5"})},K))}):null]})]}),$&&!ue&&at?u.jsx($m,{open:!0,title:"Loading run details",subtitle:"Fetching the durable run record",onClose:P,children:u.jsx("p",{className:"text-sm text-muted",role:"status",children:"Loading run details…"})}):null,$&&!ue&&qe.isError?u.jsx($m,{open:!0,title:"Run unavailable",subtitle:"The run could not be loaded",onClose:P,children:u.jsx("p",{className:"text-sm text-negative",children:qe.error instanceof Error?qe.error.message:"Run details are unavailable."})}):null,ue?u.jsxs($m,{open:!0,title:ue.summary,subtitle:`${ue.projectName} · ${ue.kindLabel}`,onClose:P,children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-1 text-sm",children:[u.jsx(E0,{status:ue.status}),u.jsx("span",{className:"text-secondary",children:ue.startedAt}),u.jsx("span",{className:"text-muted",children:ue.duration}),u.jsx("span",{className:"text-faint",children:ue.triggerLabel})]}),ue.status==="failed"&&ue.statusDetail&&u.jsx("p",{className:"mt-2 text-sm text-negative",children:ue.statusDetail}),u.jsxs("div",{className:"mt-4",children:[u.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted mb-2",children:"Activity Log"}),at?u.jsx("p",{className:"text-sm text-muted",children:"Loading run details..."}):De?.snapshots&&De.snapshots.length>0?u.jsxs("div",{className:"space-y-2",children:[De.snapshots.map(U=>u.jsxs("div",{className:"rounded-lg border border-default bg-surface p-3",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1",children:[u.jsx("p",{className:"text-sm font-medium text-strong truncate",children:U.query??"Unknown query"}),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(wq,{provider:U.provider}),u.jsx(Xx,{variant:U.citationState===zc.cited?"success":"neutral",children:U.citationState})]})]}),U.model&&u.jsx("p",{className:"text-[11px] text-muted font-mono",children:U.model}),U.citedDomains.length>0&&u.jsxs("p",{className:"text-xs text-muted mt-1",children:[u.jsx("span",{className:"text-secondary",children:"Sources:"})," ",U.citedDomains.join(", ")]}),U.competitorOverlap.length>0&&u.jsxs("p",{className:"text-xs text-negative-400/80 mt-0.5",children:["Competitor cited: ",U.competitorOverlap.join(", ")]}),U.groundingSources&&U.groundingSources.length>0&&u.jsxs("details",{className:"mt-2",children:[u.jsxs("summary",{className:"text-xs text-muted cursor-pointer hover:text-secondary",children:[U.groundingSources.length," grounding source",U.groundingSources.length!==1?"s":""]}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:U.groundingSources.map((K,te)=>{const se=vp(K.uri),Ce=K.title||K.uri;return u.jsx("li",{className:"text-xs text-muted truncate",children:se?u.jsx("a",{href:se,target:"_blank",rel:"noopener noreferrer",className:"hover:text-neutral",children:Ce}):u.jsx("span",{children:Ce})},te)})})]}),U.answerText&&u.jsxs("details",{className:"mt-1",children:[u.jsx("summary",{className:"text-xs text-muted cursor-pointer hover:text-secondary",children:"Answer preview"}),u.jsx("p",{className:"mt-1 text-xs text-secondary leading-relaxed whitespace-pre-wrap",children:U.answerText})]})]},U.id)),De.status==="running"&&u.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-muted",children:[u.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-caution-500 animate-pulse"}),"Running remaining queries..."]})]}):De&&De.status==="running"?u.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-muted",children:[u.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-caution-500 animate-pulse"}),"Waiting for first query result..."]}):De&&De.status==="queued"?u.jsxs("div",{className:"flex items-center gap-2 p-3 text-sm text-muted",children:[u.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-mono-500 animate-pulse"}),"Run queued, waiting for execution slot..."]}):De&&De.error?u.jsxs("div",{className:"rounded-lg border border-negative-800/40 bg-negative-950/20 p-3",children:[u.jsx("p",{className:"text-sm font-medium text-negative mb-2",children:"Run failed"}),u.jsx("pre",{className:"max-h-48 overflow-y-auto whitespace-pre-wrap break-words font-mono text-xs leading-5 text-negative",children:JT(De.error)})]}):u.jsx("p",{className:"text-sm text-muted",children:"No snapshot data available."})]})]}):null,He?u.jsx(Tq,{evidence:He.evidence,project:He.project,onClose:P}):null,u.jsx(HB,{}),u.jsx(bB,{}),f?u.jsx(MB,{}):null]})}class QB extends D.Component{state={error:null};static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,s){console.error("[ErrorBoundary]",n,s.componentStack)}handleReset=()=>{this.setState({error:null})};render(){return this.state.error?u.jsx("div",{className:"page-container",children:u.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 py-20 text-center",children:[u.jsx("div",{className:"rounded-full bg-negative-950/40 p-3",children:u.jsx(Bb,{className:"size-6 text-negative-400"})}),u.jsx("h2",{className:"text-lg font-semibold text-heading",children:"Something went wrong"}),u.jsx("p",{className:"text-sm text-secondary max-w-md",children:this.state.error.message||"An unexpected error occurred while rendering this page."}),u.jsxs("div",{className:"flex gap-3 mt-2",children:[u.jsxs(Ee,{variant:"secondary",size:"sm",onClick:this.handleReset,children:[u.jsx(Ob,{className:"size-3.5 mr-1.5"}),"Try again"]}),u.jsx(Ee,{variant:"secondary",size:"sm",onClick:()=>{const n=window.__CANONRY_CONFIG__?.basePath?.replace(/\/$/,"")??"";window.location.href=n||"/"},children:"Go home"})]})]})}):this.props.children}}const Ua=D.forwardRef(({className:e,...n},s)=>u.jsx("div",{ref:s,className:Va("rounded-xl border border-base bg-bg/75 shadow-[0_0_0_1px_var(--color-shadow-hairline)]",e),...n}));Ua.displayName="Card";const Nr=D.forwardRef(({className:e,...n},s)=>u.jsx("div",{ref:s,className:Va("flex flex-col gap-1.5 p-5",e),...n}));Nr.displayName="CardHeader";const _r=D.forwardRef(({className:e,...n},s)=>u.jsx("h3",{ref:s,className:Va("font-medium tracking-tight text-primary",e),...n}));_r.displayName="CardTitle";const Oc=D.forwardRef(({className:e,...n},s)=>u.jsx("p",{ref:s,className:Va("text-sm text-muted",e),...n}));Oc.displayName="CardDescription";const Zs=D.forwardRef(({className:e,...n},s)=>u.jsx("div",{ref:s,className:Va("p-5 pt-0",e),...n}));Zs.displayName="CardContent";const ZB=20,FB=6;function YB({points:e,tone:n}){const s=D.useId();if(e.length===0)return null;const r=42,c=132,f=5,g=c-f*2,y=r-f*2,x=y-FB,k=P=>f+P/Math.max(e.length-1,1)*g,S=FT(e),j=Math.min(...e),A=Math.max(...e),z=Math.max(A-j,ZB),$=(A+j)/2-z/2,L=e.map((P,V)=>`${k(V)},${f+(1-(P-$)/z)*x}`).join(" ");return u.jsxs("svg",{className:`sparkline sparkline-${n}${S?" sparkline-provisional":""}`,viewBox:`0 0 ${c} ${r}`,"aria-hidden":"true",children:[u.jsx("defs",{children:u.jsx("clipPath",{id:s,children:u.jsx("rect",{x:f,y:f,width:g,height:y,rx:"8"})})}),u.jsx("line",{className:"sparkline-guide",x1:f,x2:c-f,y1:r-f,y2:r-f}),u.jsx("polyline",{clipPath:`url(#${s})`,points:L,vectorEffect:"non-scaling-stroke"})]})}function XB({project:e}){return u.jsxs(Je,{to:"/projects/$projectName",params:{projectName:e.project.name},className:"project-row cursor-pointer",children:[u.jsx("div",{className:"project-row-chart",children:u.jsx(YB,{points:e.trend,tone:Tx(e.lastRun.status)})}),u.jsxs("div",{className:"project-row-primary",children:[u.jsxs("div",{children:[u.jsx("p",{className:"project-name",children:e.project.name}),u.jsx("p",{className:"project-domain",children:e.project.canonicalDomain})]}),u.jsx("p",{className:"project-insight",children:e.insight})]}),u.jsx("div",{className:"project-row-stat",children:u.jsxs("div",{className:"metric-inline-block",children:[u.jsx("p",{className:"metric-inline-label",children:"Mentioned"}),u.jsx("p",{className:`metric-inline-value ${e.mentionTone==="caution"?"text-caution-400":""}`,children:e.mentionScore}),u.jsx("p",{className:`metric-inline-caption${e.providerCoverage?" text-caution":""}`,title:e.providerCoverage,children:e.providerCoverage?u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"sr-only",children:"Partial sweep: "}),e.providerCoverage]}):e.mentionDelta})]})}),u.jsx("div",{className:"project-row-stat",children:u.jsxs("div",{className:"metric-inline-block",children:[u.jsxs("p",{className:"metric-inline-label",children:[u.jsx("span",{"aria-hidden":"true",children:"Pressure"}),u.jsx("span",{className:"sr-only",children:"Competitor pressure"})]}),u.jsx("p",{className:"metric-inline-value",children:e.competitorPressureLabel}),u.jsx("p",{className:"metric-inline-caption","aria-hidden":"true"})]})}),u.jsx("span",{className:"project-row-link",children:u.jsx(jp,{className:"h-4 w-4 text-muted"})})]})}function JB(){const e=$r(),{dashboard:n,isLoading:s}=iu(),r=n??e?.dashboard,f=D0(!e,e?.health),{openRun:g}=T0();if(!r||s)return u.jsxs("div",{className:"page-skeleton",children:[u.jsxs("div",{className:"page-skeleton-header",children:[u.jsx("div",{className:"skeleton-text h-6 w-32"}),u.jsx("div",{className:"skeleton-text-sm w-64"})]}),u.jsx("div",{className:"space-y-3",children:[1,2,3].map(S=>u.jsxs("div",{className:"rounded-xl border border-default bg-surface p-4 flex items-center gap-4",children:[u.jsxs("div",{className:"flex-1 space-y-2",children:[u.jsx("div",{className:"skeleton-text w-36"}),u.jsx("div",{className:"skeleton-text-sm w-48"})]}),u.jsx("div",{className:"skeleton-text w-16"}),u.jsx("div",{className:"skeleton-text w-16"}),u.jsx("div",{className:"skeleton h-8 w-20 rounded"})]},S))})]});const y=r.portfolioOverview,x=f.data??e?.health??{apiStatus:{label:"API",state:"checking",detail:"Checking service health"},workerStatus:{label:"Worker",state:"checking",detail:"Checking service health"}},k=yO(y.systemHealth,x,r.settings);return u.jsxs("div",{className:"page-container",children:[u.jsx("div",{className:"page-header",children:u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:"Portfolio"}),u.jsx("p",{className:"page-subtitle",children:"Visibility across all projects."})]})}),y.projects.length>0?u.jsx("div",{className:"project-list project-list-scrollable",children:y.projects.map(S=>u.jsx(XB,{project:S},S.project.id))}):u.jsxs(Ua,{className:"surface-card empty-card",children:[u.jsx("h3",{children:y.emptyState?.title??"No projects yet"}),u.jsx("p",{className:"supporting-copy",children:y.emptyState?.detail}),u.jsx(Ee,{size:"sm",asChild:!0,children:u.jsx(Je,{to:y.emptyState?.ctaHref==="/setup"||!y.emptyState?.ctaHref?"/setup":"/",children:y.emptyState?.ctaLabel??"Launch setup"})})]}),u.jsxs("div",{className:"overview-secondary-grid",children:[y.attentionItems.length>0&&u.jsxs("section",{className:"overview-secondary-section",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Needs attention"}),u.jsx("h2",{className:"section-title-sm",children:"What changed"})]})}),u.jsx("div",{className:"attention-list attention-list-scrollable",children:y.attentionItems.map(S=>S.href?u.jsxs(Je,{to:S.href,className:`attention-item attention-item-${S.tone}`,children:[u.jsxs("div",{children:[u.jsx("p",{className:"attention-title",children:S.title}),u.jsx("p",{className:"attention-detail",children:S.detail})]}),S.actionLabel&&u.jsx("span",{className:"attention-action",children:S.actionLabel})]},S.id):u.jsxs("div",{className:`attention-item attention-item-static attention-item-${S.tone}`,children:[u.jsxs("div",{children:[u.jsx("p",{className:"attention-title",children:S.title}),u.jsx("p",{className:"attention-detail",children:S.detail})]}),S.actionLabel&&u.jsx("span",{className:"attention-action",children:S.actionLabel})]},S.id))})]}),u.jsxs("section",{className:"overview-secondary-section",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Recent runs"}),u.jsx("h2",{className:"section-title-sm",children:"Activity"})]})}),u.jsx("div",{className:"compact-stack compact-stack-scrollable",children:y.recentRuns.length>0?y.recentRuns.map(S=>u.jsxs("button",{className:"compact-run",type:"button",onClick:()=>g(S.id),children:[u.jsxs("div",{children:[u.jsx("p",{className:"compact-run-title",children:S.projectName}),u.jsx("p",{className:"compact-run-detail",children:S.summary})]}),u.jsx(E0,{status:S.status})]},S.id)):u.jsx("p",{className:"supporting-copy",children:"Run history appears here after the first launch."})})]})]}),u.jsxs("section",{className:"page-section",children:[u.jsx("div",{className:"section-head section-head-inline",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"System health"}),u.jsx("h2",{className:"section-title-sm",children:"Infrastructure"})]})}),u.jsx("div",{className:"divide-y divide-default border-y border-default",children:k.map(S=>{const j=S.id==="api"?x.apiStatus:S.id==="worker"?x.workerStatus:void 0,A=j?j.state==="ok"?void 0:oo(j):S.tone==="positive"?void 0:S.meta;return u.jsxs("div",{className:"flex items-start justify-between gap-4 py-3",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-heading",children:S.label}),A&&u.jsx("p",{className:"mt-1 text-sm text-secondary",children:A})]}),u.jsx(ga,{tone:S.tone,title:j?oo(j):S.meta,children:S.detail})]},S.id)})})]})]})}function WB({onApplied:e}){const[n,s]=D.useState(""),[r,c]=D.useState(!1),[f,g]=D.useState([]),[y,x]=D.useState([]);if(H4())return null;const k=async()=>{if(!n.trim())return;c(!0),g([]),x([]);const S=eS(n),j=[],A=[];for(let z=0;z<S.length;z++){const $=S[z];if($.errors.length>0){j.push(`Document ${z+1}: ${$.errors[0]?.message}`);continue}const L=$.toJSON();if(!(!L||typeof L!="object"))try{const P=await h5(L);A.push(`Applied "${P.displayName||P.name}" (revision ${P.configRevision})`)}catch(P){j.push(`Document ${z+1}: ${P instanceof Error?P.message:String(P)}`)}}g(A),x(j),c(!1),A.length>0&&(sa({title:"YAML applied",detail:`Applied ${A.length} document${A.length===1?"":"s"} successfully.`,tone:j.length>0?"caution":"positive",dedupeKey:"yaml:apply",dedupeMode:"replace"}),e())};return u.jsxs("section",{className:"mt-8",children:[u.jsx("div",{className:"page-section-divider"}),u.jsx("div",{className:"section-head mt-6",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Config as code"}),u.jsx("h2",{className:"text-sm font-medium text-strong",children:"Apply YAML"})]})}),u.jsxs("p",{className:"text-muted text-sm mb-3",children:["Paste a ",u.jsx("code",{className:"text-secondary",children:"canonry.yaml"})," config (multi-document YAML with ",u.jsx("code",{className:"text-secondary",children:"---"})," separators supported)."]}),u.jsx("textarea",{className:"setup-input w-full font-mono text-xs",rows:10,placeholder:`apiVersion: canonry/v1
|
|
65
|
+
kind: Project
|
|
66
|
+
metadata:
|
|
67
|
+
name: my-project
|
|
68
|
+
spec:
|
|
69
|
+
canonicalDomain: example.com
|
|
70
|
+
country: US
|
|
71
|
+
language: en
|
|
72
|
+
queries: []`,value:n,onChange:S=>s(S.target.value)}),f.length>0&&u.jsx("ul",{className:"mt-2 space-y-1",children:f.map((S,j)=>u.jsx("li",{className:"text-positive-400 text-sm",children:S},j))}),y.length>0&&u.jsx("ul",{className:"mt-2 space-y-1",children:y.map((S,j)=>u.jsx("li",{className:"text-negative-400 text-sm",children:S},j))}),u.jsx("div",{className:"mt-3",children:u.jsx(Ee,{type:"button",disabled:!n.trim()||r,onClick:Yt(k),children:r?"Applying...":"Apply"})})]})}function eM(){const{dashboard:e,isLoading:n,refetch:s}=iu(),r=qc(),[c,f]=D.useState(!1),[g,y]=D.useState(""),[x,k]=D.useState(""),[S,j]=D.useState(""),[A,z]=D.useState("US"),[$,L]=D.useState("en"),[P,V]=D.useState(!1),[ne,X]=D.useState(null);if(!e||n)return u.jsxs("div",{className:"page-skeleton",children:[u.jsxs("div",{className:"page-skeleton-header",children:[u.jsx("div",{className:"skeleton-text h-6 w-28"}),u.jsx("div",{className:"skeleton-text-sm w-40"})]}),u.jsxs("div",{className:"rounded-xl border border-default bg-surface overflow-hidden",children:[u.jsx("div",{className:"p-3 border-b border-default flex gap-8",children:["Name","Domain","Mentions","Last run","Country"].map(q=>u.jsx("div",{className:"skeleton-text-sm w-16"},q))}),[1,2,3].map(q=>u.jsxs("div",{className:"p-3 border-b border-subtle flex gap-8 items-center",children:[u.jsxs("div",{className:"flex-1 space-y-1",children:[u.jsx("div",{className:"skeleton-text w-28"}),u.jsx("div",{className:"skeleton-text-sm w-16"})]}),u.jsx("div",{className:"skeleton-text w-24"}),u.jsx("div",{className:"skeleton h-5 w-14 rounded-full"}),u.jsx("div",{className:"skeleton h-5 w-16 rounded-full"}),u.jsx("div",{className:"skeleton-text-sm w-8"})]},q))]})]});const ee=e.projects,re=g.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),he=async()=>{if(!(!re||!S)){V(!0),X(null);try{const q=await zp(re,{displayName:x||g,canonicalDomain:S,country:A,language:$});sa({title:"Project created",detail:`${q.displayName||q.name} is ready to configure.`,tone:"positive",dedupeKey:`project:create:${q.name}`,dedupeMode:"drop"}),s(),y(""),k(""),j(""),z("US"),L("en"),f(!1),r({to:"/projects/$projectName",params:{projectName:q.name}})}catch(q){X(q instanceof Error?q.message:"Failed to create project")}finally{V(!1)}}};return u.jsxs("div",{className:"page-container",children:[u.jsxs("div",{className:"page-header",children:[u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:"Projects"}),u.jsxs("p",{className:"page-subtitle",children:[ee.length," project",ee.length!==1?"s":""," tracked"]})]}),u.jsx("div",{className:"page-header-right",children:u.jsxs(Ee,{type:"button",onClick:()=>f(q=>!q),children:[u.jsx(Ag,{className:"size-4 mr-1.5"}),"Add project"]})})]}),c?u.jsxs(Ua,{className:"surface-card mb-6",children:[u.jsx("div",{className:"section-head",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"New project"}),u.jsx("h2",{className:"text-sm font-medium text-strong",children:"Create a new monitoring project"})]})}),u.jsxs("div",{className:"compact-stack mt-4",children:[u.jsxs("div",{className:"setup-field-row",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-project-name",children:"Project name"}),u.jsx("input",{id:"new-project-name",className:"setup-input",type:"text",placeholder:"my-project",value:g,onChange:q=>y(q.target.value)}),re&&re!==g?u.jsxs("p",{className:"supporting-copy",children:["Slug: ",re]}):null]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-display-name",children:"Display name"}),u.jsx("input",{id:"new-display-name",className:"setup-input",type:"text",placeholder:"My Project",value:x,onChange:q=>k(q.target.value)})]})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-domain",children:"Canonical domain"}),u.jsx("input",{id:"new-domain",className:"setup-input",type:"text",placeholder:"example.com",value:S,onChange:q=>j(q.target.value)})]}),u.jsxs("div",{className:"setup-field-row",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-country",children:"Country"}),u.jsx("input",{id:"new-country",className:"setup-input",type:"text",placeholder:"US",maxLength:2,value:A,onChange:q=>z(q.target.value.toUpperCase())})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"new-language",children:"Language"}),u.jsx("input",{id:"new-language",className:"setup-input",type:"text",placeholder:"en",maxLength:5,value:$,onChange:q=>L(q.target.value.toLowerCase())})]})]})]}),ne?u.jsx("p",{className:"text-negative-400 text-sm mt-3",children:ne}):null,u.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[u.jsx(Ee,{type:"button",disabled:!re||!S||P,onClick:Yt(he),children:P?"Creating...":"Create project"}),u.jsx(Ee,{type:"button",variant:"ghost",onClick:()=>f(!1),children:"Cancel"})]})]}):null,ee.length>0?u.jsx("div",{className:"data-table-wrapper",children:u.jsxs("table",{className:"data-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Name"}),u.jsx("th",{children:"Domain"}),u.jsx("th",{children:"Mentions"}),u.jsx("th",{children:"Last run"}),u.jsx("th",{className:"text-right",children:"Country"})]})}),u.jsx("tbody",{children:ee.map(q=>{const ae=q.recentRuns[0];return u.jsxs("tr",{className:"cursor-pointer",onClick:()=>{r({to:"/projects/$projectName",params:{projectName:q.project.name}})},children:[u.jsxs("td",{children:[u.jsx(Je,{to:"/projects/$projectName",params:{projectName:q.project.name},className:"text-heading font-medium hover:underline",onClick:Ae=>Ae.stopPropagation(),children:q.project.displayName||q.project.name}),u.jsx("p",{className:"text-[11px] text-muted",children:q.project.name})]}),u.jsx("td",{className:"text-secondary",children:q.project.canonicalDomain}),u.jsx("td",{children:u.jsx(ga,{tone:q.mentionSummary.tone,children:q.mentionSummary.value})}),u.jsx("td",{className:"text-muted text-sm",children:ae?u.jsx(E0,{status:ae.status}):u.jsx("span",{className:"text-faint",children:"No runs"})}),u.jsx("td",{className:"text-right text-muted",children:q.project.country})]},q.project.id)})})]})}):c?null:u.jsxs(Ua,{className:"surface-card empty-card",children:[u.jsx("h3",{children:"No projects yet"}),u.jsx("p",{className:"supporting-copy",children:"Create your first monitoring project to start tracking AI visibility."}),u.jsxs(Ee,{type:"button",onClick:()=>f(!0),children:[u.jsx(Ag,{className:"size-4 mr-1.5"}),"Add project"]})]}),u.jsx(WB,{onApplied:()=>{s()}})]})}function gI({disabled:e,title:n,...s}){const{canWrite:r}=Rr();return r?u.jsx(Ee,{disabled:e,title:n,...s}):u.jsx(Ee,{...s,disabled:!0,title:sv})}function tM({title:e,children:n}){const{isAdmin:s}=Rr();return s?u.jsx(u.Fragment,{children:n}):u.jsxs(Ua,{className:"surface-card mx-auto mt-8 max-w-lg",children:[u.jsxs(Nr,{children:[u.jsxs(_r,{children:[e," is for administrators"]}),u.jsx(Oc,{children:"Your account has view-only access. You can read everything this install has measured; changing how it is set up needs an administrator account."})]}),u.jsx(Zs,{children:u.jsx("p",{className:"supporting-copy",children:"If you need to make a change here, ask an administrator on this install."})})]})}class aM extends Error{constructor(){super(sv),this.name="ViewOnlyError"}}function nM(e){if(!e.canWrite)throw new aM}function B0(e){e.invalidateQueries({queryKey:A0({client:oe})}),e.invalidateQueries({queryKey:ho({client:oe})})}function is(){const e=Rr();return()=>{nM(e)}}function iM(e){return e==="gsc-sync"?"GSC sync queued":e==="inspect-sitemap"?"Sitemap inspection queued":"Visibility sweep queued"}function sM(e,n){const s=e??"Project";return n==="gsc-sync"?`${s} will refresh after the sync completes.`:n==="inspect-sitemap"?`${s} will notify you when sitemap inspection finishes.`:`${s} will notify you when the run finishes.`}function M0(e,n){_0({id:e.id,projectId:e.projectId,kind:e.kind,projectLabel:n.projectLabel,sourceAction:n.sourceAction,lastAnnouncedStatus:"queued"}),sa({title:iM(e.kind),detail:sM(n.projectLabel,e.kind),tone:"neutral",dedupeKey:`run:${e.id}`,dedupeMode:"replace"})}function oM(e){const n=e.filter(g=>g.status!=="conflict"&&g.status!=="error"),s=e.filter(g=>g.status==="conflict"),r=e.filter(g=>g.status==="error"),c=s.length+r.length;if(n.length===0){const g=[r.length>0?`${r.length} need provider or query setup`:null,s.length>0?`${s.length} already have an active run`:null].filter(y=>y!==null);sa({title:"No runs queued",detail:g.length>0?`${g.join("; ")}.`:"No projects were available to queue.",tone:"caution",durationMs:8e3,dedupeKey:"run-all:conflict",dedupeMode:"replace"});return}for(const g of n)_0({id:g.id,projectId:g.projectId,kind:g.kind,projectLabel:g.projectName,sourceAction:"run-all",lastAnnouncedStatus:"queued"});const f=jO({runIds:n.map(g=>g.id),queuedCount:n.length,skippedCount:c});sa({title:"Run-all batch queued",detail:c>0?`${n.length} project${n.length===1?"":"s"} queued; ${c} need attention or already have an active run.`:`${n.length} project${n.length===1?"":"s"} queued.`,tone:c>0?"caution":"neutral",dedupeKey:`batch:${f}`,dedupeMode:"replace"})}function su(e,n){if(e instanceof Na&&e.code==="RUN_IN_PROGRESS"){sa({title:"Run already in progress",detail:n?.projectLabel?`${n.projectLabel} already has an active run. Wait for it to finish, then retry.`:"This project already has an active run. Wait for it to finish, then retry.",tone:"caution",durationMs:8e3,dedupeKey:`run-in-progress:${n?.projectKey??"project"}:${n?.sourceAction??"run"}`,dedupeMode:"replace"});return}sa({title:e instanceof Error?e.message:"Failed to queue run",tone:"negative"})}function rM(){const e=is(),n=yi();return es({onMutate:e,meta:{skipGlobalErrorToast:!0},mutationFn:({projectName:s,opts:r})=>r5(s,r),onSuccess:(s,r)=>{B0(n),M0(s,{projectLabel:r.projectLabel??r.projectName,sourceAction:r.sourceAction})},onError:(s,r)=>{r.sourceAction!=="setup-launch"&&su(s,{projectKey:r.projectName,projectLabel:r.projectLabel??r.projectName,sourceAction:r.sourceAction})}})}function yI(){const e=is(),n=yi();return es({onMutate:e,meta:{skipGlobalErrorToast:!0},mutationFn:s=>f5(s),onSuccess:s=>{B0(n),oM(s)},onError:s=>{sa({title:s instanceof Error?s.message:"Failed to queue runs",tone:"negative"})}})}function bI(){const e=is(),n=yi();return es({onMutate:e,meta:{skipGlobalErrorToast:!0},mutationFn:({projectName:s,body:r})=>v5(s,r),onSuccess:(s,r)=>{B0(n),_0({id:s.runId,projectId:r.projectId,kind:Te["site-audit"],projectLabel:r.projectLabel??r.projectName,sourceAction:"site-audit",lastAnnouncedStatus:s.status}),sa({title:s.status==="running"?"Technical audit already running":"Technical audit queued",detail:`${r.projectLabel??r.projectName} will refresh automatically when the audit finishes.`,tone:"neutral",dedupeKey:`run:${s.runId}`,dedupeMode:"replace"})},onError:(s,r)=>{su(s,{projectKey:r.projectName,projectLabel:r.projectLabel??r.projectName,sourceAction:"site-audit"})}})}function vI(){const e=is(),n=yi();return es({onMutate:e,meta:{skipGlobalErrorToast:!0},mutationFn:({projectName:s,opts:r})=>g5(s,r),onSuccess:(s,r)=>{Rc(n,Te["gsc-sync"],r.projectName),M0(s,{projectLabel:r.projectLabel??r.projectName,sourceAction:"gsc-sync"})},onError:(s,r)=>{su(s,{projectKey:r.projectName,projectLabel:r.projectLabel??r.projectName,sourceAction:"gsc-sync"})}})}function xI(){const e=is(),n=yi();return es({onMutate:e,meta:{skipGlobalErrorToast:!0},mutationFn:({projectName:s,opts:r})=>b5(s,r),onSuccess:(s,r)=>{Rc(n,Te["inspect-sitemap"],r.projectName),M0(s,{projectLabel:r.projectLabel??r.projectName,sourceAction:"inspect-sitemap"})},onError:(s,r)=>{su(s,{projectKey:r.projectName,projectLabel:r.projectLabel??r.projectName,sourceAction:"inspect-sitemap"})}})}function u3(e){if(!Array.isArray(e.queryKey)||e.queryKey.length<=1)return!1;const n=e.queryKey[0];return n==="projects"||n==="project-dashboard-full"}function kI(){const e=is(),n=yi();return es({onMutate:e,mutationFn:({projectName:s,queries:r})=>i5(s,r),onSuccess:()=>{n.invalidateQueries({queryKey:ho({client:oe})}),n.invalidateQueries({predicate:u3})}})}function wI(){const e=is(),n=yi();return es({onMutate:e,mutationFn:({projectName:s,body:r})=>s5(s,r),onSuccess:()=>{un(n,"project"),n.invalidateQueries({predicate:u3})}})}const bb="canonry.onboarding-session.v1",lM=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,cM=["system","project","queries","competitors","run"];function uM(e){return cM[e]??"system"}function dM(e){if(!e.apiReady)return"api_unavailable";if(e.databaseConfigured===!1)return"database_unavailable";if(!e.workerReady)return"worker_unavailable";if(!e.providerReady)return"no_provider"}function mM(e){return e.apiStatus.state!=="checking"&&e.workerStatus.state!=="checking"}function vb(e,n){const s=e&&typeof e=="object"&&"code"in e?String(e.code):"";return s==="NO_PROVIDER"?"no_provider":s==="NO_QUERIES"?"no_queries":n}function pM(){try{const e=typeof window<"u"?window.sessionStorage.getItem(bb):null;if(e&&lM.test(e))return e;const n=xp();return typeof window<"u"&&window.sessionStorage.setItem(bb,n),n}catch{return xp()}}function hM(){return xp()}function xp(){const e=globalThis.crypto;if(e.randomUUID)return e.randomUUID();const n=new Uint8Array(16);if(e.getRandomValues)e.getRandomValues(n);else for(let r=0;r<n.length;r+=1)n[r]=Math.floor(Math.random()*256);n[6]=n[6]&15|64,n[8]=n[8]&63|128;const s=[...n].map(r=>r.toString(16).padStart(2,"0")).join("");return`${s.slice(0,8)}-${s.slice(8,12)}-${s.slice(12,16)}-${s.slice(16,20)}-${s.slice(20)}`}const fM=[{label:"System check",description:"Verify your instance is ready"},{label:"Create project",description:"Name, domain, and locale"},{label:"Queries",description:"Add queries to track"},{label:"Competitors",description:"Add competitor domains"},{label:"Launch",description:"Start your first visibility sweep"}];function xb(e,n){return(e==="completed"||e==="partial")&&n>0}function kb(e){return e.launchReady?e.hasProject?e.queryCount===0?2:e.competitorCount===0&&!e.hasRunAttempt?3:4:1:0}function wb(e){return e.queryCounts.total>0}function gM({current:e,labels:n}){return u.jsx("div",{className:"setup-steps",role:"list","aria-label":"Setup progress",children:n.map((s,r)=>{const c=r<e,f=r===e;return u.jsxs("div",{className:`setup-step ${c?"setup-step-done":""} ${f?"setup-step-active":""}`,role:"listitem","aria-current":f?"step":void 0,children:[u.jsx("span",{className:"setup-step-number",children:c?"✓":r+1}),u.jsx("span",{children:s.label})]},s.label)})})}function yM(){return u.jsx(tM,{title:"Setup",children:u.jsx(bM,{})})}function bM(){const e=$r(),{dashboard:n,isLoading:s,refetch:r}=iu(),c=n??e?.dashboard;return!c||s?u.jsxs("div",{className:"page-skeleton",children:[u.jsxs("div",{className:"page-skeleton-header",children:[u.jsx("div",{className:"skeleton-text h-6 w-24"}),u.jsx("div",{className:"skeleton-text-sm w-80"})]}),u.jsxs("div",{className:"page-skeleton-card",children:[u.jsx("div",{className:"skeleton-text w-32"}),u.jsx("div",{className:"space-y-3 mt-3",children:[1,2,3].map(f=>u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-1 flex-1",children:[u.jsx("div",{className:"skeleton-text w-24"}),u.jsx("div",{className:"skeleton-text-sm w-48"})]}),u.jsx("div",{className:"skeleton h-6 w-16 rounded-full"})]},f))})]})]}):u.jsx(vM,{dashboard:c,initialHealth:e?.health,enableLiveStatus:!e,refetch:r})}function vM({dashboard:e,initialHealth:n,enableLiveStatus:s,refetch:r}){const c=e.settings,g=D0(s,n).data??n??{apiStatus:{label:"API",state:"checking",detail:"Checking service health"},workerStatus:{label:"Worker",state:"checking",detail:"Checking service health"}},y=vO(e.setup,g,c),x=qc(),k=D.useRef(pM()).current,S=D.useRef(new Set),j=D.useCallback((Z,Re)=>{if(Re){if(S.current.has(Re))return;S.current.add(Re)}m5({...Z,eventId:hM()})},[]),A=e.projects.find(Z=>!wb(Z))??e.projects.at(0)??null,z=A?e.runs.filter(Z=>Z.projectId===A.project.id).sort((Z,Re)=>Re.createdAt.localeCompare(Z.createdAt)):[],$=A?.queryCounts.total??0,L=A?.project.name,P=ia({queryKey:["setup","resume-queries",L],queryFn:()=>L?ev(L):Promise.resolve([]),enabled:!!L}),V=P.data??[],ne=P.data?.length??$,X=A?.competitors.map(Z=>Z.domain)??[],ee=z.at(0)??null,re=!!A&&wb(A),he=!!A&&P.isPending,q=kb({launchReady:y.launchState.enabled,hasProject:!!A,queryCount:ne,competitorCount:X.length,hasRunAttempt:z.length>0||re}),ae=kb({launchReady:!0,hasProject:!!A,queryCount:ne,competitorCount:X.length,hasRunAttempt:z.length>0||re}),[Ae,de]=D.useState(q),[ge,qe]=D.useState(!he),[De,at]=D.useState(A?.project.name??""),[pe,I]=D.useState(A?.project.displayName??""),[ie,ue]=D.useState(A?.project.canonicalDomain??""),[_e,le]=D.useState(A?.project.country??"US"),[He,J]=D.useState(A?.project.language??"en"),[U,K]=D.useState(A?.project.autoExtractBacklinks??!1),[te,se]=D.useState(A?.project.name??null),[Ce,rt]=D.useState(null),[Ne,Ke]=D.useState(!1),[Ye,Ut]=D.useState(V.map(Z=>Z.query).join(`
|
|
73
|
+
`)),[za,It]=D.useState(ne>0),[ss,os]=D.useState(null),[Gr,fo]=D.useState(!1),[go,yo]=D.useState(!1),Jt=c.providerStatuses.filter(Z=>Z.state==="ready"),[Bn,rs]=D.useState(Jt[0]?.name??""),[Kt,ou]=D.useState(5),[bo,vo]=D.useState(!1),[_i,Hr]=D.useState(null),[xo,ru]=D.useState(X.join(`
|
|
74
|
+
`)),[Kr,Ci]=D.useState(X.length>0),[Qt,$a]=D.useState(null),[Zt,Qr]=D.useState(!1),[Mn,lu]=D.useState(!!ee&&!re),[dn,zi]=D.useState(!1),[tn,Ga]=D.useState(null),[Pn,Ei]=D.useState(re?null:ee?.id??null),cu=rM(),an=ia({...Dx({client:oe,path:{id:Pn??""}}),enabled:!!Pn,refetchInterval:({state:Z})=>{const Re=Z.data?.status;return Re==="completed"||Re==="partial"||Re==="failed"||Re==="cancelled"?!1:2e3},refetchIntervalInBackground:!0}),[Di,Un]=D.useState(""),[ko,wo]=D.useState(!1),[So,jo]=D.useState(null),Ha=De.toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),la=Ye.split(`
|
|
75
|
+
`).map(Z=>Z.trim()).filter(Boolean),mn=xo.split(`
|
|
76
|
+
`).map(Z=>Z.trim()).filter(Boolean),Ln=Math.max(ne,za?la.length:0),Ft=y.launchState.blockedReason??(te?Ln===0?"Add at least one query before launching the first sweep.":void 0:"Create a project before launching the first sweep."),ht=dM({apiReady:g.apiStatus.state==="ok",databaseConfigured:g.apiStatus.databaseConfigured,workerReady:g.workerStatus.state==="ok",providerReady:Jt.length>0});D.useEffect(()=>{ge||he||(de(q),V.length>0&&(Ut(V.map(Z=>Z.query).join(`
|
|
77
|
+
`)),It(!0)),qe(!0))},[V,q,ge,he]),D.useEffect(()=>{if(Jt.length===0){rs("");return}Jt.some(Z=>Z.name===Bn)||rs(Jt[0].name)},[Jt,Bn]),D.useEffect(()=>{ge&&(j({flowVersion:At,onboardingSessionId:k,event:"onboarding.started",step:uM(q),resumed:!!A},"onboarding.started"),!A&&q>0&&j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"system",method:"automatic"},"onboarding.step_completed:system"))},[j,q,k,ge,A]),D.useEffect(()=>{!mM(g)||!ht||j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"system",action:ht==="no_provider"?"configure_provider":"continue",reasonCode:ht},`onboarding.blocked:system:${ht}`)},[j,g,k,ht]);const wt=an.data?.status,Ka=an.data?.snapshots?.length??0;D.useEffect(()=>{if(!Mn||!wt)return;if(xb(wt,Ka)){j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"run",method:"automatic",countBucket:cn(Ka)},"onboarding.step_completed:run");return}const Z=wt==="cancelled"?"run_cancelled":wt==="failed"||(wt==="completed"||wt==="partial")&&Ka===0?"run_failed":void 0;Z&&j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"run",action:"retry_run",reasonCode:Z},`onboarding.blocked:run:${Z}`)},[j,k,wt,Ka,Mn]);const Ao=async()=>{if(!(!Ha||!ie)){Ke(!0),rt(null);try{const Z=await zp(Ha,{displayName:pe||De,canonicalDomain:ie,country:_e,language:He,autoExtractBacklinks:U});se(Ha),sa({title:"Project created",detail:`${Z.displayName||Z.name} is ready for setup.`,tone:"positive",dedupeKey:`project:create:${Z.name}`,dedupeMode:"drop"}),await r(),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"project",method:"manual"},"onboarding.step_completed:project"),de(2)}catch(Z){rt(Z instanceof Error?Z.message:"Failed to create project"),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"project",action:"save",reasonCode:"project_create_failed"},"onboarding.blocked:project:project_create_failed")}finally{Ke(!1)}}},uu=async()=>{if(!te)return;const Z=la;if(Z.length!==0){fo(!0),os(null);try{await n5(te,Z),It(!0),await r(),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"queries",method:go?"generated":"manual",countBucket:cn(Z.length)},"onboarding.step_completed:queries"),de(3)}catch(Re){os(Re instanceof Error?Re.message:"Failed to save queries"),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"queries",action:"save",reasonCode:"query_save_failed"},"onboarding.blocked:queries:query_save_failed")}finally{fo(!1)}}},du=async()=>{if(!(!te||!Bn)){vo(!0),Hr(null);try{const Z=await p5(te,Bn,Kt);if(Z.queries.length>0){const Re=Ye?Ye.trimEnd()+`
|
|
78
|
+
`+Z.queries.join(`
|
|
79
|
+
`):Z.queries.join(`
|
|
80
|
+
`);Ut(Re),yo(!0)}}catch(Z){Hr(Z instanceof Error?Z.message:"Failed to generate queries"),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"queries",action:"generate_queries",reasonCode:vb(Z,"unknown")},"onboarding.blocked:queries:generate")}finally{vo(!1)}}},Zr=async()=>{if(!te)return;const Z=mn;if(Z.length!==0){Qr(!0),$a(null);try{await o5(te,Z),Ci(!0),await r(),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"competitors",method:"manual",countBucket:cn(Z.length)},"onboarding.step_completed:competitors"),de(4)}catch(Re){$a(Re instanceof Error?Re.message:"Failed to save competitors"),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"competitors",action:"save",reasonCode:"unknown"},"onboarding.blocked:competitors:save")}finally{Qr(!1)}}},Ti=async()=>{const Z=Di.trim();if(Z){wo(!0),jo(null);try{await d5("gemini",{apiKey:Z}),sa({title:"Gemini configured",detail:"Provider is ready — continuing setup.",tone:"positive",dedupeKey:"setup:gemini:configured",dedupeMode:"drop"}),Un(""),await r(),rs(c.providerStatuses.find(Re=>Re.name.toLowerCase()==="gemini")?.name??"gemini"),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"system",method:"inline"},"onboarding.step_completed:system")}catch(Re){jo(Re instanceof Error?Re.message:"Failed to save Gemini key"),j({flowVersion:At,onboardingSessionId:k,event:"onboarding.blocked",step:"system",action:"configure_provider",reasonCode:"provider_save_failed"},"onboarding.blocked:system:provider_save_failed")}finally{wo(!1)}}},ls=async()=>{if(!te||Ft){Ga(Ft??"Complete setup before launching the first sweep.");const Z=ht??(te?Ln===0?"no_queries":"run_rejected":"unknown");j({flowVersion:At,onboardingSessionId:k,event:"run.requested",origin:"dashboard_setup",result:"rejected",providerCountBucket:cn(Jt.length),queryCountBucket:cn(Ln),reasonCode:Z});return}zi(!0),Ga(null);try{const Z=await cu.mutateAsync({projectName:te,projectLabel:pe||De||te,sourceAction:"setup-launch"});Ei(Z.id),lu(!0),j({flowVersion:At,onboardingSessionId:k,event:"run.requested",origin:"dashboard_setup",result:"queued",providerCountBucket:cn(Jt.length),queryCountBucket:cn(Ln)}),await r()}catch(Z){Ga(Z instanceof Error?Z.message:"Failed to queue the visibility sweep. Retry when the instance is ready."),j({flowVersion:At,onboardingSessionId:k,event:"run.requested",origin:"dashboard_setup",result:"rejected",providerCountBucket:cn(Jt.length),queryCountBucket:cn(Ln),reasonCode:vb(Z,"run_rejected")})}finally{zi(!1)}},Wt=()=>de(Z=>Math.max(0,Z-1)),nn=(Z,Re,ca)=>{j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:Z,method:"existing",...ca===void 0?{}:{countBucket:cn(ca)}},`onboarding.step_completed:${Z}`),de(Re)},In=()=>{j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"queries",method:"skipped",countBucket:"0"},"onboarding.step_completed:queries"),de(3)},Vn=()=>{j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"competitors",method:"skipped",countBucket:"0"},"onboarding.step_completed:competitors"),de(4)},Ct=(()=>{switch(Ae){case 0:return u.jsxs(Ua,{className:"surface-card step-card",children:[u.jsx("div",{className:"section-head",children:u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 1 of 5"}),u.jsx("h2",{children:"System check"})]})}),u.jsx("p",{className:"supporting-copy",children:"Checking that your Canonry instance is configured and reachable."}),u.jsx("div",{className:"compact-stack",children:y.healthChecks.map(Z=>u.jsxs("div",{className:"health-check-row",children:[u.jsxs("div",{children:[u.jsx("p",{className:"run-row-title",children:Z.label}),u.jsx("p",{className:"supporting-copy",children:Z.detail}),Z.id==="provider"&&Z.state!=="ready"&&u.jsxs("div",{className:"mt-3 rounded-md border border-default bg-bg-elevated/40 p-3 space-y-2",children:[u.jsxs("p",{className:"text-xs text-secondary",children:["Paste a Gemini key to enable visibility checks (free at"," ",u.jsx("a",{href:"https://aistudio.google.com/apikey",target:"_blank",rel:"noreferrer",className:"text-positive-400 hover:text-positive underline underline-offset-2",children:"aistudio.google.com"}),")."]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("input",{type:"password",value:Di,onChange:Re=>Un(Re.target.value),placeholder:"AI... (paste here)",className:"flex-1 rounded-md border border-base bg-bg px-2.5 py-1.5 text-sm text-heading placeholder:text-faint focus:border-mono-600 focus:outline-none font-mono",disabled:ko}),u.jsx(Ee,{type:"button",size:"sm",disabled:ko||!Di.trim(),onClick:Yt(Ti),children:ko?"Saving...":"Save"})]}),So&&u.jsxs("div",{role:"alert",className:"space-y-1 text-xs text-negative",children:[u.jsx("p",{children:So}),u.jsx("p",{children:"Check that the key is complete, then retry Save."})]}),u.jsxs("p",{className:"text-sm text-secondary",children:["Connect more answer engines later in"," ",u.jsx(Je,{to:"/settings",className:"text-link hover:underline",children:"Settings"}),"."]})]})]}),u.jsx(ga,{tone:Z.state==="ready"?"positive":"caution",title:Z.id==="api"?oo(g.apiStatus):Z.id==="worker"?oo(g.workerStatus):Z.detail,children:Z.state==="ready"?"Ready":"Attention"})]},Z.id))}),u.jsxs("div",{className:"setup-nav",children:[y.launchState.blockedReason?u.jsx("p",{role:"status",className:"supporting-copy text-negative",children:y.launchState.blockedReason}):u.jsx("span",{}),u.jsx(Ee,{type:"button",disabled:!y.launchState.enabled,title:y.launchState.blockedReason,onClick:()=>{j({flowVersion:At,onboardingSessionId:k,event:"onboarding.step_completed",step:"system",method:"automatic"},"onboarding.step_completed:system"),de(ae)},children:"Continue"})]})]});case 1:return u.jsxs(Ua,{className:"surface-card step-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 2 of 5"}),u.jsx("h2",{children:"Create project"})]}),te?u.jsx(ga,{tone:"positive",children:"Created"}):null]}),te?u.jsxs("div",{className:"compact-stack",children:[u.jsxs("p",{className:"text-neutral",children:["Project ",u.jsx("span",{className:"text-heading font-medium",children:te})," created successfully."]}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",onClick:()=>nn("project",2),children:"Continue"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"project-name",children:"Project name"}),u.jsx("input",{id:"project-name",className:"setup-input",type:"text",placeholder:"my-website",value:De,onChange:Z=>at(Z.target.value)}),Ha&&Ha!==De?u.jsxs("p",{className:"supporting-copy",children:["Slug: ",Ha]}):null]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"display-name",children:"Display name (optional)"}),u.jsx("input",{id:"display-name",className:"setup-input",type:"text",placeholder:"My Website",value:pe,onChange:Z=>I(Z.target.value)})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"domain",children:"Canonical domain"}),u.jsx("input",{id:"domain",className:"setup-input",type:"text",placeholder:"example.com",value:ie,onChange:Z=>ue(Z.target.value)})]}),u.jsxs("div",{className:"setup-field-row",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"country",children:"Country"}),u.jsx("input",{id:"country",className:"setup-input",type:"text",placeholder:"US",maxLength:2,value:_e,onChange:Z=>le(Z.target.value.toUpperCase())})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"language",children:"Language"}),u.jsx("input",{id:"language",className:"setup-input",type:"text",placeholder:"en",maxLength:5,value:He,onChange:Z=>J(Z.target.value.toLowerCase())})]})]}),u.jsxs("label",{className:"flex items-start gap-3 rounded-md border border-default bg-surface p-3 cursor-pointer hover:border-strong",children:[u.jsx("input",{type:"checkbox",className:"mt-0.5 h-4 w-4 rounded border-strong bg-bg",checked:U,onChange:Z=>K(Z.target.checked)}),u.jsxs("span",{className:"flex-1",children:[u.jsx("span",{className:"block text-sm text-heading",children:"Auto-extract backlinks"}),u.jsxs("span",{className:"block text-xs text-muted mt-0.5",children:["When a new Common Crawl release syncs, automatically extract backlinks for this project."," ",u.jsx(Je,{to:"/backlinks",className:"text-positive-400 hover:text-positive underline underline-offset-2",children:"Manage backlinks"})]})]})]}),Ce?u.jsx("p",{className:"text-negative-400 text-sm",children:Ce}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",disabled:!Ha||!ie||Ne,onClick:Yt(Ao),children:Ne?"Creating...":"Create project"})]})]})]});case 2:return u.jsxs(Ua,{className:"surface-card step-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 3 of 5"}),u.jsx("h2",{children:"Add queries"})]}),P.isError?u.jsx(ga,{tone:"negative",children:"Load failed"}):za?u.jsxs(ga,{tone:"positive",children:[la.length," saved"]}):u.jsxs(ga,{tone:"neutral",children:[la.length," quer",la.length!==1?"ies":"y"]})]}),u.jsx("p",{className:"supporting-copy",children:"Enter the queries you want to track, one per line. A rough first list is fine: you can edit them, research more, and add to them at any time from the project."}),u.jsxs("div",{className:"rounded-md border border-base bg-bg-elevated p-3 text-sm",children:[u.jsx("p",{className:"m-0 font-medium text-heading",children:"Tracking more than one location or property?"}),u.jsx("p",{className:"mt-1 mb-2 text-secondary",children:"Queries attach to each property separately in Advanced measurement, so there is nothing useful to add here. Skip this and set it up on the project."}),u.jsx(Ee,{type:"button",variant:"outline",size:"sm",onClick:()=>{In(),x({to:te?`/projects/${encodeURIComponent(te)}/portfolio`:"/"})},children:"Set up Advanced measurement instead"})]}),P.isError?u.jsxs("div",{className:"compact-stack",children:[u.jsx("div",{role:"alert",className:"rounded-md border border-negative bg-negative-soft p-3 text-sm text-negative",children:"Saved queries could not be loaded. Retry before changing the query basket."}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",onClick:()=>{P.refetch()},children:"Retry loading queries"})]})]}):za?u.jsxs("div",{className:"compact-stack",children:[u.jsx("ul",{className:"detail-list",children:la.map(Z=>u.jsx("li",{children:Z},Z))}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",onClick:()=>nn("queries",3,la.length),children:"Continue"})]})]}):u.jsxs("div",{className:"compact-stack",children:[Jt.length>0?u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{className:"flex items-center gap-2 text-muted text-xs uppercase tracking-wide",children:[u.jsx("span",{className:"flex-1 border-t border-base"}),"auto-generate",u.jsx("span",{className:"flex-1 border-t border-base"})]}),u.jsxs("div",{className:"flex items-end gap-2",children:[u.jsxs("div",{className:"setup-field flex-1",children:[u.jsx("label",{className:"setup-label",htmlFor:"gen-provider",children:"Provider"}),u.jsx("select",{id:"gen-provider",className:"setup-input",value:Bn,onChange:Z=>rs(Z.target.value),children:Jt.map(Z=>u.jsxs("option",{value:Z.name,children:[Z.displayName??Z.name,Z.model?` (${Z.model})`:""]},Z.name))})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"gen-count",children:"Count"}),u.jsx("select",{id:"gen-count",className:"setup-input",value:Kt,onChange:Z=>ou(Number(Z.target.value)),children:[3,5,10,15,20].map(Z=>u.jsx("option",{value:Z,children:Z},Z))})]}),u.jsx(Ee,{type:"button",variant:"outline",disabled:bo||!Bn,onClick:Yt(du),children:bo?"Analyzing site...":"Generate"})]}),_i?u.jsx("p",{className:"text-negative-400 text-sm",children:_i}):null]}):null,u.jsxs("div",{className:"flex items-center gap-2 text-muted text-xs uppercase tracking-wide",children:[u.jsx("span",{className:"flex-1 border-t border-base"}),"or type manually",u.jsx("span",{className:"flex-1 border-t border-base"})]}),u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"queries",children:"Queries (one per line)"}),u.jsx("textarea",{id:"queries",className:"setup-textarea",rows:6,placeholder:`emergency dentist brooklyn
|
|
81
|
+
best invisalign downtown brooklyn
|
|
82
|
+
pediatric dentist brooklyn heights`,value:Ye,onChange:Z=>Ut(Z.target.value)})]}),ss?u.jsx("p",{className:"text-negative-400 text-sm",children:ss}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",variant:"ghost",onClick:In,children:"Skip for now"}),u.jsx(Ee,{type:"button",disabled:la.length===0||Gr,onClick:Yt(uu),children:Gr?"Saving...":`Save ${la.length} quer${la.length!==1?"ies":"y"}`})]})]})]});case 3:return u.jsxs(Ua,{className:"surface-card step-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 4 of 5"}),u.jsx("h2",{children:"Add competitors"})]}),Kr?u.jsx(ga,{tone:"positive",children:"Saved"}):null]}),u.jsx("p",{className:"supporting-copy",children:"Domains that compete for the same queries. One per line."}),Kr?u.jsxs("div",{className:"compact-stack",children:[u.jsx("ul",{className:"detail-list",children:mn.map(Z=>u.jsx("li",{children:Z},Z))}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",onClick:()=>nn("competitors",4,mn.length),children:"Continue"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{className:"setup-field",children:[u.jsx("label",{className:"setup-label",htmlFor:"competitors",children:"Competitor domains (one per line)"}),u.jsx("textarea",{id:"competitors",className:"setup-textarea",rows:4,placeholder:`competitor1.com
|
|
83
|
+
competitor2.com`,value:xo,onChange:Z=>ru(Z.target.value)})]}),Qt?u.jsx("p",{className:"text-negative-400 text-sm",children:Qt}):null,u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Vn,children:"Skip"}),u.jsx(Ee,{type:"button",disabled:mn.length===0||Zt,onClick:Yt(Zr),children:Zt?"Saving...":`Save ${mn.length} competitor${mn.length!==1?"s":""}`})]})]})]})]});case 4:{const Z=an.data,Re=Z?.status??(Pn===ee?.id?ee.status:void 0),ca=Re==="completed"||Re==="partial"||Re==="failed"||Re==="cancelled",ba=Z?.snapshots??[],mu=ba.filter(zt=>zt.citationState==="cited").length,Fr=ba.filter(zt=>zt.answerMentioned===!0).length,No=new Set(ba.map(zt=>zt.query).filter(zt=>!!zt)).size,Yr=Re?xb(Re,ba.length):!1,Ri=re&&!Mn,cs=tn??(Z?.error?XT(Z.error):Re==="cancelled"?"The sweep was cancelled before it produced a baseline.":(Re==="completed"||Re==="partial")&&ba.length===0?"The sweep finished without producing any snapshots. Confirm the query set and provider configuration, then retry.":ee?.statusDetail||"The sweep did not produce a baseline. Review provider configuration, then retry.");let ea=null;return Ri||Yr?ea=u.jsx(ga,{tone:"positive",children:"Complete"}):tn&&!Mn?ea=u.jsx(ga,{tone:"negative",children:"Failed"}):ca?ea=u.jsx(ga,{tone:"negative",children:Re==="cancelled"?"Cancelled":"Failed"}):Mn&&(ea=u.jsx(ga,{tone:"caution",children:"Running"})),u.jsxs(Ua,{className:"surface-card step-card",children:[u.jsxs("div",{className:"section-head",children:[u.jsxs("div",{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Step 5 of 5"}),u.jsx("h2",{children:"Launch first run"})]}),ea]}),Ri?u.jsxs("div",{className:"compact-stack",children:[u.jsxs("p",{className:"text-secondary",children:["Setup is complete. ",u.jsx("span",{className:"text-strong font-medium",children:te})," already has a successful answer-visibility baseline."]}),u.jsxs("div",{className:"setup-nav",children:[u.jsx("span",{}),u.jsx(Ee,{type:"button",onClick:()=>{x({to:te?`/projects/${encodeURIComponent(te)}`:"/"})},children:"Open project dashboard →"})]})]}):Mn?ca?Yr?u.jsxs("div",{className:"compact-stack",children:[u.jsxs("p",{className:"text-neutral",children:["Sweep complete. Your first answer-visibility snapshot for"," ",u.jsx("span",{className:"text-heading font-medium",children:te}),":"]}),u.jsxs("div",{className:"grid grid-cols-3 gap-2 mt-1",children:[u.jsxs("div",{className:"rounded-md border border-default bg-surface p-3",children:[u.jsx("p",{className:"text-xs font-medium text-secondary",children:"Mentioned"}),u.jsxs("p",{className:"text-2xl font-bold tabular-nums text-primary mt-1",children:[Fr,u.jsxs("span",{className:"text-faint text-lg",children:[" / ",No]})]}),u.jsx("p",{className:"mt-0.5 text-sm text-secondary",children:"queries naming your brand"})]}),u.jsxs("div",{className:"rounded-md border border-default bg-surface p-3",children:[u.jsx("p",{className:"text-xs font-medium text-secondary",children:"Cited"}),u.jsxs("p",{className:"text-2xl font-bold tabular-nums text-primary mt-1",children:[mu,u.jsxs("span",{className:"text-faint text-lg",children:[" / ",No]})]}),u.jsx("p",{className:"mt-0.5 text-sm text-secondary",children:"queries citing your site"})]}),u.jsxs("div",{className:"rounded-md border border-default bg-surface p-3",children:[u.jsx("p",{className:"text-xs font-medium text-secondary",children:"Results"}),u.jsx("p",{className:"text-2xl font-bold tabular-nums text-primary mt-1",children:ba.length}),u.jsx("p",{className:"mt-0.5 text-sm text-secondary",children:"completed engine checks"})]})]}),u.jsx("p",{className:"mt-1 text-sm text-secondary",children:"Open the project to review the evidence."}),u.jsxs("div",{className:"setup-nav",children:[u.jsx("span",{}),u.jsx(Ee,{type:"button",onClick:()=>{x({to:te?`/projects/${encodeURIComponent(te)}`:"/"})},children:"Open project dashboard →"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsxs("div",{role:"alert",className:"rounded-md border border-negative bg-negative-soft p-3 text-sm text-negative",children:[u.jsx("p",{children:cs}),u.jsx("p",{className:"mt-1 text-xs text-secondary",children:"Fix provider or query configuration if needed, then retry without leaving setup."})]}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",asChild:!0,children:u.jsx(Je,{to:"/settings",children:"Configure providers"})}),u.jsx(Ee,{type:"button",disabled:dn||!!Ft,onClick:Yt(ls),children:dn?"Retrying...":"Retry visibility sweep"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsx("p",{className:"text-neutral",children:"Sweep running — typically 30-60s. Polling every 2s…"}),u.jsx("div",{className:"rounded-md border border-default bg-surface p-3 text-xs text-muted",children:u.jsxs("p",{children:["Status: ",u.jsx("span",{className:"text-neutral",children:Re??"queued"})]})}),an.isError&&u.jsxs("div",{role:"alert",className:"rounded-md border border-negative bg-negative-soft p-3 text-sm text-negative",children:[u.jsx("p",{children:an.error instanceof Error?an.error.message:"Could not refresh the sweep status."}),u.jsx(Ee,{type:"button",variant:"outline",size:"sm",className:"mt-2",onClick:()=>{an.refetch()},children:"Retry status check"})]}),u.jsxs("div",{className:"setup-nav",children:[u.jsx("span",{}),u.jsx(Ee,{type:"button",variant:"outline",onClick:()=>{x({to:te?`/projects/${encodeURIComponent(te)}`:"/"})},children:"Watch on project page"})]})]}):u.jsxs("div",{className:"compact-stack",children:[u.jsxs("p",{className:"supporting-copy",children:["Setup is done. You can run a first sweep now to get a baseline for"," ",u.jsx("span",{className:"text-heading font-medium",children:te}),", or finish and run it later from the project. A sweep calls the answer engines, so it costs provider usage."]}),(Ft||tn)&&u.jsxs("div",{role:"alert",className:"rounded-md border border-negative bg-negative-soft p-3 text-sm text-negative",children:[u.jsx("p",{children:tn??Ft}),u.jsx("p",{className:"mt-1 text-xs text-secondary",children:"Resolve the blocker above, then retry the sweep here."})]}),u.jsxs("div",{className:"setup-nav",children:[u.jsx(Ee,{type:"button",variant:"outline",onClick:Wt,children:"Back"}),u.jsx(Ee,{type:"button",variant:"ghost",onClick:()=>{x({to:te?`/projects/${encodeURIComponent(te)}`:"/"})},children:"Finish without running"}),u.jsx(Ee,{type:"button",disabled:dn||!!Ft,title:Ft,onClick:Yt(ls),children:dn?"Launching...":tn?"Retry visibility sweep":"Launch visibility sweep"})]})]})]})}default:return null}})();return u.jsxs("div",{className:"page-container",children:[u.jsx("div",{className:"page-header",children:u.jsxs("div",{className:"page-header-left",children:[u.jsx("h1",{className:"page-title",children:"Setup"}),u.jsx("p",{className:"page-subtitle",children:"Create a project and run its first visibility check."})]})}),u.jsx(gM,{current:Ae,labels:fM}),u.jsx("section",{className:"setup-wizard",children:Ct})]})}function xM(){return u.jsx("div",{className:"page-container",children:u.jsx("section",{className:"page-section",children:u.jsxs(Ua,{className:"surface-card empty-card",children:[u.jsx("h1",{children:"Route not found"}),u.jsx("p",{children:"The current path does not map to a dashboard view."}),u.jsx(Ee,{asChild:!0,children:u.jsx(Je,{to:"/",children:"Return to overview"})})]})})})}const en=bi(()=>vi(()=>import("./ProjectPage-VTbW21dz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),"ProjectPage"),kM=bi(()=>vi(()=>import("./RunsPage-FxMTprK1.js"),__vite__mapDeps([12,1,2,9,6,3,10,11]),import.meta.url),"RunsPage"),wM=bi(()=>vi(()=>import("./HistoryPage-C_PcPiyX.js"),__vite__mapDeps([13,1,7,9,6,3,10,11]),import.meta.url),"HistoryPage"),SM=bi(()=>vi(()=>import("./SettingsPage-Cr7_PrNW.js"),__vite__mapDeps([14,1,9,6,3,10,11]),import.meta.url),"SettingsPage"),jM=bi(()=>vi(()=>import("./BacklinksPage-By06DbHN.js"),__vite__mapDeps([15,1,3,9,6,10,11]),import.meta.url),"BacklinksPage"),AM=bi(()=>vi(()=>import("./TrafficPage-D0qk9uMN.js"),__vite__mapDeps([16,1,5,3,9,6,10,11]),import.meta.url),"TrafficPage"),NM=bi(()=>vi(()=>import("./TrafficSourceDetailPage-CXa_3_Gy.js"),__vite__mapDeps([17,1,5,4,3,6,9,10,11]),import.meta.url),"TrafficSourceDetailPage"),_M=bi(()=>vi(()=>import("./MeasurementPropertyPage-BHnNegEa.js"),__vite__mapDeps([18,1,4,8,3,9,6,10,11]),import.meta.url),"MeasurementPropertyPage");function CM(){return u.jsx(QB,{children:u.jsx(KB,{})})}const oa=_w()({component:CM,validateSearch:e=>({manageQueries:e.manageQueries===!0||e.manageQueries==="true"?!0:void 0,runId:typeof e.runId=="string"?e.runId:void 0,evidenceId:typeof e.evidenceId=="string"?e.evidenceId:void 0,runStatus:typeof e.runStatus=="string"?e.runStatus:void 0,runKind:typeof e.runKind=="string"?e.runKind:void 0,runProject:typeof e.runProject=="string"?e.runProject:void 0,runWindow:typeof e.runWindow=="string"?e.runWindow:void 0,runQuery:typeof e.runQuery=="string"?e.runQuery:void 0,scope:typeof e.scope=="string"?e.scope:void 0,class:typeof e.class=="string"?e.class:void 0})}),zM=xt({getParentRoute:()=>oa,path:"/",component:JB,beforeLoad:({context:e})=>{const n=e.queryClient.getQueryData(ho({client:oe}));if(n&&n.length===0)throw Nb({to:"/setup"})}}),EM=xt({getParentRoute:()=>oa,path:"/projects",component:eM}),DM=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Ca=xt({getParentRoute:()=>oa,path:"/projects/$projectName",component:()=>u.jsx(Km,{}),beforeLoad:async({context:e,params:n,location:s})=>{const r=n.projectName;if(!DM.test(r))return;let c=e.queryClient.getQueryData(ho({client:oe}));if(!c)try{c=await e.queryClient.ensureQueryData(Wc({client:oe}))}catch{return}const f=c.find(g=>g.id===r);if(f)throw Nb({to:s.pathname.replace(`/projects/${r}`,`/projects/${encodeURIComponent(f.name)}`),replace:!0})}}),TM=xt({getParentRoute:()=>Ca,path:"/",component:()=>u.jsx(en,{tab:"overview"})}),RM=xt({getParentRoute:()=>Ca,path:"/portfolio",component:()=>u.jsx(en,{tab:"portfolio"})}),OM=xt({getParentRoute:()=>Ca,path:"/search-console",component:()=>u.jsx(en,{tab:"search-console"})}),qM=xt({getParentRoute:()=>Ca,path:"/local",component:()=>u.jsx(en,{tab:"local"})}),BM=xt({getParentRoute:()=>Ca,path:"/discovery",component:()=>u.jsx(en,{tab:"discovery"})}),MM=xt({getParentRoute:()=>Ca,path:"/properties/$targetKey",component:()=>u.jsx(_M,{})}),PM=xt({getParentRoute:()=>Ca,path:"/report",component:()=>u.jsx(en,{tab:"report"})}),UM=xt({getParentRoute:()=>Ca,path:"/activity",component:()=>u.jsx(en,{tab:"activity"})}),LM=xt({getParentRoute:()=>Ca,path:"/backlinks",component:()=>u.jsx(en,{tab:"backlinks"})}),IM=xt({getParentRoute:()=>Ca,path:"/technical-aeo",component:()=>u.jsx(en,{tab:"technical-aeo"})}),VM=xt({getParentRoute:()=>Ca,path:"/history",component:()=>u.jsx(en,{tab:"history"})}),$M=xt({getParentRoute:()=>Ca,path:"/settings",component:()=>u.jsx(en,{tab:"settings"})}),GM=xt({getParentRoute:()=>oa,path:"/runs",component:kM}),HM=xt({getParentRoute:()=>oa,path:"/history",component:wM}),KM=xt({getParentRoute:()=>oa,path:"/settings",component:SM,beforeLoad:({context:e})=>{}}),QM=xt({getParentRoute:()=>oa,path:"/setup",component:yM}),ZM=xt({getParentRoute:()=>oa,path:"/backlinks",component:jM}),FM=xt({getParentRoute:()=>oa,path:"/traffic",component:AM}),YM=xt({getParentRoute:()=>oa,path:"/traffic/$projectName/$sourceId",component:NM}),XM=xt({getParentRoute:()=>oa,path:"*",component:xM}),JM=oa.addChildren([zM,EM,Ca.addChildren([TM,RM,OM,qM,BM,MM,PM,UM,LM,IM,VM,$M]),GM,HM,KM,QM,ZM,FM,YM,XM]);function WM(){return typeof window<"u"&&window.__CANONRY_CONFIG__?.basePath?window.__CANONRY_CONFIG__.basePath:"/"}const Sb=WM(),eP=Sb==="/"?"":Sb.replace(/\/$/,"");function tP(e,n){return Cw({routeTree:JM,basepath:eP||"/",context:{queryClient:e},...n?.initialEntries})}const aP=6e4;function nP(){const[e,n]=D.useState(jm()?"ready":"checking"),[s,r]=D.useState(null),[c,f]=D.useState(!1),[g,y]=D.useState(""),[x,k]=D.useState(""),[S,j]=D.useState(""),[A,z]=D.useState(null),[$,L]=D.useState(!1),[P,V]=D.useState(!1),ne=D.useRef(null),X=D.useRef(null),ee=D.useRef(null),re=()=>{const de=s?`${s.name}:${s.role}`:"no-accounts";if(!ne.current||ee.current!==de){X.current?.clear();const ge=O5();X.current=ge,ne.current=tP(ge),ee.current=de}return{queryClient:X.current,router:ne.current}},he=de=>de.authRequired?(f(!0),r(de.user),n(de.user?"ready":"account-login"),!0):!1;D.useEffect(()=>{if(jm())return;let de=!1;return Promise.allSettled([Og(),Rg()]).then(([ge,qe])=>{if(de||ge.status==="fulfilled"&&he(ge.value))return;if(qe.status==="rejected"){const at=qe.reason;z(at instanceof Error?at.message:"Failed to reach the Canonry API"),n("login");return}const De=qe.value;De.authenticated?n("ready"):n(De.setupRequired?"setup":"login")}),()=>{de=!0}},[]),D.useEffect(()=>{if(e!=="ready"||jm())return;const de=setInterval(()=>{if(c){Og().then(ge=>{ge.authRequired&&!ge.user&&(V(!0),r(null),n("account-login"))}).catch(()=>{});return}Rg().then(ge=>{ge.authenticated||(V(!0),n(ge.setupRequired?"setup":"login"))}).catch(()=>{})},aP);return Tg(()=>{V(!0),r(null),n(c?"account-login":"login")}),()=>{clearInterval(de),Tg(null)}},[e,c]);const q=async de=>{if(de.preventDefault(),!x.trim()||x.trim().length<8){z("Password must be at least 8 characters");return}if(x!==S){z("Passwords do not match");return}L(!0),z(null);try{if(!(await l5(x.trim())).authenticated){z("Setup failed");return}k(""),j(""),V(!1),n("ready")}catch(ge){z(ge instanceof Na||ge instanceof Error?ge.message:"Setup failed")}finally{L(!1)}},ae=async de=>{if(de.preventDefault(),!!x.trim()){L(!0),z(null);try{if(!(await c5(x.trim())).authenticated){z("Incorrect password");return}k(""),V(!1),n("ready")}catch(ge){z(ge instanceof Na||ge instanceof Error?ge.message:"Authentication failed")}finally{L(!1)}}},Ae=async de=>{if(de.preventDefault(),!(!g.trim()||!x)){L(!0),z(null);try{const ge=await u5(g.trim(),x);if(!ge.user){z("Incorrect name or password.");return}k(""),V(!1),r(ge.user),n("ready")}catch(ge){z(ge instanceof Na?ge.message:"Incorrect name or password.")}finally{L(!1)}}};if(e==="ready"){const{queryClient:de,router:ge}=re();return u.jsx(j5,{account:s,children:u.jsx(zw,{client:de,children:u.jsx(Ew,{router:ge})})})}return u.jsx("div",{className:"min-h-screen bg-bg px-4 py-8",children:u.jsxs("div",{className:"mx-auto flex min-h-[calc(100vh-4rem)] max-w-md flex-col items-center justify-center gap-5",children:[u.jsxs("div",{"data-testid":"auth-brand",className:"flex items-center gap-2.5",children:[u.jsx("img",{className:"size-7",src:"./favicon.svg",alt:"","aria-hidden":"true"}),u.jsx("span",{className:"text-lg font-semibold tracking-tight text-heading",children:"Canonry"})]}),u.jsx(Ua,{className:"surface-card w-full",children:e==="checking"?u.jsx(Zs,{className:"py-8",children:u.jsx("p",{className:"supporting-copy text-center",children:"Connecting to Canonry…"})}):e==="account-login"?u.jsxs(u.Fragment,{children:[u.jsxs(Nr,{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Dashboard access"}),u.jsx(_r,{children:"Sign in to Canonry"})]}),u.jsxs(Zs,{children:[P?u.jsx("p",{className:"mb-4 rounded-md border border-caution bg-caution-soft px-3 py-2 text-sm text-caution",children:"You were signed out — please sign in again."}):null,u.jsxs("form",{className:"space-y-4",onSubmit:Yt(Ae),children:[u.jsxs("label",{className:"block space-y-1.5",htmlFor:"account-name",children:[u.jsx("span",{className:"text-xs font-medium text-secondary",children:"Name"}),u.jsx("input",{autoFocus:!0,id:"account-name",className:"w-full rounded-md border border-base bg-bg px-3 py-2 text-sm text-heading outline-none transition focus:border-mono-600",type:"text",autoComplete:"username",value:g,onChange:de=>y(de.target.value)})]}),u.jsxs("label",{className:"block space-y-1.5",htmlFor:"account-password",children:[u.jsx("span",{className:"text-xs font-medium text-secondary",children:"Password"}),u.jsx("input",{id:"account-password",className:"w-full rounded-md border border-base bg-bg px-3 py-2 text-sm text-heading outline-none transition focus:border-mono-600",type:"password",autoComplete:"current-password",value:x,onChange:de=>k(de.target.value)})]}),A?u.jsx("p",{className:"text-sm text-negative-400",children:A}):null,u.jsx(Ee,{type:"submit",disabled:$||!g.trim()||!x,children:$?"Signing in…":"Sign in"})]})]})]}):e==="setup"?u.jsxs(u.Fragment,{children:[u.jsxs(Nr,{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"First-time setup"}),u.jsx(_r,{children:"Create a dashboard password"}),u.jsx(Oc,{children:"Choose a password to protect the Canonry dashboard. You will use this to sign in on future visits."})]}),u.jsx(Zs,{children:u.jsxs("form",{className:"space-y-4",onSubmit:Yt(q),children:[u.jsxs("label",{className:"block space-y-1.5",children:[u.jsx("span",{className:"text-xs font-medium text-secondary",children:"Password"}),u.jsx("input",{autoFocus:!0,className:"w-full rounded-md border border-base bg-bg px-3 py-2 text-sm text-heading outline-none transition focus:border-mono-600",type:"password",value:x,onChange:de=>k(de.target.value),placeholder:"At least 8 characters"})]}),u.jsxs("label",{className:"block space-y-1.5",children:[u.jsx("span",{className:"text-xs font-medium text-secondary",children:"Confirm password"}),u.jsx("input",{className:"w-full rounded-md border border-base bg-bg px-3 py-2 text-sm text-heading outline-none transition focus:border-mono-600",type:"password",value:S,onChange:de=>j(de.target.value),placeholder:"Re-enter password"})]}),A?u.jsx("p",{className:"text-sm text-negative-400",children:A}):null,u.jsx(Ee,{type:"submit",disabled:$||!x.trim()||!S.trim(),children:$?"Setting up…":"Create password & open dashboard"})]})})]}):u.jsxs(u.Fragment,{children:[u.jsxs(Nr,{children:[u.jsx("p",{className:"eyebrow eyebrow-soft",children:"Dashboard access"}),u.jsx(_r,{children:"Sign in to Canonry"}),u.jsx(Oc,{children:"Enter your dashboard password to continue."})]}),u.jsxs(Zs,{children:[P?u.jsx("p",{className:"mb-4 rounded-md border border-caution bg-caution-soft px-3 py-2 text-sm text-caution",children:"Your session expired — please sign in again."}):null,u.jsxs("form",{className:"space-y-4",onSubmit:Yt(ae),children:[u.jsxs("label",{className:"block space-y-1.5",children:[u.jsx("span",{className:"text-xs font-medium text-secondary",children:"Password"}),u.jsx("input",{autoFocus:!0,className:"w-full rounded-md border border-base bg-bg px-3 py-2 text-sm text-heading outline-none transition focus:border-mono-600",type:"password",value:x,onChange:de=>k(de.target.value),placeholder:"Dashboard password"})]}),A?u.jsx("p",{className:"text-sm text-negative-400",children:A}):null,u.jsx(Ee,{type:"submit",disabled:$||!x.trim(),children:$?"Signing in…":"Open dashboard"})]})]})]})})]})})}const d3=document.getElementById("root");if(!d3)throw new Error("Expected #root element for web app bootstrap.");sS.createRoot(d3).render(u.jsx(D.StrictMode,{children:u.jsx(nP,{})}));export{$L as $,IP as A,Ee as B,zc as C,_L as D,zL as E,EL as F,UU as G,XP as H,xr as I,YP as J,lU as K,sa as L,RL as M,OL as N,aU as O,wq as P,qL as Q,nU as R,YT as S,ga as T,WP as U,tU as V,DL as W,TL as X,CL as Y,JP as Z,BL as _,pI as a,fP as a$,UL as a0,IL as a1,LL as a2,VL as a3,k5 as a4,_0 as a5,Te as a6,PL as a7,qx as a8,On as a9,eL as aA,rI as aB,lI as aC,cI as aD,iU as aE,ho as aF,sU as aG,A0 as aH,uI as aI,mI as aJ,dI as aK,SR as aL,bI as aM,tI as aN,AL as aO,ce as aP,EP as aQ,zP as aR,CP as aS,_P as aT,jP as aU,SP as aV,NP as aW,AP as aX,wP as aY,kP as aZ,hP as a_,ML as aa,gI as ab,Y9 as ac,X9 as ad,VU as ae,IU as af,CU as ag,OU as ah,qU as ai,Na as aj,BU as ak,TP as al,XT as am,NO as an,bc as ao,MU as ap,Xm as aq,aI as ar,eU as as,LU as at,uR as au,zR as av,vL as aw,kL as ax,xL as ay,WU as az,u_ as b,KL as b$,xP as b0,vP as b1,bP as b2,gP as b3,yP as b4,pP as b5,mP as b6,dP as b7,uP as b8,CS as b9,$r as bA,Wc as bB,mB as bC,Rr as bD,Jb as bE,cL as bF,uL as bG,kI as bH,rM as bI,wL as bJ,NL as bK,dL as bL,pL as bM,fL as bN,mL as bO,na as bP,a5 as bQ,aR as bR,fI as bS,OP as bT,qP as bU,RP as bV,i5 as bW,BP as bX,cR as bY,LP as bZ,GL as b_,HU as ba,eI as bb,GU as bc,gU as bd,wI as be,ZU as bf,KU as bg,FU as bh,YU as bi,$U as bj,QU as bk,UP as bl,PP as bm,MP as bn,yU as bo,$P as bp,rL as bq,Ky as br,oL as bs,GP as bt,HP as bu,sL as bv,KP as bw,QP as bx,FP as by,ZP as bz,hI as c,g5 as c0,pU as c1,QL as c2,ZL as c3,HL as c4,aL as c5,cU as c6,uU as c7,dU as c8,hU as c9,RU as cA,Sq as cB,Wx as cC,Cq as cD,e3 as cE,t3 as cF,AU as cG,sI as cH,JU as cI,x0 as cJ,lL as cK,nI as cL,oI as cM,jU as cN,XU as cO,wU as cP,SU as cQ,kU as cR,iI as cS,Q_ as cT,gL as cU,hL as cV,bL as cW,yL as cX,mU as ca,Js as cb,N0 as cc,yI as cd,nu as ce,E0 as cf,SL as cg,jL as ch,d5 as ci,F4 as cj,DP as ck,VP as cl,oU as cm,rU as cn,tM as co,iu as cp,D0 as cq,fU as cr,oo as cs,Zy as ct,NU as cu,zU as cv,DU as cw,TU as cx,_U as cy,EU as cz,Ua as d,un as e,Yt as f,PU as g,sb as h,H4 as i,FL as j,oe as k,YL as l,XL as m,WL as n,JL as o,bU as p,xU as q,vU as r,vI as s,WT as t,T0 as u,xI as v,vp as w,nL as x,tL as y,iL as z};
|