viewgate-wrapper 1.11.40 → 1.11.41
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/dist/components/ViewGateOverlay.d.ts.map +1 -1
- package/dist/utils/VGCap.d.ts +12 -0
- package/dist/utils/VGCap.d.ts.map +1 -0
- package/dist/viewgate-wrapper.js +2408 -8514
- package/dist/viewgate-wrapper.umd.cjs +10 -15
- package/package.json +1 -3
- package/dist/cli.js +0 -123
- package/dist/plugin/babel-plugin-viewgate.js +0 -27
- package/dist/plugin/config-injectors.js +0 -205
- package/dist/plugin/next-loader.js +0 -4
- package/dist/plugin/transform-logic.js +0 -30
- package/dist/plugin/vite-plugin-viewgate.js +0 -14
- package/dist/plugin/webpack-loader.js +0 -9
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";body{margin:0!important;padding:0!important}:root{--vg-primary: #6366f1;--vg-primary-glow: rgba(99, 102, 241, .5);--vg-primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);--vg-bg-glass: rgba(255, 255, 255, .7);--vg-radius: 16px;--vg-font-main: "Inter", system-ui, sans-serif;--vg-font-alt: "Inter", system-ui, sans-serif;--placeholder-color: #94a3b8;--vg-glass-border: rgba(255, 255, 255, .3);--vg-shadow-premium: 0 20px 50px rgba(0, 0, 0, .1)}.vg-container,.vg-container *{box-sizing:border-box}.vg-container{font-family:var(--vg-font-main);-webkit-font-smoothing:antialiased;user-select:none!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important}.vg-glassmorphism{background:var(--vg-bg-glass);backdrop-filter:blur(16px) saturate(180%);-webkit-backdrop-filter:blur(16px) saturate(180%);border:1px solid var(--vg-glass-border);box-shadow:0 8px 32px #0000001a;border-radius:var(--vg-radius);position:relative}.vg-button-primary{background:var(--vg-primary-gradient);color:#fff;border:none;padding:12px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:700;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 12px #6366f14d}.vg-button-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #6366f166}.vg-button-primary:disabled,.vg-button-ghost:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.4);transform:none!important;box-shadow:none!important;pointer-events:none}.vg-button-ghost{background:#fffc;color:#1e293b;border:1px solid #e2e8f0;padding:10px 24px;font-family:var(--vg-font-main);font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;border-radius:99px;display:flex;align-items:center;justify-content:center;gap:8px}.vg-button-ghost:hover{background:#fff;border-color:#cbd5e1;box-shadow:0 4px 12px #0000000d}.vg-badge{background:#f1f5f9;color:#64748b;padding:4px 12px;font-size:11px;border-radius:99px;font-weight:600;display:inline-flex;align-items:center;gap:6px}.vg-textarea{width:100%;box-sizing:border-box;border:1px solid #e2e8f0;border-radius:12px;padding:12px;font-family:var(--vg-font-main);font-size:15px;color:#0f172a;resize:none;outline:none;background:#f8fafc;transition:all .2s ease}.vg-textarea:focus{background:#fff;border-color:var(--vg-primary);box-shadow:0 0 0 4px #6366f11a}@keyframes vg-fade-in{0%{opacity:0}to{opacity:1}}@keyframes vg-slide-in{0%{transform:translateY(30px) scale(.96);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes vg-pop-in{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08);opacity:1}to{transform:scale(1);opacity:1}}@keyframes vg-slide-up-fade{0%{transform:translateY(12px) scale(.95);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.vg-animate-pop{animation:vg-pop-in .4s cubic-bezier(.34,1.56,.64,1) forwards}.vg-animate-slide-up{animation:vg-slide-up-fade .5s cubic-bezier(.22,1,.36,1) forwards}.vg-button-primary,.vg-button-ghost,.vg-pin-container,.vg-action-bar,.vg-glassmorphism{transition:all .3s cubic-bezier(.4,0,.2,1)}.vg-animate-slide{animation:vg-slide-in .5s cubic-bezier(.22,1,.36,1) forwards}.vg-animate-fade{animation:vg-fade-in .35s cubic-bezier(.22,1,.36,1) forwards}.vg-toasts{position:fixed;top:24px;right:24px;display:flex;flex-direction:column;gap:12px}.vg-toast{padding:12px 20px;display:flex;align-items:center;gap:12px;min-width:300px;border-radius:12px;box-shadow:0 10px 30px #0000001a;background:#fff}.vg-toast.success{border-left:6px solid #22c55e}.vg-toast.error{border-left:6px solid #ef4444}.vg-backdrop-blur{position:fixed;top:0;left:0;width:100%;height:100%;-webkit-backdrop-filter:blur(8px) grayscale(.2);backdrop-filter:blur(8px) grayscale(.2);background:#0000001a;pointer-events:none;transition:opacity .3s ease,clip-path .2s cubic-bezier(.19,1,.22,1)}.vg-selection-pulse{position:fixed;pointer-events:none;border:2px solid var(--vg-primary);border-radius:8px;box-shadow:0 0 0 0 var(--vg-primary-glow);animation:vg-pulse 2s infinite;transition:all .2s cubic-bezier(.19,1,.22,1)}@keyframes vg-pulse{0%{box-shadow:0 0 0 0 var(--vg-primary-glow)}70%{box-shadow:0 0 0 15px #6366f100}to{box-shadow:0 0 #6366f100}}.vg-selection-label{position:absolute;top:-40px;left:0;background:var(--vg-primary-gradient);color:#fff;padding:8px 16px;border-radius:20px;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:0 4px 12px #6366f14d;display:flex;align-items:center;gap:8px}.vg-pin-container{transition:transform .2s ease}.vg-pin-container:hover{transform:scale(1.1);z-index:2147483645!important}.vg-formal-pin{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#f97316,#ea580c);border:3px solid white;box-shadow:0 4px 12px #ea580c66;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .2s ease}.vg-formal-pin.modal-variant{background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 4px 12px #f59e0b66;border-style:dashed}.vg-formal-pin.ready{background:linear-gradient(135deg,#a855f7,#7e22ce);box-shadow:0 4px 12px #a855f766}.vg-formal-pin.completed{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 4px 12px #10b98166}.vg-formal-pin.backlog{background:linear-gradient(135deg,#94a3b8,#64748b);box-shadow:0 4px 12px #64748b66}.vg-formal-pin.bug{background:linear-gradient(135deg,#f43f5e,#e11d48);box-shadow:0 4px 12px #e11d4866}.vg-formal-pin.mixed{border:3px solid #ea580c;box-shadow:0 4px 15px #ea580c66}.vg-pin-tooltip{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%);padding:16px;border-radius:16px;background:#fff;color:#1e293b;width:320px;font-size:13px;box-shadow:0 10px 40px #00000040;opacity:0;visibility:hidden;pointer-events:none;transition:all .3s cubic-bezier(.19,1,.22,1);border:1px solid #e2e8f0;z-index:1000;overflow:hidden}.vg-tooltip-scroll{scrollbar-width:thin;scrollbar-color:rgba(99,102,241,.2) transparent;overflow-y:auto;overflow-x:hidden;padding-right:12px;scroll-behavior:smooth}.vg-tooltip-scroll::-webkit-scrollbar{width:4px}.vg-tooltip-scroll::-webkit-scrollbar-track{background:transparent}.vg-tooltip-scroll::-webkit-scrollbar-thumb{background:#6366f14d;border-radius:10px}.vg-tooltip-scroll::-webkit-scrollbar-thumb:hover{background:#6366f180}.vg-text-wrap{word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;white-space:pre-wrap}.vg-line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;max-height:2.8em}.vg-pin-badge{position:absolute;top:-8px;right:-8px;background:#f43f5e;color:#fff;font-size:10px;font-weight:800;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid white;box-shadow:0 4px 12px #f43f5e66;z-index:2}.vg-pin-tooltip.vg-top{top:auto;bottom:calc(100% + 12px)}.vg-pin-tooltip.vg-tooltip-right{left:0;transform:translate(0)}.vg-pin-tooltip.vg-tooltip-left{left:auto;right:0;transform:translate(0)}.vg-pin-container:hover .vg-pin-tooltip.vg-tooltip-right,.vg-pin-container:hover .vg-pin-tooltip.vg-tooltip-left{transform:translate(0) translateY(-5px)}.vg-pin-container:hover .vg-pin-tooltip{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%) translateY(-5px)}.vg-action-bar{display:flex;gap:12px;padding:0;background:transparent;border:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.vg-custom-scrollbar::-webkit-scrollbar{width:6px}.vg-custom-scrollbar::-webkit-scrollbar-track{background:transparent}.vg-custom-scrollbar::-webkit-scrollbar-thumb{background:#6366f166;border-radius:10px;transition:all .2s ease}.vg-custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#6366f1b3}.vg-spinner{border:3px solid rgba(99,102,241,.1);border-top:3px solid var(--vg-primary);border-radius:50%;width:32px;height:32px;animation:vg-spin .8s linear infinite}@keyframes vg-spin{to{transform:rotate(360deg)}}.vg-animate-spin{animation:vg-spin .8s linear infinite}.vg-cursor-pointer,.vg-cursor-pointer *{cursor:pointer!important}.vg-url-tag{position:relative;cursor:help;transition:all .2s ease}.vg-url-tag:hover{background:#f1f5f9!important;border-color:var(--vg-primary)!important}.vg-url-tooltip{position:fixed;left:0;top:0;background:#0f172a;color:#fff;padding:8px 14px;border-radius:10px;font-size:11px;font-weight:500;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;box-shadow:0 10px 25px -5px #0006;z-index:2147483647;border:1px solid rgba(255,255,255,.1)}.vg-url-tooltip.visible{opacity:1}.vg-url-tooltip:after{content:"";position:absolute;left:50%;transform:translate(-50%);border-width:6px;border-style:solid}.vg-url-tooltip.vg-top:after{top:100%;border-color:#0f172a transparent transparent transparent}.vg-url-tooltip.vg-bottom:after{bottom:100%;border-color:transparent transparent #0f172a transparent}.vg-segmented-control{display:flex;background:#f1f5f9;padding:4px;border-radius:99px;position:relative;cursor:pointer;-webkit-user-select:none;user-select:none;border:4px solid #e2e8f0;width:100%;max-width:480px;margin:0 auto}.vg-segmented-slider{position:absolute;top:4px;bottom:4px;border-radius:99px;transition:all .35s cubic-bezier(.4,0,.2,1);z-index:1}.vg-segmented-item{position:relative;flex:1;padding:8px 4px;font-size:11px;font-weight:700;text-align:center;z-index:2;transition:all .35s ease;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:99px;color:#64748b;white-space:nowrap;min-width:0}.vg-segmented-item.active{color:#fff}.vg-glassmorphism.vg-animate-slide:last-child{margin-bottom:0!important}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
(function(
|
|
2
|
+
(function(ve,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],p):(ve=typeof globalThis<"u"?globalThis:ve||self,p(ve.ViewGateWrapper={},ve.React,ve.ReactDOM))})(this,(function(ve,p,Fs){"use strict";var Tt={exports:{}},gt={};var za;function Bs(){if(za)return gt;za=1;var e=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function s(r,c,d){var l=null;if(d!==void 0&&(l=""+d),c.key!==void 0&&(l=""+c.key),"key"in c){d={};for(var f in c)f!=="key"&&(d[f]=c[f])}else d=c;return c=d.ref,{$$typeof:e,type:r,key:l,ref:c!==void 0?c:null,props:d}}return gt.Fragment=o,gt.jsx=s,gt.jsxs=s,gt}var mt={};var Pa;function Hs(){return Pa||(Pa=1,process.env.NODE_ENV!=="production"&&(function(){function e(g){if(g==null)return null;if(typeof g=="function")return g.$$typeof===ce?null:g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case A:return"Fragment";case v:return"Profiler";case _:return"StrictMode";case I:return"Suspense";case J:return"SuspenseList";case oe:return"Activity"}if(typeof g=="object")switch(typeof g.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),g.$$typeof){case C:return"Portal";case N:return g.displayName||"Context";case ue:return(g._context.displayName||"Context")+".Consumer";case Y:var R=g.render;return g=g.displayName,g||(g=R.displayName||R.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case ae:return R=g.displayName||null,R!==null?R:e(g.type)||"Memo";case D:R=g._payload,g=g._init;try{return e(g(R))}catch{}}return null}function o(g){return""+g}function s(g){try{o(g);var R=!1}catch{R=!0}if(R){R=console;var z=R.error,F=typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object";return z.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F),o(g)}}function r(g){if(g===A)return"<>";if(typeof g=="object"&&g!==null&&g.$$typeof===D)return"<...>";try{var R=e(g);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function c(){var g=M.A;return g===null?null:g.getOwner()}function d(){return Error("react-stack-top-frame")}function l(g){if(de.call(g,"key")){var R=Object.getOwnPropertyDescriptor(g,"key").get;if(R&&R.isReactWarning)return!1}return g.key!==void 0}function f(g,R){function z(){L||(L=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",R))}z.isReactWarning=!0,Object.defineProperty(g,"key",{get:z,configurable:!0})}function h(){var g=e(this.type);return Se[g]||(Se[g]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),g=this.props.ref,g!==void 0?g:null}function S(g,R,z,F,Te,Ee){var P=z.ref;return g={$$typeof:V,type:g,key:R,props:z,_owner:F},(P!==void 0?P:null)!==null?Object.defineProperty(g,"ref",{enumerable:!1,get:h}):Object.defineProperty(g,"ref",{enumerable:!1,value:null}),g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(g,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(g,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Te}),Object.defineProperty(g,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ee}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g}function b(g,R,z,F,Te,Ee){var P=R.children;if(P!==void 0)if(F)if(H(P)){for(F=0;F<P.length;F++)m(P[F]);Object.freeze&&Object.freeze(P)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(P);if(de.call(R,"key")){P=e(g);var ye=Object.keys(R).filter(function(Le){return Le!=="key"});F=0<ye.length?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}",Oe[P+F]||(ye=0<ye.length?"{"+ye.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
3
3
|
let props = %s;
|
|
4
4
|
<%s {...props} />
|
|
5
5
|
React keys must be passed directly to JSX without using spread:
|
|
6
6
|
let props = %s;
|
|
7
|
-
<%s key={someKey} {...props} />`,eA,z,XA,z),qA[z+eA]=!0)}if(z=null,X!==void 0&&(e(X),z=""+X),o(k)&&(e(k.key),z=""+k.key),"key"in k){X={};for(var Qt in k)Qt!=="key"&&(X[Qt]=k[Qt])}else X=k;return z&&a(X,typeof U=="function"?U.displayName||U.name||"Unknown":U),B(U,z,X,s(),ge,Ae)}function g(U){u(U)?U._store&&(U._store.validated=1):typeof U=="object"&&U!==null&&U.$$typeof===R&&(U._payload.status==="fulfilled"?u(U._payload.value)&&U._payload.value._store&&(U._payload.value._store.validated=1):U._store&&(U._store.validated=1))}function u(U){return typeof U=="object"&&U!==null&&U.$$typeof===w}var f=Q,w=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),I=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),cA=Symbol.for("react.activity"),FA=Symbol.for("react.client.reference"),M=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,QA=Object.prototype.hasOwnProperty,AA=Array.isArray,yA=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(U){return U()}};var J,ZA={},$A=f.react_stack_bottom_frame.bind(f,n)(),ke=yA(r(n)),qA={};Tt.Fragment=F,Tt.jsx=function(U,k,X){var eA=1e4>M.recentlyCreatedOwnerStacks++;return d(U,k,X,!1,eA?Error("react-stack-top-frame"):$A,eA?yA(r(U)):ke)},Tt.jsxs=function(U,k,X){var eA=1e4>M.recentlyCreatedOwnerStacks++;return d(U,k,X,!0,eA?Error("react-stack-top-frame"):$A,eA?yA(r(U)):ke)}})()),Tt}var Fo;function Nc(){return Fo||(Fo=1,process.env.NODE_ENV==="production"?Qr.exports=Vc():Qr.exports=Mc()),Qr.exports}var i=Nc(),xr={exports:{}},Vs={};var yo;function _c(){if(yo)return Vs;yo=1;var t=Q;function A(g,u){return g===u&&(g!==0||1/g===1/u)||g!==g&&u!==u}var e=typeof Object.is=="function"?Object.is:A,r=t.useState,s=t.useEffect,n=t.useLayoutEffect,o=t.useDebugValue;function a(g,u){var f=u(),w=r({inst:{value:f,getSnapshot:u}}),m=w[0].inst,F=w[1];return n(function(){m.value=f,m.getSnapshot=u,c(m)&&F({inst:m})},[g,f,u]),s(function(){return c(m)&&F({inst:m}),g(function(){c(m)&&F({inst:m})})},[g]),o(f),f}function c(g){var u=g.getSnapshot;g=g.value;try{var f=u();return!e(g,f)}catch{return!0}}function B(g,u){return u()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?B:a;return Vs.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,Vs}var Ms={};var bo;function Pc(){return bo||(bo=1,process.env.NODE_ENV!=="production"&&(function(){function t(f,w){return f===w&&(f!==0||1/f===1/w)||f!==f&&w!==w}function A(f,w){d||s.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=w();if(!g){var F=w();n(m,F)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),g=!0)}F=o({inst:{value:m,getSnapshot:w}});var y=F[0].inst,C=F[1];return c(function(){y.value=m,y.getSnapshot=w,e(y)&&C({inst:y})},[f,m,w]),a(function(){return e(y)&&C({inst:y}),f(function(){e(y)&&C({inst:y})})},[f]),B(m),m}function e(f){var w=f.getSnapshot;f=f.value;try{var m=w();return!n(f,m)}catch{return!0}}function r(f,w){return w()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=Q,n=typeof Object.is=="function"?Object.is:t,o=s.useState,a=s.useEffect,c=s.useLayoutEffect,B=s.useDebugValue,d=!1,g=!1,u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:A;Ms.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ms}var Eo;function jc(){return Eo||(Eo=1,process.env.NODE_ENV==="production"?xr.exports=_c():xr.exports=Pc()),xr.exports}var vo=jc();const Io=0,Ho=1,So=2,Lo=3;var To=Object.prototype.hasOwnProperty;function Ns(t,A){var e,r;if(t===A)return!0;if(t&&A&&(e=t.constructor)===A.constructor){if(e===Date)return t.getTime()===A.getTime();if(e===RegExp)return t.toString()===A.toString();if(e===Array){if((r=t.length)===A.length)for(;r--&&Ns(t[r],A[r]););return r===-1}if(!e||typeof t=="object"){r=0;for(e in t)if(To.call(t,e)&&++r&&!To.call(A,e)||!(e in A)||!Ns(t[e],A[e]))return!1;return Object.keys(A).length===r}}return t!==t&&A!==A}const pe=new WeakMap,we=()=>{},SA=we(),_s=Object,P=t=>t===SA,ae=t=>typeof t=="function",Ee=(t,A)=>({...t,...A}),Oo=t=>ae(t.then),Ps={},Ur={},js="undefined",Ot=typeof window!=js,Ws=typeof document!=js,Wc=Ot&&"Deno"in window,Xc=()=>Ot&&typeof window.requestAnimationFrame!=js,Ko=(t,A)=>{const e=pe.get(t);return[()=>!P(A)&&t.get(A)||Ps,r=>{if(!P(A)){const s=t.get(A);A in Ur||(Ur[A]=s),e[5](A,Ee(s,r),s||Ps)}},e[6],()=>!P(A)&&A in Ur?Ur[A]:!P(A)&&t.get(A)||Ps]};let Xs=!0;const zc=()=>Xs,[zs,Js]=Ot&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[we,we],Jc=()=>{const t=Ws&&document.visibilityState;return P(t)||t!=="hidden"},Yc=t=>(Ws&&document.addEventListener("visibilitychange",t),zs("focus",t),()=>{Ws&&document.removeEventListener("visibilitychange",t),Js("focus",t)}),Zc=t=>{const A=()=>{Xs=!0,t()},e=()=>{Xs=!1};return zs("online",A),zs("offline",e),()=>{Js("online",A),Js("offline",e)}},$c={isOnline:zc,isVisible:Jc},qc={initFocus:Yc,initReconnect:Zc},Do=!Q.useId,ot=!Ot||Wc,Al=t=>Xc()?window.requestAnimationFrame(t):setTimeout(t,1),Ys=ot?Q.useEffect:Q.useLayoutEffect,Zs=typeof navigator<"u"&&navigator.connection,Ro=!ot&&Zs&&(["slow-2g","2g"].includes(Zs.effectiveType)||Zs.saveData),Fr=new WeakMap,el=t=>_s.prototype.toString.call(t),$s=(t,A)=>t===`[object ${A}]`;let tl=0;const qs=t=>{const A=typeof t,e=el(t),r=$s(e,"Date"),s=$s(e,"RegExp"),n=$s(e,"Object");let o,a;if(_s(t)===t&&!r&&!s){if(o=Fr.get(t),o)return o;if(o=++tl+"~",Fr.set(t,o),Array.isArray(t)){for(o="@",a=0;a<t.length;a++)o+=qs(t[a])+",";Fr.set(t,o)}if(n){o="#";const c=_s.keys(t).sort();for(;!P(a=c.pop());)P(t[a])||(o+=a+":"+qs(t[a])+",");Fr.set(t,o)}}else o=r?t.toJSON():A=="symbol"?t.toString():A=="string"?JSON.stringify(t):""+t;return o},An=t=>{if(ae(t))try{t=t()}catch{t=""}const A=t;return t=typeof t=="string"?t:(Array.isArray(t)?t.length:t)?qs(t):"",[t,A]};let rl=0;const en=()=>++rl;async function ko(...t){const[A,e,r,s]=t,n=Ee({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{});let o=n.populateCache;const a=n.rollbackOnError;let c=n.optimisticData;const B=u=>typeof a=="function"?a(u):a!==!1,d=n.throwOnError;if(ae(e)){const u=e,f=[],w=A.keys();for(const m of w)!/^\$(inf|sub)\$/.test(m)&&u(A.get(m)._k)&&f.push(m);return Promise.all(f.map(g))}return g(e);async function g(u){const[f]=An(u);if(!f)return;const[w,m]=Ko(A,f),[F,y,C,L]=pe.get(A),I=()=>{const AA=F[f];return(ae(n.revalidate)?n.revalidate(w().data,u):n.revalidate!==!1)&&(delete C[f],delete L[f],AA&&AA[0])?AA[0](So).then(()=>w().data):w().data};if(t.length<3)return I();let E=r,O,N=!1;const W=en();y[f]=[W,0];const R=!P(c),cA=w(),FA=cA.data,M=cA._c,QA=P(M)?FA:M;if(R&&(c=ae(c)?c(QA,FA):c,m({data:c,_c:QA})),ae(E))try{E=E(QA)}catch(AA){O=AA,N=!0}if(E&&Oo(E))if(E=await E.catch(AA=>{O=AA,N=!0}),W!==y[f][0]){if(N)throw O;return E}else N&&R&&B(O)&&(o=!0,m({data:QA,_c:SA}));if(o&&!N)if(ae(o)){const AA=o(E,QA);m({data:AA,error:SA,_c:SA})}else m({data:E,error:SA,_c:SA});if(y[f][1]=en(),Promise.resolve(I()).then(()=>{m({_c:SA})}),N){if(d)throw O;return}return E}}const Go=(t,A)=>{for(const e in t)t[e][0]&&t[e][0](A)},sl=(t,A)=>{if(!pe.has(t)){const e=Ee(qc,A),r=Object.create(null),s=ko.bind(SA,t);let n=we;const o=Object.create(null),a=(d,g)=>{const u=o[d]||[];return o[d]=u,u.push(g),()=>u.splice(u.indexOf(g),1)},c=(d,g,u)=>{t.set(d,g);const f=o[d];if(f)for(const w of f)w(g,u)},B=()=>{if(!pe.has(t)&&(pe.set(t,[r,Object.create(null),Object.create(null),Object.create(null),s,c,a]),!ot)){const d=e.initFocus(setTimeout.bind(SA,Go.bind(SA,r,Io))),g=e.initReconnect(setTimeout.bind(SA,Go.bind(SA,r,Ho)));n=()=>{d&&d(),g&&g(),pe.delete(t)}}};return B(),[t,s,B,n]}return[t,pe.get(t)[4]]},nl=(t,A,e,r,s)=>{const n=e.errorRetryCount,o=s.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*e.errorRetryInterval;!P(n)&&o>n||setTimeout(r,a,s)},ol=Ns,[Vo,al]=sl(new Map),il=Ee({onLoadingSlow:we,onSuccess:we,onError:we,onErrorRetry:nl,onDiscarded:we,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ro?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Ro?5e3:3e3,compare:ol,isPaused:()=>!1,cache:Vo,mutate:al,fallback:{}},$c),cl=(t,A)=>{const e=Ee(t,A);if(A){const{use:r,fallback:s}=t,{use:n,fallback:o}=A;r&&n&&(e.use=r.concat(n)),s&&o&&(e.fallback=Ee(s,o))}return e},ll=Q.createContext({}),dl="$inf$",Mo=Ot&&window.__SWR_DEVTOOLS_USE__,Bl=Mo?window.__SWR_DEVTOOLS_USE__:[],gl=()=>{Mo&&(window.__SWR_DEVTOOLS_REACT__=Q)},ul=t=>ae(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(t[1]===null?t[2]:t[1])||{}],No=()=>{const t=Q.useContext(ll);return Q.useMemo(()=>Ee(il,t),[t])},fl=t=>(A,e,r)=>t(A,e&&((...n)=>{const[o]=An(A),[,,,a]=pe.get(Vo);if(o.startsWith(dl))return e(...n);const c=a[o];return P(c)?e(...n):(delete a[o],c)}),r),hl=Bl.concat(fl),pl=t=>function(...e){const r=No(),[s,n,o]=ul(e),a=cl(r,o);let c=t;const{use:B}=a,d=(B||[]).concat(hl);for(let g=d.length;g--;)c=d[g](c);return c(s,n||a.fetcher||null,a)},wl=(t,A,e)=>{const r=A[t]||(A[t]=[]);return r.push(e),()=>{const s=r.indexOf(e);s>=0&&(r[s]=r[r.length-1],r.pop())}};gl();const tn=Q.use||(t=>{switch(t.status){case"pending":throw t;case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t.status="pending",t.then(A=>{t.status="fulfilled",t.value=A},A=>{t.status="rejected",t.reason=A}),t}}),rn={dedupe:!0},_o=Promise.resolve(SA),ml=()=>we,Po=pl((t,A,e)=>{const{cache:r,compare:s,suspense:n,fallbackData:o,revalidateOnMount:a,revalidateIfStale:c,refreshInterval:B,refreshWhenHidden:d,refreshWhenOffline:g,keepPreviousData:u,strictServerPrefetchWarning:f}=e,[w,m,F,y]=pe.get(r),[C,L]=An(t),I=Q.useRef(!1),E=Q.useRef(!1),O=Q.useRef(C),N=Q.useRef(A),W=Q.useRef(e),R=()=>W.current,cA=()=>R().isVisible()&&R().isOnline(),[FA,M,QA,AA]=Ko(r,C),yA=Q.useRef({}).current,J=P(o)?P(e.fallback)?SA:e.fallback[C]:o,ZA=(Y,tA)=>{for(const lA in yA){const gA=lA;if(gA==="data"){if(!s(Y[gA],tA[gA])&&(!P(Y[gA])||!s(Ae,tA[gA])))return!1}else if(tA[gA]!==Y[gA])return!1}return!0},$A=!I.current,ke=Q.useMemo(()=>{const Y=FA(),tA=AA(),lA=uA=>{const dA=Ee(uA);return delete dA._k,(()=>{if(!C||!A||R().isPaused())return!1;if($A&&!P(a))return a;const fe=P(J)?dA.data:J;return P(fe)||c})()?{isValidating:!0,isLoading:!0,...dA}:dA},gA=lA(Y),ne=Y===tA?gA:lA(tA);let _A=gA;return[()=>{const uA=lA(FA());return ZA(uA,_A)?(_A.data=uA.data,_A.isLoading=uA.isLoading,_A.isValidating=uA.isValidating,_A.error=uA.error,_A):(_A=uA,uA)},()=>ne]},[r,C]),qA=vo.useSyncExternalStore(Q.useCallback(Y=>QA(C,(tA,lA)=>{ZA(lA,tA)||Y()}),[r,C]),ke[0],ke[1]),U=w[C]&&w[C].length>0,k=qA.data,X=P(k)?J&&Oo(J)?tn(J):J:k,eA=qA.error,ge=Q.useRef(X),Ae=u?P(k)?P(ge.current)?X:ge.current:k:X,z=C&&P(X),XA=Q.useRef(null);!ot&&vo.useSyncExternalStore(ml,()=>(XA.current=!1,XA),()=>(XA.current=!0,XA));const Qt=XA.current;f&&Qt&&!n&&z&&console.warn(`Missing pre-initiated data for serialized key "${C}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const Fe=!C||!A||R().isPaused()||U&&!P(eA)?!1:$A&&!P(a)?a:n?P(X)?!1:c:P(X)||c,Ge=$A&&Fe,MA=P(qA.isValidating)?Ge:qA.isValidating,ue=P(qA.isLoading)?Ge:qA.isLoading,bA=Q.useCallback(async Y=>{const tA=N.current;if(!C||!tA||E.current||R().isPaused())return!1;let lA,gA,ne=!0;const _A=Y||{},uA=!F[C]||!_A.dedupe,dA=()=>Do?!E.current&&C===O.current&&I.current:C===O.current,ye={isValidating:!1,isLoading:!1},fe=()=>{M(ye)},gr=()=>{const RA=F[C];RA&&RA[1]===gA&&delete F[C]},oe={isValidating:!0};P(FA().data)&&(oe.isLoading=!0);try{if(uA&&(M(oe),e.loadingTimeout&&P(FA().data)&&setTimeout(()=>{ne&&dA()&&R().onLoadingSlow(C,e)},e.loadingTimeout),F[C]=[tA(L),en()]),[lA,gA]=F[C],lA=await lA,uA&&setTimeout(gr,e.dedupingInterval),!F[C]||F[C][1]!==gA)return uA&&dA()&&R().onDiscarded(C),!1;ye.error=SA;const RA=m[C];if(!P(RA)&&(gA<=RA[0]||gA<=RA[1]||RA[1]===0))return fe(),uA&&dA()&&R().onDiscarded(C),!1;const he=FA().data;ye.data=s(he,lA)?he:lA,uA&&dA()&&R().onSuccess(lA,C,e)}catch(RA){gr();const he=R(),{shouldRetryOnError:vs}=he;he.isPaused()||(ye.error=RA,uA&&dA()&&(he.onError(RA,C,he),(vs===!0||ae(vs)&&vs(RA))&&(!R().revalidateOnFocus||!R().revalidateOnReconnect||cA())&&he.onErrorRetry(RA,C,he,fA=>{const At=w[C];At&&At[0]&&At[0](Lo,fA)},{retryCount:(_A.retryCount||0)+1,dedupe:!0})))}return ne=!1,fe(),!0},[C,r]),qe=Q.useCallback((...Y)=>ko(r,O.current,...Y),[]);if(Ys(()=>{N.current=A,W.current=e,P(k)||(ge.current=k)}),Ys(()=>{if(!C)return;const Y=bA.bind(SA,rn);let tA=0;R().revalidateOnFocus&&(tA=Date.now()+R().focusThrottleInterval);const gA=wl(C,w,(ne,_A={})=>{if(ne==Io){const uA=Date.now();R().revalidateOnFocus&&uA>tA&&cA()&&(tA=uA+R().focusThrottleInterval,Y())}else if(ne==Ho)R().revalidateOnReconnect&&cA()&&Y();else{if(ne==So)return bA();if(ne==Lo)return bA(_A)}});return E.current=!1,O.current=C,I.current=!0,M({_k:L}),Fe&&(F[C]||(P(X)||ot?Y():Al(Y))),()=>{E.current=!0,gA()}},[C]),Ys(()=>{let Y;function tA(){const gA=ae(B)?B(FA().data):B;gA&&Y!==-1&&(Y=setTimeout(lA,gA))}function lA(){!FA().error&&(d||R().isVisible())&&(g||R().isOnline())?bA(rn).then(tA):tA()}return tA(),()=>{Y&&(clearTimeout(Y),Y=-1)}},[B,d,g,C]),Q.useDebugValue(Ae),n){if(!Do&&ot&&z)throw new Error("Fallback data is required when using Suspense in SSR.");z&&(N.current=A,W.current=e,E.current=!1);const Y=y[C],tA=!P(Y)&&z?qe(Y):_o;if(tn(tA),!P(eA)&&z)throw eA;const lA=z?bA(rn):_o;!P(Ae)&&z&&(lA.status="fulfilled",lA.value=!0),tn(lA)}return{mutate:qe,get data(){return yA.data=!0,Ae},get error(){return yA.error=!0,eA},get isValidating(){return yA.isValidating=!0,MA},get isLoading(){return yA.isLoading=!0,ue}}}),Cl=({children:t})=>{const A=Q.useRef(null),[e,r]=Q.useState(null);return Q.useEffect(()=>{if(A.current&&!A.current.shadowRoot){const s=A.current.attachShadow({mode:"open"});document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach(a=>{(a.textContent?.includes(".vg-")||a.textContent?.includes("--vg-"))&&s.appendChild(a.cloneNode(!0))});const o=document.createElement("link");o.rel="stylesheet",o.href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap",s.appendChild(o),r(s)}},[]),i.jsx("div",{"data-vg-id":"49696d6b","data-source-path":"/src/components/ShadowRootWrapper.tsx:38",ref:A,id:"viewgate-shadow-host",style:{position:"relative",zIndex:2147483647},children:e&&Gc.createPortal(t,e)})};const jo=(...t)=>t.filter((A,e,r)=>!!A&&A.trim()!==""&&r.indexOf(A)===e).join(" ").trim();const Ql=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const xl=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(A,e,r)=>r?r.toUpperCase():e.toLowerCase());const Wo=t=>{const A=xl(t);return A.charAt(0).toUpperCase()+A.slice(1)};var Ul={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Fl=t=>{for(const A in t)if(A.startsWith("aria-")||A==="role"||A==="title")return!0;return!1};const yl=Q.forwardRef(({color:t="currentColor",size:A=24,strokeWidth:e=2,absoluteStrokeWidth:r,className:s="",children:n,iconNode:o,...a},c)=>Q.createElement("svg",{ref:c,...Ul,width:A,height:A,stroke:t,strokeWidth:r?Number(e)*24/Number(A):e,className:jo("lucide",s),...!n&&!Fl(a)&&{"aria-hidden":"true"},...a},[...o.map(([B,d])=>Q.createElement(B,d)),...Array.isArray(n)?n:[n]]));const sA=(t,A)=>{const e=Q.forwardRef(({className:r,...s},n)=>Q.createElement(yl,{ref:n,iconNode:A,className:jo(`lucide-${Ql(Wo(t))}`,`lucide-${t}`,r),...s}));return e.displayName=Wo(t),e};const Kt=sA("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);const bl=sA("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);const Xo=sA("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const El=sA("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const Ne=sA("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const zo=sA("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);const sn=sA("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const vl=sA("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const ve=sA("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const Il=sA("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);const Hl=sA("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);const yr=sA("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);const br=sA("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);const Er=sA("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const Jo=sA("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);const vr=sA("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);const Sl=sA("mouse-pointer-2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);const Dt=sA("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);const Ll=sA("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Tl=sA("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const Ol=sA("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const Ir=sA("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);const Kl=sA("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const Rt=sA("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Dl={en:{enterMode:"Enter Feedback Mode",exitMode:"Exit Mode",completed:"Completed",feedbackHeader:"Feedback",selectedElement:"Selected element:",line:"Line",placeholder:"Tell us what you'd like to change...",cancel:"Cancel",send:"Send Feedback",submitting:"Submitting...",success:"Your feedback has been submitted successfully!",error:"Failed to submit feedback. Check backend connection.",successHeader:"Success",errorHeader:"Error",preview:"Preview",viewComments:"View Comments",close:"Close",observe:"Observe",pending:"Pending",readyForReview:"Ready for Review",noComments:"No comments found.",deleteConfirm:"Delete comment",completeConfirm:"Mark as completed?",confirmComplete:"The ticket will be marked as completed and archived.",markReady:"Mark as Ready for Review",reopen:"Reopen",reopenPlaceholder:"Add a new comment before confirming...",review:"Review",confirmDelete:"Are you sure you want to permanently delete this comment? This action cannot be undone.",markReadyConfirm:"Mark as Ready for Review?",confirmMarkReady:"Do you want to mark this comment as ready for review? it will be moved to the review state.",reopenConfirm:"Reopen comment",confirmReopen:"Do you want to set this comment back to pending status?",yes:"Yes, confirm",no:"No, cancel",deleteSuccess:"Comment deleted successfully.",updateSuccess:"Updated successfully.",navigating:"Redirecting to review...",selectToComment:"Click to comment",feedbackSubheader:"What would you like to improve here?",sendFeedback:"Send Comment",edit:"Edit",save:"Save",commentDetails:"Comment Details",annotations:"Comments",viewAll:"View All",exitConfirmTitle:"Close ViewGate?",exitConfirmMessage:"Are you sure you want to close ViewGate? Remember you can reopen it by pressing ALT once (Normal Mode) or holding it for 1 second (Backlog Mode).",backlog:"Backlog",low:"Low",medium:"Medium",high:"High",urgent:"Urgent",priority:"Priority",selectMember:"Select who you are to comment",asMember:"Commenting as",changeMember:"Change",focusAreas:"Focus Areas",frontend:"Frontend",backend:"Backend",ux:"UX/UI",figmaLink:"Figma Reference Link",figmaLinkPlaceholder:"https://www.figma.com/file/...",endpoint:"Related Backend Endpoint",selectEndpoint:"Select endpoint...",figmaNamePlaceholder:"e.g. Main Design, Modal, etc.",addLink:"Add another link",removeLink:"Remove",figmaPrimaryDesign:"Principal Design",invalidToken:"Invalid or expired token"},es:{enterMode:"Activar Modo Comentarios",exitMode:"Salir del Modo",completed:"Completado",feedbackHeader:"Comentarios",selectedElement:"Elemento seleccionado:",line:"Línea",placeholder:"Cuéntanos qué te gustaría cambiar...",cancel:"Cancelar",send:"Enviar Comentarios",submitting:"Enviando...",success:"¡Tus comentarios se han enviado con éxito!",error:"Error al enviar comentarios. Revisa la conexión con el servidor.",successHeader:"Éxito",errorHeader:"Error",preview:"Vista previa",viewComments:"Ver Comentarios",close:"Cerrar",observe:"Observar",pending:"Pendiente",readyForReview:"Listo para revisión",noComments:"No hay comentarios.",deleteConfirm:"Eliminar comentario",completeConfirm:"¿Completar ticket?",confirmComplete:"El ticket se marcará como completado y se archivará.",markReady:"Marcar como Listo para revisión",reopen:"Reabrir",reopenPlaceholder:"Agrega un nuevo comentario antes de confirmar...",review:"Revisar",confirmDelete:"¿Estás seguro de que deseas eliminar permanentemente este comentario? Esta acción no se puede deshacer.",markReadyConfirm:"¿Listo para revisión?",confirmMarkReady:"¿Deseas marcar este comentario como listo para revisión? Pasará al estado de revisión.",reopenConfirm:"Reabrir comentario",confirmReopen:"¿Deseas volver a poner este comentario en estado pendiente?",yes:"Sí, confirmar",no:"No, cancelar",deleteSuccess:"El comentario ha sido eliminado.",updateSuccess:"Actualizado correctamente.",navigating:"Redirigiendo a revisión...",selectToComment:"Haz clic para comentar",feedbackSubheader:"¿Qué te gustaría mejorar aquí?",sendFeedback:"Enviar Comentario",edit:"Editar",save:"Guardar",commentDetails:"Detalles del Comentario",annotations:"Comentarios",viewAll:"Ver Todos",exitConfirmTitle:"¿Cerrar ViewGate?",exitConfirmMessage:"¿Estás seguro de que deseas cerrar ViewGate? Recuerda que puedes volver a activarlo pulsando una vez la tecla ALT (Modo Normal) o manteniéndola pulsada 1 segundo (Modo Backlog).",backlog:"Backlog",low:"Baja",medium:"Media",high:"Alta",urgent:"Urgente",priority:"Prioridad",selectMember:"Selecciona quién eres para comentar",asMember:"Comentando como",changeMember:"Cambiar",focusAreas:"Áreas de Foco",frontend:"Frontend",backend:"Backend",ux:"UX/UI",figmaLink:"Link de Referencia Figma",figmaLinkPlaceholder:"https://www.figma.com/file/...",endpoint:"Endpoint de Backend Relacionado",selectEndpoint:"Seleccionar endpoint...",figmaNamePlaceholder:"ej. Diseño Principal, Modal, etc.",addLink:"Agregar otro link",removeLink:"Eliminar",figmaPrimaryDesign:"Diseño Principal",invalidToken:"Token inválido o expirado"}},Yo=Q.createContext(void 0),Zo=()=>{const t=Q.useContext(Yo);if(!t)throw new Error("useViewGate must be used within a ViewGateProvider");return t},kt="viewgate_enabled",Rl=()=>{if(typeof window>"u")return!1;const t=new URLSearchParams(window.location.search);return t.has("viewgate")||t.has("viewgate-backlog")?(sessionStorage.setItem(kt,"true"),!0):sessionStorage.getItem(kt)==="true"},kl=({children:t,language:A="es",apiKey:e,baseUrl:r="https://view-gate.vercel.app",dashboardUrl:s})=>{const n=s||(r==="https://view-gate.vercel.app"?"https://view-gate-dashboard.vercel.app":r.includes("localhost:5000")?r.replace("5000","3000"):r),[o,a]=Q.useState(!1),[c,B]=Q.useState([]);Q.useRef(0);const d=Q.useRef(null),g=Q.useRef(!1);Q.useEffect(()=>{a(Rl());const m=y=>{y.key==="Alt"&&!y.repeat&&(y.preventDefault(),g.current=!1,d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{const C=new URL(window.location.href);C.searchParams.delete("viewgate"),C.searchParams.set("viewgate-backlog","true"),window.history.replaceState({},"",C.toString()),a(!0),sessionStorage.setItem(kt,"true"),window.dispatchEvent(new PopStateEvent("popstate")),f(A==="es"?"Modo Backlog activado":"Backlog Mode activated","success"),g.current=!0,d.current=null},1e3))},F=y=>{if(y.key==="Alt"&&(y.preventDefault(),d.current)){clearTimeout(d.current),d.current=null;const C=new URL(window.location.href);C.searchParams.delete("viewgate-backlog"),C.searchParams.set("viewgate","true"),window.history.replaceState({},"",C.toString()),a(!0),sessionStorage.setItem(kt,"true"),window.dispatchEvent(new PopStateEvent("popstate")),f(A==="es"?"Modo Normal activado":"Normal Mode activated","success")}};return window.addEventListener("keydown",m),window.addEventListener("keyup",F),()=>{window.removeEventListener("keydown",m),window.removeEventListener("keyup",F)}},[A]);const u=()=>{if(sessionStorage.removeItem(kt),a(!1),typeof window<"u"){const m=new URL(window.location.href);m.searchParams.delete("viewgate"),window.history.replaceState({},"",m.toString())}},f=(m,F)=>{const y=Date.now();B(C=>[...C,{id:y,message:m,type:F}]),setTimeout(()=>{B(C=>C.filter(L=>L.id!==y))},4e3)},w=Dl[A];return i.jsxs(Yo.Provider,{"data-vg-id":"89da3486","data-source-path":"/src/components/ViewGateProvider.tsx:369",value:{addToast:f,language:A,t:w,apiKey:e,baseUrl:r,dashboardUrl:n,disableViewGate:u,hasActiveToasts:c.length>0},children:[t,o&&i.jsx(Cl,{"data-vg-id":"f1499d3a","data-source-path":"/src/components/ViewGateProvider.tsx:381",children:i.jsxs("div",{"data-vg-id":"1bedb79b","data-source-path":"/src/components/ViewGateProvider.tsx:382",className:"vg-container",children:[i.jsx(Cc,{"data-vg-id":"d3f262cb","data-source-path":"/src/components/ViewGateProvider.tsx:383"}),i.jsx("div",{"data-vg-id":"1bedb79d","data-source-path":"/src/components/ViewGateProvider.tsx:384",className:"vg-toasts",style:{zIndex:2147483647},children:c.map(m=>i.jsxs("div",{"data-vg-id":"1bedb79e","data-source-path":"/src/components/ViewGateProvider.tsx:386",className:`vg-toast vg-animate-slide ${m.type}`,children:[m.type==="success"?i.jsx(Ne,{"data-vg-id":"c7ae3b26","data-source-path":"/src/components/ViewGateProvider.tsx:388",size:24,color:"#22c55e"}):m.type==="warning"?i.jsx(Kl,{"data-vg-id":"137eb473","data-source-path":"/src/components/ViewGateProvider.tsx:390",size:24,color:"#f59e0b"}):i.jsx(El,{"data-vg-id":"e7ad3c7c","data-source-path":"/src/components/ViewGateProvider.tsx:392",size:24,color:"#ef4444"}),i.jsxs("div",{"data-vg-id":"61c93bb7","data-source-path":"/src/components/ViewGateProvider.tsx:394",children:[i.jsx("strong",{"data-vg-id":"29b8e974","data-source-path":"/src/components/ViewGateProvider.tsx:395",style:{display:"block",fontSize:"13px",color:"#0f172a",textTransform:"uppercase",marginBottom:"2px"},children:m.type==="success"?w.successHeader:m.type==="warning"?A==="es"?"Aviso":"Warning":w.errorHeader}),i.jsx("span",{"data-vg-id":"fbbd7822","data-source-path":"/src/components/ViewGateProvider.tsx:398",style:{fontSize:"14px",color:"#000000"},children:m.message})]})]},m.id))})]})})]})};class LA{constructor(A,e,r,s){this.left=A,this.top=e,this.width=r,this.height=s}add(A,e,r,s){return new LA(this.left+A,this.top+e,this.width+r,this.height+s)}static fromClientRect(A,e){return new LA(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)}static fromDOMRectList(A,e){const r=Array.from(e);let s=r.find(n=>n.width!==0);return s||(s=r.find(n=>n.height!==0)),!s&&r.length>0&&(s=r[0]),s?new LA(s.left+A.windowBounds.left,s.top+A.windowBounds.top,s.width,s.height):LA.EMPTY}}LA.EMPTY=new LA(0,0,0,0);const Hr=(t,A)=>LA.fromClientRect(t,A.getBoundingClientRect()),Gl=t=>{const A=t.body,e=t.documentElement;if(!A||!e)throw new Error("Unable to get document size");const r=Math.max(Math.max(A.scrollWidth,e.scrollWidth),Math.max(A.offsetWidth,e.offsetWidth),Math.max(A.clientWidth,e.clientWidth)),s=Math.max(Math.max(A.scrollHeight,e.scrollHeight),Math.max(A.offsetHeight,e.offsetHeight),Math.max(A.clientHeight,e.clientHeight));return new LA(0,0,r,s)};for(var Sr=function(t){for(var A=[],e=0,r=t.length;e<r;){var s=t.charCodeAt(e++);if(s>=55296&&s<=56319&&e<r){var n=t.charCodeAt(e++);(n&64512)===56320?A.push(((s&1023)<<10)+(n&1023)+65536):(A.push(s),e--)}else A.push(s)}return A},pA=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var r=[],s=-1,n="";++s<e;){var o=t[s];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(s+1===e||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},$o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vl=typeof Uint8Array>"u"?[]:new Uint8Array(256),Lr=0;Lr<$o.length;Lr++)Vl[$o.charCodeAt(Lr)]=Lr;for(var qo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gt=typeof Uint8Array>"u"?[]:new Uint8Array(256),Tr=0;Tr<qo.length;Tr++)Gt[qo.charCodeAt(Tr)]=Tr;for(var Ml=function(t){var A=t.length*.75,e=t.length,r,s=0,n,o,a,c;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var B=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),d=Array.isArray(B)?B:new Uint8Array(B);for(r=0;r<e;r+=4)n=Gt[t.charCodeAt(r)],o=Gt[t.charCodeAt(r+1)],a=Gt[t.charCodeAt(r+2)],c=Gt[t.charCodeAt(r+3)],d[s++]=n<<2|o>>4,d[s++]=(o&15)<<4|a>>2,d[s++]=(a&3)<<6|c&63;return B},Nl=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},_l=function(t){for(var A=t.length,e=[],r=0;r<A;r+=4)e.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return e},_e=5,nn=11,on=2,Pl=nn-_e,Aa=65536>>_e,jl=1<<_e,an=jl-1,Wl=1024>>_e,Xl=Aa+Wl,zl=Xl,Jl=32,Yl=zl+Jl,Zl=65536>>nn,$l=1<<Pl,ql=$l-1,ea=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},Ad=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},ed=function(t,A){var e=Ml(t),r=Array.isArray(e)?_l(e):new Uint32Array(e),s=Array.isArray(e)?Nl(e):new Uint16Array(e),n=24,o=ea(s,n/2,r[4]/2),a=r[5]===2?ea(s,(n+r[4])/2):Ad(r,Math.ceil((n+r[4])/4));return new td(r[0],r[1],r[2],r[3],o,a)},td=(function(){function t(A,e,r,s,n,o){this.initialValue=A,this.errorValue=e,this.highStart=r,this.highValueIndex=s,this.index=n,this.data=o}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>_e],e=(e<<on)+(A&an),this.data[e];if(A<=65535)return e=this.index[Aa+(A-55296>>_e)],e=(e<<on)+(A&an),this.data[e];if(A<this.highStart)return e=Yl-Zl+(A>>nn),e=this.index[e],e+=A>>_e&ql,e=this.index[e],e=(e<<on)+(A&an),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),ta="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rd=typeof Uint8Array>"u"?[]:new Uint8Array(256),Or=0;Or<ta.length;Or++)rd[ta.charCodeAt(Or)]=Or;var sd="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",ra=50,nd=1,sa=2,na=3,od=4,ad=5,oa=7,aa=8,ia=9,Ie=10,cn=11,ca=12,ln=13,id=14,Vt=15,dn=16,Kr=17,Mt=18,cd=19,la=20,Bn=21,Nt=22,gn=23,at=24,jA=25,_t=26,Pt=27,it=28,ld=29,Pe=30,dd=31,Dr=32,Rr=33,un=34,fn=35,hn=36,jt=37,pn=38,kr=39,Gr=40,wn=41,da=42,Bd=43,gd=[9001,65288],Ba="!",j="×",Vr="÷",mn=ed(sd),me=[Pe,hn],Cn=[nd,sa,na,ad],ga=[Ie,aa],ua=[Pt,_t],ud=Cn.concat(ga),fa=[pn,kr,Gr,un,fn],fd=[Vt,ln],hd=function(t,A){A===void 0&&(A="strict");var e=[],r=[],s=[];return t.forEach(function(n,o){var a=mn.get(n);if(a>ra?(s.push(!0),a-=ra):s.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(n)!==-1)return r.push(o),e.push(dn);if(a===od||a===cn){if(o===0)return r.push(o),e.push(Pe);var c=e[o-1];return ud.indexOf(c)===-1?(r.push(r[o-1]),e.push(c)):(r.push(o),e.push(Pe))}if(r.push(o),a===dd)return e.push(A==="strict"?Bn:jt);if(a===da||a===ld)return e.push(Pe);if(a===Bd)return n>=131072&&n<=196605||n>=196608&&n<=262141?e.push(jt):e.push(Pe);e.push(a)}),[r,e,s]},Qn=function(t,A,e,r){var s=r[e];if(Array.isArray(t)?t.indexOf(s)!==-1:t===s)for(var n=e;n<=r.length;){n++;var o=r[n];if(o===A)return!0;if(o!==Ie)break}if(s===Ie)for(var n=e;n>0;){n--;var a=r[n];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var c=e;c<=r.length;){c++;var o=r[c];if(o===A)return!0;if(o!==Ie)break}if(a!==Ie)break}return!1},ha=function(t,A){for(var e=t;e>=0;){var r=A[e];if(r===Ie)e--;else return r}return 0},pd=function(t,A,e,r,s){if(e[r]===0)return j;var n=r-1;if(Array.isArray(s)&&s[n]===!0)return j;var o=n-1,a=n+1,c=A[n],B=o>=0?A[o]:0,d=A[a];if(c===sa&&d===na)return j;if(Cn.indexOf(c)!==-1)return Ba;if(Cn.indexOf(d)!==-1||ga.indexOf(d)!==-1)return j;if(ha(n,A)===aa)return Vr;if(mn.get(t[n])===cn||(c===Dr||c===Rr)&&mn.get(t[a])===cn||c===oa||d===oa||c===ia||[Ie,ln,Vt].indexOf(c)===-1&&d===ia||[Kr,Mt,cd,at,it].indexOf(d)!==-1||ha(n,A)===Nt||Qn(gn,Nt,n,A)||Qn([Kr,Mt],Bn,n,A)||Qn(ca,ca,n,A))return j;if(c===Ie)return Vr;if(c===gn||d===gn)return j;if(d===dn||c===dn)return Vr;if([ln,Vt,Bn].indexOf(d)!==-1||c===id||B===hn&&fd.indexOf(c)!==-1||c===it&&d===hn||d===la||me.indexOf(d)!==-1&&c===jA||me.indexOf(c)!==-1&&d===jA||c===Pt&&[jt,Dr,Rr].indexOf(d)!==-1||[jt,Dr,Rr].indexOf(c)!==-1&&d===_t||me.indexOf(c)!==-1&&ua.indexOf(d)!==-1||ua.indexOf(c)!==-1&&me.indexOf(d)!==-1||[Pt,_t].indexOf(c)!==-1&&(d===jA||[Nt,Vt].indexOf(d)!==-1&&A[a+1]===jA)||[Nt,Vt].indexOf(c)!==-1&&d===jA||c===jA&&[jA,it,at].indexOf(d)!==-1)return j;if([jA,it,at,Kr,Mt].indexOf(d)!==-1)for(var g=n;g>=0;){var u=A[g];if(u===jA)return j;if([it,at].indexOf(u)!==-1)g--;else break}if([Pt,_t].indexOf(d)!==-1)for(var g=[Kr,Mt].indexOf(c)!==-1?o:n;g>=0;){var u=A[g];if(u===jA)return j;if([it,at].indexOf(u)!==-1)g--;else break}if(pn===c&&[pn,kr,un,fn].indexOf(d)!==-1||[kr,un].indexOf(c)!==-1&&[kr,Gr].indexOf(d)!==-1||[Gr,fn].indexOf(c)!==-1&&d===Gr||fa.indexOf(c)!==-1&&[la,_t].indexOf(d)!==-1||fa.indexOf(d)!==-1&&c===Pt||me.indexOf(c)!==-1&&me.indexOf(d)!==-1||c===at&&me.indexOf(d)!==-1||me.concat(jA).indexOf(c)!==-1&&d===Nt&&gd.indexOf(t[a])===-1||me.concat(jA).indexOf(d)!==-1&&c===Mt)return j;if(c===wn&&d===wn){for(var f=e[n],w=1;f>0&&(f--,A[f]===wn);)w++;if(w%2!==0)return j}return c===Dr&&d===Rr?j:Vr},wd=function(t,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=hd(t,A.lineBreak),r=e[0],s=e[1],n=e[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(s=s.map(function(a){return[jA,Pe,da].indexOf(a)!==-1?jt:a}));var o=A.wordBreak==="keep-all"?n.map(function(a,c){return a&&t[c]>=19968&&t[c]<=40959}):void 0;return[r,s,o]},md=(function(){function t(A,e,r,s){this.codePoints=A,this.required=e===Ba,this.start=r,this.end=s}return t.prototype.slice=function(){return pA.apply(void 0,this.codePoints.slice(this.start,this.end))},t})(),Cd=function(t,A){var e=Sr(t),r=wd(e,A),s=r[0],n=r[1],o=r[2],a=e.length,c=0,B=0;return{next:function(){if(B>=a)return{done:!0,value:null};for(var d=j;B<a&&(d=pd(e,n,s,++B,o))===j;);if(d!==j||B===a){var g=new md(e,d,c,B);return c=B,{value:g,done:!1}}return{done:!0,value:null}}}};const Qd=1,xd=2,ct=4,pa=8,Mr=10,wa=47,Wt=92,Ud=9,Fd=32,Nr=34,Xt=61,yd=35,bd=36,Ed=37,_r=39,Pr=40,zt=41,vd=95,kA=45,Id=33,Hd=60,Sd=62,Ld=64,Td=91,Od=93,Kd=61,Dd=123,jr=63,Rd=125,ma=124,kd=126,Gd=128,Ca=65533,xn=42,je=43,Vd=44,Md=58,Nd=59,Jt=46,_d=0,Pd=8,jd=11,Wd=14,Xd=31,zd=127,ie=-1,Qa=48,xa=97,Ua=101,Jd=102,Yd=117,Zd=122,Fa=65,ya=69,ba=70,$d=85,qd=90,TA=t=>t>=Qa&&t<=57,AB=t=>t>=55296&&t<=57343,lt=t=>TA(t)||t>=Fa&&t<=ba||t>=xa&&t<=Jd,eB=t=>t>=xa&&t<=Zd,tB=t=>t>=Fa&&t<=qd,rB=t=>eB(t)||tB(t),sB=t=>t>=Gd,Wr=t=>t===Mr||t===Ud||t===Fd,Xr=t=>rB(t)||sB(t)||t===vd,Ea=t=>Xr(t)||TA(t)||t===kA,nB=t=>t>=_d&&t<=Pd||t===jd||t>=Wd&&t<=Xd||t===zd,He=(t,A)=>t!==Wt?!1:A!==Mr,zr=(t,A,e)=>t===kA?Xr(A)||He(A,e):Xr(t)?!0:!!(t===Wt&&He(t,A)),Un=(t,A,e)=>t===je||t===kA?TA(A)?!0:A===Jt&&TA(e):TA(t===Jt?A:t),oB=t=>{let A=0,e=1;(t[A]===je||t[A]===kA)&&(t[A]===kA&&(e=-1),A++);const r=[];for(;TA(t[A]);)r.push(t[A++]);const s=r.length?parseInt(pA(...r),10):0;t[A]===Jt&&A++;const n=[];for(;TA(t[A]);)n.push(t[A++]);const o=n.length,a=o?parseInt(pA(...n),10):0;(t[A]===ya||t[A]===Ua)&&A++;let c=1;(t[A]===je||t[A]===kA)&&(t[A]===kA&&(c=-1),A++);const B=[];for(;TA(t[A]);)B.push(t[A++]);const d=B.length?parseInt(pA(...B),10):0;return e*(s+a*Math.pow(10,-o))*Math.pow(10,c*d)},aB={type:2},iB={type:3},cB={type:4},lB={type:13},dB={type:8},BB={type:21},gB={type:9},uB={type:10},fB={type:11},hB={type:12},pB={type:14},Jr={type:23},wB={type:1},mB={type:25},CB={type:24},QB={type:26},xB={type:27},UB={type:28},FB={type:29},yB={type:31},Fn={type:32};class va{constructor(){this._value=[]}write(A){this._value=this._value.concat(Sr(A))}read(){const A=[];let e=this.consumeToken();for(;e!==Fn;)A.push(e),e=this.consumeToken();return A}consumeToken(){const A=this.consumeCodePoint();switch(A){case Nr:return this.consumeStringToken(Nr);case yd:const e=this.peekCodePoint(0),r=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Ea(e)||He(r,s)){const f=zr(e,r,s)?xd:Qd;return{type:5,value:this.consumeName(),flags:f}}break;case bd:if(this.peekCodePoint(0)===Xt)return this.consumeCodePoint(),lB;break;case _r:return this.consumeStringToken(_r);case Pr:return aB;case zt:return iB;case xn:if(this.peekCodePoint(0)===Xt)return this.consumeCodePoint(),pB;break;case je:if(Un(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Vd:return cB;case kA:const n=A,o=this.peekCodePoint(0),a=this.peekCodePoint(1);if(Un(n,o,a))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(zr(n,o,a))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===kA&&a===Sd)return this.consumeCodePoint(),this.consumeCodePoint(),CB;break;case Jt:if(Un(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case wa:if(this.peekCodePoint(0)===xn)for(this.consumeCodePoint();;){let f=this.consumeCodePoint();if(f===xn&&(f=this.consumeCodePoint(),f===wa))return this.consumeToken();if(f===ie)return this.consumeToken()}break;case Md:return QB;case Nd:return xB;case Hd:if(this.peekCodePoint(0)===Id&&this.peekCodePoint(1)===kA&&this.peekCodePoint(2)===kA)return this.consumeCodePoint(),this.consumeCodePoint(),mB;break;case Ld:const c=this.peekCodePoint(0),B=this.peekCodePoint(1),d=this.peekCodePoint(2);if(zr(c,B,d))return{type:7,value:this.consumeName()};break;case Td:return UB;case Wt:if(He(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Od:return FB;case Kd:if(this.peekCodePoint(0)===Xt)return this.consumeCodePoint(),dB;break;case Dd:return fB;case Rd:return hB;case Yd:case $d:const g=this.peekCodePoint(0),u=this.peekCodePoint(1);return g===je&&(lt(u)||u===jr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case ma:if(this.peekCodePoint(0)===Xt)return this.consumeCodePoint(),gB;if(this.peekCodePoint(0)===ma)return this.consumeCodePoint(),BB;break;case kd:if(this.peekCodePoint(0)===Xt)return this.consumeCodePoint(),uB;break;case ie:return Fn}return Wr(A)?(this.consumeWhiteSpace(),yB):TA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Xr(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:pA(A)}}consumeCodePoint(){const A=this._value.shift();return typeof A>"u"?-1:A}reconsumeCodePoint(A){this._value.unshift(A)}peekCodePoint(A){return A>=this._value.length?-1:this._value[A]}consumeUnicodeRangeToken(){const A=[];let e=this.consumeCodePoint();for(;lt(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();let r=!1;for(;e===jr&&A.length<6;)A.push(e),e=this.consumeCodePoint(),r=!0;if(r){const n=parseInt(pA(...A.map(a=>a===jr?Qa:a)),16),o=parseInt(pA(...A.map(a=>a===jr?ba:a)),16);return{type:30,start:n,end:o}}const s=parseInt(pA(...A),16);if(this.peekCodePoint(0)===kA&<(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();const n=[];for(;lt(e)&&n.length<6;)n.push(e),e=this.consumeCodePoint();const o=parseInt(pA(...n),16);return{type:30,start:s,end:o}}else return{type:30,start:s,end:s}}consumeIdentLikeToken(){const A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Pr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Pr?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}}consumeUrlToken(){const A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ie)return{type:22,value:""};const e=this.peekCodePoint(0);if(e===_r||e===Nr){const r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ie||this.peekCodePoint(0)===zt)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Jr)}for(;;){const r=this.consumeCodePoint();if(r===ie||r===zt)return{type:22,value:pA(...A)};if(Wr(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ie||this.peekCodePoint(0)===zt?(this.consumeCodePoint(),{type:22,value:pA(...A)}):(this.consumeBadUrlRemnants(),Jr);if(r===Nr||r===_r||r===Pr||nB(r))return this.consumeBadUrlRemnants(),Jr;if(r===Wt)if(He(r,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Jr;else A.push(r)}}consumeWhiteSpace(){for(;Wr(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){const A=this.consumeCodePoint();if(A===zt||A===ie)return;He(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(A){let r="";for(;A>0;){const s=Math.min(5e4,A);r+=pA(...this._value.splice(0,s)),A-=s}return this._value.shift(),r}consumeStringToken(A){let e="",r=0;do{const s=this._value[r];if(s===ie||s===void 0||s===A)return e+=this.consumeStringSlice(r),{type:0,value:e};if(s===Mr)return this._value.splice(0,r),wB;if(s===Wt){const n=this._value[r+1];n!==ie&&n!==void 0&&(n===Mr?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):He(s,n)&&(e+=this.consumeStringSlice(r),e+=pA(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)}consumeNumber(){const A=[];let e=ct,r=this.peekCodePoint(0);for((r===je||r===kA)&&A.push(this.consumeCodePoint());TA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);let s=this.peekCodePoint(1);if(r===Jt&&TA(s))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=pa;TA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),s=this.peekCodePoint(1);const n=this.peekCodePoint(2);if((r===ya||r===Ua)&&((s===je||s===kA)&&TA(n)||TA(s)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=pa;TA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[oB(A),e]}consumeNumericToken(){const[A,e]=this.consumeNumber(),r=this.peekCodePoint(0),s=this.peekCodePoint(1),n=this.peekCodePoint(2);if(zr(r,s,n)){const o=this.consumeName();return{type:15,number:A,flags:e,unit:o}}return r===Ed?(this.consumeCodePoint(),{type:16,number:A,flags:e}):{type:17,number:A,flags:e}}consumeEscapedCodePoint(){const A=this.consumeCodePoint();if(lt(A)){let e=pA(A);for(;lt(this.peekCodePoint(0))&&e.length<6;)e+=pA(this.consumeCodePoint());Wr(this.peekCodePoint(0))&&this.consumeCodePoint();const r=parseInt(e,16);return r===0||AB(r)||r>1114111?Ca:r}return A===ie?Ca:A}consumeName(){let A="";for(;;){const e=this.consumeCodePoint();if(Ea(e))A+=pA(e);else if(He(e,this.peekCodePoint(0)))A+=pA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}}}class dt{constructor(A){this._tokens=A}static create(A){const e=new va;return e.write(A),new dt(e.read())}static parseValue(A){return dt.create(A).parseComponentValue()}static parseValues(A){return dt.create(A).parseComponentValues()}parseComponentValue(){let A=this.consumeToken();for(;A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);const e=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){const A=[];for(;;){const e=this.consumeComponentValue();if(e.type===32)return A;A.push(e),A.push()}}consumeComponentValue(){const A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A}consumeSimpleBlock(A){const e={type:A,values:[]};let r=this.consumeToken();for(;;){if(r.type===32||EB(r,A))return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue()),r=this.consumeToken()}}consumeFunction(A){const e={name:A.value,values:[],type:18};for(;;){const r=this.consumeToken();if(r.type===32||r.type===3)return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue())}}consumeToken(){const A=this._tokens.shift();return typeof A>"u"?Fn:A}reconsumeToken(A){this._tokens.unshift(A)}}const ce=t=>t.type===15,mA=t=>t.type===17,V=t=>t.type===20,bB=t=>t.type===0,Yt=(t,A)=>V(t)&&t.value===A,Yr=t=>t.type!==31,EA=t=>t.type!==31&&t.type!==4,ee=t=>{const A=[];let e=[];return t.forEach(r=>{if(r.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(e),e=[];return}r.type!==31&&e.push(r)}),e.length&&A.push(e),A},EB=(t,A)=>A===11&&t.type===12||A===28&&t.type===29?!0:A===2&&t.type===3,BA=(t,A,e)=>Math.min(Math.max(t,A),e),GA=(t,A)=>[t[0]*A[0]+t[1]*A[1]+t[2]*A[2],t[3]*A[0]+t[4]*A[1]+t[5]*A[2],t[6]*A[0]+t[7]*A[1]+t[8]*A[2]],Se=t=>GA([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],t),yn=t=>GA([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],t),We=t=>t.map(A=>{const e=A<0?-1:1,r=Math.abs(A);return r>.0031308?e*(1.055*r**(1/2.4)-.055):12.92*A}),bn=t=>t.map(A=>{const e=A<0?-1:1,r=Math.abs(A);return r<=.04045?A/12.92:e*((r+.055)/1.055)**2.4}),vB=t=>{const[A,e,r]=We(Se([t[0],t[1],t[2]]));return[A,e,r,t[3]]},IB=t=>{const[A,e,r]=Se([t[0],t[1],t[2]]);return[BA(Math.round(A*255),0,255),BA(Math.round(e*255),0,255),BA(Math.round(r*255),0,255),t[3]]},Le=t=>t.type===17||t.type===15,q=t=>t.type===16||Le(t),HB=t=>t.type===18&&t.name==="calc",SB=(t,A=0)=>{const e=r=>{let s="";for(const n of r)if(n.type!==31){if(n.type===18)if(n.name==="calc"){const o=e(n.values);if(o===null)return null;s+=`(${o})`}else return null;else if(n.type===17)s+=n.number.toString();else if(n.type===15)n.unit==="px"?s+=n.number.toString():n.unit==="rem"||n.unit==="em"?s+=(n.number*16).toString():s+=n.number.toString();else if(n.type===16)s+=(n.number/100*A).toString();else if(n.type===6){const o=n.value;o==="+"||o==="-"||o==="*"||o==="/"?s+=` ${o} `:o==="("?s+="(":o===")"&&(s+=")")}}return s};try{const r=e(t.values);if(r===null||r.trim()==="")return null;const s=new Function("return "+r)();if(typeof s=="number"&&!isNaN(s))return{type:17,number:s,flags:ct}}catch{return null}return null},Ia=t=>t.length>1?[t[0],t[1]]:[t[0]],CA={type:17,number:0,flags:ct},Xe={type:16,number:50,flags:ct},le={type:16,number:100,flags:ct},Zt=(t,A,e)=>{const[r,s]=t;return[G(r,A),G(typeof s<"u"?s:r,e)]},G=(t,A)=>{if(t.type===16)return t.number/100*A;if(ce(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},Ha="deg",Sa="grad",La="rad",Ta="turn",Bt={name:"angle",parse:(t,A)=>{if(A.type===15)switch(A.unit){case Ha:return Math.PI*A.number/180;case Sa:return Math.PI/200*A.number;case La:return A.number;case Ta:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Oa=t=>t.type===15&&(t.unit===Ha||t.unit===Sa||t.unit===La||t.unit===Ta),Ka=t=>{switch(t.filter(V).map(e=>e.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[CA,CA];case"to top":case"bottom":return zA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[CA,le];case"to right":case"left":return zA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[le,le];case"to bottom":case"top":return zA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[le,CA];case"to left":case"right":return zA(270)}return 0},zA=t=>Math.PI*t/180,Te=t=>(255&t)===0,rA=t=>{const A=255&t,e=255&t>>8,r=255&t>>16,s=255&t>>24;return A<255?`rgba(${s},${r},${e},${A/255})`:`rgb(${s},${r},${e})`},te=(t,A,e,r)=>(t<<24|A<<16|e<<8|Math.round(r*255)<<0)>>>0,Oe=(t,A)=>{if(t.type===17)return t.number;if(t.type===16){const e=A===3?1:255;return A===3?t.number/100*e:Math.round(t.number/100*e)}return 0},ze=t=>(t[0].type===20?t[0].value:"unknown")==="from",LB=t=>te(BA(Math.round(t[0]*255),0,255),BA(Math.round(t[1]*255),0,255),BA(Math.round(t[2]*255),0,255),BA(t[3],0,1)),En=([t,A,e,r])=>{const s=We([t,A,e]);return te(BA(Math.round(s[0]*255),0,255),BA(Math.round(s[1]*255),0,255),BA(Math.round(s[2]*255),0,255),r)},$t=t=>{const A=Se([t[0],t[1],t[2]]);return En([A[0],A[1],A[2],t[3]])},TB=(t,A)=>{if(ze(A.filter(EA)))throw new Error("Relative color not supported for lab()");const[e,r,s,n]=Zr(A),o=We(Se(As([e,r,s])));return te(BA(Math.round(o[0]*255),0,255),BA(Math.round(o[1]*255),0,255),BA(Math.round(o[2]*255),0,255),n)},OB=(t,A)=>{if(ze(A.filter(EA)))throw new Error("Relative color not supported for oklab()");const[e,r,s,n]=Zr(A),o=We(Se(qr([e,r,s])));return te(BA(Math.round(o[0]*255),0,255),BA(Math.round(o[1]*255),0,255),BA(Math.round(o[2]*255),0,255),n)},KB=(t,A)=>{if(ze(A.filter(EA)))throw new Error("Relative color not supported for oklch()");const[e,r,s,n]=Ga(A),o=We(Se(qr($r([e,r,s]))));return te(BA(Math.round(o[0]*255),0,255),BA(Math.round(o[1]*255),0,255),BA(Math.round(o[2]*255),0,255),n)},DB=(t,A)=>{if(ze(A.filter(EA)))throw new Error("Relative color not supported for lch()");const[e,r,s,n]=ka(A),o=We(Se(As($r([e,r,s]))));return te(BA(Math.round(o[0]*255),0,255),BA(Math.round(o[1]*255),0,255),BA(Math.round(o[2]*255),0,255),n)},Da=(t,A)=>{const e=A.filter(EA),[r,s,n,o]=e,a=(r.type===17?zA(r.number):Bt.parse(t,r))/(Math.PI*2),c=q(s)?s.number/100:0,B=q(n)?n.number/100:0,d=typeof o<"u"&&q(o)?G(o,1):1;return[a,c,B,d]},Ra=(t,A)=>{if(ze(A))throw new Error("Relative color not supported for hsl()");const[e,r,s,n]=Da(t,A),o=Ma([e,r,s]);return te(o[0]*255,o[1]*255,o[2]*255,r===0?1:n)},ka=t=>{const A=t.filter(EA),e=q(A[0])?A[0].number:0,r=q(A[1])?A[1].number:0,s=mA(A[2])||ce(A[2])?A[2].number:0,n=typeof A[4]<"u"&&q(A[4])?G(A[4],1):1;return[e,r,s,n]},Zr=t=>{const A=t.filter(EA),e=A[0].type===16?A[0].number/100:mA(A[0])?A[0].number:0,r=A[1].type===16?A[1].number/100:mA(A[1])?A[1].number:0,s=mA(A[2])||ce(A[2])?A[2].number:0,n=typeof A[4]<"u"&&q(A[4])?G(A[4],1):1;return[e,r,s,n]},Ga=t=>{const A=t.filter(EA),e=A[0].type===16?A[0].number/100:mA(A[0])?A[0].number:0,r=A[1].type===16?A[1].number/100:mA(A[1])?A[1].number:0,s=mA(A[2])||ce(A[2])?A[2].number:0,n=typeof A[4]<"u"&&q(A[4])?G(A[4],1):1;return[e,r,s,n]},Va=t=>GA([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],t),vn=t=>GA([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],t),In=(t,A,e)=>(e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(A-t)*e*6+t:e<1/2?A:e<2/3?(A-t)*6*(2/3-e)+t:t),Ma=([t,A,e])=>{if(A===0)return[e*255,e*255,e*255];const r=e<=.5?e*(A+1):e+A-e*A,s=e*2-r,n=In(s,r,t+1/3),o=In(s,r,t),a=In(s,r,t-1/3);return[n,o,a]},$r=([t,A,e])=>(A<0&&(A=0),isNaN(e)&&(e=0),[t,A*Math.cos(e*Math.PI/180),A*Math.sin(e*Math.PI/180)]),qr=t=>{const A=GA([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],t),e=A.map(r=>r**3);return GA([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],e)},As=t=>{const A=(t[0]+16)/116,e=t[1]/500+A,r=A-t[2]/200,s=24389/27,n=24/116,o=[(e>n?e**3:(116*e-16)/s)*.3457/.3585,t[0]>8?A**3:t[0]/s,(r>n?r**3:(116*r-16)/s)*(1-.3457-.3585)/.3585];return vn([o[0],o[1],o[2]])},RB=(t,A)=>{const e=A.filter(EA);if(e.length===3){const[r,s,n]=e.map(Oe),o=bn([r/255,s/255,n/255]),[a,c,B]=yn([o[0],o[1],o[2]]);return[a,c,B,1]}if(e.length===4){const[r,s,n,o]=e.map(Oe),a=bn([r/255,s/255,n/255]),[c,B,d]=yn([a[0],a[1],a[2]]);return[c,B,d,o]}return[0,0,0,1]},kB=(t,A)=>{const[e,r,s,n]=Da(t,A),o=bn(Ma([e,r,s])),[a,c,B]=yn([o[0],o[1],o[2]]);return[a,c,B,n]},GB=(t,A)=>{const[e,r,s,n]=Zr(A),[o,a,c]=As([e,r,s]);return[o,a,c,n]},VB=(t,A)=>{const[e,r,s,n]=ka(A),[o,a,c]=As($r([e,r,s]));return[o,a,c,n]},MB=(t,A)=>{const[e,r,s,n]=Ga(A),[o,a,c]=qr($r([e,r,s]));return[o,a,c,n]},NB=(t,A)=>{const[e,r,s,n]=Zr(A),[o,a,c]=qr([e,r,s]);return[o,a,c,n]},_B=t=>vn([t[0],t[1],t[2]]),Na=t=>t,PB=t=>{const[A,e,r]=Va([t[0],t[2],t[3]]);return[A,e,r,t[3]]},_a=t=>$t([t[0],t[1],t[2],t[3]]),jB=t=>{const A=_B([t[0],t[1],t[2]]);return $t([A[0],A[1],A[2],t[3]])},WB=t=>GA([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],t),XB=t=>GA([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],t),zB=t=>t.map(A=>{const e=A<0?-1:1;return A*e<=.04045?A/12.92:e*((A+.055)/1.055)**2.4||0}),JB=t=>We(t),YB=t=>{const A=zB([t[0],t[1],t[2]]);return WB([A[0],A[1],A[2]])},ZB=t=>{const[A,e,r]=JB(XB([t[0],t[1],t[2]]));return[A,e,r,t[3]]},$B=t=>{const A=YB([t[0],t[1],t[2]]);return $t([A[0],A[1],A[2],t[3]])},qB=t=>GA([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],t),Ag=t=>GA([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],t),eg=t=>{const A=t.map(e=>{const r=e<0?-1:1,s=Math.abs(e);return r*s**2.19921875});return[A[0],A[1],A[2]]},tg=t=>{const A=t.map(e=>{const r=e<0?-1:1,s=Math.abs(e);return r*s**.4547069271758437});return[A[0],A[1],A[2]]},rg=t=>{const[A,e,r]=tg(qB([t[0],t[1],t[2]]));return[A,e,r,t[3]]},sg=t=>{const A=Se(Ag(eg([t[0],t[1],t[2]])));return En([A[0],A[1],A[2],t[3]])},ng=t=>GA([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],t),og=t=>GA([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],t),ag=t=>t.map(A=>A<16/512?A/16:A**1.8),ig=t=>t.map(A=>A>1/512?A**(1/1.8):A*16),cg=t=>{const A=ag([t[0],t[1],t[2]]);return vn(ng([A[0],A[1],A[2]]))},lg=t=>{const[A,e,r]=ig(og(Va([t[0],t[1],t[2]])));return[A,e,r,t[3]]},dg=t=>{const A=cg([t[0],t[1],t[2]]);return $t([A[0],A[1],A[2],t[3]])},es=1.09929682680944,Pa=.018053968510807,Bg=t=>t.map(function(A){return A<Pa*4.5?A/4.5:Math.pow((A+es-1)/es,1/.45)}),gg=t=>t.map(function(A){return A>=Pa?es*Math.pow(A,.45)-(es-1):4.5*A}),ug=t=>GA([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],t),fg=t=>GA([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],t),hg=t=>{const A=Bg([t[0],t[1],t[2]]);return ug([A[0],A[1],A[2]])},pg=t=>{const[A,e,r]=gg(fg([t[0],t[1],t[2]]));return[A,e,r,t[3]]},wg=t=>{const A=hg([t[0],t[1],t[2]]);return $t([A[0],A[1],A[2],t[3]])},Ke={name:"color",parse:(t,A)=>{if(A.type===18){const e=xg[A.name];if(typeof e>"u")throw new Error(`Attempting to parse an unsupported color function "${A.name}"`);return e(t,A.values)}if(A.type===5){const[e,r,s,n]=ja(A);return te(e,r,s,n)}if(A.type===20){const e=de[A.value.toUpperCase()];if(typeof e<"u")return e}return de.TRANSPARENT}},ja=t=>{if(t.value.length===3){const A=t.value.substring(0,1),e=t.value.substring(1,2),r=t.value.substring(2,3);return[parseInt(A+A,16),parseInt(e+e,16),parseInt(r+r,16),1]}if(t.value.length===4){const A=t.value.substring(0,1),e=t.value.substring(1,2),r=t.value.substring(2,3),s=t.value.substring(3,4);return[parseInt(A+A,16),parseInt(e+e,16),parseInt(r+r,16),parseInt(s+s,16)/255]}if(t.value.length===6){const A=t.value.substring(0,2),e=t.value.substring(2,4),r=t.value.substring(4,6);return[parseInt(A,16),parseInt(e,16),parseInt(r,16),1]}if(t.value.length===8){const A=t.value.substring(0,2),e=t.value.substring(2,4),r=t.value.substring(4,6),s=t.value.substring(6,8);return[parseInt(A,16),parseInt(e,16),parseInt(r,16),parseInt(s,16)/255]}return[0,0,0,1]},Wa=(t,A)=>{const e=A.filter(EA);if(ze(e))throw new Error("Relative color not supported for rgb()");if(e.length===3){const[r,s,n]=e.map(Oe);return te(r,s,n,1)}if(e.length===4){const[r,s,n,o]=e.map(Oe);return te(r,s,n,o)}if(e.length===5&&e[3].type===6&&e[3].value==="/"){const r=Oe(e[0],0),s=Oe(e[1],1),n=Oe(e[2],2),o=Oe(e[4],3);return te(r,s,n,o)}return 0},mg=(t,A)=>{const e=A.filter(EA),r=e[0].type===20?e[0].value:"unknown";if(!ze(e)){const n=r,o=Xa[n];if(typeof o>"u")throw new Error(`Attempting to parse an unsupported color space "${n}" for color() function`);const a=mA(e[1])?e[1].number:0,c=mA(e[2])?e[2].number:0,B=mA(e[3])?e[3].number:0,d=e.length>4&&e[4].type===6&&e[4].value==="/"&&mA(e[5])?e[5].number:1;return o([a,c,B,d])}else{const n=(C,L)=>{if(mA(L))return L.number;const I=O=>O==="r"||O==="x"?0:O==="g"||O==="y"?1:2;if(V(L)){const O=I(L.value);return C[O]}const E=O=>{const N=O.filter(EA);let W="(";for(const R of N)W+=R.type===18&&R.name==="calc"?E(R.values):mA(R)?R.number:R.type===6||V(R)?R.value:"";return W+=")",W};if(L.type===18){const O=L.values.filter(EA);if(L.name==="calc"){const N=E(O).replace(/r|x/,C[0].toString()).replace(/g|y/,C[1].toString()).replace(/b|z/,C[2].toString());return new Function("return "+N)()}}return null},o=e[1].type===18?e[1].name:V(e[1])||e[1].type===5?"rgb":"unknown",a=V(e[2])?e[2].value:"unknown";let c=e[1].type===18?e[1].values:V(e[1])?[e[1]]:[];if(V(e[1])){if(typeof de[e[1].value.toUpperCase()]>"u")throw new Error("Attempting to use unknown color in relative color 'from'");{const L=gt(t,e[1].value),I=255&L,E=255&L>>8,O=255&L>>16;c=[{type:17,number:255&L>>24,flags:1},{type:17,number:O,flags:1},{type:17,number:E,flags:1},{type:17,number:I>1?I/255:I,flags:1}]}}else if(e[1].type===5){const[C,L,I,E]=ja(e[1]);c=[{type:17,number:C,flags:1},{type:17,number:L,flags:1},{type:17,number:I,flags:1},{type:17,number:E>1?E/255:E,flags:1}]}if(c.length===0)throw new Error("Attempting to use unknown color in relative color 'from'");if(a==="unknown")throw new Error("Attempting to use unknown colorspace in relative color 'to'");const B=Cg[o],d=Qg[a],g=Xa[a];if(typeof B>"u")throw new Error(`Attempting to parse an unsupported color space "${o}" for color() function`);if(typeof d>"u")throw new Error(`Attempting to parse an unsupported color space "${a}" for color() function`);const u=B(t,c),f=d(u),w=n(f,e[3]),m=n(f,e[4]),F=n(f,e[5]),y=e.length>6&&e[6].type===6&&e[6].value==="/"&&mA(e[7])?e[7].number:1;if(w===null||m===null||F===null)throw new Error("Invalid relative color in color() function");return g([w,m,F,y])}},Xa={srgb:LB,"srgb-linear":En,"display-p3":$B,"a98-rgb":sg,"prophoto-rgb":dg,xyz:_a,"xyz-d50":jB,"xyz-d65":_a,rec2020:wg},Cg={rgb:RB,hsl:kB,lab:GB,lch:VB,oklab:NB,oklch:MB},Qg={srgb:vB,"srgb-linear":IB,"display-p3":ZB,"a98-rgb":rg,"prophoto-rgb":lg,xyz:Na,"xyz-d50":PB,"xyz-d65":Na,rec2020:pg},xg={hsl:Ra,hsla:Ra,rgb:Wa,rgba:Wa,lch:DB,oklch:KB,oklab:OB,lab:TB,color:mg},gt=(t,A)=>Ke.parse(t,dt.create(A).parseComponentValue()),de={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Ug={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(t,A)=>A.map(e=>{if(V(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})},Fg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ts=(t,A)=>{const e=Ke.parse(t,A[0]),r=A[1];return r&&q(r)?{color:e,stop:r}:{color:e,stop:null}},za=(t,A)=>{const e=t[0],r=t[t.length-1];e.stop===null&&(e.stop=CA),r.stop===null&&(r.stop=le);const s=[];let n=0;for(let a=0;a<t.length;a++){const c=t[a].stop;if(c!==null){const B=G(c,A);B>n?s.push(B):s.push(n),n=B}else s.push(null)}let o=null;for(let a=0;a<s.length;a++){const c=s[a];if(c===null)o===null&&(o=a);else if(o!==null){const B=a-o,d=s[o-1],g=(c-d)/(B+1);for(let u=1;u<=B;u++)s[o+u-1]=g*u;o=null}}return t.map(({color:a},c)=>({color:a,stop:Math.max(Math.min(1,s[c]/A),0)}))},yg=(t,A,e)=>{const r=A/2,s=e/2,n=G(t[0],A)-r,o=s-G(t[1],e);return(Math.atan2(o,n)+Math.PI*2)%(Math.PI*2)},bg=(t,A,e)=>{const r=typeof t=="number"?t:yg(t,A,e),s=Math.abs(A*Math.sin(r))+Math.abs(e*Math.cos(r)),n=A/2,o=e/2,a=s/2,c=Math.sin(r-Math.PI/2)*a,B=Math.cos(r-Math.PI/2)*a;return[s,n-B,n+B,o-c,o+c]},re=(t,A)=>Math.sqrt(t*t+A*A),Ja=(t,A,e,r,s)=>[[0,0],[0,A],[t,0],[t,A]].reduce((o,a)=>{const[c,B]=a,d=re(e-c,r-B);return(s?d<o.optimumDistance:d>o.optimumDistance)?{optimumCorner:a,optimumDistance:d}:o},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner,Eg=(t,A,e,r,s)=>{let n=0,o=0;switch(t.size){case 0:t.shape===0?n=o=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(e),Math.abs(e-s)):t.shape===1&&(n=Math.min(Math.abs(A),Math.abs(A-r)),o=Math.min(Math.abs(e),Math.abs(e-s)));break;case 2:if(t.shape===0)n=o=Math.min(re(A,e),re(A,e-s),re(A-r,e),re(A-r,e-s));else if(t.shape===1){const a=Math.min(Math.abs(e),Math.abs(e-s))/Math.min(Math.abs(A),Math.abs(A-r)),[c,B]=Ja(r,s,A,e,!0);n=re(c-A,(B-e)/a),o=a*n}break;case 1:t.shape===0?n=o=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(e),Math.abs(e-s)):t.shape===1&&(n=Math.max(Math.abs(A),Math.abs(A-r)),o=Math.max(Math.abs(e),Math.abs(e-s)));break;case 3:if(t.shape===0)n=o=Math.max(re(A,e),re(A,e-s),re(A-r,e),re(A-r,e-s));else if(t.shape===1){const a=Math.max(Math.abs(e),Math.abs(e-s))/Math.max(Math.abs(A),Math.abs(A-r)),[c,B]=Ja(r,s,A,e,!1);n=re(c-A,(B-e)/a),o=a*n}break}return Array.isArray(t.size)&&(n=G(t.size[0],r),o=t.size.length===2?G(t.size[1],s):n),[n,o]},vg=(t,A)=>{let e=zA(180);const r=[];return ee(A).forEach((s,n)=>{if(n===0){const a=s[0];if(a.type===20&&a.value==="to"){e=Ka(s);return}else if(Oa(a)){e=Bt.parse(t,a);return}}const o=ts(t,s);r.push(o)}),{angle:e,stops:r,type:1}},rs=(t,A)=>{let e=zA(180);const r=[];return ee(A).forEach((s,n)=>{if(n===0){const a=s[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){e=Ka(s);return}else if(Oa(a)){e=(Bt.parse(t,a)+zA(270))%zA(360);return}}const o=ts(t,s);r.push(o)}),{angle:e,stops:r,type:1}},Ig=(t,A)=>{const e=zA(180),r=[];let s=1;const n=0,o=3,a=[];return ee(A).forEach((c,B)=>{const d=c[0];if(B===0){if(V(d)&&d.value==="linear"){s=1;return}else if(V(d)&&d.value==="radial"){s=2;return}}if(d.type===18){if(d.name==="from"){const g=Ke.parse(t,d.values[0]);r.push({stop:CA,color:g})}else if(d.name==="to"){const g=Ke.parse(t,d.values[0]);r.push({stop:le,color:g})}else if(d.name==="color-stop"){const g=d.values.filter(EA);if(g.length===2){const u=Ke.parse(t,g[1]),f=g[0];mA(f)&&r.push({stop:{type:16,number:f.number*100,flags:f.flags},color:u})}}}}),s===1?{angle:(e+zA(180))%zA(360),stops:r,type:s}:{size:o,shape:n,stops:r,position:a,type:s}},Ya="closest-side",Za="farthest-side",$a="closest-corner",qa="farthest-corner",Ai="circle",ei="ellipse",ti="cover",ri="contain",Hg=(t,A)=>{let e=0,r=3;const s=[],n=[];return ee(A).forEach((o,a)=>{let c=!0;if(a===0){let B=!1;c=o.reduce((d,g)=>{if(B)if(V(g))switch(g.value){case"center":return n.push(Xe),d;case"top":case"left":return n.push(CA),d;case"right":case"bottom":return n.push(le),d}else(q(g)||Le(g))&&n.push(g);else if(V(g))switch(g.value){case Ai:return e=0,!1;case ei:return e=1,!1;case"at":return B=!0,!1;case Ya:return r=0,!1;case ti:case Za:return r=1,!1;case ri:case $a:return r=2,!1;case qa:return r=3,!1}else if(Le(g)||q(g))return Array.isArray(r)||(r=[]),r.push(g),!1;return d},c)}if(c){const B=ts(t,o);s.push(B)}}),{size:r,shape:e,stops:s,position:n,type:2}},ss=(t,A)=>{let e=0,r=3;const s=[],n=[];return ee(A).forEach((o,a)=>{let c=!0;if(a===0?c=o.reduce((B,d)=>{if(V(d))switch(d.value){case"center":return n.push(Xe),!1;case"top":case"left":return n.push(CA),!1;case"right":case"bottom":return n.push(le),!1}else if(q(d)||Le(d))return n.push(d),!1;return B},c):a===1&&(c=o.reduce((B,d)=>{if(V(d))switch(d.value){case Ai:return e=0,!1;case ei:return e=1,!1;case ri:case Ya:return r=0,!1;case Za:return r=1,!1;case $a:return r=2,!1;case ti:case qa:return r=3,!1}else if(Le(d)||q(d))return Array.isArray(r)||(r=[]),r.push(d),!1;return B},c)),c){const B=ts(t,o);s.push(B)}}),{size:r,shape:e,stops:s,position:n,type:2}},Sg=t=>t.type===1,Lg=t=>t.type===2,Hn={name:"image",parse:(t,A)=>{if(A.type===22){const e={url:A.value,type:0};return t.cache.addImage(A.value),e}if(A.type===18){const e=si[A.name];if(typeof e>"u")throw new Error(`Attempting to parse an unsupported image function "${A.name}"`);return e(t,A.values)}throw new Error(`Unsupported image type ${A.type}`)}};function Tg(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!si[t.name])}const si={"linear-gradient":vg,"-moz-linear-gradient":rs,"-ms-linear-gradient":rs,"-o-linear-gradient":rs,"-webkit-linear-gradient":rs,"radial-gradient":Hg,"-moz-radial-gradient":ss,"-ms-radial-gradient":ss,"-o-radial-gradient":ss,"-webkit-radial-gradient":ss,"-webkit-gradient":Ig},Og={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>{if(A.length===0)return[];const e=A[0];return e.type===20&&e.value==="none"?[]:A.filter(r=>EA(r)&&Tg(r)).map(r=>Hn.parse(t,r))}},Kg={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(t,A)=>A.map(e=>{if(V(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})},Dg={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(t,A)=>ee(A).map(e=>e.map(r=>HB(r)?SB(r,0):q(r)?r:null).filter(r=>r!==null)).map(Ia)},Rg={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(t,A)=>ee(A).map(e=>e.filter(V).map(r=>r.value).join(" ")).map(kg)},kg=t=>{switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};var ut;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(ut||(ut={}));const Gg={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(t,A)=>ee(A).map(e=>e.filter(Vg))},Vg=t=>V(t)||q(t),ns=t=>({name:`border-${t}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),Mg=ns("top"),Ng=ns("right"),_g=ns("bottom"),Pg=ns("left"),os=t=>({name:`border-radius-${t}`,initialValue:"0 0",prefix:!1,type:1,parse:(A,e)=>Ia(e.filter(q))}),jg=os("top-left"),Wg=os("top-right"),Xg=os("bottom-right"),zg=os("bottom-left"),as=t=>({name:`border-${t}-style`,initialValue:"solid",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}),Jg=as("top"),Yg=as("right"),Zg=as("bottom"),$g=as("left"),is=t=>({name:`border-${t}-width`,initialValue:"0",type:0,prefix:!1,parse:(A,e)=>ce(e)?e.number:0}),qg=is("top"),Au=is("right"),eu=is("bottom"),tu=is("left"),Sn={type:0},Ln=t=>{const[A]=t;return A?V(A)?A.value==="farthest-side"?"farthest-side":"closest-side":q(A)?A:"closest-side":"closest-side"},ni=t=>{let A=null,e=null;for(const r of t)if(V(r))switch(r.value){case"left":A=CA;break;case"right":A=le;break;case"top":e=CA;break;case"bottom":e=le;break;case"center":A===null?A=Xe:e===null&&(e=Xe);break}else q(r)&&(A===null?A=r:e===null&&(e=r));return{cx:A??Xe,cy:e??Xe}},ru=t=>{const A=[];for(const o of t)if(o.type!==31){if(V(o)&&o.value==="round")break;q(o)&&A.push(o)}const e=A[0]??CA,r=A[1]??e,s=A[2]??e,n=A[3]??r;return{type:1,top:e,right:r,bottom:s,left:n}},su=t=>{const A=t.filter(Yr),e=A.findIndex(n=>Yt(n,"at")),r=e===-1?A:A.slice(0,e),s=e===-1?[]:A.slice(e+1);return{type:2,radius:Ln(r),...ni(s)}},nu=t=>{const A=t.filter(Yr),e=A.findIndex(n=>Yt(n,"at")),r=e===-1?A:A.slice(0,e),s=e===-1?[]:A.slice(e+1);return{type:3,rx:Ln(r.slice(0,1)),ry:Ln(r.slice(1,2)),...ni(s)}},ou=t=>{const A=ee(t),e=[];for(const r of A){if(r.length===1&&V(r[0]))continue;const s=r.filter(q);s.length>=2&&e.push([s[0],s[1]])}return{type:4,points:e}},au=t=>{const A=t.find(e=>e.type===0);return A?{type:5,d:A.value}:Sn},iu={name:"clip-path",initialValue:"none",prefix:!1,type:0,parse:(t,A)=>{if(V(A)&&A.value==="none")return Sn;if(A.type===18)switch(A.name){case"inset":return ru(A.values);case"circle":return su(A.values);case"ellipse":return nu(A.values);case"polygon":return ou(A.values);case"path":return au(A.values)}return Sn}},cu={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},lu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(t,A)=>A==="rtl"?1:0},du={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(t,A)=>A.filter(V).reduce((e,r)=>e|Bu(r.value),0)},Bu=t=>{switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},gu={name:"float",initialValue:"none",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},uu={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:(t,A)=>A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0};var cs;(function(t){t.NORMAL="normal",t.STRICT="strict"})(cs||(cs={}));const fu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>A==="strict"?cs.STRICT:cs.NORMAL},hu={name:"line-height",initialValue:"normal",prefix:!1,type:4},oi=(t,A)=>V(t)&&t.value==="normal"?1.2*A:t.type===17?A*t.number:q(t)?G(t,A):A,pu={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:(t,A)=>A.type===20&&A.value==="none"?null:Hn.parse(t,A)},wu={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(t,A)=>A==="inside"?0:1},Tn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 52;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},ls=t=>({name:`margin-${t}`,initialValue:"0",prefix:!1,type:4}),mu=ls("top"),Cu=ls("right"),Qu=ls("bottom"),xu=ls("left"),Uu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(t,A)=>A.filter(V).map(e=>{switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},Fu={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>A==="break-word"?"break-word":"normal"},ds=t=>({name:`padding-${t}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),yu=ds("top"),bu=ds("right"),Eu=ds("bottom"),vu=ds("left"),Iu={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Hu={name:"position",initialValue:"static",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Su={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>A.length===1&&Yt(A[0],"none")?[]:ee(A).map(e=>{const r={color:de.TRANSPARENT,offsetX:CA,offsetY:CA,blur:CA};let s=0;for(let n=0;n<e.length;n++){const o=e[n];Le(o)?(s===0?r.offsetX=o:s===1?r.offsetY=o:r.blur=o,s++):r.color=Ke.parse(t,o)}return r})},Lu={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Tu={name:"transform",initialValue:"none",prefix:!0,type:0,parse:(t,A)=>{if(A.type===20&&A.value==="none")return null;if(A.type===18){const e=Ou[A.name];if(typeof e>"u")throw new Error(`Attempting to parse an unsupported transform function "${A.name}"`);return e(t,A.values)}return null}},Ou={matrix:(t,A)=>{const e=A.filter(r=>r.type===17).map(r=>r.number);return e.length===6?e:null},matrix3d:(t,A)=>{const e=A.filter(B=>B.type===17).map(B=>B.number),[r,s,{},{},n,o,{},{},{},{},{},{},a,c]=e;return e.length===16?[r,s,n,o,a,c]:null},rotate:(t,A)=>{if(A.length!==1)return null;const e=A[0];let r=0;if(e.type===17&&e.number===0)r=0;else if(e.type===15)r=Bt.parse(t,e);else return null;const s=Math.cos(r),n=Math.sin(r);return[s,n,-n,s,0,0]}},ai={type:16,number:50,flags:ct},Ku=[ai,ai],Du={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(t,A)=>{const e=A.filter(q);return e.length!==2?Ku:[e[0],e[1]]}},Ru={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:(t,A)=>A.type===20&&A.value==="none"?null:A.type===17&&A.number===0?0:A.type===15?Bt.parse(t,A)*180/Math.PI:null},ku={name:"visible",initialValue:"none",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}};var qt;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(qt||(qt={}));const Gu={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"break-all":return qt.BREAK_ALL;case"keep-all":return qt.KEEP_ALL;default:return qt.NORMAL}}},Vu={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(t,A)=>{if(A.type===20)return{auto:!0,order:0};if(mA(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},ii={name:"time",parse:(t,A)=>{if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},Mu={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(t,A)=>mA(A)?A.number:1},Nu={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_u={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(t,A)=>A.filter(V).map(e=>{switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(e=>e!==0)},Pu={name:"text-decoration-style",initialValue:"solid",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"double":return 1;case"dotted":return 2;case"dashed":return 3;case"wavy":return 4;default:return 0}}},ju={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(t,A)=>{if(V(A))switch(A.value){case"auto":return"auto";case"from-font":return"from-font"}return ce(A)?A.number:"auto"}},Wu={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(t,A)=>V(A)&&A.value==="auto"?"auto":ce(A)?A.number:"auto"},Xu={name:"font-family",initialValue:"",prefix:!1,type:1,parse:(t,A)=>{const e=[],r=[];return A.forEach(s=>{switch(s.type){case 20:case 0:e.push(s.value);break;case 17:e.push(s.number.toString());break;case 4:r.push(e.join(" ")),e.length=0;break}}),e.length&&r.push(e.join(" ")),r.map(s=>s.indexOf(" ")===-1?s:`'${s}'`)}},zu={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Ju={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(t,A)=>mA(A)?A.number:V(A)&&A.value==="bold"?700:400},Yu={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>A.filter(V).map(e=>e.value)},Zu={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:(t,A)=>{switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},iA=(t,A)=>(t&A)!==0,$u={name:"content",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>{if(A.length===0)return[];const e=A[0];return e.type===20&&e.value==="none"?[]:A}},qu={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(t,A)=>{if(A.length===0)return null;const e=A[0];if(e.type===20&&e.value==="none")return null;const r=[],s=A.filter(Yr);for(let n=0;n<s.length;n++){const o=s[n],a=s[n+1];if(o.type===20){const c=a&&mA(a)?a.number:1;r.push({counter:o.value,increment:c})}}return r}},Af={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(t,A)=>{if(A.length===0)return[];const e=[],r=A.filter(Yr);for(let s=0;s<r.length;s++){const n=r[s],o=r[s+1];if(V(n)&&n.value!=="none"){const a=o&&mA(o)?o.number:0;e.push({counter:n.value,reset:a})}}return e}},ef={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(t,A)=>A.filter(ce).map(e=>ii.parse(t,e))},tf={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(t,A)=>{if(A.length===0)return null;const e=A[0];if(e.type===20&&e.value==="none")return null;const r=[],s=A.filter(bB);if(s.length%2!==0)return null;for(let n=0;n<s.length;n+=2){const o=s[n].value,a=s[n+1].value;r.push({open:o,close:a})}return r}},ci=(t,A,e)=>{if(!t)return"";const r=t[Math.min(A,t.length-1)];return r?e?r.open:r.close:""},rf={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,A)=>A.length===1&&Yt(A[0],"none")?[]:ee(A).map(e=>{const r={color:255,offsetX:CA,offsetY:CA,blur:CA,spread:CA,inset:!1};let s=0;for(let n=0;n<e.length;n++){const o=e[n];Yt(o,"inset")?r.inset=!0:Le(o)?(s===0?r.offsetX=o:s===1?r.offsetY=o:s===2?r.blur=o:r.spread=o,s++):r.color=Ke.parse(t,o)}return r})},sf={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(t,A)=>{const e=[0,1,2],r=[];return A.filter(V).forEach(s=>{switch(s.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),e.forEach(s=>{r.indexOf(s)===-1&&r.push(s)}),r}},nf={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},of={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(t,A)=>ce(A)?A.number:0},af={name:"-webkit-line-clamp",initialValue:"none",prefix:!0,type:0,parse:(t,A)=>A.type===20&&A.value==="none"?0:A.type===17?Math.max(0,Math.floor(A.number)):0},cf={name:"objectFit",initialValue:"fill",prefix:!1,type:1,parse:(t,A)=>A.filter(V).reduce((e,r)=>e|lf(r.value),0)},lf=t=>{switch(t){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},df={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(t,A)=>A==="ellipsis"?1:0};var WA;(function(t){t[t.AUTO=0]="AUTO",t[t.CRISP_EDGES=1]="CRISP_EDGES",t[t.PIXELATED=2]="PIXELATED",t[t.SMOOTH=3]="SMOOTH"})(WA||(WA={}));const Bf={name:"image-rendering",initialValue:"auto",prefix:!1,type:2,parse:(t,A)=>{switch(A.toLowerCase()){case"crisp-edges":case"-webkit-crisp-edges":case"-moz-crisp-edges":return WA.CRISP_EDGES;case"pixelated":case"-webkit-optimize-contrast":return WA.PIXELATED;case"smooth":case"high-quality":return WA.SMOOTH;default:return WA.AUTO}}};class gf{constructor(A,e){this.animationDuration=b(A,ef,e.animationDuration),this.backgroundClip=b(A,Ug,e.backgroundClip),this.backgroundColor=b(A,Fg,e.backgroundColor),this.backgroundImage=b(A,Og,e.backgroundImage),this.backgroundOrigin=b(A,Kg,e.backgroundOrigin),this.backgroundPosition=b(A,Dg,e.backgroundPosition),this.backgroundRepeat=b(A,Rg,e.backgroundRepeat),this.backgroundSize=b(A,Gg,e.backgroundSize),this.borderTopColor=b(A,Mg,e.borderTopColor),this.borderRightColor=b(A,Ng,e.borderRightColor),this.borderBottomColor=b(A,_g,e.borderBottomColor),this.borderLeftColor=b(A,Pg,e.borderLeftColor),this.borderTopLeftRadius=b(A,jg,e.borderTopLeftRadius),this.borderTopRightRadius=b(A,Wg,e.borderTopRightRadius),this.borderBottomRightRadius=b(A,Xg,e.borderBottomRightRadius),this.borderBottomLeftRadius=b(A,zg,e.borderBottomLeftRadius),this.borderTopStyle=b(A,Jg,e.borderTopStyle),this.borderRightStyle=b(A,Yg,e.borderRightStyle),this.borderBottomStyle=b(A,Zg,e.borderBottomStyle),this.borderLeftStyle=b(A,$g,e.borderLeftStyle),this.borderTopWidth=b(A,qg,e.borderTopWidth),this.borderRightWidth=b(A,Au,e.borderRightWidth),this.borderBottomWidth=b(A,eu,e.borderBottomWidth),this.borderLeftWidth=b(A,tu,e.borderLeftWidth),this.boxShadow=b(A,rf,e.boxShadow),this.clipPath=b(A,iu,e.clipPath),this.color=b(A,cu,e.color),this.direction=b(A,lu,e.direction),this.display=b(A,du,e.display),this.float=b(A,gu,e.cssFloat),this.fontFamily=b(A,Xu,e.fontFamily),this.fontSize=b(A,zu,e.fontSize),this.fontStyle=b(A,Zu,e.fontStyle),this.fontVariant=b(A,Yu,e.fontVariant),this.fontWeight=b(A,Ju,e.fontWeight),this.letterSpacing=b(A,uu,e.letterSpacing),this.lineBreak=b(A,fu,e.lineBreak),this.lineHeight=b(A,hu,e.lineHeight),this.listStyleImage=b(A,pu,e.listStyleImage),this.listStylePosition=b(A,wu,e.listStylePosition),this.listStyleType=b(A,Tn,e.listStyleType),this.marginTop=b(A,mu,e.marginTop),this.marginRight=b(A,Cu,e.marginRight),this.marginBottom=b(A,Qu,e.marginBottom),this.marginLeft=b(A,xu,e.marginLeft),this.opacity=b(A,Mu,e.opacity);const r=b(A,Uu,e.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0],this.overflowWrap=b(A,Fu,e.overflowWrap),this.paddingTop=b(A,yu,e.paddingTop),this.paddingRight=b(A,bu,e.paddingRight),this.paddingBottom=b(A,Eu,e.paddingBottom),this.paddingLeft=b(A,vu,e.paddingLeft),this.paintOrder=b(A,sf,e.paintOrder),this.position=b(A,Hu,e.position),this.textAlign=b(A,Iu,e.textAlign),this.textDecorationColor=b(A,Nu,e.textDecorationColor??e.color),this.textDecorationLine=b(A,_u,e.textDecorationLine??e.textDecoration),this.textDecorationStyle=b(A,Pu,e.textDecorationStyle),this.textDecorationThickness=b(A,ju,e.textDecorationThickness),this.textUnderlineOffset=b(A,Wu,e.textUnderlineOffset),this.textShadow=b(A,Su,e.textShadow),this.textTransform=b(A,Lu,e.textTransform),this.textOverflow=b(A,df,e.textOverflow),this.transform=b(A,Tu,e.transform),this.transformOrigin=b(A,Du,e.transformOrigin),this.rotate=b(A,Ru,e.rotate),this.visibility=b(A,ku,e.visibility),this.webkitTextStrokeColor=b(A,nf,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=b(A,of,e.webkitTextStrokeWidth),this.webkitLineClamp=b(A,af,e.webkitLineClamp),this.wordBreak=b(A,Gu,e.wordBreak),this.zIndex=b(A,Vu,e.zIndex),this.objectFit=b(A,cf,e.objectFit),this.imageRendering=b(A,Bf,e.imageRendering)}isVisible(){return this.display>0&&this.opacity>0&&this.visibility===0}isTransparent(){return Te(this.backgroundColor)}isTransformed(){return this.transform!==null||this.rotate!==null}isPositioned(){return this.position!==0}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return this.float!==0}isInlineLevel(){return iA(this.display,4)||iA(this.display,33554432)||iA(this.display,268435456)||iA(this.display,536870912)||iA(this.display,67108864)||iA(this.display,134217728)}}class uf{constructor(A,e){this.content=b(A,$u,e.content),this.quotes=b(A,tf,e.quotes)}}class li{constructor(A,e){this.counterIncrement=b(A,qu,e.counterIncrement),this.counterReset=b(A,Af,e.counterReset)}}const b=(t,A,e)=>{const r=new va,s=e!==null&&typeof e<"u"?e.toString():A.initialValue;r.write(s);const n=new dt(r.read());switch(A.type){case 2:const o=n.parseComponentValue();return A.parse(t,V(o)?o.value:A.initialValue);case 0:return A.parse(t,n.parseComponentValue());case 1:return A.parse(t,n.parseComponentValues());case 4:return n.parseComponentValue();case 3:switch(A.format){case"angle":return Bt.parse(t,n.parseComponentValue());case"color":return Ke.parse(t,n.parseComponentValue());case"image":return Hn.parse(t,n.parseComponentValue());case"length":const a=n.parseComponentValue();return Le(a)?a:CA;case"length-percentage":const c=n.parseComponentValue();return q(c)?c:CA;case"time":return ii.parse(t,n.parseComponentValue())}break}},Ce=t=>t.nodeType===Node.ELEMENT_NODE,di=t=>t.nodeType===Node.TEXT_NODE,ft=t=>typeof t.className=="object",Ar=t=>Ce(t)&&typeof t.style<"u"&&!ft(t),ff=t=>t.tagName==="LI",hf=t=>t.tagName==="OL",Bi=t=>!ft(t)&&t.tagName.indexOf("-")>0,pf="data-html2canvas-debug",wf=t=>{if(typeof t.getAttribute!="function")return 0;switch(t.getAttribute(pf)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},On=(t,A)=>{const e=wf(t);return e===1||A===e};class gi{static normalizeElement(A,e){const r={};return Ar(A)&&(e.animationDuration.some(s=>s>0)&&(r.animationDuration=A.style.animationDuration,A.style.animationDuration="0s"),e.transform!==null&&(r.transform=A.style.transform,A.style.transform="translate(0, 0)"),e.rotate!==null&&(r.rotate=A.style.rotate,A.style.rotate="0deg",r.transform===void 0&&(r.transform=A.style.transform,A.style.transform="translate(0, 0)"))),r}static restoreElement(A,e){Ar(A)&&(e.animationDuration!==void 0&&(A.style.animationDuration=e.animationDuration),e.transform!==void 0&&(A.style.transform=e.transform),e.rotate!==void 0&&(A.style.rotate=e.rotate))}}class Be{constructor(A,e,r={}){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,On(e,3))debugger;this.styles=new gf(A,A.config.window.getComputedStyle(e,null)),r.normalizeDom!==!1&&Ar(e)&&(this.originalStyles=gi.normalizeElement(e,this.styles),this.originalElement=e),this.bounds=Hr(this.context,e),On(e,4)&&(this.flags|=16)}restore(){this.originalStyles&&this.originalElement&&(gi.restoreElement(this.originalElement,this.originalStyles),this.originalStyles=void 0,this.originalElement=void 0)}restoreTree(){this.restore();for(const A of this.elements)A.restoreTree()}}for(var mf="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ui="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",er=typeof Uint8Array>"u"?[]:new Uint8Array(256),Bs=0;Bs<ui.length;Bs++)er[ui.charCodeAt(Bs)]=Bs;for(var Cf=function(t){var A=t.length*.75,e=t.length,r,s=0,n,o,a,c;t[t.length-1]==="="&&(A--,t[t.length-2]==="="&&A--);var B=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),d=Array.isArray(B)?B:new Uint8Array(B);for(r=0;r<e;r+=4)n=er[t.charCodeAt(r)],o=er[t.charCodeAt(r+1)],a=er[t.charCodeAt(r+2)],c=er[t.charCodeAt(r+3)],d[s++]=n<<2|o>>4,d[s++]=(o&15)<<4|a>>2,d[s++]=(a&3)<<6|c&63;return B},Qf=function(t){for(var A=t.length,e=[],r=0;r<A;r+=2)e.push(t[r+1]<<8|t[r]);return e},xf=function(t){for(var A=t.length,e=[],r=0;r<A;r+=4)e.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return e},Je=5,Kn=11,Dn=2,Uf=Kn-Je,fi=65536>>Je,Ff=1<<Je,Rn=Ff-1,yf=1024>>Je,bf=fi+yf,Ef=bf,vf=32,If=Ef+vf,Hf=65536>>Kn,Sf=1<<Uf,Lf=Sf-1,hi=function(t,A,e){return t.slice?t.slice(A,e):new Uint16Array(Array.prototype.slice.call(t,A,e))},Tf=function(t,A,e){return t.slice?t.slice(A,e):new Uint32Array(Array.prototype.slice.call(t,A,e))},Of=function(t,A){var e=Cf(t),r=Array.isArray(e)?xf(e):new Uint32Array(e),s=Array.isArray(e)?Qf(e):new Uint16Array(e),n=24,o=hi(s,n/2,r[4]/2),a=r[5]===2?hi(s,(n+r[4])/2):Tf(r,Math.ceil((n+r[4])/4));return new Kf(r[0],r[1],r[2],r[3],o,a)},Kf=(function(){function t(A,e,r,s,n,o){this.initialValue=A,this.errorValue=e,this.highStart=r,this.highValueIndex=s,this.index=n,this.data=o}return t.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>Je],e=(e<<Dn)+(A&Rn),this.data[e];if(A<=65535)return e=this.index[fi+(A-55296>>Je)],e=(e<<Dn)+(A&Rn),this.data[e];if(A<this.highStart)return e=If-Hf+(A>>Kn),e=this.index[e],e+=A>>Je&Lf,e=this.index[e],e=(e<<Dn)+(A&Rn),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),pi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Df=typeof Uint8Array>"u"?[]:new Uint8Array(256),gs=0;gs<pi.length;gs++)Df[pi.charCodeAt(gs)]=gs;var Rf=1,kn=2,Gn=3,wi=4,mi=5,kf=7,Ci=8,Vn=9,Mn=10,Qi=11,xi=12,Ui=13,Fi=14,Nn=15,Gf=function(t){for(var A=[],e=0,r=t.length;e<r;){var s=t.charCodeAt(e++);if(s>=55296&&s<=56319&&e<r){var n=t.charCodeAt(e++);(n&64512)===56320?A.push(((s&1023)<<10)+(n&1023)+65536):(A.push(s),e--)}else A.push(s)}return A},Vf=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var r=[],s=-1,n="";++s<e;){var o=t[s];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(s+1===e||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},Mf=Of(mf),JA="×",_n="÷",Nf=function(t){return Mf.get(t)},_f=function(t,A,e){var r=e-2,s=A[r],n=A[e-1],o=A[e];if(n===kn&&o===Gn)return JA;if(n===kn||n===Gn||n===wi||o===kn||o===Gn||o===wi)return _n;if(n===Ci&&[Ci,Vn,Qi,xi].indexOf(o)!==-1||(n===Qi||n===Vn)&&(o===Vn||o===Mn)||(n===xi||n===Mn)&&o===Mn||o===Ui||o===mi||o===kf||n===Rf)return JA;if(n===Ui&&o===Fi){for(;s===mi;)s=A[--r];if(s===Fi)return JA}if(n===Nn&&o===Nn){for(var a=0;s===Nn;)a++,s=A[--r];if(a%2===0)return JA}return _n},Pf=function(t){var A=Gf(t),e=A.length,r=0,s=0,n=A.map(Nf);return{next:function(){if(r>=e)return{done:!0,value:null};for(var o=JA;r<e&&(o=_f(A,n,++r))===JA;);if(o!==JA||r===e){var a=Vf.apply(null,A.slice(s,r));return s=r,{value:a,done:!1}}return{done:!0,value:null}}}},jf=function(t){for(var A=Pf(t),e=[],r;!(r=A.next()).done;)r.value&&e.push(r.value.slice());return e};const Wf=t=>{if(t.createRange){const e=t.createRange();if(e.getBoundingClientRect){const r=t.createElement("boundtest");r.style.height="123px",r.style.display="block",t.body.appendChild(r),e.selectNode(r);const s=e.getBoundingClientRect(),n=Math.round(s.height);if(t.body.removeChild(r),n===123)return!0}}return!1},Xf=t=>{const A=t.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",t.body.appendChild(A);const e=t.createRange();A.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";const r=A.firstChild,s=Sr(r.data).map(c=>pA(c));let n=0,o={};const a=s.every((c,B)=>{e.setStart(r,n),e.setEnd(r,n+c.length);const d=e.getBoundingClientRect();n+=c.length;const g=d.x>o.x||d.y>o.y;return o=d,B===0?!0:g});return t.body.removeChild(A),a},zf=()=>typeof new Image().crossOrigin<"u",Jf=()=>typeof new XMLHttpRequest().responseType=="string",Yf=t=>{const A=new Image,e=t.createElement("canvas"),r=e.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(A,0,0),e.toDataURL()}catch{return!1}return!0},yi=t=>t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255,Zf=t=>{const A=t.createElement("canvas"),e=100;A.width=e,A.height=e;const r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,e,e);const s=new Image,n=A.toDataURL();s.src=n;const o=Pn(e,e,0,0,s);return r.fillStyle="red",r.fillRect(0,0,e,e),bi(o).then(a=>{r.drawImage(a,0,0);const c=r.getImageData(0,0,e,e).data;r.fillStyle="red",r.fillRect(0,0,e,e);const B=t.createElement("div");return B.style.backgroundImage=`url(${n})`,B.style.height=`${e}px`,yi(c)?bi(Pn(e,e,0,0,B)):Promise.reject(!1)}).then(a=>(r.drawImage(a,0,0),yi(r.getImageData(0,0,e,e).data))).catch(()=>!1)},Pn=(t,A,e,r,s)=>{const n="http://www.w3.org/2000/svg",o=document.createElementNS(n,"svg"),a=document.createElementNS(n,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",A.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",e.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(s),o},bi=t=>new Promise((A,e)=>{const r=new Image;r.onload=()=>A(r),r.onerror=e,r.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(t))}`}),vA={get SUPPORT_RANGE_BOUNDS(){const t=Wf(document);return Object.defineProperty(vA,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){const t=vA.SUPPORT_RANGE_BOUNDS&&Xf(document);return Object.defineProperty(vA,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){const t=Yf(document);return Object.defineProperty(vA,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){const t=typeof Array.from=="function"&&typeof window.fetch=="function"?Zf(document):Promise.resolve(!1);return Object.defineProperty(vA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){const t=zf();return Object.defineProperty(vA,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){const t=Jf();return Object.defineProperty(vA,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){const t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(vA,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){const t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(vA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}};class Ye{constructor(A,e){this.text=A,this.bounds=e}}const $f=(t,A,e,r)=>{const s=eh(A,e),n=[];let o=0;return s.forEach(a=>{if(e.textDecorationLine.length||a.trim().length>0)if(vA.SUPPORT_RANGE_BOUNDS){const c=Ei(r,o,a.length).getClientRects();if(c.length>1){const B=us(a);let d=0;B.forEach(g=>{n.push(new Ye(g,LA.fromDOMRectList(t,Ei(r,d+o,g.length).getClientRects()))),d+=g.length})}else n.push(new Ye(a,LA.fromDOMRectList(t,c)))}else{const c=r.splitText(a.length);n.push(new Ye(a,qf(t,r))),r=c}else vA.SUPPORT_RANGE_BOUNDS||(r=r.splitText(a.length));o+=a.length}),n},qf=(t,A)=>{const e=A.ownerDocument;if(e){const r=e.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));const s=A.parentNode;if(s){s.replaceChild(r,A);const n=Hr(t,r);return r.firstChild&&s.replaceChild(r.firstChild,r),n}}return LA.EMPTY},Ei=(t,A,e)=>{const r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");const s=r.createRange();return s.setStart(t,A),s.setEnd(t,A+e),s},us=t=>{if(vA.SUPPORT_NATIVE_TEXT_SEGMENTATION){const A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(t)).map(e=>e.segment)}return jf(t)},Ah=(t,A)=>{if(vA.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(t)).map(r=>r.segment)}return rh(t,A)},eh=(t,A)=>A.letterSpacing!==0?us(t):Ah(t,A),th=[32,160,4961,65792,65793,4153,4241],rh=(t,A)=>{const e=Cd(t,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[];let s;for(;!(s=e.next()).done;)if(s.value){const n=s.value.slice(),o=Sr(n);let a="";o.forEach(c=>{th.indexOf(c)===-1?a+=pA(c):(a.length&&r.push(a),r.push(pA(c)),a="")}),a.length&&r.push(a)}return r};class sh{constructor(A,e,r){this.text=nh(e.data,r.textTransform),this.textBounds=$f(A,this.text,r,e)}}const nh=(t,A)=>{switch(A){case 1:return t.toLowerCase();case 3:return t.replace(oh,ah);case 2:return t.toUpperCase();default:return t}},oh=/(^|\s|:|-|\(|\))([a-z])/g,ah=(t,A,e)=>t.length>0?A+e.toUpperCase():t;class vi extends Be{constructor(A,e){super(A,e),this.src=e.currentSrc||e.src,this.intrinsicWidth=e.naturalWidth,this.intrinsicHeight=e.naturalHeight,this.context.cache.addImage(this.src)}}class Ii extends Be{constructor(A,e){super(A,e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}}class Hi extends Be{constructor(A,e){super(A,e);const r=new XMLSerializer,s=Hr(A,e);e.setAttribute("width",`${s.width}px`),e.setAttribute("height",`${s.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(r.serializeToString(e))}`,this.intrinsicWidth=e.width.baseVal.value,this.intrinsicHeight=e.height.baseVal.value,this.context.cache.addImage(this.svg)}}class Si extends Be{constructor(A,e){super(A,e),this.value=e.value}}class jn extends Be{constructor(A,e){super(A,e),this.start=e.start,this.reversed=typeof e.reversed=="boolean"&&e.reversed===!0}}const ih=[{type:15,flags:0,unit:"px",number:3}],ch=[{type:16,flags:0,number:50}],lh=t=>t.width>t.height?new LA(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new LA(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t,dh=t=>{const A=t.type===gh?new Array(t.value.length+1).join("•"):t.value;return A.length===0?t.placeholder||"":A},Bh=t=>t.value.length===0&&!!t.placeholder,fs="checkbox",hs="radio",gh="password",Li=707406591,uh=1970632191;class tr extends Be{constructor(A,e){switch(super(A,e),this.type=e.type.toLowerCase(),this.checked=e.checked,this.value=dh(e),this.isPlaceholder=Bh(e),(this.type===fs||this.type===hs)&&(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=1,this.styles.backgroundClip=[0],this.styles.backgroundOrigin=[0],this.bounds=lh(this.bounds)),this.type){case fs:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=ih;break;case hs:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=ch;break}}}class Ti extends Be{constructor(A,e){super(A,e);const r=e.options[e.selectedIndex||0];this.value=r&&r.text||""}}class Oi extends Be{constructor(A,e){super(A,e),this.value=e.value}}class Ki extends Be{constructor(A,e,r){super(A,e),this.src=e.src,this.width=parseInt(e.width,10)||0,this.height=parseInt(e.height,10)||0,this.backgroundColor=this.styles.backgroundColor,this.parseTreeFn=r;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&this.parseTreeFn){this.tree=this.parseTreeFn(A,e.contentWindow.document.documentElement);const s=e.contentWindow.document.documentElement?gt(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):de.TRANSPARENT,n=e.contentWindow.document.body?gt(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):de.TRANSPARENT;this.backgroundColor=Te(s)?Te(n)?this.styles.backgroundColor:n:s}}catch{}}}const fh=["OL","UL","MENU"],ps=(t,A,e,r)=>{for(let s=A.firstChild,n;s;s=n)if(n=s.nextSibling,di(s)&&s.data.length>0)e.textNodes.push(new sh(t,s,e.styles));else if(Ce(s))if(rr(s)&&s.assignedNodes)s.assignedNodes().forEach(o=>ps(t,o,e,r));else{const o=Di(t,s);o.styles.isVisible()&&(hh(s,o,r)?o.flags|=4:ph(o.styles)&&(o.flags|=2),fh.indexOf(s.tagName)!==-1&&(o.flags|=8),e.elements.push(o),s.slot,s.shadowRoot?ps(t,s.shadowRoot,o,r):!ws(s)&&!ki(s)&&!ms(s)&&ps(t,s,o,r))}},Di=(t,A)=>Xn(A)?new vi(t,A):Gi(A)?new Ii(t,A):ki(A)?new Hi(t,A):ff(A)?new Si(t,A):hf(A)?new jn(t,A):wh(A)?new tr(t,A):ms(A)?new Ti(t,A):ws(A)?new Oi(t,A):Mi(A)?new Ki(t,A,Ri):new Be(t,A),Ri=(t,A)=>{const e=Di(t,A);return e.flags|=4,ps(t,A,e,e),e},hh=(t,A,e)=>A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Wn(t)&&e.styles.isTransparent(),ph=t=>t.isPositioned()||t.isFloating()?!0:iA(t.display,268435456)||iA(t.display,33554432)||iA(t.display,536870912)||iA(t.display,134217728),wh=t=>t.tagName==="INPUT",mh=t=>t.tagName==="HTML",ki=t=>t.tagName==="svg",Wn=t=>t.tagName==="BODY",Gi=t=>t.tagName==="CANVAS",Vi=t=>t.tagName==="VIDEO",Xn=t=>t.tagName==="IMG",Mi=t=>t.tagName==="IFRAME",zn=t=>t.tagName==="STYLE",Ni=t=>t.tagName==="SCRIPT",ws=t=>t.tagName==="TEXTAREA",ms=t=>t.tagName==="SELECT",rr=t=>t.tagName==="SLOT";class Ch{constructor(){this.counters={}}getCounterValue(A){const e=this.counters[A];return e&&e.length?e[e.length-1]:1}getCounterValues(A){const e=this.counters[A];return e||[]}pop(A){A.forEach(e=>this.counters[e].pop())}parse(A){const e=A.counterIncrement,r=A.counterReset;let s=!0;e!==null&&e.forEach(o=>{const a=this.counters[o.counter];a&&o.increment!==0&&(s=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=o.increment)});const n=[];return s&&r.forEach(o=>{let a=this.counters[o.counter];n.push(o.counter),a||(a=this.counters[o.counter]=[]),a.push(o.reset)}),n}}const _i={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Pi={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Qh={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},xh={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ht=(t,A,e,r,s,n)=>t<A||t>e?nr(t,s,n.length>0):r.integers.reduce((o,a,c)=>{for(;t>=a;)t-=a,o+=r.values[c];return o},"")+n,ji=(t,A,e,r)=>{let s="";do e||t--,s=r(t)+s,t/=A;while(t*A>=A);return s},wA=(t,A,e,r,s)=>{const n=e-A+1;return(t<0?"-":"")+(ji(Math.abs(t),n,r,o=>pA(Math.floor(o%n)+A))+s)},Ze=(t,A,e=". ")=>{const r=A.length;return ji(Math.abs(t),r,!1,s=>A[Math.floor(s%r)])+e},pt=1,De=2,Re=4,sr=8,Qe=(t,A,e,r,s,n)=>{if(t<-9999||t>9999)return nr(t,4,s.length>0);let o=Math.abs(t),a=s;if(o===0)return A[0]+a;for(let c=0;o>0&&c<=4;c++){const B=o%10;B===0&&iA(n,pt)&&a!==""?a=A[B]+a:B>1||B===1&&c===0||B===1&&c===1&&iA(n,De)||B===1&&c===1&&iA(n,Re)&&t>100||B===1&&c>1&&iA(n,sr)?a=A[B]+(c>0?e[c-1]:"")+a:B===1&&c>0&&(a=e[c-1]+a),o=Math.floor(o/10)}return(t<0?r:"")+a},Wi="十百千萬",Xi="拾佰仟萬",zi="マイナス",Jn="마이너스",nr=(t,A,e)=>{const r=e?". ":"",s=e?"、":"",n=e?", ":"",o=e?" ":"";switch(A){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:const a=wA(t,48,57,!0,r);return a.length<4?`0${a}`:a;case 4:return Ze(t,"〇一二三四五六七八九",s);case 6:return ht(t,1,3999,_i,3,r).toLowerCase();case 7:return ht(t,1,3999,_i,3,r);case 8:return wA(t,945,969,!1,r);case 9:return wA(t,97,122,!1,r);case 10:return wA(t,65,90,!1,r);case 11:return wA(t,1632,1641,!0,r);case 12:case 49:return ht(t,1,9999,Pi,3,r);case 35:return ht(t,1,9999,Pi,3,r).toLowerCase();case 13:return wA(t,2534,2543,!0,r);case 14:case 30:return wA(t,6112,6121,!0,r);case 15:return Ze(t,"子丑寅卯辰巳午未申酉戌亥",s);case 16:return Ze(t,"甲乙丙丁戊己庚辛壬癸",s);case 17:case 48:return Qe(t,"零一二三四五六七八九",Wi,"負",s,De|Re|sr);case 47:return Qe(t,"零壹貳參肆伍陸柒捌玖",Xi,"負",s,pt|De|Re|sr);case 42:return Qe(t,"零一二三四五六七八九",Wi,"负",s,De|Re|sr);case 41:return Qe(t,"零壹贰叁肆伍陆柒捌玖",Xi,"负",s,pt|De|Re|sr);case 26:return Qe(t,"〇一二三四五六七八九","十百千万",zi,s,0);case 25:return Qe(t,"零壱弐参四伍六七八九","拾百千万",zi,s,pt|De|Re);case 31:return Qe(t,"영일이삼사오육칠팔구","십백천만",Jn,n,pt|De|Re);case 33:return Qe(t,"零一二三四五六七八九","十百千萬",Jn,n,0);case 32:return Qe(t,"零壹貳參四五六七八九","拾百千",Jn,n,pt|De|Re);case 18:return wA(t,2406,2415,!0,r);case 20:return ht(t,1,19999,xh,3,r);case 21:return wA(t,2790,2799,!0,r);case 22:return wA(t,2662,2671,!0,r);case 52:return ht(t,1,10999,Qh,3,r);case 23:return Ze(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ze(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return wA(t,3302,3311,!0,r);case 28:return Ze(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",s);case 29:return Ze(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",s);case 34:return wA(t,3792,3801,!0,r);case 37:return wA(t,6160,6169,!0,r);case 38:return wA(t,4160,4169,!0,r);case 39:return wA(t,2918,2927,!0,r);case 40:return wA(t,1776,1785,!0,r);case 43:return wA(t,3046,3055,!0,r);case 44:return wA(t,3174,3183,!0,r);case 45:return wA(t,3664,3673,!0,r);case 46:return wA(t,3872,3881,!0,r);default:return wA(t,48,57,!0,r)}},Yn="data-html2canvas-ignore",Uh=t=>{let A=t;for(;A;){if(A.parentNode&&A.parentNode.host)return A.parentNode;const e=A.getRootNode();if(e&&e!==A.ownerDocument&&e.host)return e;A=A.parentNode}return null};class Ji{constructor(A,e,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new Ch,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){const s=Uh(e);s&&(this.options.iframeContainer=s)}this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}toIFrame(A,e){const r=Fh(A,e,this.options.iframeContainer);if(!r.contentWindow)throw new Error("Unable to find iframe window");const s=A.defaultView.pageXOffset,n=A.defaultView.pageYOffset,o=r.contentWindow,a=o.document,c=Eh(r).then(async()=>{this.scrolledElements.forEach(Sh),o&&(o.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==e.top||o.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0)));const u=this.options.onclone,f=this.clonedReferenceElement;if(typeof f>"u")throw new Error(`Error finding the ${this.referenceElement.nodeName} in the cloned document`);return a.fonts&&a.fonts.ready&&await a.fonts.ready,/(AppleWebKit)/g.test(navigator.userAgent)&&await bh(a),typeof u=="function"?Promise.resolve().then(()=>u(a,f)).then(()=>r):r}),B=a.baseURI;a.open();const d=Ih(document.doctype)+"<html></html>";try{const u=this.referenceElement.ownerDocument?.defaultView,f=u&&u.trustedTypes;let w=f?.getPolicy?.("html2canvas-pro");!w&&f&&(w=f.createPolicy("html2canvas-pro",{createHTML:m=>m})),w?a.write(w.createHTML(d)):a.write(d)}catch{a.write(d)}Hh(this.referenceElement.ownerDocument,s,n),a.close();const g=a.adoptNode(this.documentElement);return Dh(g,B),a.replaceChild(g,a.documentElement),c}createElementClone(A){if(On(A,2))debugger;if(Gi(A))return this.createCanvasClone(A);if(Vi(A))return this.createVideoClone(A);if(zn(A))return this.createStyleClone(A);const e=A.cloneNode(!1);return Xn(e)&&(Xn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Bi(e)&&!ft(e)?this.createCustomElementClone(e):e}createCustomElementClone(A){const e=document.createElement("div");if(e.className=A.className,Zn(A.style,e),A.shadowRoot)try{e.attachShadow({mode:"open"})}catch(r){this.context.logger.error("Failed to attach shadow root to custom element clone:",r)}return e}createStyleClone(A){try{const r=A.sheet;if(r&&r.cssRules){const s=[].slice.call(r.cssRules,0).reduce((o,a)=>a&&typeof a.cssText=="string"?o+a.cssText:o,""),n=A.cloneNode(!1);return n.textContent=s,this.options.cspNonce&&(n.nonce=this.options.cspNonce),n}}catch(r){if(this.context.logger.error("Unable to access cssRules property",r),r.name!=="SecurityError")throw r}const e=A.cloneNode(!1);return this.options.cspNonce&&(e.nonce=this.options.cspNonce),e}createCanvasClone(A){if(this.options.inlineImages&&A.ownerDocument){const r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}const e=A.cloneNode(!1);try{e.width=A.width,e.height=A.height;const r=A.getContext("2d"),s=e.getContext("2d",{willReadFrequently:!0});if(s)if(!this.options.allowTaint&&r)s.putImageData(r.getImageData(0,0,A.width,A.height),0,0);else{const n=A.getContext("webgl2")??A.getContext("webgl");n&&n.getContextAttributes()?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A),s.drawImage(A,0,0)}return e}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return e}createVideoClone(A){const e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;const r=e.getContext("2d");try{return r&&(r.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||r.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}const s=A.ownerDocument.createElement("canvas");return s.width=A.offsetWidth,s.height=A.offsetHeight,s}appendChildNode(A,e,r){(!Ce(e)||!Ni(e)&&!e.hasAttribute(Yn)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!Ce(e)||!zn(e))&&A.appendChild(this.cloneNode(e,r))}shouldCloneChild(A){return!Ce(A)||!Ni(A)&&!A.hasAttribute(Yn)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A))}shouldCloneStyleElement(A){return!this.options.copyStyles||!Ce(A)||!zn(A)}safeAppendClonedChild(A,e,r){this.shouldCloneChild(e)&&this.shouldCloneStyleElement(e)&&A.appendChild(this.cloneNode(e,r))}cloneAssignedNodes(A,e,r){A.forEach(s=>{this.safeAppendClonedChild(e,s,r)})}cloneSlotFallbackContent(A,e,r){for(let s=A.firstChild;s;s=s.nextSibling)this.safeAppendClonedChild(e,s,r)}cloneSlotElement(A,e,r){if(!rr(A))return;const s=A;if(typeof s.assignedNodes!="function"){this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",A),this.cloneSlotFallbackContent(A,e,r);return}const n=s.assignedNodes();if(!n||!Array.isArray(n)){this.context.logger.warn("assignedNodes() did not return a valid array",A),this.cloneSlotFallbackContent(A,e,r);return}n.length>0?this.cloneAssignedNodes(n,e,r):this.cloneSlotFallbackContent(A,e,r)}cloneShadowDOMChildren(A,e,r){for(let s=A.firstChild;s;s=s.nextSibling)Ce(s)&&rr(s)?this.cloneSlotElement(s,e,r):this.safeAppendClonedChild(e,s,r)}cloneLightDOMChildren(A,e,r){for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,r)}cloneSlotElementAsLightDOM(A,e,r){if(!rr(A))return;const s=A;if(typeof s.assignedNodes!="function"){for(let o=A.firstChild;o;o=o.nextSibling)this.appendChildNode(e,o,r);return}const n=s.assignedNodes();if(n&&Array.isArray(n)&&n.length>0)n.forEach(o=>this.appendChildNode(e,o,r));else for(let o=A.firstChild;o;o=o.nextSibling)this.appendChildNode(e,o,r)}cloneShadowDOMAsLightDOM(A,e,r){for(let s=A.firstChild;s;s=s.nextSibling)Ce(s)&&rr(s)?this.cloneSlotElementAsLightDOM(s,e,r):this.appendChildNode(e,s,r)}cloneChildNodes(A,e,r){A.shadowRoot&&e.shadowRoot?(this.cloneShadowDOMChildren(A.shadowRoot,e.shadowRoot,r),this.cloneLightDOMChildren(A,e,r)):A.shadowRoot&&!e.shadowRoot?this.cloneShadowDOMAsLightDOM(A.shadowRoot,e,r):this.cloneLightDOMChildren(A,e,r)}cloneNode(A,e){if(di(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);const r=A.ownerDocument.defaultView;if(r&&Ce(A)&&(Ar(A)||ft(A))){const s=this.createElementClone(A);s.style.transitionProperty="none";const n=r.getComputedStyle(A),o=r.getComputedStyle(A,":before"),a=r.getComputedStyle(A,":after");this.referenceElement===A&&Ar(s)&&(this.clonedReferenceElement=s),Wn(s)&&Oh(s,this.options.cspNonce);const c=this.counters.parse(new li(this.context,n)),B=this.resolvePseudoContent(A,s,o,or.BEFORE);Bi(A)&&(e=!0),Vi(A)||this.cloneChildNodes(A,s,e),B&&s.insertBefore(B,s.firstChild);const d=this.resolvePseudoContent(A,s,a,or.AFTER);return d&&s.appendChild(d),this.counters.pop(c),(n&&(this.options.copyStyles||ft(A))&&!Mi(A)||e)&&Zn(n,s),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([s,A.scrollLeft,A.scrollTop]),(ws(A)||ms(A))&&(ws(s)||ms(s))&&(s.value=A.value),s}return A.cloneNode(!1)}resolvePseudoContent(A,e,r,s){if(!r)return;const n=r.content,o=e.ownerDocument;if(!o||!n||n==="none"||n==="-moz-alt-content"||r.display==="none")return;this.counters.parse(new li(this.context,r));const a=new uf(this.context,r),c=o.createElement("html2canvaspseudoelement");Zn(r,c),a.content.forEach(d=>{if(d.type===0)c.appendChild(o.createTextNode(d.value));else if(d.type===22){const g=o.createElement("img");g.src=d.value,g.style.opacity="1",c.appendChild(g)}else if(d.type===18){if(d.name==="attr"){const g=d.values.filter(V);g.length&&c.appendChild(o.createTextNode(A.getAttribute(g[0].value)||""))}else if(d.name==="counter"){const[g,u]=d.values.filter(EA);if(g&&V(g)){const f=this.counters.getCounterValue(g.value),w=u&&V(u)?Tn.parse(this.context,u.value):3;c.appendChild(o.createTextNode(nr(f,w,!1)))}}else if(d.name==="counters"){const[g,u,f]=d.values.filter(EA);if(g&&V(g)){const w=this.counters.getCounterValues(g.value),m=f&&V(f)?Tn.parse(this.context,f.value):3,F=u&&u.type===0?u.value:"",y=w.map(C=>nr(C,m,!1)).join(F);c.appendChild(o.createTextNode(y))}}}else if(d.type===20)switch(d.value){case"open-quote":c.appendChild(o.createTextNode(ci(a.quotes,this.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(ci(a.quotes,--this.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(d.value))}}),c.className=`${$n} ${qn}`;const B=s===or.BEFORE?` ${$n}`:` ${qn}`;return ft(e)?e.className.baseValue+=B:e.className+=B,c}static destroy(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1}}var or;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(or||(or={}));const Fh=(t,A,e)=>{const r=t.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=A.width.toString(),r.height=A.height.toString(),r.scrolling="no",r.setAttribute(Yn,"true"),(e||t.body).appendChild(r),r},yh=t=>new Promise(A=>{if(t.complete){A();return}if(!t.src){A();return}t.onload=A,t.onerror=A}),bh=t=>Promise.all([].slice.call(t.images,0).map(yh)),Eh=t=>new Promise((A,e)=>{const r=t.contentWindow;if(!r)return e("No window assigned for iframe");const s=r.document;r.onload=t.onload=()=>{r.onload=t.onload=null;const n=setInterval(()=>{s.body.childNodes.length>0&&s.readyState==="complete"&&(clearInterval(n),A(t))},50)}}),vh=["all","d","content"],Zn=(t,A)=>{for(let e=t.length-1;e>=0;e--){const r=t.item(e);vh.indexOf(r)===-1&&!r.startsWith("--")&&A.style.setProperty(r,t.getPropertyValue(r))}return A},Ih=t=>{let A="";return t&&(A+="<!DOCTYPE ",t.name&&(A+=t.name),t.internalSubset&&(A+=" "+t.internalSubset.replace(/"/g,""").replace(/>/g,">")),t.publicId?(A+=' PUBLIC "'+t.publicId.replace(/"/g,""")+'"',t.systemId&&(A+=' "'+t.systemId.replace(/"/g,""")+'"')):t.systemId&&(A+=' SYSTEM "'+t.systemId.replace(/"/g,""")+'"'),A+=">"),A},Hh=(t,A,e)=>{t&&t.defaultView&&(A!==t.defaultView.pageXOffset||e!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(A,e)},Sh=([t,A,e])=>{t.scrollLeft=A,t.scrollTop=e},Lh=":before",Th=":after",$n="___html2canvas___pseudoelement_before",qn="___html2canvas___pseudoelement_after",Yi=`{
|
|
8
|
-
content: "" !important;
|
|
9
|
-
display: none !important;
|
|
10
|
-
}`,Oh=(t,A)=>{Kh(t,`.${$n}${Lh}${Yi}
|
|
11
|
-
.${qn}${Th}${Yi}`,A)},Kh=(t,A,e)=>{const r=t.ownerDocument;if(r){const s=r.createElement("style");s.textContent=A,e&&(s.nonce=e),t.appendChild(s)}},Dh=(t,A)=>{const e=t.ownerDocument.createElement("base");e.href=A;const r=t.getElementsByTagName("head").item(0);r?.insertBefore(e,r?.firstChild??null)};class v{constructor(A,e){this.type=0,this.x=A,this.y=e}add(A,e){return new v(this.x+A,this.y+e)}}const wt=(t,A,e)=>new v(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e);class xe{constructor(A,e,r,s){this.type=1,this.start=A,this.startControl=e,this.endControl=r,this.end=s}subdivide(A,e){const r=wt(this.start,this.startControl,A),s=wt(this.startControl,this.endControl,A),n=wt(this.endControl,this.end,A),o=wt(r,s,A),a=wt(s,n,A),c=wt(o,a,A);return e?new xe(this.start,r,o,c):new xe(c,a,n,this.end)}add(A,e){return new xe(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))}reverse(){return new xe(this.end,this.endControl,this.startControl,this.start)}}const VA=t=>t.type===1;class Rh{constructor(A){const e=A.styles,r=A.bounds;let[s,n]=Zt(e.borderTopLeftRadius,r.width,r.height),[o,a]=Zt(e.borderTopRightRadius,r.width,r.height),[c,B]=Zt(e.borderBottomRightRadius,r.width,r.height),[d,g]=Zt(e.borderBottomLeftRadius,r.width,r.height);const u=[];u.push((s+o)/r.width),u.push((d+c)/r.width),u.push((n+g)/r.height),u.push((a+B)/r.height);const f=Math.max(...u);f>1&&(s/=f,n/=f,o/=f,a/=f,c/=f,B/=f,d/=f,g/=f);const w=r.width-o,m=r.height-B,F=r.width-c,y=r.height-g,C=e.borderTopWidth,L=e.borderRightWidth,I=e.borderBottomWidth,E=e.borderLeftWidth,O=G(e.paddingTop,A.bounds.width),N=G(e.paddingRight,A.bounds.width),W=G(e.paddingBottom,A.bounds.width),R=G(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=s>0||n>0?nA(r.left+E/3,r.top+C/3,s-E/3,n-C/3,Z.TOP_LEFT):new v(r.left+E/3,r.top+C/3),this.topRightBorderDoubleOuterBox=s>0||n>0?nA(r.left+w,r.top+C/3,o-L/3,a-C/3,Z.TOP_RIGHT):new v(r.left+r.width-L/3,r.top+C/3),this.bottomRightBorderDoubleOuterBox=c>0||B>0?nA(r.left+F,r.top+m,c-L/3,B-I/3,Z.BOTTOM_RIGHT):new v(r.left+r.width-L/3,r.top+r.height-I/3),this.bottomLeftBorderDoubleOuterBox=d>0||g>0?nA(r.left+E/3,r.top+y,d-E/3,g-I/3,Z.BOTTOM_LEFT):new v(r.left+E/3,r.top+r.height-I/3),this.topLeftBorderDoubleInnerBox=s>0||n>0?nA(r.left+E*2/3,r.top+C*2/3,s-E*2/3,n-C*2/3,Z.TOP_LEFT):new v(r.left+E*2/3,r.top+C*2/3),this.topRightBorderDoubleInnerBox=s>0||n>0?nA(r.left+w,r.top+C*2/3,o-L*2/3,a-C*2/3,Z.TOP_RIGHT):new v(r.left+r.width-L*2/3,r.top+C*2/3),this.bottomRightBorderDoubleInnerBox=c>0||B>0?nA(r.left+F,r.top+m,c-L*2/3,B-I*2/3,Z.BOTTOM_RIGHT):new v(r.left+r.width-L*2/3,r.top+r.height-I*2/3),this.bottomLeftBorderDoubleInnerBox=d>0||g>0?nA(r.left+E*2/3,r.top+y,d-E*2/3,g-I*2/3,Z.BOTTOM_LEFT):new v(r.left+E*2/3,r.top+r.height-I*2/3),this.topLeftBorderStroke=s>0||n>0?nA(r.left+E/2,r.top+C/2,s-E/2,n-C/2,Z.TOP_LEFT):new v(r.left+E/2,r.top+C/2),this.topRightBorderStroke=s>0||n>0?nA(r.left+w,r.top+C/2,o-L/2,a-C/2,Z.TOP_RIGHT):new v(r.left+r.width-L/2,r.top+C/2),this.bottomRightBorderStroke=c>0||B>0?nA(r.left+F,r.top+m,c-L/2,B-I/2,Z.BOTTOM_RIGHT):new v(r.left+r.width-L/2,r.top+r.height-I/2),this.bottomLeftBorderStroke=d>0||g>0?nA(r.left+E/2,r.top+y,d-E/2,g-I/2,Z.BOTTOM_LEFT):new v(r.left+E/2,r.top+r.height-I/2),this.topLeftBorderBox=s>0||n>0?nA(r.left,r.top,s,n,Z.TOP_LEFT):new v(r.left,r.top),this.topRightBorderBox=o>0||a>0?nA(r.left+w,r.top,o,a,Z.TOP_RIGHT):new v(r.left+r.width,r.top),this.bottomRightBorderBox=c>0||B>0?nA(r.left+F,r.top+m,c,B,Z.BOTTOM_RIGHT):new v(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=d>0||g>0?nA(r.left,r.top+y,d,g,Z.BOTTOM_LEFT):new v(r.left,r.top+r.height),this.topLeftPaddingBox=s>0||n>0?nA(r.left+E,r.top+C,Math.max(0,s-E),Math.max(0,n-C),Z.TOP_LEFT):new v(r.left+E,r.top+C),this.topRightPaddingBox=o>0||a>0?nA(r.left+Math.min(w,r.width-L),r.top+C,w>r.width+L?0:Math.max(0,o-L),Math.max(0,a-C),Z.TOP_RIGHT):new v(r.left+r.width-L,r.top+C),this.bottomRightPaddingBox=c>0||B>0?nA(r.left+Math.min(F,r.width-E),r.top+Math.min(m,r.height-I),Math.max(0,c-L),Math.max(0,B-I),Z.BOTTOM_RIGHT):new v(r.left+r.width-L,r.top+r.height-I),this.bottomLeftPaddingBox=d>0||g>0?nA(r.left+E,r.top+Math.min(y,r.height-I),Math.max(0,d-E),Math.max(0,g-I),Z.BOTTOM_LEFT):new v(r.left+E,r.top+r.height-I),this.topLeftContentBox=s>0||n>0?nA(r.left+E+R,r.top+C+O,Math.max(0,s-(E+R)),Math.max(0,n-(C+O)),Z.TOP_LEFT):new v(r.left+E+R,r.top+C+O),this.topRightContentBox=o>0||a>0?nA(r.left+Math.min(w,r.width+E+R),r.top+C+O,w>r.width+E+R?0:o-E+R,a-(C+O),Z.TOP_RIGHT):new v(r.left+r.width-(L+N),r.top+C+O),this.bottomRightContentBox=c>0||B>0?nA(r.left+Math.min(F,r.width-(E+R)),r.top+Math.min(m,r.height+C+O),Math.max(0,c-(L+N)),B-(I+W),Z.BOTTOM_RIGHT):new v(r.left+r.width-(L+N),r.top+r.height-(I+W)),this.bottomLeftContentBox=d>0||g>0?nA(r.left+E+R,r.top+y,Math.max(0,d-(E+R)),g-(I+W),Z.BOTTOM_LEFT):new v(r.left+E+R,r.top+r.height-(I+W))}}var Z;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Z||(Z={}));const nA=(t,A,e,r,s)=>{const n=4*((Math.sqrt(2)-1)/3),o=e*n,a=r*n,c=t+e,B=A+r;switch(s){case Z.TOP_LEFT:return new xe(new v(t,B),new v(t,B-a),new v(c-o,A),new v(c,A));case Z.TOP_RIGHT:return new xe(new v(t,A),new v(t+o,A),new v(c,B-a),new v(c,B));case Z.BOTTOM_RIGHT:return new xe(new v(c,A),new v(c,A+a),new v(t+o,B),new v(t,B));case Z.BOTTOM_LEFT:default:return new xe(new v(c,B),new v(c-o,B),new v(t,A+a),new v(t,A))}},Cs=t=>[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox],kh=t=>[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox],Qs=t=>[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox];class Zi{constructor(A,e,r){this.offsetX=A,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}}class xs{constructor(A,e){this.path=A,this.target=e,this.type=1}}class Gh{constructor(A){this.opacity=A,this.type=2,this.target=6}}class ar{constructor(A){this.applyClip=A,this.type=3,this.target=6}}const Vh=t=>t.type===0,$i=t=>t.type===1,Mh=t=>t.type===2,Nh=t=>t.type===3,qi=(t,A)=>t.length===A.length?t.some((e,r)=>e===A[r]):!1,_h=(t,A,e,r,s)=>t.map((n,o)=>{switch(o){case 0:return n.add(A,e);case 1:return n.add(A+r,e);case 2:return n.add(A+r,e+s);case 3:return n.add(A,e+s)}return n});class Ac{constructor(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}class ec{constructor(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new Rh(this.container),this.container.styles.opacity<1&&this.effects.push(new Gh(this.container.styles.opacity)),this.container.styles.rotate!==null){const r=this.container.styles.transformOrigin,s=this.container.bounds.left+G(r[0],this.container.bounds.width),n=this.container.bounds.top+G(r[1],this.container.bounds.height),a=this.container.styles.rotate*Math.PI/180,c=Math.cos(a),B=Math.sin(a),d=[c,B,-B,c,0,0];this.effects.push(new Zi(s,n,d))}if(this.container.styles.transform!==null){const r=this.container.styles.transformOrigin,s=this.container.bounds.left+G(r[0],this.container.bounds.width),n=this.container.bounds.top+G(r[1],this.container.bounds.height),o=this.container.styles.transform;this.effects.push(new Zi(s,n,o))}if(this.container.styles.overflowX!==0){const r=Cs(this.curves),s=Qs(this.curves);qi(r,s)?this.effects.push(new xs(r,6)):(this.effects.push(new xs(r,2)),this.effects.push(new xs(s,4)))}if(this.container.styles.clipPath.type!==0){const r=Ph(this.container.styles.clipPath,this.container.bounds);r&&this.effects.push(r)}}getEffects(A){let e=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent;const s=this.effects.slice(0);for(;r;){const n=r.effects.filter(o=>!$i(o));if(e||r.container.styles.position!==0||!r.parent){if(e=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){const o=Cs(r.curves),a=Qs(r.curves);qi(o,a)||s.unshift(new xs(a,6))}s.unshift(...n)}else s.unshift(...n);r=r.parent}return s.filter(n=>iA(n.target,A))}}const tc=(t,A,e,r,s)=>t==="closest-side"?Math.min(A-e,r-A):t==="farthest-side"?Math.max(A-e,r-A):G(t,s),Ph=(t,A)=>{const{left:e,top:r,width:s,height:n}=A;switch(t.type){case 1:{const o=G(t.left,s),a=G(t.top,n),c=e+o,B=r+a,d=Math.max(0,s-o-G(t.right,s)),g=Math.max(0,n-a-G(t.bottom,n));return new ar(u=>{u.beginPath(),u.rect(c,B,d,g),u.clip()})}case 2:{const o=e+G(t.cx,s),a=r+G(t.cy,n);let c;return t.radius==="closest-side"?c=Math.min(o-e,a-r,e+s-o,r+n-a):t.radius==="farthest-side"?c=Math.max(o-e,a-r,e+s-o,r+n-a):c=G(t.radius,Math.sqrt(s*s+n*n)/Math.SQRT2),new ar(B=>{B.beginPath(),B.arc(o,a,Math.max(0,c),0,Math.PI*2),B.clip()})}case 3:{const o=e+G(t.cx,s),a=r+G(t.cy,n),c=tc(t.rx,o,e,e+s,s),B=tc(t.ry,a,r,r+n,n);return new ar(d=>{d.beginPath(),d.ellipse(o,a,Math.max(0,c),Math.max(0,B),0,0,Math.PI*2),d.clip()})}case 4:{const o=t.points.map(([a,c])=>[e+G(a,s),r+G(c,n)]);return new ar(a=>{if(a.beginPath(),o.length>0){a.moveTo(o[0][0],o[0][1]);for(let c=1;c<o.length;c++)a.lineTo(o[c][0],o[c][1]);a.closePath()}a.clip()})}case 5:{const{d:o}=t;return new ar(a=>{try{const c=a.getTransform();a.translate(e,r),a.clip(new Path2D(o)),a.setTransform(c)}catch{}})}case 0:return null;default:return null}},Ao=(t,A,e,r)=>{t.container.elements.forEach(s=>{const n=iA(s.flags,4),o=iA(s.flags,2),a=new ec(s,t);iA(s.styles.display,2048)&&r.push(a);const c=iA(s.flags,8)?[]:r;if(n||o){const B=n||s.styles.isPositioned()?e:A,d=new Ac(a);if(s.styles.isPositioned()||s.styles.opacity<1||s.styles.isTransformed()){const g=s.styles.zIndex.order;if(g<0){let u=0;B.negativeZIndex.some((f,w)=>g>f.element.container.styles.zIndex.order?(u=w,!1):u>0),B.negativeZIndex.splice(u,0,d)}else if(g>0){let u=0;B.positiveZIndex.some((f,w)=>g>=f.element.container.styles.zIndex.order?(u=w+1,!1):u>0),B.positiveZIndex.splice(u,0,d)}else B.zeroOrAutoZIndexOrTransformedOrOpacity.push(d)}else s.styles.isFloating()?B.nonPositionedFloats.push(d):B.nonPositionedInlineLevel.push(d);Ao(a,d,n?d:e,c)}else s.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Ao(a,A,e,c);iA(s.flags,8)&&rc(s,c)})},rc=(t,A)=>{let e=t instanceof jn?t.start:1;const r=t instanceof jn?t.reversed:!1;for(let s=0;s<A.length;s++){const n=A[s];n.container instanceof Si&&typeof n.container.value=="number"&&n.container.value!==0&&(e=n.container.value),n.listValue=nr(e,n.container.styles.listStyleType,!0),e+=r?-1:1}},jh=t=>{const A=new ec(t,null),e=new Ac(A),r=[];return Ao(A,e,e,r),rc(A.container,r),e},sc=t=>{const A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},ir=t=>{const A=t.styles,e=t.bounds,r=G(A.paddingLeft,e.width),s=G(A.paddingRight,e.width),n=G(A.paddingTop,e.width),o=G(A.paddingBottom,e.width);return e.add(r+A.borderLeftWidth,n+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+r+s),-(A.borderTopWidth+A.borderBottomWidth+n+o))},Wh=(t,A)=>t===0?A.bounds:t===2?ir(A):sc(A),Xh=(t,A)=>t===0?A.bounds:t===2?ir(A):sc(A),eo=(t,A,e)=>{const r=Wh(Ct(t.styles.backgroundOrigin,A),t),s=Xh(Ct(t.styles.backgroundClip,A),t),n=zh(Ct(t.styles.backgroundSize,A),e,r);let[o,a]=n;const c=Zt(Ct(t.styles.backgroundPosition,A),r.width-o,r.height-a),B=Jh(Ct(t.styles.backgroundRepeat,A),c,n,r,s),d=Math.round(r.left+c[0]),g=Math.round(r.top+c[1]);return o=Math.max(1,o),a=Math.max(1,a),[B,d,g,o,a]},mt=t=>V(t)&&t.value===ut.AUTO,Us=t=>typeof t=="number",zh=(t,[A,e,r],s)=>{const[n,o]=t;if(!n)return[0,0];if(q(n)&&o&&q(o))return[G(n,s.width),G(o,s.height)];const a=Us(r);if(V(n)&&(n.value===ut.CONTAIN||n.value===ut.COVER))return Us(r)?s.width/s.height<r!=(n.value===ut.COVER)?[s.width,s.width/r]:[s.height*r,s.height]:[s.width,s.height];const c=Us(A),B=Us(e),d=c||B;if(mt(n)&&(!o||mt(o))){if(c&&B)return[A,e];if(!a&&!d)return[s.width,s.height];if(d&&a){const m=c?A:e*r,F=B?e:A/r;return[m,F]}const f=c?A:s.width,w=B?e:s.height;return[f,w]}if(a){let f=0,w=0;return q(n)?f=G(n,s.width):q(o)&&(w=G(o,s.height)),mt(n)?f=w*r:(!o||mt(o))&&(w=f/r),[f,w]}let g=null,u=null;if(q(n)?g=G(n,s.width):o&&q(o)&&(u=G(o,s.height)),g!==null&&(!o||mt(o))&&(u=c&&B?g/A*e:s.height),u!==null&&mt(n)&&(g=c&&B?u/e*A:s.width),g!==null&&u!==null)return[g,u];throw new Error("Unable to calculate background-size for element")},Ct=(t,A)=>{const e=t[A];return typeof e>"u"?t[0]:e},Jh=(t,[A,e],[r,s],n,o)=>{switch(t){case 2:return[new v(Math.round(n.left),Math.round(n.top+e)),new v(Math.round(n.left+n.width),Math.round(n.top+e)),new v(Math.round(n.left+n.width),Math.round(s+n.top+e)),new v(Math.round(n.left),Math.round(s+n.top+e))];case 3:return[new v(Math.round(n.left+A),Math.round(n.top)),new v(Math.round(n.left+A+r),Math.round(n.top)),new v(Math.round(n.left+A+r),Math.round(n.height+n.top)),new v(Math.round(n.left+A),Math.round(n.height+n.top))];case 1:return[new v(Math.round(n.left+A),Math.round(n.top+e)),new v(Math.round(n.left+A+r),Math.round(n.top+e)),new v(Math.round(n.left+A+r),Math.round(n.top+e+s)),new v(Math.round(n.left+A),Math.round(n.top+e+s))];default:return[new v(Math.round(o.left),Math.round(o.top)),new v(Math.round(o.left+o.width),Math.round(o.top)),new v(Math.round(o.left+o.width),Math.round(o.height+o.top)),new v(Math.round(o.left),Math.round(o.height+o.top))]}},Yh="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",nc="Hidden Text";class Zh{constructor(A){this._data={},this._document=A}parseMetrics(A,e){const r=this._document.createElement("div"),s=this._document.createElement("img"),n=this._document.createElement("span"),o=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",o.appendChild(r),s.src=Yh,s.width=1,s.height=1,s.style.margin="0",s.style.padding="0",s.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(nc)),r.appendChild(n),r.appendChild(s);const a=s.offsetTop-n.offsetTop+2;r.removeChild(n),r.appendChild(this._document.createTextNode(nc)),r.style.lineHeight="normal",s.style.verticalAlign="super";const c=s.offsetTop-r.offsetTop+2;return o.removeChild(r),{baseline:a,middle:c}}getMetrics(A,e){const r=`${A} ${e}`;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,e)),this._data[r]}}class oc{constructor(A,e){this.context=A,this.options=e}}class $h{constructor(A){this.ctx=A.ctx,this.context=A.context,this.canvas=A.canvas}async renderBackgroundImage(A){let e=A.styles.backgroundImage.length-1;for(const r of A.styles.backgroundImage.slice(0).reverse())r.type===0?await this.renderBackgroundURLImage(A,r,e):Sg(r)?this.renderLinearGradient(A,r,e):Lg(r)&&this.renderRadialGradient(A,r,e),e--}async renderBackgroundURLImage(A,e,r){let s;const n=e.url;try{s=await this.context.cache.match(n)}catch{this.context.logger.error(`Error loading background-image ${n}`)}if(s){const o=isNaN(s.width)||s.width===0?1:s.width,a=isNaN(s.height)||s.height===0?1:s.height,[c,B,d,g,u]=eo(A,r,[o,a,o/a]),f=this.ctx.createPattern(this.resizeImage(s,g,u,A.styles.imageRendering),"repeat");this.renderRepeat(c,f,B,d)}}renderLinearGradient(A,e,r){const[s,n,o,a,c]=eo(A,r,[null,null,null]),[B,d,g,u,f]=bg(e.angle,a,c),m=(this.canvas.ownerDocument??document).createElement("canvas");m.width=a,m.height=c;const F=m.getContext("2d"),y=F.createLinearGradient(d,u,g,f);if(za(e.stops,B||1).forEach(C=>y.addColorStop(C.stop,rA(C.color))),F.fillStyle=y,F.fillRect(0,0,a,c),a>0&&c>0){const C=this.ctx.createPattern(m,"repeat");this.renderRepeat(s,C,n,o)}}renderRadialGradient(A,e,r){const[s,n,o,a,c]=eo(A,r,[null,null,null]),B=e.position.length===0?[Xe]:e.position,d=G(B[0],a),g=G(B[B.length-1],c);let[u,f]=Eg(e,d,g,a,c);if((u===0||f===0)&&(u=Math.max(u,.01),f=Math.max(f,.01)),u>0&&f>0){const w=this.ctx.createRadialGradient(n+d,o+g,0,n+d,o+g,u);if(za(e.stops,u*2).forEach(m=>w.addColorStop(m.stop,rA(m.color))),this.path(s),this.ctx.fillStyle=w,u!==f){const m=A.bounds.left+.5*A.bounds.width,F=A.bounds.top+.5*A.bounds.height,y=f/u,C=1/y;this.ctx.save(),this.ctx.translate(m,F),this.ctx.transform(1,0,0,y,0,0),this.ctx.translate(-m,-F),this.ctx.fillRect(n,C*(o-F)+F,a,c*C),this.ctx.restore()}else this.ctx.fill()}}renderRepeat(A,e,r,s){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(r,s),this.ctx.fill(),this.ctx.translate(-r,-s)}resizeImage(A,e,r,s){const o=(this.canvas.ownerDocument??document).createElement("canvas");o.width=Math.max(1,e),o.height=Math.max(1,r);const a=o.getContext("2d");return s===WA.PIXELATED||s===WA.CRISP_EDGES?(this.context.logger.debug("Disabling image smoothing for background image due to CSS image-rendering"),a.imageSmoothingEnabled=!1):s===WA.SMOOTH?(this.context.logger.debug("Enabling image smoothing for background image due to CSS image-rendering: smooth"),a.imageSmoothingEnabled=!0):a.imageSmoothingEnabled=this.ctx.imageSmoothingEnabled,this.ctx.imageSmoothingQuality&&(a.imageSmoothingQuality=this.ctx.imageSmoothingQuality),a.drawImage(A,0,0,A.width,A.height,0,0,e,r),o}path(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()}formatPath(A){A.forEach((e,r)=>{const s=VA(e)?e.start:e;r===0?this.ctx.moveTo(s.x,s.y):this.ctx.lineTo(s.x,s.y),VA(e)&&this.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})}}const ac=(t,A)=>{switch(A){case 0:return YA(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return YA(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return YA(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return YA(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},qh=(t,A)=>{switch(A){case 0:return YA(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return YA(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return YA(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return YA(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},Ap=(t,A)=>{switch(A){case 0:return YA(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return YA(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return YA(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return YA(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},ep=(t,A)=>{switch(A){case 0:return Fs(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fs(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fs(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return Fs(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Fs=(t,A)=>{const e=[];return VA(t)?e.push(t.subdivide(.5,!1)):e.push(t),VA(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},YA=(t,A,e,r)=>{const s=[];return VA(t)?s.push(t.subdivide(.5,!1)):s.push(t),VA(e)?s.push(e.subdivide(.5,!0)):s.push(e),VA(r)?s.push(r.subdivide(.5,!0).reverse()):s.push(r),VA(A)?s.push(A.subdivide(.5,!1).reverse()):s.push(A),s};class tp{constructor(A,e){this.ctx=A.ctx,this.pathCallbacks=e}async renderSolidBorder(A,e,r){this.pathCallbacks.path(ac(r,e)),this.ctx.fillStyle=rA(A),this.ctx.fill()}async renderDoubleBorder(A,e,r,s){if(e<3){await this.renderSolidBorder(A,r,s);return}const n=qh(s,r);this.pathCallbacks.path(n),this.ctx.fillStyle=rA(A),this.ctx.fill();const o=Ap(s,r);this.pathCallbacks.path(o),this.ctx.fill()}async renderDashedDottedBorder(A,e,r,s,n){this.ctx.save();const o=ep(s,r),a=ac(s,r);n===2&&(this.pathCallbacks.path(a),this.ctx.clip());let c,B,d,g;VA(a[0])?(c=a[0].start.x,B=a[0].start.y):(c=a[0].x,B=a[0].y),VA(a[1])?(d=a[1].end.x,g=a[1].end.y):(d=a[1].x,g=a[1].y);let u;r===0||r===2?u=Math.abs(c-d):u=Math.abs(B-g),this.ctx.beginPath(),n===3?this.pathCallbacks.formatPath(o):this.pathCallbacks.formatPath(a.slice(0,2));let f=e<3?e*3:e*2,w=e<3?e*2:e;n===3&&(f=e,w=e);let m=!0;if(u<=f*2)m=!1;else if(u<=f*2+w){const F=u/(2*f+w);f*=F,w*=F}else{const F=Math.floor((u+w)/(f+w)),y=(u-F*f)/(F-1),C=(u-(F+1)*f)/F;w=C<=0||Math.abs(w-y)<Math.abs(w-C)?y:C}if(m&&(n===3?this.ctx.setLineDash([0,f+w]):this.ctx.setLineDash([f,w])),n===3?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=e*2+1.1,this.ctx.strokeStyle=rA(A),this.ctx.stroke(),this.ctx.setLineDash([]),n===2){if(VA(a[0])){const F=a[3],y=a[0];this.ctx.beginPath(),this.pathCallbacks.formatPath([new v(F.end.x,F.end.y),new v(y.start.x,y.start.y)]),this.ctx.stroke()}if(VA(a[1])){const F=a[1],y=a[2];this.ctx.beginPath(),this.pathCallbacks.formatPath([new v(F.end.x,F.end.y),new v(y.start.x,y.start.y)]),this.ctx.stroke()}}this.ctx.restore()}}class rp{constructor(A,e){this.activeEffects=[],this.ctx=A.ctx,this.pathCallback=e}applyEffects(A){for(;this.activeEffects.length;)this.popEffect();A.forEach(e=>this.applyEffect(e))}applyEffect(A){this.ctx.save(),Mh(A)?this.ctx.globalAlpha=A.opacity:Vh(A)?(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)):$i(A)?(this.pathCallback.path(A.path),this.ctx.clip()):Nh(A)&&A.applyClip(this.ctx),this.activeEffects.push(A)}popEffect(){this.activeEffects.pop(),this.ctx.restore()}getActiveEffectCount(){return this.activeEffects.length}hasActiveEffects(){return this.activeEffects.length>0}}const sp=["-apple-system","system-ui"],np=/[\u2E80-\u2FFF\u3000-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF01-\uFFEF]/,op=t=>np.test(t),ap=()=>{if(typeof navigator>"u")return null;const t=navigator.userAgent,A=/iPhone|iPad|iPod/.test(t),e=/Macintosh/.test(t)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1;if(!A&&!e)return null;const r=[/(?:iPhone|CPU(?:\siPhone)?)\sOS\s(\d+)[\._](\d+)/,/Version\/(\d+)\.(\d+)/];for(const s of r){const n=t.match(s);if(n&&n[1])return parseInt(n[1],10)}return null},ip=t=>{const A=ap();return A!==null&&A>=15&&A<17?t.map(e=>sp.indexOf(e)!==-1?'-apple-system, "Helvetica Neue", Arial, sans-serif':e):t};class cp{constructor(A){this.ctx=A.ctx,this.options=A.options}iterateLettersWithLetterSpacing(A,e,r,s){const n=us(A.text),o=A.bounds.top+r;let a=A.bounds.left;for(const c of n){if(op(c)){const B=this.ctx.textBaseline;this.ctx.textBaseline="ideographic",s(c,a,o),this.ctx.textBaseline=B}else s(c,a,o);a+=this.ctx.measureText(c).width+e}}renderTextWithLetterSpacing(A,e,r){e===0?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+r):this.iterateLettersWithLetterSpacing(A,e,r,(s,n,o)=>{this.ctx.fillText(s,n,o)})}renderTextBoundWithPaintOrder(A,e,r){r.forEach(s=>{switch(s){case 0:this.ctx.fillStyle=rA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,e.fontSize.number);break;case 1:e.webkitTextStrokeWidth&&A.text.trim().length&&(this.ctx.strokeStyle=rA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=typeof window<"u"&&window.chrome?"miter":"round",e.letterSpacing===0?this.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(A,e.letterSpacing,e.fontSize.number,(n,o,a)=>this.ctx.strokeText(n,o,a)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter");break}})}renderTextDecoration(A,e){this.ctx.fillStyle=rA(e.textDecorationColor||e.color);let r=1;typeof e.textDecorationThickness=="number"?r=e.textDecorationThickness:e.textDecorationThickness==="from-font"&&(r=Math.max(1,Math.floor(e.fontSize.number*.05)));let s=0;typeof e.textUnderlineOffset=="number"&&(s=e.textUnderlineOffset);const n=e.textDecorationStyle;e.textDecorationLine.forEach(o=>{let a=0;switch(o){case 1:a=A.top+A.height-r+s;break;case 2:a=A.top;break;case 3:a=A.top+(A.height/2-r/2);break;default:return}this.drawDecorationLine(A.left,a,A.width,r,n)})}drawDecorationLine(A,e,r,s,n){switch(n){case 0:this.ctx.fillRect(A,e,r,s);break;case 1:const o=Math.max(1,s);this.ctx.fillRect(A,e,r,s),this.ctx.fillRect(A,e+s+o,r,s);break;case 2:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([s,s*2]),this.ctx.lineWidth=s,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(A,e+s/2),this.ctx.lineTo(A+r,e+s/2),this.ctx.stroke(),this.ctx.restore();break;case 3:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([s*3,s*2]),this.ctx.lineWidth=s,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(A,e+s/2),this.ctx.lineTo(A+r,e+s/2),this.ctx.stroke(),this.ctx.restore();break;case 4:this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=s,this.ctx.strokeStyle=this.ctx.fillStyle;const a=s*2,c=s*4;let B=A;for(this.ctx.moveTo(B,e+s/2);B<A+r;){const d=Math.min(B+c/2,A+r);if(this.ctx.quadraticCurveTo(B+c/4,e+s/2-a,d,e+s/2),B=d,B<A+r){const g=Math.min(B+c/2,A+r);this.ctx.quadraticCurveTo(B+c/4,e+s/2+a,g,e+s/2),B=g}}this.ctx.stroke(),this.ctx.restore();break;default:this.ctx.fillRect(A,e,r,s)}}truncateTextWithEllipsis(A,e,r){const n=this.ctx.measureText("…").width,o=us(A);if(r===0){const a=d=>this.ctx.measureText(o.slice(0,d).join("")).width+n<=e;let c=0,B=o.length;for(;c<B;){const d=c+B+1>>1;a(d)?c=d:B=d-1}return o.slice(0,c).join("")+"…"}else{let a=n;const c=[];for(const B of o){const d=this.ctx.measureText(B).width;if(a+d>e)break;c.push(B),a+=d+r}return c.join("")+"…"}}createFontStyle(A){const e=A.fontVariant.filter(n=>n==="normal"||n==="small-caps").join(""),r=ip(A.fontFamily).join(", "),s=ce(A.fontSize)?`${A.fontSize.number}${A.fontSize.unit}`:`${A.fontSize.number}px`;return[[A.fontStyle,e,A.fontWeight,s,r].join(" "),r,s]}async renderTextNode(A,e,r){const[s]=this.createFontStyle(e);this.ctx.font=s,this.ctx.direction=e.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";const n=e.paintOrder,o=e.fontSize.number*1.5;if(e.webkitLineClamp>0&&(e.display&2)!==0&&e.overflowY===1&&A.textBounds.length>0){const g=[];let u=[],f=A.textBounds[0].bounds.top;A.textBounds.forEach(m=>{Math.abs(m.bounds.top-f)>=o*.5?(u.length>0&&g.push(u),u=[m],f=m.bounds.top):u.push(m)}),u.length>0&&g.push(u);const w=e.webkitLineClamp;if(g.length>w){for(let F=0;F<w-1;F++)g[F].forEach(y=>{this.renderTextBoundWithPaintOrder(y,e,n)});const m=g[w-1];if(m&&m.length>0&&r){const F=m.map(E=>E.text).join(""),y=m[0],C=r.width-(y.bounds.left-r.left),L=this.truncateTextWithEllipsis(F,C,e.letterSpacing),I=new Ye(L,y.bounds);n.forEach(E=>{switch(E){case 0:this.ctx.fillStyle=rA(e.color),e.letterSpacing===0?this.ctx.fillText(L,y.bounds.left,y.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(I,e.letterSpacing,e.fontSize.number,(O,N,W)=>this.ctx.fillText(O,N,W));break;case 1:e.webkitTextStrokeWidth&&L.trim().length&&(this.ctx.strokeStyle=rA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=typeof window<"u"&&window.chrome?"miter":"round",e.letterSpacing===0?this.ctx.strokeText(L,y.bounds.left,y.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(I,e.letterSpacing,e.fontSize.number,(O,N,W)=>this.ctx.strokeText(O,N,W)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter");break}})}return}}const c=e.textOverflow===1&&r&&e.overflowX===1&&A.textBounds.length>0;let B=!1,d="";if(c){const g=A.textBounds[0].bounds.top;if(A.textBounds.every(f=>Math.abs(f.bounds.top-g)<o*.5)){let f=A.textBounds.map(F=>F.text).join("");f=f.replace(/\s+/g," ").trim();const w=this.ctx.measureText(f).width,m=r.width;w>m&&(B=!0,d=this.truncateTextWithEllipsis(f,m,e.letterSpacing))}}if(B){const g=A.textBounds[0],u=new Ye(d,g.bounds);n.forEach(f=>{switch(f){case 0:{this.ctx.fillStyle=rA(e.color),e.letterSpacing===0?this.ctx.fillText(d,g.bounds.left,g.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(u,e.letterSpacing,e.fontSize.number,(m,F,y)=>this.ctx.fillText(m,F,y));const w=e.textShadow;w.length&&d.trim().length&&(w.slice(0).reverse().forEach(m=>{this.ctx.shadowColor=rA(m.color),this.ctx.shadowOffsetX=m.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=m.offsetY.number*this.options.scale,this.ctx.shadowBlur=m.blur.number,e.letterSpacing===0?this.ctx.fillText(d,g.bounds.left,g.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(u,e.letterSpacing,e.fontSize.number,(F,y,C)=>this.ctx.fillText(F,y,C))}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0);break}case 1:e.webkitTextStrokeWidth&&d.trim().length&&(this.ctx.strokeStyle=rA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=typeof window<"u"&&window.chrome?"miter":"round",e.letterSpacing===0?this.ctx.strokeText(d,g.bounds.left,g.bounds.top+e.fontSize.number):this.iterateLettersWithLetterSpacing(u,e.letterSpacing,e.fontSize.number,(w,m,F)=>this.ctx.strokeText(w,m,F)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter");break}});return}A.textBounds.forEach(g=>{n.forEach(u=>{switch(u){case 0:{this.ctx.fillStyle=rA(e.color),this.renderTextWithLetterSpacing(g,e.letterSpacing,e.fontSize.number);const f=e.textShadow;f.length&&g.text.trim().length&&(f.slice(0).reverse().forEach(w=>{this.ctx.shadowColor=rA(w.color),this.ctx.shadowOffsetX=w.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=w.offsetY.number*this.options.scale,this.ctx.shadowBlur=w.blur.number,this.renderTextWithLetterSpacing(g,e.letterSpacing,e.fontSize.number)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0),e.textDecorationLine.length&&this.renderTextDecoration(g.bounds,e);break}case 1:{if(e.webkitTextStrokeWidth&&g.text.trim().length){this.ctx.strokeStyle=rA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=typeof window<"u"&&window.chrome?"miter":"round";const f=e.fontSize.number;e.letterSpacing===0?this.ctx.strokeText(g.text,g.bounds.left,g.bounds.top+f):this.iterateLettersWithLetterSpacing(g,e.letterSpacing,f,(w,m,F)=>this.ctx.strokeText(w,m,F)),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter"}break}}})})}}const lp=1e4;class to extends oc{constructor(A,e){super(A,e),this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),e.canvas||(this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`),this.fontMetrics=new Zh(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.ctx.textBaseline="bottom",e.imageSmoothing!==void 0&&(this.ctx.imageSmoothingEnabled=e.imageSmoothing),e.imageSmoothingQuality&&(this.ctx.imageSmoothingQuality=e.imageSmoothingQuality),this.backgroundRenderer=new $h({ctx:this.ctx,context:this.context,canvas:this.canvas,options:{width:e.width,height:e.height,scale:e.scale}}),this.borderRenderer=new tp({ctx:this.ctx},{path:r=>this.path(r),formatPath:r=>this.formatPath(r)}),this.effectsRenderer=new rp({ctx:this.ctx},{path:r=>this.path(r)}),this.textRenderer=new cp({ctx:this.ctx,context:this.context,options:{scale:e.scale}}),this.context.logger.debug(`Canvas renderer initialized (${e.width}x${e.height}) with scale ${e.scale}`)}async renderStack(A){A.element.container.styles.isVisible()&&await this.renderStackContent(A)}async renderNode(A){if(iA(A.container.flags,16))debugger;A.container.styles.isVisible()&&(await this.renderNodeBackgroundAndBorders(A),await this.renderNodeContent(A))}renderReplacedElement(A,e,r){const s=r.naturalWidth||A.intrinsicWidth,n=r.naturalHeight||A.intrinsicHeight;if(r&&s>0&&n>0){const o=ir(A),a=Qs(e);this.path(a),this.ctx.save(),this.ctx.clip();let c=0,B=0,d=s,g=n,u=o.left,f=o.top,w=o.width,m=o.height;const{objectFit:F}=A.styles,y=w/m,C=d/g;if(F===2)C>y?(m=w/C,f+=(o.height-m)/2):(w=m*C,u+=(o.width-w)/2);else if(F===4)C>y?(d=g*y,c+=(s-d)/2):(g=d/y,B+=(n-g)/2);else if(F===8)d>w?(c+=(d-w)/2,d=w):(u+=(w-d)/2,w=d),g>m?(B+=(g-m)/2,g=m):(f+=(m-g)/2,m=g);else if(F===16){const L=C>y?w:m*C,I=d>w?d:w;L<I?C>y?(m=w/C,f+=(o.height-m)/2):(w=m*C,u+=(o.width-w)/2):(d>w?(c+=(d-w)/2,d=w):(u+=(w-d)/2,w=d),g>m?(B+=(g-m)/2,g=m):(f+=(m-g)/2,m=g))}this.ctx.drawImage(r,c,B,d,g,u,f,w,m),this.ctx.restore()}}async renderNodeContent(A){this.effectsRenderer.applyEffects(A.getEffects(4));const e=A.container,r=A.curves,s=e.styles,n=ir(e);for(const o of e.textNodes)await this.textRenderer.renderTextNode(o,s,n);if(e instanceof vi)try{const o=await this.context.cache.match(e.src),a=this.ctx.imageSmoothingEnabled;s.imageRendering===WA.PIXELATED||s.imageRendering===WA.CRISP_EDGES?(this.context.logger.debug(`Disabling image smoothing for ${e.src} due to CSS image-rendering: ${s.imageRendering===WA.PIXELATED?"pixelated":"crisp-edges"}`),this.ctx.imageSmoothingEnabled=!1):s.imageRendering===WA.SMOOTH&&(this.context.logger.debug(`Enabling image smoothing for ${e.src} due to CSS image-rendering: smooth`),this.ctx.imageSmoothingEnabled=!0),this.renderReplacedElement(e,r,o),this.ctx.imageSmoothingEnabled=a}catch{this.context.logger.error(`Error loading image ${e.src}`)}if(e instanceof Ii&&this.renderReplacedElement(e,r,e.canvas),e instanceof Hi)try{const o=await this.context.cache.match(e.svg);this.renderReplacedElement(e,r,o)}catch{this.context.logger.error(`Error loading svg ${e.svg.substring(0,255)}`)}if(e instanceof Ki&&e.tree){const a=await new to(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree);e.width&&e.height&&this.ctx.drawImage(a,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height)}if(e instanceof tr){const o=Math.min(e.bounds.width,e.bounds.height);e.type===fs?e.checked&&(this.ctx.save(),this.path([new v(e.bounds.left+o*.39363,e.bounds.top+o*.79),new v(e.bounds.left+o*.16,e.bounds.top+o*.5549),new v(e.bounds.left+o*.27347,e.bounds.top+o*.44071),new v(e.bounds.left+o*.39694,e.bounds.top+o*.5649),new v(e.bounds.left+o*.72983,e.bounds.top+o*.23),new v(e.bounds.left+o*.84,e.bounds.top+o*.34085),new v(e.bounds.left+o*.39363,e.bounds.top+o*.79)]),this.ctx.fillStyle=rA(Li),this.ctx.fill(),this.ctx.restore()):e.type===hs&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+o/2,e.bounds.top+o/2,o/4,0,Math.PI*2,!0),this.ctx.fillStyle=rA(Li),this.ctx.fill(),this.ctx.restore())}if(dp(e)&&e.value.length){const[o,a,c]=this.textRenderer.createFontStyle(s),{baseline:B}=this.fontMetrics.getMetrics(a,c);this.ctx.font=o;const d=e instanceof tr&&e.isPlaceholder;this.ctx.fillStyle=rA(d?uh:s.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=gp(e.styles.textAlign);const g=ir(e);let u=0;switch(e.styles.textAlign){case 1:u+=g.width/2;break;case 2:u+=g.width;break}let f=0;if(e instanceof tr){const m=G(s.fontSize,0);f=(g.height-m)/2}const w=g.add(u,f,0,0);this.ctx.save(),this.path([new v(g.left,g.top),new v(g.left+g.width,g.top),new v(g.left+g.width,g.top+g.height),new v(g.left,g.top+g.height)]),this.ctx.clip(),this.textRenderer.renderTextWithLetterSpacing(new Ye(e.value,w),s.letterSpacing,B),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(iA(e.styles.display,2048)){if(e.styles.listStyleImage!==null){const o=e.styles.listStyleImage;if(o.type===0){let a;const c=o.url;try{a=await this.context.cache.match(c),this.ctx.drawImage(a,e.bounds.left-(a.width+10),e.bounds.top)}catch{this.context.logger.error(`Error loading list-style-image ${c}`)}}}else if(A.listValue&&e.styles.listStyleType!==-1){const[o]=this.textRenderer.createFontStyle(s);this.ctx.font=o,this.ctx.fillStyle=rA(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right";const a=new LA(e.bounds.left,e.bounds.top+G(e.styles.paddingTop,e.bounds.width),e.bounds.width,oi(s.lineHeight,s.fontSize.number)/2+1);this.textRenderer.renderTextWithLetterSpacing(new Ye(A.listValue,a),s.letterSpacing,oi(s.lineHeight,s.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}}}async renderStackContent(A){if(iA(A.element.container.flags,16))debugger;await this.renderNodeBackgroundAndBorders(A.element);for(const e of A.negativeZIndex)await this.renderStack(e);await this.renderNodeContent(A.element);for(const e of A.nonInlineLevel)await this.renderNode(e);for(const e of A.nonPositionedFloats)await this.renderStack(e);for(const e of A.nonPositionedInlineLevel)await this.renderStack(e);for(const e of A.inlineLevel)await this.renderNode(e);for(const e of A.zeroOrAutoZIndexOrTransformedOrOpacity)await this.renderStack(e);for(const e of A.positiveZIndex)await this.renderStack(e)}mask(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.options.width,0),this.ctx.lineTo(this.options.width,this.options.height),this.ctx.lineTo(0,this.options.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()}path(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()}formatPath(A){A.forEach((e,r)=>{const s=VA(e)?e.start:e;r===0?this.ctx.moveTo(s.x,s.y):this.ctx.lineTo(s.x,s.y),VA(e)&&this.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})}async renderNodeBackgroundAndBorders(A){this.effectsRenderer.applyEffects(A.getEffects(2));const e=A.container.styles,r=!Te(e.backgroundColor)||e.backgroundImage.length,s=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],n=Bp(Ct(e.backgroundClip,0),A.curves);(r||e.boxShadow.length)&&(this.ctx.save(),this.path(n),this.ctx.clip(),Te(e.backgroundColor)||(this.ctx.fillStyle=rA(e.backgroundColor),this.ctx.fill()),await this.backgroundRenderer.renderBackgroundImage(A.container),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(a=>{this.ctx.save();const c=Cs(A.curves),B=a.inset?0:lp,d=_h(c,-B+(a.inset?1:-1)*a.spread.number,(a.inset?1:-1)*a.spread.number,a.spread.number*(a.inset?-2:2),a.spread.number*(a.inset?-2:2));a.inset?(this.path(c),this.ctx.clip(),this.mask(d)):(this.mask(c),this.ctx.clip(),this.path(d)),this.ctx.shadowOffsetX=a.offsetX.number+B,this.ctx.shadowOffsetY=a.offsetY.number,this.ctx.shadowColor=rA(a.color),this.ctx.shadowBlur=a.blur.number,this.ctx.fillStyle=a.inset?rA(a.color):"rgba(0,0,0,1)",this.ctx.fill(),this.ctx.restore()}));let o=0;for(const a of s)a.style!==0&&!Te(a.color)&&a.width>0&&(a.style===2?await this.borderRenderer.renderDashedDottedBorder(a.color,a.width,o,A.curves,2):a.style===3?await this.borderRenderer.renderDashedDottedBorder(a.color,a.width,o,A.curves,3):a.style===4?await this.borderRenderer.renderDoubleBorder(a.color,a.width,o,A.curves):await this.borderRenderer.renderSolidBorder(a.color,o,A.curves)),o++}async render(A){this.options.backgroundColor&&(this.ctx.fillStyle=rA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height));const e=jh(A);return await this.renderStack(e),this.effectsRenderer.applyEffects([]),this.canvas}}const dp=t=>t instanceof Oi||t instanceof Ti?!0:t instanceof tr&&t.type!==hs&&t.type!==fs,Bp=(t,A)=>{switch(t){case 0:return Cs(A);case 2:return kh(A);default:return Qs(A)}},gp=t=>{switch(t){case 1:return"center";case 2:return"right";default:return"left"}};class up extends oc{constructor(A,e){super(A,e),this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`,this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (${e.width}x${e.height} at ${e.x},${e.y}) with scale ${e.scale}`)}async render(A){const e=Pn(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),r=await fp(e);return this.options.backgroundColor&&(this.ctx.fillStyle=rA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),this.canvas}}const fp=t=>new Promise((A,e)=>{const r=new Image;r.onload=()=>{A(r)},r.onerror=e,r.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(t))}`});class ic{constructor({id:A,enabled:e}){this.id=A,this.enabled=e,this.start=Date.now()}debug(...A){this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug(this.id,`${this.getTime()}ms`,...A):this.info(...A))}getTime(){return Date.now()-this.start}info(...A){this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info(this.id,`${this.getTime()}ms`,...A)}warn(...A){this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn(this.id,`${this.getTime()}ms`,...A):this.info(...A))}error(...A){this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error(this.id,`${this.getTime()}ms`,...A):this.info(...A))}}ic.instances={};class hp{constructor(A,e){if(this.context=A,this._options=e,this._cache=new Map,this._pendingOperations=new Map,this.maxSize=e.maxCacheSize??100,this.maxSize<1)throw new Error("Cache maxSize must be at least 1");this.maxSize>1e4&&this.context.logger.warn(`Cache maxSize ${this.maxSize} is very large and may cause memory issues. Consider using a smaller value (recommended: 100-1000).`)}addImage(A){const e=this._pendingOperations.get(A);if(e)return e;if(this.has(A)){const r=this._cache.get(A);return r&&(r.lastAccessed=Date.now()),Promise.resolve()}if(so(A)||Cp(A)){const r=this._addImageInternal(A);return this._pendingOperations.set(A,r),r.finally(()=>{this._pendingOperations.delete(A)}),r}return Promise.resolve()}async _addImageInternal(A){const e=this._options.imageTimeout??15e3,r=new Promise((n,o)=>{setTimeout(()=>{o(new Error(`Image load timeout after ${e}ms: ${A}`))},e)}),s=Promise.race([this.loadImage(A),r]);s.catch(n=>{this.context.logger.error(`Failed to load image ${A}: ${n instanceof Error?n.message:"Unknown error"}`)}),this.set(A,s)}match(A){const e=this._cache.get(A);if(e)return e.lastAccessed=Date.now(),e.value}set(A,e){if(this._cache.has(A)){const r=this._cache.get(A);r.value=e,r.lastAccessed=Date.now();return}this._cache.size>=this.maxSize&&this.evictLRU(),this._cache.set(A,{value:e,lastAccessed:Date.now()})}evictLRU(){let A=null,e=1/0;for(const[r,s]of this._cache.entries())s.lastAccessed<e&&(e=s.lastAccessed,A=r);A&&(this._cache.delete(A),this.context.logger.debug(`Cache: Evicted LRU entry: ${A}`))}size(){return this._cache.size}getMaxSize(){return this.maxSize}clear(){this._cache.clear()}async loadImage(A){const e=this.context.originChecker,r=c=>e.isSameOrigin(c),s=typeof this._options.customIsSameOrigin=="function"?await this._options.customIsSameOrigin(A,r):r(A),n=!ro(A)&&this._options.useCORS===!0&&vA.SUPPORT_CORS_IMAGES&&!s,o=!ro(A)&&!s&&!so(A)&&typeof this._options.proxy=="string"&&vA.SUPPORT_CORS_XHR&&!n;if(!s&&this._options.allowTaint===!1&&!ro(A)&&!so(A)&&!o&&!n)return;let a=A;return o&&(a=await this.proxy(a)),this.context.logger.debug(`Added image ${A.substring(0,256)}`),await new Promise((c,B)=>{const d=new Image;d.onload=()=>c(d),d.onerror=B,(Qp(a)||n)&&(d.crossOrigin="anonymous"),d.src=a,d.complete===!0&&setTimeout(()=>c(d),500),this._options.imageTimeout>0&&setTimeout(()=>B(`Timed out (${this._options.imageTimeout}ms) loading image`),this._options.imageTimeout)})}has(A){return this._cache.has(A)}keys(){return Promise.resolve(Object.keys(this._cache))}proxy(A){const e=this._options.proxy;if(!e)throw new Error("No proxy defined");const r=A.substring(0,256);return new Promise((s,n)=>{const o=vA.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=()=>{if(a.status===200)if(o==="text")s(a.response);else{const B=new FileReader;B.addEventListener("load",()=>s(B.result),!1),B.addEventListener("error",d=>n(d),!1),B.readAsDataURL(a.response)}else n(`Failed to proxy resource ${r} with status code ${a.status}`)},a.onerror=n;const c=e.indexOf("?")>-1?"&":"?";if(a.open("GET",`${e}${c}url=${encodeURIComponent(A)}&responseType=${o}`),o!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=o),this._options.imageTimeout){const B=this._options.imageTimeout;a.timeout=B,a.ontimeout=()=>n(`Timed out (${B}ms) proxying ${r}`)}a.send()})}}const pp=/^data:image\/svg\+xml/i,wp=/^data:image\/.*;base64,/i,mp=/^data:image\/.*/i,Cp=t=>vA.SUPPORT_SVG_DRAWING||!xp(t),ro=t=>mp.test(t),Qp=t=>wp.test(t),so=t=>t.substr(0,4)==="blob",xp=t=>t.substr(-3).toLowerCase()==="svg"||pp.test(t);class Up{constructor(A){if(!A||!A.document)throw new Error("Valid window object required for OriginChecker");if(!A.location||!A.location.href)throw new Error("Window object must have valid location");this.link=A.document.createElement("a"),this.origin=this.getOrigin(A.location.href)}getOrigin(A){return this.link.href=A,this.link.href=this.link.href,this.link.protocol+this.link.hostname+this.link.port}isSameOrigin(A){return this.getOrigin(A)===this.origin}getContextOrigin(){return this.origin}}class ys{constructor(A,e,r){this.windowBounds=e,this.instanceName=`#${ys.instanceCount++}`,this.config=r,this.logger=new ic({id:this.instanceName,enabled:A.logging}),this.originChecker=new Up(r.window),this.cache=A.cache??r.cache??new hp(this,A)}}ys.instanceCount=1;class cr{constructor(A={}){if(this.window=A.window||(typeof window<"u"?window:null),!this.window)throw new Error("Window object is required but not available");this.cspNonce=A.cspNonce,this.cache=A.cache}static fromElement(A,e={}){const r=A.ownerDocument;if(!r)throw new Error("Element is not attached to a document");const s=r.defaultView;if(!s)throw new Error("Document is not attached to a window");return new cr({window:s,...e})}clone(A={}){return new cr({window:A.window||this.window,cspNonce:A.cspNonce??this.cspNonce,cache:A.cache??this.cache})}}function Fp(t){console.warn("[html2canvas-pro] setDefaultConfig is deprecated. Pass configuration to html2canvas directly.")}class yp{constructor(A={}){this.config={maxImageTimeout:3e5,allowDataUrls:!0,...A}}validateUrl(A,e="general"){if(!A||typeof A!="string")return{valid:!1,error:"URL must be a non-empty string"};if(A.startsWith("data:"))return this.config.allowDataUrls?{valid:!0,sanitized:A}:{valid:!1,error:"Data URLs are not allowed"};if(A.startsWith("blob:"))return{valid:!0,sanitized:A};try{const r=new URL(A);if(!["http:","https:"].includes(r.protocol))return{valid:!1,error:`Protocol ${r.protocol} is not allowed. Only http and https are permitted.`};if(e==="proxy"&&this.config.allowedProxyDomains&&this.config.allowedProxyDomains.length>0){const s=r.hostname.toLowerCase();if(!this.config.allowedProxyDomains.some(o=>{const a=o.toLowerCase();return s===a||s.endsWith("."+a)}))return{valid:!1,error:`Proxy domain ${r.hostname} is not in the allowed list`}}if(e==="proxy"){if(!this.config.allowLocalhostProxy){const s=r.hostname.toLowerCase();if(s==="localhost"||s==="127.0.0.1"||s==="::1")return{valid:!1,error:"Localhost is not allowed for proxy URLs"};if(this.isPrivateIP(s))return{valid:!1,error:"Private IP addresses are not allowed for proxy URLs"};if(s.startsWith("169.254.")||s.startsWith("fe80:"))return{valid:!1,error:"Link-local addresses are not allowed for proxy URLs"}}return{valid:!0,sanitized:A,requiresRuntimeCheck:!0}}return{valid:!0,sanitized:A}}catch(r){return{valid:!1,error:`Invalid URL format: ${r instanceof Error?r.message:"Unknown error"}`}}}isPrivateIP(A){return[/^0\./,/^10\./,/^100\.(6[4-9]|[7-9][0-9]|1[0-1][0-9]|12[0-7])\./,/^127\./,/^169\.254\./,/^172\.(1[6-9]|2[0-9]|3[0-1])\./,/^192\.0\.0\./,/^192\.0\.2\./,/^192\.168\./,/^198\.(1[8-9])\./,/^198\.51\.100\./,/^203\.0\.113\./,/^2(2[4-9]|3[0-9])\./,/^24[0-9]\./,/^255\.255\.255\.255$/].some(r=>r.test(A))?!0:A.includes(":")?this.isPrivateIPv6(A):!1}isPrivateIPv6(A){const s=A.toLowerCase().trim().replace(/^\[|\]$/g,"").split("%")[0];if(/^(0:){7}1$/.test(s)||s==="::1"||/^(0:){7}0$/.test(s)||s==="::")return!0;const n=this.expandIPv6(s);if(!n)return this.isPrivateIPv6Prefix(s);const o=parseInt(n.substring(0,2),16);if(o>=252&&o<=253)return!0;if(o===254){const a=parseInt(n.substring(2,4),16);if(a>=128&&a<=191)return!0}return o===255}expandIPv6(A){try{if(A.includes("::")){const e=A.split("::");if(e.length>2)return null;const r=e[0]?e[0].split(":"):[],s=e[1]?e[1].split(":"):[],n=8-r.length-s.length;if(n<0)return null;const o=Array(n).fill("0000");return[...r,...o,...s].map(c=>c.padStart(4,"0")).join(":")}else{const e=A.split(":");return e.length!==8?null:e.map(r=>r.padStart(4,"0")).join(":")}}catch{return null}}isPrivateIPv6Prefix(A){return!!(/^fc[0-9a-f]{0,2}:?/i.test(A)||/^fd[0-9a-f]{0,2}:?/i.test(A)||/^fe[89ab][0-9a-f]:?/i.test(A)||/^ff[0-9a-f]{0,2}:?/i.test(A))}validateCspNonce(A){return!A||typeof A!="string"?{valid:!1,error:"CSP nonce must be a non-empty string"}:A.length<16?{valid:!1,error:"CSP nonce is too short (minimum 16 characters recommended)"}:/^[A-Za-z0-9+/=_-]+$/.test(A)?{valid:!0,sanitized:A}:{valid:!1,error:"CSP nonce contains invalid characters"}}validateImageTimeout(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Image timeout must be a number"}:A<0?{valid:!1,error:"Image timeout cannot be negative"}:this.config.maxImageTimeout&&A>this.config.maxImageTimeout?{valid:!1,error:`Image timeout ${A}ms exceeds maximum allowed ${this.config.maxImageTimeout}ms`}:{valid:!0,sanitized:A}}validateDimensions(A,e){if(typeof A!="number"||typeof e!="number")return{valid:!1,error:"Dimensions must be numbers"};if(isNaN(A)||isNaN(e))return{valid:!1,error:"Dimensions cannot be NaN"};if(A<=0||e<=0)return{valid:!1,error:"Dimensions must be positive"};const r=32767;return A>r||e>r?{valid:!1,error:`Dimensions exceed maximum allowed (${r}px)`}:{valid:!0,sanitized:{width:A,height:e}}}validateScale(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Scale must be a number"}:A<=0?{valid:!1,error:"Scale must be positive"}:A>10?{valid:!1,error:"Scale factor too large (maximum 10x)"}:{valid:!0,sanitized:A}}validateElement(A){return A?typeof A!="object"?{valid:!1,error:"Element must be an object"}:typeof HTMLElement<"u"&&A instanceof HTMLElement?A.ownerDocument?{valid:!0}:{valid:!1,error:"Element must be attached to a document"}:A.ownerDocument?A.ownerDocument.defaultView?{valid:!0}:{valid:!1,error:"Document must be attached to a window (ownerDocument.defaultView required)"}:{valid:!1,error:"Element must be attached to a document (ownerDocument required)"}:{valid:!1,error:"Element is required"}}validateOptions(A){const e=[],r=A.proxy;if(r!=null&&typeof r=="string"&&r.length>0){const s=this.validateUrl(r,"proxy");s.valid||e.push(`Proxy: ${s.error}`)}if(A.imageTimeout!==void 0){const s=this.validateImageTimeout(A.imageTimeout);s.valid||e.push(`Image timeout: ${s.error}`)}if(A.width!==void 0||A.height!==void 0){const s=A.width??800,n=A.height??600,o=this.validateDimensions(s,n);o.valid||e.push(`Dimensions: ${o.error}`)}if(A.scale!==void 0){const s=this.validateScale(A.scale);s.valid||e.push(`Scale: ${s.error}`)}if(A.cspNonce!==void 0){const s=this.validateCspNonce(A.cspNonce);s.valid||e.push(`CSP nonce: ${s.error}`)}if(this.config.customValidator){const s=this.config.customValidator(A,"options");s.valid||e.push(`Custom validation: ${s.error}`)}return e.length>0?{valid:!1,error:e.join("; ")}:{valid:!0}}}function bp(t={}){return new yp({allowDataUrls:!0,maxImageTimeout:3e5,...t})}class Ep{constructor(A,e=!0){this.context=A,this.activeMetrics=new Map,this.completedMetrics=[],this.enabled=e,this.getTime=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now()}start(A,e){this.enabled&&(this.activeMetrics.has(A)&&this.context?.logger.warn(`Performance metric '${A}' already started. Overwriting.`),this.activeMetrics.set(A,{name:A,startTime:this.getTime(),metadata:e}))}end(A){if(!this.enabled)return;const e=this.activeMetrics.get(A);if(!e){this.context?.logger.warn(`Performance metric '${A}' not found. Was start() called?`);return}return e.endTime=this.getTime(),e.duration=e.endTime-e.startTime,this.completedMetrics.push(e),this.activeMetrics.delete(A),this.context?.logger.debug(`⏱️ ${A}: ${e.duration.toFixed(2)}ms`,e.metadata),e}measure(A,e,r){this.start(A,r);try{const s=e();return this.end(A),s}catch(s){throw this.end(A),s}}async measureAsync(A,e,r){this.start(A,r);try{const s=await e();return this.end(A),s}catch(s){throw this.end(A),s}}getMetrics(){return[...this.completedMetrics]}getMetric(A){return this.completedMetrics.find(e=>e.name===A)}getSummary(){const A=this.completedMetrics.reduce((r,s)=>r+(s.duration||0),0),e=this.completedMetrics.map(r=>({name:r.name,duration:r.duration||0,percentage:A>0?((r.duration||0)/A*100).toFixed(1)+"%":"0%"}));return{totalDuration:A,metrics:this.getMetrics(),breakdown:e}}logSummary(){if(!this.enabled||this.completedMetrics.length===0||!this.context)return;const A=this.getSummary();this.context.logger.info(`
|
|
12
|
-
📊 Performance Summary (Total: ${A.totalDuration.toFixed(2)}ms):`),A.breakdown.sort((e,r)=>r.duration-e.duration).forEach(e=>{this.context.logger.info(` ${e.name.padEnd(20)} ${e.duration.toFixed(2).padStart(8)}ms ${e.percentage.padStart(6)}`)})}clear(){this.activeMetrics.clear(),this.completedMetrics.splice(0)}isEnabled(){return this.enabled}getActiveMetrics(){return Array.from(this.activeMetrics.keys())}}const no=(t,A={},e)=>{const r=e||cr.fromElement(t,{cspNonce:A.cspNonce,cache:A.cache});return Hp(t,A,r)},vp=t=>{console.warn('[html2canvas-pro] setCspNonce is deprecated. Pass cspNonce in options instead: html2canvas(element, { cspNonce: "..." })'),typeof window<"u"&&Fp(new cr({window,cspNonce:t}))};no.setCspNonce=vp;const Ip=t=>{["scale","width","height","imageTimeout","x","y","windowWidth","windowHeight","scrollX","scrollY"].forEach(e=>{const r=t[e];if(r!=null&&typeof r!="number"){const s=Number(r);Number.isNaN(s)||(t[e]=s)}})},Hp=async(t,A,e)=>{if(Ip(A),!A.skipValidation){const QA=A.validator||bp(),AA=QA.validateElement(t);if(!AA.valid)throw new Error(AA.error);const yA=QA.validateOptions(A);if(!yA.valid)throw new Error(`Invalid options: ${yA.error}`)}if(!t||typeof t!="object")throw new Error("Invalid element provided as first argument");const r=t.ownerDocument;if(!r)throw new Error("Element is not attached to a Document");const s=r.defaultView;if(!s)throw new Error("Document is not attached to a Window");const n={allowTaint:A.allowTaint??!1,imageTimeout:A.imageTimeout??15e3,proxy:A.proxy,useCORS:A.useCORS??!1,customIsSameOrigin:A.customIsSameOrigin},o={logging:A.logging??!0,cache:A.cache??e.cache,...n},a=800,c=600,B=0,d=s,g={windowWidth:A.windowWidth??d.innerWidth??a,windowHeight:A.windowHeight??d.innerHeight??c,scrollX:A.scrollX??d.pageXOffset??B,scrollY:A.scrollY??d.pageYOffset??B},u=new LA(g.scrollX,g.scrollY,g.windowWidth,g.windowHeight),f=new ys(o,u,e),w=A.enablePerformanceMonitoring??A.logging??!1,m=new Ep(f,w);m.start("total",{width:g.windowWidth,height:g.windowHeight});const F=A.foreignObjectRendering??!1,y={allowTaint:A.allowTaint??!1,onclone:A.onclone,ignoreElements:A.ignoreElements,iframeContainer:A.iframeContainer,inlineImages:F,copyStyles:F,cspNonce:A.cspNonce??e.cspNonce};f.logger.debug(`Starting document clone with size ${u.width}x${u.height} scrolled to ${-u.left},${-u.top}`),m.start("clone");const C=new Ji(f,t,y),L=C.clonedReferenceElement;if(!L)throw new Error("Unable to find element in cloned iframe");const I=await C.toIFrame(r,u);m.end("clone");const{width:E,height:O,left:N,top:W}=Wn(L)||mh(L)?Gl(L.ownerDocument):Hr(f,L),R=Sp(f,L,A.backgroundColor),cA={canvas:A.canvas,backgroundColor:R,scale:A.scale??s.devicePixelRatio??1,x:(A.x??0)+N,y:(A.y??0)+W,width:A.width??Math.ceil(E),height:A.height??Math.ceil(O),imageSmoothing:A.imageSmoothing,imageSmoothingQuality:A.imageSmoothingQuality};let FA,M;try{return F?(f.logger.debug("Document cloned, using foreign object rendering"),m.start("render-foreignobject"),FA=await new up(f,cA).render(L),m.end("render-foreignobject")):(f.logger.debug(`Document cloned, element located at ${N},${W} with size ${E}x${O} using computed rendering`),f.logger.debug("Starting DOM parsing"),m.start("parse"),M=Ri(f,L),m.end("parse"),R===M.styles.backgroundColor&&(M.styles.backgroundColor=de.TRANSPARENT),f.logger.debug(`Starting renderer for element at ${cA.x},${cA.y} with size ${cA.width}x${cA.height}`),m.start("render"),FA=await new to(f,cA).render(M),m.end("render")),m.start("cleanup"),(A.removeContainer??!0)&&(Ji.destroy(I)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),m.end("cleanup"),m.end("total"),f.logger.debug("Finished rendering"),w&&m.logSummary(),FA}finally{M&&M.restoreTree()}},Sp=(t,A,e)=>{const r=A.ownerDocument,s=r.documentElement?gt(t,getComputedStyle(r.documentElement).backgroundColor):de.TRANSPARENT,n=r.body?gt(t,getComputedStyle(r.body).backgroundColor):de.TRANSPARENT,o=typeof e=="string"?gt(t,e):e===null?de.TRANSPARENT:4294967295;return A===r.documentElement?Te(s)?Te(n)?o:n:s:o},lr=2147e6,cc=lr,$e=lr,Lp=lr-100,Tp=lr-50,Op=lr-150,se="data-vg-pin-id",Kp=()=>{const t=window.innerWidth;return t<768?"mobile":t<1024?"tablet":"desktop"},lc=(t,A)=>{if(!t)return"";try{const e=new Date(t);return isNaN(e.getTime())?"":new Intl.DateTimeFormat(A==="es"?"es-ES":"en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(e)}catch{return""}},dc=({url:t,className:A,style:e,tooltipStyle:r,onHover:s})=>{const n=Q.useRef(null),o=()=>{if(!n.current||!s)return;const B=n.current.getBoundingClientRect(),d=B.top,g=window.innerHeight-B.bottom,u=d<140&&g>d?"bottom":"top";s({url:t,x:B.left+B.width/2,y:u==="top"?B.top:B.bottom,direction:u})},a=B=>B.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),c=()=>{try{const B=a(window.location.pathname),d=new URL(t),g=a(d.pathname);return B===g||B.startsWith(g)||g.startsWith(B)}catch{return!1}};return i.jsxs("div",{ref:n,className:`vg-url-tag ${A||""}`,style:{...e,opacity:c()?1:.6,borderColor:c()?"var(--vg-primary)":"#e2e8f0"},onMouseEnter:o,onMouseMove:o,onMouseLeave:()=>s?.(null),children:[i.jsx(ve,{"data-vg-id":"353251b6","data-source-path":"/src/components/ViewGateOverlay.tsx:150",size:e?.fontSize?parseInt(e.fontSize)+1:10}),i.jsx("span",{"data-vg-id":"1b724dd0","data-source-path":"/src/components/ViewGateOverlay.tsx:151",style:{maxWidth:e?.maxWidth||"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:new URL(t).pathname})]})},dr=t=>{const A=[],e=[],r=[];let s=t,n=!1;for(;s&&s.nodeType===Node.ELEMENT_NODE;){const o=s.localName.toLowerCase();let a=1,c=s.previousElementSibling;for(;c;)c.localName.toLowerCase()===o&&a++,c=c.previousElementSibling;const B=o==="body"||o==="head"||o==="html"?o:`${o}:nth-of-type(${a})`;if(r.unshift(B),!n){const d=s.getAttribute("data-testid")||s.getAttribute("data-qa");if(d){const g=s.hasAttribute("data-testid")?"data-testid":"data-qa";e.push(`[${g}="${d}"]`)}s.id&&!s.id.startsWith("vg-")&&!s.id.includes(":")?(A.unshift(`#${s.id}`),n=!0):d?(A.unshift(`[${s.hasAttribute("data-testid")?"data-testid":"data-qa"}="${d}"]`),n=!0):A.unshift(B)}if(s=s.parentElement,o==="html")break}return{selector:A.join(" > "),fallbacks:e,vgPath:r.join(" > ")}},Bc=t=>{const{vgPath:A}=dr(t);return{vgPath:A,classHash:t.className,parentTag:t.parentElement?.tagName.toLowerCase(),neighborCount:t.parentElement?.children.length,ariaLabel:t.getAttribute("aria-label")||t.getAttribute("title")||void 0,role:t.getAttribute("role")||void 0,name:t.getAttribute("name")||void 0,type:t.getAttribute("type")||void 0,placeholder:t.getAttribute("placeholder")||void 0,testId:t.getAttribute("data-testid")||t.getAttribute("data-qa")||void 0,textSnippet:(t.innerText||"").slice(0,50).trim()}},gc=t=>{let A=t;for(;A;){const e=window.getComputedStyle(A),r=e.backgroundColor,s=e.backgroundImage;if(r&&r!=="rgba(0, 0, 0, 0)"&&r!=="transparent"||s&&s!=="none")return{backgroundColor:r,backgroundImage:s,background:e.background};A=A.parentElement}return{backgroundColor:"#ffffff",backgroundImage:"none",background:"#ffffff"}},uc=(t,A,e={})=>new Promise(r=>{const s=e.scale||3,n=e.padding||48,o=(A.width+n*2)*s,a=(A.height+n*2)*s,c=document.createElement("canvas");c.width=o,c.height=a;const B=c.getContext("2d");if(!B){r(t.toDataURL("image/webp",.95));return}B.imageSmoothingEnabled=!0,B.imageSmoothingQuality="high",B.fillStyle=e.backgroundColor||"#000000",B.fillRect(0,0,c.width,c.height);const d=Math.max(0,A.left*s),g=Math.max(0,A.top*s),u=Math.min(t.width-d,A.width*s),f=Math.min(t.height-g,A.height*s),w=n*s,m=n*s;B.drawImage(t,d,g,u,f,w,m,u,f),r(c.toDataURL("image/webp",.98))}),Dp=(()=>{let t=null,A=null;return e=>{if(!e||typeof window>"u"||typeof document>"u")return e;if(e.includes("oklch")||e.includes("oklab")||e.includes("lab(")||e.includes("lch(")||e.includes("color("))try{if(t||(t=document.createElement("canvas"),t.width=1,t.height=1),A||(A=t.getContext("2d",{willReadFrequently:!0})),A){A.fillStyle="#000000",A.fillStyle=e;const n=A.fillStyle;if(n&&!n.includes("oklch")&&!n.includes("oklab"))return n}const r=document.createElement("div");r.style.color=e,document.body.appendChild(r);const s=getComputedStyle(r).color;return document.body.removeChild(r),s&&!s.includes("oklch")?s:"rgb(0,0,0)"}catch{return"rgb(0,0,0)"}return e}})(),Rp=t=>{const A=window.getComputedStyle(t),e={};return["display","position","margin","padding","font-size","color","background-color","width","height","z-index"].forEach(s=>{const n=A.getPropertyValue(s);e[s]=Dp(n)}),e},kp=t=>{const e=Object.keys(t).find(n=>n.startsWith("__reactFiber$")||n.startsWith("__reactInternalInstance$"));if(!e)return"";const r=[];let s=t[e];for(;s;){const n=s.type;if(typeof n=="function"){const o=n.displayName||n.name;o&&!o.includes("ViewGate")&&!r.includes(o)&&r.unshift(o)}s=s.return}return r.join(" > ")||"Generic Component"},bs=t=>{if(!t||t.id==="viewgate-ui"||t.id==="viewgate-shadow-host"||t.closest("#viewgate-shadow-host"))return!1;if(t.getAttribute("role")==="dialog"||t.getAttribute("aria-modal")==="true"||t.classList.contains("modal")||t.classList.contains("modal-content"))return!0;const A=window.getComputedStyle(t),e=t.getBoundingClientRect(),r=t.getAttribute("role");if(r&&["listbox","menu","combobox","tooltip","option"].includes(r)||e.width<120&&e.height<120)return!1;const n=parseInt(A.zIndex)||0,o=A.position==="fixed"||A.position==="absolute",a=e.width>window.innerWidth*.4&&e.height>window.innerHeight*.4,c=Math.abs(e.left+e.width/2-window.innerWidth/2)<50,B=t.getAttribute("class")||"",d=B.toLowerCase().includes("modal")||B.toLowerCase().includes("dialog");return!!(o&&n>=100&&(a||c||d))},Es=t=>{let A=t;for(;A&&A!==document.body;){if(bs(A))return A;A=A.parentElement}return null},Ue=t=>{if(!t.isConnected)return!1;const A=window.getComputedStyle(t);if(A.display==="none"||A.visibility==="hidden"||A.opacity==="0")return t.tagName!=="BODY"&&t.tagName,!1;if(t.offsetWidth===0||t.offsetHeight===0)return!1;let e=t.parentElement;for(;e;){const s=window.getComputedStyle(e);if(s.display==="none"||s.visibility==="hidden"||s.opacity==="0")return!1;e=e.parentElement}const r=t.getBoundingClientRect();return!(r.width===0||r.height===0)},fc=(t,A=document)=>{const e=A.querySelector(t);if(e)return e;const r=A.querySelectorAll("*");for(const s of Array.from(r)){const n=s.shadowRoot;if(n){const o=fc(t,n);if(o)return o}}return null},hc=(t,A)=>{let e=document.elementFromPoint(t,A);for(;e&&e.shadowRoot;){const r=e.shadowRoot.elementFromPoint(t,A);if(!r||r===e)break;e=r}return e},Gp=t=>{if(!t.tag)return null;const A=Array.from(document.getElementsByTagName(t.tag));let e=null,r=0;for(const s of A){if(!Br(s,t))continue;let n=0;const o=s.getAttribute("placeholder"),a=t.attributes?.placeholder||t.fingerprint?.placeholder;a&&o===a&&(n+=6);const c=s.getAttribute("type"),B=t.attributes?.type||t.fingerprint?.type;if(B&&c===B&&(n+=2),s.innerText?.trim()===t.text.trim()&&(n+=5),t.fingerprint?.vgPath){const{vgPath:d}=dr(s);(d===t.vgPath||t.fingerprint?.vgPath===d)&&(n+=10)}n>r&&n>=7&&(r=n,e=s)}return e},Br=(t,A)=>{if(t.tagName.toLowerCase()!==A.tag.toLowerCase())return!1;const e=t.getAttribute("placeholder"),r=A.attributes?.placeholder||A.fingerprint?.placeholder;if(r&&e&&r!==e)return!1;const s=t.getAttribute("type"),n=A.attributes?.type||A.fingerprint?.type;return!(n&&s&&n!==s)},pc=(t,A)=>{if(A){const o=Array.from(document.querySelectorAll(`[${se}="${A}"]`));if(o.length>0){const a=o.filter(c=>Br(c,t));if(a.length===0)o.forEach(c=>c.removeAttribute(se));else{const c=a.find(d=>{const{vgPath:g}=dr(d);return g===t.vgPath||t.fingerprint?.vgPath===g}),B=c&&Ue(c)?c:a.find(d=>!(!Ue(d)||t.metadata?.isModal&&!d.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));return B?(o.forEach(d=>{d!==B&&d.removeAttribute(se)}),B):null}}}if(t.vgPath)try{const o=document.querySelector(t.vgPath);if(o&&Br(o,t)&&Ue(o)&&(!t.metadata?.isModal||Es(o)))return o}catch{}const r=(t.selector?Array.from(document.querySelectorAll(t.selector)):[]).filter(o=>Br(o,t));let s=r.find(o=>{const{vgPath:a}=dr(o);return a===t.vgPath||t.fingerprint?.vgPath===a})||r[0]||null;if(s&&Ue(s))if(t.metadata?.isModal&&!Es(s))s=null;else return s;if(t.fallbackSelectors)for(const o of t.fallbackSelectors){const a=fc(o);if(a&&Br(a,t)&&Ue(a)){if(t.metadata?.isModal&&!Es(a))continue;return a}}const n=Gp(t);return n&&Ue(n)?t.metadata?.isModal&&!Es(n)?null:n:null},oo=t=>({tag:t.tagName.toLowerCase(),text:(t.innerText||t.getAttribute("placeholder")||"").slice(0,50).trim(),role:t.getAttribute("role")||void 0,type:t.getAttribute("type")||void 0}),wc=t=>{if(!t)return"";let A=t.replace(/<path[^>]*d="([^"]{50,})"[^>]*\/?>/gi,(e,r)=>e.replace(r,`${r.substring(0,20)}...[STRIPPED_${r.length}]`));return A=A.replace(/<polygon[^>]*points="([^"]{50,})"[^>]*\/?>/gi,(e,r)=>e.replace(r,`${r.substring(0,20)}...[STRIPPED_${r.length}]`)),A},Vp=t=>{const A=t.parentElement;if(!A)return;const e=Array.from(A.children).filter(o=>o!==t).slice(0,5).map(o=>oo(o)),r=Array.from(A.children),s=r.indexOf(t);let n="middle";return s===0&&(n="start"),s===r.length-1&&(n="end"),{target:{...oo(t),location:`${n} of ${A.tagName.toLowerCase()}`},parent:oo(A),siblings:e}},mc=(t,A)=>{const e=t.getAttribute("data-vg-id")||void 0;let r;const n=Object.keys(t).find(y=>y.startsWith("__reactFiber$")||y.startsWith("__reactInternalInstance$"));if(n){let y=t[n];for(;y;){if(y._debugSource){const{fileName:C,lineNumber:L,columnNumber:I}=y._debugSource;r=`${C}:${L}${I?":"+I:""}`;break}y=y.return}}const o=Bc(t),a={vgId:e?1:0,fiber:r?.8:0,fingerprint:.5+(o.testId?.3:0)+(o.ariaLabel?.1:0)};let c=t.getAttribute("data-source-path")||r||"unknown:0";const B=kp(t),{selector:d,fallbacks:g,vgPath:u}=dr(t),f={};["placeholder","aria-label","name","type","alt","title","value","role","data-testid"].forEach(y=>{const C=t.getAttribute(y);C&&(f[y]=C)});const w=(()=>{let y=t;for(;y&&y!==document.body;){if(bs(y))return!0;y=y.parentElement}return!1})();let m;w&&A&&!A.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')&&(m=mc(A));const F=`${t.tagName.toLowerCase()}-${(t.innerText||"").slice(0,20).replace(/\s+/g,"_")}-${d.split(" > ").slice(-1)}`;return{tag:t.tagName.toLowerCase(),id:t.id||"",classes:t.className||"",text:(t.innerText||"").slice(0,100).trim(),selector:d,vgPath:u,vgId:e,outerHtml:wc(t.outerHTML),parentContext:t.parentElement?`<${t.parentElement.tagName.toLowerCase()} ${Array.from(t.parentElement.attributes).map(y=>`${y.name}="${y.value}"`).join(" ").slice(0,500)}>`:"N/A",componentPath:B,signature:F,source:c,attributes:f,confidence:a,fallbackSelectors:[...new Set(g)].slice(0,5),domPath:[],viewportSize:{width:window.innerWidth,height:window.innerHeight},uiContext:Vp(t),fingerprint:Bc(t),metadata:{hint:`Edit ${c.split(":")[0]} at line ${c.split(":")[1]||"?"}`,computedStyles:Rp(t),viewportBreakpoint:Kp(),outerHtml:wc(t.outerHTML).slice(0,2e3),scrollPosition:{x:window.scrollX,y:window.scrollY},isModal:w,triggerReference:m}}},Cc=()=>{const{mutate:t}=No(),{addToast:A,language:e,t:r,apiKey:s,baseUrl:n,dashboardUrl:o,disableViewGate:a,hasActiveToasts:c}=Zo(),[B,d]=Q.useState(typeof window<"u"?window.location.pathname+window.location.search:"/"),g=Q.useMemo(()=>typeof window>"u"?!1:window.location.href.includes("viewgate-backlog"),[B]);Q.useEffect(()=>{const l=()=>d(window.location.pathname+window.location.search);window.addEventListener("popstate",l);const h=window.history.pushState,p=window.history.replaceState;return window.history.pushState=function(...x){h.apply(this,x),setTimeout(l,0)},window.history.replaceState=function(...x){p.apply(this,x),setTimeout(l,0)},()=>{window.removeEventListener("popstate",l),window.history.pushState=h,window.history.replaceState=p}},[]);const[u,f]=Q.useState(!1),[w,m]=Q.useState("medium"),[F,y]=Q.useState("medium"),[C,L]=Q.useState("all"),[I,E]=Q.useState(null),[O,N]=Q.useState(null),[W,R]=Q.useState(""),[cA,FA]=Q.useState(!1),[M,QA]=Q.useState([]),[AA,yA]=Q.useState([{name:r.figmaPrimaryDesign,link:""}]),[J,ZA]=Q.useState([]),[$A,ke]=Q.useState([]),[qA,U]=Q.useState(null),[k,X]=Q.useState(!1),[eA,ge]=Q.useState(""),[Ae,z]=Q.useState(!1),[XA,Qt]=Q.useState("down");Q.useRef(null);const[Fe,Ge]=Q.useState(!1),[MA,ue]=Q.useState(!1),[bA,qe]=Q.useState([]),[NA,Y]=Q.useState(null),[tA,lA]=Q.useState(""),[gA,ne]=Q.useState(!1),[_A,uA]=Q.useState({}),[dA,ye]=Q.useState(null),[fe,gr]=Q.useState(!1),[oe,RA]=Q.useState(null),[he,vs]=Q.useState([]),[fA,At]=Q.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_token")||sessionStorage.getItem("vg_token")),[OA,io]=Q.useState(()=>{if(typeof window>"u")return null;const l=localStorage.getItem("vg_user")||sessionStorage.getItem("vg_user");return l&&l!=="undefined"?JSON.parse(l):null}),[ur,co]=Q.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_role")||sessionStorage.getItem("vg_role")),[et,Qc]=Q.useState(""),[lo,xc]=Q.useState(!1),[vw,Pp]=Q.useState(!1),[fr,Uc]=Q.useState(!1),[Is,Fc]=Q.useState(!1),[Hs,jp]=Q.useState(!1),[Ss,yc]=Q.useState(!0),Wp=async l=>{if(l&&l.preventDefault(),!(!et.trim()||!n)){xc(!0);try{const h=await fetch(`${n}/api/auth/me`,{headers:{Authorization:`Bearer ${et.trim()}`,"x-api-key":s||""}});if(!h.ok){const D=await h.json().catch(()=>({}));throw new Error(D.error||D.message||"Invalid token")}const p=await h.json();console.log("[ViewGate] Auth data received:",p);const x=p.user||(p.email?p:null),H=p.role||x?.role||"dev";if(console.log("[ViewGate] Identified as:",x?.email,x?.name,"Role:",H),!x)throw new Error("User not found in token");At(et.trim()),io(x),co(H),localStorage.setItem("vg_token",et.trim()),x&&localStorage.setItem("vg_user",JSON.stringify(x)),H&&localStorage.setItem("vg_role",H),A(e==="es"?"Sesión iniciada correctamente":r.successHeader,"success"),Qc(""),Fc(!1),Uc(!1),Pp(!1),Bo()}catch(h){let p=h.message||(e==="es"?"Clave inválida o expirada":"Invalid or expired key");p.toLowerCase().includes("invalid or expired token")&&(p=r.invalidToken),A(p,"error")}finally{xc(!1)}}},hr=Q.useCallback(()=>{console.log("[VIEWGATE_WRAPPER] Clearing session"),At(null),io(null),co(null),yc(!1),sessionStorage.removeItem("vg_token"),sessionStorage.removeItem("vg_user"),sessionStorage.removeItem("vg_role"),localStorage.removeItem("vg_token"),localStorage.removeItem("vg_user"),localStorage.removeItem("vg_role");const l=n;t(h=>typeof h=="string"&&l&&h.startsWith(l),void 0,{revalidate:!1}),qe([]),RA(null),f(!1),N(null),R(""),ue(!1),A(e==="es"?"Sesión finalizada o inválida":"Session ended or invalid","error")},[n,e]);Q.useEffect(()=>{const l=h=>{if(h.data?.type?.startsWith("VIEWGATE_")&&console.log("[VIEWGATE_WRAPPER] Received message:",h.data.type,h.data),h.data?.type==="VIEWGATE_AUTH_SUCCESS"||h.data?.type==="VIEWGATE_SILENT_AUTH"){const{token:p,user:x,role:H,error:D}=h.data;if(console.log("[VIEWGATE_WRAPPER] Auth process:",{type:h.data.type,hasToken:!!p,hasUser:!!x}),D==="NO_SESSION")return;const K=sessionStorage.getItem("vg_token");if(p&&p!==K||!p&&K){console.log("[VIEWGATE_WRAPPER] Session sync detected change, clearing caches");const T=n;t(oA=>typeof oA=="string"&&T&&oA.startsWith(T),void 0,{revalidate:!0}),qe([])}p&&(At(p),sessionStorage.setItem("vg_token",p),localStorage.setItem("vg_token",p),x&&(io(x),co(H||x.role||"dev"),sessionStorage.setItem("vg_user",JSON.stringify(x)),localStorage.setItem("vg_user",JSON.stringify(x))),h.data.type==="VIEWGATE_AUTH_SUCCESS"&&A(e==="es"?"Sesión iniciada correctamente":"Logged in successfully","success"))}if(h.data?.type==="VIEWGATE_LOGOUT"){if(console.log("[VIEWGATE_WRAPPER] Logout message received"),sessionStorage.getItem("vg_token")){console.log("[VIEWGATE_WRAPPER] Protective logout: Ignoring logout since we have a valid manual session.");return}hr()}};return window.addEventListener("message",l),()=>window.removeEventListener("message",l)},[e,hr,n]);const Bo=Q.useCallback(()=>{if(!s||!n||Is)return;const l={"x-api-key":s};fA&&(l.Authorization=`Bearer ${fA}`),fetch(`${n}/api/projects/settings-check`,{headers:l}).then(h=>{if(h.status===403)throw hr(),new Error("Unauthorized");return h.json()}).then(h=>{h.projectId&&U(h.projectId),typeof h.isFigmaConnected=="boolean"&&X(h.isFigmaConnected),typeof h.hasEndpoints=="boolean"&&jp(h.hasEndpoints),Fc(!0)}).catch(h=>{h.message!=="Unauthorized"&&console.error("Failed to fetch project settings-check",h)})},[s,n,Is]),go=Q.useCallback(()=>{if(!s||!n||fr)return;const l={"x-api-key":s};fA&&(l.Authorization=`Bearer ${fA}`),fetch(`${n}/api/projects/endpoints`,{headers:l}).then(h=>{if(h.status===403)throw hr(),new Error("Unauthorized");return h.json()}).then(h=>{h.endpoints&&Array.isArray(h.endpoints)?ke(h.endpoints):Array.isArray(h)&&ke(h),typeof h.isFigmaConnected=="boolean"&&X(h.isFigmaConnected),Uc(!0)}).catch(h=>{h.message!=="Unauthorized"&&console.error("Failed to fetch project endpoints",h)})},[s,n,fr]);Q.useEffect(()=>{(u||fA)&&(Is||Bo())},[u,fA,Is,Bo]),Q.useEffect(()=>{Ae&&!fr&&go()},[Ae,fr,go]),Q.useEffect(()=>{if(M.length===0)return;const l=["frontend"];Hs&&l.push("backend"),k&&l.push("ux");const h=M.filter(p=>l.includes(p));h.length!==M.length&&QA(h)},[$A.length,k,M]);const bc=Q.useCallback(async l=>{const h={"x-api-key":s};fA&&(h.Authorization=`Bearer ${fA}`);const p=await fetch(l,{headers:h});if(!p.ok){p.status===403&&hr();const x=await p.json().catch(()=>({}));let H=x.message||x.error||"Fetch failed";H.toLowerCase().includes("invalid or expired token")&&(H=r.invalidToken);const D=new Error(H);throw D.status=p.status,D}return yc(!0),p.json()},[s,fA]),Xp=Q.useMemo(()=>g?"backlog":"pending,todo,in_progress,review,ready_for_review,bug_fixing",[g]),{data:Ls,isLoading:Ts,error:Ec}=Po(s?`${n}/api/projects/active-sprint`:null,bc,{revalidateOnFocus:!0,revalidateOnMount:!0,dedupingInterval:6e4}),{data:pr,isLoading:tt,mutate:Os}=Po(s&&(Ls||g)?`${n}/api/annotations?status=${Xp}`:null,bc,{refreshInterval:3e4,revalidateOnFocus:!0,dedupingInterval:5e3}),[rt,vc]=Q.useState(null),[xt,Iw]=Q.useState(null),Ic=Q.useRef(bA);Ic.current=bA;const[KA,Ks]=Q.useState(null),Hc=Q.useRef(null),[Ut,zp]=Q.useState([]),Sc=Q.useMemo(()=>{const l=(eA||"").toLowerCase().trim();return l?$A.filter(h=>{const p=h.path&&h.path.toLowerCase().includes(l),x=h.description&&h.description.toLowerCase().includes(l),H=h.method&&h.method.toLowerCase().includes(l);return p||x||H}):$A},[$A,eA]),Lc=Q.useMemo(()=>{const l={},h=e==="es"?"Seleccionados":"Selected";return Sc.forEach(p=>{const x=`${p.method}|${p.path}`;J.includes(x)&&(l[h]||(l[h]={name:h,endpoints:[]}),l[h].endpoints.push(p));const D=(p.path||"").split("/").filter(oA=>oA&&!["api","v1.0","v2","rest"].includes(oA.toLowerCase()));let K=D.length>0?D[0]:"General";K=K.replace(/([a-z])([A-Z])/g,"$1 $2"),K=K.replace(/([A-Z])([A-Z][a-z])/g,"$1 $2"),K=K.charAt(0).toUpperCase()+K.slice(1),l[K]||(l[K]={name:K,endpoints:[]});const T=l[K];T&&T.endpoints.push(p)}),Object.values(l).sort((p,x)=>p.name===h?-1:x.name===h||p.name==="General"?1:x.name==="General"?-1:p.name.localeCompare(x.name))},[Sc,J,e]),uo=Q.useMemo(()=>{let l=Array.isArray(bA)?bA:[];if(dA){const p=Ut.find(x=>x.annotations&&Array.isArray(x.annotations)&&x.annotations.some(H=>H._id===dA));p?l=p.annotations:l=l.filter(x=>x._id===dA)}return l=l.filter(p=>p.status!=="completed"&&p.status!=="done"),window.location.href.includes("viewgate-backlog")||(KA==="pending"?l=l.filter(p=>p.status!=="ready_for_review"):KA==="ready"&&(l=l.filter(p=>p.status==="ready_for_review"))),C!=="all"&&(l=l.filter(p=>(p.priority||"medium")===C)),l},[dA,bA,Ut,KA,C]);Q.useEffect(()=>{dA&&uo.length===0&&!tt&&ye(null)},[dA,uo.length,tt]);const[Ft,Jp]=Q.useState(()=>{if(typeof window>"u")return{bottom:30,right:30};const l=localStorage.getItem("vg-bar-pos");return l?JSON.parse(l):{bottom:30,right:30}}),[wr,Tc]=Q.useState(!1),be=Q.useRef(null),Yp=l=>{l.preventDefault(),l.stopPropagation();const h=l.currentTarget.parentElement?.getBoundingClientRect();h&&(Tc(!0),be.current={x:l.clientX,y:l.clientY,bottom:Ft.bottom,right:Ft.right,width:h.width,height:h.height})};Q.useEffect(()=>{if(!wr)return;const l=p=>{if(wr&&be.current){const x=p.clientX-be.current.x,H=p.clientY-be.current.y;let D=be.current.bottom-H,K=be.current.right-x;const T=10;D=Math.max(T,Math.min(window.innerHeight-be.current.height-T,D)),K=Math.max(T,Math.min(window.innerWidth-be.current.width-T,K)),Jp({bottom:D,right:K})}},h=()=>{wr&&(Tc(!1),localStorage.setItem("vg-bar-pos",JSON.stringify(Ft)),be.current=null)};return window.addEventListener("mousemove",l),window.addEventListener("mouseup",h),()=>{window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",h)}},[wr,Ft]);const[yt,Ds]=Q.useState(null),[Oc,Kc]=Q.useState(""),[bt,fo]=Q.useState([]),[st,mr]=Q.useState([]),[Ve,Rs]=Q.useState([]),[ks,Dc]=Q.useState(!1);Q.useEffect(()=>{yt&&Rs(J)},[J,yt]);const[Hw,Sw]=Q.useState({}),ho=Q.useRef(null),Et=Q.useRef(null),po=Q.useRef(null),Gs=Q.useRef(!1),Rc=Q.useCallback(()=>{typeof window>"u"||Gs.current||(Et.current&&cancelAnimationFrame(Et.current),Et.current=requestAnimationFrame(()=>{Et.current=null,Gs.current=!0,po.current;const l=Ic.current,h=Array.isArray(l)?l:[],p=new Set(h.map(_=>_._id));document.querySelectorAll(`[${se}]`).forEach(_=>{const xA=_.getAttribute(se);xA&&!p.has(xA)&&_.removeAttribute(se)});const x=Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], [class*="modal" i], [class*="dialog" i], .fixed, .modal-backdrop, .fixed.inset-0')),H=x.find(_=>bs(_)&&Ue(_));let D=!!H;console.log("[ViewGate Debug] Modal Detection:",{potentialModals:x.length,activeModal:H,isAnyModalOpen:D});const K=new Map;h.forEach(_=>{if(!_||!_.reference)return;try{const HA=()=>{const It=window.location.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),Me=new URLSearchParams(window.location.search);Me.delete("viewgate"),Me.sort();const Ht=Me.toString();return Ht?`${It}?${Ht}`:It},UA=It=>{try{const Me=new URL(It),Ht=Me.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),St=new URLSearchParams(Me.search);St.delete("viewgate"),St.sort();const Cr=St.toString();return Cr?`${Ht}?${Cr}`:Ht}catch{return""}},DA=HA(),vt=UA(_.url);if(DA!==vt)return}catch{return}const xA=!!_.reference.metadata?.isModal;let aA=pc(_.reference,_._id);if(console.log(`[ViewGate Debug] Processing Pin [${_._id}]:`,{isModalTarget:xA,targetEl:aA,isVisible:aA?Ue(aA):!1}),!aA||!Ue(aA))return;let IA=!1;if(xA?(IA=!0,D=!0,console.log(`[ViewGate Debug] Pin [${_._id}] Modal Open Check: isModalTarget=true`)):(IA=!D,console.log(`[ViewGate Debug] Pin [${_._id}] No Modal Check: !isAnyModalOpen=${IA}`)),!IA)return;const $=aA.getAttribute(se);$!==_._id&&(document.querySelectorAll(`[${se}="${_._id}"]`).forEach(HA=>{HA.removeAttribute(se)}),$||aA.setAttribute(se,_._id));const hA=K;hA.has(aA)||hA.set(aA,{anns:[]}),hA.get(aA).anns.push(_)});const T=[];(_=>{_.forEach((xA,aA)=>{const{anns:IA}=xA,$=aA.getBoundingClientRect(),hA=$.left+$.width/2,HA=$.top+$.height/2;if(hA>=0&&hA<=window.innerWidth&&HA>=0&&HA<=window.innerHeight){const UA=document.elementFromPoint(hA,HA),DA=document.getElementById("viewgate-shadow-host");if(UA&&!aA.contains(UA)&&UA!==DA&&!DA?.contains(UA))return}T.push({id:IA[0]._id,element:aA,rect:$,annotations:IA.sort((UA,DA)=>new Date(DA.timestamp||DA.createdAt).getTime()-new Date(UA.timestamp||UA.createdAt).getTime()),isModal:!!IA[0].reference?.metadata?.isModal})})})(K),zp(T),Gs.current=!1}))},[oe]);Q.useEffect(()=>{if(pr){const l=Array.isArray(pr)?pr:pr?.data||[];if(Array.isArray(l)){const h=l.reduce((p,x)=>p.find(D=>D._id===x._id)?p:p.concat([x]),[]);qe(h)}}else tt||qe([])},[pr,tt]),Q.useEffect(()=>{RA(Ls||null)},[Ls]),Q.useEffect(()=>{MA&&bA.length===0&&!tt&&ue(!1)},[MA,bA.length,tt]),Q.useEffect(()=>{let l=null;const h=()=>{Gs.current||Rc()},p=new MutationObserver(D=>{D.some(T=>T.type!=="attributes"||T.attributeName!==se&&!T.target.parentElement?.closest("#viewgate-shadow-host"))&&(l&&clearTimeout(l),l=setTimeout(()=>{h(),setTimeout(h,350)},32))});po.current=p;const x=new ResizeObserver(()=>h()),H=()=>h();return h(),p.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),x.observe(document.documentElement),window.addEventListener("scroll",H,{capture:!0,passive:!0}),()=>{l&&clearTimeout(l),p.disconnect(),x.disconnect(),window.removeEventListener("scroll",H,!0),Et.current&&cancelAnimationFrame(Et.current),po.current=null}},[u,bA,Rc,MA,dA,B]);const wo=Q.useCallback(l=>{let h=l;for(;h&&h!==document.body;){if(bs(h))return h;h=h.parentElement}return null},[]);Q.useEffect(()=>{const l=h=>{const p=h.target;p&&(wo(p)||(Hc.current=p))};return window.addEventListener("mousedown",l,!0),()=>window.removeEventListener("mousedown",l,!0)},[wo]),Q.useEffect(()=>{ho.current=document.getElementById("viewgate-shadow-host")},[]);const mo=Q.useCallback(l=>{if(!u||O)return;const h=hc(l.clientX,l.clientY);if(!h||ho.current?.contains(h)||h.closest(".vg-no-capture")){E(null);return}const p=h.getBoundingClientRect();E({tag:h.tagName.toLowerCase(),source:h.getAttribute("data-source-path")||"unknown:0",rect:p,element:h,previewText:(h.innerText||"").slice(0,100)||(h.getAttribute("placeholder")||"").slice(0,100)||h.tagName.toLowerCase(),semanticReference:{...mc(h,Hc.current),normalizedOffset:{x:(l.clientX-p.left)/p.width,y:(l.clientY-p.top)/p.height}}})},[u,O]),Co=Q.useCallback(async l=>{if(!u||O)return;const h=hc(l.clientX,l.clientY);if(!(!h||ho.current?.contains(h)||h.closest(".vg-no-capture"))&&I){const p=I;let x=p.element;wo(x);let H=p.semanticReference,D=p.tag;l.preventDefault(),l.stopPropagation(),Ge(!0);try{await new Promise(UA=>requestAnimationFrame(UA)),await new Promise(UA=>setTimeout(UA,150));const K=x.getBoundingClientRect(),T=gc(x),oA=document.documentElement,_=window.scrollX||window.pageXOffset,xA=window.scrollY||window.pageYOffset,aA=window.devicePixelRatio||1,IA=Math.max(aA,3),$=await no(oA,{scale:IA,useCORS:!0,logging:!1,backgroundColor:null,allowTaint:!0,x:_,y:xA,width:window.innerWidth,height:window.innerHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight,scrollX:0,scrollY:0,onclone:UA=>{const DA=UA.getElementById("viewgate-shadow-host");DA&&(DA.style.display="none"),UA.querySelectorAll(".vg-selection-overlay").forEach(vt=>vt.style.display="none")}}),hA=await uc($,K,{scale:IA,padding:48,backgroundColor:"#000000"}),HA={...p,element:x,rect:K,semanticReference:H,tag:D,visualPreview:hA};N(HA)}catch(K){console.error("[ViewGate] Capture failed:",K),N(p)}finally{Ge(!1),E(null)}}},[u,I,O]);Q.useEffect(()=>{const l=h=>{const x=(()=>{let K=document.activeElement;for(;K&&K.shadowRoot&&K.shadowRoot.activeElement;)K=K.shadowRoot.activeElement;return K})();if(["input","textarea"].includes((x?.tagName||"").toLowerCase())||x?.isContentEditable)return;const D=h.key.toLowerCase();if(!fA){(D==="c"||D==="v")&&A(e==="es"?"Debes iniciar sesión en el Dashboard para usar ViewGate":"Log in to the Dashboard to use ViewGate","warning");return}if(h.key==="Escape"){O?N(null):MA?ue(!1):u&&f(!1);return}if(D==="c"&&!h.ctrlKey&&!h.metaKey&&!O&&!MA){if(!Ss){A(e==="es"?"Acceso denegado a este proyecto":"No project access","error");return}if(ur==="client"){A(e==="es"?"Acceso de solo lectura (Backlog)":"Read-only access (Backlog)","warning");return}if(Ts&&!u){if(Ec?.status===403||!Ss){const oA=Ec?.message||(e==="es"?"Acceso denegado a este proyecto":"No project access");A(oA,"error");return}A(e==="es"?"Verificando información del sprint...":"Checking sprint info...","warning");return}if(!(oe&&oe.status!=="closed")&&!g&&!u){A(e==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}f(T=>!T)}if(D==="v"&&!O){if(!Ss){A(e==="es"?"Acceso denegado a este proyecto":"No project access","error");return}(bA.length>0||MA)&&(ue(K=>!K),MA||f(!1))}};return u&&!O?document.body.classList.add("vg-cursor-pointer"):document.body.classList.remove("vg-cursor-pointer"),window.addEventListener("keydown",l),window.addEventListener("mousemove",mo,!0),window.addEventListener("click",Co,!0),()=>{document.body.classList.remove("vg-cursor-pointer"),window.removeEventListener("keydown",l),window.removeEventListener("mousemove",mo,!0),window.removeEventListener("click",Co,!0)}},[u,O,MA,bA,mo,Co,fA,ur]);const Zp=async()=>{if(!O||!W.trim())return;if(M.includes("backend")&&J.length===0){A(e==="es"?"Selecciona al menos un endpoint de backend":"Select at least one backend endpoint","error");return}if(M.includes("ux")&&AA.some(K=>!K.name.trim()||!K.link.trim())){A(e==="es"?"Todos los diseños de Figma deben tener nombre y link":"All Figma designs must have a name and link","error");return}if(!OA){A(e==="es"?"Selecciona un usuario para comentar":"Please select a user to comment","error");return}FA(!0);const{semanticReference:l}=O,[h,p]=(l.source||"").split(":"),H={filePath:h,line:parseInt(p||"0"),url:window.location.href,title:W.length>50?W.substring(0,50)+"...":W,message:W,status:g?"backlog":"pending",priority:w,type:O.visualPreview&&!g&&Ls?.status==="active"?"bug":"task",screenshot:O.visualPreview,componentName:l.componentPath||O.tag,reference:{...l,viewport:{width:window.innerWidth,height:window.innerHeight},timestamp:new Date().toISOString()},focusAreas:M,figmaReference:M.includes("ux")?AA:void 0,backendEndpoints:M.includes("backend")?J:[]};OA&&(H.creator={name:OA.name,email:OA.email,avatar:OA.avatar});try{const D=await fetch(`${n}/api/annotations`,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":s,Authorization:fA?`Bearer ${fA}`:""},body:JSON.stringify(H)});if(!D.ok){const K=await D.json().catch(()=>({}));throw new Error(K.message||K.error||"Backend failed")}A(r.success,"success"),N(null),R(""),QA([]),yA([{name:r.figmaPrimaryDesign,link:""}]),ZA([]),f(!1),Os()}catch(D){console.error(D);const K=D.message&&D.message!=="Backend failed"?D.message:r.error;A(K,"error")}finally{FA(!1)}},$p=async l=>{Ge(!0);try{const h=pc(l.reference,l._id);if(!h){A(e==="es"?"No se pudo encontrar el elemento original para la captura":"Could not find the original element for capture","error"),Ge(!1);return}h.scrollIntoView({behavior:"smooth",block:"center"}),await new Promise($=>setTimeout($,600));const p=h.style.outline,x=h.style.transition;h.style.transition="outline 0.3s ease",h.style.outline="4px solid #10b981",h.style.outlineOffset="4px",await new Promise($=>setTimeout($,400)),h.style.outline=p,h.style.transition=x,await new Promise($=>requestAnimationFrame($)),await new Promise($=>setTimeout($,50));const H=h.getBoundingClientRect(),D=gc(h),K=document.documentElement,T=window.scrollX||window.pageXOffset,oA=window.scrollY||window.pageYOffset,_=window.devicePixelRatio||1,xA=Math.max(_,3),aA=await no(K,{scale:xA,useCORS:!0,logging:!1,backgroundColor:null,allowTaint:!0,x:T,y:oA,width:window.innerWidth,height:window.innerHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight,scrollX:0,scrollY:0,onclone:$=>{const hA=$.getElementById("viewgate-shadow-host");hA&&(hA.style.display="none"),$.querySelectorAll(".vg-selection-overlay, .vg-formal-pin").forEach(HA=>{HA.style.display="none"})}}),IA=await uc(aA,H,{scale:xA,padding:48,backgroundColor:"#000000"});if(IA){const $=await fetch(`${n}/api/tickets/${l._id}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:fA?`Bearer ${fA}`:""},body:JSON.stringify({status:"completed",resolvedScreenshot:IA})});if(!$.ok){const hA=await $.json().catch(()=>({}));throw new Error(hA.message||hA.error||"API failed")}A(e==="es"?"¡Ticket resuelto con éxito!":"Ticket resolved successfully!","success"),Os()}h.style.outline=p,h.style.transition=x}catch(h){console.error("[ViewGate] Resolve with evidence failed:",h),A(e==="es"?`Error: ${h.message}`:`Error: ${h.message}`,"error")}finally{Ge(!1)}};return i.jsx("div",{"data-vg-id":"ef883ffc","data-source-path":"/src/components/ViewGateOverlay.tsx:2207",className:"vg-container",style:{userSelect:"none",WebkitUserSelect:"none"},children:i.jsxs("div",{"data-vg-id":"ef883ffd","data-source-path":"/src/components/ViewGateOverlay.tsx:2208",className:"vg-no-capture",style:{userSelect:"none",WebkitUserSelect:"none"},children:[i.jsxs("div",{style:{position:"fixed",bottom:`${Ft.bottom}px`,right:`${Ft.right}px`,zIndex:cc,display:"flex",alignItems:"center",gap:"8px",transition:wr?"none":"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},id:"viewgate-ui",children:[i.jsx("div",{onMouseDown:Yp,style:{width:"24px",height:"40px",borderRadius:"10px",backgroundColor:"rgba(255, 255, 255, 0.85)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"grab",color:"#1e293b",opacity:u?0:1,visibility:u?"hidden":"visible",transition:"all 0.2s",border:"1px solid rgba(0,0,0,0.1)",boxShadow:"0 2px 8px rgba(0,0,0,0.05)"},onMouseEnter:l=>{l.currentTarget.style.backgroundColor="white",l.currentTarget.style.color="#000000"},onMouseLeave:l=>{l.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.85)",l.currentTarget.style.color="#1e293b"},className:"vg-animate-slide-up",children:i.jsx(Il,{"data-vg-id":"3dbe6a11","data-source-path":"/src/components/ViewGateOverlay.tsx:2255",size:16})}),i.jsxs("div",{"data-vg-id":"ef883fff","data-source-path":"/src/components/ViewGateOverlay.tsx:2258",className:"vg-action-bar vg-animate-slide-up",style:{transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},children:[fA?Ss?i.jsxs(i.Fragment,{children:[ur!=="client"&&i.jsx("button",{onClick:()=>{if(Ts&&!u){A(e==="es"?"Sincronizando con el servidor...":"Syncing with server...","warning");return}if(!oe&&!g&&!u){A(e==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}f(!u)},className:"vg-button-primary vg-animate-pop",style:{padding:"12px 24px",background:u?"#ef4444":!oe&&!g?"#94a3b8":void 0,cursor:!oe&&!g&&!u?"not-allowed":"pointer",opacity:!oe&&!g&&!u?.7:1},title:!oe&&!g&&!u?e==="es"?"Requiere sprint activo":"Requires active sprint":"",children:i.jsxs("div",{"data-vg-id":"ef884001","data-source-path":"/src/components/ViewGateOverlay.tsx:2297",style:{display:"flex",alignItems:"center",gap:"10px"},children:[Ts&&!u?i.jsx(Er,{"data-vg-id":"edca6150","data-source-path":"/src/components/ViewGateOverlay.tsx:2299",size:20,className:"vg-animate-spin"}):u?i.jsx(Rt,{"data-vg-id":"ff5f5cf","data-source-path":"/src/components/ViewGateOverlay.tsx:2301",size:20,className:"vg-animate-pop"}):i.jsx(vr,{"data-vg-id":"10c621c4","data-source-path":"/src/components/ViewGateOverlay.tsx:2303",size:20,className:"vg-animate-pop"}),i.jsx("span",{"data-vg-id":"52d76c43","data-source-path":"/src/components/ViewGateOverlay.tsx:2305",children:Ts&&!u?e==="es"?"Cargando...":"Loading...":u?r.exitMode:r.enterMode})]})}),bA.length>0&&i.jsxs("button",{onClick:()=>{ue(!MA),f(!1),N(null)},className:"vg-button-ghost vg-animate-pop",style:{animationDelay:"0.1s"},children:[i.jsx(vl,{"data-vg-id":"cd7341f9","data-source-path":"/src/components/ViewGateOverlay.tsx:2323",size:20}),i.jsx("span",{"data-vg-id":"52d76c45","data-source-path":"/src/components/ViewGateOverlay.tsx:2324",children:r.viewComments})]})]}):i.jsx("div",{"data-vg-id":"ef884000","data-source-path":"/src/components/ViewGateOverlay.tsx:2261",style:{padding:"8px 16px",background:"#fee2e2",color:"#b91c1c",borderRadius:"20px",fontSize:"12px",fontWeight:600,border:"1px solid #fecaca",whiteSpace:"nowrap"},children:e==="es"?"Acceso denegado a este proyecto":"No project access"}):i.jsxs("button",{onClick:()=>{f(!0),N({rect:new DOMRect})},className:"vg-button-primary vg-animate-pop",style:{padding:"12px 24px",background:"var(--vg-primary-gradient)",display:"flex",alignItems:"center",gap:"10px"},children:[i.jsx(Jo,{"data-vg-id":"422a5ea5","data-source-path":"/src/components/ViewGateOverlay.tsx:2344",size:18}),i.jsx("span",{"data-vg-id":"52d76c47","data-source-path":"/src/components/ViewGateOverlay.tsx:2345",style:{fontWeight:700},children:e==="es"?"Desbloquear con Clave":"Unlock with Key"})]}),i.jsx("button",{onClick:l=>{l.stopPropagation(),Y({title:r.exitConfirmTitle||"Close ViewGate?",message:r.exitConfirmMessage||"Are you sure you want to close ViewGate?",type:"danger",onConfirm:()=>a()})},className:"vg-button-ghost vg-animate-pop",style:{width:"40px",height:"40px",minWidth:"40px",padding:"0",animationDelay:"0.2s",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px",backgroundColor:"rgba(255, 255, 255, 0.8)",color:"#64748b",border:"1px solid rgba(0,0,0,0.05)"},onMouseEnter:l=>{l.currentTarget.style.color="#ef4444",l.currentTarget.style.backgroundColor="white",l.currentTarget.style.borderColor="rgba(239, 68, 68, 0.2)",l.currentTarget.style.transform="scale(1.05)"},onMouseLeave:l=>{l.currentTarget.style.color="#64748b",l.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.8)",l.currentTarget.style.borderColor="rgba(0,0,0,0.05)",l.currentTarget.style.transform="scale(1)"},title:r.close||"Cerrar ViewGate",children:i.jsx(Rt,{"data-vg-id":"ff5f5d6","data-source-path":"/src/components/ViewGateOverlay.tsx:2389",size:20,strokeWidth:2.5})})]})]}),Fe&&i.jsx("div",{"data-vg-id":"17fbf7e","data-source-path":"/src/components/ViewGateOverlay.tsx:2398",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(255,255,255,0.6)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:cc+1,cursor:"wait"},children:i.jsxs("div",{"data-vg-id":"17fbf7f","data-source-path":"/src/components/ViewGateOverlay.tsx:2404",className:"vg-glassmorphism",style:{padding:"30px 50px",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[i.jsx("div",{"data-vg-id":"17fbf95","data-source-path":"/src/components/ViewGateOverlay.tsx:2405",className:"vg-spinner"}),i.jsx("span",{"data-vg-id":"52d76c61","data-source-path":"/src/components/ViewGateOverlay.tsx:2406",style:{fontWeight:600,fontSize:"14px",color:"#000000"},children:"Capturando..."})]})}),u&&!O&&i.jsx("div",{className:"vg-backdrop-blur",style:{opacity:1,clipPath:I?`polygon(
|
|
7
|
+
<%s key={someKey} {...props} />`,F,P,ye,P),Oe[P+F]=!0)}if(P=null,z!==void 0&&(s(z),P=""+z),l(R)&&(s(R.key),P=""+R.key),"key"in R){z={};for(var ot in R)ot!=="key"&&(z[ot]=R[ot])}else z=R;return P&&f(z,typeof g=="function"?g.displayName||g.name||"Unknown":g),S(g,P,z,c(),Te,Ee)}function m(g){x(g)?g._store&&(g._store.validated=1):typeof g=="object"&&g!==null&&g.$$typeof===D&&(g._payload.status==="fulfilled"?x(g._payload.value)&&g._payload.value._store&&(g._payload.value._store.validated=1):g._store&&(g._store.validated=1))}function x(g){return typeof g=="object"&&g!==null&&g.$$typeof===V}var j=p,V=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),ue=Symbol.for("react.consumer"),N=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ce=Symbol.for("react.client.reference"),M=j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=Object.prototype.hasOwnProperty,H=Array.isArray,re=console.createTask?console.createTask:function(){return null};j={react_stack_bottom_frame:function(g){return g()}};var L,Se={},je=j.react_stack_bottom_frame.bind(j,d)(),He=re(r(d)),Oe={};mt.Fragment=A,mt.jsx=function(g,R,z){var F=1e4>M.recentlyCreatedOwnerStacks++;return b(g,R,z,!1,F?Error("react-stack-top-frame"):je,F?re(r(g)):He)},mt.jsxs=function(g,R,z){var F=1e4>M.recentlyCreatedOwnerStacks++;return b(g,R,z,!0,F?Error("react-stack-top-frame"):je,F?re(r(g)):He)}})()),mt}var Ma;function Us(){return Ma||(Ma=1,process.env.NODE_ENV==="production"?Tt.exports=Bs():Tt.exports=Hs()),Tt.exports}var t=Us(),At={exports:{}},aa={};var La;function Ys(){if(La)return aa;La=1;var e=p;function o(m,x){return m===x&&(m!==0||1/m===1/x)||m!==m&&x!==x}var s=typeof Object.is=="function"?Object.is:o,r=e.useState,c=e.useEffect,d=e.useLayoutEffect,l=e.useDebugValue;function f(m,x){var j=x(),V=r({inst:{value:j,getSnapshot:x}}),C=V[0].inst,A=V[1];return d(function(){C.value=j,C.getSnapshot=x,h(C)&&A({inst:C})},[m,j,x]),c(function(){return h(C)&&A({inst:C}),m(function(){h(C)&&A({inst:C})})},[m]),l(j),j}function h(m){var x=m.getSnapshot;m=m.value;try{var j=x();return!s(m,j)}catch{return!0}}function S(m,x){return x()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?S:f;return aa.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,aa}var sa={};var Wa;function Xs(){return Wa||(Wa=1,process.env.NODE_ENV!=="production"&&(function(){function e(j,V){return j===V&&(j!==0||1/j===1/V)||j!==j&&V!==V}function o(j,V){b||c.startTransition===void 0||(b=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var C=V();if(!m){var A=V();d(C,A)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}A=l({inst:{value:C,getSnapshot:V}});var _=A[0].inst,v=A[1];return h(function(){_.value=C,_.getSnapshot=V,s(_)&&v({inst:_})},[j,C,V]),f(function(){return s(_)&&v({inst:_}),j(function(){s(_)&&v({inst:_})})},[j]),S(C),C}function s(j){var V=j.getSnapshot;j=j.value;try{var C=V();return!d(j,C)}catch{return!0}}function r(j,V){return V()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=p,d=typeof Object.is=="function"?Object.is:e,l=c.useState,f=c.useEffect,h=c.useLayoutEffect,S=c.useDebugValue,b=!1,m=!1,x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:o;sa.useSyncExternalStore=c.useSyncExternalStore!==void 0?c.useSyncExternalStore:x,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),sa}var Da;function Ks(){return Da||(Da=1,process.env.NODE_ENV==="production"?At.exports=Ys():At.exports=Xs()),At.exports}var Fa=Ks();const Ba=0,Ha=1,Ua=2,Ya=3;var Xa=Object.prototype.hasOwnProperty;function oa(e,o){var s,r;if(e===o)return!0;if(e&&o&&(s=e.constructor)===o.constructor){if(s===Date)return e.getTime()===o.getTime();if(s===RegExp)return e.toString()===o.toString();if(s===Array){if((r=e.length)===o.length)for(;r--&&oa(e[r],o[r]););return r===-1}if(!s||typeof e=="object"){r=0;for(s in e)if(Xa.call(e,s)&&++r&&!Xa.call(o,s)||!(s in o)||!oa(e[s],o[s]))return!1;return Object.keys(o).length===r}}return e!==e&&o!==o}const ze=new WeakMap,Pe=()=>{},se=Pe(),ra=Object,T=e=>e===se,Ge=e=>typeof e=="function",Fe=(e,o)=>({...e,...o}),Ka=e=>Ge(e.then),na={},Nt={},ia="undefined",ht=typeof window!=ia,ca=typeof document!=ia,Js=ht&&"Deno"in window,Zs=()=>ht&&typeof window.requestAnimationFrame!=ia,Ja=(e,o)=>{const s=ze.get(e);return[()=>!T(o)&&e.get(o)||na,r=>{if(!T(o)){const c=e.get(o);o in Nt||(Nt[o]=c),s[5](o,Fe(c,r),c||na)}},s[6],()=>!T(o)&&o in Nt?Nt[o]:!T(o)&&e.get(o)||na]};let da=!0;const Qs=()=>da,[la,pa]=ht&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Pe,Pe],qs=()=>{const e=ca&&document.visibilityState;return T(e)||e!=="hidden"},$s=e=>(ca&&document.addEventListener("visibilitychange",e),la("focus",e),()=>{ca&&document.removeEventListener("visibilitychange",e),pa("focus",e)}),eo=e=>{const o=()=>{da=!0,e()},s=()=>{da=!1};return la("online",o),la("offline",s),()=>{pa("online",o),pa("offline",s)}},to={isOnline:Qs,isVisible:qs},ao={initFocus:$s,initReconnect:eo},Za=!p.useId,st=!ht||Js,so=e=>Zs()?window.requestAnimationFrame(e):setTimeout(e,1),ua=st?p.useEffect:p.useLayoutEffect,fa=typeof navigator<"u"&&navigator.connection,Qa=!st&&fa&&(["slow-2g","2g"].includes(fa.effectiveType)||fa.saveData),It=new WeakMap,oo=e=>ra.prototype.toString.call(e),ga=(e,o)=>e===`[object ${o}]`;let ro=0;const ma=e=>{const o=typeof e,s=oo(e),r=ga(s,"Date"),c=ga(s,"RegExp"),d=ga(s,"Object");let l,f;if(ra(e)===e&&!r&&!c){if(l=It.get(e),l)return l;if(l=++ro+"~",It.set(e,l),Array.isArray(e)){for(l="@",f=0;f<e.length;f++)l+=ma(e[f])+",";It.set(e,l)}if(d){l="#";const h=ra.keys(e).sort();for(;!T(f=h.pop());)T(e[f])||(l+=f+":"+ma(e[f])+",");It.set(e,l)}}else l=r?e.toJSON():o=="symbol"?e.toString():o=="string"?JSON.stringify(e):""+e;return l},ha=e=>{if(Ge(e))try{e=e()}catch{e=""}const o=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?ma(e):"",[e,o]};let no=0;const xa=()=>++no;async function qa(...e){const[o,s,r,c]=e,d=Fe({populateCache:!0,throwOnError:!0},typeof c=="boolean"?{revalidate:c}:c||{});let l=d.populateCache;const f=d.rollbackOnError;let h=d.optimisticData;const S=x=>typeof f=="function"?f(x):f!==!1,b=d.throwOnError;if(Ge(s)){const x=s,j=[],V=o.keys();for(const C of V)!/^\$(inf|sub)\$/.test(C)&&x(o.get(C)._k)&&j.push(C);return Promise.all(j.map(m))}return m(s);async function m(x){const[j]=ha(x);if(!j)return;const[V,C]=Ja(o,j),[A,_,v,ue]=ze.get(o),N=()=>{const H=A[j];return(Ge(d.revalidate)?d.revalidate(V().data,x):d.revalidate!==!1)&&(delete v[j],delete ue[j],H&&H[0])?H[0](Ua).then(()=>V().data):V().data};if(e.length<3)return N();let Y=r,I,J=!1;const ae=xa();_[j]=[ae,0];const D=!T(h),oe=V(),ce=oe.data,M=oe._c,de=T(M)?ce:M;if(D&&(h=Ge(h)?h(de,ce):h,C({data:h,_c:de})),Ge(Y))try{Y=Y(de)}catch(H){I=H,J=!0}if(Y&&Ka(Y))if(Y=await Y.catch(H=>{I=H,J=!0}),ae!==_[j][0]){if(J)throw I;return Y}else J&&D&&S(I)&&(l=!0,C({data:de,_c:se}));if(l&&!J)if(Ge(l)){const H=l(Y,de);C({data:H,error:se,_c:se})}else C({data:Y,error:se,_c:se});if(_[j][1]=xa(),Promise.resolve(N()).then(()=>{C({_c:se})}),J){if(b)throw I;return}return Y}}const $a=(e,o)=>{for(const s in e)e[s][0]&&e[s][0](o)},io=(e,o)=>{if(!ze.has(e)){const s=Fe(ao,o),r=Object.create(null),c=qa.bind(se,e);let d=Pe;const l=Object.create(null),f=(b,m)=>{const x=l[b]||[];return l[b]=x,x.push(m),()=>x.splice(x.indexOf(m),1)},h=(b,m,x)=>{e.set(b,m);const j=l[b];if(j)for(const V of j)V(m,x)},S=()=>{if(!ze.has(e)&&(ze.set(e,[r,Object.create(null),Object.create(null),Object.create(null),c,h,f]),!st)){const b=s.initFocus(setTimeout.bind(se,$a.bind(se,r,Ba))),m=s.initReconnect(setTimeout.bind(se,$a.bind(se,r,Ha)));d=()=>{b&&b(),m&&m(),ze.delete(e)}}};return S(),[e,c,S,d]}return[e,ze.get(e)[4]]},co=(e,o,s,r,c)=>{const d=s.errorRetryCount,l=c.retryCount,f=~~((Math.random()+.5)*(1<<(l<8?l:8)))*s.errorRetryInterval;!T(d)&&l>d||setTimeout(r,f,c)},lo=oa,[es,po]=io(new Map),uo=Fe({onLoadingSlow:Pe,onSuccess:Pe,onError:Pe,onErrorRetry:co,onDiscarded:Pe,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Qa?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Qa?5e3:3e3,compare:lo,isPaused:()=>!1,cache:es,mutate:po,fallback:{}},to),fo=(e,o)=>{const s=Fe(e,o);if(o){const{use:r,fallback:c}=e,{use:d,fallback:l}=o;r&&d&&(s.use=r.concat(d)),c&&l&&(s.fallback=Fe(c,l))}return s},go=p.createContext({}),mo="$inf$",ts=ht&&window.__SWR_DEVTOOLS_USE__,ho=ts?window.__SWR_DEVTOOLS_USE__:[],xo=()=>{ts&&(window.__SWR_DEVTOOLS_REACT__=p)},vo=e=>Ge(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],as=()=>{const e=p.useContext(go);return p.useMemo(()=>Fe(uo,e),[e])},yo=e=>(o,s,r)=>e(o,s&&((...d)=>{const[l]=ha(o),[,,,f]=ze.get(es);if(l.startsWith(mo))return s(...d);const h=f[l];return T(h)?s(...d):(delete f[l],h)}),r),bo=ho.concat(yo),wo=e=>function(...s){const r=as(),[c,d,l]=vo(s),f=fo(r,l);let h=e;const{use:S}=f,b=(S||[]).concat(bo);for(let m=b.length;m--;)h=b[m](h);return h(c,d||f.fetcher||null,f)},ko=(e,o,s)=>{const r=o[e]||(o[e]=[]);return r.push(s),()=>{const c=r.indexOf(s);c>=0&&(r[c]=r[r.length-1],r.pop())}};xo();const va=p.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(o=>{e.status="fulfilled",e.value=o},o=>{e.status="rejected",e.reason=o}),e}}),ya={dedupe:!0},ss=Promise.resolve(se),So=()=>Pe,os=wo((e,o,s)=>{const{cache:r,compare:c,suspense:d,fallbackData:l,revalidateOnMount:f,revalidateIfStale:h,refreshInterval:S,refreshWhenHidden:b,refreshWhenOffline:m,keepPreviousData:x,strictServerPrefetchWarning:j}=s,[V,C,A,_]=ze.get(r),[v,ue]=ha(e),N=p.useRef(!1),Y=p.useRef(!1),I=p.useRef(v),J=p.useRef(o),ae=p.useRef(s),D=()=>ae.current,oe=()=>D().isVisible()&&D().isOnline(),[ce,M,de,H]=Ja(r,v),re=p.useRef({}).current,L=T(l)?T(s.fallback)?se:s.fallback[v]:l,Se=(W,B)=>{for(const X in re){const Z=X;if(Z==="data"){if(!c(W[Z],B[Z])&&(!T(W[Z])||!c(Ee,B[Z])))return!1}else if(B[Z]!==W[Z])return!1}return!0},je=!N.current,He=p.useMemo(()=>{const W=ce(),B=H(),X=Q=>{const K=Fe(Q);return delete K._k,(()=>{if(!v||!o||D().isPaused())return!1;if(je&&!T(f))return f;const Ne=T(L)?K.data:L;return T(Ne)||h})()?{isValidating:!0,isLoading:!0,...K}:K},Z=X(W),Ve=W===B?Z:X(B);let me=Z;return[()=>{const Q=X(ce());return Se(Q,me)?(me.data=Q.data,me.isLoading=Q.isLoading,me.isValidating=Q.isValidating,me.error=Q.error,me):(me=Q,Q)},()=>Ve]},[r,v]),Oe=Fa.useSyncExternalStore(p.useCallback(W=>de(v,(B,X)=>{Se(X,B)||W()}),[r,v]),He[0],He[1]),g=V[v]&&V[v].length>0,R=Oe.data,z=T(R)?L&&Ka(L)?va(L):L:R,F=Oe.error,Te=p.useRef(z),Ee=x?T(R)?T(Te.current)?z:Te.current:R:z,P=v&&T(z),ye=p.useRef(null);!st&&Fa.useSyncExternalStore(So,()=>(ye.current=!1,ye),()=>(ye.current=!0,ye));const ot=ye.current;j&&ot&&!d&&P&&console.warn(`Missing pre-initiated data for serialized key "${v}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const Le=!v||!o||D().isPaused()||g&&!T(F)?!1:je&&!T(f)?f:d?T(z)?!1:h:T(z)||h,Ue=je&&Le,fe=T(Oe.isValidating)?Ue:Oe.isValidating,Ae=T(Oe.isLoading)?Ue:Oe.isLoading,te=p.useCallback(async W=>{const B=J.current;if(!v||!B||Y.current||D().isPaused())return!1;let X,Z,Ve=!0;const me=W||{},Q=!A[v]||!me.dedupe,K=()=>Za?!Y.current&&v===I.current&&N.current:v===I.current,We={isValidating:!1,isLoading:!1},Ne=()=>{M(We)},jt=()=>{const le=A[v];le&&le[1]===Z&&delete A[v]},_e={isValidating:!0};T(ce().data)&&(_e.isLoading=!0);try{if(Q&&(M(_e),s.loadingTimeout&&T(ce().data)&&setTimeout(()=>{Ve&&K()&&D().onLoadingSlow(v,s)},s.loadingTimeout),A[v]=[B(ue),xa()]),[X,Z]=A[v],X=await X,Q&&setTimeout(jt,s.dedupingInterval),!A[v]||A[v][1]!==Z)return Q&&K()&&D().onDiscarded(v),!1;We.error=se;const le=C[v];if(!T(le)&&(Z<=le[0]||Z<=le[1]||le[1]===0))return Ne(),Q&&K()&&D().onDiscarded(v),!1;const Ie=ce().data;We.data=c(Ie,X)?Ie:X,Q&&K()&&D().onSuccess(X,v,s)}catch(le){jt();const Ie=D(),{shouldRetryOnError:Bt}=Ie;Ie.isPaused()||(We.error=le,Q&&K()&&(Ie.onError(le,v,Ie),(Bt===!0||Ge(Bt)&&Bt(le))&&(!D().revalidateOnFocus||!D().revalidateOnReconnect||oe())&&Ie.onErrorRetry(le,v,Ie,q=>{const Qe=V[v];Qe&&Qe[0]&&Qe[0](Ya,q)},{retryCount:(me.retryCount||0)+1,dedupe:!0})))}return Ve=!1,Ne(),!0},[v,r]),Ze=p.useCallback((...W)=>qa(r,I.current,...W),[]);if(ua(()=>{J.current=o,ae.current=s,T(R)||(Te.current=R)}),ua(()=>{if(!v)return;const W=te.bind(se,ya);let B=0;D().revalidateOnFocus&&(B=Date.now()+D().focusThrottleInterval);const Z=ko(v,V,(Ve,me={})=>{if(Ve==Ba){const Q=Date.now();D().revalidateOnFocus&&Q>B&&oe()&&(B=Q+D().focusThrottleInterval,W())}else if(Ve==Ha)D().revalidateOnReconnect&&oe()&&W();else{if(Ve==Ua)return te();if(Ve==Ya)return te(me)}});return Y.current=!1,I.current=v,N.current=!0,M({_k:ue}),Le&&(A[v]||(T(z)||st?W():so(W))),()=>{Y.current=!0,Z()}},[v]),ua(()=>{let W;function B(){const Z=Ge(S)?S(ce().data):S;Z&&W!==-1&&(W=setTimeout(X,Z))}function X(){!ce().error&&(b||D().isVisible())&&(m||D().isOnline())?te(ya).then(B):B()}return B(),()=>{W&&(clearTimeout(W),W=-1)}},[S,b,m,v]),p.useDebugValue(Ee),d){if(!Za&&st&&P)throw new Error("Fallback data is required when using Suspense in SSR.");P&&(J.current=o,ae.current=s,Y.current=!1);const W=_[v],B=!T(W)&&P?Ze(W):ss;if(va(B),!T(F)&&P)throw F;const X=P?te(ya):ss;!T(Ee)&&P&&(X.status="fulfilled",X.value=!0),va(X)}return{mutate:Ze,get data(){return re.data=!0,Ee},get error(){return re.error=!0,F},get isValidating(){return re.isValidating=!0,fe},get isLoading(){return re.isLoading=!0,Ae}}}),jo=({children:e})=>{const o=p.useRef(null),[s,r]=p.useState(null);return p.useEffect(()=>{if(o.current&&!o.current.shadowRoot){const c=o.current.attachShadow({mode:"open"});document.querySelectorAll("style[data-vite-dev-id], style:not([data-vite-dev-id])").forEach(f=>{(f.textContent?.includes(".vg-")||f.textContent?.includes("--vg-"))&&c.appendChild(f.cloneNode(!0))});const l=document.createElement("link");l.rel="stylesheet",l.href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap",c.appendChild(l),r(c)}},[]),t.jsx("div",{"data-vg-id":"49696d6b","data-source-path":"/src/components/ShadowRootWrapper.tsx:38",ref:o,id:"viewgate-shadow-host",style:{position:"relative",zIndex:2147483647},children:s&&Fs.createPortal(e,s)})};const rs=(...e)=>e.filter((o,s,r)=>!!o&&o.trim()!==""&&r.indexOf(o)===s).join(" ").trim();const Oo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Eo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,s,r)=>r?r.toUpperCase():s.toLowerCase());const ns=e=>{const o=Eo(e);return o.charAt(0).toUpperCase()+o.slice(1)};var Co={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Vo=e=>{for(const o in e)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const _o=p.forwardRef(({color:e="currentColor",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:c="",children:d,iconNode:l,...f},h)=>p.createElement("svg",{ref:h,...Co,width:o,height:o,stroke:e,strokeWidth:r?Number(s)*24/Number(o):s,className:rs("lucide",c),...!d&&!Vo(f)&&{"aria-hidden":"true"},...f},[...l.map(([S,b])=>p.createElement(S,b)),...Array.isArray(d)?d:[d]]));const U=(e,o)=>{const s=p.forwardRef(({className:r,...c},d)=>p.createElement(_o,{ref:d,iconNode:o,className:rs(`lucide-${Oo(ns(e))}`,`lucide-${e}`,r),...c}));return s.displayName=ns(e),s};const xt=U("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);const Ro=U("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);const is=U("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Go=U("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const Ke=U("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const cs=U("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);const ba=U("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const To=U("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const Be=U("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const Ao=U("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);const No=U("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);const zt=U("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);const Pt=U("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);const Mt=U("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const ds=U("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);const Lt=U("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);const Io=U("mouse-pointer-2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);const vt=U("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);const zo=U("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Po=U("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);const Mo=U("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const Wt=U("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);const Lo=U("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const yt=U("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Wo={en:{enterMode:"Enter Feedback Mode",exitMode:"Exit Mode",completed:"Completed",feedbackHeader:"Feedback",selectedElement:"Selected element:",line:"Line",placeholder:"Tell us what you'd like to change...",cancel:"Cancel",send:"Send Feedback",submitting:"Submitting...",success:"Your feedback has been submitted successfully!",error:"Failed to submit feedback. Check backend connection.",successHeader:"Success",errorHeader:"Error",preview:"Preview",viewComments:"View Comments",close:"Close",observe:"Observe",pending:"Pending",readyForReview:"Ready for Review",noComments:"No comments found.",deleteConfirm:"Delete comment",completeConfirm:"Mark as completed?",confirmComplete:"The ticket will be marked as completed and archived.",markReady:"Mark as Ready for Review",reopen:"Reopen",reopenPlaceholder:"Add a new comment before confirming...",review:"Review",confirmDelete:"Are you sure you want to permanently delete this comment? This action cannot be undone.",markReadyConfirm:"Mark as Ready for Review?",confirmMarkReady:"Do you want to mark this comment as ready for review? it will be moved to the review state.",reopenConfirm:"Reopen comment",confirmReopen:"Do you want to set this comment back to pending status?",yes:"Yes, confirm",no:"No, cancel",deleteSuccess:"Comment deleted successfully.",updateSuccess:"Updated successfully.",navigating:"Redirecting to review...",selectToComment:"Click to comment",feedbackSubheader:"What would you like to improve here?",sendFeedback:"Send Comment",edit:"Edit",save:"Save",commentDetails:"Comment Details",annotations:"Comments",viewAll:"View All",exitConfirmTitle:"Close ViewGate?",exitConfirmMessage:"Are you sure you want to close ViewGate? Remember you can reopen it by pressing ALT once (Normal Mode) or holding it for 1 second (Backlog Mode).",backlog:"Backlog",low:"Low",medium:"Medium",high:"High",urgent:"Urgent",priority:"Priority",selectMember:"Select who you are to comment",asMember:"Commenting as",changeMember:"Change",focusAreas:"Focus Areas",frontend:"Frontend",backend:"Backend",ux:"UX/UI",figmaLink:"Figma Reference Link",figmaLinkPlaceholder:"https://www.figma.com/file/...",endpoint:"Related Backend Endpoint",selectEndpoint:"Select endpoint...",figmaNamePlaceholder:"e.g. Main Design, Modal, etc.",addLink:"Add another link",removeLink:"Remove",figmaPrimaryDesign:"Principal Design",invalidToken:"Invalid or expired token"},es:{enterMode:"Activar Modo Comentarios",exitMode:"Salir del Modo",completed:"Completado",feedbackHeader:"Comentarios",selectedElement:"Elemento seleccionado:",line:"Línea",placeholder:"Cuéntanos qué te gustaría cambiar...",cancel:"Cancelar",send:"Enviar Comentarios",submitting:"Enviando...",success:"¡Tus comentarios se han enviado con éxito!",error:"Error al enviar comentarios. Revisa la conexión con el servidor.",successHeader:"Éxito",errorHeader:"Error",preview:"Vista previa",viewComments:"Ver Comentarios",close:"Cerrar",observe:"Observar",pending:"Pendiente",readyForReview:"Listo para revisión",noComments:"No hay comentarios.",deleteConfirm:"Eliminar comentario",completeConfirm:"¿Completar ticket?",confirmComplete:"El ticket se marcará como completado y se archivará.",markReady:"Marcar como Listo para revisión",reopen:"Reabrir",reopenPlaceholder:"Agrega un nuevo comentario antes de confirmar...",review:"Revisar",confirmDelete:"¿Estás seguro de que deseas eliminar permanentemente este comentario? Esta acción no se puede deshacer.",markReadyConfirm:"¿Listo para revisión?",confirmMarkReady:"¿Deseas marcar este comentario como listo para revisión? Pasará al estado de revisión.",reopenConfirm:"Reabrir comentario",confirmReopen:"¿Deseas volver a poner este comentario en estado pendiente?",yes:"Sí, confirmar",no:"No, cancelar",deleteSuccess:"El comentario ha sido eliminado.",updateSuccess:"Actualizado correctamente.",navigating:"Redirigiendo a revisión...",selectToComment:"Haz clic para comentar",feedbackSubheader:"¿Qué te gustaría mejorar aquí?",sendFeedback:"Enviar Comentario",edit:"Editar",save:"Guardar",commentDetails:"Detalles del Comentario",annotations:"Comentarios",viewAll:"Ver Todos",exitConfirmTitle:"¿Cerrar ViewGate?",exitConfirmMessage:"¿Estás seguro de que deseas cerrar ViewGate? Recuerda que puedes volver a activarlo pulsando una vez la tecla ALT (Modo Normal) o manteniéndola pulsada 1 segundo (Modo Backlog).",backlog:"Backlog",low:"Baja",medium:"Media",high:"Alta",urgent:"Urgente",priority:"Prioridad",selectMember:"Selecciona quién eres para comentar",asMember:"Comentando como",changeMember:"Cambiar",focusAreas:"Áreas de Foco",frontend:"Frontend",backend:"Backend",ux:"UX/UI",figmaLink:"Link de Referencia Figma",figmaLinkPlaceholder:"https://www.figma.com/file/...",endpoint:"Endpoint de Backend Relacionado",selectEndpoint:"Seleccionar endpoint...",figmaNamePlaceholder:"ej. Diseño Principal, Modal, etc.",addLink:"Agregar otro link",removeLink:"Eliminar",figmaPrimaryDesign:"Diseño Principal",invalidToken:"Token inválido o expirado"}},ls=p.createContext(void 0),ps=()=>{const e=p.useContext(ls);if(!e)throw new Error("useViewGate must be used within a ViewGateProvider");return e},bt="viewgate_enabled",Do=()=>{if(typeof window>"u")return!1;const e=new URLSearchParams(window.location.search);return e.has("viewgate")||e.has("viewgate-backlog")?(sessionStorage.setItem(bt,"true"),!0):sessionStorage.getItem(bt)==="true"},Fo=({children:e,language:o="es",apiKey:s,baseUrl:r="https://view-gate.vercel.app",dashboardUrl:c})=>{const d=c||(r==="https://view-gate.vercel.app"?"https://view-gate-dashboard.vercel.app":r.includes("localhost:5000")?r.replace("5000","3000"):r),[l,f]=p.useState(!1),[h,S]=p.useState([]);p.useRef(0);const b=p.useRef(null),m=p.useRef(!1);p.useEffect(()=>{f(Do());const C=_=>{_.key==="Alt"&&!_.repeat&&(_.preventDefault(),m.current=!1,b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{const v=new URL(window.location.href);v.searchParams.delete("viewgate"),v.searchParams.set("viewgate-backlog","true"),window.history.replaceState({},"",v.toString()),f(!0),sessionStorage.setItem(bt,"true"),window.dispatchEvent(new PopStateEvent("popstate")),j(o==="es"?"Modo Backlog activado":"Backlog Mode activated","success"),m.current=!0,b.current=null},1e3))},A=_=>{if(_.key==="Alt"&&(_.preventDefault(),b.current)){clearTimeout(b.current),b.current=null;const v=new URL(window.location.href);v.searchParams.delete("viewgate-backlog"),v.searchParams.set("viewgate","true"),window.history.replaceState({},"",v.toString()),f(!0),sessionStorage.setItem(bt,"true"),window.dispatchEvent(new PopStateEvent("popstate")),j(o==="es"?"Modo Normal activado":"Normal Mode activated","success")}};return window.addEventListener("keydown",C),window.addEventListener("keyup",A),()=>{window.removeEventListener("keydown",C),window.removeEventListener("keyup",A)}},[o]);const x=()=>{if(sessionStorage.removeItem(bt),f(!1),typeof window<"u"){const C=new URL(window.location.href);C.searchParams.delete("viewgate"),window.history.replaceState({},"",C.toString())}},j=(C,A)=>{const _=Date.now();S(v=>[...v,{id:_,message:C,type:A}]),setTimeout(()=>{S(v=>v.filter(ue=>ue.id!==_))},4e3)},V=Wo[o];return t.jsxs(ls.Provider,{"data-vg-id":"89da3486","data-source-path":"/src/components/ViewGateProvider.tsx:369",value:{addToast:j,language:o,t:V,apiKey:s,baseUrl:r,dashboardUrl:d,disableViewGate:x,hasActiveToasts:h.length>0},children:[e,l&&t.jsx(jo,{"data-vg-id":"f1499d3a","data-source-path":"/src/components/ViewGateProvider.tsx:381",children:t.jsxs("div",{"data-vg-id":"1bedb79b","data-source-path":"/src/components/ViewGateProvider.tsx:382",className:"vg-container",children:[t.jsx(Ss,{"data-vg-id":"d3f262cb","data-source-path":"/src/components/ViewGateProvider.tsx:383"}),t.jsx("div",{"data-vg-id":"1bedb79d","data-source-path":"/src/components/ViewGateProvider.tsx:384",className:"vg-toasts",style:{zIndex:2147483647},children:h.map(C=>t.jsxs("div",{"data-vg-id":"1bedb79e","data-source-path":"/src/components/ViewGateProvider.tsx:386",className:`vg-toast vg-animate-slide ${C.type}`,children:[C.type==="success"?t.jsx(Ke,{"data-vg-id":"c7ae3b26","data-source-path":"/src/components/ViewGateProvider.tsx:388",size:24,color:"#22c55e"}):C.type==="warning"?t.jsx(Lo,{"data-vg-id":"137eb473","data-source-path":"/src/components/ViewGateProvider.tsx:390",size:24,color:"#f59e0b"}):t.jsx(Go,{"data-vg-id":"e7ad3c7c","data-source-path":"/src/components/ViewGateProvider.tsx:392",size:24,color:"#ef4444"}),t.jsxs("div",{"data-vg-id":"61c93bb7","data-source-path":"/src/components/ViewGateProvider.tsx:394",children:[t.jsx("strong",{"data-vg-id":"29b8e974","data-source-path":"/src/components/ViewGateProvider.tsx:395",style:{display:"block",fontSize:"13px",color:"#0f172a",textTransform:"uppercase",marginBottom:"2px"},children:C.type==="success"?V.successHeader:C.type==="warning"?o==="es"?"Aviso":"Warning":V.errorHeader}),t.jsx("span",{"data-vg-id":"fbbd7822","data-source-path":"/src/components/ViewGateProvider.tsx:398",style:{fontSize:"14px",color:"#000000"},children:C.message})]})]},C.id))})]})})]})},us=async(e,o={})=>{const{scale:s=window.devicePixelRatio||2,padding:r=48,backgroundColor:c="#000000",logging:d=!1}=o,l=e.getBoundingClientRect(),f=document.createElement("canvas");f.width=(l.width+r*2)*s,f.height=(l.height+r*2)*s;const h=f.getContext("2d");return h?(h.fillStyle=c,h.fillRect(0,0,f.width,f.height),h.save(),h.scale(s,s),h.translate(r-l.left,r-l.top),d&&console.log("[VGCap] Starting recursive render of",e),await fs(e,h),h.restore(),f.toDataURL("image/webp",.98)):""},fs=async(e,o)=>{if(e.nodeType===Node.TEXT_NODE){await Ho(e,o);return}if(e.nodeType!==Node.ELEMENT_NODE)return;const s=e,r=window.getComputedStyle(s);if(r.display==="none"||r.visibility==="hidden"||r.opacity==="0")return;const c=s.getBoundingClientRect();o.save(),o.globalAlpha=parseFloat(r.opacity||"1"),Bo(o,c,r),s instanceof HTMLImageElement&&await Uo(o,s,c),r.backgroundImage!=="none"&&await Yo(o,s,c,r);const d=Array.from(s.childNodes);for(const l of d)await fs(l,o);o.restore()},Bo=(e,o,s)=>{const r=parseFloat(s.borderRadius)||0,c=s.backgroundColor;if(e.beginPath(),r>0){const l=o.left,f=o.top,h=o.width,S=o.height;e.moveTo(l+r,f),e.arcTo(l+h,f,l+h,f+S,r),e.arcTo(l+h,f+S,l,f+S,r),e.arcTo(l,f+S,l,f,r),e.arcTo(l,f,l+h,f,r),e.closePath()}else e.rect(o.left,o.top,o.width,o.height);if(s.boxShadow!=="none"){const l=s.boxShadow.match(/rgba?\(.*?\)\s+(\d+)px\s+(\d+)px\s+(\d+)px/);l&&l[0]&&(e.shadowColor=l[0],e.shadowBlur=parseInt(l[3]||"0"),e.shadowOffsetX=parseInt(l[1]||"0"),e.shadowOffsetY=parseInt(l[2]||"0"))}c!=="rgba(0, 0, 0, 0)"&&c!=="transparent"&&(e.fillStyle=c,e.fill());const d=parseFloat(s.borderWidth)||0;d>0&&(e.strokeStyle=s.borderColor,e.lineWidth=d,e.stroke()),e.shadowColor="transparent",e.shadowBlur=0},Ho=async(e,o)=>{const s=e.parentElement;if(!s||!e.textContent?.trim())return;const r=window.getComputedStyle(s),c=document.createRange();c.selectNodeContents(e);const d=c.getClientRects();if(d.length===0)return;o.font=`${r.fontStyle} ${r.fontVariant} ${r.fontWeight} ${r.fontSize} ${r.fontFamily}`,o.fillStyle=r.color,o.textBaseline="alphabetic";const l=e.textContent||"";for(const f of Array.from(d)){o.fillText(l,f.left,f.bottom-parseFloat(r.fontSize||"16")*.2);break}},Uo=async(e,o,s,r)=>{if(o.complete)try{e.drawImage(o,s.left,s.top,s.width,s.height)}catch{}},Yo=async(e,o,s,r)=>{const d=r.backgroundImage.match(/url\(["']?(.*?)["']?\)/);if(!d)return;const l=d[1],f=new Image;f.crossOrigin="anonymous",f.src=l,await new Promise(h=>{f.onload=h,f.onerror=h,setTimeout(h,500)}),f.complete&&f.naturalWidth>0&&e.drawImage(f,s.left,s.top,s.width,s.height)},wt=2147e6,gs=wt,Je=wt,Xo=wt-100,Ko=wt-50,Jo=wt-150,Ce="data-vg-pin-id",Zo=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},ms=(e,o)=>{if(!e)return"";try{const s=new Date(e);return isNaN(s.getTime())?"":new Intl.DateTimeFormat(o==="es"?"es-ES":"en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(s)}catch{return""}},hs=({url:e,className:o,style:s,tooltipStyle:r,onHover:c})=>{const d=p.useRef(null),l=()=>{if(!d.current||!c)return;const S=d.current.getBoundingClientRect(),b=S.top,m=window.innerHeight-S.bottom,x=b<140&&m>b?"bottom":"top";c({url:e,x:S.left+S.width/2,y:x==="top"?S.top:S.bottom,direction:x})},f=S=>S.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),h=()=>{try{const S=f(window.location.pathname),b=new URL(e),m=f(b.pathname);return S===m||S.startsWith(m)||m.startsWith(S)}catch{return!1}};return t.jsxs("div",{ref:d,className:`vg-url-tag ${o||""}`,style:{...s,opacity:h()?1:.6,borderColor:h()?"var(--vg-primary)":"#e2e8f0"},onMouseEnter:l,onMouseMove:l,onMouseLeave:()=>c?.(null),children:[t.jsx(Be,{"data-vg-id":"353251b6","data-source-path":"/src/components/ViewGateOverlay.tsx:149",size:s?.fontSize?parseInt(s.fontSize)+1:10}),t.jsx("span",{"data-vg-id":"1b724dd0","data-source-path":"/src/components/ViewGateOverlay.tsx:150",style:{maxWidth:s?.maxWidth||"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:new URL(e).pathname})]})},kt=e=>{const o=[],s=[],r=[];let c=e,d=!1;for(;c&&c.nodeType===Node.ELEMENT_NODE;){const l=c.localName.toLowerCase();let f=1,h=c.previousElementSibling;for(;h;)h.localName.toLowerCase()===l&&f++,h=h.previousElementSibling;const S=l==="body"||l==="head"||l==="html"?l:`${l}:nth-of-type(${f})`;if(r.unshift(S),!d){const b=c.getAttribute("data-testid")||c.getAttribute("data-qa");if(b){const m=c.hasAttribute("data-testid")?"data-testid":"data-qa";s.push(`[${m}="${b}"]`)}c.id&&!c.id.startsWith("vg-")&&!c.id.includes(":")?(o.unshift(`#${c.id}`),d=!0):b?(o.unshift(`[${c.hasAttribute("data-testid")?"data-testid":"data-qa"}="${b}"]`),d=!0):o.unshift(S)}if(c=c.parentElement,l==="html")break}return{selector:o.join(" > "),fallbacks:s,vgPath:r.join(" > ")}},xs=e=>{const{vgPath:o}=kt(e);return{vgPath:o,classHash:e.className,parentTag:e.parentElement?.tagName.toLowerCase(),neighborCount:e.parentElement?.children.length,ariaLabel:e.getAttribute("aria-label")||e.getAttribute("title")||void 0,role:e.getAttribute("role")||void 0,name:e.getAttribute("name")||void 0,type:e.getAttribute("type")||void 0,placeholder:e.getAttribute("placeholder")||void 0,testId:e.getAttribute("data-testid")||e.getAttribute("data-qa")||void 0,textSnippet:(e.innerText||"").slice(0,50).trim()}},Qo=(()=>{let e=null,o=null;return s=>{if(!s||typeof window>"u"||typeof document>"u")return s;if(s.includes("oklch")||s.includes("oklab")||s.includes("lab(")||s.includes("lch(")||s.includes("color("))try{if(e||(e=document.createElement("canvas"),e.width=1,e.height=1),o||(o=e.getContext("2d",{willReadFrequently:!0})),o){o.fillStyle="#000000",o.fillStyle=s;const d=o.fillStyle;if(d&&!d.includes("oklch")&&!d.includes("oklab"))return d}const r=document.createElement("div");r.style.color=s,document.body.appendChild(r);const c=getComputedStyle(r).color;return document.body.removeChild(r),c&&!c.includes("oklch")?c:"rgb(0,0,0)"}catch{return"rgb(0,0,0)"}return s}})(),qo=e=>{const o=window.getComputedStyle(e),s={};return["display","position","margin","padding","font-size","color","background-color","width","height","z-index"].forEach(c=>{const d=o.getPropertyValue(c);s[c]=Qo(d)}),s},$o=e=>{const s=Object.keys(e).find(d=>d.startsWith("__reactFiber$")||d.startsWith("__reactInternalInstance$"));if(!s)return"";const r=[];let c=e[s];for(;c;){const d=c.type;if(typeof d=="function"){const l=d.displayName||d.name;l&&!l.includes("ViewGate")&&!r.includes(l)&&r.unshift(l)}c=c.return}return r.join(" > ")||"Generic Component"},Dt=e=>{if(!e||e.id==="viewgate-ui"||e.id==="viewgate-shadow-host"||e.closest("#viewgate-shadow-host"))return!1;if(e.getAttribute("role")==="dialog"||e.getAttribute("aria-modal")==="true"||e.classList.contains("modal")||e.classList.contains("modal-content"))return!0;const o=window.getComputedStyle(e),s=e.getBoundingClientRect(),r=e.getAttribute("role");if(r&&["listbox","menu","combobox","tooltip","option"].includes(r)||s.width<120&&s.height<120)return!1;const d=parseInt(o.zIndex)||0,l=o.position==="fixed"||o.position==="absolute",f=s.width>window.innerWidth*.4&&s.height>window.innerHeight*.4,h=Math.abs(s.left+s.width/2-window.innerWidth/2)<50,S=e.getAttribute("class")||"",b=S.toLowerCase().includes("modal")||S.toLowerCase().includes("dialog");return!!(l&&d>=100&&(f||h||b))},Ft=e=>{let o=e;for(;o&&o!==document.body;){if(Dt(o))return o;o=o.parentElement}return null},Me=e=>{if(!e.isConnected)return!1;const o=window.getComputedStyle(e);if(o.display==="none"||o.visibility==="hidden"||o.opacity==="0")return e.tagName!=="BODY"&&e.tagName,!1;if(e.offsetWidth===0||e.offsetHeight===0)return!1;let s=e.parentElement;for(;s;){const c=window.getComputedStyle(s);if(c.display==="none"||c.visibility==="hidden"||c.opacity==="0")return!1;s=s.parentElement}const r=e.getBoundingClientRect();return!(r.width===0||r.height===0)},vs=(e,o=document)=>{const s=o.querySelector(e);if(s)return s;const r=o.querySelectorAll("*");for(const c of Array.from(r)){const d=c.shadowRoot;if(d){const l=vs(e,d);if(l)return l}}return null},ys=(e,o)=>{let s=document.elementFromPoint(e,o);for(;s&&s.shadowRoot;){const r=s.shadowRoot.elementFromPoint(e,o);if(!r||r===s)break;s=r}return s},er=e=>{if(!e.tag)return null;const o=Array.from(document.getElementsByTagName(e.tag));let s=null,r=0;for(const c of o){if(!St(c,e))continue;let d=0;const l=c.getAttribute("placeholder"),f=e.attributes?.placeholder||e.fingerprint?.placeholder;f&&l===f&&(d+=6);const h=c.getAttribute("type"),S=e.attributes?.type||e.fingerprint?.type;if(S&&h===S&&(d+=2),c.innerText?.trim()===e.text.trim()&&(d+=5),e.fingerprint?.vgPath){const{vgPath:b}=kt(c);(b===e.vgPath||e.fingerprint?.vgPath===b)&&(d+=10)}d>r&&d>=7&&(r=d,s=c)}return s},St=(e,o)=>{if(e.tagName.toLowerCase()!==o.tag.toLowerCase())return!1;const s=e.getAttribute("placeholder"),r=o.attributes?.placeholder||o.fingerprint?.placeholder;if(r&&s&&r!==s)return!1;const c=e.getAttribute("type"),d=o.attributes?.type||o.fingerprint?.type;return!(d&&c&&d!==c)},bs=(e,o)=>{if(o){const l=Array.from(document.querySelectorAll(`[${Ce}="${o}"]`));if(l.length>0){const f=l.filter(h=>St(h,e));if(f.length===0)l.forEach(h=>h.removeAttribute(Ce));else{const h=f.find(b=>{const{vgPath:m}=kt(b);return m===e.vgPath||e.fingerprint?.vgPath===m}),S=h&&Me(h)?h:f.find(b=>!(!Me(b)||e.metadata?.isModal&&!b.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')));return S?(l.forEach(b=>{b!==S&&b.removeAttribute(Ce)}),S):null}}}if(e.vgPath)try{const l=document.querySelector(e.vgPath);if(l&&St(l,e)&&Me(l)&&(!e.metadata?.isModal||Ft(l)))return l}catch{}const r=(e.selector?Array.from(document.querySelectorAll(e.selector)):[]).filter(l=>St(l,e));let c=r.find(l=>{const{vgPath:f}=kt(l);return f===e.vgPath||e.fingerprint?.vgPath===f})||r[0]||null;if(c&&Me(c))if(e.metadata?.isModal&&!Ft(c))c=null;else return c;if(e.fallbackSelectors)for(const l of e.fallbackSelectors){const f=vs(l);if(f&&St(f,e)&&Me(f)){if(e.metadata?.isModal&&!Ft(f))continue;return f}}const d=er(e);return d&&Me(d)?e.metadata?.isModal&&!Ft(d)?null:d:null},wa=e=>({tag:e.tagName.toLowerCase(),text:(e.innerText||e.getAttribute("placeholder")||"").slice(0,50).trim(),role:e.getAttribute("role")||void 0,type:e.getAttribute("type")||void 0}),ws=e=>{if(!e)return"";let o=e.replace(/<path[^>]*d="([^"]{50,})"[^>]*\/?>/gi,(s,r)=>s.replace(r,`${r.substring(0,20)}...[STRIPPED_${r.length}]`));return o=o.replace(/<polygon[^>]*points="([^"]{50,})"[^>]*\/?>/gi,(s,r)=>s.replace(r,`${r.substring(0,20)}...[STRIPPED_${r.length}]`)),o},tr=e=>{const o=e.parentElement;if(!o)return;const s=Array.from(o.children).filter(l=>l!==e).slice(0,5).map(l=>wa(l)),r=Array.from(o.children),c=r.indexOf(e);let d="middle";return c===0&&(d="start"),c===r.length-1&&(d="end"),{target:{...wa(e),location:`${d} of ${o.tagName.toLowerCase()}`},parent:wa(o),siblings:s}},ks=(e,o)=>{const s=e.getAttribute("data-vg-id")||void 0;let r;const d=Object.keys(e).find(_=>_.startsWith("__reactFiber$")||_.startsWith("__reactInternalInstance$"));if(d){let _=e[d];for(;_;){if(_._debugSource){const{fileName:v,lineNumber:ue,columnNumber:N}=_._debugSource;r=`${v}:${ue}${N?":"+N:""}`;break}_=_.return}}const l=xs(e),f={vgId:s?1:0,fiber:r?.8:0,fingerprint:.5+(l.testId?.3:0)+(l.ariaLabel?.1:0)};let h=e.getAttribute("data-source-path")||r||"unknown:0";const S=$o(e),{selector:b,fallbacks:m,vgPath:x}=kt(e),j={};["placeholder","aria-label","name","type","alt","title","value","role","data-testid"].forEach(_=>{const v=e.getAttribute(_);v&&(j[_]=v)});const V=(()=>{let _=e;for(;_&&_!==document.body;){if(Dt(_))return!0;_=_.parentElement}return!1})();let C;V&&o&&!o.closest('[role="dialog"], [aria-modal="true"], .modal, .modal-content')&&(C=ks(o));const A=`${e.tagName.toLowerCase()}-${(e.innerText||"").slice(0,20).replace(/\s+/g,"_")}-${b.split(" > ").slice(-1)}`;return{tag:e.tagName.toLowerCase(),id:e.id||"",classes:e.className||"",text:(e.innerText||"").slice(0,100).trim(),selector:b,vgPath:x,vgId:s,outerHtml:ws(e.outerHTML),parentContext:e.parentElement?`<${e.parentElement.tagName.toLowerCase()} ${Array.from(e.parentElement.attributes).map(_=>`${_.name}="${_.value}"`).join(" ").slice(0,500)}>`:"N/A",componentPath:S,signature:A,source:h,attributes:j,confidence:f,fallbackSelectors:[...new Set(m)].slice(0,5),domPath:[],viewportSize:{width:window.innerWidth,height:window.innerHeight},uiContext:tr(e),fingerprint:xs(e),metadata:{hint:`Edit ${h.split(":")[0]} at line ${h.split(":")[1]||"?"}`,computedStyles:qo(e),viewportBreakpoint:Zo(),outerHtml:ws(e.outerHTML).slice(0,2e3),scrollPosition:{x:window.scrollX,y:window.scrollY},isModal:V,triggerReference:C}}},Ss=()=>{const{mutate:e}=as(),{addToast:o,language:s,t:r,apiKey:c,baseUrl:d,dashboardUrl:l,disableViewGate:f,hasActiveToasts:h}=ps(),[S,b]=p.useState(typeof window<"u"?window.location.pathname+window.location.search:"/"),m=p.useMemo(()=>typeof window>"u"?!1:window.location.href.includes("viewgate-backlog"),[S]);p.useEffect(()=>{const a=()=>b(window.location.pathname+window.location.search);window.addEventListener("popstate",a);const n=window.history.pushState,i=window.history.replaceState;return window.history.pushState=function(...u){n.apply(this,u),setTimeout(a,0)},window.history.replaceState=function(...u){i.apply(this,u),setTimeout(a,0)},()=>{window.removeEventListener("popstate",a),window.history.pushState=n,window.history.replaceState=i}},[]);const[x,j]=p.useState(!1),[V,C]=p.useState("medium"),[A,_]=p.useState("medium"),[v,ue]=p.useState("all"),[N,Y]=p.useState(null),[I,J]=p.useState(null),[ae,D]=p.useState(""),[oe,ce]=p.useState(!1),[M,de]=p.useState([]),[H,re]=p.useState([{name:r.figmaPrimaryDesign,link:""}]),[L,Se]=p.useState([]),[je,He]=p.useState([]),[Oe,g]=p.useState(null),[R,z]=p.useState(!1),[F,Te]=p.useState(""),[Ee,P]=p.useState(!1),[ye,ot]=p.useState("down");p.useRef(null);const[Le,Ue]=p.useState(!1),[fe,Ae]=p.useState(!1),[te,Ze]=p.useState([]),[ge,W]=p.useState(null),[B,X]=p.useState(""),[Z,Ve]=p.useState(!1),[me,Q]=p.useState({}),[K,We]=p.useState(null),[Ne,jt]=p.useState(!1),[_e,le]=p.useState(null),[Ie,Bt]=p.useState([]),[q,Qe]=p.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_token")||sessionStorage.getItem("vg_token")),[ne,Sa]=p.useState(()=>{if(typeof window>"u")return null;const a=localStorage.getItem("vg_user")||sessionStorage.getItem("vg_user");return a&&a!=="undefined"?JSON.parse(a):null}),[Ot,ja]=p.useState(()=>typeof window>"u"?null:localStorage.getItem("vg_role")||sessionStorage.getItem("vg_role")),[qe,js]=p.useState(""),[Oa,Os]=p.useState(!1),[Wr,rr]=p.useState(!1),[Et,Es]=p.useState(!1),[Ht,Cs]=p.useState(!1),[Ut,nr]=p.useState(!1),[Yt,Vs]=p.useState(!0),ir=async a=>{if(a&&a.preventDefault(),!(!qe.trim()||!d)){Os(!0);try{const n=await fetch(`${d}/api/auth/me`,{headers:{Authorization:`Bearer ${qe.trim()}`,"x-api-key":c||""}});if(!n.ok){const k=await n.json().catch(()=>({}));throw new Error(k.error||k.message||"Invalid token")}const i=await n.json();console.log("[ViewGate] Auth data received:",i);const u=i.user||(i.email?i:null),y=i.role||u?.role||"dev";if(console.log("[ViewGate] Identified as:",u?.email,u?.name,"Role:",y),!u)throw new Error("User not found in token");Qe(qe.trim()),Sa(u),ja(y),localStorage.setItem("vg_token",qe.trim()),u&&localStorage.setItem("vg_user",JSON.stringify(u)),y&&localStorage.setItem("vg_role",y),o(s==="es"?"Sesión iniciada correctamente":r.successHeader,"success"),js(""),Cs(!1),Es(!1),rr(!1),Ea()}catch(n){let i=n.message||(s==="es"?"Clave inválida o expirada":"Invalid or expired key");i.toLowerCase().includes("invalid or expired token")&&(i=r.invalidToken),o(i,"error")}finally{Os(!1)}}},Ct=p.useCallback(()=>{console.log("[VIEWGATE_WRAPPER] Clearing session"),Qe(null),Sa(null),ja(null),Vs(!1),sessionStorage.removeItem("vg_token"),sessionStorage.removeItem("vg_user"),sessionStorage.removeItem("vg_role"),localStorage.removeItem("vg_token"),localStorage.removeItem("vg_user"),localStorage.removeItem("vg_role");const a=d;e(n=>typeof n=="string"&&a&&n.startsWith(a),void 0,{revalidate:!1}),Ze([]),le(null),j(!1),J(null),D(""),Ae(!1),o(s==="es"?"Sesión finalizada o inválida":"Session ended or invalid","error")},[d,s]);p.useEffect(()=>{const a=n=>{if(n.data?.type?.startsWith("VIEWGATE_")&&console.log("[VIEWGATE_WRAPPER] Received message:",n.data.type,n.data),n.data?.type==="VIEWGATE_AUTH_SUCCESS"||n.data?.type==="VIEWGATE_SILENT_AUTH"){const{token:i,user:u,role:y,error:k}=n.data;if(console.log("[VIEWGATE_WRAPPER] Auth process:",{type:n.data.type,hasToken:!!i,hasUser:!!u}),k==="NO_SESSION")return;const E=sessionStorage.getItem("vg_token");if(i&&i!==E||!i&&E){console.log("[VIEWGATE_WRAPPER] Session sync detected change, clearing caches");const O=d;e($=>typeof $=="string"&&O&&$.startsWith(O),void 0,{revalidate:!0}),Ze([])}i&&(Qe(i),sessionStorage.setItem("vg_token",i),localStorage.setItem("vg_token",i),u&&(Sa(u),ja(y||u.role||"dev"),sessionStorage.setItem("vg_user",JSON.stringify(u)),localStorage.setItem("vg_user",JSON.stringify(u))),n.data.type==="VIEWGATE_AUTH_SUCCESS"&&o(s==="es"?"Sesión iniciada correctamente":"Logged in successfully","success"))}if(n.data?.type==="VIEWGATE_LOGOUT"){if(console.log("[VIEWGATE_WRAPPER] Logout message received"),sessionStorage.getItem("vg_token")){console.log("[VIEWGATE_WRAPPER] Protective logout: Ignoring logout since we have a valid manual session.");return}Ct()}};return window.addEventListener("message",a),()=>window.removeEventListener("message",a)},[s,Ct,d]);const Ea=p.useCallback(()=>{if(!c||!d||Ht)return;const a={"x-api-key":c};q&&(a.Authorization=`Bearer ${q}`),fetch(`${d}/api/projects/settings-check`,{headers:a}).then(n=>{if(n.status===403)throw Ct(),new Error("Unauthorized");return n.json()}).then(n=>{n.projectId&&g(n.projectId),typeof n.isFigmaConnected=="boolean"&&z(n.isFigmaConnected),typeof n.hasEndpoints=="boolean"&&nr(n.hasEndpoints),Cs(!0)}).catch(n=>{n.message!=="Unauthorized"&&console.error("Failed to fetch project settings-check",n)})},[c,d,Ht]),Ca=p.useCallback(()=>{if(!c||!d||Et)return;const a={"x-api-key":c};q&&(a.Authorization=`Bearer ${q}`),fetch(`${d}/api/projects/endpoints`,{headers:a}).then(n=>{if(n.status===403)throw Ct(),new Error("Unauthorized");return n.json()}).then(n=>{n.endpoints&&Array.isArray(n.endpoints)?He(n.endpoints):Array.isArray(n)&&He(n),typeof n.isFigmaConnected=="boolean"&&z(n.isFigmaConnected),Es(!0)}).catch(n=>{n.message!=="Unauthorized"&&console.error("Failed to fetch project endpoints",n)})},[c,d,Et]);p.useEffect(()=>{(x||q)&&(Ht||Ea())},[x,q,Ht,Ea]),p.useEffect(()=>{Ee&&!Et&&Ca()},[Ee,Et,Ca]),p.useEffect(()=>{if(M.length===0)return;const a=["frontend"];Ut&&a.push("backend"),R&&a.push("ux");const n=M.filter(i=>a.includes(i));n.length!==M.length&&de(n)},[je.length,R,M]);const _s=p.useCallback(async a=>{const n={"x-api-key":c};q&&(n.Authorization=`Bearer ${q}`);const i=await fetch(a,{headers:n});if(!i.ok){i.status===403&&Ct();const u=await i.json().catch(()=>({}));let y=u.message||u.error||"Fetch failed";y.toLowerCase().includes("invalid or expired token")&&(y=r.invalidToken);const k=new Error(y);throw k.status=i.status,k}return Vs(!0),i.json()},[c,q]),cr=p.useMemo(()=>m?"backlog":"pending,todo,in_progress,review,ready_for_review,bug_fixing",[m]),{data:Xt,isLoading:Kt,error:Rs}=os(c?`${d}/api/projects/active-sprint`:null,_s,{revalidateOnFocus:!0,revalidateOnMount:!0,dedupingInterval:6e4}),{data:Vt,isLoading:$e,mutate:Jt}=os(c&&(Xt||m)?`${d}/api/annotations?status=${cr}`:null,_s,{refreshInterval:3e4,revalidateOnFocus:!0,dedupingInterval:5e3}),[et,Gs]=p.useState(null),[rt,Dr]=p.useState(null),Ts=p.useRef(te);Ts.current=te;const[ie,Zt]=p.useState(null),As=p.useRef(null),[nt,dr]=p.useState([]),Ns=p.useMemo(()=>{const a=(F||"").toLowerCase().trim();return a?je.filter(n=>{const i=n.path&&n.path.toLowerCase().includes(a),u=n.description&&n.description.toLowerCase().includes(a),y=n.method&&n.method.toLowerCase().includes(a);return i||u||y}):je},[je,F]),Is=p.useMemo(()=>{const a={},n=s==="es"?"Seleccionados":"Selected";return Ns.forEach(i=>{const u=`${i.method}|${i.path}`;L.includes(u)&&(a[n]||(a[n]={name:n,endpoints:[]}),a[n].endpoints.push(i));const k=(i.path||"").split("/").filter($=>$&&!["api","v1.0","v2","rest"].includes($.toLowerCase()));let E=k.length>0?k[0]:"General";E=E.replace(/([a-z])([A-Z])/g,"$1 $2"),E=E.replace(/([A-Z])([A-Z][a-z])/g,"$1 $2"),E=E.charAt(0).toUpperCase()+E.slice(1),a[E]||(a[E]={name:E,endpoints:[]});const O=a[E];O&&O.endpoints.push(i)}),Object.values(a).sort((i,u)=>i.name===n?-1:u.name===n||i.name==="General"?1:u.name==="General"?-1:i.name.localeCompare(u.name))},[Ns,L,s]),Va=p.useMemo(()=>{let a=Array.isArray(te)?te:[];if(K){const i=nt.find(u=>u.annotations&&Array.isArray(u.annotations)&&u.annotations.some(y=>y._id===K));i?a=i.annotations:a=a.filter(u=>u._id===K)}return a=a.filter(i=>i.status!=="completed"&&i.status!=="done"),window.location.href.includes("viewgate-backlog")||(ie==="pending"?a=a.filter(i=>i.status!=="ready_for_review"):ie==="ready"&&(a=a.filter(i=>i.status==="ready_for_review"))),v!=="all"&&(a=a.filter(i=>(i.priority||"medium")===v)),a},[K,te,nt,ie,v]);p.useEffect(()=>{K&&Va.length===0&&!$e&&We(null)},[K,Va.length,$e]);const[it,lr]=p.useState(()=>{if(typeof window>"u")return{bottom:30,right:30};const a=localStorage.getItem("vg-bar-pos");return a?JSON.parse(a):{bottom:30,right:30}}),[_t,zs]=p.useState(!1),De=p.useRef(null),pr=a=>{a.preventDefault(),a.stopPropagation();const n=a.currentTarget.parentElement?.getBoundingClientRect();n&&(zs(!0),De.current={x:a.clientX,y:a.clientY,bottom:it.bottom,right:it.right,width:n.width,height:n.height})};p.useEffect(()=>{if(!_t)return;const a=i=>{if(_t&&De.current){const u=i.clientX-De.current.x,y=i.clientY-De.current.y;let k=De.current.bottom-y,E=De.current.right-u;const O=10;k=Math.max(O,Math.min(window.innerHeight-De.current.height-O,k)),E=Math.max(O,Math.min(window.innerWidth-De.current.width-O,E)),lr({bottom:k,right:E})}},n=()=>{_t&&(zs(!1),localStorage.setItem("vg-bar-pos",JSON.stringify(it)),De.current=null)};return window.addEventListener("mousemove",a),window.addEventListener("mouseup",n),()=>{window.removeEventListener("mousemove",a),window.removeEventListener("mouseup",n)}},[_t,it]);const[ct,Qt]=p.useState(null),[Ps,Ms]=p.useState(""),[dt,_a]=p.useState([]),[tt,Rt]=p.useState([]),[Ye,qt]=p.useState([]),[$t,Ls]=p.useState(!1);p.useEffect(()=>{ct&&qt(L)},[L,ct]);const[Fr,Br]=p.useState({}),Ra=p.useRef(null),lt=p.useRef(null),Ga=p.useRef(null),ea=p.useRef(!1),Ws=p.useCallback(()=>{typeof window>"u"||ea.current||(lt.current&&cancelAnimationFrame(lt.current),lt.current=requestAnimationFrame(()=>{lt.current=null,ea.current=!0,Ga.current;const a=Ts.current,n=Array.isArray(a)?a:[],i=new Set(n.map(G=>G._id));document.querySelectorAll(`[${Ce}]`).forEach(G=>{const pe=G.getAttribute(Ce);pe&&!i.has(pe)&&G.removeAttribute(Ce)});const u=Array.from(document.querySelectorAll('[role="dialog"], [aria-modal="true"], [class*="modal" i], [class*="dialog" i], .fixed, .modal-backdrop, .fixed.inset-0')),y=u.find(G=>Dt(G)&&Me(G));let k=!!y;console.log("[ViewGate Debug] Modal Detection:",{potentialModals:u.length,activeModal:y,isAnyModalOpen:k});const E=new Map;n.forEach(G=>{if(!G||!G.reference)return;try{const be=()=>{const pt=window.location.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),Xe=new URLSearchParams(window.location.search);Xe.delete("viewgate"),Xe.sort();const ut=Xe.toString();return ut?`${pt}?${ut}`:pt},we=pt=>{try{const Xe=new URL(pt),ut=Xe.pathname.toLowerCase().replace(/\/$/g,"").replace(/\/(?:[0-9]+|(?:[0-9a-f]{24}))(?=\/|$)/g,"/:id"),ft=new URLSearchParams(Xe.search);ft.delete("viewgate"),ft.sort();const Gt=ft.toString();return Gt?`${ut}?${Gt}`:ut}catch{return""}},ke=be(),ta=we(G.url);if(ke!==ta)return}catch{return}const pe=!!G.reference.metadata?.isModal;let ee=bs(G.reference,G._id);if(console.log(`[ViewGate Debug] Processing Pin [${G._id}]:`,{isModalTarget:pe,targetEl:ee,isVisible:ee?Me(ee):!1}),!ee||!Me(ee))return;let Re=!1;if(pe?(Re=!0,k=!0,console.log(`[ViewGate Debug] Pin [${G._id}] Modal Open Check: isModalTarget=true`)):(Re=!k,console.log(`[ViewGate Debug] Pin [${G._id}] No Modal Check: !isAnyModalOpen=${Re}`)),!Re)return;const he=ee.getAttribute(Ce);he!==G._id&&(document.querySelectorAll(`[${Ce}="${G._id}"]`).forEach(be=>{be.removeAttribute(Ce)}),he||ee.setAttribute(Ce,G._id));const xe=E;xe.has(ee)||xe.set(ee,{anns:[]}),xe.get(ee).anns.push(G)});const O=[];(G=>{G.forEach((pe,ee)=>{const{anns:Re}=pe,he=ee.getBoundingClientRect(),xe=he.left+he.width/2,be=he.top+he.height/2;if(xe>=0&&xe<=window.innerWidth&&be>=0&&be<=window.innerHeight){const we=document.elementFromPoint(xe,be),ke=document.getElementById("viewgate-shadow-host");if(we&&!ee.contains(we)&&we!==ke&&!ke?.contains(we))return}O.push({id:Re[0]._id,element:ee,rect:he,annotations:Re.sort((we,ke)=>new Date(ke.timestamp||ke.createdAt).getTime()-new Date(we.timestamp||we.createdAt).getTime()),isModal:!!Re[0].reference?.metadata?.isModal})})})(E),dr(O),ea.current=!1}))},[_e]);p.useEffect(()=>{if(Vt){const a=Array.isArray(Vt)?Vt:Vt?.data||[];if(Array.isArray(a)){const n=a.reduce((i,u)=>i.find(k=>k._id===u._id)?i:i.concat([u]),[]);Ze(n)}}else $e||Ze([])},[Vt,$e]),p.useEffect(()=>{le(Xt||null)},[Xt]),p.useEffect(()=>{fe&&te.length===0&&!$e&&Ae(!1)},[fe,te.length,$e]),p.useEffect(()=>{let a=null;const n=()=>{ea.current||Ws()},i=new MutationObserver(k=>{k.some(O=>O.type!=="attributes"||O.attributeName!==Ce&&!O.target.parentElement?.closest("#viewgate-shadow-host"))&&(a&&clearTimeout(a),a=setTimeout(()=>{n(),setTimeout(n,350)},32))});Ga.current=i;const u=new ResizeObserver(()=>n()),y=()=>n();return n(),i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),u.observe(document.documentElement),window.addEventListener("scroll",y,{capture:!0,passive:!0}),()=>{a&&clearTimeout(a),i.disconnect(),u.disconnect(),window.removeEventListener("scroll",y,!0),lt.current&&cancelAnimationFrame(lt.current),Ga.current=null}},[x,te,Ws,fe,K,S]);const Ta=p.useCallback(a=>{let n=a;for(;n&&n!==document.body;){if(Dt(n))return n;n=n.parentElement}return null},[]);p.useEffect(()=>{const a=n=>{const i=n.target;i&&(Ta(i)||(As.current=i))};return window.addEventListener("mousedown",a,!0),()=>window.removeEventListener("mousedown",a,!0)},[Ta]),p.useEffect(()=>{Ra.current=document.getElementById("viewgate-shadow-host")},[]);const Aa=p.useCallback(a=>{if(!x||I)return;const n=ys(a.clientX,a.clientY);if(!n||Ra.current?.contains(n)||n.closest(".vg-no-capture")){Y(null);return}const i=n.getBoundingClientRect();Y({tag:n.tagName.toLowerCase(),source:n.getAttribute("data-source-path")||"unknown:0",rect:i,element:n,previewText:(n.innerText||"").slice(0,100)||(n.getAttribute("placeholder")||"").slice(0,100)||n.tagName.toLowerCase(),semanticReference:{...ks(n,As.current),normalizedOffset:{x:(a.clientX-i.left)/i.width,y:(a.clientY-i.top)/i.height}}})},[x,I]),Na=p.useCallback(async a=>{if(!x||I)return;const n=ys(a.clientX,a.clientY);if(!(!n||Ra.current?.contains(n)||n.closest(".vg-no-capture"))&&N){const i=N;let u=i.element;Ta(u);let y=i.semanticReference,k=i.tag;a.preventDefault(),a.stopPropagation(),Ue(!0);try{await new Promise(G=>requestAnimationFrame(G)),await new Promise(G=>setTimeout(G,150));const E=u.getBoundingClientRect(),O=await us(u,{scale:3,padding:48,backgroundColor:"#000000"}),$={...i,element:u,rect:E,semanticReference:y,tag:k,visualPreview:O};J($)}catch(E){console.error("[ViewGate] Capture failed:",E),J(i)}finally{Ue(!1),Y(null)}}},[x,N,I]);p.useEffect(()=>{const a=n=>{const u=(()=>{let E=document.activeElement;for(;E&&E.shadowRoot&&E.shadowRoot.activeElement;)E=E.shadowRoot.activeElement;return E})();if(["input","textarea"].includes((u?.tagName||"").toLowerCase())||u?.isContentEditable)return;const k=n.key.toLowerCase();if(!q){(k==="c"||k==="v")&&o(s==="es"?"Debes iniciar sesión en el Dashboard para usar ViewGate":"Log in to the Dashboard to use ViewGate","warning");return}if(n.key==="Escape"){I?J(null):fe?Ae(!1):x&&j(!1);return}if(k==="c"&&!n.ctrlKey&&!n.metaKey&&!I&&!fe){if(!Yt){o(s==="es"?"Acceso denegado a este proyecto":"No project access","error");return}if(Ot==="client"){o(s==="es"?"Acceso de solo lectura (Backlog)":"Read-only access (Backlog)","warning");return}if(Kt&&!x){if(Rs?.status===403||!Yt){const $=Rs?.message||(s==="es"?"Acceso denegado a este proyecto":"No project access");o($,"error");return}o(s==="es"?"Verificando información del sprint...":"Checking sprint info...","warning");return}if(!(_e&&_e.status!=="closed")&&!m&&!x){o(s==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}j(O=>!O)}if(k==="v"&&!I){if(!Yt){o(s==="es"?"Acceso denegado a este proyecto":"No project access","error");return}(te.length>0||fe)&&(Ae(E=>!E),fe||j(!1))}};return x&&!I?document.body.classList.add("vg-cursor-pointer"):document.body.classList.remove("vg-cursor-pointer"),window.addEventListener("keydown",a),window.addEventListener("mousemove",Aa,!0),window.addEventListener("click",Na,!0),()=>{document.body.classList.remove("vg-cursor-pointer"),window.removeEventListener("keydown",a),window.removeEventListener("mousemove",Aa,!0),window.removeEventListener("click",Na,!0)}},[x,I,fe,te,Aa,Na,q,Ot]);const ur=async()=>{if(!I||!ae.trim())return;if(M.includes("backend")&&L.length===0){o(s==="es"?"Selecciona al menos un endpoint de backend":"Select at least one backend endpoint","error");return}if(M.includes("ux")&&H.some(E=>!E.name.trim()||!E.link.trim())){o(s==="es"?"Todos los diseños de Figma deben tener nombre y link":"All Figma designs must have a name and link","error");return}if(!ne){o(s==="es"?"Selecciona un usuario para comentar":"Please select a user to comment","error");return}ce(!0);const{semanticReference:a}=I,[n,i]=(a.source||"").split(":"),y={filePath:n,line:parseInt(i||"0"),url:window.location.href,title:ae.length>50?ae.substring(0,50)+"...":ae,message:ae,status:m?"backlog":"pending",priority:V,type:I.visualPreview&&!m&&Xt?.status==="active"?"bug":"task",screenshot:I.visualPreview,componentName:a.componentPath||I.tag,reference:{...a,viewport:{width:window.innerWidth,height:window.innerHeight},timestamp:new Date().toISOString()},focusAreas:M,figmaReference:M.includes("ux")?H:void 0,backendEndpoints:M.includes("backend")?L:[]};ne&&(y.creator={name:ne.name,email:ne.email,avatar:ne.avatar});try{const k=await fetch(`${d}/api/annotations`,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":c,Authorization:q?`Bearer ${q}`:""},body:JSON.stringify(y)});if(!k.ok){const E=await k.json().catch(()=>({}));throw new Error(E.message||E.error||"Backend failed")}o(r.success,"success"),J(null),D(""),de([]),re([{name:r.figmaPrimaryDesign,link:""}]),Se([]),j(!1),Jt()}catch(k){console.error(k);const E=k.message&&k.message!=="Backend failed"?k.message:r.error;o(E,"error")}finally{ce(!1)}},fr=async a=>{Ue(!0);try{const n=bs(a.reference,a._id);if(!n){o(s==="es"?"No se pudo encontrar el elemento original para la captura":"Could not find the original element for capture","error"),Ue(!1);return}n.scrollIntoView({behavior:"smooth",block:"center"}),await new Promise(k=>setTimeout(k,600));const i=n.style.outline,u=n.style.transition;n.style.transition="outline 0.3s ease",n.style.outline="4px solid #10b981",n.style.outlineOffset="4px",await new Promise(k=>setTimeout(k,400)),n.style.outline=i,n.style.transition=u,await new Promise(k=>requestAnimationFrame(k)),await new Promise(k=>setTimeout(k,50));const y=await us(n,{scale:3,padding:48,backgroundColor:"#000000"});if(y){const k=await fetch(`${d}/api/tickets/${a._id}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:q?`Bearer ${q}`:""},body:JSON.stringify({status:"completed",resolvedScreenshot:y})});if(!k.ok){const E=await k.json().catch(()=>({}));throw new Error(E.message||E.error||"API failed")}o(s==="es"?"¡Ticket resuelto con éxito!":"Ticket resolved successfully!","success"),Jt()}n.style.outline=i,n.style.transition=u}catch(n){console.error("[ViewGate] Resolve with evidence failed:",n),o(s==="es"?`Error: ${n.message}`:`Error: ${n.message}`,"error")}finally{Ue(!1)}};return t.jsx("div",{"data-vg-id":"ef883ffc","data-source-path":"/src/components/ViewGateOverlay.tsx:2016",className:"vg-container",style:{userSelect:"none",WebkitUserSelect:"none"},children:t.jsxs("div",{"data-vg-id":"ef883ffd","data-source-path":"/src/components/ViewGateOverlay.tsx:2017",className:"vg-no-capture",style:{userSelect:"none",WebkitUserSelect:"none"},children:[t.jsxs("div",{style:{position:"fixed",bottom:`${it.bottom}px`,right:`${it.right}px`,zIndex:gs,display:"flex",alignItems:"center",gap:"8px",transition:_t?"none":"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},id:"viewgate-ui",children:[t.jsx("div",{onMouseDown:pr,style:{width:"24px",height:"40px",borderRadius:"10px",backgroundColor:"rgba(255, 255, 255, 0.85)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"grab",color:"#1e293b",opacity:x?0:1,visibility:x?"hidden":"visible",transition:"all 0.2s",border:"1px solid rgba(0,0,0,0.1)",boxShadow:"0 2px 8px rgba(0,0,0,0.05)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="white",a.currentTarget.style.color="#000000"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.85)",a.currentTarget.style.color="#1e293b"},className:"vg-animate-slide-up",children:t.jsx(Ao,{"data-vg-id":"3dbe6a11","data-source-path":"/src/components/ViewGateOverlay.tsx:2064",size:16})}),t.jsxs("div",{"data-vg-id":"ef883fff","data-source-path":"/src/components/ViewGateOverlay.tsx:2067",className:"vg-action-bar vg-animate-slide-up",style:{transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},children:[q?Yt?t.jsxs(t.Fragment,{children:[Ot!=="client"&&t.jsx("button",{onClick:()=>{if(Kt&&!x){o(s==="es"?"Sincronizando con el servidor...":"Syncing with server...","warning");return}if(!_e&&!m&&!x){o(s==="es"?"No hay un sprint activo. No se pueden generar comentarios.":"No active sprint found. Cannot generate comments.","error");return}j(!x)},className:"vg-button-primary vg-animate-pop",style:{padding:"12px 24px",background:x?"#ef4444":!_e&&!m?"#94a3b8":void 0,cursor:!_e&&!m&&!x?"not-allowed":"pointer",opacity:!_e&&!m&&!x?.7:1},title:!_e&&!m&&!x?s==="es"?"Requiere sprint activo":"Requires active sprint":"",children:t.jsxs("div",{"data-vg-id":"ef884001","data-source-path":"/src/components/ViewGateOverlay.tsx:2106",style:{display:"flex",alignItems:"center",gap:"10px"},children:[Kt&&!x?t.jsx(Mt,{"data-vg-id":"edca6150","data-source-path":"/src/components/ViewGateOverlay.tsx:2108",size:20,className:"vg-animate-spin"}):x?t.jsx(yt,{"data-vg-id":"ff5f5cf","data-source-path":"/src/components/ViewGateOverlay.tsx:2110",size:20,className:"vg-animate-pop"}):t.jsx(Lt,{"data-vg-id":"10c621c4","data-source-path":"/src/components/ViewGateOverlay.tsx:2112",size:20,className:"vg-animate-pop"}),t.jsx("span",{"data-vg-id":"52d76c43","data-source-path":"/src/components/ViewGateOverlay.tsx:2114",children:Kt&&!x?s==="es"?"Cargando...":"Loading...":x?r.exitMode:r.enterMode})]})}),te.length>0&&t.jsxs("button",{onClick:()=>{Ae(!fe),j(!1),J(null)},className:"vg-button-ghost vg-animate-pop",style:{animationDelay:"0.1s"},children:[t.jsx(To,{"data-vg-id":"cd7341f9","data-source-path":"/src/components/ViewGateOverlay.tsx:2132",size:20}),t.jsx("span",{"data-vg-id":"52d76c45","data-source-path":"/src/components/ViewGateOverlay.tsx:2133",children:r.viewComments})]})]}):t.jsx("div",{"data-vg-id":"ef884000","data-source-path":"/src/components/ViewGateOverlay.tsx:2070",style:{padding:"8px 16px",background:"#fee2e2",color:"#b91c1c",borderRadius:"20px",fontSize:"12px",fontWeight:600,border:"1px solid #fecaca",whiteSpace:"nowrap"},children:s==="es"?"Acceso denegado a este proyecto":"No project access"}):t.jsxs("button",{onClick:()=>{j(!0),J({rect:new DOMRect})},className:"vg-button-primary vg-animate-pop",style:{padding:"12px 24px",background:"var(--vg-primary-gradient)",display:"flex",alignItems:"center",gap:"10px"},children:[t.jsx(ds,{"data-vg-id":"422a5ea5","data-source-path":"/src/components/ViewGateOverlay.tsx:2153",size:18}),t.jsx("span",{"data-vg-id":"52d76c47","data-source-path":"/src/components/ViewGateOverlay.tsx:2154",style:{fontWeight:700},children:s==="es"?"Desbloquear con Clave":"Unlock with Key"})]}),t.jsx("button",{onClick:a=>{a.stopPropagation(),W({title:r.exitConfirmTitle||"Close ViewGate?",message:r.exitConfirmMessage||"Are you sure you want to close ViewGate?",type:"danger",onConfirm:()=>f()})},className:"vg-button-ghost vg-animate-pop",style:{width:"40px",height:"40px",minWidth:"40px",padding:"0",animationDelay:"0.2s",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px",backgroundColor:"rgba(255, 255, 255, 0.8)",color:"#64748b",border:"1px solid rgba(0,0,0,0.05)"},onMouseEnter:a=>{a.currentTarget.style.color="#ef4444",a.currentTarget.style.backgroundColor="white",a.currentTarget.style.borderColor="rgba(239, 68, 68, 0.2)",a.currentTarget.style.transform="scale(1.05)"},onMouseLeave:a=>{a.currentTarget.style.color="#64748b",a.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.8)",a.currentTarget.style.borderColor="rgba(0,0,0,0.05)",a.currentTarget.style.transform="scale(1)"},title:r.close||"Cerrar ViewGate",children:t.jsx(yt,{"data-vg-id":"ff5f5d6","data-source-path":"/src/components/ViewGateOverlay.tsx:2198",size:20,strokeWidth:2.5})})]})]}),Le&&t.jsx("div",{"data-vg-id":"17fbf7e","data-source-path":"/src/components/ViewGateOverlay.tsx:2207",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(255,255,255,0.6)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:gs+1,cursor:"wait"},children:t.jsxs("div",{"data-vg-id":"17fbf7f","data-source-path":"/src/components/ViewGateOverlay.tsx:2213",className:"vg-glassmorphism",style:{padding:"30px 50px",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[t.jsx("div",{"data-vg-id":"17fbf95","data-source-path":"/src/components/ViewGateOverlay.tsx:2214",className:"vg-spinner"}),t.jsx("span",{"data-vg-id":"52d76c61","data-source-path":"/src/components/ViewGateOverlay.tsx:2215",style:{fontWeight:600,fontSize:"14px",color:"#000000"},children:"Capturando..."})]})}),x&&!I&&t.jsx("div",{className:"vg-backdrop-blur",style:{opacity:1,clipPath:N?`polygon(
|
|
13
8
|
0% 0%, 0% 100%, 100% 100%, 100% 0%, 0% 0%,
|
|
14
|
-
${
|
|
15
|
-
${
|
|
16
|
-
${
|
|
17
|
-
${
|
|
18
|
-
${
|
|
19
|
-
)`:"none",zIndex:Lp}}),u&&I&&!O&&!Fe&&i.jsx("div",{className:"vg-selection-pulse",style:{top:I.rect.top-4,left:I.rect.left-4,width:I.rect.width+8,height:I.rect.height+8,zIndex:Tp},children:i.jsxs("div",{className:"vg-selection-label",style:{...I.rect.top<60?I.rect.bottom>window.innerHeight-60?{top:"8px",bottom:"auto"}:{top:"100%",marginTop:"8px",bottom:"auto"}:{top:"-40px",bottom:"auto"},...I.rect.left+200>window.innerWidth?{left:"auto",right:"0"}:{left:"0",right:"auto"}},children:[i.jsx(Sl,{"data-vg-id":"f840c8ce","data-source-path":"/src/components/ViewGateOverlay.tsx:2458",size:16}),i.jsxs("div",{"data-vg-id":"17fbf98","data-source-path":"/src/components/ViewGateOverlay.tsx:2459",style:{display:"flex",flexDirection:"column"},children:[i.jsx("span",{"data-vg-id":"52d76c64","data-source-path":"/src/components/ViewGateOverlay.tsx:2460",style:{fontWeight:700},children:r.selectToComment}),i.jsxs("span",{"data-vg-id":"52d76c65","data-source-path":"/src/components/ViewGateOverlay.tsx:2461",style:{fontSize:"10px",opacity:.8,fontFamily:"monospace"},children:[Math.round(I.rect.width)," × ",Math.round(I.rect.height)]})]})]})}),!fA&&(u||MA||O)&&i.jsx("div",{"data-vg-id":"17fbf9b","data-source-path":"/src/components/ViewGateOverlay.tsx:2471",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(15, 23, 42, 0.6)",backdropFilter:"blur(12px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:$e},children:i.jsxs("div",{"data-vg-id":"17fbf9c","data-source-path":"/src/components/ViewGateOverlay.tsx:2476",className:"vg-glassmorphism vg-animate-slide",style:{width:"90%",maxWidth:"440px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.4)",display:"flex",flexDirection:"column",overflow:"hidden",padding:"48px 32px"},children:[i.jsxs("div",{"data-vg-id":"17fbf9d","data-source-path":"/src/components/ViewGateOverlay.tsx:2485",style:{textAlign:"center",marginBottom:"32px"},children:[i.jsx("div",{"data-vg-id":"17fbf9e","data-source-path":"/src/components/ViewGateOverlay.tsx:2486",style:{width:"64px",height:"64px",background:"var(--vg-primary-gradient)",borderRadius:"20px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px",color:"white",boxShadow:"0 8px 20px -4px var(--vg-primary)",animation:"pulse 2s infinite"},children:i.jsx(Jo,{"data-vg-id":"422a5ede","data-source-path":"/src/components/ViewGateOverlay.tsx:2492",size:32})}),i.jsx("h2",{"data-vg-id":"efa6bb80","data-source-path":"/src/components/ViewGateOverlay.tsx:2494",style:{margin:"0 0 12px 0",fontSize:"24px",fontWeight:800,color:"#0f172a",letterSpacing:"-0.025em"},children:e==="es"?"ViewGate Protegido":"ViewGate Protected"}),i.jsx("p",{"data-vg-id":"1000def7","data-source-path":"/src/components/ViewGateOverlay.tsx:2497",style:{margin:0,color:"#64748b",fontSize:"15px",lineHeight:1.6},children:e==="es"?"Ingresa tu Clave de Acceso Semanal para continuar.":"Enter your project Weekly Access Key to continue."})]}),i.jsxs("form",{"data-vg-id":"a260acc8","data-source-path":"/src/components/ViewGateOverlay.tsx:2504",onSubmit:Wp,style:{width:"100%"},children:[i.jsx("div",{"data-vg-id":"17fbfb8","data-source-path":"/src/components/ViewGateOverlay.tsx:2505",style:{position:"relative",marginBottom:"24px"},children:i.jsx("input",{autoFocus:!0,type:"password",value:et,onChange:l=>Qc(l.target.value),placeholder:e==="es"?"Pega tu clave aquí...":"Paste your key here...",style:{width:"100%",padding:"16px",borderRadius:"12px",border:"2px solid #e2e8f0",fontSize:"15px",outline:"none",transition:"all 0.2s",backgroundColor:"rgba(255, 255, 255, 0.8)",color:"#1e293b"},onFocus:l=>{l.target.style.borderColor="var(--vg-primary)",l.target.style.boxShadow="0 0 0 4px rgba(99, 102, 241, 0.1)"},onBlur:l=>{l.target.style.borderColor="#e2e8f0",l.target.style.boxShadow="none"}})}),i.jsxs("button",{type:"submit",disabled:lo||!et.trim(),className:"vg-button-primary",style:{width:"100%",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",fontSize:"16px",fontWeight:700,opacity:lo||!et.trim()?.7:1,boxShadow:"0 10px 15px -3px rgba(99, 102, 241, 0.3)"},children:[lo?i.jsx(Er,{"data-vg-id":"cb81c82b","data-source-path":"/src/components/ViewGateOverlay.tsx:2552",size:20,className:"vg-animate-spin"}):i.jsx(Hl,{"data-vg-id":"d69f974c","data-source-path":"/src/components/ViewGateOverlay.tsx:2554",size:20}),e==="es"?"Desbloquear":"Unlock Now"]})]}),i.jsx("div",{"data-vg-id":"17fbfbb","data-source-path":"/src/components/ViewGateOverlay.tsx:2560",style:{margin:"32px 0 24px",height:"1px",background:"linear-gradient(to right, transparent, #e2e8f0, transparent)"}}),i.jsx("button",{onClick:()=>{N(null),f(!1),ue(!1)},className:"vg-button-ghost",style:{width:"100%",padding:"12px",fontSize:"14px",color:"#94a3b8"},children:e==="es"?"Cerrar ViewGate":"Close ViewGate"}),i.jsx("div",{"data-vg-id":"17fbfbc","data-source-path":"/src/components/ViewGateOverlay.tsx:2574",style:{marginTop:"24px",textAlign:"center"},children:i.jsx("p",{"data-vg-id":"1000defe","data-source-path":"/src/components/ViewGateOverlay.tsx:2575",style:{fontSize:"12px",color:"#94a3b8",margin:0,lineHeight:1.5},children:e==="es"?"Encuentra tu clave en Dashboard > Proyectos":"Find your key in Dashboard > Projects"})})]})}),O&&OA&&i.jsx("div",{"data-vg-id":"17fbfd3","data-source-path":"/src/components/ViewGateOverlay.tsx:2588",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(15, 23, 42, 0.4)",backdropFilter:"blur(8px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:$e},children:i.jsxs("div",{"data-vg-id":"17fbfd4","data-source-path":"/src/components/ViewGateOverlay.tsx:2593",className:"vg-glassmorphism vg-animate-slide",style:{width:"90%",maxWidth:"700px",maxHeight:"92vh",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[i.jsxs("div",{"data-vg-id":"17fbfd5","data-source-path":"/src/components/ViewGateOverlay.tsx:2603",style:{padding:"24px 24px 16px",textAlign:"center",borderBottom:"1px solid rgba(0,0,0,0.05)",flexShrink:0,position:"relative"},children:[OA&&i.jsxs("div",{"data-vg-id":"17fbfd6","data-source-path":"/src/components/ViewGateOverlay.tsx:2605",className:"vg-profile-info-card",style:{position:"absolute",top:"20px",right:"20px",display:"flex",alignItems:"center",gap:"8px",padding:"4px 8px",borderRadius:"20px",background:"white",border:"1px solid #e2e8f0",boxShadow:"0 2px 6px rgba(0,0,0,0.05)",zIndex:10},children:[i.jsx("span",{"data-vg-id":"52d76ca2","data-source-path":"/src/components/ViewGateOverlay.tsx:2622",style:{fontSize:"10px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:OA.name.split(" ")[0]}),OA.avatar?i.jsx("img",{"data-vg-id":"a398766","data-source-path":"/src/components/ViewGateOverlay.tsx:2626",src:OA.avatar,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""}):i.jsx("div",{"data-vg-id":"17fbfd9","data-source-path":"/src/components/ViewGateOverlay.tsx:2628",style:{width:"24px",height:"24px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"10px",fontWeight:700},children:OA.name?.[0]})]}),i.jsx("div",{"data-vg-id":"17fbfda","data-source-path":"/src/components/ViewGateOverlay.tsx:2634",style:{width:"40px",height:"40px",background:"var(--vg-primary-gradient)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 12px",color:"white",boxShadow:"0 4px 12px rgba(99, 102, 241, 0.2)"},children:i.jsx(vr,{"data-vg-id":"10c62228","data-source-path":"/src/components/ViewGateOverlay.tsx:2639",size:20})}),i.jsx("h2",{"data-vg-id":"efa6bba7","data-source-path":"/src/components/ViewGateOverlay.tsx:2641",style:{margin:"0 0 4px 0",fontSize:"20px",fontWeight:800,color:"#0f172a"},children:r.feedbackHeader}),i.jsx("p",{"data-vg-id":"1000df33","data-source-path":"/src/components/ViewGateOverlay.tsx:2642",style:{margin:0,color:"#64748b",fontSize:"14px"},children:r.feedbackSubheader})]}),i.jsxs("div",{"data-vg-id":"17fbff3","data-source-path":"/src/components/ViewGateOverlay.tsx:2646",className:"vg-custom-scrollbar",style:{flex:1,overflowY:"auto",padding:"24px",display:"flex",flexDirection:"column"},children:[O.visualPreview&&i.jsx("div",{"data-vg-id":"17fbff4","data-source-path":"/src/components/ViewGateOverlay.tsx:2655",style:{marginBottom:"24px",borderRadius:"12px",width:"fit-content",maxWidth:"100%",maxHeight:"45vh",alignSelf:"center",overflow:"hidden",display:"flex"},children:i.jsx("img",{src:O.visualPreview,alt:"Preview",style:{maxWidth:"100%",maxHeight:"45vh",objectFit:"contain",display:"block"}})}),i.jsx("textarea",{className:"vg-textarea",value:W,onChange:l=>R(l.target.value),rows:4,placeholder:r.placeholder,autoFocus:!0,style:{fontSize:"15px",padding:"16px",marginBottom:"24px",minHeight:"120px"}}),i.jsxs("div",{"data-vg-id":"17fbff5","data-source-path":"/src/components/ViewGateOverlay.tsx:2689",style:{marginBottom:"24px"},children:[i.jsx("label",{"data-vg-id":"18bd4b33","data-source-path":"/src/components/ViewGateOverlay.tsx:2690",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:r.priority}),i.jsx("div",{"data-vg-id":"17fbff7","data-source-path":"/src/components/ViewGateOverlay.tsx:2693",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(l=>i.jsx("button",{onClick:()=>m(l),style:{flex:1,padding:"12px 6px",borderRadius:"8px",fontSize:"13px",fontWeight:700,border:"1px solid",borderColor:w===l?l==="low"?"#10b981":l==="medium"?"#6366f1":l==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:w===l?l==="low"?"#ecfdf5":l==="medium"?"#eef2ff":l==="high"?"#fffbeb":"#fef2f2":"white",color:w===l?l==="low"?"#059669":l==="medium"?"#4338ca":l==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:r[l]},l))})]}),i.jsxs("div",{"data-vg-id":"17fbff8","data-source-path":"/src/components/ViewGateOverlay.tsx:2720",style:{marginBottom:"24px"},children:[i.jsx("label",{"data-vg-id":"18bd4b36","data-source-path":"/src/components/ViewGateOverlay.tsx:2721",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:r.focusAreas}),i.jsx("div",{"data-vg-id":"17fbffa","data-source-path":"/src/components/ViewGateOverlay.tsx:2724",style:{display:"flex",gap:"8px",marginBottom:M.length>0?"12px":"0"},children:[{id:"frontend",label:r.frontend,icon:i.jsx(yr,{"data-vg-id":"377c172e","data-source-path":"/src/components/ViewGateOverlay.tsx:2726",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:r.backend,icon:i.jsx(ve,{"data-vg-id":"7117e5d5","data-source-path":"/src/components/ViewGateOverlay.tsx:2727",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:r.ux,icon:i.jsx(Dt,{"data-vg-id":"de42479a","data-source-path":"/src/components/ViewGateOverlay.tsx:2728",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(l=>l.id==="backend"?Hs:l.id==="ux"?k:!0).map(l=>{const h=M.includes(l.id);return i.jsxs("button",{onClick:()=>{h?QA(M.filter(p=>p!==l.id)):(QA([...M,l.id]),l.id==="backend"&&go())},style:{flex:1,padding:"10px 4px",borderRadius:"8px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:h?l.color:"#e2e8f0",backgroundColor:h?l.bg:"white",color:h?l.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[l.icon,l.label]},l.id)})}),M.includes("ux")&&i.jsxs("div",{"data-vg-id":"17fc013","data-source-path":"/src/components/ViewGateOverlay.tsx:2775",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[i.jsxs("div",{"data-vg-id":"17fc014","data-source-path":"/src/components/ViewGateOverlay.tsx:2776",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[i.jsxs("div",{"data-vg-id":"17fc015","data-source-path":"/src/components/ViewGateOverlay.tsx:2777",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx(br,{"data-vg-id":"38884e11","data-source-path":"/src/components/ViewGateOverlay.tsx:2778",size:14,style:{color:"#d946ef"}}),i.jsx("span",{"data-vg-id":"52d76ce2","data-source-path":"/src/components/ViewGateOverlay.tsx:2779",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},children:r.figmaLink})]}),i.jsxs("button",{"data-vg-id":"23e21f7b","data-source-path":"/src/components/ViewGateOverlay.tsx:2783",onClick:()=>yA([...AA,{name:"",link:""}]),style:{background:"rgba(217, 70, 239, 0.1)",border:"1px solid rgba(217, 70, 239, 0.2)",color:"#d946ef",borderRadius:"6px",padding:"4px 8px",fontSize:"10px",fontWeight:800,display:"flex",alignItems:"center",gap:"4px",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:l=>l.currentTarget.style.background="rgba(217, 70, 239, 0.15)",onMouseLeave:l=>l.currentTarget.style.background="rgba(217, 70, 239, 0.1)",children:[i.jsx(Ll,{"data-vg-id":"11a60c74","data-source-path":"/src/components/ViewGateOverlay.tsx:2802",size:10})," ",r.addLink]})]}),i.jsx("div",{"data-vg-id":"17fc01a","data-source-path":"/src/components/ViewGateOverlay.tsx:2806",style:{display:"flex",flexDirection:"column",gap:"8px"},children:AA.map((l,h)=>i.jsxs("div",{"data-vg-id":"17fc030","data-source-path":"/src/components/ViewGateOverlay.tsx:2808",style:{display:"flex",gap:"6px",alignItems:"flex-start"},className:"vg-animate-slide",children:[i.jsxs("div",{"data-vg-id":"17fc031","data-source-path":"/src/components/ViewGateOverlay.tsx:2809",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[i.jsx("input",{"data-vg-id":"a993bad9","data-source-path":"/src/components/ViewGateOverlay.tsx:2810",type:"text",className:"vg-textarea",style:{padding:"8px 10px",fontSize:"11px",minHeight:"auto",borderRadius:"8px",border:"1px solid rgba(0,0,0,0.05)"},placeholder:r.figmaNamePlaceholder,value:l.name,onChange:p=>{const x=[...AA];x[h]&&(x[h].name=p.target.value,yA(x))}}),i.jsx("input",{"data-vg-id":"a993bada","data-source-path":"/src/components/ViewGateOverlay.tsx:2824",type:"text",className:"vg-textarea",style:{padding:"8px 10px",fontSize:"11px",minHeight:"auto",borderRadius:"8px",border:"1px solid rgba(0,0,0,0.05)"},placeholder:r.figmaLinkPlaceholder,value:l.link,onChange:p=>{const x=[...AA];x[h]&&(x[h].link=p.target.value,yA(x))}})]}),AA.length>1&&i.jsx("button",{"data-vg-id":"23e21f97","data-source-path":"/src/components/ViewGateOverlay.tsx:2840",onClick:()=>yA(AA.filter((p,x)=>x!==h)),style:{background:"rgba(239, 68, 68, 0.05)",border:"1px solid rgba(239, 68, 68, 0.1)",color:"#ef4444",borderRadius:"8px",padding:"10px",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:p=>p.currentTarget.style.background="rgba(239, 68, 68, 0.1)",onMouseLeave:p=>p.currentTarget.style.background="rgba(239, 68, 68, 0.05)",children:i.jsx(Ir,{"data-vg-id":"e1375db0","data-source-path":"/src/components/ViewGateOverlay.tsx:2857",size:14})})]},h))})]}),$A.length>0&&M.includes("backend")&&i.jsxs("div",{"data-vg-id":"17fc036","data-source-path":"/src/components/ViewGateOverlay.tsx:2869",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[i.jsxs("div",{"data-vg-id":"17fc037","data-source-path":"/src/components/ViewGateOverlay.tsx:2870",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[i.jsxs("div",{"data-vg-id":"17fc038","data-source-path":"/src/components/ViewGateOverlay.tsx:2871",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx(ve,{"data-vg-id":"7117e5fd","data-source-path":"/src/components/ViewGateOverlay.tsx:2872",size:14,style:{color:"#6366f1"}}),i.jsx("span",{"data-vg-id":"52d76d1a","data-source-path":"/src/components/ViewGateOverlay.tsx:2873",style:{fontSize:"11px",fontWeight:700,color:"#64748b"},children:r.endpoint})]}),J.length>0&&i.jsxs("span",{"data-vg-id":"52d76d1b","data-source-path":"/src/components/ViewGateOverlay.tsx:2876",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[J.length," ",e==="es"?"seleccionados":"selected"]})]}),i.jsxs("button",{"data-vg-id":"23e21fb4","data-source-path":"/src/components/ViewGateOverlay.tsx:2882",onClick:()=>z(!0),className:"vg-input-like-button",style:{width:"100%",padding:"12px 16px",fontSize:"13px",borderRadius:"12px",background:"#f8fafc",border:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s",textAlign:"left",color:J.length>0?"#0f172a":"#94a3b8"},children:[i.jsx("div",{"data-vg-id":"17fc052","data-source-path":"/src/components/ViewGateOverlay.tsx:2901",style:{display:"flex",gap:"4px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:J.length>0?J.slice(0,2).map(l=>{const h=l.split("|"),p=h.length>1?h[0]:"",x=h.length>1?h[1]:l;return i.jsxs("span",{"data-vg-id":"52d76d1e","data-source-path":"/src/components/ViewGateOverlay.tsx:2908",style:{background:"rgba(99, 102, 241, 0.1)",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:[p&&i.jsx("span",{"data-vg-id":"52d76d1f","data-source-path":"/src/components/ViewGateOverlay.tsx:2916",style:{opacity:.6,marginRight:"4px"},children:p}),(x||"").split("/").pop()||x]},l)}).concat(J.length>2?[i.jsxs("span",{"data-vg-id":"52d76d20","data-source-path":"/src/components/ViewGateOverlay.tsx:2920",children:["+",J.length-2]},"more")]:[]):r.selectEndpoint}),i.jsx(Xo,{"data-vg-id":"c71f9a0a","data-source-path":"/src/components/ViewGateOverlay.tsx:2923",size:14,style:{color:"#64748b"}})]})]})]})]}),i.jsxs("div",{"data-vg-id":"17fc057","data-source-path":"/src/components/ViewGateOverlay.tsx:2932",style:{padding:"16px 24px 24px",borderTop:"1px solid rgba(0,0,0,0.05)",display:"flex",gap:"12px",flexShrink:0,backgroundColor:"rgba(255,255,255,0.02)",backdropFilter:"blur(2px)"},children:[i.jsx("button",{onClick:()=>{cA||(N(null),f(!1))},className:"vg-button-ghost",disabled:cA,style:{flex:1,padding:"12px"},children:r.cancel}),i.jsx("button",{onClick:Zp,className:"vg-button-primary",disabled:cA||!W.trim()||M.includes("backend")&&J.length===0||M.includes("ux")&&AA.some(l=>!l.name.trim()||!l.link.trim()),style:{flex:2,opacity:cA||!W.trim()||M.includes("backend")&&J.length===0||M.includes("ux")&&AA.some(l=>!l.name.trim()||!l.link.trim())?.6:1,cursor:cA||!W.trim()||M.includes("backend")&&J.length===0||M.includes("ux")&&AA.some(l=>!l.name.trim()||!l.link.trim())?"not-allowed":"pointer"},children:i.jsxs("div",{"data-vg-id":"17fc058","data-source-path":"/src/components/ViewGateOverlay.tsx:2969",style:{display:"flex",alignItems:"center",gap:"8px"},children:[cA?i.jsx("div",{"data-vg-id":"17fc06e","data-source-path":"/src/components/ViewGateOverlay.tsx:2970",className:"vg-spinner",style:{width:"16px",height:"16px",borderWidth:"2px"}}):i.jsx(Ol,{"data-vg-id":"a3fd5c1c","data-source-path":"/src/components/ViewGateOverlay.tsx:2970",size:18}),i.jsx("span",{"data-vg-id":"52d76d3b","data-source-path":"/src/components/ViewGateOverlay.tsx:2971",children:cA?r.submitting:r.sendFeedback||"Send Comment"})]})})]})]})}),MA&&i.jsx("div",{"data-vg-id":"17fc071","data-source-path":"/src/components/ViewGateOverlay.tsx:2982",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(15, 23, 42, 0.6)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:$e},children:i.jsxs("div",{"data-vg-id":"17fc072","data-source-path":"/src/components/ViewGateOverlay.tsx:2988",className:"vg-glassmorphism vg-animate-slide",style:{padding:"32px",width:"820px",maxHeight:"85vh",display:"flex",flexDirection:"column",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},children:[i.jsxs("div",{"data-vg-id":"17fc073","data-source-path":"/src/components/ViewGateOverlay.tsx:2993",style:{display:"flex",flexDirection:"column",gap:"16px",marginBottom:"24px"},children:[i.jsxs("div",{"data-vg-id":"17fc074","data-source-path":"/src/components/ViewGateOverlay.tsx:2994",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[i.jsx("h2",{"data-vg-id":"efa6bc40","data-source-path":"/src/components/ViewGateOverlay.tsx:2995",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#0f172a",whiteSpace:"nowrap"},children:dA?r.commentDetails:r.annotations}),i.jsxs("div",{"data-vg-id":"17fc076","data-source-path":"/src/components/ViewGateOverlay.tsx:2998",style:{display:"flex",alignItems:"center",gap:"12px"},children:[OA?i.jsxs("div",{"data-vg-id":"17fc077","data-source-path":"/src/components/ViewGateOverlay.tsx:3000",style:{display:"flex",alignItems:"center",gap:"8px",padding:"4px 12px",background:"rgba(99, 102, 241, 0.1)",borderRadius:"20px"},children:[OA.avatar?i.jsx("img",{"data-vg-id":"3cf759ac","data-source-path":"/src/components/ViewGateOverlay.tsx:3002",src:OA.avatar,style:{width:"20px",height:"20px",borderRadius:"50%"},alt:""}):i.jsx("div",{"data-vg-id":"2e782f7b","data-source-path":"/src/components/ViewGateOverlay.tsx:3004",style:{width:"20px",height:"20px",borderRadius:"50%",background:"#6366f1",color:"white",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center"},children:OA.name?.[0]}),i.jsx("span",{"data-vg-id":"8161c11","data-source-path":"/src/components/ViewGateOverlay.tsx:3008",style:{fontSize:"12px",fontWeight:600,color:"#4338ca"},children:OA.name})]}):i.jsx("div",{"data-vg-id":"2e782f7d","data-source-path":"/src/components/ViewGateOverlay.tsx:3015",style:{fontSize:"12px",color:"#64748b",fontWeight:600},children:e==="es"?"Sin usuario":"No user selected"}),i.jsx("button",{className:"vg-button-ghost",style:{padding:"8px",borderRadius:"50%"},onClick:()=>{ue(!1),ye(null),Ks(null),L("all")},children:i.jsx(Rt,{"data-vg-id":"eec8c445","data-source-path":"/src/components/ViewGateOverlay.tsx:3024",size:20})})]})]}),i.jsx("div",{"data-vg-id":"2e782f7f","data-source-path":"/src/components/ViewGateOverlay.tsx:3028",style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center",width:"100%"},children:(()=>{const l=Array.isArray(bA)?bA:[],h=dA?Ut.find(T=>T.annotations?.some(oA=>oA._id===dA)):null,x=(h?h.annotations:l).filter(T=>T.status!=="completed"&&T.status!=="done"),H=x.filter(T=>T.status!=="ready_for_review").length,D=x.filter(T=>T.status==="ready_for_review").length,K=x.length;return K<=0?K===0?null:i.jsxs("div",{"data-vg-id":"2e782f80","data-source-path":"/src/components/ViewGateOverlay.tsx:3042",style:{display:"flex",gap:"8px",opacity:.9},children:[H>0&&i.jsxs("div",{"data-vg-id":"2e782f81","data-source-path":"/src/components/ViewGateOverlay.tsx:3044",className:"vg-badge",style:{background:"#fff7ed",color:"#c2410c",border:"1px solid #ffedd5",fontSize:"11px",padding:"2px 8px"},children:[H," ",H===1?"pendiente":"pendientes"]}),D>0&&i.jsxs("div",{"data-vg-id":"2e782f82","data-source-path":"/src/components/ViewGateOverlay.tsx:3049",className:"vg-badge",style:{background:"#f3e8ff",color:"#a855f7",border:"1px solid #e9d5ff",fontSize:"11px",padding:"2px 8px"},children:[D," ",e==="es"?D===1?"Listo para revisión":"Listos para revisión":"ready for review"]})]}):i.jsxs(i.Fragment,{children:[!g&&i.jsxs("div",{"data-vg-id":"2e782f83","data-source-path":"/src/components/ViewGateOverlay.tsx:3060",className:"vg-segmented-control",style:{marginBottom:"4px"},children:[i.jsx("div",{className:"vg-segmented-slider",style:{left:KA===null?"4px":KA==="pending"?"calc(4px + (100% - 8px) / 3)":"calc(4px + 2 * (100% - 8px) / 3)",width:"calc((100% - 8px) / 3)",background:KA===null?"var(--vg-primary)":KA==="pending"?"#ea580c":"#a855f7",boxShadow:KA===null?"0 4px 12px rgba(99, 102, 241, 0.3)":KA==="pending"?"0 4px 12px rgba(234, 88, 12, 0.3)":"0 4px 12px rgba(168, 85, 247, 0.3)"}}),i.jsxs("div",{onClick:()=>Ks(null),className:`vg-segmented-item ${KA===null?"active":""}`,children:[r.viewAll||"Todos"," (",K,")"]}),i.jsxs("div",{onClick:()=>Ks("pending"),className:`vg-segmented-item ${KA==="pending"?"active":""}`,children:[e==="es"?H===1?"Pendiente":"Pendientes":"Pending"," (",H,")"]}),i.jsxs("div",{onClick:()=>Ks("ready"),className:`vg-segmented-item ${KA==="ready"?"active":""}`,children:[e==="es"?"Listo para revisión":"Ready for Review"," (",D,")"]})]}),i.jsxs("div",{"data-vg-id":"2e782f99","data-source-path":"/src/components/ViewGateOverlay.tsx:3091",style:{display:"flex",gap:"6px",justifyContent:"center",flexWrap:"wrap",marginTop:g?"0":"4px"},children:[i.jsxs("button",{onClick:()=>L("all"),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:C==="all"?"var(--vg-primary)":"#e2e8f0",backgroundColor:C==="all"?"var(--vg-primary)":"transparent",color:C==="all"?"white":"#64748b",cursor:"pointer",transition:"all 0.2s"},children:[r.viewAll||"Todos"," (",x.filter(T=>g?!0:KA==="pending"?T.status!=="ready_for_review":KA==="ready"?T.status==="ready_for_review":!0).length,")"]}),["low","medium","high","urgent"].map(T=>{const oA=x.filter(_=>g?!0:KA==="pending"?_.status!=="ready_for_review":KA==="ready"?_.status==="ready_for_review":!0).filter(_=>(_.priority||"medium")===T).length;return oA===0&&C!==T?null:i.jsxs("button",{onClick:()=>L(T),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:C===T?T==="low"?"#10b981":T==="medium"?"#6366f1":T==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:C===T?T==="low"?"#ecfdf5":T==="medium"?"#eef2ff":T==="high"?"#fffbeb":"#fef2f2":"transparent",color:C===T?T==="low"?"#059669":T==="medium"?"#4338ca":T==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:[r[T]," (",oA,")"]},T)})]})]})})()})]}),i.jsx("div",{style:{flex:1,overflowY:"auto",paddingRight:"10px",overflowX:"hidden"},className:"vg-custom-scrollbar",children:tt?i.jsx("div",{"data-vg-id":"2e782f9a","data-source-path":"/src/components/ViewGateOverlay.tsx:3157",style:{display:"flex",justifyContent:"center",padding:"40px"},children:i.jsx("div",{"data-vg-id":"2e782f9b","data-source-path":"/src/components/ViewGateOverlay.tsx:3158",className:"vg-spinner"})}):uo.map((l,h)=>i.jsxs("div",{className:"vg-glassmorphism vg-animate-slide",style:{padding:"20px",marginBottom:"16px",border:"1px solid rgba(0,0,0,0.05)",background:"rgba(255,255,255,0.5)",animationDelay:`${h*.05}s`},children:[i.jsxs("div",{"data-vg-id":"2e782f9c","data-source-path":"/src/components/ViewGateOverlay.tsx:3173",style:{display:"flex",justifyContent:"space-between",marginBottom:"16px",alignItems:"center"},children:[i.jsxs("div",{"data-vg-id":"2e782f9d","data-source-path":"/src/components/ViewGateOverlay.tsx:3174",style:{display:"flex",gap:"12px",alignItems:"center"},children:[i.jsx("span",{"data-vg-id":"8161c33","data-source-path":"/src/components/ViewGateOverlay.tsx:3175",style:{fontSize:"12px",color:"#000000",fontWeight:600},children:lc(l.timestamp||l.createdAt||l.reference?.timestamp,e)}),i.jsx("div",{"data-vg-id":"2e782f9f","data-source-path":"/src/components/ViewGateOverlay.tsx:3178",onClick:p=>{p.stopPropagation();const x=l.key||`VG-${l._id.slice(-6).toUpperCase()}`;navigator.clipboard.writeText(x);const H=p.currentTarget;H.innerText="¡Copiado!",H.style.color="#22c55e",setTimeout(()=>{H.innerText=x,H.style.color=g?"#64748b":"#6366f1"},1500)},style:{fontSize:"10px",fontFamily:"monospace",color:g?"#64748b":"#6366f1",background:g?"rgba(100, 116, 139, 0.1)":"rgba(99, 102, 241, 0.1)",padding:"2px 6px",borderRadius:"4px",cursor:"pointer",fontWeight:900,transition:"all 0.2s"},title:e==="es"?"Click para copiar":"Click to copy",children:l.key||`VG-${l._id.slice(-6).toUpperCase()}`}),l.reference?.metadata?.isModal&&i.jsx("span",{"data-vg-id":"8161c35","data-source-path":"/src/components/ViewGateOverlay.tsx:3207",className:"vg-badge",style:{fontSize:"10px",background:g?"#f1f5f9":l.status==="completed"||l.status==="done"?"#ecfdf5":l.status==="ready_for_review"?"#f3e8ff":"#fef3c7",color:g?"#64748b":l.status==="completed"||l.status==="done"?"#059669":l.status==="ready_for_review"?"#a855f7":"#92400e",border:"none",padding:"2px 6px"},children:"MODAL"}),l.creator&&i.jsx("div",{"data-vg-id":"2e782fa1","data-source-path":"/src/components/ViewGateOverlay.tsx:3216",style:{display:"flex",alignItems:"center",background:"#f8fafc",padding:"2px",borderRadius:"50%",border:"1px solid #e2e8f0",marginLeft:"4px"},children:l.creator.avatar?i.jsx("img",{"data-vg-id":"3cf759d4","data-source-path":"/src/components/ViewGateOverlay.tsx:3226",src:l.creator.avatar,style:{width:"16px",height:"16px",borderRadius:"50%"},alt:""}):i.jsx("div",{"data-vg-id":"2e782fb8","data-source-path":"/src/components/ViewGateOverlay.tsx:3228",style:{width:"16px",height:"16px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"8px",fontWeight:700},children:l.creator.name?.[0]})}),l.url&&i.jsx(dc,{url:l.url,onHover:vc,style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"11px",color:"#64748b",background:"#f8fafc",padding:"2px 8px",borderRadius:"6px",border:"1px solid #e2e8f0",maxWidth:"220px"}}),(l.focusAreas?.length>0?l.focusAreas:[...l.backendEndpoints?.length>0?["backend"]:[],...l.figmaReference?.length>0?["ux"]:[]]).map(p=>i.jsxs("span",{"data-vg-id":"8161c4e","data-source-path":"/src/components/ViewGateOverlay.tsx:3254",style:{fontSize:"10px",fontWeight:800,textTransform:"uppercase",padding:"4px 10px",borderRadius:"24px",background:p==="frontend"?"linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)":p==="backend"?"linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)":"linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%)",color:p==="frontend"?"#059669":p==="backend"?"#4f46e5":"#c026d3",display:"flex",alignItems:"center",gap:"4px",border:`1px solid ${p==="frontend"?"#a7f3d0":p==="backend"?"#c7d2fe":"#fbcfe8"}`,boxShadow:p==="frontend"?"0 2px 4px rgba(5, 150, 105, 0.05)":p==="backend"?"0 2px 4px rgba(79, 70, 229, 0.05)":"0 2px 4px rgba(192, 38, 211, 0.05)",letterSpacing:"0.02em"},children:[p==="frontend"?i.jsx(yr,{"data-vg-id":"b806bee7","data-source-path":"/src/components/ViewGateOverlay.tsx:3262",size:11,strokeWidth:2.5}):p==="backend"?i.jsx(ve,{"data-vg-id":"b1e4c277","data-source-path":"/src/components/ViewGateOverlay.tsx:3262",size:11,strokeWidth:2.5}):i.jsx(Dt,{"data-vg-id":"ea069934","data-source-path":"/src/components/ViewGateOverlay.tsx:3262",size:11,strokeWidth:2.5}),p==="frontend"?"Frontend":p==="backend"?"Backend":"UX / UI"]},p))]}),l.status==="completed"?i.jsxs("span",{"data-vg-id":"8161c52","data-source-path":"/src/components/ViewGateOverlay.tsx:3268",className:"vg-badge",style:{backgroundColor:"#ecfdf5",color:"#059669",border:"1px solid #d1fae5"},children:[i.jsx(Ne,{"data-vg-id":"a75c1a63","data-source-path":"/src/components/ViewGateOverlay.tsx:3269",size:14})," ",r.completed||(e==="es"?"Listo para revisión":"Ready for Review")]}):l.status==="ready_for_review"?i.jsxs("span",{"data-vg-id":"8161c54","data-source-path":"/src/components/ViewGateOverlay.tsx:3272",className:"vg-badge",style:{backgroundColor:"#f3e8ff",color:"#a855f7",border:"1px solid #e9d5ff"},children:[i.jsx(Ne,{"data-vg-id":"a75c1a65","data-source-path":"/src/components/ViewGateOverlay.tsx:3273",size:14})," ",r.readyForReview]}):l.status==="bug_fixing"?i.jsxs("span",{"data-vg-id":"8161c56","data-source-path":"/src/components/ViewGateOverlay.tsx:3276",className:"vg-badge",style:{backgroundColor:"#fff1f2",color:"#e11d48",border:"1px solid #ffe4e6"},children:[i.jsx(Kt,{"data-vg-id":"3b8b181a","data-source-path":"/src/components/ViewGateOverlay.tsx:3277",size:14})," ","Bug Fixing"]}):i.jsxs("span",{"data-vg-id":"8161c6d","data-source-path":"/src/components/ViewGateOverlay.tsx:3280",className:"vg-badge",style:{backgroundColor:g||l.status==="backlog"?"#f1f5f9":"#fff7ed",color:g||l.status==="backlog"?"#64748b":"#ea580c",border:g||l.status==="backlog"?"1px solid #e2e8f0":"1px solid #ffedd5"},children:[i.jsx(zo,{"data-vg-id":"62dc6c36","data-source-path":"/src/components/ViewGateOverlay.tsx:3285",size:14}),g||l.status==="backlog"?r.backlog:r.pending]})]}),(l.screenshot||l.reference?.previewUrl)&&i.jsx("div",{"data-vg-id":"2e782fda","data-source-path":"/src/components/ViewGateOverlay.tsx:3292",style:{margin:"0 0 20px 0",borderRadius:"8px",overflow:"hidden",width:"fit-content",maxWidth:"100%",maxHeight:"280px",alignSelf:"center",display:"flex"},children:i.jsx("img",{"data-vg-id":"3cf75a0d","data-source-path":"/src/components/ViewGateOverlay.tsx:3302",src:l.screenshot||l.reference?.previewUrl,alt:"Visual Preview",style:{maxWidth:"100%",maxHeight:"280px",objectFit:"contain",display:"block"}})}),i.jsxs("div",{"data-vg-id":"2e782fdc","data-source-path":"/src/components/ViewGateOverlay.tsx:3315",style:{marginBottom:"20px"},children:[i.jsx("div",{"data-vg-id":"2e782fdd","data-source-path":"/src/components/ViewGateOverlay.tsx:3316",style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px"},children:i.jsxs("div",{"data-vg-id":"2e782fde","data-source-path":"/src/components/ViewGateOverlay.tsx:3317",style:{fontSize:"10px",fontWeight:800,color:l.priority==="low"?"#059669":l.priority==="urgent"?"#b91c1c":l.priority==="high"?"#b45309":"#4338ca",backgroundColor:l.priority==="low"?"#ecfdf5":l.priority==="urgent"?"#fef2f2":l.priority==="high"?"#fffbeb":"#eef2ff",padding:"4px 10px",borderRadius:"6px",letterSpacing:"0.5px",border:"1px solid",borderColor:l.priority==="low"?"#d1fae5":l.priority==="urgent"?"#fee2e2":l.priority==="high"?"#fef3c7":"#e0e7ff"},children:[r.priority,": ",r[l.priority||"medium"]]})}),i.jsx("p",{"data-vg-id":"f01af8be","data-source-path":"/src/components/ViewGateOverlay.tsx:3331",className:"vg-text-wrap",style:{margin:"0",fontSize:"16px",color:"#1e293b",lineHeight:1.6},children:l.message}),l.figmaReference?.length>0&&i.jsxs("div",{"data-vg-id":"2e782fe0","data-source-path":"/src/components/ViewGateOverlay.tsx:3336",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#faf5ff",borderRadius:"12px",border:"1px solid #fae8ff"},children:[i.jsxs("div",{"data-vg-id":"2e782ff6","data-source-path":"/src/components/ViewGateOverlay.tsx:3337",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[i.jsx(Dt,{"data-vg-id":"ea06996f","data-source-path":"/src/components/ViewGateOverlay.tsx:3338",size:14,style:{color:"#d946ef"}}),i.jsx("span",{"data-vg-id":"8161c8d","data-source-path":"/src/components/ViewGateOverlay.tsx:3339",style:{fontSize:"11px",fontWeight:800,color:"#a21caf",textTransform:"uppercase",letterSpacing:"0.05em"},children:e==="es"?"Diseños Figma":"Figma Designs"})]}),l.figmaReference.map((p,x)=>i.jsxs("a",{"data-vg-id":"ef479849","data-source-path":"/src/components/ViewGateOverlay.tsx:3342",href:p.link,target:"_blank",rel:"noreferrer",className:"vg-animate-pop",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",background:"#ffffff",border:"1px solid #f5d0fe",borderRadius:"10px",fontSize:"13px",color:"#c026d3",textDecoration:"none",transition:"all 0.2s",boxShadow:"0 2px 4px rgba(217, 70, 239, 0.05)"},onMouseEnter:H=>{H.currentTarget.style.transform="translateY(-2px)",H.currentTarget.style.boxShadow="0 4px 12px rgba(217, 70, 239, 0.15)",H.currentTarget.style.borderColor="#d946ef"},onMouseLeave:H=>{H.currentTarget.style.transform="translateY(0)",H.currentTarget.style.boxShadow="0 2px 4px rgba(217, 70, 239, 0.05)",H.currentTarget.style.borderColor="#f5d0fe"},children:[i.jsxs("div",{"data-vg-id":"2e782ffa","data-source-path":"/src/components/ViewGateOverlay.tsx:3350",style:{display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx("div",{"data-vg-id":"2e782ffb","data-source-path":"/src/components/ViewGateOverlay.tsx:3351",style:{width:"24px",height:"24px",borderRadius:"6px",background:"rgba(217, 70, 239, 0.1)",display:"flex",alignItems:"center",justifyContent:"center"},children:i.jsx(yr,{"data-vg-id":"b806bf29","data-source-path":"/src/components/ViewGateOverlay.tsx:3352",size:12,strokeWidth:3})}),i.jsx("span",{"data-vg-id":"8161c92","data-source-path":"/src/components/ViewGateOverlay.tsx:3354",style:{fontWeight:700},children:p.name||"Figma Reference"})]}),i.jsx(sn,{"data-vg-id":"5c2be04e","data-source-path":"/src/components/ViewGateOverlay.tsx:3356",size:14,style:{opacity:.5}})]},x))]}),l.backendEndpoints?.length>0&&i.jsxs("div",{"data-vg-id":"2e782fff","data-source-path":"/src/components/ViewGateOverlay.tsx:3363",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#f5f8ff",borderRadius:"12px",border:"1px solid #e0e7ff"},children:[i.jsxs("div",{"data-vg-id":"2e783015","data-source-path":"/src/components/ViewGateOverlay.tsx:3364",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[i.jsx(ve,{"data-vg-id":"b1e4c2d2","data-source-path":"/src/components/ViewGateOverlay.tsx:3365",size:14,style:{color:"#4f46e5"}}),i.jsx("span",{"data-vg-id":"8161cac","data-source-path":"/src/components/ViewGateOverlay.tsx:3366",style:{fontSize:"11px",fontWeight:800,color:"#3730a3",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Backend Endpoints"})]}),i.jsx("div",{"data-vg-id":"2e783018","data-source-path":"/src/components/ViewGateOverlay.tsx:3368",style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:l.backendEndpoints.map(p=>{const x=p.split("|"),H=x.length>1?x[0]:"";let D=x.length>1?x[1]||"":p||"",K="#4f46e5",T="#e0e7ff";return H==="GET"?(K="#059669",T="#d1fae5"):H==="POST"?(K="#ea580c",T="#ffedd5"):H==="PUT"?(K="#0284c7",T="#e0f2fe"):H==="DELETE"&&(K="#e11d48",T="#ffe4e6"),i.jsxs("div",{"data-vg-id":"2e783019","data-source-path":"/src/components/ViewGateOverlay.tsx:3383",className:"vg-animate-slide",style:{fontSize:"12px",padding:"6px 12px",background:"#ffffff",color:"#4f46e5",borderRadius:"8px",border:"1px solid #c7d2fe",display:"flex",alignItems:"center",gap:"8px",boxShadow:"0 2px 4px rgba(79, 70, 229, 0.05)"},children:[H&&i.jsx("span",{"data-vg-id":"8161caf","data-source-path":"/src/components/ViewGateOverlay.tsx:3389",style:{fontWeight:800,color:K,background:T,padding:"2px 6px",borderRadius:"4px",fontSize:"10px"},children:H}),i.jsx("span",{"data-vg-id":"8161cb0","data-source-path":"/src/components/ViewGateOverlay.tsx:3390",style:{fontWeight:600,fontFamily:"monospace",letterSpacing:"-0.02em",color:"#1e293b"},children:D})]},p)})})]})]}),i.jsxs("div",{"data-vg-id":"2e78301c","data-source-path":"/src/components/ViewGateOverlay.tsx:3400",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"12px",borderTop:"1px solid #f1f5f9",paddingTop:"16px"},children:[i.jsx("div",{"data-vg-id":"2e78301d","data-source-path":"/src/components/ViewGateOverlay.tsx:3402",style:{display:"flex",gap:"6px"},children:ur!=="client"&&i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px"},onClick:()=>{const p=l.backendEndpoints||[],x=l.focusAreas&&l.focusAreas.length>0?l.focusAreas:[...p.length>0?["backend"]:[],...l.figmaReference&&l.figmaReference.length>0?["ux"]:[]];Ds(l._id),Kc(l.message),y(l.priority||"medium"),fo(x),mr(l.figmaReference&&l.figmaReference.length>0?l.figmaReference:[{name:r.figmaPrimaryDesign,link:""}]),Rs(p),ZA(p)},title:r.edit,children:i.jsx(Dt,{"data-vg-id":"ea069996","data-source-path":"/src/components/ViewGateOverlay.tsx:3426",size:16})}),i.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px",color:"#ef4444"},onClick:()=>{Y({title:r.deleteConfirm,message:r.confirmDelete,type:"danger",onConfirm:async()=>{try{(await fetch(`${n}/api/annotations/${l._id}`,{method:"DELETE",headers:{"x-api-key":s}})).ok&&(Os(),A(r.deleteSuccess,"success"))}catch{A(r.error,"error")}finally{Y(null)}}})},title:e==="es"?"Eliminar":"Delete",children:i.jsx(Ir,{"data-vg-id":"45b44219","data-source-path":"/src/components/ViewGateOverlay.tsx:3456",size:16})})]})}),i.jsxs("div",{"data-vg-id":"2e783035","data-source-path":"/src/components/ViewGateOverlay.tsx:3462",style:{display:"flex",gap:"8px"},children:[ur!=="client"&&l.status==="ready_for_review"&&i.jsxs("button",{onClick:()=>$p(l),className:"vg-button-primary vg-animate-pop",style:{padding:"8px 16px",fontSize:"13px",whiteSpace:"nowrap",background:"linear-gradient(135deg, #059669 0%, #10b981 100%)",boxShadow:"0 4px 12px rgba(5, 150, 69, 0.2)",display:"flex",alignItems:"center",gap:"8px",fontWeight:700},disabled:Fe,children:[Fe?i.jsx(Er,{"data-vg-id":"a4b73604","data-source-path":"/src/components/ViewGateOverlay.tsx:3480",size:14,className:"vg-animate-spin"}):i.jsx(bl,{"data-vg-id":"41e603c7","data-source-path":"/src/components/ViewGateOverlay.tsx:3480",size:14}),e==="es"?"Resolver con Evidencia":"Resolve & Capture"]}),i.jsxs("a",{href:`${(o||"").replace(/\/$/,"")}/${g||l.status==="backlog"?"backlog":"board"}?search=${l.key||(l._id?"VG-"+l._id.slice(-6).toUpperCase():"TICKET")}${qA?`&projectId=${qA}`:""}`,target:"_blank",rel:"noopener noreferrer",className:"vg-button-primary vg-animate-pop",style:{padding:"8px 16px",fontSize:"13px",whiteSpace:"nowrap",textDecoration:"none",display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"},children:[i.jsx(sn,{"data-vg-id":"5c2be088","data-source-path":"/src/components/ViewGateOverlay.tsx:3500",size:14}),e==="es"?"Ver en Dashboard":"View in Dashboard"]})]})]})]},l._id))},dA||"all")]})}),NA&&i.jsx("div",{"data-vg-id":"2e783039","data-source-path":"/src/components/ViewGateOverlay.tsx:3516",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(11, 15, 25, 0.7)",backdropFilter:"blur(8px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:$e+100},children:i.jsxs("div",{"data-vg-id":"2e78303a","data-source-path":"/src/components/ViewGateOverlay.tsx:3521",className:"vg-glassmorphism vg-animate-slide",style:{padding:"40px",width:"420px",textAlign:"center",border:"1px solid rgba(255, 255, 255, 0.1)",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.5)"},children:[i.jsx("div",{"data-vg-id":"2e78303b","data-source-path":"/src/components/ViewGateOverlay.tsx:3528",style:{width:"64px",height:"64px",background:NA.type==="danger"?"rgba(239, 68, 68, 0.1)":"rgba(99, 102, 241, 0.1)",borderRadius:"20px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px",color:NA.type==="danger"?"#ef4444":"#6366f1",transform:"rotate(-5deg)"},children:NA.type==="danger"?i.jsx(Ir,{"data-vg-id":"45b44221","data-source-path":"/src/components/ViewGateOverlay.tsx:3537",size:32}):i.jsx(Ne,{"data-vg-id":"a75c1ae2","data-source-path":"/src/components/ViewGateOverlay.tsx:3537",size:32})}),i.jsx("h3",{"data-vg-id":"53ec569","data-source-path":"/src/components/ViewGateOverlay.tsx:3539",style:{margin:"0 0 12px 0",fontSize:"20px",fontWeight:800,color:"#000000",letterSpacing:"-0.02em"},children:NA.title}),i.jsx("p",{"data-vg-id":"f01af933","data-source-path":"/src/components/ViewGateOverlay.tsx:3540",style:{margin:"0 0 24px 0",fontSize:"15px",color:"#000000",lineHeight:1.6},children:NA.message}),NA.showInput&&i.jsx("textarea",{className:"vg-textarea",placeholder:r.reopenPlaceholder,value:tA,onChange:l=>lA(l.target.value),rows:3,autoFocus:!0,style:{marginBottom:"24px",minHeight:"80px",textAlign:"left"}}),i.jsxs("div",{"data-vg-id":"2e783055","data-source-path":"/src/components/ViewGateOverlay.tsx:3554",style:{display:"flex",gap:"16px"},children:[i.jsx("button",{className:"vg-button-ghost",style:{flex:1,height:"44px"},onClick:()=>!fe&&Y(null),disabled:fe,children:r.no}),i.jsx("button",{className:"vg-button-primary",style:{flex:1,height:"44px",backgroundColor:NA.type==="danger"?"#ef4444":void 0,backgroundImage:NA.type==="danger"?"none":void 0,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",opacity:NA.showInput&&!tA.trim()?.5:1,cursor:NA.showInput&&!tA.trim()?"not-allowed":"pointer"},disabled:fe||NA.showInput&&!tA.trim(),onClick:async()=>{gr(!0);try{await NA.onConfirm(tA)}catch(l){console.error("Confirmation error:",l)}finally{gr(!1)}},children:fe?i.jsx(Er,{"data-vg-id":"a4b73624","data-source-path":"/src/components/ViewGateOverlay.tsx:3590",size:18,className:"vg-animate-spin"}):r.yes})]})]})}),!MA&&!u&&fA&&Ut.map((l,h)=>{const{rect:p,annotations:x,isModal:H}=l,D=x[0],K=x.length,T=x.some(S=>S.status==="ready_for_review"),oA=x.some(S=>S.status==="completed"||S.status==="done"),_=x.some(S=>S.status!=="ready_for_review"&&S.status!=="completed"&&S.status!=="done"),xA=oA&&!T&&!_,aA=T&&!_&&!oA,IA=(T||oA)&&!_,$=(T||oA)&&_,hA=x.filter(S=>S.status!=="ready_for_review"&&S.status!=="completed"&&S.status!=="done").length,HA=x.filter(S=>S.status==="ready_for_review").length,UA=x.filter(S=>S.status==="completed"||S.status==="done").length,DA=x.some(S=>S.status==="bug_fixing"||S.type==="bug"||S.originalStatus==="bug_fixing"),vt=DA&&!aA&&!xA?"#f43f5e":hA>0?g?"#64748b":"#ea580c":HA>0?"#a855f7":"#10b981",It=Ut.some(S=>S.element===l.element&&S.isTriggerPin),Me=Ut.some(S=>S.element===l.element&&!S.isTriggerPin),St=It&&Me?l.isTriggerPin?-18:18:0,Cr=p.top===0&&p.left===0&&p.width>window.innerWidth*.9;return i.jsxs("div",{className:"vg-pin-container vg-animate-pop",style:{position:"fixed",top:Math.max(20,Math.min(window.innerHeight-52,p.top-20)),left:Cr?Math.max(20,p.left+40+St):Math.max(20,Math.min(window.innerWidth-52,p.left+p.width/2-16+St)),width:"32px",height:"32px",cursor:"pointer",transition:"all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",zIndex:Op},onMouseEnter:S=>{const nt=S.currentTarget.getBoundingClientRect(),kc=window.innerHeight-nt.bottom,qp=nt.top;kc<250&&qp>kc?uA(Qo=>({...Qo,[l.id]:"vg-top"})):uA(Qo=>({...Qo,[l.id]:""}))},onWheel:S=>{const nt=S.currentTarget.querySelector(".vg-tooltip-scroll");nt&&nt.scrollBy({top:S.deltaY,behavior:"smooth"})},onClick:()=>{ue(!0),ye(D._id)},children:[i.jsxs("div",{"data-vg-id":"2e783057","data-source-path":"/src/components/ViewGateOverlay.tsx:3665",className:`vg-pin-tooltip ${_A[l.id]||""} ${Cr||p.left<160?"vg-tooltip-right":p.left>window.innerWidth-160?"vg-tooltip-left":""}`,style:{padding:"16px"},children:[i.jsxs("div",{"data-vg-id":"2e783058","data-source-path":"/src/components/ViewGateOverlay.tsx:3666",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[i.jsxs("div",{"data-vg-id":"2e783059","data-source-path":"/src/components/ViewGateOverlay.tsx:3667",style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},children:[l.isTriggerPin?i.jsx(br,{"data-vg-id":"d88161bf","data-source-path":"/src/components/ViewGateOverlay.tsx:3669",size:14,color:vt}):i.jsx(vr,{"data-vg-id":"7fe17ae","data-source-path":"/src/components/ViewGateOverlay.tsx:3671",size:14,color:vt}),i.jsxs("div",{"data-vg-id":"2e78305c","data-source-path":"/src/components/ViewGateOverlay.tsx:3673",style:{display:"flex",gap:"4px"},children:[hA>0&&i.jsxs("span",{"data-vg-id":"8161d07","data-source-path":"/src/components/ViewGateOverlay.tsx:3675",className:"vg-badge",style:{fontSize:"10px",background:g?"#f1f5f9":"#fff7ed",color:g?"#64748b":"#c2410c"},children:[hA," ",g||D.status==="backlog"?"Backlog":e==="es"?hA===1?r.pending:"Pendientes":"pending"]}),HA>0&&i.jsxs("span",{"data-vg-id":"8161d08","data-source-path":"/src/components/ViewGateOverlay.tsx:3684",style:{fontSize:"10px",fontWeight:700,color:"#a855f7",background:"#f3e8ff",padding:"2px 6px",borderRadius:"6px"},children:[HA," ",e==="es"?HA===1?"Listo para revisión":"Listos para revisión":"ready for review"]}),UA>0&&i.jsxs("span",{"data-vg-id":"8161d09","data-source-path":"/src/components/ViewGateOverlay.tsx:3696",style:{fontSize:"10px",fontWeight:700,color:"#059669",background:"#ecfdf5",padding:"2px 6px",borderRadius:"6px"},children:[UA," ",e==="es"?UA===1?"Completado":"Completados":"completed"]}),x.some(S=>S.status==="bug_fixing")&&i.jsx("span",{"data-vg-id":"8161d0a","data-source-path":"/src/components/ViewGateOverlay.tsx:3708",style:{fontSize:"10px",fontWeight:700,color:"#e11d48",background:"#fff1f2",padding:"2px 6px",borderRadius:"6px"},children:"BUG"})]})]}),H&&i.jsx("span",{"data-vg-id":"8161d0b","data-source-path":"/src/components/ViewGateOverlay.tsx:3722",className:"vg-badge",style:{fontSize:"10px",background:g?"#f1f5f9":$?`linear-gradient(90deg, #ea580c 50%, ${oA?"#10b981":"#a855f7"} 50%)`:hA>0?"#fff7ed":xA?"#ecfdf5":"#f3e8ff",color:g?"#64748b":$?"#ffffff":hA>0?"#c2410c":xA?"#059669":"#a855f7",border:"none",fontWeight:800,textShadow:$&&!g?"0 1px 2px rgba(0,0,0,0.2)":"none"},children:"MODAL"})]}),i.jsx("div",{"data-vg-id":"2e783077","data-source-path":"/src/components/ViewGateOverlay.tsx:3734",className:"vg-tooltip-scroll",style:{maxHeight:"180px",overflowY:"auto"},children:x.map((S,nt)=>i.jsxs("div",{"data-vg-id":"2e783078","data-source-path":"/src/components/ViewGateOverlay.tsx:3736",style:{padding:"10px 0",borderTop:nt===0?"none":"1px solid #f1f5f9",display:"flex",gap:"12px",alignItems:"flex-start"},children:[i.jsxs("div",{"data-vg-id":"2e783079","data-source-path":"/src/components/ViewGateOverlay.tsx:3743",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[i.jsxs("div",{"data-vg-id":"2e78307a","data-source-path":"/src/components/ViewGateOverlay.tsx:3744",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx("span",{"data-vg-id":"8161d10","data-source-path":"/src/components/ViewGateOverlay.tsx:3745",style:{fontSize:"10px",fontWeight:600,color:"#64748b"},children:lc(S.timestamp||S.createdAt,e)}),S.creator&&i.jsx("div",{"data-vg-id":"2e783091","data-source-path":"/src/components/ViewGateOverlay.tsx:3749",style:{marginLeft:"4px"},children:S.creator.avatar?i.jsx("img",{"data-vg-id":"3cf75ac4","data-source-path":"/src/components/ViewGateOverlay.tsx:3751",src:S.creator.avatar,style:{width:"14px",height:"14px",borderRadius:"50%"},alt:""}):i.jsx("div",{"data-vg-id":"2e783093","data-source-path":"/src/components/ViewGateOverlay.tsx:3753",style:{width:"14px",height:"14px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"7px",fontWeight:700},children:S.creator.name?.[0]})})]}),S.url&&i.jsx(dc,{url:S.url,onHover:vc,style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"9px",color:"#6366f1",opacity:.8,background:"rgba(99, 102, 241, 0.05)",padding:"2px 6px",borderRadius:"4px",maxWidth:"120px"},tooltipStyle:{fontSize:"9px"}}),i.jsx("div",{"data-vg-id":"2e783094","data-source-path":"/src/components/ViewGateOverlay.tsx:3779",className:"vg-line-clamp-2",style:{fontSize:"13px",color:"#1e293b",lineHeight:1.4,fontWeight:500},children:S.message.length>100?S.message.slice(0,97)+"...":S.message})]}),i.jsxs("div",{"data-vg-id":"2e783095","data-source-path":"/src/components/ViewGateOverlay.tsx:3783",style:{flexShrink:0,marginTop:"2px",display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-end"},children:[i.jsx("div",{"data-vg-id":"2e783096","data-source-path":"/src/components/ViewGateOverlay.tsx:3784",style:{fontSize:"8px",fontWeight:800,color:S.priority==="low"?"#059669":S.priority==="urgent"?"#b91c1c":S.priority==="high"?"#b45309":"#4338ca",backgroundColor:S.priority==="low"?"#ecfdf5":S.priority==="urgent"?"#fef2f2":S.priority==="high"?"#fffbeb":"#eef2ff",padding:"2px 6px",borderRadius:"4px",textTransform:"uppercase",border:"1px solid",borderColor:S.priority==="low"?"#d1fae5":S.priority==="urgent"?"#fee2e2":S.priority==="high"?"#fef3c7":"#e0e7ff"},children:r[S.priority||"medium"]}),S.status==="completed"||S.status==="done"?i.jsxs("span",{"data-vg-id":"8161d2c","data-source-path":"/src/components/ViewGateOverlay.tsx:3798",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#059669",background:"#ecfdf5",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #d1fae5"},children:[i.jsx(Ne,{"data-vg-id":"a75c1b3d","data-source-path":"/src/components/ViewGateOverlay.tsx:3811",size:10}),r.completed]}):S.status==="ready_for_review"?i.jsxs("span",{"data-vg-id":"8161d2e","data-source-path":"/src/components/ViewGateOverlay.tsx:3815",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#a855f7",background:"#f3e8ff",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #e9d5ff"},children:[S.type==="bug"||S.status==="bug_fixing"||S.originalStatus==="bug_fixing"?i.jsx(Kt,{"data-vg-id":"3b8b18dd","data-source-path":"/src/components/ViewGateOverlay.tsx:3828",size:10}):i.jsx(Ne,{"data-vg-id":"a75c1de0","data-source-path":"/src/components/ViewGateOverlay.tsx:3828",size:10}),r.readyForReview]}):S.status==="bug_fixing"?i.jsxs("span",{"data-vg-id":"8161fd1","data-source-path":"/src/components/ViewGateOverlay.tsx:3832",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#e11d48",background:"#fff1f2",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #ffe4e6"},children:[i.jsx(Kt,{"data-vg-id":"3b8b1b80","data-source-path":"/src/components/ViewGateOverlay.tsx:3845",size:10}),"Bug Fixing"]}):i.jsxs("span",{"data-vg-id":"8161fd3","data-source-path":"/src/components/ViewGateOverlay.tsx:3849",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:g||S.status==="backlog"?"#64748b":"#ea580c",background:g||S.status==="backlog"?"#f1f5f9":"#fff7ed",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:g||S.status==="backlog"?"1px solid #e2e8f0":"1px solid #ffedd5"},children:[i.jsx(zo,{"data-vg-id":"62dc6f9c","data-source-path":"/src/components/ViewGateOverlay.tsx:3862",size:10}),g||S.status==="backlog"?r.backlog:r.pending]})]})]},S._id))})]}),i.jsxs("div",{"data-vg-id":"2e783340","data-source-path":"/src/components/ViewGateOverlay.tsx:3872",className:`vg-formal-pin ${xA?"completed":aA||IA?"ready":DA?"bug":$?"mixed":g?"backlog":""} ${l.isTriggerPin?"modal-variant":""}`,style:{position:"relative",background:DA&&!aA&&!xA?"linear-gradient(135deg, #f43f5e 0%, #e11d48 100%)":aA?"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":$?oA?"linear-gradient(135deg, #10b981 0%, #059669 100%)":"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":void 0},children:[aA||xA||IA?DA&&!xA?i.jsx(Kt,{"data-vg-id":"3b8b1b84","data-source-path":"/src/components/ViewGateOverlay.tsx:3879",size:18}):i.jsx(Ne,{"data-vg-id":"a75c1de7","data-source-path":"/src/components/ViewGateOverlay.tsx:3879",size:18}):DA?i.jsx(Kt,{"data-vg-id":"3b8b1b86","data-source-path":"/src/components/ViewGateOverlay.tsx:3879",size:18}):l.isTriggerPin?i.jsx(br,{"data-vg-id":"d88164a9","data-source-path":"/src/components/ViewGateOverlay.tsx:3879",size:16}):H?i.jsx(sn,{"data-vg-id":"5c2be3aa","data-source-path":"/src/components/ViewGateOverlay.tsx:3879",size:16}):i.jsx(vr,{"data-vg-id":"7fe1aae","data-source-path":"/src/components/ViewGateOverlay.tsx:3879",size:16}),K>1&&i.jsx("div",{"data-vg-id":"2e78335c","data-source-path":"/src/components/ViewGateOverlay.tsx:3882",className:"vg-pin-badge vg-animate-pop",children:K})]})]},`group-${l.id}`)}),i.jsx("div",{className:`vg-url-tooltip ${rt?"visible":""} ${rt?.direction==="bottom"?"vg-bottom":"vg-top"}`,style:{transform:rt?`translate(-50%, ${rt.direction==="top"?"-110%":"10%"})`:"translate(-50%, 0)",left:rt?.x||0,top:rt?.y||0},children:rt?.url}),Ae&&i.jsx("div",{"data-vg-id":"2e78335d","data-source-path":"/src/components/ViewGateOverlay.tsx:3907",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.75)",backdropFilter:"blur(16px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:$e+100,animation:"vg-fade-in 0.3s ease-out"},onClick:l=>{l.target===l.currentTarget&&z(!1)},children:i.jsxs("div",{"data-vg-id":"2e78335e","data-source-path":"/src/components/ViewGateOverlay.tsx:3916",className:"vg-glassmorphism vg-animate-pop",style:{width:"95%",maxWidth:"800px",height:"85vh",maxHeight:"850px",display:"flex",flexDirection:"column",overflow:"hidden",boxShadow:"0 50px 100px rgba(0,0,0,0.6)",borderRadius:"32px",border:"1px solid rgba(255, 255, 255, 0.15)",backgroundColor:"rgba(255, 255, 255, 0.98)"},children:[i.jsxs("div",{"data-vg-id":"2e78335f","data-source-path":"/src/components/ViewGateOverlay.tsx:3929",style:{padding:"32px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",display:"flex",alignItems:"center",justifyContent:"space-between",background:"white"},children:[i.jsxs("div",{"data-vg-id":"2e783360","data-source-path":"/src/components/ViewGateOverlay.tsx:3930",children:[i.jsx("h3",{"data-vg-id":"53ec877","data-source-path":"/src/components/ViewGateOverlay.tsx:3931",style:{margin:0,fontSize:"24px",fontWeight:900,letterSpacing:"-0.03em",color:"#0f172a"},children:e==="es"?"Selector de Endpoints":"Endpoint Selector"}),i.jsx("p",{"data-vg-id":"f01afc41","data-source-path":"/src/components/ViewGateOverlay.tsx:3934",style:{margin:"6px 0 0 0",fontSize:"14px",color:"#64748b",fontWeight:500},children:e==="es"?"Asocia múltiples rutas backend a este ticket para mayor precisión":"Associate multiple backend routes to this ticket for better precision"})]}),i.jsx("button",{"data-vg-id":"5861c060","data-source-path":"/src/components/ViewGateOverlay.tsx:3938",onClick:()=>z(!1),className:"vg-close-pill",style:{width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"14px",background:"#f1f5f9",color:"#64748b",border:"none",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:l=>{l.currentTarget.style.background="#e2e8f0",l.currentTarget.style.color="#0f172a"},onMouseLeave:l=>{l.currentTarget.style.background="#f1f5f9",l.currentTarget.style.color="#64748b"},children:i.jsx(Rt,{"data-vg-id":"eec8c840","data-source-path":"/src/components/ViewGateOverlay.tsx:3945",size:20,strokeWidth:2.5})})]}),i.jsx("div",{"data-vg-id":"2e78337a","data-source-path":"/src/components/ViewGateOverlay.tsx:3949",style:{padding:"24px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",background:"#fcfcfc"},children:i.jsxs("div",{"data-vg-id":"2e78337b","data-source-path":"/src/components/ViewGateOverlay.tsx:3950",style:{position:"relative"},children:[i.jsx(Tl,{"data-vg-id":"8f7bb00f","data-source-path":"/src/components/ViewGateOverlay.tsx:3951",size:20,style:{position:"absolute",left:"16px",top:"50%",transform:"translateY(-50%)",color:"#94a3b8"}}),i.jsx("input",{"data-vg-id":"88e38db6","data-source-path":"/src/components/ViewGateOverlay.tsx:3952",type:"text",placeholder:e==="es"?"Buscar rutas, métodos o descripciones...":"Search routes, methods, or descriptions...",value:eA,onChange:l=>ge(l.target.value),className:"vg-textarea",style:{padding:"14px 16px 14px 50px",fontSize:"16px",minHeight:"auto",borderRadius:"16px",border:"1px solid #e2e8f0",backgroundColor:"white",boxShadow:"0 2px 8px rgba(0,0,0,0.04)"},autoFocus:!0})]})}),i.jsx("div",{"data-vg-id":"2e78337e","data-source-path":"/src/components/ViewGateOverlay.tsx:3972",style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:"24px 40px"},className:"vg-custom-scrollbar",children:fr?Lc.length>0?i.jsx("div",{"data-vg-id":"2e783382","data-source-path":"/src/components/ViewGateOverlay.tsx:3979",style:{display:"flex",flexDirection:"column",gap:"0px"},children:Lc.map(l=>{const h=l.name===(e==="es"?"Seleccionados":"Selected");return i.jsxs("div",{"data-vg-id":"2e783398","data-source-path":"/src/components/ViewGateOverlay.tsx:3983",style:{marginBottom:"32px"},children:[i.jsxs("div",{"data-vg-id":"2e783399","data-source-path":"/src/components/ViewGateOverlay.tsx:3984",style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"16px",padding:"0 4px"},children:[i.jsx("span",{"data-vg-id":"816202f","data-source-path":"/src/components/ViewGateOverlay.tsx:3985",style:{fontSize:"11px",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em",color:h?"#10b981":"#6366f1",backgroundColor:h?"rgba(10, 185, 129, 0.08)":"rgba(99, 102, 241, 0.08)",padding:"4px 10px",borderRadius:"6px",border:"1px solid",borderColor:h?"rgba(10, 185, 129, 0.1)":"rgba(99, 102, 241, 0.1)"},children:l.name}),i.jsx("div",{"data-vg-id":"2e78339b","data-source-path":"/src/components/ViewGateOverlay.tsx:3999",style:{flex:1,height:"1px",background:`linear-gradient(90deg, ${h?"rgba(16, 185, 129, 0.15)":"rgba(99, 102, 241, 0.15)"} 0%, transparent 100%)`}})]}),i.jsx("div",{"data-vg-id":"2e78339c","data-source-path":"/src/components/ViewGateOverlay.tsx:4006",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(340px, 1fr))",gap:"12px"},children:l.endpoints.map(p=>{const x=`${p.method}|${p.path}`,H=J.includes(x);return i.jsxs("div",{"data-vg-id":"2e78339d","data-source-path":"/src/components/ViewGateOverlay.tsx:4015",onClick:()=>{ZA(H?J.filter(D=>D!==x):[...J,x])},style:{padding:"16px 20px",borderRadius:"18px",cursor:"pointer",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",background:H?"#f5f7ff":"#ffffff",border:"1px solid",borderColor:H?"rgba(99, 102, 241, 0.2)":"#f1f5f9",display:"flex",alignItems:"center",gap:"16px",boxShadow:H?"0 4px 12px rgba(99, 102, 241, 0.08)":"none"},onMouseEnter:D=>{H||(D.currentTarget.style.background="#f8fafc",D.currentTarget.style.borderColor="#e2e8f0")},onMouseLeave:D=>{H||(D.currentTarget.style.background="#ffffff",D.currentTarget.style.borderColor="#f1f5f9")},children:[i.jsx("div",{"data-vg-id":"2e78339e","data-source-path":"/src/components/ViewGateOverlay.tsx:4047",style:{width:"24px",height:"24px",borderRadius:"8px",border:"2px solid",borderColor:H?"#6366f1":"#cbd5e1",backgroundColor:H?"#6366f1":"white",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",flexShrink:0},children:H&&i.jsx("div",{"data-vg-id":"2e78339f","data-source-path":"/src/components/ViewGateOverlay.tsx:4060",style:{color:"white",fontSize:"14px",fontWeight:900},children:"✓"})}),i.jsxs("div",{"data-vg-id":"2e7833a0","data-source-path":"/src/components/ViewGateOverlay.tsx:4062",style:{flex:1,minWidth:0},children:[i.jsxs("div",{"data-vg-id":"2e7833a1","data-source-path":"/src/components/ViewGateOverlay.tsx:4063",style:{display:"flex",alignItems:"center",gap:"10px"},children:[i.jsx("span",{"data-vg-id":"816204c","data-source-path":"/src/components/ViewGateOverlay.tsx:4064",style:{fontSize:"11px",fontWeight:800,padding:"3px 8px",borderRadius:"8px",background:p.method==="GET"?"#dcfce7":"#fee2e2",color:p.method==="GET"?"#166534":"#991b1b",flexShrink:0},children:p.method}),i.jsx("span",{"data-vg-id":"816204d","data-source-path":"/src/components/ViewGateOverlay.tsx:4075",style:{fontWeight:700,color:H?"#4338ca":"#1e293b",fontSize:"14px",wordBreak:"break-all"},children:p.path}),p.contract&&i.jsx("div",{"data-vg-id":"2e7833b9","data-source-path":"/src/components/ViewGateOverlay.tsx:4084",style:{fontSize:"9px",fontWeight:900,color:"#6366f1",background:"rgba(99, 102, 241, 0.1)",padding:"1px 5px",borderRadius:"4px",textTransform:"uppercase"},children:"JSON"})]}),p.description&&i.jsx("div",{"data-vg-id":"2e7833ba","data-source-path":"/src/components/ViewGateOverlay.tsx:4096",style:{fontSize:"12px",color:"#64748b",marginTop:"6px",wordBreak:"break-word",fontWeight:450,lineHeight:1.4},children:p.description})]})]},x)})})]},l.name)})}):i.jsxs("div",{"data-vg-id":"2e7833bb","data-source-path":"/src/components/ViewGateOverlay.tsx:4117",style:{padding:"80px 20px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center"},children:[i.jsx("div",{"data-vg-id":"2e7833bc","data-source-path":"/src/components/ViewGateOverlay.tsx:4118",style:{width:"80px",height:"80px",borderRadius:"24px",backgroundColor:"#f1f5f9",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"24px"},children:i.jsx(ve,{"data-vg-id":"b1e4c679","data-source-path":"/src/components/ViewGateOverlay.tsx:4119",size:40,style:{color:"#94a3b8"}})}),i.jsx("p",{"data-vg-id":"f01afc9d","data-source-path":"/src/components/ViewGateOverlay.tsx:4121",style:{color:"#0f172a",fontSize:"18px",fontWeight:800,margin:"0 0 8px 0"},children:e==="es"?"No encontramos lo que buscas":"No results found"}),i.jsx("p",{"data-vg-id":"f01afc9e","data-source-path":"/src/components/ViewGateOverlay.tsx:4124",style:{color:"#64748b",fontSize:"15px",margin:0},children:e==="es"?"Intenta buscar con otros términos o revisa la sincronización":"Try searching with different terms or check synchronization"})]}):i.jsxs("div",{"data-vg-id":"2e78337f","data-source-path":"/src/components/ViewGateOverlay.tsx:3974",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"100px 0",gap:"20px"},children:[i.jsx("div",{"data-vg-id":"2e783380","data-source-path":"/src/components/ViewGateOverlay.tsx:3975",className:"vg-spinner",style:{width:"40px",height:"40px",border:"3px solid rgba(99, 102, 241, 0.1)",borderTopColor:"#6366f1"}}),i.jsx("p",{"data-vg-id":"f01afc60","data-source-path":"/src/components/ViewGateOverlay.tsx:3976",style:{color:"#64748b",fontSize:"15px",fontWeight:600},children:e==="es"?"Cargando endpoints...":"Loading endpoints..."})]})}),i.jsxs("div",{"data-vg-id":"2e7833c0","data-source-path":"/src/components/ViewGateOverlay.tsx:4131",style:{padding:"24px 40px",borderTop:"1px solid rgba(0,0,0,0.06)",background:"white",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"20px"},children:[i.jsxs("div",{"data-vg-id":"2e7833d6","data-source-path":"/src/components/ViewGateOverlay.tsx:4132",style:{display:"flex",alignItems:"center",gap:"12px"},children:[i.jsxs("div",{"data-vg-id":"2e7833d7","data-source-path":"/src/components/ViewGateOverlay.tsx:4133",style:{padding:"6px 12px",background:"#f1f5f9",borderRadius:"10px",fontSize:"14px",fontWeight:700,color:"#475569"},children:[J.length," ",e==="es"?"seleccionados":"selected"]}),J.length>0&&i.jsx("button",{"data-vg-id":"5861c0d5","data-source-path":"/src/components/ViewGateOverlay.tsx:4137",onClick:()=>{ZA([]),yt&&Rs([])},style:{background:"none",border:"none",color:"#6366f1",fontSize:"14px",fontWeight:700,cursor:"pointer",padding:"4px 8px"},children:e==="es"?"Desmarcar todos":"Deselect all"})]}),i.jsx("div",{"data-vg-id":"2e7833d9","data-source-path":"/src/components/ViewGateOverlay.tsx:4148",style:{display:"flex",gap:"12px"},children:i.jsx("button",{"data-vg-id":"5861c0d7","data-source-path":"/src/components/ViewGateOverlay.tsx:4149",onClick:()=>{yt&&Rs(J),z(!1)},style:{minWidth:"160px",padding:"14px 28px",borderRadius:"16px",fontSize:"15px",fontWeight:850,border:"none",background:"var(--vg-primary-gradient)",color:"white",cursor:"pointer",boxShadow:"0 10px 25px -5px rgba(99, 102, 241, 0.45)",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:l=>{l.currentTarget.style.transform="translateY(-2px)",l.currentTarget.style.boxShadow="0 15px 30px -5px rgba(99, 102, 241, 0.6)"},onMouseLeave:l=>{l.currentTarget.style.transform="translateY(0)",l.currentTarget.style.boxShadow="0 10px 25px -5px rgba(99, 102, 241, 0.45)"},children:e==="es"?"Confirmar Selección":"Confirm Selection"})})]})]})}),xt?.contract&&i.jsx("div",{"data-vg-id":"2e7833db","data-source-path":"/src/components/ViewGateOverlay.tsx:4183",className:"vg-animate-fade",style:{position:"fixed",left:Math.min(xt.x,window.innerWidth-420),top:Math.min(xt.y,window.innerHeight-300),width:"400px",zIndex:$e+500,pointerEvents:"none"},children:i.jsxs("div",{"data-vg-id":"2e7833dc","data-source-path":"/src/components/ViewGateOverlay.tsx:4191",className:"vg-glassmorphism",style:{padding:"20px",background:"rgba(15, 23, 42, 0.95)",backdropFilter:"blur(20px)",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"20px",boxShadow:"0 20px 40px rgba(0,0,0,0.4)",display:"flex",flexDirection:"column",gap:"12px"},children:[i.jsxs("div",{"data-vg-id":"2e7833dd","data-source-path":"/src/components/ViewGateOverlay.tsx:4202",style:{display:"flex",alignItems:"center",gap:"8px"},children:[i.jsx("div",{"data-vg-id":"2e7833de","data-source-path":"/src/components/ViewGateOverlay.tsx:4203",style:{padding:"4px 10px",background:"rgba(99, 102, 241, 0.2)",borderRadius:"8px",fontSize:"11px",fontWeight:900,color:"#818cf8",textTransform:"uppercase"},children:e==="es"?"CONTRATO":"CONTRACT"}),i.jsxs("span",{"data-vg-id":"8162074","data-source-path":"/src/components/ViewGateOverlay.tsx:4212",style:{color:"rgba(255, 255, 255, 0.5)",fontSize:"12px",fontWeight:600},children:[xt.method," ",xt.path]})]}),i.jsx("div",{"data-vg-id":"2e7833f5","data-source-path":"/src/components/ViewGateOverlay.tsx:4214",className:"vg-custom-scrollbar",style:{maxHeight:"250px",overflowY:"auto",background:"rgba(0,0,0,0.3)",borderRadius:"12px",padding:"12px"},children:i.jsx("pre",{"data-vg-id":"b7af0908","data-source-path":"/src/components/ViewGateOverlay.tsx:4221",style:{margin:0,fontSize:"11px",color:"#94a3b8",whiteSpace:"pre-wrap",wordBreak:"break-all",lineHeight:1.5,fontFamily:"JetBrains Mono, Fira Code, monospace"},children:xt.contract})})]})}),yt&&i.jsx("div",{"data-vg-id":"2e7833f7","data-source-path":"/src/components/ViewGateOverlay.tsx:4240",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(11, 15, 25, 0.4)",backdropFilter:"blur(8px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:$e+50},children:i.jsxs("div",{"data-vg-id":"2e7833f8","data-source-path":"/src/components/ViewGateOverlay.tsx:4246",className:"vg-glassmorphism vg-animate-slide",style:{width:"600px",maxWidth:"90vw",maxHeight:"90vh",overflowY:"auto",background:"#ffffff",borderRadius:"24px",padding:"32px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",gap:"24px"},children:[i.jsxs("div",{"data-vg-id":"2e7833f9","data-source-path":"/src/components/ViewGateOverlay.tsx:4257",style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[i.jsx("h2",{"data-vg-id":"530b18f","data-source-path":"/src/components/ViewGateOverlay.tsx:4258",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#1e293b"},children:e==="es"?"Editar Comentario":"Edit Comment"}),i.jsx("button",{"data-vg-id":"5861c0f8","data-source-path":"/src/components/ViewGateOverlay.tsx:4261",onClick:()=>Ds(null),style:{background:"none",border:"none",cursor:"pointer",color:"#94a3b8"},children:i.jsx(Rt,{"data-vg-id":"eec8c8c3","data-source-path":"/src/components/ViewGateOverlay.tsx:4262",size:24})})]}),i.jsxs("div",{"data-vg-id":"2e7833fd","data-source-path":"/src/components/ViewGateOverlay.tsx:4266",style:{display:"flex",flexDirection:"column",gap:"16px"},children:[i.jsxs("div",{"data-vg-id":"2e7833fe","data-source-path":"/src/components/ViewGateOverlay.tsx:4267",children:[i.jsx("label",{"data-vg-id":"feec1077","data-source-path":"/src/components/ViewGateOverlay.tsx:4268",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:r.priority}),i.jsx("div",{"data-vg-id":"2e783415","data-source-path":"/src/components/ViewGateOverlay.tsx:4269",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(l=>i.jsx("button",{onClick:()=>y(l),style:{flex:1,padding:"10px 12px",borderRadius:"12px",fontSize:"13px",fontWeight:800,border:"2px solid",borderColor:F===l?l==="low"?"#10b981":l==="medium"?"#6366f1":l==="high"?"#f59e0b":"#ef4444":"#f1f5f9",backgroundColor:F===l?l==="low"?"#ecfdf5":l==="medium"?"#eef2ff":l==="high"?"#fffbeb":"#fef2f2":"white",color:F===l?l==="low"?"#059669":l==="medium"?"#4338ca":l==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"capitalize"},children:r[l]},l))})]}),i.jsxs("div",{"data-vg-id":"2e783416","data-source-path":"/src/components/ViewGateOverlay.tsx:4289",style:{marginBottom:"8px"},children:[i.jsx("label",{"data-vg-id":"feec107a","data-source-path":"/src/components/ViewGateOverlay.tsx:4290",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:r.focusAreas}),i.jsx("div",{"data-vg-id":"2e783418","data-source-path":"/src/components/ViewGateOverlay.tsx:4291",style:{display:"flex",gap:"8px"},children:[{id:"frontend",label:r.frontend,icon:i.jsx(yr,{"data-vg-id":"b806c346","data-source-path":"/src/components/ViewGateOverlay.tsx:4293",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:r.backend,icon:i.jsx(ve,{"data-vg-id":"b1e4c6d6","data-source-path":"/src/components/ViewGateOverlay.tsx:4294",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:r.ux,icon:i.jsx(Dt,{"data-vg-id":"ea069d93","data-source-path":"/src/components/ViewGateOverlay.tsx:4295",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(l=>l.id==="backend"?Hs:l.id==="ux"?k:!0).map(l=>{const h=bt.includes(l.id);return i.jsxs("button",{onClick:()=>{fo(h?bt.filter(p=>p!==l.id):[...bt,l.id])},style:{flex:1,padding:"10px 4px",borderRadius:"12px",fontSize:"12px",fontWeight:700,border:"2px solid",borderColor:h?l.color:"#f1f5f9",backgroundColor:h?l.bg:"white",color:h?l.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[l.icon,l.label]},l.id)})})]}),bt.includes("ux")&&i.jsxs("div",{"data-vg-id":"2e78341c","data-source-path":"/src/components/ViewGateOverlay.tsx:4331",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[i.jsxs("div",{"data-vg-id":"2e78341d","data-source-path":"/src/components/ViewGateOverlay.tsx:4332",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[i.jsxs("div",{"data-vg-id":"2e783433","data-source-path":"/src/components/ViewGateOverlay.tsx:4333",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx(br,{"data-vg-id":"d8816599","data-source-path":"/src/components/ViewGateOverlay.tsx:4334",size:14,style:{color:"#d946ef"}}),i.jsx("span",{"data-vg-id":"81620ca","data-source-path":"/src/components/ViewGateOverlay.tsx:4335",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:r.figmaLink})]}),i.jsxs("button",{"data-vg-id":"5861c133","data-source-path":"/src/components/ViewGateOverlay.tsx:4337",onClick:()=>mr([...st,{name:"",link:""}]),style:{background:"#fdf4ff",border:"1px solid #f5d0fe",color:"#d946ef",borderRadius:"8px",padding:"4px 10px",fontSize:"11px",fontWeight:800,cursor:"pointer"},children:["+ ",r.addLink]})]}),i.jsx("div",{"data-vg-id":"2e783437","data-source-path":"/src/components/ViewGateOverlay.tsx:4344",style:{display:"flex",flexDirection:"column",gap:"8px"},children:st.map((l,h)=>i.jsxs("div",{"data-vg-id":"2e783438","data-source-path":"/src/components/ViewGateOverlay.tsx:4346",style:{display:"flex",gap:"8px"},children:[i.jsx("input",{"data-vg-id":"88e38e72","data-source-path":"/src/components/ViewGateOverlay.tsx:4347",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:r.figmaNamePlaceholder,value:l.name,onChange:p=>{const x=[...st];x[h]&&(x[h].name=p.target.value,mr(x))}}),i.jsx("input",{"data-vg-id":"88e38e73","data-source-path":"/src/components/ViewGateOverlay.tsx:4358",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:r.figmaLinkPlaceholder,value:l.link,onChange:p=>{const x=[...st];x[h]&&(x[h].link=p.target.value,mr(x))}}),st.length>1&&i.jsx("button",{"data-vg-id":"5861c138","data-source-path":"/src/components/ViewGateOverlay.tsx:4370",onClick:()=>mr(st.filter((p,x)=>x!==h)),style:{color:"#ef4444",background:"none",border:"none",cursor:"pointer"},children:i.jsx(Ir,{"data-vg-id":"45b44621","data-source-path":"/src/components/ViewGateOverlay.tsx:4371",size:16})})]},h))})]}),Hs&&bt.includes("backend")&&i.jsxs("div",{"data-vg-id":"2e783452","data-source-path":"/src/components/ViewGateOverlay.tsx:4382",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[i.jsxs("div",{"data-vg-id":"2e783453","data-source-path":"/src/components/ViewGateOverlay.tsx:4383",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[i.jsxs("div",{"data-vg-id":"2e783454","data-source-path":"/src/components/ViewGateOverlay.tsx:4384",style:{display:"flex",alignItems:"center",gap:"6px"},children:[i.jsx(ve,{"data-vg-id":"b1e4c711","data-source-path":"/src/components/ViewGateOverlay.tsx:4385",size:14,style:{color:"#6366f1"}}),i.jsx("span",{"data-vg-id":"81620eb","data-source-path":"/src/components/ViewGateOverlay.tsx:4386",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:r.endpoint})]}),Ve.length>0&&i.jsxs("span",{"data-vg-id":"81620ec","data-source-path":"/src/components/ViewGateOverlay.tsx:4389",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[Ve.length," ",e==="es"?"seleccionados":"selected"]})]}),i.jsxs("button",{"data-vg-id":"5861c155","data-source-path":"/src/components/ViewGateOverlay.tsx:4394",onClick:()=>z(!0),style:{width:"100%",padding:"12px 16px",fontSize:"14px",borderRadius:"12px",background:"white",border:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",textAlign:"left",color:Ve.length>0?"#0f172a":"#94a3b8"},children:[i.jsx("div",{"data-vg-id":"2e783459","data-source-path":"/src/components/ViewGateOverlay.tsx:4398",style:{display:"flex",gap:"4px",overflow:"hidden"},children:Ve.length>0?Ve.slice(0,2).map(l=>i.jsx("span",{"data-vg-id":"81620ef","data-source-path":"/src/components/ViewGateOverlay.tsx:4400",style:{background:"#eef2ff",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:l.split("|").pop()},l)).concat(Ve.length>2?[i.jsxs("span",{"data-vg-id":"81620f0","data-source-path":"/src/components/ViewGateOverlay.tsx:4400",children:["+",Ve.length-2]},"plus")]:[]):r.selectEndpoint}),i.jsx(Xo,{"data-vg-id":"1cd393c8","data-source-path":"/src/components/ViewGateOverlay.tsx:4403",size:14,style:{color:"#64748b"}})]})]}),i.jsxs("div",{"data-vg-id":"2e7836fd","data-source-path":"/src/components/ViewGateOverlay.tsx:4408",children:[i.jsx("label",{"data-vg-id":"feec1361","data-source-path":"/src/components/ViewGateOverlay.tsx:4409",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:e==="es"?"Mensaje":"Message"}),i.jsx("textarea",{className:"vg-textarea",value:Oc,onChange:l=>Kc(l.target.value),rows:5,style:{minHeight:"120px",fontSize:"15px"}})]})]}),i.jsxs("div",{"data-vg-id":"2e7836ff","data-source-path":"/src/components/ViewGateOverlay.tsx:4420",style:{display:"flex",justifyContent:"flex-end",gap:"12px",marginTop:"16px",paddingTop:"24px",borderTop:"1px solid #f1f5f9"},children:[i.jsx("button",{"data-vg-id":"5861c3fd","data-source-path":"/src/components/ViewGateOverlay.tsx:4421",className:"vg-button-ghost",style:{padding:"12px 24px",fontSize:"14px",borderRadius:"12px",color:"#64748b",fontWeight:700},onClick:()=>{Ds(null),ZA([])},children:r.cancel}),i.jsx("button",{className:"vg-button-primary vg-animate-pop",style:{padding:"12px 32px",fontSize:"15px",borderRadius:"12px",background:"var(--vg-primary-gradient)",fontWeight:800,boxShadow:"0 10px 25px -5px rgba(99, 102, 241, 0.45)",opacity:ks?.7:1,cursor:ks?"not-allowed":"pointer"},disabled:ks,onClick:async()=>{Dc(!0);try{(await fetch(`${n}/api/annotations/${yt}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:fA?`Bearer ${fA}`:"","x-api-key":s||""},body:JSON.stringify({message:Oc,priority:F,focusAreas:bt,figmaReference:st,backendEndpoints:Ve})})).ok&&(Ds(null),Os(),A(r.updateSuccess,"success"))}catch{}finally{Dc(!1)}},children:ks?"...":r.save})]})]})})]})})};function ao(t,A,e){if(!A.endsWith(".tsx")&&!A.endsWith(".jsx")||A.includes("node_modules"))return t;const r=B=>B.replace(/\\/g,"/"),s=r(A).replace(r(e),""),n=B=>{let d=0;for(let g=0;g<B.length;g++)d=Math.imul(31,d)+B.charCodeAt(g)|0;return(d>>>0).toString(16)};let o=0;return t.split(`
|
|
20
|
-
`).map((
|
|
21
|
-
`)}function
|
|
9
|
+
${N.rect.left}px ${N.rect.top}px,
|
|
10
|
+
${N.rect.right}px ${N.rect.top}px,
|
|
11
|
+
${N.rect.right}px ${N.rect.bottom}px,
|
|
12
|
+
${N.rect.left}px ${N.rect.bottom}px,
|
|
13
|
+
${N.rect.left}px ${N.rect.top}px
|
|
14
|
+
)`:"none",zIndex:Xo}}),x&&N&&!I&&!Le&&t.jsx("div",{className:"vg-selection-pulse",style:{top:N.rect.top-4,left:N.rect.left-4,width:N.rect.width+8,height:N.rect.height+8,zIndex:Ko},children:t.jsxs("div",{className:"vg-selection-label",style:{...N.rect.top<60?N.rect.bottom>window.innerHeight-60?{top:"8px",bottom:"auto"}:{top:"100%",marginTop:"8px",bottom:"auto"}:{top:"-40px",bottom:"auto"},...N.rect.left+200>window.innerWidth?{left:"auto",right:"0"}:{left:"0",right:"auto"}},children:[t.jsx(Io,{"data-vg-id":"f840c8ce","data-source-path":"/src/components/ViewGateOverlay.tsx:2267",size:16}),t.jsxs("div",{"data-vg-id":"17fbf98","data-source-path":"/src/components/ViewGateOverlay.tsx:2268",style:{display:"flex",flexDirection:"column"},children:[t.jsx("span",{"data-vg-id":"52d76c64","data-source-path":"/src/components/ViewGateOverlay.tsx:2269",style:{fontWeight:700},children:r.selectToComment}),t.jsxs("span",{"data-vg-id":"52d76c65","data-source-path":"/src/components/ViewGateOverlay.tsx:2270",style:{fontSize:"10px",opacity:.8,fontFamily:"monospace"},children:[Math.round(N.rect.width)," × ",Math.round(N.rect.height)]})]})]})}),!q&&(x||fe||I)&&t.jsx("div",{"data-vg-id":"17fbf9b","data-source-path":"/src/components/ViewGateOverlay.tsx:2280",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(15, 23, 42, 0.6)",backdropFilter:"blur(12px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:Je},children:t.jsxs("div",{"data-vg-id":"17fbf9c","data-source-path":"/src/components/ViewGateOverlay.tsx:2285",className:"vg-glassmorphism vg-animate-slide",style:{width:"90%",maxWidth:"440px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.4)",display:"flex",flexDirection:"column",overflow:"hidden",padding:"48px 32px"},children:[t.jsxs("div",{"data-vg-id":"17fbf9d","data-source-path":"/src/components/ViewGateOverlay.tsx:2294",style:{textAlign:"center",marginBottom:"32px"},children:[t.jsx("div",{"data-vg-id":"17fbf9e","data-source-path":"/src/components/ViewGateOverlay.tsx:2295",style:{width:"64px",height:"64px",background:"var(--vg-primary-gradient)",borderRadius:"20px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px",color:"white",boxShadow:"0 8px 20px -4px var(--vg-primary)",animation:"pulse 2s infinite"},children:t.jsx(ds,{"data-vg-id":"422a5ede","data-source-path":"/src/components/ViewGateOverlay.tsx:2301",size:32})}),t.jsx("h2",{"data-vg-id":"efa6bb80","data-source-path":"/src/components/ViewGateOverlay.tsx:2303",style:{margin:"0 0 12px 0",fontSize:"24px",fontWeight:800,color:"#0f172a",letterSpacing:"-0.025em"},children:s==="es"?"ViewGate Protegido":"ViewGate Protected"}),t.jsx("p",{"data-vg-id":"1000def7","data-source-path":"/src/components/ViewGateOverlay.tsx:2306",style:{margin:0,color:"#64748b",fontSize:"15px",lineHeight:1.6},children:s==="es"?"Ingresa tu Clave de Acceso Semanal para continuar.":"Enter your project Weekly Access Key to continue."})]}),t.jsxs("form",{"data-vg-id":"a260acc8","data-source-path":"/src/components/ViewGateOverlay.tsx:2313",onSubmit:ir,style:{width:"100%"},children:[t.jsx("div",{"data-vg-id":"17fbfb8","data-source-path":"/src/components/ViewGateOverlay.tsx:2314",style:{position:"relative",marginBottom:"24px"},children:t.jsx("input",{autoFocus:!0,type:"password",value:qe,onChange:a=>js(a.target.value),placeholder:s==="es"?"Pega tu clave aquí...":"Paste your key here...",style:{width:"100%",padding:"16px",borderRadius:"12px",border:"2px solid #e2e8f0",fontSize:"15px",outline:"none",transition:"all 0.2s",backgroundColor:"rgba(255, 255, 255, 0.8)",color:"#1e293b"},onFocus:a=>{a.target.style.borderColor="var(--vg-primary)",a.target.style.boxShadow="0 0 0 4px rgba(99, 102, 241, 0.1)"},onBlur:a=>{a.target.style.borderColor="#e2e8f0",a.target.style.boxShadow="none"}})}),t.jsxs("button",{type:"submit",disabled:Oa||!qe.trim(),className:"vg-button-primary",style:{width:"100%",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",fontSize:"16px",fontWeight:700,opacity:Oa||!qe.trim()?.7:1,boxShadow:"0 10px 15px -3px rgba(99, 102, 241, 0.3)"},children:[Oa?t.jsx(Mt,{"data-vg-id":"cb81c82b","data-source-path":"/src/components/ViewGateOverlay.tsx:2361",size:20,className:"vg-animate-spin"}):t.jsx(No,{"data-vg-id":"d69f974c","data-source-path":"/src/components/ViewGateOverlay.tsx:2363",size:20}),s==="es"?"Desbloquear":"Unlock Now"]})]}),t.jsx("div",{"data-vg-id":"17fbfbb","data-source-path":"/src/components/ViewGateOverlay.tsx:2369",style:{margin:"32px 0 24px",height:"1px",background:"linear-gradient(to right, transparent, #e2e8f0, transparent)"}}),t.jsx("button",{onClick:()=>{J(null),j(!1),Ae(!1)},className:"vg-button-ghost",style:{width:"100%",padding:"12px",fontSize:"14px",color:"#94a3b8"},children:s==="es"?"Cerrar ViewGate":"Close ViewGate"}),t.jsx("div",{"data-vg-id":"17fbfbc","data-source-path":"/src/components/ViewGateOverlay.tsx:2383",style:{marginTop:"24px",textAlign:"center"},children:t.jsx("p",{"data-vg-id":"1000defe","data-source-path":"/src/components/ViewGateOverlay.tsx:2384",style:{fontSize:"12px",color:"#94a3b8",margin:0,lineHeight:1.5},children:s==="es"?"Encuentra tu clave en Dashboard > Proyectos":"Find your key in Dashboard > Projects"})})]})}),I&&ne&&t.jsx("div",{"data-vg-id":"17fbfd3","data-source-path":"/src/components/ViewGateOverlay.tsx:2397",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(15, 23, 42, 0.4)",backdropFilter:"blur(8px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:Je},children:t.jsxs("div",{"data-vg-id":"17fbfd4","data-source-path":"/src/components/ViewGateOverlay.tsx:2402",className:"vg-glassmorphism vg-animate-slide",style:{width:"90%",maxWidth:"700px",maxHeight:"92vh",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[t.jsxs("div",{"data-vg-id":"17fbfd5","data-source-path":"/src/components/ViewGateOverlay.tsx:2412",style:{padding:"24px 24px 16px",textAlign:"center",borderBottom:"1px solid rgba(0,0,0,0.05)",flexShrink:0,position:"relative"},children:[ne&&t.jsxs("div",{"data-vg-id":"17fbfd6","data-source-path":"/src/components/ViewGateOverlay.tsx:2414",className:"vg-profile-info-card",style:{position:"absolute",top:"20px",right:"20px",display:"flex",alignItems:"center",gap:"8px",padding:"4px 8px",borderRadius:"20px",background:"white",border:"1px solid #e2e8f0",boxShadow:"0 2px 6px rgba(0,0,0,0.05)",zIndex:10},children:[t.jsx("span",{"data-vg-id":"52d76ca2","data-source-path":"/src/components/ViewGateOverlay.tsx:2431",style:{fontSize:"10px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:ne.name.split(" ")[0]}),ne.avatar?t.jsx("img",{"data-vg-id":"a398766","data-source-path":"/src/components/ViewGateOverlay.tsx:2435",src:ne.avatar,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""}):t.jsx("div",{"data-vg-id":"17fbfd9","data-source-path":"/src/components/ViewGateOverlay.tsx:2437",style:{width:"24px",height:"24px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"10px",fontWeight:700},children:ne.name?.[0]})]}),t.jsx("div",{"data-vg-id":"17fbfda","data-source-path":"/src/components/ViewGateOverlay.tsx:2443",style:{width:"40px",height:"40px",background:"var(--vg-primary-gradient)",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 12px",color:"white",boxShadow:"0 4px 12px rgba(99, 102, 241, 0.2)"},children:t.jsx(Lt,{"data-vg-id":"10c62228","data-source-path":"/src/components/ViewGateOverlay.tsx:2448",size:20})}),t.jsx("h2",{"data-vg-id":"efa6bba7","data-source-path":"/src/components/ViewGateOverlay.tsx:2450",style:{margin:"0 0 4px 0",fontSize:"20px",fontWeight:800,color:"#0f172a"},children:r.feedbackHeader}),t.jsx("p",{"data-vg-id":"1000df33","data-source-path":"/src/components/ViewGateOverlay.tsx:2451",style:{margin:0,color:"#64748b",fontSize:"14px"},children:r.feedbackSubheader})]}),t.jsxs("div",{"data-vg-id":"17fbff3","data-source-path":"/src/components/ViewGateOverlay.tsx:2455",className:"vg-custom-scrollbar",style:{flex:1,overflowY:"auto",padding:"24px",display:"flex",flexDirection:"column"},children:[I.visualPreview&&t.jsx("div",{"data-vg-id":"17fbff4","data-source-path":"/src/components/ViewGateOverlay.tsx:2464",style:{marginBottom:"24px",borderRadius:"12px",width:"fit-content",maxWidth:"100%",maxHeight:"45vh",alignSelf:"center",overflow:"hidden",display:"flex"},children:t.jsx("img",{src:I.visualPreview,alt:"Preview",style:{maxWidth:"100%",maxHeight:"45vh",objectFit:"contain",display:"block"}})}),t.jsx("textarea",{className:"vg-textarea",value:ae,onChange:a=>D(a.target.value),rows:4,placeholder:r.placeholder,autoFocus:!0,style:{fontSize:"15px",padding:"16px",marginBottom:"24px",minHeight:"120px"}}),t.jsxs("div",{"data-vg-id":"17fbff5","data-source-path":"/src/components/ViewGateOverlay.tsx:2498",style:{marginBottom:"24px"},children:[t.jsx("label",{"data-vg-id":"18bd4b33","data-source-path":"/src/components/ViewGateOverlay.tsx:2499",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:r.priority}),t.jsx("div",{"data-vg-id":"17fbff7","data-source-path":"/src/components/ViewGateOverlay.tsx:2502",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(a=>t.jsx("button",{onClick:()=>C(a),style:{flex:1,padding:"12px 6px",borderRadius:"8px",fontSize:"13px",fontWeight:700,border:"1px solid",borderColor:V===a?a==="low"?"#10b981":a==="medium"?"#6366f1":a==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:V===a?a==="low"?"#ecfdf5":a==="medium"?"#eef2ff":a==="high"?"#fffbeb":"#fef2f2":"white",color:V===a?a==="low"?"#059669":a==="medium"?"#4338ca":a==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:r[a]},a))})]}),t.jsxs("div",{"data-vg-id":"17fbff8","data-source-path":"/src/components/ViewGateOverlay.tsx:2529",style:{marginBottom:"24px"},children:[t.jsx("label",{"data-vg-id":"18bd4b36","data-source-path":"/src/components/ViewGateOverlay.tsx:2530",style:{fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",display:"block"},children:r.focusAreas}),t.jsx("div",{"data-vg-id":"17fbffa","data-source-path":"/src/components/ViewGateOverlay.tsx:2533",style:{display:"flex",gap:"8px",marginBottom:M.length>0?"12px":"0"},children:[{id:"frontend",label:r.frontend,icon:t.jsx(zt,{"data-vg-id":"377c172e","data-source-path":"/src/components/ViewGateOverlay.tsx:2535",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:r.backend,icon:t.jsx(Be,{"data-vg-id":"7117e5d5","data-source-path":"/src/components/ViewGateOverlay.tsx:2536",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:r.ux,icon:t.jsx(vt,{"data-vg-id":"de42479a","data-source-path":"/src/components/ViewGateOverlay.tsx:2537",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(a=>a.id==="backend"?Ut:a.id==="ux"?R:!0).map(a=>{const n=M.includes(a.id);return t.jsxs("button",{onClick:()=>{n?de(M.filter(i=>i!==a.id)):(de([...M,a.id]),a.id==="backend"&&Ca())},style:{flex:1,padding:"10px 4px",borderRadius:"8px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:n?a.color:"#e2e8f0",backgroundColor:n?a.bg:"white",color:n?a.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[a.icon,a.label]},a.id)})}),M.includes("ux")&&t.jsxs("div",{"data-vg-id":"17fc013","data-source-path":"/src/components/ViewGateOverlay.tsx:2584",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[t.jsxs("div",{"data-vg-id":"17fc014","data-source-path":"/src/components/ViewGateOverlay.tsx:2585",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[t.jsxs("div",{"data-vg-id":"17fc015","data-source-path":"/src/components/ViewGateOverlay.tsx:2586",style:{display:"flex",alignItems:"center",gap:"6px"},children:[t.jsx(Pt,{"data-vg-id":"38884e11","data-source-path":"/src/components/ViewGateOverlay.tsx:2587",size:14,style:{color:"#d946ef"}}),t.jsx("span",{"data-vg-id":"52d76ce2","data-source-path":"/src/components/ViewGateOverlay.tsx:2588",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},children:r.figmaLink})]}),t.jsxs("button",{"data-vg-id":"23e21f7b","data-source-path":"/src/components/ViewGateOverlay.tsx:2592",onClick:()=>re([...H,{name:"",link:""}]),style:{background:"rgba(217, 70, 239, 0.1)",border:"1px solid rgba(217, 70, 239, 0.2)",color:"#d946ef",borderRadius:"6px",padding:"4px 8px",fontSize:"10px",fontWeight:800,display:"flex",alignItems:"center",gap:"4px",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:a=>a.currentTarget.style.background="rgba(217, 70, 239, 0.15)",onMouseLeave:a=>a.currentTarget.style.background="rgba(217, 70, 239, 0.1)",children:[t.jsx(zo,{"data-vg-id":"11a60c74","data-source-path":"/src/components/ViewGateOverlay.tsx:2611",size:10})," ",r.addLink]})]}),t.jsx("div",{"data-vg-id":"17fc01a","data-source-path":"/src/components/ViewGateOverlay.tsx:2615",style:{display:"flex",flexDirection:"column",gap:"8px"},children:H.map((a,n)=>t.jsxs("div",{"data-vg-id":"17fc030","data-source-path":"/src/components/ViewGateOverlay.tsx:2617",style:{display:"flex",gap:"6px",alignItems:"flex-start"},className:"vg-animate-slide",children:[t.jsxs("div",{"data-vg-id":"17fc031","data-source-path":"/src/components/ViewGateOverlay.tsx:2618",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[t.jsx("input",{"data-vg-id":"a993bad9","data-source-path":"/src/components/ViewGateOverlay.tsx:2619",type:"text",className:"vg-textarea",style:{padding:"8px 10px",fontSize:"11px",minHeight:"auto",borderRadius:"8px",border:"1px solid rgba(0,0,0,0.05)"},placeholder:r.figmaNamePlaceholder,value:a.name,onChange:i=>{const u=[...H];u[n]&&(u[n].name=i.target.value,re(u))}}),t.jsx("input",{"data-vg-id":"a993bada","data-source-path":"/src/components/ViewGateOverlay.tsx:2633",type:"text",className:"vg-textarea",style:{padding:"8px 10px",fontSize:"11px",minHeight:"auto",borderRadius:"8px",border:"1px solid rgba(0,0,0,0.05)"},placeholder:r.figmaLinkPlaceholder,value:a.link,onChange:i=>{const u=[...H];u[n]&&(u[n].link=i.target.value,re(u))}})]}),H.length>1&&t.jsx("button",{"data-vg-id":"23e21f97","data-source-path":"/src/components/ViewGateOverlay.tsx:2649",onClick:()=>re(H.filter((i,u)=>u!==n)),style:{background:"rgba(239, 68, 68, 0.05)",border:"1px solid rgba(239, 68, 68, 0.1)",color:"#ef4444",borderRadius:"8px",padding:"10px",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:i=>i.currentTarget.style.background="rgba(239, 68, 68, 0.1)",onMouseLeave:i=>i.currentTarget.style.background="rgba(239, 68, 68, 0.05)",children:t.jsx(Wt,{"data-vg-id":"e1375db0","data-source-path":"/src/components/ViewGateOverlay.tsx:2666",size:14})})]},n))})]}),je.length>0&&M.includes("backend")&&t.jsxs("div",{"data-vg-id":"17fc036","data-source-path":"/src/components/ViewGateOverlay.tsx:2678",className:"vg-animate-slide",style:{marginBottom:"16px"},children:[t.jsxs("div",{"data-vg-id":"17fc037","data-source-path":"/src/components/ViewGateOverlay.tsx:2679",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[t.jsxs("div",{"data-vg-id":"17fc038","data-source-path":"/src/components/ViewGateOverlay.tsx:2680",style:{display:"flex",alignItems:"center",gap:"6px"},children:[t.jsx(Be,{"data-vg-id":"7117e5fd","data-source-path":"/src/components/ViewGateOverlay.tsx:2681",size:14,style:{color:"#6366f1"}}),t.jsx("span",{"data-vg-id":"52d76d1a","data-source-path":"/src/components/ViewGateOverlay.tsx:2682",style:{fontSize:"11px",fontWeight:700,color:"#64748b"},children:r.endpoint})]}),L.length>0&&t.jsxs("span",{"data-vg-id":"52d76d1b","data-source-path":"/src/components/ViewGateOverlay.tsx:2685",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[L.length," ",s==="es"?"seleccionados":"selected"]})]}),t.jsxs("button",{"data-vg-id":"23e21fb4","data-source-path":"/src/components/ViewGateOverlay.tsx:2691",onClick:()=>P(!0),className:"vg-input-like-button",style:{width:"100%",padding:"12px 16px",fontSize:"13px",borderRadius:"12px",background:"#f8fafc",border:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s",textAlign:"left",color:L.length>0?"#0f172a":"#94a3b8"},children:[t.jsx("div",{"data-vg-id":"17fc052","data-source-path":"/src/components/ViewGateOverlay.tsx:2710",style:{display:"flex",gap:"4px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:L.length>0?L.slice(0,2).map(a=>{const n=a.split("|"),i=n.length>1?n[0]:"",u=n.length>1?n[1]:a;return t.jsxs("span",{"data-vg-id":"52d76d1e","data-source-path":"/src/components/ViewGateOverlay.tsx:2717",style:{background:"rgba(99, 102, 241, 0.1)",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:[i&&t.jsx("span",{"data-vg-id":"52d76d1f","data-source-path":"/src/components/ViewGateOverlay.tsx:2725",style:{opacity:.6,marginRight:"4px"},children:i}),(u||"").split("/").pop()||u]},a)}).concat(L.length>2?[t.jsxs("span",{"data-vg-id":"52d76d20","data-source-path":"/src/components/ViewGateOverlay.tsx:2729",children:["+",L.length-2]},"more")]:[]):r.selectEndpoint}),t.jsx(is,{"data-vg-id":"c71f9a0a","data-source-path":"/src/components/ViewGateOverlay.tsx:2732",size:14,style:{color:"#64748b"}})]})]})]})]}),t.jsxs("div",{"data-vg-id":"17fc057","data-source-path":"/src/components/ViewGateOverlay.tsx:2741",style:{padding:"16px 24px 24px",borderTop:"1px solid rgba(0,0,0,0.05)",display:"flex",gap:"12px",flexShrink:0,backgroundColor:"rgba(255,255,255,0.02)",backdropFilter:"blur(2px)"},children:[t.jsx("button",{onClick:()=>{oe||(J(null),j(!1))},className:"vg-button-ghost",disabled:oe,style:{flex:1,padding:"12px"},children:r.cancel}),t.jsx("button",{onClick:ur,className:"vg-button-primary",disabled:oe||!ae.trim()||M.includes("backend")&&L.length===0||M.includes("ux")&&H.some(a=>!a.name.trim()||!a.link.trim()),style:{flex:2,opacity:oe||!ae.trim()||M.includes("backend")&&L.length===0||M.includes("ux")&&H.some(a=>!a.name.trim()||!a.link.trim())?.6:1,cursor:oe||!ae.trim()||M.includes("backend")&&L.length===0||M.includes("ux")&&H.some(a=>!a.name.trim()||!a.link.trim())?"not-allowed":"pointer"},children:t.jsxs("div",{"data-vg-id":"17fc058","data-source-path":"/src/components/ViewGateOverlay.tsx:2778",style:{display:"flex",alignItems:"center",gap:"8px"},children:[oe?t.jsx("div",{"data-vg-id":"17fc06e","data-source-path":"/src/components/ViewGateOverlay.tsx:2779",className:"vg-spinner",style:{width:"16px",height:"16px",borderWidth:"2px"}}):t.jsx(Mo,{"data-vg-id":"a3fd5c1c","data-source-path":"/src/components/ViewGateOverlay.tsx:2779",size:18}),t.jsx("span",{"data-vg-id":"52d76d3b","data-source-path":"/src/components/ViewGateOverlay.tsx:2780",children:oe?r.submitting:r.sendFeedback||"Send Comment"})]})})]})]})}),fe&&t.jsx("div",{"data-vg-id":"17fc071","data-source-path":"/src/components/ViewGateOverlay.tsx:2791",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(15, 23, 42, 0.6)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:Je},children:t.jsxs("div",{"data-vg-id":"17fc072","data-source-path":"/src/components/ViewGateOverlay.tsx:2797",className:"vg-glassmorphism vg-animate-slide",style:{padding:"32px",width:"820px",maxHeight:"85vh",display:"flex",flexDirection:"column",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"},children:[t.jsxs("div",{"data-vg-id":"17fc073","data-source-path":"/src/components/ViewGateOverlay.tsx:2802",style:{display:"flex",flexDirection:"column",gap:"16px",marginBottom:"24px"},children:[t.jsxs("div",{"data-vg-id":"17fc074","data-source-path":"/src/components/ViewGateOverlay.tsx:2803",style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t.jsx("h2",{"data-vg-id":"efa6bc40","data-source-path":"/src/components/ViewGateOverlay.tsx:2804",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#0f172a",whiteSpace:"nowrap"},children:K?r.commentDetails:r.annotations}),t.jsxs("div",{"data-vg-id":"17fc076","data-source-path":"/src/components/ViewGateOverlay.tsx:2807",style:{display:"flex",alignItems:"center",gap:"12px"},children:[ne?t.jsxs("div",{"data-vg-id":"17fc077","data-source-path":"/src/components/ViewGateOverlay.tsx:2809",style:{display:"flex",alignItems:"center",gap:"8px",padding:"4px 12px",background:"rgba(99, 102, 241, 0.1)",borderRadius:"20px"},children:[ne.avatar?t.jsx("img",{"data-vg-id":"3cf759ac","data-source-path":"/src/components/ViewGateOverlay.tsx:2811",src:ne.avatar,style:{width:"20px",height:"20px",borderRadius:"50%"},alt:""}):t.jsx("div",{"data-vg-id":"2e782f7b","data-source-path":"/src/components/ViewGateOverlay.tsx:2813",style:{width:"20px",height:"20px",borderRadius:"50%",background:"#6366f1",color:"white",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center"},children:ne.name?.[0]}),t.jsx("span",{"data-vg-id":"8161c11","data-source-path":"/src/components/ViewGateOverlay.tsx:2817",style:{fontSize:"12px",fontWeight:600,color:"#4338ca"},children:ne.name})]}):t.jsx("div",{"data-vg-id":"2e782f7d","data-source-path":"/src/components/ViewGateOverlay.tsx:2824",style:{fontSize:"12px",color:"#64748b",fontWeight:600},children:s==="es"?"Sin usuario":"No user selected"}),t.jsx("button",{className:"vg-button-ghost",style:{padding:"8px",borderRadius:"50%"},onClick:()=>{Ae(!1),We(null),Zt(null),ue("all")},children:t.jsx(yt,{"data-vg-id":"eec8c445","data-source-path":"/src/components/ViewGateOverlay.tsx:2833",size:20})})]})]}),t.jsx("div",{"data-vg-id":"2e782f7f","data-source-path":"/src/components/ViewGateOverlay.tsx:2837",style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center",width:"100%"},children:(()=>{const a=Array.isArray(te)?te:[],n=K?nt.find(O=>O.annotations?.some($=>$._id===K)):null,u=(n?n.annotations:a).filter(O=>O.status!=="completed"&&O.status!=="done"),y=u.filter(O=>O.status!=="ready_for_review").length,k=u.filter(O=>O.status==="ready_for_review").length,E=u.length;return E<=0?E===0?null:t.jsxs("div",{"data-vg-id":"2e782f80","data-source-path":"/src/components/ViewGateOverlay.tsx:2851",style:{display:"flex",gap:"8px",opacity:.9},children:[y>0&&t.jsxs("div",{"data-vg-id":"2e782f81","data-source-path":"/src/components/ViewGateOverlay.tsx:2853",className:"vg-badge",style:{background:"#fff7ed",color:"#c2410c",border:"1px solid #ffedd5",fontSize:"11px",padding:"2px 8px"},children:[y," ",y===1?"pendiente":"pendientes"]}),k>0&&t.jsxs("div",{"data-vg-id":"2e782f82","data-source-path":"/src/components/ViewGateOverlay.tsx:2858",className:"vg-badge",style:{background:"#f3e8ff",color:"#a855f7",border:"1px solid #e9d5ff",fontSize:"11px",padding:"2px 8px"},children:[k," ",s==="es"?k===1?"Listo para revisión":"Listos para revisión":"ready for review"]})]}):t.jsxs(t.Fragment,{children:[!m&&t.jsxs("div",{"data-vg-id":"2e782f83","data-source-path":"/src/components/ViewGateOverlay.tsx:2869",className:"vg-segmented-control",style:{marginBottom:"4px"},children:[t.jsx("div",{className:"vg-segmented-slider",style:{left:ie===null?"4px":ie==="pending"?"calc(4px + (100% - 8px) / 3)":"calc(4px + 2 * (100% - 8px) / 3)",width:"calc((100% - 8px) / 3)",background:ie===null?"var(--vg-primary)":ie==="pending"?"#ea580c":"#a855f7",boxShadow:ie===null?"0 4px 12px rgba(99, 102, 241, 0.3)":ie==="pending"?"0 4px 12px rgba(234, 88, 12, 0.3)":"0 4px 12px rgba(168, 85, 247, 0.3)"}}),t.jsxs("div",{onClick:()=>Zt(null),className:`vg-segmented-item ${ie===null?"active":""}`,children:[r.viewAll||"Todos"," (",E,")"]}),t.jsxs("div",{onClick:()=>Zt("pending"),className:`vg-segmented-item ${ie==="pending"?"active":""}`,children:[s==="es"?y===1?"Pendiente":"Pendientes":"Pending"," (",y,")"]}),t.jsxs("div",{onClick:()=>Zt("ready"),className:`vg-segmented-item ${ie==="ready"?"active":""}`,children:[s==="es"?"Listo para revisión":"Ready for Review"," (",k,")"]})]}),t.jsxs("div",{"data-vg-id":"2e782f99","data-source-path":"/src/components/ViewGateOverlay.tsx:2900",style:{display:"flex",gap:"6px",justifyContent:"center",flexWrap:"wrap",marginTop:m?"0":"4px"},children:[t.jsxs("button",{onClick:()=>ue("all"),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:v==="all"?"var(--vg-primary)":"#e2e8f0",backgroundColor:v==="all"?"var(--vg-primary)":"transparent",color:v==="all"?"white":"#64748b",cursor:"pointer",transition:"all 0.2s"},children:[r.viewAll||"Todos"," (",u.filter(O=>m?!0:ie==="pending"?O.status!=="ready_for_review":ie==="ready"?O.status==="ready_for_review":!0).length,")"]}),["low","medium","high","urgent"].map(O=>{const $=u.filter(G=>m?!0:ie==="pending"?G.status!=="ready_for_review":ie==="ready"?G.status==="ready_for_review":!0).filter(G=>(G.priority||"medium")===O).length;return $===0&&v!==O?null:t.jsxs("button",{onClick:()=>ue(O),style:{padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:700,border:"1px solid",borderColor:v===O?O==="low"?"#10b981":O==="medium"?"#6366f1":O==="high"?"#f59e0b":"#ef4444":"#e2e8f0",backgroundColor:v===O?O==="low"?"#ecfdf5":O==="medium"?"#eef2ff":O==="high"?"#fffbeb":"#fef2f2":"transparent",color:v===O?O==="low"?"#059669":O==="medium"?"#4338ca":O==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"uppercase"},children:[r[O]," (",$,")"]},O)})]})]})})()})]}),t.jsx("div",{style:{flex:1,overflowY:"auto",paddingRight:"10px",overflowX:"hidden"},className:"vg-custom-scrollbar",children:$e?t.jsx("div",{"data-vg-id":"2e782f9a","data-source-path":"/src/components/ViewGateOverlay.tsx:2966",style:{display:"flex",justifyContent:"center",padding:"40px"},children:t.jsx("div",{"data-vg-id":"2e782f9b","data-source-path":"/src/components/ViewGateOverlay.tsx:2967",className:"vg-spinner"})}):Va.map((a,n)=>t.jsxs("div",{className:"vg-glassmorphism vg-animate-slide",style:{padding:"20px",marginBottom:"16px",border:"1px solid rgba(0,0,0,0.05)",background:"rgba(255,255,255,0.5)",animationDelay:`${n*.05}s`},children:[t.jsxs("div",{"data-vg-id":"2e782f9c","data-source-path":"/src/components/ViewGateOverlay.tsx:2982",style:{display:"flex",justifyContent:"space-between",marginBottom:"16px",alignItems:"center"},children:[t.jsxs("div",{"data-vg-id":"2e782f9d","data-source-path":"/src/components/ViewGateOverlay.tsx:2983",style:{display:"flex",gap:"12px",alignItems:"center"},children:[t.jsx("span",{"data-vg-id":"8161c33","data-source-path":"/src/components/ViewGateOverlay.tsx:2984",style:{fontSize:"12px",color:"#000000",fontWeight:600},children:ms(a.timestamp||a.createdAt||a.reference?.timestamp,s)}),t.jsx("div",{"data-vg-id":"2e782f9f","data-source-path":"/src/components/ViewGateOverlay.tsx:2987",onClick:i=>{i.stopPropagation();const u=a.key||`VG-${a._id.slice(-6).toUpperCase()}`;navigator.clipboard.writeText(u);const y=i.currentTarget;y.innerText="¡Copiado!",y.style.color="#22c55e",setTimeout(()=>{y.innerText=u,y.style.color=m?"#64748b":"#6366f1"},1500)},style:{fontSize:"10px",fontFamily:"monospace",color:m?"#64748b":"#6366f1",background:m?"rgba(100, 116, 139, 0.1)":"rgba(99, 102, 241, 0.1)",padding:"2px 6px",borderRadius:"4px",cursor:"pointer",fontWeight:900,transition:"all 0.2s"},title:s==="es"?"Click para copiar":"Click to copy",children:a.key||`VG-${a._id.slice(-6).toUpperCase()}`}),a.reference?.metadata?.isModal&&t.jsx("span",{"data-vg-id":"8161c35","data-source-path":"/src/components/ViewGateOverlay.tsx:3016",className:"vg-badge",style:{fontSize:"10px",background:m?"#f1f5f9":a.status==="completed"||a.status==="done"?"#ecfdf5":a.status==="ready_for_review"?"#f3e8ff":"#fef3c7",color:m?"#64748b":a.status==="completed"||a.status==="done"?"#059669":a.status==="ready_for_review"?"#a855f7":"#92400e",border:"none",padding:"2px 6px"},children:"MODAL"}),a.creator&&t.jsx("div",{"data-vg-id":"2e782fa1","data-source-path":"/src/components/ViewGateOverlay.tsx:3025",style:{display:"flex",alignItems:"center",background:"#f8fafc",padding:"2px",borderRadius:"50%",border:"1px solid #e2e8f0",marginLeft:"4px"},children:a.creator.avatar?t.jsx("img",{"data-vg-id":"3cf759d4","data-source-path":"/src/components/ViewGateOverlay.tsx:3035",src:a.creator.avatar,style:{width:"16px",height:"16px",borderRadius:"50%"},alt:""}):t.jsx("div",{"data-vg-id":"2e782fb8","data-source-path":"/src/components/ViewGateOverlay.tsx:3037",style:{width:"16px",height:"16px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"8px",fontWeight:700},children:a.creator.name?.[0]})}),a.url&&t.jsx(hs,{url:a.url,onHover:Gs,style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"11px",color:"#64748b",background:"#f8fafc",padding:"2px 8px",borderRadius:"6px",border:"1px solid #e2e8f0",maxWidth:"220px"}}),(a.focusAreas?.length>0?a.focusAreas:[...a.backendEndpoints?.length>0?["backend"]:[],...a.figmaReference?.length>0?["ux"]:[]]).map(i=>t.jsxs("span",{"data-vg-id":"8161c4e","data-source-path":"/src/components/ViewGateOverlay.tsx:3063",style:{fontSize:"10px",fontWeight:800,textTransform:"uppercase",padding:"4px 10px",borderRadius:"24px",background:i==="frontend"?"linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%)":i==="backend"?"linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%)":"linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%)",color:i==="frontend"?"#059669":i==="backend"?"#4f46e5":"#c026d3",display:"flex",alignItems:"center",gap:"4px",border:`1px solid ${i==="frontend"?"#a7f3d0":i==="backend"?"#c7d2fe":"#fbcfe8"}`,boxShadow:i==="frontend"?"0 2px 4px rgba(5, 150, 105, 0.05)":i==="backend"?"0 2px 4px rgba(79, 70, 229, 0.05)":"0 2px 4px rgba(192, 38, 211, 0.05)",letterSpacing:"0.02em"},children:[i==="frontend"?t.jsx(zt,{"data-vg-id":"b806bee7","data-source-path":"/src/components/ViewGateOverlay.tsx:3071",size:11,strokeWidth:2.5}):i==="backend"?t.jsx(Be,{"data-vg-id":"b1e4c277","data-source-path":"/src/components/ViewGateOverlay.tsx:3071",size:11,strokeWidth:2.5}):t.jsx(vt,{"data-vg-id":"ea069934","data-source-path":"/src/components/ViewGateOverlay.tsx:3071",size:11,strokeWidth:2.5}),i==="frontend"?"Frontend":i==="backend"?"Backend":"UX / UI"]},i))]}),a.status==="completed"?t.jsxs("span",{"data-vg-id":"8161c52","data-source-path":"/src/components/ViewGateOverlay.tsx:3077",className:"vg-badge",style:{backgroundColor:"#ecfdf5",color:"#059669",border:"1px solid #d1fae5"},children:[t.jsx(Ke,{"data-vg-id":"a75c1a63","data-source-path":"/src/components/ViewGateOverlay.tsx:3078",size:14})," ",r.completed||(s==="es"?"Listo para revisión":"Ready for Review")]}):a.status==="ready_for_review"?t.jsxs("span",{"data-vg-id":"8161c54","data-source-path":"/src/components/ViewGateOverlay.tsx:3081",className:"vg-badge",style:{backgroundColor:"#f3e8ff",color:"#a855f7",border:"1px solid #e9d5ff"},children:[t.jsx(Ke,{"data-vg-id":"a75c1a65","data-source-path":"/src/components/ViewGateOverlay.tsx:3082",size:14})," ",r.readyForReview]}):a.status==="bug_fixing"?t.jsxs("span",{"data-vg-id":"8161c56","data-source-path":"/src/components/ViewGateOverlay.tsx:3085",className:"vg-badge",style:{backgroundColor:"#fff1f2",color:"#e11d48",border:"1px solid #ffe4e6"},children:[t.jsx(xt,{"data-vg-id":"3b8b181a","data-source-path":"/src/components/ViewGateOverlay.tsx:3086",size:14})," ","Bug Fixing"]}):t.jsxs("span",{"data-vg-id":"8161c6d","data-source-path":"/src/components/ViewGateOverlay.tsx:3089",className:"vg-badge",style:{backgroundColor:m||a.status==="backlog"?"#f1f5f9":"#fff7ed",color:m||a.status==="backlog"?"#64748b":"#ea580c",border:m||a.status==="backlog"?"1px solid #e2e8f0":"1px solid #ffedd5"},children:[t.jsx(cs,{"data-vg-id":"62dc6c36","data-source-path":"/src/components/ViewGateOverlay.tsx:3094",size:14}),m||a.status==="backlog"?r.backlog:r.pending]})]}),(a.screenshot||a.reference?.previewUrl)&&t.jsx("div",{"data-vg-id":"2e782fda","data-source-path":"/src/components/ViewGateOverlay.tsx:3101",style:{margin:"0 0 20px 0",borderRadius:"8px",overflow:"hidden",width:"fit-content",maxWidth:"100%",maxHeight:"280px",alignSelf:"center",display:"flex"},children:t.jsx("img",{"data-vg-id":"3cf75a0d","data-source-path":"/src/components/ViewGateOverlay.tsx:3111",src:a.screenshot||a.reference?.previewUrl,alt:"Visual Preview",style:{maxWidth:"100%",maxHeight:"280px",objectFit:"contain",display:"block"}})}),t.jsxs("div",{"data-vg-id":"2e782fdc","data-source-path":"/src/components/ViewGateOverlay.tsx:3124",style:{marginBottom:"20px"},children:[t.jsx("div",{"data-vg-id":"2e782fdd","data-source-path":"/src/components/ViewGateOverlay.tsx:3125",style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px"},children:t.jsxs("div",{"data-vg-id":"2e782fde","data-source-path":"/src/components/ViewGateOverlay.tsx:3126",style:{fontSize:"10px",fontWeight:800,color:a.priority==="low"?"#059669":a.priority==="urgent"?"#b91c1c":a.priority==="high"?"#b45309":"#4338ca",backgroundColor:a.priority==="low"?"#ecfdf5":a.priority==="urgent"?"#fef2f2":a.priority==="high"?"#fffbeb":"#eef2ff",padding:"4px 10px",borderRadius:"6px",letterSpacing:"0.5px",border:"1px solid",borderColor:a.priority==="low"?"#d1fae5":a.priority==="urgent"?"#fee2e2":a.priority==="high"?"#fef3c7":"#e0e7ff"},children:[r.priority,": ",r[a.priority||"medium"]]})}),t.jsx("p",{"data-vg-id":"f01af8be","data-source-path":"/src/components/ViewGateOverlay.tsx:3140",className:"vg-text-wrap",style:{margin:"0",fontSize:"16px",color:"#1e293b",lineHeight:1.6},children:a.message}),a.figmaReference?.length>0&&t.jsxs("div",{"data-vg-id":"2e782fe0","data-source-path":"/src/components/ViewGateOverlay.tsx:3145",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#faf5ff",borderRadius:"12px",border:"1px solid #fae8ff"},children:[t.jsxs("div",{"data-vg-id":"2e782ff6","data-source-path":"/src/components/ViewGateOverlay.tsx:3146",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[t.jsx(vt,{"data-vg-id":"ea06996f","data-source-path":"/src/components/ViewGateOverlay.tsx:3147",size:14,style:{color:"#d946ef"}}),t.jsx("span",{"data-vg-id":"8161c8d","data-source-path":"/src/components/ViewGateOverlay.tsx:3148",style:{fontSize:"11px",fontWeight:800,color:"#a21caf",textTransform:"uppercase",letterSpacing:"0.05em"},children:s==="es"?"Diseños Figma":"Figma Designs"})]}),a.figmaReference.map((i,u)=>t.jsxs("a",{"data-vg-id":"ef479849","data-source-path":"/src/components/ViewGateOverlay.tsx:3151",href:i.link,target:"_blank",rel:"noreferrer",className:"vg-animate-pop",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",background:"#ffffff",border:"1px solid #f5d0fe",borderRadius:"10px",fontSize:"13px",color:"#c026d3",textDecoration:"none",transition:"all 0.2s",boxShadow:"0 2px 4px rgba(217, 70, 239, 0.05)"},onMouseEnter:y=>{y.currentTarget.style.transform="translateY(-2px)",y.currentTarget.style.boxShadow="0 4px 12px rgba(217, 70, 239, 0.15)",y.currentTarget.style.borderColor="#d946ef"},onMouseLeave:y=>{y.currentTarget.style.transform="translateY(0)",y.currentTarget.style.boxShadow="0 2px 4px rgba(217, 70, 239, 0.05)",y.currentTarget.style.borderColor="#f5d0fe"},children:[t.jsxs("div",{"data-vg-id":"2e782ffa","data-source-path":"/src/components/ViewGateOverlay.tsx:3159",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t.jsx("div",{"data-vg-id":"2e782ffb","data-source-path":"/src/components/ViewGateOverlay.tsx:3160",style:{width:"24px",height:"24px",borderRadius:"6px",background:"rgba(217, 70, 239, 0.1)",display:"flex",alignItems:"center",justifyContent:"center"},children:t.jsx(zt,{"data-vg-id":"b806bf29","data-source-path":"/src/components/ViewGateOverlay.tsx:3161",size:12,strokeWidth:3})}),t.jsx("span",{"data-vg-id":"8161c92","data-source-path":"/src/components/ViewGateOverlay.tsx:3163",style:{fontWeight:700},children:i.name||"Figma Reference"})]}),t.jsx(ba,{"data-vg-id":"5c2be04e","data-source-path":"/src/components/ViewGateOverlay.tsx:3165",size:14,style:{opacity:.5}})]},u))]}),a.backendEndpoints?.length>0&&t.jsxs("div",{"data-vg-id":"2e782fff","data-source-path":"/src/components/ViewGateOverlay.tsx:3172",style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px",padding:"12px",background:"#f5f8ff",borderRadius:"12px",border:"1px solid #e0e7ff"},children:[t.jsxs("div",{"data-vg-id":"2e783015","data-source-path":"/src/components/ViewGateOverlay.tsx:3173",style:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"},children:[t.jsx(Be,{"data-vg-id":"b1e4c2d2","data-source-path":"/src/components/ViewGateOverlay.tsx:3174",size:14,style:{color:"#4f46e5"}}),t.jsx("span",{"data-vg-id":"8161cac","data-source-path":"/src/components/ViewGateOverlay.tsx:3175",style:{fontSize:"11px",fontWeight:800,color:"#3730a3",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Backend Endpoints"})]}),t.jsx("div",{"data-vg-id":"2e783018","data-source-path":"/src/components/ViewGateOverlay.tsx:3177",style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:a.backendEndpoints.map(i=>{const u=i.split("|"),y=u.length>1?u[0]:"";let k=u.length>1?u[1]||"":i||"",E="#4f46e5",O="#e0e7ff";return y==="GET"?(E="#059669",O="#d1fae5"):y==="POST"?(E="#ea580c",O="#ffedd5"):y==="PUT"?(E="#0284c7",O="#e0f2fe"):y==="DELETE"&&(E="#e11d48",O="#ffe4e6"),t.jsxs("div",{"data-vg-id":"2e783019","data-source-path":"/src/components/ViewGateOverlay.tsx:3192",className:"vg-animate-slide",style:{fontSize:"12px",padding:"6px 12px",background:"#ffffff",color:"#4f46e5",borderRadius:"8px",border:"1px solid #c7d2fe",display:"flex",alignItems:"center",gap:"8px",boxShadow:"0 2px 4px rgba(79, 70, 229, 0.05)"},children:[y&&t.jsx("span",{"data-vg-id":"8161caf","data-source-path":"/src/components/ViewGateOverlay.tsx:3198",style:{fontWeight:800,color:E,background:O,padding:"2px 6px",borderRadius:"4px",fontSize:"10px"},children:y}),t.jsx("span",{"data-vg-id":"8161cb0","data-source-path":"/src/components/ViewGateOverlay.tsx:3199",style:{fontWeight:600,fontFamily:"monospace",letterSpacing:"-0.02em",color:"#1e293b"},children:k})]},i)})})]})]}),t.jsxs("div",{"data-vg-id":"2e78301c","data-source-path":"/src/components/ViewGateOverlay.tsx:3209",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"12px",borderTop:"1px solid #f1f5f9",paddingTop:"16px"},children:[t.jsx("div",{"data-vg-id":"2e78301d","data-source-path":"/src/components/ViewGateOverlay.tsx:3211",style:{display:"flex",gap:"6px"},children:Ot!=="client"&&t.jsxs(t.Fragment,{children:[t.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px"},onClick:()=>{const i=a.backendEndpoints||[],u=a.focusAreas&&a.focusAreas.length>0?a.focusAreas:[...i.length>0?["backend"]:[],...a.figmaReference&&a.figmaReference.length>0?["ux"]:[]];Qt(a._id),Ms(a.message),_(a.priority||"medium"),_a(u),Rt(a.figmaReference&&a.figmaReference.length>0?a.figmaReference:[{name:r.figmaPrimaryDesign,link:""}]),qt(i),Se(i)},title:r.edit,children:t.jsx(vt,{"data-vg-id":"ea069996","data-source-path":"/src/components/ViewGateOverlay.tsx:3235",size:16})}),t.jsx("button",{className:"vg-button-ghost vg-animate-pop",style:{padding:"8px",minWidth:"36px",color:"#ef4444"},onClick:()=>{W({title:r.deleteConfirm,message:r.confirmDelete,type:"danger",onConfirm:async()=>{try{(await fetch(`${d}/api/annotations/${a._id}`,{method:"DELETE",headers:{"x-api-key":c}})).ok&&(Jt(),o(r.deleteSuccess,"success"))}catch{o(r.error,"error")}finally{W(null)}}})},title:s==="es"?"Eliminar":"Delete",children:t.jsx(Wt,{"data-vg-id":"45b44219","data-source-path":"/src/components/ViewGateOverlay.tsx:3265",size:16})})]})}),t.jsxs("div",{"data-vg-id":"2e783035","data-source-path":"/src/components/ViewGateOverlay.tsx:3271",style:{display:"flex",gap:"8px"},children:[Ot!=="client"&&a.status==="ready_for_review"&&t.jsxs("button",{onClick:()=>fr(a),className:"vg-button-primary vg-animate-pop",style:{padding:"8px 16px",fontSize:"13px",whiteSpace:"nowrap",background:"linear-gradient(135deg, #059669 0%, #10b981 100%)",boxShadow:"0 4px 12px rgba(5, 150, 69, 0.2)",display:"flex",alignItems:"center",gap:"8px",fontWeight:700},disabled:Le,children:[Le?t.jsx(Mt,{"data-vg-id":"a4b73604","data-source-path":"/src/components/ViewGateOverlay.tsx:3289",size:14,className:"vg-animate-spin"}):t.jsx(Ro,{"data-vg-id":"41e603c7","data-source-path":"/src/components/ViewGateOverlay.tsx:3289",size:14}),s==="es"?"Resolver con Evidencia":"Resolve & Capture"]}),t.jsxs("a",{href:`${(l||"").replace(/\/$/,"")}/${m||a.status==="backlog"?"backlog":"board"}?search=${a.key||(a._id?"VG-"+a._id.slice(-6).toUpperCase():"TICKET")}${Oe?`&projectId=${Oe}`:""}`,target:"_blank",rel:"noopener noreferrer",className:"vg-button-primary vg-animate-pop",style:{padding:"8px 16px",fontSize:"13px",whiteSpace:"nowrap",textDecoration:"none",display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"},children:[t.jsx(ba,{"data-vg-id":"5c2be088","data-source-path":"/src/components/ViewGateOverlay.tsx:3309",size:14}),s==="es"?"Ver en Dashboard":"View in Dashboard"]})]})]})]},a._id))},K||"all")]})}),ge&&t.jsx("div",{"data-vg-id":"2e783039","data-source-path":"/src/components/ViewGateOverlay.tsx:3325",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(11, 15, 25, 0.7)",backdropFilter:"blur(8px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:Je+100},children:t.jsxs("div",{"data-vg-id":"2e78303a","data-source-path":"/src/components/ViewGateOverlay.tsx:3330",className:"vg-glassmorphism vg-animate-slide",style:{padding:"40px",width:"420px",textAlign:"center",border:"1px solid rgba(255, 255, 255, 0.1)",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.5)"},children:[t.jsx("div",{"data-vg-id":"2e78303b","data-source-path":"/src/components/ViewGateOverlay.tsx:3337",style:{width:"64px",height:"64px",background:ge.type==="danger"?"rgba(239, 68, 68, 0.1)":"rgba(99, 102, 241, 0.1)",borderRadius:"20px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px",color:ge.type==="danger"?"#ef4444":"#6366f1",transform:"rotate(-5deg)"},children:ge.type==="danger"?t.jsx(Wt,{"data-vg-id":"45b44221","data-source-path":"/src/components/ViewGateOverlay.tsx:3346",size:32}):t.jsx(Ke,{"data-vg-id":"a75c1ae2","data-source-path":"/src/components/ViewGateOverlay.tsx:3346",size:32})}),t.jsx("h3",{"data-vg-id":"53ec569","data-source-path":"/src/components/ViewGateOverlay.tsx:3348",style:{margin:"0 0 12px 0",fontSize:"20px",fontWeight:800,color:"#000000",letterSpacing:"-0.02em"},children:ge.title}),t.jsx("p",{"data-vg-id":"f01af933","data-source-path":"/src/components/ViewGateOverlay.tsx:3349",style:{margin:"0 0 24px 0",fontSize:"15px",color:"#000000",lineHeight:1.6},children:ge.message}),ge.showInput&&t.jsx("textarea",{className:"vg-textarea",placeholder:r.reopenPlaceholder,value:B,onChange:a=>X(a.target.value),rows:3,autoFocus:!0,style:{marginBottom:"24px",minHeight:"80px",textAlign:"left"}}),t.jsxs("div",{"data-vg-id":"2e783055","data-source-path":"/src/components/ViewGateOverlay.tsx:3363",style:{display:"flex",gap:"16px"},children:[t.jsx("button",{className:"vg-button-ghost",style:{flex:1,height:"44px"},onClick:()=>!Ne&&W(null),disabled:Ne,children:r.no}),t.jsx("button",{className:"vg-button-primary",style:{flex:1,height:"44px",backgroundColor:ge.type==="danger"?"#ef4444":void 0,backgroundImage:ge.type==="danger"?"none":void 0,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",opacity:ge.showInput&&!B.trim()?.5:1,cursor:ge.showInput&&!B.trim()?"not-allowed":"pointer"},disabled:Ne||ge.showInput&&!B.trim(),onClick:async()=>{jt(!0);try{await ge.onConfirm(B)}catch(a){console.error("Confirmation error:",a)}finally{jt(!1)}},children:Ne?t.jsx(Mt,{"data-vg-id":"a4b73624","data-source-path":"/src/components/ViewGateOverlay.tsx:3399",size:18,className:"vg-animate-spin"}):r.yes})]})]})}),!fe&&!x&&q&&nt.map((a,n)=>{const{rect:i,annotations:u,isModal:y}=a,k=u[0],E=u.length,O=u.some(w=>w.status==="ready_for_review"),$=u.some(w=>w.status==="completed"||w.status==="done"),G=u.some(w=>w.status!=="ready_for_review"&&w.status!=="completed"&&w.status!=="done"),pe=$&&!O&&!G,ee=O&&!G&&!$,Re=(O||$)&&!G,he=(O||$)&&G,xe=u.filter(w=>w.status!=="ready_for_review"&&w.status!=="completed"&&w.status!=="done").length,be=u.filter(w=>w.status==="ready_for_review").length,we=u.filter(w=>w.status==="completed"||w.status==="done").length,ke=u.some(w=>w.status==="bug_fixing"||w.type==="bug"||w.originalStatus==="bug_fixing"),ta=ke&&!ee&&!pe?"#f43f5e":xe>0?m?"#64748b":"#ea580c":be>0?"#a855f7":"#10b981",pt=nt.some(w=>w.element===a.element&&w.isTriggerPin),Xe=nt.some(w=>w.element===a.element&&!w.isTriggerPin),ft=pt&&Xe?a.isTriggerPin?-18:18:0,Gt=i.top===0&&i.left===0&&i.width>window.innerWidth*.9;return t.jsxs("div",{className:"vg-pin-container vg-animate-pop",style:{position:"fixed",top:Math.max(20,Math.min(window.innerHeight-52,i.top-20)),left:Gt?Math.max(20,i.left+40+ft):Math.max(20,Math.min(window.innerWidth-52,i.left+i.width/2-16+ft)),width:"32px",height:"32px",cursor:"pointer",transition:"all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)",zIndex:Jo},onMouseEnter:w=>{const at=w.currentTarget.getBoundingClientRect(),Ds=window.innerHeight-at.bottom,gr=at.top;Ds<250&&gr>Ds?Q(Ia=>({...Ia,[a.id]:"vg-top"})):Q(Ia=>({...Ia,[a.id]:""}))},onWheel:w=>{const at=w.currentTarget.querySelector(".vg-tooltip-scroll");at&&at.scrollBy({top:w.deltaY,behavior:"smooth"})},onClick:()=>{Ae(!0),We(k._id)},children:[t.jsxs("div",{"data-vg-id":"2e783057","data-source-path":"/src/components/ViewGateOverlay.tsx:3474",className:`vg-pin-tooltip ${me[a.id]||""} ${Gt||i.left<160?"vg-tooltip-right":i.left>window.innerWidth-160?"vg-tooltip-left":""}`,style:{padding:"16px"},children:[t.jsxs("div",{"data-vg-id":"2e783058","data-source-path":"/src/components/ViewGateOverlay.tsx:3475",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[t.jsxs("div",{"data-vg-id":"2e783059","data-source-path":"/src/components/ViewGateOverlay.tsx:3476",style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},children:[a.isTriggerPin?t.jsx(Pt,{"data-vg-id":"d88161bf","data-source-path":"/src/components/ViewGateOverlay.tsx:3478",size:14,color:ta}):t.jsx(Lt,{"data-vg-id":"7fe17ae","data-source-path":"/src/components/ViewGateOverlay.tsx:3480",size:14,color:ta}),t.jsxs("div",{"data-vg-id":"2e78305c","data-source-path":"/src/components/ViewGateOverlay.tsx:3482",style:{display:"flex",gap:"4px"},children:[xe>0&&t.jsxs("span",{"data-vg-id":"8161d07","data-source-path":"/src/components/ViewGateOverlay.tsx:3484",className:"vg-badge",style:{fontSize:"10px",background:m?"#f1f5f9":"#fff7ed",color:m?"#64748b":"#c2410c"},children:[xe," ",m||k.status==="backlog"?"Backlog":s==="es"?xe===1?r.pending:"Pendientes":"pending"]}),be>0&&t.jsxs("span",{"data-vg-id":"8161d08","data-source-path":"/src/components/ViewGateOverlay.tsx:3493",style:{fontSize:"10px",fontWeight:700,color:"#a855f7",background:"#f3e8ff",padding:"2px 6px",borderRadius:"6px"},children:[be," ",s==="es"?be===1?"Listo para revisión":"Listos para revisión":"ready for review"]}),we>0&&t.jsxs("span",{"data-vg-id":"8161d09","data-source-path":"/src/components/ViewGateOverlay.tsx:3505",style:{fontSize:"10px",fontWeight:700,color:"#059669",background:"#ecfdf5",padding:"2px 6px",borderRadius:"6px"},children:[we," ",s==="es"?we===1?"Completado":"Completados":"completed"]}),u.some(w=>w.status==="bug_fixing")&&t.jsx("span",{"data-vg-id":"8161d0a","data-source-path":"/src/components/ViewGateOverlay.tsx:3517",style:{fontSize:"10px",fontWeight:700,color:"#e11d48",background:"#fff1f2",padding:"2px 6px",borderRadius:"6px"},children:"BUG"})]})]}),y&&t.jsx("span",{"data-vg-id":"8161d0b","data-source-path":"/src/components/ViewGateOverlay.tsx:3531",className:"vg-badge",style:{fontSize:"10px",background:m?"#f1f5f9":he?`linear-gradient(90deg, #ea580c 50%, ${$?"#10b981":"#a855f7"} 50%)`:xe>0?"#fff7ed":pe?"#ecfdf5":"#f3e8ff",color:m?"#64748b":he?"#ffffff":xe>0?"#c2410c":pe?"#059669":"#a855f7",border:"none",fontWeight:800,textShadow:he&&!m?"0 1px 2px rgba(0,0,0,0.2)":"none"},children:"MODAL"})]}),t.jsx("div",{"data-vg-id":"2e783077","data-source-path":"/src/components/ViewGateOverlay.tsx:3543",className:"vg-tooltip-scroll",style:{maxHeight:"180px",overflowY:"auto"},children:u.map((w,at)=>t.jsxs("div",{"data-vg-id":"2e783078","data-source-path":"/src/components/ViewGateOverlay.tsx:3545",style:{padding:"10px 0",borderTop:at===0?"none":"1px solid #f1f5f9",display:"flex",gap:"12px",alignItems:"flex-start"},children:[t.jsxs("div",{"data-vg-id":"2e783079","data-source-path":"/src/components/ViewGateOverlay.tsx:3552",style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[t.jsxs("div",{"data-vg-id":"2e78307a","data-source-path":"/src/components/ViewGateOverlay.tsx:3553",style:{display:"flex",alignItems:"center",gap:"6px"},children:[t.jsx("span",{"data-vg-id":"8161d10","data-source-path":"/src/components/ViewGateOverlay.tsx:3554",style:{fontSize:"10px",fontWeight:600,color:"#64748b"},children:ms(w.timestamp||w.createdAt,s)}),w.creator&&t.jsx("div",{"data-vg-id":"2e783091","data-source-path":"/src/components/ViewGateOverlay.tsx:3558",style:{marginLeft:"4px"},children:w.creator.avatar?t.jsx("img",{"data-vg-id":"3cf75ac4","data-source-path":"/src/components/ViewGateOverlay.tsx:3560",src:w.creator.avatar,style:{width:"14px",height:"14px",borderRadius:"50%"},alt:""}):t.jsx("div",{"data-vg-id":"2e783093","data-source-path":"/src/components/ViewGateOverlay.tsx:3562",style:{width:"14px",height:"14px",borderRadius:"50%",background:"#6366f1",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"7px",fontWeight:700},children:w.creator.name?.[0]})})]}),w.url&&t.jsx(hs,{url:w.url,onHover:Gs,style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"9px",color:"#6366f1",opacity:.8,background:"rgba(99, 102, 241, 0.05)",padding:"2px 6px",borderRadius:"4px",maxWidth:"120px"},tooltipStyle:{fontSize:"9px"}}),t.jsx("div",{"data-vg-id":"2e783094","data-source-path":"/src/components/ViewGateOverlay.tsx:3588",className:"vg-line-clamp-2",style:{fontSize:"13px",color:"#1e293b",lineHeight:1.4,fontWeight:500},children:w.message.length>100?w.message.slice(0,97)+"...":w.message})]}),t.jsxs("div",{"data-vg-id":"2e783095","data-source-path":"/src/components/ViewGateOverlay.tsx:3592",style:{flexShrink:0,marginTop:"2px",display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-end"},children:[t.jsx("div",{"data-vg-id":"2e783096","data-source-path":"/src/components/ViewGateOverlay.tsx:3593",style:{fontSize:"8px",fontWeight:800,color:w.priority==="low"?"#059669":w.priority==="urgent"?"#b91c1c":w.priority==="high"?"#b45309":"#4338ca",backgroundColor:w.priority==="low"?"#ecfdf5":w.priority==="urgent"?"#fef2f2":w.priority==="high"?"#fffbeb":"#eef2ff",padding:"2px 6px",borderRadius:"4px",textTransform:"uppercase",border:"1px solid",borderColor:w.priority==="low"?"#d1fae5":w.priority==="urgent"?"#fee2e2":w.priority==="high"?"#fef3c7":"#e0e7ff"},children:r[w.priority||"medium"]}),w.status==="completed"||w.status==="done"?t.jsxs("span",{"data-vg-id":"8161d2c","data-source-path":"/src/components/ViewGateOverlay.tsx:3607",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#059669",background:"#ecfdf5",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #d1fae5"},children:[t.jsx(Ke,{"data-vg-id":"a75c1b3d","data-source-path":"/src/components/ViewGateOverlay.tsx:3620",size:10}),r.completed]}):w.status==="ready_for_review"?t.jsxs("span",{"data-vg-id":"8161d2e","data-source-path":"/src/components/ViewGateOverlay.tsx:3624",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#a855f7",background:"#f3e8ff",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #e9d5ff"},children:[w.type==="bug"||w.status==="bug_fixing"||w.originalStatus==="bug_fixing"?t.jsx(xt,{"data-vg-id":"3b8b18dd","data-source-path":"/src/components/ViewGateOverlay.tsx:3637",size:10}):t.jsx(Ke,{"data-vg-id":"a75c1de0","data-source-path":"/src/components/ViewGateOverlay.tsx:3637",size:10}),r.readyForReview]}):w.status==="bug_fixing"?t.jsxs("span",{"data-vg-id":"8161fd1","data-source-path":"/src/components/ViewGateOverlay.tsx:3641",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:"#e11d48",background:"#fff1f2",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:"1px solid #ffe4e6"},children:[t.jsx(xt,{"data-vg-id":"3b8b1b80","data-source-path":"/src/components/ViewGateOverlay.tsx:3654",size:10}),"Bug Fixing"]}):t.jsxs("span",{"data-vg-id":"8161fd3","data-source-path":"/src/components/ViewGateOverlay.tsx:3658",style:{display:"flex",alignItems:"center",gap:"4px",fontSize:"8px",fontWeight:800,color:m||w.status==="backlog"?"#64748b":"#ea580c",background:m||w.status==="backlog"?"#f1f5f9":"#fff7ed",padding:"2px 6px",borderRadius:"6px",textTransform:"uppercase",border:m||w.status==="backlog"?"1px solid #e2e8f0":"1px solid #ffedd5"},children:[t.jsx(cs,{"data-vg-id":"62dc6f9c","data-source-path":"/src/components/ViewGateOverlay.tsx:3671",size:10}),m||w.status==="backlog"?r.backlog:r.pending]})]})]},w._id))})]}),t.jsxs("div",{"data-vg-id":"2e783340","data-source-path":"/src/components/ViewGateOverlay.tsx:3681",className:`vg-formal-pin ${pe?"completed":ee||Re?"ready":ke?"bug":he?"mixed":m?"backlog":""} ${a.isTriggerPin?"modal-variant":""}`,style:{position:"relative",background:ke&&!ee&&!pe?"linear-gradient(135deg, #f43f5e 0%, #e11d48 100%)":ee?"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":he?$?"linear-gradient(135deg, #10b981 0%, #059669 100%)":"linear-gradient(135deg, #a855f7 0%, #7e22ce 100%)":void 0},children:[ee||pe||Re?ke&&!pe?t.jsx(xt,{"data-vg-id":"3b8b1b84","data-source-path":"/src/components/ViewGateOverlay.tsx:3688",size:18}):t.jsx(Ke,{"data-vg-id":"a75c1de7","data-source-path":"/src/components/ViewGateOverlay.tsx:3688",size:18}):ke?t.jsx(xt,{"data-vg-id":"3b8b1b86","data-source-path":"/src/components/ViewGateOverlay.tsx:3688",size:18}):a.isTriggerPin?t.jsx(Pt,{"data-vg-id":"d88164a9","data-source-path":"/src/components/ViewGateOverlay.tsx:3688",size:16}):y?t.jsx(ba,{"data-vg-id":"5c2be3aa","data-source-path":"/src/components/ViewGateOverlay.tsx:3688",size:16}):t.jsx(Lt,{"data-vg-id":"7fe1aae","data-source-path":"/src/components/ViewGateOverlay.tsx:3688",size:16}),E>1&&t.jsx("div",{"data-vg-id":"2e78335c","data-source-path":"/src/components/ViewGateOverlay.tsx:3691",className:"vg-pin-badge vg-animate-pop",children:E})]})]},`group-${a.id}`)}),t.jsx("div",{className:`vg-url-tooltip ${et?"visible":""} ${et?.direction==="bottom"?"vg-bottom":"vg-top"}`,style:{transform:et?`translate(-50%, ${et.direction==="top"?"-110%":"10%"})`:"translate(-50%, 0)",left:et?.x||0,top:et?.y||0},children:et?.url}),Ee&&t.jsx("div",{"data-vg-id":"2e78335d","data-source-path":"/src/components/ViewGateOverlay.tsx:3716",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.75)",backdropFilter:"blur(16px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:Je+100,animation:"vg-fade-in 0.3s ease-out"},onClick:a=>{a.target===a.currentTarget&&P(!1)},children:t.jsxs("div",{"data-vg-id":"2e78335e","data-source-path":"/src/components/ViewGateOverlay.tsx:3725",className:"vg-glassmorphism vg-animate-pop",style:{width:"95%",maxWidth:"800px",height:"85vh",maxHeight:"850px",display:"flex",flexDirection:"column",overflow:"hidden",boxShadow:"0 50px 100px rgba(0,0,0,0.6)",borderRadius:"32px",border:"1px solid rgba(255, 255, 255, 0.15)",backgroundColor:"rgba(255, 255, 255, 0.98)"},children:[t.jsxs("div",{"data-vg-id":"2e78335f","data-source-path":"/src/components/ViewGateOverlay.tsx:3738",style:{padding:"32px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",display:"flex",alignItems:"center",justifyContent:"space-between",background:"white"},children:[t.jsxs("div",{"data-vg-id":"2e783360","data-source-path":"/src/components/ViewGateOverlay.tsx:3739",children:[t.jsx("h3",{"data-vg-id":"53ec877","data-source-path":"/src/components/ViewGateOverlay.tsx:3740",style:{margin:0,fontSize:"24px",fontWeight:900,letterSpacing:"-0.03em",color:"#0f172a"},children:s==="es"?"Selector de Endpoints":"Endpoint Selector"}),t.jsx("p",{"data-vg-id":"f01afc41","data-source-path":"/src/components/ViewGateOverlay.tsx:3743",style:{margin:"6px 0 0 0",fontSize:"14px",color:"#64748b",fontWeight:500},children:s==="es"?"Asocia múltiples rutas backend a este ticket para mayor precisión":"Associate multiple backend routes to this ticket for better precision"})]}),t.jsx("button",{"data-vg-id":"5861c060","data-source-path":"/src/components/ViewGateOverlay.tsx:3747",onClick:()=>P(!1),className:"vg-close-pill",style:{width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"14px",background:"#f1f5f9",color:"#64748b",border:"none",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:a=>{a.currentTarget.style.background="#e2e8f0",a.currentTarget.style.color="#0f172a"},onMouseLeave:a=>{a.currentTarget.style.background="#f1f5f9",a.currentTarget.style.color="#64748b"},children:t.jsx(yt,{"data-vg-id":"eec8c840","data-source-path":"/src/components/ViewGateOverlay.tsx:3754",size:20,strokeWidth:2.5})})]}),t.jsx("div",{"data-vg-id":"2e78337a","data-source-path":"/src/components/ViewGateOverlay.tsx:3758",style:{padding:"24px 40px",borderBottom:"1px solid rgba(0,0,0,0.06)",background:"#fcfcfc"},children:t.jsxs("div",{"data-vg-id":"2e78337b","data-source-path":"/src/components/ViewGateOverlay.tsx:3759",style:{position:"relative"},children:[t.jsx(Po,{"data-vg-id":"8f7bb00f","data-source-path":"/src/components/ViewGateOverlay.tsx:3760",size:20,style:{position:"absolute",left:"16px",top:"50%",transform:"translateY(-50%)",color:"#94a3b8"}}),t.jsx("input",{"data-vg-id":"88e38db6","data-source-path":"/src/components/ViewGateOverlay.tsx:3761",type:"text",placeholder:s==="es"?"Buscar rutas, métodos o descripciones...":"Search routes, methods, or descriptions...",value:F,onChange:a=>Te(a.target.value),className:"vg-textarea",style:{padding:"14px 16px 14px 50px",fontSize:"16px",minHeight:"auto",borderRadius:"16px",border:"1px solid #e2e8f0",backgroundColor:"white",boxShadow:"0 2px 8px rgba(0,0,0,0.04)"},autoFocus:!0})]})}),t.jsx("div",{"data-vg-id":"2e78337e","data-source-path":"/src/components/ViewGateOverlay.tsx:3781",style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:"24px 40px"},className:"vg-custom-scrollbar",children:Et?Is.length>0?t.jsx("div",{"data-vg-id":"2e783382","data-source-path":"/src/components/ViewGateOverlay.tsx:3788",style:{display:"flex",flexDirection:"column",gap:"0px"},children:Is.map(a=>{const n=a.name===(s==="es"?"Seleccionados":"Selected");return t.jsxs("div",{"data-vg-id":"2e783398","data-source-path":"/src/components/ViewGateOverlay.tsx:3792",style:{marginBottom:"32px"},children:[t.jsxs("div",{"data-vg-id":"2e783399","data-source-path":"/src/components/ViewGateOverlay.tsx:3793",style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"16px",padding:"0 4px"},children:[t.jsx("span",{"data-vg-id":"816202f","data-source-path":"/src/components/ViewGateOverlay.tsx:3794",style:{fontSize:"11px",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.1em",color:n?"#10b981":"#6366f1",backgroundColor:n?"rgba(10, 185, 129, 0.08)":"rgba(99, 102, 241, 0.08)",padding:"4px 10px",borderRadius:"6px",border:"1px solid",borderColor:n?"rgba(10, 185, 129, 0.1)":"rgba(99, 102, 241, 0.1)"},children:a.name}),t.jsx("div",{"data-vg-id":"2e78339b","data-source-path":"/src/components/ViewGateOverlay.tsx:3808",style:{flex:1,height:"1px",background:`linear-gradient(90deg, ${n?"rgba(16, 185, 129, 0.15)":"rgba(99, 102, 241, 0.15)"} 0%, transparent 100%)`}})]}),t.jsx("div",{"data-vg-id":"2e78339c","data-source-path":"/src/components/ViewGateOverlay.tsx:3815",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(340px, 1fr))",gap:"12px"},children:a.endpoints.map(i=>{const u=`${i.method}|${i.path}`,y=L.includes(u);return t.jsxs("div",{"data-vg-id":"2e78339d","data-source-path":"/src/components/ViewGateOverlay.tsx:3824",onClick:()=>{Se(y?L.filter(k=>k!==u):[...L,u])},style:{padding:"16px 20px",borderRadius:"18px",cursor:"pointer",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",background:y?"#f5f7ff":"#ffffff",border:"1px solid",borderColor:y?"rgba(99, 102, 241, 0.2)":"#f1f5f9",display:"flex",alignItems:"center",gap:"16px",boxShadow:y?"0 4px 12px rgba(99, 102, 241, 0.08)":"none"},onMouseEnter:k=>{y||(k.currentTarget.style.background="#f8fafc",k.currentTarget.style.borderColor="#e2e8f0")},onMouseLeave:k=>{y||(k.currentTarget.style.background="#ffffff",k.currentTarget.style.borderColor="#f1f5f9")},children:[t.jsx("div",{"data-vg-id":"2e78339e","data-source-path":"/src/components/ViewGateOverlay.tsx:3856",style:{width:"24px",height:"24px",borderRadius:"8px",border:"2px solid",borderColor:y?"#6366f1":"#cbd5e1",backgroundColor:y?"#6366f1":"white",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s",flexShrink:0},children:y&&t.jsx("div",{"data-vg-id":"2e78339f","data-source-path":"/src/components/ViewGateOverlay.tsx:3869",style:{color:"white",fontSize:"14px",fontWeight:900},children:"✓"})}),t.jsxs("div",{"data-vg-id":"2e7833a0","data-source-path":"/src/components/ViewGateOverlay.tsx:3871",style:{flex:1,minWidth:0},children:[t.jsxs("div",{"data-vg-id":"2e7833a1","data-source-path":"/src/components/ViewGateOverlay.tsx:3872",style:{display:"flex",alignItems:"center",gap:"10px"},children:[t.jsx("span",{"data-vg-id":"816204c","data-source-path":"/src/components/ViewGateOverlay.tsx:3873",style:{fontSize:"11px",fontWeight:800,padding:"3px 8px",borderRadius:"8px",background:i.method==="GET"?"#dcfce7":"#fee2e2",color:i.method==="GET"?"#166534":"#991b1b",flexShrink:0},children:i.method}),t.jsx("span",{"data-vg-id":"816204d","data-source-path":"/src/components/ViewGateOverlay.tsx:3884",style:{fontWeight:700,color:y?"#4338ca":"#1e293b",fontSize:"14px",wordBreak:"break-all"},children:i.path}),i.contract&&t.jsx("div",{"data-vg-id":"2e7833b9","data-source-path":"/src/components/ViewGateOverlay.tsx:3893",style:{fontSize:"9px",fontWeight:900,color:"#6366f1",background:"rgba(99, 102, 241, 0.1)",padding:"1px 5px",borderRadius:"4px",textTransform:"uppercase"},children:"JSON"})]}),i.description&&t.jsx("div",{"data-vg-id":"2e7833ba","data-source-path":"/src/components/ViewGateOverlay.tsx:3905",style:{fontSize:"12px",color:"#64748b",marginTop:"6px",wordBreak:"break-word",fontWeight:450,lineHeight:1.4},children:i.description})]})]},u)})})]},a.name)})}):t.jsxs("div",{"data-vg-id":"2e7833bb","data-source-path":"/src/components/ViewGateOverlay.tsx:3926",style:{padding:"80px 20px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center"},children:[t.jsx("div",{"data-vg-id":"2e7833bc","data-source-path":"/src/components/ViewGateOverlay.tsx:3927",style:{width:"80px",height:"80px",borderRadius:"24px",backgroundColor:"#f1f5f9",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"24px"},children:t.jsx(Be,{"data-vg-id":"b1e4c679","data-source-path":"/src/components/ViewGateOverlay.tsx:3928",size:40,style:{color:"#94a3b8"}})}),t.jsx("p",{"data-vg-id":"f01afc9d","data-source-path":"/src/components/ViewGateOverlay.tsx:3930",style:{color:"#0f172a",fontSize:"18px",fontWeight:800,margin:"0 0 8px 0"},children:s==="es"?"No encontramos lo que buscas":"No results found"}),t.jsx("p",{"data-vg-id":"f01afc9e","data-source-path":"/src/components/ViewGateOverlay.tsx:3933",style:{color:"#64748b",fontSize:"15px",margin:0},children:s==="es"?"Intenta buscar con otros términos o revisa la sincronización":"Try searching with different terms or check synchronization"})]}):t.jsxs("div",{"data-vg-id":"2e78337f","data-source-path":"/src/components/ViewGateOverlay.tsx:3783",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"100px 0",gap:"20px"},children:[t.jsx("div",{"data-vg-id":"2e783380","data-source-path":"/src/components/ViewGateOverlay.tsx:3784",className:"vg-spinner",style:{width:"40px",height:"40px",border:"3px solid rgba(99, 102, 241, 0.1)",borderTopColor:"#6366f1"}}),t.jsx("p",{"data-vg-id":"f01afc60","data-source-path":"/src/components/ViewGateOverlay.tsx:3785",style:{color:"#64748b",fontSize:"15px",fontWeight:600},children:s==="es"?"Cargando endpoints...":"Loading endpoints..."})]})}),t.jsxs("div",{"data-vg-id":"2e7833c0","data-source-path":"/src/components/ViewGateOverlay.tsx:3940",style:{padding:"24px 40px",borderTop:"1px solid rgba(0,0,0,0.06)",background:"white",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"20px"},children:[t.jsxs("div",{"data-vg-id":"2e7833d6","data-source-path":"/src/components/ViewGateOverlay.tsx:3941",style:{display:"flex",alignItems:"center",gap:"12px"},children:[t.jsxs("div",{"data-vg-id":"2e7833d7","data-source-path":"/src/components/ViewGateOverlay.tsx:3942",style:{padding:"6px 12px",background:"#f1f5f9",borderRadius:"10px",fontSize:"14px",fontWeight:700,color:"#475569"},children:[L.length," ",s==="es"?"seleccionados":"selected"]}),L.length>0&&t.jsx("button",{"data-vg-id":"5861c0d5","data-source-path":"/src/components/ViewGateOverlay.tsx:3946",onClick:()=>{Se([]),ct&&qt([])},style:{background:"none",border:"none",color:"#6366f1",fontSize:"14px",fontWeight:700,cursor:"pointer",padding:"4px 8px"},children:s==="es"?"Desmarcar todos":"Deselect all"})]}),t.jsx("div",{"data-vg-id":"2e7833d9","data-source-path":"/src/components/ViewGateOverlay.tsx:3957",style:{display:"flex",gap:"12px"},children:t.jsx("button",{"data-vg-id":"5861c0d7","data-source-path":"/src/components/ViewGateOverlay.tsx:3958",onClick:()=>{ct&&qt(L),P(!1)},style:{minWidth:"160px",padding:"14px 28px",borderRadius:"16px",fontSize:"15px",fontWeight:850,border:"none",background:"var(--vg-primary-gradient)",color:"white",cursor:"pointer",boxShadow:"0 10px 25px -5px rgba(99, 102, 241, 0.45)",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center"},onMouseEnter:a=>{a.currentTarget.style.transform="translateY(-2px)",a.currentTarget.style.boxShadow="0 15px 30px -5px rgba(99, 102, 241, 0.6)"},onMouseLeave:a=>{a.currentTarget.style.transform="translateY(0)",a.currentTarget.style.boxShadow="0 10px 25px -5px rgba(99, 102, 241, 0.45)"},children:s==="es"?"Confirmar Selección":"Confirm Selection"})})]})]})}),rt?.contract&&t.jsx("div",{"data-vg-id":"2e7833db","data-source-path":"/src/components/ViewGateOverlay.tsx:3992",className:"vg-animate-fade",style:{position:"fixed",left:Math.min(rt.x,window.innerWidth-420),top:Math.min(rt.y,window.innerHeight-300),width:"400px",zIndex:Je+500,pointerEvents:"none"},children:t.jsxs("div",{"data-vg-id":"2e7833dc","data-source-path":"/src/components/ViewGateOverlay.tsx:4000",className:"vg-glassmorphism",style:{padding:"20px",background:"rgba(15, 23, 42, 0.95)",backdropFilter:"blur(20px)",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"20px",boxShadow:"0 20px 40px rgba(0,0,0,0.4)",display:"flex",flexDirection:"column",gap:"12px"},children:[t.jsxs("div",{"data-vg-id":"2e7833dd","data-source-path":"/src/components/ViewGateOverlay.tsx:4011",style:{display:"flex",alignItems:"center",gap:"8px"},children:[t.jsx("div",{"data-vg-id":"2e7833de","data-source-path":"/src/components/ViewGateOverlay.tsx:4012",style:{padding:"4px 10px",background:"rgba(99, 102, 241, 0.2)",borderRadius:"8px",fontSize:"11px",fontWeight:900,color:"#818cf8",textTransform:"uppercase"},children:s==="es"?"CONTRATO":"CONTRACT"}),t.jsxs("span",{"data-vg-id":"8162074","data-source-path":"/src/components/ViewGateOverlay.tsx:4021",style:{color:"rgba(255, 255, 255, 0.5)",fontSize:"12px",fontWeight:600},children:[rt.method," ",rt.path]})]}),t.jsx("div",{"data-vg-id":"2e7833f5","data-source-path":"/src/components/ViewGateOverlay.tsx:4023",className:"vg-custom-scrollbar",style:{maxHeight:"250px",overflowY:"auto",background:"rgba(0,0,0,0.3)",borderRadius:"12px",padding:"12px"},children:t.jsx("pre",{"data-vg-id":"b7af0908","data-source-path":"/src/components/ViewGateOverlay.tsx:4030",style:{margin:0,fontSize:"11px",color:"#94a3b8",whiteSpace:"pre-wrap",wordBreak:"break-all",lineHeight:1.5,fontFamily:"JetBrains Mono, Fira Code, monospace"},children:rt.contract})})]})}),ct&&t.jsx("div",{"data-vg-id":"2e7833f7","data-source-path":"/src/components/ViewGateOverlay.tsx:4049",className:"vg-animate-fade",style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(11, 15, 25, 0.4)",backdropFilter:"blur(8px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:Je+50},children:t.jsxs("div",{"data-vg-id":"2e7833f8","data-source-path":"/src/components/ViewGateOverlay.tsx:4055",className:"vg-glassmorphism vg-animate-slide",style:{width:"600px",maxWidth:"90vw",maxHeight:"90vh",overflowY:"auto",background:"#ffffff",borderRadius:"24px",padding:"32px",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",gap:"24px"},children:[t.jsxs("div",{"data-vg-id":"2e7833f9","data-source-path":"/src/components/ViewGateOverlay.tsx:4066",style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[t.jsx("h2",{"data-vg-id":"530b18f","data-source-path":"/src/components/ViewGateOverlay.tsx:4067",style:{margin:0,fontSize:"20px",fontWeight:800,color:"#1e293b"},children:s==="es"?"Editar Comentario":"Edit Comment"}),t.jsx("button",{"data-vg-id":"5861c0f8","data-source-path":"/src/components/ViewGateOverlay.tsx:4070",onClick:()=>Qt(null),style:{background:"none",border:"none",cursor:"pointer",color:"#94a3b8"},children:t.jsx(yt,{"data-vg-id":"eec8c8c3","data-source-path":"/src/components/ViewGateOverlay.tsx:4071",size:24})})]}),t.jsxs("div",{"data-vg-id":"2e7833fd","data-source-path":"/src/components/ViewGateOverlay.tsx:4075",style:{display:"flex",flexDirection:"column",gap:"16px"},children:[t.jsxs("div",{"data-vg-id":"2e7833fe","data-source-path":"/src/components/ViewGateOverlay.tsx:4076",children:[t.jsx("label",{"data-vg-id":"feec1077","data-source-path":"/src/components/ViewGateOverlay.tsx:4077",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:r.priority}),t.jsx("div",{"data-vg-id":"2e783415","data-source-path":"/src/components/ViewGateOverlay.tsx:4078",style:{display:"flex",gap:"8px"},children:["low","medium","high","urgent"].map(a=>t.jsx("button",{onClick:()=>_(a),style:{flex:1,padding:"10px 12px",borderRadius:"12px",fontSize:"13px",fontWeight:800,border:"2px solid",borderColor:A===a?a==="low"?"#10b981":a==="medium"?"#6366f1":a==="high"?"#f59e0b":"#ef4444":"#f1f5f9",backgroundColor:A===a?a==="low"?"#ecfdf5":a==="medium"?"#eef2ff":a==="high"?"#fffbeb":"#fef2f2":"white",color:A===a?a==="low"?"#059669":a==="medium"?"#4338ca":a==="high"?"#b45309":"#b91c1c":"#64748b",cursor:"pointer",transition:"all 0.2s",textTransform:"capitalize"},children:r[a]},a))})]}),t.jsxs("div",{"data-vg-id":"2e783416","data-source-path":"/src/components/ViewGateOverlay.tsx:4098",style:{marginBottom:"8px"},children:[t.jsx("label",{"data-vg-id":"feec107a","data-source-path":"/src/components/ViewGateOverlay.tsx:4099",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:r.focusAreas}),t.jsx("div",{"data-vg-id":"2e783418","data-source-path":"/src/components/ViewGateOverlay.tsx:4100",style:{display:"flex",gap:"8px"},children:[{id:"frontend",label:r.frontend,icon:t.jsx(zt,{"data-vg-id":"b806c346","data-source-path":"/src/components/ViewGateOverlay.tsx:4102",size:14}),color:"#10b981",bg:"#ecfdf5",border:"#d1fae5"},{id:"backend",label:r.backend,icon:t.jsx(Be,{"data-vg-id":"b1e4c6d6","data-source-path":"/src/components/ViewGateOverlay.tsx:4103",size:14}),color:"#6366f1",bg:"#eef2ff",border:"#e0e7ff"},{id:"ux",label:r.ux,icon:t.jsx(vt,{"data-vg-id":"ea069d93","data-source-path":"/src/components/ViewGateOverlay.tsx:4104",size:14}),color:"#d946ef",bg:"#fdf4ff",border:"#f5d0fe"}].filter(a=>a.id==="backend"?Ut:a.id==="ux"?R:!0).map(a=>{const n=dt.includes(a.id);return t.jsxs("button",{onClick:()=>{_a(n?dt.filter(i=>i!==a.id):[...dt,a.id])},style:{flex:1,padding:"10px 4px",borderRadius:"12px",fontSize:"12px",fontWeight:700,border:"2px solid",borderColor:n?a.color:"#f1f5f9",backgroundColor:n?a.bg:"white",color:n?a.color:"#64748b",cursor:"pointer",transition:"all 0.2s",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[a.icon,a.label]},a.id)})})]}),dt.includes("ux")&&t.jsxs("div",{"data-vg-id":"2e78341c","data-source-path":"/src/components/ViewGateOverlay.tsx:4140",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[t.jsxs("div",{"data-vg-id":"2e78341d","data-source-path":"/src/components/ViewGateOverlay.tsx:4141",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},children:[t.jsxs("div",{"data-vg-id":"2e783433","data-source-path":"/src/components/ViewGateOverlay.tsx:4142",style:{display:"flex",alignItems:"center",gap:"6px"},children:[t.jsx(Pt,{"data-vg-id":"d8816599","data-source-path":"/src/components/ViewGateOverlay.tsx:4143",size:14,style:{color:"#d946ef"}}),t.jsx("span",{"data-vg-id":"81620ca","data-source-path":"/src/components/ViewGateOverlay.tsx:4144",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:r.figmaLink})]}),t.jsxs("button",{"data-vg-id":"5861c133","data-source-path":"/src/components/ViewGateOverlay.tsx:4146",onClick:()=>Rt([...tt,{name:"",link:""}]),style:{background:"#fdf4ff",border:"1px solid #f5d0fe",color:"#d946ef",borderRadius:"8px",padding:"4px 10px",fontSize:"11px",fontWeight:800,cursor:"pointer"},children:["+ ",r.addLink]})]}),t.jsx("div",{"data-vg-id":"2e783437","data-source-path":"/src/components/ViewGateOverlay.tsx:4153",style:{display:"flex",flexDirection:"column",gap:"8px"},children:tt.map((a,n)=>t.jsxs("div",{"data-vg-id":"2e783438","data-source-path":"/src/components/ViewGateOverlay.tsx:4155",style:{display:"flex",gap:"8px"},children:[t.jsx("input",{"data-vg-id":"88e38e72","data-source-path":"/src/components/ViewGateOverlay.tsx:4156",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:r.figmaNamePlaceholder,value:a.name,onChange:i=>{const u=[...tt];u[n]&&(u[n].name=i.target.value,Rt(u))}}),t.jsx("input",{"data-vg-id":"88e38e73","data-source-path":"/src/components/ViewGateOverlay.tsx:4167",type:"text",className:"vg-textarea",style:{padding:"8px 12px",fontSize:"12px",minHeight:"auto",borderRadius:"10px"},placeholder:r.figmaLinkPlaceholder,value:a.link,onChange:i=>{const u=[...tt];u[n]&&(u[n].link=i.target.value,Rt(u))}}),tt.length>1&&t.jsx("button",{"data-vg-id":"5861c138","data-source-path":"/src/components/ViewGateOverlay.tsx:4179",onClick:()=>Rt(tt.filter((i,u)=>u!==n)),style:{color:"#ef4444",background:"none",border:"none",cursor:"pointer"},children:t.jsx(Wt,{"data-vg-id":"45b44621","data-source-path":"/src/components/ViewGateOverlay.tsx:4180",size:16})})]},n))})]}),Ut&&dt.includes("backend")&&t.jsxs("div",{"data-vg-id":"2e783452","data-source-path":"/src/components/ViewGateOverlay.tsx:4191",className:"vg-animate-slide",style:{padding:"16px",borderRadius:"16px",background:"#f8fafc",border:"1px solid #e2e8f0"},children:[t.jsxs("div",{"data-vg-id":"2e783453","data-source-path":"/src/components/ViewGateOverlay.tsx:4192",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[t.jsxs("div",{"data-vg-id":"2e783454","data-source-path":"/src/components/ViewGateOverlay.tsx:4193",style:{display:"flex",alignItems:"center",gap:"6px"},children:[t.jsx(Be,{"data-vg-id":"b1e4c711","data-source-path":"/src/components/ViewGateOverlay.tsx:4194",size:14,style:{color:"#6366f1"}}),t.jsx("span",{"data-vg-id":"81620eb","data-source-path":"/src/components/ViewGateOverlay.tsx:4195",style:{fontSize:"11px",fontWeight:800,color:"#64748b",textTransform:"uppercase"},children:r.endpoint})]}),Ye.length>0&&t.jsxs("span",{"data-vg-id":"81620ec","data-source-path":"/src/components/ViewGateOverlay.tsx:4198",style:{fontSize:"10px",background:"#eef2ff",color:"#6366f1",padding:"2px 8px",borderRadius:"12px",fontWeight:700},children:[Ye.length," ",s==="es"?"seleccionados":"selected"]})]}),t.jsxs("button",{"data-vg-id":"5861c155","data-source-path":"/src/components/ViewGateOverlay.tsx:4203",onClick:()=>P(!0),style:{width:"100%",padding:"12px 16px",fontSize:"14px",borderRadius:"12px",background:"white",border:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",textAlign:"left",color:Ye.length>0?"#0f172a":"#94a3b8"},children:[t.jsx("div",{"data-vg-id":"2e783459","data-source-path":"/src/components/ViewGateOverlay.tsx:4207",style:{display:"flex",gap:"4px",overflow:"hidden"},children:Ye.length>0?Ye.slice(0,2).map(a=>t.jsx("span",{"data-vg-id":"81620ef","data-source-path":"/src/components/ViewGateOverlay.tsx:4209",style:{background:"#eef2ff",color:"#6366f1",padding:"1px 6px",borderRadius:"4px",fontSize:"11px",fontWeight:600},children:a.split("|").pop()},a)).concat(Ye.length>2?[t.jsxs("span",{"data-vg-id":"81620f0","data-source-path":"/src/components/ViewGateOverlay.tsx:4209",children:["+",Ye.length-2]},"plus")]:[]):r.selectEndpoint}),t.jsx(is,{"data-vg-id":"1cd393c8","data-source-path":"/src/components/ViewGateOverlay.tsx:4212",size:14,style:{color:"#64748b"}})]})]}),t.jsxs("div",{"data-vg-id":"2e7836fd","data-source-path":"/src/components/ViewGateOverlay.tsx:4217",children:[t.jsx("label",{"data-vg-id":"feec1361","data-source-path":"/src/components/ViewGateOverlay.tsx:4218",style:{display:"block",fontSize:"12px",fontWeight:700,color:"#64748b",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.5px"},children:s==="es"?"Mensaje":"Message"}),t.jsx("textarea",{className:"vg-textarea",value:Ps,onChange:a=>Ms(a.target.value),rows:5,style:{minHeight:"120px",fontSize:"15px"}})]})]}),t.jsxs("div",{"data-vg-id":"2e7836ff","data-source-path":"/src/components/ViewGateOverlay.tsx:4229",style:{display:"flex",justifyContent:"flex-end",gap:"12px",marginTop:"16px",paddingTop:"24px",borderTop:"1px solid #f1f5f9"},children:[t.jsx("button",{"data-vg-id":"5861c3fd","data-source-path":"/src/components/ViewGateOverlay.tsx:4230",className:"vg-button-ghost",style:{padding:"12px 24px",fontSize:"14px",borderRadius:"12px",color:"#64748b",fontWeight:700},onClick:()=>{Qt(null),Se([])},children:r.cancel}),t.jsx("button",{className:"vg-button-primary vg-animate-pop",style:{padding:"12px 32px",fontSize:"15px",borderRadius:"12px",background:"var(--vg-primary-gradient)",fontWeight:800,boxShadow:"0 10px 25px -5px rgba(99, 102, 241, 0.45)",opacity:$t?.7:1,cursor:$t?"not-allowed":"pointer"},disabled:$t,onClick:async()=>{Ls(!0);try{(await fetch(`${d}/api/annotations/${ct}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:q?`Bearer ${q}`:"","x-api-key":c||""},body:JSON.stringify({message:Ps,priority:A,focusAreas:dt,figmaReference:tt,backendEndpoints:Ye})})).ok&&(Qt(null),Jt(),o(r.updateSuccess,"success"))}catch{}finally{Ls(!1)}},children:$t?"...":r.save})]})]})})]})})};function ka(e,o,s){if(!o.endsWith(".tsx")&&!o.endsWith(".jsx")||o.includes("node_modules"))return e;const r=S=>S.replace(/\\/g,"/"),c=r(o).replace(r(s),""),d=S=>{let b=0;for(let m=0;m<S.length;m++)b=Math.imul(31,b)+S.charCodeAt(m)|0;return(b>>>0).toString(16)};let l=0;return e.split(`
|
|
15
|
+
`).map((S,b)=>{const m=b+1;return S.replace(/(^|[^a-zA-Z0-9])<([a-zA-Z][a-zA-Z0-9\.]*)(?=[ \t\n\/\>])/g,(x,j,V)=>{if(x.includes("data-source-path")||x.includes("data-vg-id")||V==="Fragment"||V==="React.Fragment")return x;l++;const C=d(`${c}:${V}:${l}`);return`${j}<${V} data-vg-id="${C}" data-source-path="${c}:${m}"`})}).join(`
|
|
16
|
+
`)}function ar(){return{name:"vite-plugin-viewgate",enforce:"pre",transform(e,o){return{code:ka(e,o,process.cwd()),map:null}}}}function sr(e){const o=this.resourcePath;return o?(this.getOptions&&this.getOptions(),ka(e,o,process.cwd())):e}function or(e){return sr.call(this,e)}ve.ViewGate=Fo,ve.ViewGateOverlay=Ss,ve.transformSourcePaths=ka,ve.useViewGate=ps,ve.viewgateNextLoader=or,ve.viewgatePlugin=ar,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"})}));
|