decocms
Version:
Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools
4 lines • 323 kB
JavaScript
import{fp as i3,c as G,b as x9,r as P,j as s,B as C9,h as oe,bp as r3,bq as Y0,fk as o3,fq as a3,fi as Ot,ff as ae,fr as l3,fs as L3,bB as W9,br as Dt,bD as le,ft as Ue,fu as n0,fv as Pt,fw as c3,fx as Le,fy as d3,m as h9,I as F9,ap as $t,X as ce,av as N0,Y as A9,Z as q9,_ as Y9,bv as u3,bu as r0,au as f3,aw as m3,cd as B0,t as P9,fn as p3,ef as m0,ax as Z0,fz as Bt,aL as h3,aM as g3,aN as x3,aO as y3,bc as v3,aP as b3,aQ as j3,aR as S3,a$ as N3,a_ as de,x as zt,aW as Vt,w as Kt,y as Ut,v as Gt,D as Ht,bE as Wt,i as Ge,K as He,dZ as C3,fj as J0,fl as k3,eP as E3,fh as qt,fo as Yt,fA as T3,aJ as w3,aK as A3,fB as Zt,fC as M3,eS as F0,fD as R3,fE as F3,fF as I3,fG as _3}from"./index-ztdGKvBm.js";import{b as O3,T as D3,c as P3,C as $3,d as B3,r as z3,L as V3,F as K3,a as U3}from"./use-never-published-BJeGnEQC.js";import{b as G3}from"./utils-COdvgYqW.js";import{e as Jt,F as T9,a as w9,M as z0,i as Xt,b as Qt,c as e1,d as t1,R as n1,f as H3,g as W3,h as q3,j as Y3,C as Z3,k as J3,I as X3}from"./save-status-DhQhbNh0.js";import{z as ue,ab as Q3,x as e2,r as t2,A as n2,v as s2,ac as i2,ad as r2}from"./blocks-tab-states-8lUCpJRf.js";import{n as o2,b as a2,k as s1,d as y0,a as l2}from"./UserCheck01-k-4bTA2h.js";import{C as L2}from"./calendar-DNzaYWCQ.js";import{a as fe,b as me,P as pe}from"./popover-C4oz5B-L.js";import{T as c2}from"./textarea-viSdm6BE.js";import{u as d2,a as u2,s as f2,E as m2}from"./usage-stats-B0_Yl-r0.js";import{ae as p2,af as h2,ag as g2,ah as x2,ai as y2,aj as v2,ak as b2,al as j2,am as S2,e as he,an as N2,aa as i1,b as e0,ao as C2,ap as We,aq as k2}from"./agent-icon-BYWtutu9.js";import{d as E2,i as T2,b as w2}from"./Tool01-BCJ5kyrz.js";import{i as r1}from"./SwitchHorizontal01-CMdpIiQk.js";import{i as A2}from"./Minus-hZzPDO0w.js";import{s as l0}from"./Plus-DWySsEmB.js";import{S as C0,b as k0,a as E0,d as T0,c as D9}from"./select-CxXZwsSr.js";import{T as M9,R as M2,E as R2}from"./editor-classes-DYlqLnQ7.js";import{S as o1}from"./switch-B81oLbqr.js";import{C as ge,u as xe,a as o0,n as ye,P as ve,D as be,c as je,o as Se}from"./task-key-Bt60Ndov.js";import{u as Ne,s as Ce,S as ke,v as Ee,a as I0}from"./sortable.esm-CKl9Rez4.js";import{T as F2,a as qe}from"./toggle-group-yQeAFu4u.js";import{Y as L0,Z as a1,_ as I2,$ as _2,a0 as O2,a1 as D2,E as P2}from"./category-tree-DGOo1BAt.js";import{T as $9,a as B9,c as z9}from"./tooltip-Bm0P1gm_.js";import{d as l1,e as $2,l as B2,f as z2,h as L1,r as Te,p as V2,j as K2,k as w0,m as U2,n as G2,o as H2,q as W2,s as q2,t as Y2,u as Ye,v as Z2,w as J2,x as X2}from"./section-array-field-uECXIzc8.js";import{t as c0}from"./ChevronDown-XsLJSrfl.js";import{b as c1}from"./MessageCircle01-BG1RhOiZ.js";import{s as Q2}from"./Eye-kjjhS0vP.js";import{s as X9}from"./Trash01-BxBhF2b8.js";import{ag as e4,u as V0,ah as t4}from"./site-editor-toast-Dq7SmLyr.js";import{f as h0,b as d1}from"./UserSquare-CafFh5_d.js";import{d as n4,a as we,c as Ae,C as Me,e as v0,b as s0,f as u1}from"./command-C3tlrKUq.js";import{r as K0,n as s4,a as i4,b as f1,M as H0,c as r4,u as m1,d as o4,e as a4,f as l4,m as L4,g as c4,h as d4,j as u4,k as f4}from"./named-rule-step-BUKBZ8bi.js";import{C as m4}from"./combobox-2rKAfmHD.js";import{L as H9}from"./label-8UxgpYiA.js";import{S as p4}from"./scroll-area-Dm3EbBj1.js";import{i as p1}from"./ChevronSelectorVertical-CB0fn1Nq.js";import{b as h1}from"./repository-binding-D_Xc1yRH.js";import{i as Ze}from"./File02-DaYek2y9.js";import{i as h4}from"./Upload01-q-rKSvZf.js";import{m as g4}from"./match-site-slug-config-B47_xZCi.js";import{u as x4}from"./use-file-configs-3gwPBXwK.js";import{u as y4}from"./asset-utils-DP9aQr9Q.js";import{c as v4,r as b4}from"./session-runtime-DBl1Hlcw.js";import{c as j4,u as S4}from"./hosted-reconcile-rjhKNGnc.js";const Re=i3("GripVertical",[["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"}]]);function N4(t,e,n){return t.key!==e||!t.opened&&n?{key:e,opened:n}:t}function Fe(t){const e=G.c(23),{scope:n,names:i,listing:o,children:r}=t,a=x9();let c;e[0]!==o?(c={listing:o},e[0]=o,e[1]=c):c=e[1];const l=e4(n,i,c),L=JSON.stringify([l.scopeKey,[...new Set(i)].sort()]),[d,u]=P.useState({key:L,opened:l.ready}),p=d.key===L&&d.opened,S=N4(d,L,l.ready);if(S!==d&&u(S),!l.v8)return r;if(!p&&l.failed){let h;e[2]!==a?(h=a("sectionsEditor.hosted.blockLoadFailed"),e[2]=a,e[3]=h):h=e[3];let m;e[4]!==h?(m=s.jsx("p",{children:h}),e[4]=h,e[5]=m):m=e[5];let f;e[6]!==a?(f=a("sectionsEditor.hosted.blockLoadFailedHint"),e[6]=a,e[7]=f):f=e[7];let y;e[8]!==f?(y=s.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[8]=f,e[9]=y):y=e[9];const v=l.retry;let N;e[10]!==a?(N=a("sectionsEditor.namedRules.tryAgain"),e[10]=a,e[11]=N):N=e[11];let b;e[12]!==l.retry||e[13]!==N?(b=s.jsx(C9,{variant:"outline",size:"sm",onClick:v,children:N}),e[12]=l.retry,e[13]=N,e[14]=b):b=e[14];let g;return e[15]!==m||e[16]!==y||e[17]!==b?(g=s.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-3 p-6 text-center",children:[m,y,b]}),e[15]=m,e[16]=y,e[17]=b,e[18]=g):g=e[18],g}if(!p&&!l.ready){let h;return e[19]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(oe,{className:"size-5 text-muted-foreground"})}),e[19]=h):h=e[19],h}let x;return e[20]!==r||e[21]!==l.scopeKey?(x=s.jsx(P.Fragment,{children:r},l.scopeKey),e[20]=r,e[21]=l.scopeKey,e[22]=x):x=e[22],x}function C4(t,e,n){return{base:{value:t[e],fromCache:!0},...n?{create:!Object.hasOwn(t,e)}:{}}}function Xi(t,e,n){const i=G.c(9),o=n?.onSaved;let r;i[0]!==o?(r={onSaved:o,showEdits:!0},i[0]=o,i[1]=r):r=i[1];const a=O3(t,r);let c;i[2]!==e||i[3]!==a?(c=(d,u)=>{G3(d),a.save(d,u,C4(e,d,a.v8))},i[2]=e,i[3]=a,i[4]=c):c=i[4];const l=c;let L;return i[5]!==a.isError||i[6]!==a.isPending||i[7]!==l?(L={save:l,isPending:a.isPending,isError:a.isError},i[5]=a.isError,i[6]=a.isPending,i[7]=l,i[8]=L):L=i[8],L}function g1(t){if(!t||typeof t!="object"||Array.isArray(t))return null;const e=t;return Array.isArray(e.variants)?e:null}function x1(t,e){return e??t?.__resolveType===ae}function g0(t,e){const n=g1(t),i=n?.variants?.[0];return r3(i?.rule?.__resolveType,x1(n,e))}function Je(t,e){const n=o3(e);return{__resolveType:n,variants:[{value:Ot(n,t),rule:{__resolveType:a3(e)}}]}}function y1(t,e){if(!g0(t,e))return t;const n=g1(t);return Y0(n?.variants?.[0],x1(n,e))}function O9(t,e){return g0(t,e)?y1(t,e):t}function Ie(t){const e=t.__resolveType;if(typeof e!="string")return null;if(Dt(e)){const i=t.section?.__resolveType;return typeof i=="string"?i:e}return e}function k4(t,e){return t.includes("flags/multivariate")||e&&t===ae}function E4(t){return W9(t)}function b0(t){const e=t.title?l3(t.title)?.blockId:void 0;return e||(t.title&&!t.title.includes("/")?t.title:L3(t.resolveType)??W9(t.resolveType))}function T4(t,e){const n=[...t],i=new Set(n.map(r=>r.resolveType)),o=(r,a)=>{!r||i.has(r)||(i.add(r),n.push({resolveType:r,title:a??E4(r)}))};if(e.savedBlockKey&&o(e.savedBlockKey,e.savedBlockKey),e.editorValue&&typeof e.editorValue=="object"&&!Array.isArray(e.editorValue)){const r=Ie(e.editorValue);r?.includes("/")&&o(r)}return n}function v1(t,e,n){const i=e[0]?.resolveType??"";if(n)return n;if(!t||typeof t!="object"||Array.isArray(t))return i;const o=t,r=o.__resolveType;if(typeof r=="string"){if(le(r)){const u=e.find(p=>p.resolveType===r);return u?u.resolveType:r}const L=e.find(u=>Ue(u.resolveType,r));if(L)return L.resolveType;const d=e.find(u=>u.resolveType===r);if(d)return d.resolveType;if(r.includes("/"))return r}const a=typeof o.type=="string"?o.type:void 0;if(a){const L=e.find(d=>d.discriminatorValue===a||d.resolveType===a||Ue(d.resolveType,a));if(L)return L.resolveType}let c=i,l=-1;for(const L of e){if(!L.schema?.properties)continue;const u=Object.keys(L.schema.properties).filter(p=>!p.startsWith("__")&&p!=="@type"&&p!=="action"&&p!=="alt").filter(p=>o[p]!==void 0).length;u>0&&u>l&&(l=u,c=L.resolveType)}return l>0,c}function w4(t,e){if(!t||typeof t!="object"||Array.isArray(t))return t;const{__resolveType:n,...i}=t;return n0(e)?i:typeof n=="string"||!e||le(e)?t:{...t,__resolveType:e}}function _e(t,e,n){if(!t||typeof t!="object"||Array.isArray(t))return t;const i=n?.discriminatorValue;if(i===void 0||!n?.discriminatorRequired)return t;const o=t;return o[e]!==void 0?t:{...o,[e]:i}}function Xe(t,e,n){if(!t||typeof t!="object"||Array.isArray(t))return n??null;const i=Ie(t);if(!i)return n??null;if(!e)return i.includes("/")?null:n??null;const o=ue(i,e);return o||(i.includes("/")?null:n??null)}function A4(t,e){if(!t?.properties||!e)return t??null;if(!(e in t.properties))return t;const n={...t.properties};return delete n[e],{...t,properties:n}}function b1(t){if(!t||typeof t!="object"||Array.isArray(t))return null;const e=t;if(typeof e.__resolveType!="string"||!Dt(e.__resolveType))return null;const n=e.section;return!n||typeof n!="object"||Array.isArray(n)?null:n}function M4(t,e,n=!1){if(e)return!0;if(!t||typeof t!="object"||Array.isArray(t))return!1;const i=t,o=Ie(i);return o&&k4(o,n)?Array.isArray(i.variants)&&i.variants.length>0:Object.keys(i).some(r=>!r.startsWith("__")&&r!=="@type")}function j1(t){const e=t.plainSchema;return t.type!=="block-ref"||t.discriminatorKey||e?.type!=="object"||!e.properties?null:{title:e.title?.includes("://")?e.title.match(/@([A-Za-z_$][\w$]*)$/)?.[1]??"":e.title??"",schema:e}}function R4(t,e){const n=j1(t);if(!n||!e||typeof e!="object"||Array.isArray(e))return null;const i=e;if(typeof i.__resolveType=="string")return null;const o=Object.keys(i),r=n.schema.properties??{};if(o.length>0&&!o.some(l=>l in r))return null;const{plainSchema:a,...c}=t;return{type:"inline-union",title:t.title,description:t.description,inlineUnionBranches:[n],loaderRef:c}}function F4(t){const e=j1(t);return e?{...t,anyOfRefs:[...t.anyOfRefs??[],{resolveType:`inline@${e.title||"value"}`,title:e.title,schema:e.schema}]}:t}function S1(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}function N1(t,e){if(e.length===0)return 0;if(Array.isArray(t)){const r=e.findIndex(a=>a.isArray);if(r>=0)return r}const n=S1(t);for(let r=0;r<e.length;r++){const a=e[r].discriminators;if(a&&Object.keys(a).length>0&&Object.entries(a).every(([l,L])=>n[l]===L))return r}let i=0,o=-1;for(let r=0;r<e.length;r++){const a=e[r],c=new Set(Object.keys(a.discriminators??{})),L=a.propertyKeys.filter(d=>!c.has(d)).filter(d=>n[d]!==void 0&&n[d]!==null&&n[d]!=="").length;L>o&&(o=L,i=r)}return i}function I4(t,e){const n=S1(t),i=new Set(e);return Object.fromEntries(Object.entries(n).filter(([o])=>!i.has(o)))}function Qe(t,e,n){return{...t,...e,...n??{}}}function _4(t){if(t?.trim())try{const e=new URL(t);return e.protocol!=="https:"?void 0:e.href}catch{return}}function O4(t){if(Array.isArray(t.variants)){const e=t.variants,n=t.__resolveType===ae,o=e.find(a=>c3(a.rule?.__resolveType,n))??e.find(a=>Y0(a,n)!=null),r=Y0(o,n);if(r!=null)return r}if(typeof t.src=="string")return t.src;if(typeof t.url=="string")return t.url;if(typeof t.value=="string")return t.value}function X0(t){if(typeof t=="string"||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(X0);const e=t;if(e.__resolveType){const n=O4(e);return n===void 0?t:X0(n)}return C1(e)}function C1(t){const e={};for(const[n,i]of Object.entries(t))e[n]=X0(i);return e}function D4(t,e){return e.split(".").reduce((n,i)=>{if(!(n==null||typeof n!="object"))return n[i]},t)}function k1(t){return t==null?"":Array.isArray(t)?t.map(k1).filter(Boolean).join(","):typeof t=="object"?"":String(t)}function _0(t,e){if(!t.includes("{"))return;const n=C1(e);return t.replace(/\{\{\{(.+?)\}\}\}|\{\{(.+?)\}\}/g,(o,r,a)=>{const c=(r??a??"").trim();return k1(D4(n,c))}).trim()||void 0}function P4(t){return t.replace(/<[^>]*>/g,"").trim()}function $4(t){return t.replace(/\{\{\{?[^{}]*\}?\}\}/g,"").replace(/\s+/g," ").trim()}function B4(t){return/^Option \d+$/.test(t)}function z4(t,e){if(e.includes("{"))return _0(e,t);const n=t[e];if(typeof n=="string"&&n)return n;if(Array.isArray(n)){const i=n.map(o=>o==null?"":String(o)).filter(Boolean).join(",");if(i)return i}}function E1(t,e,n){if(typeof t=="string")return t.trim()?t:`Item ${e+1}`;if(typeof t=="number"||typeof t=="boolean")return String(t);if(t&&typeof t=="object"&&!Array.isArray(t)){let i=O9(t);const o=b1(i);if(o&&(i=o,i=O9(i)),n?.titleBy){const a=z4(i,n.titleBy);if(a)return a}if(n?.inlineUnionBranches?.length){const a=N1(i,n.inlineUnionBranches.map(l=>({discriminators:l.discriminators,propertyKeys:Object.keys(l.schema?.properties??{})}))),c=n.inlineUnionBranches[a]?.title;if(c&&!B4(c)){const l=_0(c,i);if(l)return l;if(!c.includes("{"))return c}}for(const a of["name","label","title","alt","text","href","id","key"]){const c=i[a];if(typeof c=="string"&&c.trim()){const l=n?.properties?.[a]?.format;if(l==="rich-text"||l==="html"){const L=P4(c);if(L)return L;continue}return c}if(Array.isArray(c)){const l=c.map(L=>L==null?"":String(L)).filter(Boolean).join(",");if(l)return l}}const r=i.__resolveType;if(typeof r=="string"&&r)return r.includes("/matchers/")?Pt(i):W9(r);if(n?.title){const a=_0(n.title,i);if(a)return a;if(!n.title.includes("{"))return n.title}}return`Item ${e+1}`}function O0(t,e){return t.map((n,i)=>E1(n,i,e))}function T1(t,e,n){return E1(t,e,n)}function V4(t){if(!t)return;if(typeof t.image=="string"&&t.image.includes("{"))return t.image;const e=t.properties?.image;if(!e)return;if(e.format==="image-uri")return"{{{image}}}";const n=e.properties;return n?.mobile?"{{{image.mobile}}}":n?.desktop?"{{{image.desktop}}}":"{{{image}}}"}function W0(t,e){if(!t||typeof t!="object"||Array.isArray(t))return;const n=V4(e);if(!n)return;const i=_0(n,t);if(!i)return;const o=Jt(i)||i;return _4(o)}function R9(t){return typeof t=="string"?t:t.label}function d0(t){return typeof t=="object"}function et(t){return d0(t)?t.arrayLabel:void 0}function tt(t){return d0(t)?t.fieldKey:void 0}function K4(t){return d0(t)?t.ownerPath:void 0}function nt(t,e,n){return t!=null&&typeof t=="object"?{...t,label:e,itemIndex:n}:{label:e,itemIndex:n}}function j0(t){return t.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]/g," ").replace(/^\w/,e=>e.toUpperCase())}function Z9(t){return t.normalize("NFC").trim()}function U4(t,e){return e.length>0&&Z9(R9(e[0]))===Z9(t)?e:[t,...e]}function G4(t,e){return e.map(n=>{if(!d0(n))return n;const i=n.ownerPath??[];return i[0]===t?n:{...n,ownerPath:[t,...i]}})}function N9(t,e){return Z9(t)===Z9(e)}function D0(t,e){return Z9(t).replace(/\s+/g,"").toLowerCase()===Z9(e).replace(/\s+/g,"").toLowerCase()}function H4(t,e,n){return(n?.hasSiblingDrillDownFields??!1)||(n?.itemLabelFromSchema??!1)||N9(e,t)||n?.arrayKey!=null&&N9(e,n.arrayKey)}function p0(t,e,n,i,o){const r=Z9(n);if(t.some(c=>N9(R9(c),r)||N9(R9(c),n)))return t;const a={label:n,itemIndex:i};return H4(e,n,o)&&(a.arrayLabel=e),o?.arrayKey&&(a.fieldKey=o.arrayKey),[...t,a]}function W4(t,e){return t.slice(0,t.length-e.length)}function q4(t,e,n,i){if(n.length===0)return n;const o=n[0];if(d0(o))return n;const r=i??J9(t,e),a=R9(o);return N9(a,r)||N9(a,t)?n.slice(1):n}function J9(t,e){return e.title??j0(t)}function S0(t,e,n){const i=n[t];if(!i)return j0(t);const o=J9(t,i);return e.some(a=>{if(a===t)return!1;const c=n[a];return c!=null&&J9(a,c)===o})?j0(t):o}function Qi(t,e){return e.isMultivariateSectionTop?0:t-2}function er(t,e){return e<=0?[]:t.slice(0,e)}function i0(t,e){return t.type==="array"&&t.items||l1(t)?!0:Array.isArray(e)}function w1(t,e=0){if(e>6||!t.properties)return!1;for(const n of Object.keys(t.properties)){const i=t.properties[n];if(i&&(i0(i)||i.type==="object"&&w1(i,e+1)))return!0}return!1}function A1(t,e=0){if(e>6||t==null||typeof t!="object")return!1;if(Array.isArray(t))return t.some(n=>n!=null&&typeof n=="object"&&!Array.isArray(n));for(const[n,i]of Object.entries(t))if(!n.startsWith("__")&&A1(i,e+1))return!0;return!1}function Y4(t,e,n={}){const i=t.filter(o=>{const r=e[o];if(!r)return!1;if(r.type==="object"&&w1(r))return!0;const a=n[o];return a!=null&&typeof a=="object"&&!Array.isArray(a)?A1(a):!1});return i.length>1?new Set(i):new Set}function st(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)?t:{}}function Z4(t,e){if(t==null||typeof t!="object"||Array.isArray(t))return;const n=T1(t,e);return n===`Item ${e+1}`?void 0:n}function x0(t,e,n={n:4e3},i=0){if(i>4||n.n<=0||t==null||typeof t!="object")return!1;if(Array.isArray(t)){for(let o=0;o<t.length;o++){const r=t[o];if(--n.n<=0)return!1;const a=Z4(r,o);if(a&&N9(a,e)||x0(r,e,n,i+1))return!0}return!1}for(const[o,r]of Object.entries(t))if(!o.startsWith("__")){if(--n.n<=0)return!1;if((Array.isArray(r)||r!=null&&typeof r=="object")&&(D0(j0(o),e)||D0(o,e))||x0(r,e,n,i+1))return!0}return!1}function Q0(t,e,n,i=0){if(!n||i>4||t==null||typeof t!="object")return!1;const o=t.__resolveType;if(typeof o!="string"||!o)return!1;const r=ue(o,n)?.properties;if(!r)return!1;const a=Object.keys(r);for(const c of a){const l=r[c];if(!l)continue;if(i0(l)){const d=S0(c,a,r);if(N9(d,e)||N9(c,e))return!0}const L=t[c];if(L!=null&&typeof L=="object"&&!Array.isArray(L)&&Q0(L,e,n,i+1))return!0}return!1}function G9(t,e,n,i,o,r){if(i.length===0)return null;const a=R9(i[0]),c=tt(i[0]);if(c!=null)for(const f of t){const y=e[f];if(!(!y||!i0(y,n[f]))&&f===c)return f}const l=i.flatMap(f=>K4(f)??[]);if(l.length>0){const f=t.filter(y=>e[y]?.type==="block-ref"&&l.includes(y));if(f.length===1)return f[0]}for(const f of t){const y=e[f];if(!y||!i0(y,n[f]))continue;const v=S0(f,t,e);if(N9(a,v)||N9(a,f)||i.some(N=>{if(N9(R9(N),v)||N9(R9(N),f))return!0;const b=et(N);return b!=null&&(N9(b,v)||N9(b,f))}))return f}for(const f of t){const y=e[f];if(!y||!i0(y,n[f]))continue;const v=n[f];if(!Array.isArray(v))continue;if(O0(v,y.items).some(b=>N9(b,a)))return f}let L=null,d=!1,u=null,p=!1;for(const f of t){const y=e[f];if(y?.type!=="object"||!y.properties)continue;const v=Object.keys(y.properties),N=st(n[f]),b=S0(f,t,e);if((N9(a,b)||N9(a,f))&&G9(v,y.properties,N,i.slice(1),o,r)!=null){L===null?L=f:d=!0;continue}G9(v,y.properties,N,i,o,r)!=null&&(u===null?u=f:p=!0)}if(L!==null)return d?null:L;if(u!==null)return p?null:u;for(const f of t){const y=e[f];if(y?.type!=="inline-union"||!y.inlineUnionBranches?.length)continue;const v=st(n[f]),N=J9(f,y);for(const b of y.inlineUnionBranches){const g=b.schema?.properties;if(!g)continue;const j=Object.keys(g);if(G9(j,g,v,i,o,r)||(N9(a,N)||N9(a,f))&&G9(j,g,v,i.slice(1),o,r))return f}}let S=null;const x=[],h=i.map(et).filter(f=>f!=null),m=i.map(tt).filter(f=>f!=null);for(const f of t){const y=e[f];if(y?.type!=="block-ref")continue;const v=J9(f,y);if(a!==v&&a!==f){const N=n[f],g=(o?Le(N,o):null)?.data??N;(x0(g,a)||m.some(j=>x0(g,j)||Q0(g,j,r))||h.some(j=>x0(g,j)||Q0(g,j,r)))&&x.push(f);continue}if(i.length>1){const N=n[f];if(N&&typeof N=="object"&&!Array.isArray(N)){const b=R9(i[1]);if(Object.keys(N).some(j=>!j.startsWith("__")&&(D0(j0(j),b)||D0(j,b))))return f}}S||(S=f)}return S||(x.length===1?x[0]:(x.length>1,null))}function J4(t,e,n,i,o,r){return G9(t,e,n,i,o,r)}function X4(t,e,n,i,o,r,a){if(o.length===0||!n.properties)return!1;const c=Object.keys(n.properties);if(G9(c,n.properties,i,o,r,a))return!0;const l=R9(o[0]);return!N9(l,e)&&!N9(l,t)?!1:o.length>1||G9(c,n.properties,i,o.slice(1),r,a)!==null}function it(t,e,n,i,o){if(!d0(n))return-1;if(n.fieldKey!=null&&o!=null)return n.fieldKey!==o?-1:n.itemIndex>=0&&n.itemIndex<t.length?n.itemIndex:-1;const r=O0(t,e);if(n.itemIndex>=0&&n.itemIndex<t.length&&N9(r[n.itemIndex],n.label))return n.itemIndex;if(i!=null&&i===n.itemIndex&&i>=0&&i<t.length)return i;const a=i!=null?r[i]:void 0;return a!==void 0&&N9(a,n.label)?i:r.findIndex(c=>N9(c,n.label))}function Q4(t,e,n,i,o,r){if(e.length===0)return null;for(let c=0;c<e.length;c++){const l=e[c],L=it(n,i,l,o,r);if(L>=0)return{index:L,innerPath:e.slice(c+1),crumbIndex:c}}const a=e.findIndex(c=>N9(R9(c),t));if(a>=0&&e.length>a+1){const c=e[a+1],l=it(n,i,c,o,r);if(l>=0)return{index:l,innerPath:e.slice(a+2),crumbIndex:a+1}}return null}function en(t){const e=new WeakMap;return(n,i)=>{let o=e.get(i);o||(o={entries:new Map,buildMs:0},e.set(i,o));const{entries:r}=o,a=r.get(n);if(a)return a.usedAt=t.now(),r.delete(n),r.set(n,a),a.schema;const c=t.now(),l=t.resolve(n,i),L=t.now(),d=L-c;r.set(n,{schema:l,buildMs:d,usedAt:L}),o.buildMs+=d;for(const[u,p]of r){if(r.size<=t.maxEntries&&o.buildMs<=t.maxBuildMs||L-p.usedAt<t.idleMs)break;r.delete(u),o.buildMs-=p.buildMs}return l}}const a0=en({maxEntries:64,maxBuildMs:1e3,idleMs:3e4,now:()=>performance.now(),resolve:ue}),rt=new WeakMap;function M1(t,e){if(!t?.recursiveRef||!e)return t;let n=rt.get(t);if(!n){const{properties:i,required:o,items:r}=Q3(t.recursiveRef,e);n={...t,properties:i,required:o,items:r,recursiveRef:void 0},rt.set(t,n)}return n}const ot=new WeakMap;function tn(t,e){if(!e||t===e)return t;let n=ot.get(t),i=n?.get(e);return i||(i=R1(t,e,0),n||(n=new WeakMap,ot.set(t,n)),n.set(e,i)),i}const nn=64;function R1(t,e,n){if(n>nn)return t;let i=!1;const o=(L,d)=>{if(!L||!d||L===d)return L;const u=R1(L,d,n+1);return u!==L&&(i=!0),u},r=t.anyOfRefs?.map(L=>{const d=e.anyOfRefs?.find(p=>p.resolveType===L.resolveType);if(!d?.schema)return L;if(!L.schema)return t.discriminatorKey?(i=!0,{...L,schema:d.schema}):L;const u=o(L.schema,d.schema);return u===L.schema?L:{...L,schema:u}}),a=t.properties?Object.fromEntries(Object.entries(t.properties).map(([L,d])=>[L,o(d,e.properties?.[L])??d])):void 0,c=o(t.items,e.items),l=t.inlineUnionBranches?.map((L,d)=>{const u=e.inlineUnionBranches?.[d];if(u?.title!==L.title)return L;const p=o(L.schema,u.schema);return p===L.schema?L:{...L,schema:p}});return i?{...t,...r&&{anyOfRefs:r},...a&&{properties:a},...c&&{items:c},...l&&{inlineUnionBranches:l}}:t}function sn(t,e,n){return F1(e)?ee(t,e,n):e}function ee(t,e,n){if(t?.type!=="inline-union")return te(t,e,n);const i=t.inlineUnionBranches?.find(o=>o.discriminators&&Object.entries(o.discriminators).every(([r,a])=>e[r]===a));return te(i?.schema,e,n)}function te(t,e,n){let i=null;for(const[o,r]of Object.entries(t?.properties??{})){if(!r||o.startsWith("__")||o==="@type")continue;const a=e[o],c=a===void 0?rn(r,n):Oe(r,a,n);c!==a&&((i??={...e})[o]=c)}return i??e}function rn(t,e){if(t.default!==void 0&&t.default!==null)return Oe(t,structuredClone(t.default),e);if(t.type==="object"&&t.properties){const n=te(t,{},e);return Object.keys(n).length>0?n:void 0}}function Oe(t,e,n){if(Array.isArray(e)){const o=e.map(r=>Oe(t?.items,r,n));return o.some((r,a)=>r!==e[a])?o:e}if(!F1(e))return e;const i=e.__resolveType;return typeof i=="string"?n&&d3(n,i)?ee(a0(i,n),e,n):e:t?.type==="block-ref"&&t.discriminatorKey?on(t,t.discriminatorKey,e):t?.type==="object"||t?.type==="inline-union"?ee(t,e,n):e}function on(t,e,n){if(n[e]!==void 0)return n;const i=t.anyOfRefs??[],o=v1(n,i);return _e(n,e,i.find(r=>r.resolveType===o))}function F1(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}const an=["#000000","#525252","#a3a3a3","#ffffff","#e11d48","#ea580c","#ca8a04","#16a34a","#0891b2","#2563eb","#7c3aed","#db2777"];function ln(t){const e=G.c(37),{editor:n,currentColor:i,open:o,onOpenChange:r,mark:a}=t,c=a===void 0?"color":a,l=x9(),[L,d]=P.useState(null),u=c==="highlight";let p;e[0]!==n||e[1]!==u||e[2]!==r?(p=T=>{const w=n.chain().focus();(u?w.setHighlight({color:T}):w.setColor(T)).run(),r(!1)},e[0]=n,e[1]=u,e[2]=r,e[3]=p):p=e[3];const S=p;let x;e[4]!==n||e[5]!==u||e[6]!==r?(x=()=>{const T=n.chain().focus();(u?T.unsetHighlight():T.unsetColor()).run(),r(!1)},e[4]=n,e[5]=u,e[6]=r,e[7]=x):x=e[7];const h=x,m=o||i!==null;let f;e[8]!==u||e[9]!==l?(f=l(u?"sectionsEditor.richTextColorControl.highlightButtonLabel":"sectionsEditor.richTextColorControl.colorButtonLabel"),e[8]=u,e[9]=l,e[10]=f):f=e[10];let y;e[11]!==r||e[12]!==o?(y=()=>r(!o),e[11]=r,e[12]=o,e[13]=y):y=e[13];let v;e[14]!==u?(v=u?s.jsx(p2,{size:14}):s.jsx(h2,{size:14}),e[14]=u,e[15]=v):v=e[15];const N=i??"currentColor";let b;e[16]!==N?(b=s.jsx("span",{className:"mt-0.5 h-0.5 w-3.5 rounded-full",style:{backgroundColor:N}}),e[16]=N,e[17]=b):b=e[17];let g;e[18]!==v||e[19]!==b?(g=s.jsxs("span",{className:"relative flex flex-col items-center",children:[v,b]}),e[18]=v,e[19]=b,e[20]=g):g=e[20];let j;e[21]!==g||e[22]!==m||e[23]!==f||e[24]!==y?(j=s.jsx(M9,{active:m,label:f,onClick:y,children:g}),e[21]=g,e[22]=m,e[23]=f,e[24]=y,e[25]=j):j=e[25];let C;e[26]!==S||e[27]!==h||e[28]!==i||e[29]!==L||e[30]!==r||e[31]!==o||e[32]!==l?(C=o&&s.jsxs("div",{tabIndex:-1,className:"absolute left-0 top-full z-20 mt-1.5 flex w-56 flex-col gap-2 rounded-[var(--studio-surface-radius,var(--radius-md))] bg-popover p-2 shadow-soft",onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||r(!1)},children:[s.jsx("div",{className:"grid grid-cols-6 gap-1",children:an.map(T=>s.jsx("button",{type:"button","aria-label":T,"aria-pressed":i===T,onMouseDown:dn,onClick:()=>S(T),className:h9("h-6 w-6 rounded-[var(--studio-control-radius,var(--radius))] border border-border/60 transition-transform cursor-pointer hover:scale-110",i===T&&"ring-2 ring-ring ring-offset-1"),style:{backgroundColor:T}},T))}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsxs("label",{className:"flex flex-1 items-center gap-1.5 rounded-[var(--studio-control-radius,var(--radius))] bg-muted/40 px-2 py-1 text-xs text-muted-foreground cursor-pointer",children:[s.jsx("input",{type:"color",value:L??"#000000",onMouseDown:cn,onChange:T=>d(T.target.value),onBlur:()=>{L&&S(L),d(null)},className:"h-5 w-5 cursor-pointer rounded-[var(--studio-control-radius,var(--radius))] border-0 bg-transparent p-0"}),l("sectionsEditor.richTextColorControl.customLabel")]}),s.jsx("button",{type:"button",onMouseDown:Ln,onClick:h,className:"rounded-[var(--studio-control-radius,var(--radius))] px-2 py-1 text-xs text-muted-foreground transition-colors cursor-pointer hover:bg-accent hover:text-foreground",children:l("sectionsEditor.richTextColorControl.defaultLabel")})]})]}),e[26]=S,e[27]=h,e[28]=i,e[29]=L,e[30]=r,e[31]=o,e[32]=l,e[33]=C):C=e[33];let M;return e[34]!==j||e[35]!==C?(M=s.jsxs("div",{className:"relative",children:[j,C]}),e[34]=j,e[35]=C,e[36]=M):M=e[36],M}function Ln(t){return t.preventDefault()}function cn(t){return t.stopPropagation()}function dn(t){return t.preventDefault()}const ne=[1,2,3,4,5,6],un={unit:"px",initial:16,min:8,max:128};function U9(){const t=G.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e}function fn(t){const e=G.c(120),{editor:n,inline:i,fontSize:o,linkSources:r,extras:a}=t,c=i===void 0?!1:i,l=o===void 0?un:o,L=x9(),[d,u]=P.useState(!1),[p,S]=P.useState(!1);let x;e[0]!==n?(x={editor:n,selector:pn},e[0]=n,e[1]=x):x=e[1];const h=d2(x),m=h.headingLevel>0?`h${h.headingLevel}`:"paragraph";let f;e[2]!==n?(f=j9=>{const E9=n.chain().focus();if(j9==="paragraph"){E9.setParagraph().run();return}const I9=ne.find(K9=>`h${K9}`===j9);I9&&E9.setHeading({level:I9}).run()},e[2]=n,e[3]=f):f=e[3];const y=f;let v;e[4]!==l.unit||e[5]!==h.fontSize?(v=h.fontSize?.endsWith(l.unit)?parseFloat(h.fontSize):NaN,e[4]=l.unit,e[5]=h.fontSize,e[6]=v):v=e[6];const N=v;let b;e[7]!==l.initial||e[8]!==N?(b=Number.isFinite(N)?N:l.initial,e[7]=l.initial,e[8]=N,e[9]=b):b=e[9];const g=b;let j;e[10]!==n||e[11]!==l.max||e[12]!==l.min||e[13]!==l.unit?(j=j9=>{const E9=Math.min(l.max,Math.max(l.min,j9));n.chain().focus().setFontSize(`${E9}${l.unit}`).run()},e[10]=n,e[11]=l.max,e[12]=l.min,e[13]=l.unit,e[14]=j):j=e[14];const C=j,M=h.bold;let T;e[15]!==L?(T=L("sectionsEditor.richTextField.bold"),e[15]=L,e[16]=T):T=e[16];let w;e[17]!==n?(w=()=>n.chain().focus().toggleBold().run(),e[17]=n,e[18]=w):w=e[18];let k;e[19]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(v2,{size:14}),e[19]=k):k=e[19];let A;e[20]!==h.bold||e[21]!==w||e[22]!==T?(A=s.jsx(M9,{active:M,label:T,onClick:w,children:k}),e[20]=h.bold,e[21]=w,e[22]=T,e[23]=A):A=e[23];const E=h.italic;let F;e[24]!==L?(F=L("sectionsEditor.richTextField.italic"),e[24]=L,e[25]=F):F=e[25];let R;e[26]!==n?(R=()=>n.chain().focus().toggleItalic().run(),e[26]=n,e[27]=R):R=e[27];let O;e[28]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(b2,{size:14}),e[28]=O):O=e[28];let I;e[29]!==h.italic||e[30]!==F||e[31]!==R?(I=s.jsx(M9,{active:E,label:F,onClick:R,children:O}),e[29]=h.italic,e[30]=F,e[31]=R,e[32]=I):I=e[32];const D=h.underline;let _;e[33]!==L?(_=L("sectionsEditor.richTextField.underline"),e[33]=L,e[34]=_):_=e[34];let H;e[35]!==n?(H=()=>n.chain().focus().toggleUnderline().run(),e[35]=n,e[36]=H):H=e[36];let K;e[37]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(j2,{size:14}),e[37]=K):K=e[37];let t9;e[38]!==h.underline||e[39]!==_||e[40]!==H?(t9=s.jsx(M9,{active:D,label:_,onClick:H,children:K}),e[38]=h.underline,e[39]=_,e[40]=H,e[41]=t9):t9=e[41];const z=h.strike;let s9;e[42]!==L?(s9=L("sectionsEditor.richTextField.strikethrough"),e[42]=L,e[43]=s9):s9=e[43];let Z;e[44]!==n?(Z=()=>n.chain().focus().toggleStrike().run(),e[44]=n,e[45]=Z):Z=e[45];let l9;e[46]===Symbol.for("react.memo_cache_sentinel")?(l9=s.jsx(S2,{size:14}),e[46]=l9):l9=e[46];let i9;e[47]!==h.strike||e[48]!==s9||e[49]!==Z?(i9=s.jsx(M9,{active:z,label:s9,onClick:Z,children:l9}),e[47]=h.strike,e[48]=s9,e[49]=Z,e[50]=i9):i9=e[50];let q;e[51]!==y||e[52]!==c||e[53]!==m||e[54]!==L?(q=!c&&s.jsxs(s.Fragment,{children:[s.jsx(U9,{}),s.jsxs(C0,{value:m,onValueChange:y,children:[s.jsx(k0,{size:"sm","aria-label":L("sectionsEditor.richTextField.styleLabel"),onMouseDown:mn,className:"w-[116px] gap-1 bg-transparent px-2 text-muted-foreground shadow-none! hover:bg-accent hover:text-foreground",children:s.jsx(E0,{})}),s.jsxs(T0,{children:[s.jsx(D9,{value:"paragraph",children:L("sectionsEditor.richTextField.styleParagraph")}),ne.map(j9=>s.jsx(D9,{value:`h${j9}`,children:L("sectionsEditor.richTextField.styleHeading",{level:j9})},j9))]})]})]}),e[51]=y,e[52]=c,e[53]=m,e[54]=L,e[55]=q):q=e[55];let e9;e[56]===Symbol.for("react.memo_cache_sentinel")?(e9=s.jsx(U9,{}),e[56]=e9):e9=e[56];let $;e[57]!==L?($=L("sectionsEditor.richTextField.fontSizeDecrease"),e[57]=L,e[58]=$):$=e[58];let Y;e[59]!==C||e[60]!==g?(Y=()=>C(g-1),e[59]=C,e[60]=g,e[61]=Y):Y=e[61];let W;e[62]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(A2,{size:14}),e[62]=W):W=e[62];let J;e[63]!==$||e[64]!==Y?(J=s.jsx(M9,{active:!1,label:$,onClick:Y,children:W}),e[63]=$,e[64]=Y,e[65]=J):J=e[65];let r9;e[66]!==g?(r9=s.jsx("span",{className:"min-w-[2ch] text-center text-xs tabular-nums text-muted-foreground",children:g}),e[66]=g,e[67]=r9):r9=e[67];let n9;e[68]!==L?(n9=L("sectionsEditor.richTextField.fontSizeIncrease"),e[68]=L,e[69]=n9):n9=e[69];let p9;e[70]!==C||e[71]!==g?(p9=()=>C(g+1),e[70]=C,e[71]=g,e[72]=p9):p9=e[72];let X;e[73]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(l0,{size:14}),e[73]=X):X=e[73];let d9;e[74]!==n9||e[75]!==p9?(d9=s.jsx(M9,{active:!1,label:n9,onClick:p9,children:X}),e[74]=n9,e[75]=p9,e[76]=d9):d9=e[76];let m9;e[77]!==J||e[78]!==r9||e[79]!==d9?(m9=s.jsxs("div",{className:"flex items-center gap-0.5",children:[J,r9,d9]}),e[77]=J,e[78]=r9,e[79]=d9,e[80]=m9):m9=e[80];let a9;e[81]===Symbol.for("react.memo_cache_sentinel")?(a9=s.jsx(U9,{}),e[81]=a9):a9=e[81];let f9;e[82]!==p||e[83]!==n||e[84]!==h.color?(f9=s.jsx(ln,{editor:n,currentColor:h.color,open:p,onOpenChange:S}),e[82]=p,e[83]=n,e[84]=h.color,e[85]=f9):f9=e[85];let U;e[86]!==n||e[87]!==c||e[88]!==h.bulletList||e[89]!==h.orderedList||e[90]!==L?(U=!c&&s.jsxs(s.Fragment,{children:[s.jsx(U9,{}),s.jsx(M9,{active:h.bulletList,label:L("sectionsEditor.richTextField.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:s.jsx(r1,{size:14})}),s.jsx(M9,{active:h.orderedList,label:L("sectionsEditor.richTextField.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:s.jsx("span",{className:"text-2xs font-semibold leading-none",children:"1."})})]}),e[86]=n,e[87]=c,e[88]=h.bulletList,e[89]=h.orderedList,e[90]=L,e[91]=U):U=e[91];let B;e[92]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(U9,{}),e[92]=B):B=e[92];let Q;e[93]!==n||e[94]!==d||e[95]!==r||e[96]!==h.link?(Q=s.jsx(M2,{editor:n,active:h.link,open:d,onOpenChange:u,sources:r}),e[93]=n,e[94]=d,e[95]=r,e[96]=h.link,e[97]=Q):Q=e[97];let o9;e[98]!==n||e[99]!==c||e[100]!==h.alignCenter||e[101]!==h.alignJustify||e[102]!==h.alignLeft||e[103]!==h.alignRight||e[104]!==L?(o9=!c&&s.jsxs(s.Fragment,{children:[s.jsx(U9,{}),s.jsx(M9,{active:h.alignLeft,label:L("sectionsEditor.richTextField.alignLeft"),onClick:()=>n.chain().focus().setTextAlign("left").run(),children:s.jsx(E2,{size:14})}),s.jsx(M9,{active:h.alignCenter,label:L("sectionsEditor.richTextField.alignCenter"),onClick:()=>n.chain().focus().setTextAlign("center").run(),children:s.jsx(g2,{size:14})}),s.jsx(M9,{active:h.alignRight,label:L("sectionsEditor.richTextField.alignRight"),onClick:()=>n.chain().focus().setTextAlign("right").run(),children:s.jsx(x2,{size:14})}),s.jsx(M9,{active:h.alignJustify,label:L("sectionsEditor.richTextField.alignJustify"),onClick:()=>n.chain().focus().setTextAlign("justify").run(),children:s.jsx(y2,{size:14})})]}),e[98]=n,e[99]=c,e[100]=h.alignCenter,e[101]=h.alignJustify,e[102]=h.alignLeft,e[103]=h.alignRight,e[104]=L,e[105]=o9):o9=e[105];let y9;e[106]!==a?(y9=a&&s.jsxs(s.Fragment,{children:[s.jsx(U9,{}),a]}),e[106]=a,e[107]=y9):y9=e[107];let g9;return e[108]!==A||e[109]!==I||e[110]!==t9||e[111]!==i9||e[112]!==q||e[113]!==m9||e[114]!==f9||e[115]!==U||e[116]!==Q||e[117]!==o9||e[118]!==y9?(g9=s.jsxs("div",{className:"relative flex flex-wrap items-center gap-0.5 rounded-t-[inherit] border-b border-border/60 bg-muted/30 px-1.5 py-1",children:[A,I,t9,i9,q,e9,m9,a9,f9,U,B,Q,o9,y9]}),e[108]=A,e[109]=I,e[110]=t9,e[111]=i9,e[112]=q,e[113]=m9,e[114]=f9,e[115]=U,e[116]=Q,e[117]=o9,e[118]=y9,e[119]=g9):g9=e[119],g9}function mn(t){return t.preventDefault()}function pn(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),underline:e.isActive("underline"),strike:e.isActive("strike"),headingLevel:ne.find(n=>e.isActive("heading",{level:n}))??0,fontSize:e.getAttributes("textStyle").fontSize??null,color:e.getAttributes("textStyle").color??null,bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),link:e.isActive("link"),alignLeft:e.isActive({textAlign:"left"}),alignCenter:e.isActive({textAlign:"center"}),alignRight:e.isActive({textAlign:"right"}),alignJustify:e.isActive({textAlign:"justify"})}}function hn(t){const e=new DOMParser().parseFromString(t,"text/html").body,n=Array.from(e.children);return n.length===0?e.innerHTML:n.map(i=>i.innerHTML).join("<br>")}function gn({schema:t,value:e,onChange:n,path:i,label:o,sandbox:r,inline:a=!1}){const c=typeof e=="string"?e:"",l=P.useRef(n);l.current=n;const L=u2({extensions:[f2.configure({heading:a?!1:{levels:[1,2,3,4,5,6]},bulletList:a?!1:void 0,orderedList:a?!1:void 0,listItem:a?!1:void 0,blockquote:a?!1:void 0,link:{HTMLAttributes:{}}}),...a?[]:[B3.configure({types:["heading","paragraph"]})],D3,P3,$3],content:c||"",editorProps:{attributes:{class:h9("prose prose-sm dark:prose-invert max-w-none focus:outline-none","min-h-[80px] px-3 py-2",R2)}},onUpdate:({editor:d})=>{const u=d.getHTML(),p=a?hn(u):u;l.current(p==="<p></p>"||p===""?"":p)}});return L?s.jsxs("div",{className:"space-y-2",children:[s.jsx(T9,{htmlFor:i,label:o,description:t.description,virtualMcpId:r?.virtualMcpId}),s.jsxs("div",{className:"overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-md))] border shadow-edge border-input",children:[s.jsx(fn,{editor:L,inline:a}),s.jsx(m2,{editor:L})]})]}):null}const t0=t=>String(t).padStart(2,"0"),xn="1900-01-01",yn="2099-12-31",vn="1900-01-01T00:00",bn="2099-12-31T23:59";function jn(t){if(!t)return"";const e=t.slice(0,10);if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e;const n=new Date(t);return Number.isNaN(n.getTime())?"":`${n.getUTCFullYear()}-${t0(n.getUTCMonth()+1)}-${t0(n.getUTCDate())}`}function Sn(t){return!t||!/^\d{4}-\d{2}-\d{2}$/.test(t)?"":`${t}T00:00:00.000Z`}function Nn(t){if(!t)return"";const e=new Date(t);return Number.isNaN(e.getTime())?"":`${e.getFullYear()}-${t0(e.getMonth()+1)}-${t0(e.getDate())}T${t0(e.getHours())}:${t0(e.getMinutes())}`}function Cn(t){if(!t)return"";const e=new Date(t);return Number.isNaN(e.getTime())?"":e.toISOString()}function kn(t){const e=G.c(41),{id:n,withTime:i,value:o,onChange:r,calendarLabel:a}=t,[c,l]=P.useState(!1);let L;e[0]!==i?(L=D=>i?Nn(D):jn(D),e[0]=i,e[1]=L):L=e[1];const d=L;let u;e[2]!==i?(u=D=>i?Cn(D):Sn(D),e[2]=i,e[3]=u):u=e[3];const p=u;let S;e[4]!==d||e[5]!==o?(S=()=>d(o),e[4]=d,e[5]=o,e[6]=S):S=e[6];const[x,h]=P.useState(S),[m,f]=P.useState(o);if(o!==m){f(o);const D=d(o);D!==x&&h(D)}let y;e[7]!==r||e[8]!==p?(y=D=>{h(D.target.value),r(p(D.target.value))},e[7]=r,e[8]=p,e[9]=y):y=e[9];const v=y;let N;if(e[10]!==o){const D=o?new Date(o):null;N=D&&!Number.isNaN(D.getTime())?D:null,e[10]=o,e[11]=N}else N=e[11];const b=N;let g;e[12]!==r||e[13]!==b||e[14]!==d||e[15]!==i?(g=D=>{if(!D)return;i&&b?D.setHours(b.getHours(),b.getMinutes(),0,0):D.setHours(0,0,0,0);const _=D.toISOString();h(d(_)),f(_),r(_),l(!1)},e[12]=r,e[13]=b,e[14]=d,e[15]=i,e[16]=g):g=e[16];const j=g,C=i?"datetime-local":"date",M=i?vn:xn,T=i?bn:yn;let w;e[17]!==d||e[18]!==o?(w=()=>h(d(o)),e[17]=d,e[18]=o,e[19]=w):w=e[19];let k;e[20]!==v||e[21]!==n||e[22]!==x||e[23]!==w||e[24]!==C||e[25]!==M||e[26]!==T?(k=s.jsx(F9,{id:n,type:C,min:M,max:T,value:x,onChange:v,onBlur:w,className:"h-10 flex-1 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:opacity-0"}),e[20]=v,e[21]=n,e[22]=x,e[23]=w,e[24]=C,e[25]=M,e[26]=T,e[27]=k):k=e[27];let A;e[28]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(o2,{className:"h-4 w-4"}),e[28]=A):A=e[28];let E;e[29]!==a?(E=s.jsx(fe,{asChild:!0,children:s.jsx(C9,{type:"button",variant:"outline",size:"icon",className:"h-10 w-10 shrink-0","aria-label":a,children:A})}),e[29]=a,e[30]=E):E=e[30];const F=b??void 0;let R;e[31]!==j||e[32]!==F?(R=s.jsx(me,{className:"w-auto p-0",align:"end",onCloseAutoFocus:En,children:s.jsx(L2,{mode:"single",selected:F,onSelect:j,initialFocus:!0})}),e[31]=j,e[32]=F,e[33]=R):R=e[33];let O;e[34]!==c||e[35]!==E||e[36]!==R?(O=s.jsxs(pe,{open:c,onOpenChange:l,children:[E,R]}),e[34]=c,e[35]=E,e[36]=R,e[37]=O):O=e[37];let I;return e[38]!==k||e[39]!==O?(I=s.jsxs("div",{className:"flex gap-1",children:[k,O]}),e[38]=k,e[39]=O,e[40]=I):I=e[40],I}function En(t){return t.preventDefault()}function at(t){const e=G.c(75),{schema:n,value:i,onChange:o,path:r,label:a,sandbox:c}=t,l=x9(),L=typeof i=="string"?i:"",d=n.format;if(d==="rich-text"||d==="rich-text-inline"||d==="html"){const y=d==="rich-text-inline";let v;return e[0]!==a||e[1]!==o||e[2]!==r||e[3]!==c||e[4]!==n||e[5]!==y||e[6]!==i?(v=s.jsx(gn,{schema:n,value:i,onChange:o,path:r,label:a,sandbox:c,inline:y}),e[0]=a,e[1]=o,e[2]=r,e[3]=c,e[4]=n,e[5]=y,e[6]=i,e[7]=v):v=e[7],v}if(d==="textarea"||d==="markdown"){const y=c?.virtualMcpId;let v;e[8]!==a||e[9]!==r||e[10]!==n.description||e[11]!==y?(v=s.jsx(T9,{htmlFor:r,label:a,description:n.description,virtualMcpId:y}),e[8]=a,e[9]=r,e[10]=n.description,e[11]=y,e[12]=v):v=e[12];let N;e[13]!==o?(N=j=>o(j.target.value),e[13]=o,e[14]=N):N=e[14];let b;e[15]!==r||e[16]!==L||e[17]!==N?(b=s.jsx(c2,{id:r,value:L,onChange:N,rows:4}),e[15]=r,e[16]=L,e[17]=N,e[18]=b):b=e[18];let g;return e[19]!==v||e[20]!==b?(g=s.jsxs("div",{className:"space-y-2",children:[v,b]}),e[19]=v,e[20]=b,e[21]=g):g=e[21],g}const u=d==="date-time"||d==="datetime";if(d==="date"||u){const y=c?.virtualMcpId;let v;e[22]!==a||e[23]!==r||e[24]!==n.description||e[25]!==y?(v=s.jsx(T9,{htmlFor:r,label:a,description:n.description,virtualMcpId:y}),e[22]=a,e[23]=r,e[24]=n.description,e[25]=y,e[26]=v):v=e[26];let N;e[27]!==l?(N=l("sectionsEditor.stringField.openCalendar"),e[27]=l,e[28]=N):N=e[28];let b;e[29]!==u||e[30]!==o||e[31]!==r||e[32]!==L||e[33]!==N?(b=s.jsx(kn,{id:r,withTime:u,value:L,onChange:o,calendarLabel:N}),e[29]=u,e[30]=o,e[31]=r,e[32]=L,e[33]=N,e[34]=b):b=e[34];let g;return e[35]!==v||e[36]!==b?(g=s.jsxs("div",{className:"space-y-2",children:[v,b]}),e[35]=v,e[36]=b,e[37]=g):g=e[37],g}if(d==="color-input"||d==="color"){const y=c?.virtualMcpId;let v;e[38]!==a||e[39]!==r||e[40]!==n.description||e[41]!==y?(v=s.jsx(T9,{htmlFor:r,label:a,description:n.description,virtualMcpId:y}),e[38]=a,e[39]=r,e[40]=n.description,e[41]=y,e[42]=v):v=e[42];const N=L||"#000000";let b;e[43]!==o?(b=w=>o(w.target.value),e[43]=o,e[44]=b):b=e[44];let g;e[45]!==N||e[46]!==b?(g=s.jsx("input",{type:"color",value:N,onChange:b,className:"h-10 w-10 cursor-pointer rounded-lg border border-border bg-background p-1"}),e[45]=N,e[46]=b,e[47]=g):g=e[47];let j;e[48]!==o?(j=w=>o(w.target.value),e[48]=o,e[49]=j):j=e[49];let C;e[50]!==r||e[51]!==L||e[52]!==j?(C=s.jsx(F9,{id:r,value:L,onChange:j,placeholder:"#000000",className:"h-10 flex-1"}),e[50]=r,e[51]=L,e[52]=j,e[53]=C):C=e[53];let M;e[54]!==g||e[55]!==C?(M=s.jsxs("div",{className:"flex items-center gap-2",children:[g,C]}),e[54]=g,e[55]=C,e[56]=M):M=e[56];let T;return e[57]!==v||e[58]!==M?(T=s.jsxs("div",{className:"space-y-2",children:[v,M]}),e[57]=v,e[58]=M,e[59]=T):T=e[59],T}const p=c?.virtualMcpId;let S;e[60]!==a||e[61]!==r||e[62]!==n.description||e[63]!==p?(S=s.jsx(T9,{htmlFor:r,label:a,description:n.description,virtualMcpId:p}),e[60]=a,e[61]=r,e[62]=n.description,e[63]=p,e[64]=S):S=e[64];const x=d==="url"?"url":"text";let h;e[65]!==o?(h=y=>o(y.target.value),e[65]=o,e[66]=h):h=e[66];let m;e[67]!==r||e[68]!==L||e[69]!==x||e[70]!==h?(m=s.jsx(F9,{id:r,type:x,value:L,onChange:h,className:"h-10"}),e[67]=r,e[68]=L,e[69]=x,e[70]=h,e[71]=m):m=e[71];let f;return e[72]!==S||e[73]!==m?(f=s.jsxs("div",{className:"space-y-2",children:[S,m]}),e[72]=S,e[73]=m,e[74]=f):f=e[74],f}const Tn=/^[+-]?\d*\.?\d*(?:[eE][+-]?\d*)?$/,wn=/^[+-]?\d*$/;function An(t,e){return(e?wn:Tn).test(t)}function Mn(t){const e=G.c(16),{schema:n,value:i,onChange:o,path:r,label:a,sandbox:c}=t,l=typeof i=="number"?String(i):"",[L,d]=P.useState(l),[u,p]=P.useState(l);l!==u&&(p(l),L!==""&&l!==""&&Number(L)===Number(l)||d(l));const S=c?.virtualMcpId;let x;e[0]!==a||e[1]!==r||e[2]!==n.description||e[3]!==S?(x=s.jsx(T9,{htmlFor:r,label:a,description:n.description,virtualMcpId:S}),e[0]=a,e[1]=r,e[2]=n.description,e[3]=S,e[4]=x):x=e[4];const h=n.type==="integer"?"numeric":"decimal";let m;e[5]!==o||e[6]!==n.type?(m=v=>{const N=v.target.value,b=n.type==="integer";if(N!==""&&!An(N,b))return;d(N);const g=Number(N);o(N===""||Number.isNaN(g)?void 0:g)},e[5]=o,e[6]=n.type,e[7]=m):m=e[7];let f;e[8]!==r||e[9]!==L||e[10]!==h||e[11]!==m?(f=s.jsx(F9,{id:r,type:"text",inputMode:h,value:L,onChange:m,className:"h-10"}),e[8]=r,e[9]=L,e[10]=h,e[11]=m,e[12]=f):f=e[12];let y;return e[13]!==x||e[14]!==f?(y=s.jsxs("div",{className:"space-y-2",children:[x,f]}),e[13]=x,e[14]=f,e[15]=y):y=e[15],y}function Rn(t){const e=G.c(14),{value:n,onChange:i,path:o,label:r,schema:a,sandbox:c}=t,l=typeof n=="boolean"?n:!1,L=c?.virtualMcpId;let d;e[0]!==r||e[1]!==o||e[2]!==a.description||e[3]!==L?(d=s.jsx(T9,{htmlFor:o,label:r,description:a.description,virtualMcpId:L}),e[0]=r,e[1]=o,e[2]=a.description,e[3]=L,e[4]=d):d=e[4];let u;e[5]!==i?(u=x=>i(x),e[5]=i,e[6]=u):u=e[6];let p;e[7]!==l||e[8]!==o||e[9]!==u?(p=s.jsx(o1,{id:o,checked:l,onCheckedChange:u}),e[7]=l,e[8]=o,e[9]=u,e[10]=p):p=e[10];let S;return e[11]!==d||e[12]!==p?(S=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[d,p]}),e[11]=d,e[12]=p,e[13]=S):S=e[13],S}const De="__enum_empty__",I1="__enum_clear__";function Pe(t){return t===""?De:String(t)}function Fn(t,e){if(t===De)return"";const n=e.find(i=>Pe(i)===t);return n!==void 0?n:t}function In(t,e){if(t!==I1)return Fn(t,e)}function _n(t,e){return t==null?e.some(n=>n==="")?De:void 0:Pe(t)}function On(t){return t===""?"":String(t)}function Dn(t){const e=G.c(39),{schema:n,value:i,onChange:o,path:r,label:a,required:c,sandbox:l}=t,L=x9();let d;e[0]!==n.enum?(d=n.enum??[],e[0]=n.enum,e[1]=d):d=e[1];const u=d;let p;e[2]!==u||e[3]!==i?(p=_n(i,u),e[2]=u,e[3]=i,e[4]=p):p=e[4];const S=p;let x;e[5]!==u||e[6]!==c?(x=!c&&!u.some($n),e[5]=u,e[6]=c,e[7]=x):x=e[7];const h=x,m=l?.virtualMcpId;let f;e[8]!==a||e[9]!==r||e[10]!==n.description||e[11]!==m?(f=s.jsx(T9,{htmlFor:r,label:a,description:n.description,virtualMcpId:m}),e[8]=a,e[9]=r,e[10]=n.description,e[11]=m,e[12]=f):f=e[12];const y=S??"";let v;e[13]!==o||e[14]!==u?(v=k=>o(In(k,u)),e[13]=o,e[14]=u,e[15]=v):v=e[15];let N;e[16]!==L?(N=L("sectionsEditor.enumField.selectPlaceholder"),e[16]=L,e[17]=N):N=e[17];let b;e[18]!==N?(b=s.jsx(E0,{placeholder:N}),e[18]=N,e[19]=b):b=e[19];let g;e[20]!==r||e[21]!==b?(g=s.jsx(k0,{id:r,className:"h-10 w-full min-w-0",children:b}),e[20]=r,e[21]=b,e[22]=g):g=e[22];let j;e[23]!==h||e[24]!==L?(j=h&&s.jsx(D9,{value:I1,className:"text-muted-foreground",children:L("sectionsEditor.enumField.clearOption")}),e[23]=h,e[24]=L,e[25]=j):j=e[25];let C;e[26]!==u?(C=u.map(Pn),e[26]=u,e[27]=C):C=e[27];let M;e[28]!==j||e[29]!==C?(M=s.jsxs(T0,{children:[j,C]}),e[28]=j,e[29]=C,e[30]=M):M=e[30];let T;e[31]!==g||e[32]!==M||e[33]!==y||e[34]!==v?(T=s.jsxs(C0,{value:y,onValueChange:v,children:[g,M]}),e[31]=g,e[32]=M,e[33]=y,e[34]=v,e[35]=T):T=e[35];let w;return e[36]!==T||e[37]!==f?(w=s.jsxs("div",{className:"space-y-2",children:[f,T]}),e[36]=T,e[37]=f,e[38]=w):w=e[38],w}function Pn(t){const e=Pe(t);return s.jsx(D9,{value:e,children:On(t)},e)}function $n(t){return t===""}const lt={default:{rest:"text-foreground/80 hover:bg-accent hover:text-accent-foreground",selected:"bg-accent text-accent-foreground"},variant:{rest:"text-[oklch(0.45_0.15_160)] hover:bg-[oklch(0.65_0.15_160/0.12)] dark:text-[oklch(0.78_0.15_160)] dark:hover:bg-[oklch(0.65_0.15_160/0.15)]",selected:"text-[oklch(0.45_0.15_160)] bg-[oklch(0.65_0.15_160/0.18)] dark:text-[oklch(0.78_0.15_160)] dark:bg-[oklch(0.65_0.15_160/0.2)]"}};function u0({tone:t="default",selected:e=!1,className:n}={}){return h9("group relative flex touch-none select-none items-center gap-2 rounded-[var(--studio-control-radius,var(--radius-md))] px-2 py-2.5 transition-colors",e?lt[t].selected:lt[t].rest,n)}const _1="h-7 w-7 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 group-has-[:focus-visible]:opacity-100 data-[state=open]:opacity-100";function Bn(t){const e=G.c(16),{label:n,active:i,onToggle:o,children:r,classicClassName:a}=t,c=w9(),l=c?"outline":"ghost",L=c?_1:a;let d;e[0]!==L?(d=h9(L),e[0]=L,e[1]=d):d=e[1];let u;e[2]!==o?(u=h=>{h.stopPropagation(),o()},e[2]=o,e[3]=u):u=e[3];let p;e[4]!==i||e[5]!==r||e[6]!==n||e[7]!==l||e[8]!==d||e[9]!==u?(p=s.jsx($9,{asChild:!0,children:s.jsx(C9,{type:"button",variant:l,size:"icon","aria-label":n,"aria-pressed":i,className:d,onClick:u,onPointerDown:zn,children:r})}),e[4]=i,e[5]=r,e[6]=n,e[7]=l,e[8]=d,e[9]=u,e[10]=p):p=e[10];let S;e[11]!==n?(S=s.jsx(B9,{side:"bottom",children:n}),e[11]=n,e[12]=S):S=e[12];let x;return e[13]!==p||e[14]!==S?(x=s.jsxs(z9,{children:[p,S]}),e[13]=p,e[14]=S,e[15]=x):x=e[15],x}function zn(t){return t.stopPropagation()}function U0(t){const e=G.c(7),{label:n,classicClassName:i}=t,o=w9(),r=o?"outline":"ghost",a=o?_1:i;let c;e[0]!==a?(c=h9(a),e[0]=a,e[1]=c):c=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx($t,{className:"h-3.5 w-3.5"}),e[2]=l):l=e[2];let L;return e[3]!==n||e[4]!==r||e[5]!==c?(L=s.jsx(ce,{asChild:!0,children:s.jsx(C9,{type:"button",variant:r,size:"icon","aria-label":n,className:c,onClick:Kn,onPointerDown:Vn,children:l})}),e[3]=n,e[4]=r,e[5]=c,e[6]=L):L=e[6],L}function Vn(t){return t.stopPropagation()}function Kn(t){return t.stopPropagation()}function Un(t){const e=G.c(14),{label:n,onAdd:i,className:o,iconHeightClassName:r}=t,a=r===void 0?"h-7":r;let c;e[0]!==o?(c=h9(u0({className:h9("w-full cursor-pointer justify-center text-muted-foreground",o)})),e[0]=o,e[1]=c):c=e[1];let l;e[2]!==a?(l=h9("flex shrink-0 items-center justify-center",a),e[2]=a,e[3]=l):l=e[3];let L;e[4]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(l0,{className:"size-3.5"}),e[4]=L):L=e[4];let d;e[5]!==l?(d=s.jsx("span",{className:l,children:L}),e[5]=l,e[6]=d):d=e[6];let u;e[7]!==n?(u=s.jsx("span",{className:"min-w-0 truncate text-sm font-medium",children:n}),e[7]=n,e[8]=u):u=e[8];let p;return e[9]!==i||e[10]!==c||e[11]!==d||e[12]!==u?(p=s.jsxs("button",{type:"button",onClick:i,className:c,children:[d,u]}),e[9]=i,e[10]=c,e[11]=d,e[12]=u,e[13]=p):p=e[13],p}function O1(t){const e=G.c(12),{icon:n,label:i,onOpen:o,actions:r}=t;let a;e[0]!==o?(a=u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),o())},e[0]=o,e[1]=a):a=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=h9(u0({className:"w-full cursor-pointer"})),e[2]=c):c=e[2];let l;e[3]!==i?(l=s.jsx("span",{className:"min-w-0 flex-1 truncate text-left text-sm font-medium",children:i}),e[3]=i,e[4]=l):l=e[4];let L;e[5]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(N0,{className:"size-4 shrink-0 text-muted-foreground"}),e[5]=L):L=e[5];let d;return e[6]!==r||e[7]!==n||e[8]!==o||e[9]!==a||e[10]!==l?(d=s.jsxs("div",{role:"button",tabIndex:0,onClick:o,onKeyDown:a,className:c,children:[n,l,L,r]}),e[6]=r,e[7]=n,e[8]=o,e[9]=a,e[10]=l,e[11]=d):d=e[11],d}const $e={duration:180,easing:"cubic-bezier(0.2, 0, 0, 1)",sideEffects:void 0};function Lt(t){return Array.from({length:t},(e,n)=>({id:crypto.randomUUID(),index:n}))}function D1(t){return t.map((e,n)=>({...e,index:n}))}function ct(t,e){if(e===t.length)return t;if(e<t.length)return D1(t.slice(0,e));const n=Array.from({length:e-t.length},(i,o)=>({id:crypto.randomUUID(),index:t.length+o}));return[...t,...n]}function Gn(t,e){const n=t.findIndex(r=>r.index===e),i=t.map(r=>r.index>e?{...r,index:r.index+1}:r),o={id:crypto.randomUUID(),index:e+1};return n===-1?[...i,o]:[...i.slice(0,n+1),o,...i.slice(n+1)]}function Hn(t,e){return t.filter(n=>n.index!==e).map(n=>n.index>e?{...n,index:n.index-1}:n)}function Wn(t){return t!=null&&!Array.isArray(t)}const qn="w-6 ml-0 opacity-100 [transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",Yn="w-0 -ml-2 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:ml-0 group-hover:w-6 group-hover:opacity-100 group-hover:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms] group-has-[:focus-visible]:ml-0 group-has-[:focus-visible]:w-6 group-has-[:focus-visible]:opacity-100 group-has-[:focus-visible]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]",Zn="w-6 ml-0 opacity-0 [transition:opacity_150ms_ease-out,width_0ms_150ms,margin-left_0ms_150ms] group-hover:opacity-100 group-has-[:focus-visible]:opacity-100";function dt(t,e){return h9("h-6 shrink-0 overflow-hidden",e?qn:t?Zn:Yn)}const Be="h-12";function P1(){const t=G.c(2),n=w9()?Re:c1;let i;return t[0]!==n?(i=s.jsx(n,{className:"size-3.5 shrink-0 text-muted-foreground/40"}),t[0]=n,t[1]=i):i=t[1],i}function Jn(t){const e=G.c(11),{labelText:n,imageSrc:i,missingRequired:o}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(P1,{}),e[0]=r):r=e[0];let a;e[1]!==i?(a=i&&s.jsx("img",{src:i,alt:"",referrerPolicy:"no-referrer",className:h9(Be,"max-w-[100px] shrink-0 rounded-[var(--studio-control-radius,var(--radius))] object-cover")}),e[1]=i,e[2]=a):a=e[2];let c;e[3]!==n?(c=s.jsx("span",{className:"min-w-0 truncate",children:n}),e[3]=n,e[4]=c):c=e[4];let l;e[5]!==o?(l=o&&s.jsx(z0,{className:"self-start"}),e[5]=o,e[6]=l):l=e[6];let L;return e[7]!==a||e[8]!==c||e[9]!==l?(L=s.jsxs(s.Fragment,{children:[r,s.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2.5 text-sm",children:[a,c,l]})]}),e[7]=a,e[8]=c,e[9]=l,e[10]=L):L=e[10],L}function Xn(t){const e=G.c(80),{sortableId:n,labelText:i,imageSrc:o,hidden:r,missingRequired:a,expanded:c,children:l,onToggleHidden:L,onOpen:d,onDuplicate:u,onRemove:p}=t,S=x9();let x;e[0]!==n?(x={id:n,animateLayoutChanges:Qn},e[0]=n,e[1]=x):x=e[1];const{attributes:h,listeners:m,setNodeRef:f,transform:y,isDragging:v}=Ne(x);let N;e[2]!==y?(N=ge.Transform.toString(y?{...y,x:0}:null),e[2]=y,e[3]=N):N=e[3];const b=v?0:void 0;let g;e[4]!==N||e[5]!==b?(g={transform:N,opacity:b},e[4]=N,e[5]=b,e[6]=g):g=e[6];const j=g,C=c?c0:N0;let M;e[7]!==d?(M=n9=>{(n9.key==="Enter"||n9.key===" ")&&(n9.preventDefault(),d())},e[7]=d,e[8]=M):M=e[8];const T=v?"cursor-grabbing":"cursor-pointer";let w;e[9]!==T?(w=h9("group relative flex min-w-0 items-center gap-2.5 rounded-[var(--studio-control-radius,var(--radius-lg))] px-2 py-2.5 hover:bg-accent hover:text-accent-foreground touch-none",T),e[9]=T,e[10]=w):w=e[10];let k;e[11]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(P1,{}),e[11]=k):k=e[11];let A;e[12]!==C||e[13]!==c?(A=c!==void 0&&s.jsx(C,{className:"-ml-1 size-3.5 shrink-0 text-muted-foreground"}),e[12]=C,e[13]=c,e[14]=A):A=e[14];let E;e[15]!==o?(E=o&&s.jsx("img",{src:o,alt:"",referrerPolicy:"no-referrer",className:h9(Be,"max-w-[100px] shrink-0 rounded-[var(--studio-control-radius,var(--radius))] object-cover")}),e[15]=o,e[16]=E):E=e[16];const F=r&&"line-through opacity-50";let R;e[17]!==F?(R=h9("min-w-0 flex-1 truncate text-sm",F),e[17]=F,e[18]=R):R=e[18];let O;e[19]!==i||e[20]!==R?(O=s.jsx("span",{className:R,children:i}),e[19]=i,e[20]=R,e[21]=O):O=e[21];let I;e[22]!==a?(I=a&&s.jsx(z0,{className:"absolute -right-0.5 -top-0.5"}),e[22]=a,e[23]=I):I=e[23];let D;e[24]!==r||e[25]!==L||e[26]!==S?(D=L&&s.jsx(Bn,{label:S(r?"sectionsEditor.arrayField.showItem":"sectionsEditor.arrayField.hideItem"),active:r===!0,onToggle:L,classicClassName:dt(r===!0,r===!0),children:r?s.jsx(T2,{size:14}):s.jsx(Q2,{size:14})}),e[24]=r,e[25]=L,e[26]=S,e[27]=D):D=e[27];let _;e[28]!==i||e[29]!==S?(_=S("sectionsEditor.arrayField.openActionsFor",{label:i}),e[28]=i,e[29]=S,e[30]=_):_=e[30];let H;e[31]!==r?(H=h9(dt(r===!0,!1),"data-[state=open]:ml-0 data-[state=open]:w-6 data-[state=open]:opacity-100 data-[state=open]:[transition:opacity_150ms_ease-out,width_0ms,margin-left_0ms]"),e[31]=r,e[32]=H):H=e[32];let K;e[33]!==_||e[34]!==H?(K=s.jsx(U0,{label:_,classicClassName:H}),e[33]=_,e[34]=H,e[35]=K):K=e[35];let t9;e[36]!==u?(t9=n9=>{n9.stopPropagation(),u()},e[36]=u,e[37]=t9):t9=e[37];let z;e[38]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(he,{size:14}),e[38]=z):z=e[38];let s9;e[39]!==S?(s9=S("sectionsEditor.arrayField.duplicate"),e[39]=S,e[40]=s9):s9=e[40];let Z;e[41]!==t9||e[42]!==s9?(Z=s.jsxs(A9,{onClick:t9,children:[z,s9]}),e[41]=t9,e[42]=s9,e[43]=Z):Z=e[43];let l9;e[44]!==p?(l9=n9=>{n9.stopPropagation(),p()},e[44]=p,e[45]=l9):l9=e[45];let i9;e[46]===Symbol.for("react.memo_cache_sentinel")?(i9=s.jsx(X9,{size:14}),e[46]=i9):i9=e[46];let q;e[47]!==S?(q=S("sectionsEditor.arrayField.delete"),e[47]=S,e[48]=q):q=e[48];let e9;e[49]!==l9||e[50]!==q?(e9=s.jsxs(A9,{variant:"destructive",onClick:l9,children:[i9,q]}),e[49]=l9,e[50]=q,e[51]=e9):e9=e[51];let $;e[52]!==Z||e[53]!==e9?($=s.jsxs(q9,{align:"end",children:[Z,e9]}),e[52]=Z,e[53]=e9,e[54]=$):$=e[54];let Y;e[55]!==K||e[56]!==$?(Y=s.jsxs(Y9,{children:[K,$]}),e[55]=K,e[56]=$,e[57]=Y):Y=e[57];let W;e[58]!==h||e[59]!==c||e[60]!==i||e[61]!==m||e[62]!==d||e[63]!==E||e[64]!==O||e[65]!==I||e[66]!==D||e[67]!==Y||e[68]!==M||e[69]!==w||e[70]!==A?(W=s.jsxs("div",{...h,...m,role:"button",tabIndex:0,onClick:d,onKeyDown:M,className:w,title:i,"aria-expanded":c,children:[k,A,E,O,I,D,Y]}),e[58]=h,e[59]=c,e[60]=i,e[61]=m,e[62]=d,e[63]=E,e[64]=O,e[65]=I,e[66]=D,e[67]=Y,e[68]=M,e[69]=w,e[70]=A,e[71]=W):W=e[71];let J;e[72]!==l||e[73]!==c?(J=c&&l&&s.jsx("div",{className:"mb-1.5 ml-[18px] mt-0.5 border-l border-border/60 py-1 pl-3 pr-1",children:l}),e[72]=l,e[73]=c,e[74]=J):J=e[74];let r9;return e[75]!==f||e[76]!==j||e[77]!==W||e[78]!==J?(r9=s.jsxs("div",{ref:f,style:j,className:"min-w-0",children:[W,J]}),e[75]=f,e[76]=j,e[77]=W,e[78]=J,e[79]=r9):r9=e[79],r9}function Qn(){return!1}const e5=new Set(["__resolveType","@type"]),$1=Symbol("skip-array-item");function t5(t){const e=O9(t);return e!=null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.__resolveType=="string"?$1:e}const n5=32;function P0(t,e,n=0){if(!t?.properties||n>n5)return!1;const i=t.properties,o=e!=null&&typeof e=="object"&&!Array.isArray(e)?e:{};for(const r of t.required??[])if(!(e5.has(r)||i[r]?.hidden===!0)&&Xt(o[r]))return!0;for(const[r,a]of Object.entries(i)){const c=o[r];if(c!=null&&(a.properties&&typeof c=="object"&&!Array.isArray(c)&&P0(a,c,n+1)||a.items?.properties&&Array.isArray(c)&&c.some(l=>{const L=t5(l);return L!==$1&&P0(a.items,L,n+1)})))return!0}return!1}function tr(t,e,n,i){if(!t||!e||!i)return!1;try{const o=u3(t,e,n,r0(i));if(!o)return!1;const r=a0(o.resolveType,i);return P0(r,o.data)}catch{return!1}}const s5=[];function ut(t,e,n,i,o){if(e?.type==="object"&&e.properties&&Object.keys(e.properties).length>0||e?.type==="block-ref"&&e.anyOfRefs?.length)return e;if(t!=null&&typeof t=="object"&&!Array.isArray(t)){const r=t.__resolveType;if(typeof r=="string"&&n){const a=a0(r,n);if(a?.properties&&Object.keys(a.properties).length>0)return a}}if(n&&i&&o){const a=a0(i,n)?.properties?.[o]?.items;if(a?.properties&&Object.keys(a.properties).length>0)return{...a,titleBy:a.titleBy??e?.titleBy}}return e}function i5(t){const e=t.split(".").filter(n=>!/^\d+$/.test(n));return e[e.length-1]??t}function A0({schema:t,value:e,onChange:n,path:i,label:o,breadcrumbPath:r=s5,onBreadcrumbChange:a,hasSiblingDrillDownFields:c,meta:l,decofile:L,onSaveReferencedBlock:d,containerResolveType:u,previewBaseUrl:p,onAddSectionItem:S,onRequestAddSection:x,sandbox:h}){const m=L0(),f=x9(),y=w9(),v=Qt(h?.virtualMcpId),{required:N,invalid:b}=e1(),g=Array.isArray(e)?e:[],j=M1(t.items,l),C=i5(i),M={arrayKey:C,hasSiblingDrillDownFields:c,itemLabelFromSchema:!!(j?.titleBy||j?.inlineUnionBranches?.length)},T=$2(t,C),w=g.some(V=>!!W0(O9(V,m),j)),k=!T&&j?.type==="object",A=!T,[E,F]=f3(m3.arrayFieldLayout(),"drill"),R=A&&E==="inline",[O,I]=P.useState(null),D=Q4(o,r,g,j,O,C),_=D?.index??null;D===null?O!==null&&I(null):D.index!==O&&I(D.index);const[H,K]=P.useState(()=>Lt(g.length)),[t9,z]=P.useState(null),[s9,Z]=P.useState(()=>new Set),[l9,i9]=P.useState(i),[q,e9]=P.useState(g.length),$=P.useRef(!1),Y=P.useRef(null);l9!==i?(i9(i),e9(g.length),K(Lt(g.length)),Z(new Set),I(null)):q!==g.length&&(e9(g.length),K(V=>ct(V,g.length)));const W=(V,L9)=>T1(O9(V,m),L9,j),J=V=>{if($.current)return;const L9=W(g[V],V);I(V),a?.(p0(r,o,L9,V,M))},r9=V=>{$.current||Z(L9=>{const u9=new Set(L9);return u9.has(V)?u9.delete(V):u9.add(V),u9})},n9=V=>{const L9=[...g,V];n(L9);const u9=L9.length-1;I(u9);const v9=W(V,u9);a?.(p0(r,o,v9,u9,M))},p9=()=>{const V=j?.type,L9=j?.default!==void 0?j.default:V==="object"?{}:V==="block-ref"?(()=>{const c9=j?.anyOfRefs?.[0];if(j?.discriminatorKey)return _e({},j.discriminatorKey,c9);const S9=c9?.resolveType;return typeof S9!="string"||n0(S9)?{}:{__resolveType:S9}})():V==="number"||V==="integer"?0:V==="boolean"?!1:V==="array"?[]:"",u9=[...g,L9];if(n(u9),R){const c9=ct(H,u9.length),S9=c9[c9.length-1];K(c9),S9&&Z(k9=>new Set(k9).add(S9.id));return}const v9=u9.length-1;I(v9);const b9=W(L9,v9);a?.(p0(r,o,b9,v9,M))},X=()=>{if(T){if(!p){P9.error(f("sectionsEditor.arrayField.startPreviewServer"));return}if(x){x({append:n9});return}P9.error(f("sectionsEditor.arrayField.sectionPickerNotAvailable"));return}p9()},d9=V=>{const L9=g[V],u9=typeof structuredClone=="function"?structuredClone(L9):JSON.parse(JSON.stringify(L9??null)),v9=[...g.slice(0,V+1),u9,...g.slice(V+1)];n(v9),K(b9=>Gn(b9,V))},m9=V=>{const L9=g[V],u9=[...g];u9[V]=g0(L9,m)?y1(L9,m):Je(L9,l),n(u9)},a9=V=>{n(g.filter((L9,u9)=>u9!==V)),K(L9=>Hn(L9,V))},f9=(V,L9)=>{const u9=[...g];if(u9[V]=g0(g[V],m)?Je(L9,l):L9,n(u9),V===_&&D){const v9=W(g[V],V),b9=W(u9[V],V);if(Y.current={path:i,index:V,label:b9},v9!==b9){const c9=[...r];c9[D.crumbIndex]=nt(r[D.crumbIndex],b9,V),a?.(c9)}}},U=xe(o0(ve,{activationConstraint:{distance:8}}),o0(ye,{coordinateGetter:Ce})),B=H.map(V=>V.id),Q=V=>{z(String(V.active.id))},o9=V=>{z(null);const{active:L9,over:u9}=V;if(!u9||L9.id===u9.id)return;const v9=B.indexOf(String(L9.id)),b9=B.indexOf(String(u9.id));v9===-1||b9===-1||(K(c9=>D1(I0([...c9],v9,b9))),n(I0([...g],v9,b9)),$.current=!0,requestAnimationFrame(()=>{$.current=!1}))},y9=()=>{z(null)},g9=t9?H.find(V=>V.id===t9):null,j9=g9!=null?g[g9.index]:void 0,E9=g9!=null&&j9!==void 0?O0(g,j)[g9.index]:null,I9=g9!=null&&j9!==void 0?W0(O9(j9,m),j):void 0,K9=(V,L9,u9)=>{const v9=O9(g[V],m),b9=ut(v9,j,l,u,C);return s.jsx("div",{className:"min-w-0",children:b9?.type==="object"&&b9.properties?s.jsx(V9,{schema:b9,value:v9,onChange:c9=>f9(V,c9),basePath:`${i}.${V}`,breadcrumbPath:L9,onBreadcrumbChange:c9=>{a?.([...u9(),...c9])},meta:l,decofile:L,onSaveReferencedBlock:d,previewBaseUrl:p,onAddSectionItem:S,onRequestAddSection:x,sandbox:h}):b9?s.jsx(n1,{required:!1,invalid:!1,children:_9({schema:b9,value:v9,onChange:c9=>f9(V,c9),path:`${i}.${V}`,required:!0,label:b9.title&&!b9.title.includes("{{")?b9.title:W(v9,V),breadcrumbPath:L9,onBreadcrumbChange:c9=>{a?.([...u9(),...c9])},meta:l,decofile:L,onSaveReferencedBlock:d,previewBaseUrl:p,onAddSectionItem:S,onRequestAddSection:x,sandbox:h})}):null})};if(_!==null&&_<g.length){const V=O9(g[_],m),L9=()=>{if(!D)return p0(r,o,W(V,_),_,M);const u9=r.slice(0,D.crumbIndex+1),v9=Y.current,b9=v9?.path===i&&v9.index===_?v9.label:W(V,_);return u9[D.crumbIndex]=nt(u9[D.crumbIndex],b9,_),u9};return K9(_,D?.innerPath??[],L9)}return Wn(e)?s.jsxs("div",{className:"space-y-2",children:[s.jsx("span",{className:"min-w-0 truncate text-sm font-medium",children:o}),s.jsx("p",{className:"rounded-md border border-border bg-muted/30 px-3 py-2 text-xs text-muted-foreground",children:f("sectionsEditor.arrayField.nonArrayValue")})]}):s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[s.jsx(t1,{description:t.description,virtualMcpId:h?.virtualMcpId,children:s.jsxs("span",{className:"min-w-0 truncate text-sm font-medium",children:[o,N&&b&&s.jsx(z0,{className:"ml-1 inline-block align-middle"})]})}),g.length>0&&s.jsx("span",{className:"rounded-md bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground",children:g.length}),A&&g.length>0&&s.jsxs(F2,{type:"single",variant:"segmented",size:"sm",className:"ml-auto shrink-0",value:E,onValueChange:V=>{(V==="drill"||V==="inline")&&F(V)},children:[s.jsx(qe,{value:"drill",tooltip:f("sectionsEditor.arrayField.layoutDrill"),children:s.jsx(r1,{})}),s.jsx(qe,{value:"inline",tooltip:f("sectionsEditor.arrayField.layoutInline"),children:s.jsx(N2,{})})]})]}),!v&&t.description&&s.jsx("p",{className:"break-words text-xs leading-normal text-muted-foreground",children:t.description}),(g.length>0||y)&&s.jsx("div",{className:h9(t9&&"cursor-grabbing"),children:s.jsxs(be,{sensors:U,collisionDetection:je,onDragStart:Q,onDragEnd:o9,onDragCancel:y9,children:[s.jsx(ke,{items:B,strategy:Ee,children:s.jsxs("div",{className:"min-w-0 overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-xl))] border shadow-edge border-border/50 p-1.5",children:[g.length>0&&(()=>{const V=O0(g,j);return H.map(L9=>{const u9=g[L9.index];if(u9===void 0)return null;const v9=V[L9.index]??W(u9,L9.index),b9=O9(u9,m),c9=W0(b9,j),S9=P0(ut(b9,j,l,u,C),b9);return s.jsx(Xn,{sortableId:L9.id,labelText:v9,imageSrc:c9,missingRequired:S9,hidden:g0(u9,m),onToggleHidden:k?()=>m9(L9.index):void 0,expanded:R?s9.has(L9.id):void 0,onOpen:()=>R?r9(L9.id):J(L9.index),onDuplicate:()=>d9(L9.index),onRemove:()=>a9(L9.index),children:R&&s9.has(L9.id)&&K9(L9.index,[],()=>p0(r,o,W(u9,L9.index),L9.index,M))},L9.id)})})(),y&&s.jsx(Un,{iconHeightClassName:w?Be:void 0,label:f(T?"sectionsEditor.arrayField.addSection":"sectionsEditor.arrayField.addItem"),onAdd:X})]})}),B0.createPortal(s.jsx(Se,{dropAnimation:$e,children:E9?s.jsx("div",{className:"flex min-w-0 items-center gap-2.5 rounded-lg bg-background px-2 py-2.5 shadow-lift",children:s.jsx(Jn,{labelText:E9,imageSrc:I9})}):null}),document.body)]})}),!y&&s.jsxs("button",{type:"button",onClick:X,className:"flex w-full items-center justify-center gap-1.5 rounded-[var(--studio-surface-radius,var(--radius-xl))] border border-dashed border-border/60 py-2.5 text-sm text-muted-foreground transition-colors hover:border-border hover:bg-accent disabled:pointer-events-none disabled:opacity-50",children:[s.jsx(l0,{size:14}),f(T?"sectionsEditor.arrayField.addSection":"sectionsEditor.arrayField.addItem")]})]})}const ze=P.createContext(null);function r5(t){const e=G.c(8),{children:n}=t,[i,o]=P.useState(o5);let r;e[0]!==i?(r=d=>i.has(d),e[0]=i,e[1]=r):r=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=d=>o(u=>{const p=new Set(u);return p.has(d)?p.delete(d):p.add(d),p}),e[2]=a):a=e[2];let c;e[3]!==r?(c={isExpanded:r,toggle:a},e[3]=r,e[4]=c):c=e[4];const l=c;let L;return e[5]!==n||e[6]!==l?(L=s.jsx(ze.Provider,{value:l,children:n}),e[5]=n,e[6]=l,e[7]=L):L=e[7],L}function o5(){return new Set}function a5(){return P.useContext(ze)!==null}function l5(){return P.useContext(ze)}const L5=[];function c5(t){const e=G.c(62),{schema:n,value:i,onChange:o,path:r,label:a,breadcrumbPath:c,onBreadcrumbChange:l,focused:L,meta:d,decofile:u,onSaveReferencedBlock:p,previewBaseUrl:S,onAddSectionItem:x,onRequestAddSection:h,sandbox:m}=t,f=c===void 0?L5:c,y=l5(),[v,N]=P.useState(!1);let b;e[0]!==y||e[1]!==v||e[2]!==r?(b=y?y.isExpanded(r):v,e[0]=y,e[1]=v,e[2]=r,e[3]=b):b=e[3];const g=b;let j;e[4]!==y||e[5]!==r?(j=()=>y?y.toggle(r):N(d5),e[4]=y,e[5]=r,e[6]=j):j=e[6];const C=j,M=Qt(m?.virtualMcpId),{required:T,invalid:w}=e1();let k;e[7]!==i?(k=i!=null&&typeof i=="object"&&!Array.isArray(i)?i:{},e[7]=i,e[8]=k):k=e[8];const A=k;if(!n.properties)return null;let E;e[9]!==f||e[10]!==u||e[11]!==d||e[12]!==A||e[13]!==x||e[14]!==l||e[15]!==o||e[16]!==h||e[17]!==p||e[18]!==r||e[19]!==S||e[20]!==m||e[21]!==n?(E=s.jsx(V9,{schema:n,value:A,onChange:o,basePath:r,breadcrumbPath:f,onBreadcrumbChange:l,meta:d,decofile:u,onSaveReferencedBlock:p,previewBaseUrl:S,onAddSectionItem:x,onRequestAddSection:h,sandbox:m}),e[9]=f,e[10]=u,e[11]=d,e[12]=A,e[13]=x,e[14]=l,e[15]=o,e[16]=h,e[17]=p,e[18]=r,e[19]=S,e[20]=m,e[21]=n,e[22]=E):E=e[22];const F=E;if(L)return F;let R;e[23]!==r?(R=r.split(".").pop()??r,e[23]=r,e[24]=R):R=e[24];const O=R;let I;e[25]!==f||e[26]!==u||e[27]!==O||e[28]!==a||e[29]!==d||e[30]!==A||e[31]!==n?(I=X4(O,a,n,A,f,u,d),e[25]=f,e[26]=u,e[27]=O,e[28]=a,e[29]=d,e[30]=A,e[31]=n,e[32]=I):I=e[32];const _=g||I,H=`${r}-fields`;let K;e[33]!==_?(K=s.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-[var(--studio-control-radius,var(--radius-md))] text-muted-foreground transition-colors group-hover:text-accent-foreground",children:_?s.jsx(c0,{size:16}):s.jsx(N0,{size:16})}),e[33]=_,e[34]=K):K=e[34];const t9=m?.virtualMcpId;let z;e[35]!==w||e[36]!==T?(z=T&&w&&s.jsx(z0,{className:"ml-1 inline-block align-middle"}),e[35]=w,e[36]=T,e[37]=z):z=e[37];let s9;e[38]!==a||e[39]!==z?(s9=s.jsxs("span",{className:"min-w-0 truncate text-sm font-medium",children:[a,z]}),e[38]=a,e[39]=z,e[40]=s9):s9=e[40];let Z;e[41]!==n.description||e[42]!==s9||e[43]!==t9?(Z=s.jsx(t1,{description:n.description,virtualMcpId:t9,children:s9}),e[41]=n.description,e[42]=s9,e[43]=t9,e[44]=Z):Z=e[44];let l9;e[45]!==H||e[46]!==_||e[47]!==Z||e[48]!==K||e[49]!==C?(l9=s.jsxs("button",{type:"button","aria-expanded":_,"aria-controls":H,onClick:C,className:"group flex w-full min-w-0 items-center gap-2 rounded-[var(--studio-control-radius,var(--radius-md))] py-1.5 pr-2 text-left transition-colors hover:bg-accent hover:text-accent-foreground",children:[K,Z]}),e[45]=H,e[46]=_,e[47]=Z,e[48]=K,e[49]=C,e[50]=l9):l9=e[50];let i9;e[51]!==n.description||e[52]!==M?(i9=!M&&n.description&&s.jsx("p",{className:"break-words pl-9 text-xs leading-normal text-muted-foreground",children:n.description}),e[51]=n.description,e[52]=M,e[53]=i9):i9=e[53];let q;e[54]!==H||e[55]!==F||e[56]!==_?(q=_&&s.jsx("div",{id:H,className:"ml-3 grid min-w-0 max-w-full grid-cols-[minmax(0,1fr)] border-l border-border/80 pl-5",children:F}),e[54]=H,e[55]=F,e[56]=_,e[57]=q):q=e[57];let e9;return e[58]!==l9||e[59]!==i9||e[60]!==q?(e9=s.jsxs("div",{className:"min-w-0 space-y-2",children:[l9,i9,q]}),e[58]=l9,e[59]=i9,e[60]=q,e[61]=e9):e9=e[61],e9}function d5(t){return!t}const ft=[];function u5(t,e){return B2(t,e).map(n=>{const i=e[n.blockKey]??{},o=z2(L1(n.blockKey),e,t);return{blockKey:n.blockKey,title:n2(n.blockKey,i),description:Pt(o,t2(e),r0(t)),iconName:K0(n.matcherResolveType,void 0,r0(t))}})}const B1="Users03";function z1(t,e){return t.toLowerCase().includes(e.trim().toLowerCase())?1:0}function f5(t){const e=t.aliases;return e&&typeof e=="object"?e:{}}function m5(t){const e=t.manifest?.blocks??{},n=[],i=new Set,o=r0(t),r=o?f5(t):{};for(const[a,c]of Object.entries(e))if(a.includes("matchers")&&!a.startsWith("$live/"))for(const l of Object.keys(c)){if(l.toLowerCase().includes("always")||i.has(l))continue;i.add(l);const L=r[l];if(L&&Object.hasOwn(c,L))continue;const d=e2(l,t),u=o?d.title&&d.title!==l?d.title:W9(l):d.title??W9(l);n.push({resolveType:l,title:u,description:d.description,iconName:K0(l,d.icon,o)})}return n}function p5(t,e,n){if(!t)return B1;const i=e.find(o=>o.resolveType===t);return i?i.iconName:K0(t,void 0,n)}function h5({currentRt:t,currentLabel:e,currentGlobalKey:n,matchers:i,globals:o=ft,onSelect:r,onSelectGlobal:a,named:c}){const l=L0(),[L,d]=P.useState(!1),[u,p]=P.useState({view:"rules"}),[S,x]=P.useState(!1),h=k=>{k&&(p({view:"rules"}),c?.load?.request()),d(k)},m=x9(),f=c?.kinds??ft,y=s4(f),v=y.size>0?i.filter(k=>!y.has(k.resolveType)):i,N=!n&&c?.selected?c.selected.kind:null,b=u.view==="rules"?null:f.find(k=>k.kind===u.kind)??null,g=async k=>{if(c){x(!0);try{await c.onPick(k)}finally{x(!1)}h(!1)}},C=(n?o.find(k=>k.blockKey===n):void 0)?.iconName??p5(t,i,l),M=i1(C),T=k=>{r(k),h(!1)},w=k=>{a?.(k),h(!1)};return s.jsxs(s.Fragment,{children:[s.jsxs("button",{type:"button",onClick:()=>h(!0),className:"flex h-10 w-full items-center gap-2 rounded-[var(--studio-control-radius,var(--radius-md))] border border-input bg-transparent px-3 text-left text-sm shadow-xs transition-colors hover:bg-accent cursor-pointer",children:[M&&s.jsx(M,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1 truncate",children:e}),s.jsx(c0,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"})]}),s.jsx(n4,{open:L,onOpenChange:h,title:m("sectionsEditor.matcherPicker.chooseRuleTitle"),description:m("sectionsEditor.matcherPicker.chooseRuleDescription"),className:"sm:max-w-lg",filter:z1,children:u.view==="names"&&b?s.jsx(i4,{kind:b,load:c?.load,currentName:c?.selected?.kind===b.kind?c.selected.name:null,onBack:()=>p({view:"rules"}),onPick:k=>{g({kind:b.kind,name:k})},onCreate:k=>p({view:"create",kind:b.kind,name:k})},b.kind):u.view==="create"&&b?s.jsx(f1,{kind:b.kind,initialName:u.name,existingNames:b.entries.map(k=>k.name),prefill:b.kind==="campaigns"?c?.campaignPrefill:null,pending:S,onBack:()=>p({view:"names",kind:b.kind}),onSubmit:k=>{g(k)}}):s.jsxs(s.Fragment,{children:[s.jsx(we,{placeholder:m("sectionsEditor.matcherPicker.searchRulesPlaceholder")}),s.jsxs(Ae,{children:[s.jsx(Me,{children:m("sectionsEditor.matcherPicker.noRulesFound")}),s.jsxs(v0,{children:[s.jsxs(s0,{value:`${m("sectionsEditor.matcherPicker.alwaysLabel")} ${m("sectionsEditor.matcherPicker.targetAllUsers")}`,onSelect:()=>T(""),className:h9("gap-2.5",!t&&!n&&"bg-accent/60"),children:[s.jsx(H0,{iconName:B1,size:"sm"}),s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[s.jsx("span",{className:"text-sm",children:m("sectionsEditor.matcherPicker.alwaysLabel")}),s.jsx("span",{className:"text-xs text-muted-foreground",children:m("sectionsEditor.matcherPicker.targetAllUsers")})]})]}),f.length>0&&s.jsx(r4,{kinds:f,currentKind:N,onOpen:k=>p({view:"names",kind:k})}),v.map(k=>s.jsxs(s0,{value:`${k.title} ${k.resolveType} ${k.description??""}`,onSelect:()=>T(k.resolveType),className:h9("gap-2.5",!n&&t===k.resolveType&&"bg-accent/60"),children:[s.jsx(H0,{iconName:k.iconName,size:"sm"}),s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[s.jsx("span",{className:"text-sm",children:k.title}),k.description&&s.jsx("span",{className:"truncate text-xs text-muted-foreground",children:k.description})]})]},k.resolveType))]}),o.length>0&&s.jsx(v0,{heading:m("sectionsEditor.matcherPicker.savedRulesHeading"),children:o.map(k=>s.jsxs(s0,{value:`${k.title} ${k.blockKey} ${k.description??""}`,onSelect:()=>w(k.blockKey),className:h9("gap-2.5",n===k.blockKey&&"bg-accent/60"),children:[s.jsx(H0,{iconName:k.iconName,size:"sm"}),s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[s.jsx("span",{className:"truncate text-sm",children:k.title}),k.description&&s.jsx("span",{className:"truncate text-xs text-muted-foreground",children:k.description})]})]},k.blockKey))})]})]})})]})}function nr(t,e,n,i,o){const r={...t[e]};if(o.length>1){const a=r.sections,c=[...a?.variants??[]];c[i]&&(c[i]=p3(a?.__resolveType,c[i],n)),r.sections={...a,variants:c}}else r.sections=n;return r}function sr(t){return structuredClone(t)}function ir(t){return!t.isSavedBlock&&!t.isMultivariate&&!t.isHidden}function mt(t){const e=t.replace(/[^A-Za-z0-9_ -]/g,"").replace(/\s+/g," ").trim();return/^[A-Za-z]/.test(e)?e:e?`Block ${e}`:""}function g5(t,e,n){const i=t.trim();return i?i.includes("/")?m0("sectionsEditor.pageSections.blockNameNoSlashes"):Object.hasOwn(e,i)?m0("sectionsEditor.pageSections.blockNameAlreadyExists"):/^[A-Za-z][A-Za-z0-9_ -]*$/.test(i)?n&&!le(i,n)?m0("sectionsEditor.pageSections.blockNameIsBlockType"):null:m0("sectionsEditor.pageSections.blockNameInvalidChars"):m0("sectionsEditor.pageSections.blockNameRequired")}function pt(t){const e=G.c(6),{rule:n,matchers:i}=t,o=L0(),r=n?.__resolveType??"";let a;if(e[0]!==i||e[1]!==r||e[2]!==o){const d=i.find(u=>u.resolveType===r)?.iconName??K0(r,void 0,o);a=i1(d),e[0]=i,e[1]=r,e[2]=o,e[3]=a}else a=e[3];const c=a;if(!c)return null;let l;return e[4]!==c?(l=s.jsx(c,{size:14,className:"shrink-0"}),e[4]=c,e[5]=l):l=e[5],l}function ht(t){return t.map(e=>`${e.label}|${e.rule?.__resolveType??""}`).join(`
`)}function gt(t){return t.map((e,n)=>({id:crypto.randomUUID(),index:n,variant:e}))}function x5(t,e){const n=new Map;for(const c of t){const l=n.get(c.variant.label);l?l.push(c):n.set(c.variant.label,[c])}const i=[],o=new Set,r=e.map((c,l)=>{const L=n.get(c.label)?.shift();return L?(o.add(L.id),{id:L.id,index:l,variant:c}):(i.push(l),{id:"",index:l,variant:c})}),a=t.filter(c=>!o.has(c.id));for(const c of i){const l=a.shift(),L=r[c];L.id=l?.id??crypto.randomUUID()}return r}function y5(t){return t.map((e,n)=>({...e,index:n}))}function V1(t){const e=G.c(19),{label:n,effectiveRule:i,matchers:o,canDelete:r,dragging:a,onRename:c,onDuplicate:l,onDelete:L}=t,d=x9(),u=w9();let p;e[0]!==u||e[1]!==a||e[2]!==i||e[3]!==o?(p=u?s.jsxs("span",{className:"relative size-4 shrink-0",children:[s.jsx("span",{className:h9("absolute inset-0 flex items-center justify-center transition-opacity",a?"opacity-0":"group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"),children:s.jsx(pt,{rule:i,matchers:o})}),s.jsx(Re,{"aria-hidden":!0,className:h9("absolute inset-0 size-4 transition-opacity",a?"opacity-100":"opacity-0 group-hover:opacity-100 group-has-[:focus-visible]:opacity-100")})]}):s.jsx(pt,{rule:i,matchers:o}),e[0]=u,e[1]=a,e[2]=i,e[3]=o,e[4]=p):p=e[4];let S;e[5]!==n?(S=s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:n}),e[5]=n,e[6]=S):S=e[6];let x;e[7]!==r||e[8]!==a||e[9]!==n||e[10]!==L||e[11]!==l||e[12]!==c||e[13]!==d?(x=!a&&s.jsxs(Y9,{children:[s.jsx(U0,{label:d("sectionsEditor.pageVariantTabs.actionsAriaLabel",{label:n}),classicClassName:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 data-[state=open]:opacity-100"}),s.jsxs(q9,{align:"end",className:"w-36",children:[s.jsxs(A9,{onClick:m=>{m.stopPropagation(),c?.()},children:[s.jsx(w2,{size:14}),d("sectionsEditor.pageVariantTabs.renameAction")]}),s.jsxs(A9,{onClick:m=>{m.stopPropagation(),l?.()},children:[s.jsx(he,{size:14}),d("sectionsEditor.pageVariantTabs.duplicateAction")]}),s.jsx(Z0,{}),s.jsxs(A9,{variant:"destructive",disabled:!r,onClick:m=>{m.stopPropagation(),L?.()},children:[s.jsx(X9,{size:14}),d("sectionsEditor.pageVariantTabs.deleteAction")]})]})]}),e[7]=r,e[8]=a,e[9]=n,e[10]=L,e[11]=l,e[12]=c,e[13]=d,e[14]=x):x=e[14];let h;return e[15]!==p||e[16]!==S||e[17]!==x?(h=s.jsxs(s.Fragment,{children:[p,S,x]}),e[15]=p,e[16]=S,e[17]=x,e[18]=h):h=e[18],h}function v5(t){const e=G.c(34),{entry:n,isActive:i,canDelete:o,decofile:r,meta:a,matchers:c,onSelect:l,onRename:L,onDuplicate:d,onDelete:u}=t;let p;e[0]!==n.id?(p={id:n.id,animateLayoutChanges:b5},e[0]=n.id,e[1]=p):p=e[1];const{attributes:S,listeners:x,setNodeRef:h,transform:m,isDragging:f}=Ne(p),y=w9();let v;e[2]!==m?(v=ge.Transform.toString(m?{...m,x:0}:null),e[2]=m,e[3]=v):v=e[3];const N=f?0:void 0;let b;e[4]!==v||e[5]!==N?(b={transform:v,opacity:N},e[4]=v,e[5]=N,e[6]=b):b=e[6];const g=b,j=a??void 0;let C;e[7]!==r||e[8]!==n.variant.rule||e[9]!==j?(C=Te(n.variant.rule,r,j),e[7]=r,e[8]=n.variant.rule,e[9]=j,e[10]=C):C=e[10];const M=C;let T;e[11]!==l?(T=E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),l())},e[11]=l,e[12]=T):T=e[12];let w;e[13]!==y||e[14]!==i||e[15]!==f?(w=h9(u0({tone:y?"default":"variant",selected:i}),f?"cursor-grabbing":"cursor-pointer active:cursor-grabbing"),e[13]=y,e[14]=i,e[15]=f,e[16]=w):w=e[16];let k;e[17]!==o||e[18]!==M||e[19]!==n.variant.label||e[20]!==c||e[21]!==u||e[22]!==d||e[23]!==L?(k=s.jsx(V1,{label:n.variant.label,effectiveRule:M,matchers:c,canDelete:o,onRename:L,onDuplicate:d,onDelete:u}),e[17]=o,e[18]=M,e[19]=n.variant.label,e[20]=c,e[21]=u,e[22]=d,e[23]=L,e[24]=k):k=e[24];let A;return e[25]!==S||e[26]!==x||e[27]!==l||e[28]!==h||e[29]!==g||e[30]!==T||e[31]!==w||e[32]!==k?(A=s.jsx("div",{ref:h,style:g,...S,...x,onClick:l,onKeyDown:T,className:w,children:k}),e[25]=S,e[26]=x,e[27]=l,e[28]=h,e[29]=g,e[30]=T,e[31]=w,e[32]=k,e[33]=A):A=e[33],A}function b5(){return!1}function j5(t){const e=G.c(13),{variant:n,decofile:i,meta:o,matchers:r}=t,a=w9(),c=o??void 0;let l;e[0]!==i||e[1]!==c||e[2]!==n.rule?(l=Te(n.rule,i,c),e[0]=i,e[1]=c,e[2]=n.rule,e[3]=l):l=e[3];const L=l;let d;e[4]!==a?(d=h9(u0({tone:a?"default":"variant",selected:!0,className:"cursor-grabbing shadow-lift"})),e[4]=a,e[5]=d):d=e[5];let u;e[6]!==L||e[7]!==r||e[8]!==n.label?(u=s.jsx(V1,{label:n.label,effectiveRule:L,matchers:r,canDelete:!1,dragging:!0}),e[6]=L,e[7]=r,e[8]=n.label,e[9]=u):u=e[9];let p;return e[10]!==d||e[11]!==u?(p=s.jsx("div",{className:d,children:u}),e[10]=d,e[11]=u,e[12]=p):p=e[12],p}function rr(t){const e=G.c(80),{listKey:n,variants:i,activeIndex:o,decofile:r,meta:a,matchers:c,onSelect:l,onReorder:L,onRename:d,onDuplicate:u,onDelete:p,onAdd:S}=t,x=x9(),h=w9();let m;e[0]!==i?(m=()=>gt(i),e[0]=i,e[1]=m):m=e[1];const[f,y]=P.useState(m),[v,N]=P.useState(null),[b,g]=P.useState(n),[j,C]=P.useState(i.length);let M;e[2]!==i?(M=()=>ht(i),e[2]=i,e[3]=M):M=e[3];const[T,w]=P.useState(M),k=P.useRef(!1),A=ht(i);b!==n?(g(n),C(i.length),w(A),y(gt(i))):(j!==i.length||T!==A)&&(C(i.length),w(A),y(Q=>x5(Q,i)));let E;e[4]===Symbol.for("react.memo_cache_sentinel")?(E={activationConstraint:{distance:8}},e[4]=E):E=e[4];let F;e[5]===Symbol.for("react.memo_cache_sentinel")?(F={coordinateGetter:Ce},e[5]=F):F=e[5];const R=xe(o0(ve,E),o0(ye,F));let O;e[6]!==f?(O=f.map(S5),e[6]=f,e[7]=O):O=e[7];const I=O,D=i.length>1;let _;e[8]!==f?(_=Q=>{const o9=String(Q.active.id);N(f.find(y9=>y9.id===o9)??null)},e[8]=f,e[9]=_):_=e[9];const H=_;let K;e[10]!==I||e[11]!==L?(K=Q=>{N(null);const{active:o9,over:y9}=Q;if(!y9||o9.id===y9.id)return;const g9=I.indexOf(String(o9.id)),j9=I.indexOf(String(y9.id));g9===-1||j9===-1||(y(E9=>y5(I0([...E9],g9,j9))),k.current=!0,requestAnimationFrame(()=>{k.current=!1}),L(g9,j9))},e[10]=I,e[11]=L,e[12]=K):K=e[12];const t9=K;let z;e[13]===Symbol.for("react.memo_cache_sentinel")?(z=()=>{N(null)},e[13]=z):z=e[13];const s9=z;let Z,l9,i9,q,e9,$,Y,W,J,r9,n9,p9,X;if(e[14]!==o||e[15]!==D||e[16]!==h||e[17]!==r||e[18]!==f||e[19]!==I||e[20]!==t9||e[21]!==H||e[22]!==c||e[23]!==a||e[24]!==S||e[25]!==p||e[26]!==u||e[27]!==d||e[28]!==l||e[29]!==R||e[30]!==x){const Q=g9=>{k.current||l(g9)},o9=h?"px-2":"space-y-1 border-b p-2";e[44]!==o9?(n9=h9(o9),e[44]=o9,e[45]=n9):n9=e[45],e[46]!==h||e[47]!==S||e[48]!==x?(p9=!h&&s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:x("sectionsEditor.pageVariantTabs.variantsLabel")}),s.jsxs(z9,{children:[s.jsx($9,{asChild:!0,children:s.jsx(C9,{type:"button",variant:"ghost",size:"icon-xs","aria-label":x("sectionsEditor.pageVariantTabs.addVariantAriaLabel"),onClick:S,children:s.jsx(l0,{size:14})})}),s.jsx(B9,{children:x("sectionsEditor.pageVariantTabs.addVariantTooltip")})]})]}),e[46]=h,e[47]=S,e[48]=x,e[49]=p9):p9=e[49],l9=be,$=R,Y=je,W=H,J=t9,r9=s9,Z=ke,q=I,e9=Ee;const y9=h?"space-y-1":"space-y-0.5";e[50]!==y9?(X=h9(y9),e[50]=y9,e[51]=X):X=e[51],i9=f.map(g9=>s.jsx(v5,{entry:g9,isActive:g9.index===o,canDelete:D,decofile:r,meta:a,matchers:c,onSelect:()=>Q(g9.index),onRename:()=>d(g9.index),onDuplicate:()=>u(g9.index),onDelete:()=>p(g9.index)},g9.id)),e[14]=o,e[15]=D,e[16]=h,e[17]=r,e[18]=f,e[19]=I,e[20]=t9,e[21]=H,e[22]=c,e[23]=a,e[24]=S,e[25]=p,e[26]=u,e[27]=d,e[28]=l,e[29]=R,e[30]=x,e[31]=Z,e[32]=l9,e[33]=i9,e[34]=q,e[35]=e9,e[36]=$,e[37]=Y,e[38]=W,e[39]=J,e[40]=r9,e[41]=n9,e[42]=p9,e[43]=X}else Z=e[31],l9=e[32],i9=e[33],q=e[34],e9=e[35],$=e[36],Y=e[37],W=e[38],J=e[39],r9=e[40],n9=e[41],p9=e[42],X=e[43];let d9;e[52]!==i9||e[53]!==X?(d9=s.jsx("div",{className:X,children:i9}),e[52]=i9,e[53]=X,e[54]=d9):d9=e[54];let m9;e[55]!==Z||e[56]!==q||e[57]!==e9||e[58]!==d9?(m9=s.jsx(Z,{items:q,strategy:e9,children:d9}),e[55]=Z,e[56]=q,e[57]=e9,e[58]=d9,e[59]=m9):m9=e[59];let a9;e[60]!==v||e[61]!==r||e[62]!==c||e[63]!==a?(a9=v?s.jsx(j5,{variant:v.variant,decofile:r,meta:a,matchers:c}):null,e[60]=v,e[61]=r,e[62]=c,e[63]=a,e[64]=a9):a9=e[64];let f9;e[65]!==a9?(f9=B0.createPortal(s.jsx(Se,{dropAnimation:$e,children:a9}),document.body),e[65]=a9,e[66]=f9):f9=e[66];let U;e[67]!==l9||e[68]!==$||e[69]!==Y||e[70]!==W||e[71]!==J||e[72]!==r9||e[73]!==m9||e[74]!==f9?(U=s.jsxs(l9,{sensors:$,collisionDetection:Y,onDragStart:W,onDragEnd:J,onDragCancel:r9,children:[m9,f9]}),e[67]=l9,e[68]=$,e[69]=Y,e[70]=W,e[71]=J,e[72]=r9,e[73]=m9,e[74]=f9,e[75]=U):U=e[75];let B;return e[76]!==n9||e[77]!==p9||e[78]!==U?(B=s.jsxs("div",{className:n9,children:[p9,U]}),e[76]=n9,e[77]=p9,e[78]=U,e[79]=B):B=e[79],B}function S5(t){return t.id}function K1(t){const e=G.c(6),{onAdd:n}=t,i=x9();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(l0,{size:14}),e[0]=o):o=e[0];let r;e[1]!==i?(r=i("sectionsEditor.pageVariantTabs.addVariantTooltip"),e[1]=i,e[2]=r):r=e[2];let a;return e[3]!==n||e[4]!==r?(a=s.jsxs(C9,{type:"button",variant:"outline",className:"w-full",onClick:n,children:[o,r]}),e[3]=n,e[4]=r,e[5]=a):a=e[5],a}function N5(t){const e=G.c(13),{path:n,onNavigate:i,label:o,backTitle:r}=t;if(n.length===0)return null;let a;e[0]!==i?(a=()=>i([]),e[0]=i,e[1]=a):a=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(a2,{className:"size-3.5"}),e[2]=c):c=e[2];let l;e[3]!==r||e[4]!==a?(l=s.jsx("button",{type:"button",onClick:a,className:"flex shrink-0 items-center gap-0.5 rounded-[var(--studio-control-radius,var(--radius-md))] px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",title:r,children:c}),e[3]=r,e[4]=a,e[5]=l):l=e[5];let L;e[6]!==i||e[7]!==n?(L=n.map((u,p)=>{const S=p===n.length-1,x=R9(u);return s.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[p>0&&s.jsx(N0,{className:"size-3 shrink-0 text-muted-foreground/60"}),s.jsx("button",{type:"button",onClick:()=>i(n.slice(0,p+1)),title:x,className:h9("min-w-0 truncate rounded-[var(--studio-control-radius,var(--radius-md))] px-1 py-0.5 text-left transition-colors hover:bg-accent hover:text-accent-foreground",S?"font-medium text-foreground":"text-muted-foreground"),children:x})]},`${x}-${p}`)}),e[6]=i,e[7]=n,e[8]=L):L=e[8];let d;return e[9]!==o||e[10]!==l||e[11]!==L?(d=s.jsxs("nav",{"aria-label":o,className:"flex min-w-0 items-center gap-1 overflow-hidden text-xs",children:[l,L]}),e[9]=o,e[10]=l,e[11]=L,e[12]=d):d=e[12],d}function C5(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function k5(t,e){return t[e]===void 0}function E5(t,e){return t?.type==="boolean"?!1:t?.type==="number"||t?.type==="integer"?0:e==="type"?"website":""}function T5(t){const e=G.c(9),{schema:n,value:i,onChange:o,siteDefaultSeo:r,formResetKey:a}=t,c=x9(),L=a1(n,I2).properties??{},d=_2();let u;e[0]!==r?(u=!!r&&Object.keys(r).length>0,e[0]=r,e[1]=u):u=e[1];const p=u,[S,x]=P.useState(a);let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={},e[2]=h):h=e[2];const[m,f]=P.useState(h);S!==a&&(x(a),f({}));let y;e[3]!==m||e[4]!==i?(y=C=>m[C]!==void 0?m[C]:k5(i,C),e[3]=m,e[4]=i,e[5]=y):y=e[5];const v=y,N=(C,M)=>{f(w=>({...w,[C]:M}));const T={...i};if(M)delete T[C];else{const w=r?.[C];T[C]=w??E5(L[C],C)}o(T)},b="min-w-0 space-y-6",g=O2.map(C=>{const M=L[C];if(!M)return null;const T=p&&d.includes(C),w=T&&v(C),k=w?r?.[C]??i[C]:i[C],A=M.title??C5(C);return s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:h9(w&&"pointer-events-none opacity-60"),children:_9({schema:M,value:k,onChange:E=>{w||o({...i,[C]:E})},path:C,label:A,required:C==="type",breadcrumbPath:[],onBreadcrumbChange:w5})}),T&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(o1,{id:`seo-use-default-${C}`,checked:w,onCheckedChange:E=>N(C,E)}),s.jsx(H9,{htmlFor:`seo-use-default-${C}`,className:"text-xs font-normal text-muted-foreground",children:c("sectionsEditor.generalSeoForm.useDefault")})]})]},C)});let j;return e[6]!==a||e[7]!==g?(j=s.jsx("div",{className:b,children:g},a),e[6]=a,e[7]=g,e[8]=j):j=e[8],j}function w5(){}function A5(t){const e=G.c(19),{schema:n,resolveType:i,value:o,formResetKey:r,onChange:a,onBreadcrumbChange:c,siteDefaultSeo:l}=t,L=L0();if(D2(i,n,L)==="general"){let m;e[0]!==a?(m=y=>a(y),e[0]=a,e[1]=m):m=e[1];let f;return e[2]!==r||e[3]!==n||e[4]!==l||e[5]!==m||e[6]!==o?(f=s.jsx(T5,{schema:n,value:o,onChange:m,siteDefaultSeo:l,formResetKey:r}),e[2]=r,e[3]=n,e[4]=l,e[5]=m,e[6]=o,e[7]=f):f=e[7],f}let u;e[8]!==i||e[9]!==n||e[10]!==L?(u=a1(n,i,L),e[8]=i,e[9]=n,e[10]=L,e[11]=u):u=e[11];const p=u;let S;e[12]===Symbol.for("react.memo_cache_sentinel")?(S=[],e[12]=S):S=e[12];const x=c??M5;let h;return e[13]!==p||e[14]!==r||e[15]!==a||e[16]!==x||e[17]!==o?(h=s.jsx(V9,{schema:p,value:o,onChange:a,basePath:"",breadcrumbPath:S,onBreadcrumbChange:x},r),e[13]=p,e[14]=r,e[15]=a,e[16]=x,e[17]=o,e[18]=h):h=e[18],h}function M5(){}const R5=[];function F5(t){const e=G.c(21),{schema:n,value:i,onChange:o,meta:r,decofile:a,onSaveReferencedBlock:c,sandbox:l}=t,L=x9();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[0]=d):d=e[0];const[u,p]=P.useState(d);let S;e[1]!==L?(S=L("sectionsEditor.sectionsEditorPanels.variantRuleBreadcrumb"),e[1]=L,e[2]=S):S=e[2];let x;e[3]!==L?(x=L("sectionsEditor.sectionsEditorPanels.backToRule"),e[3]=L,e[4]=x):x=e[4];let h;e[5]!==u||e[6]!==S||e[7]!==x?(h=s.jsx(N5,{path:u,onNavigate:p,label:S,backTitle:x}),e[5]=u,e[6]=S,e[7]=x,e[8]=h):h=e[8];let m;e[9]!==u||e[10]!==a||e[11]!==r||e[12]!==o||e[13]!==c||e[14]!==l||e[15]!==n||e[16]!==i?(m=s.jsx(V9,{schema:n,value:i,onChange:o,basePath:"",breadcrumbPath:u,onBreadcrumbChange:p,meta:r,decofile:a,onSaveReferencedBlock:c,sandbox:l}),e[9]=u,e[10]=a,e[11]=r,e[12]=o,e[13]=c,e[14]=l,e[15]=n,e[16]=i,e[17]=m):m=e[17];let f;return e[18]!==h||e[19]!==m?(f=s.jsxs("div",{className:"space-y-2",children:[h,m]}),e[18]=h,e[19]=m,e[20]=f):f=e[20],f}function or(t){const e=G.c(22),{activeSchema:n,formValue:i,formResetKey:o,onFormChange:r,onBreadcrumbChange:a,breadcrumbPath:c,emptyMessage:l,beforeForm:L,seoResolveType:d,siteDefaultSeo:u,meta:p,decofile:S,onSaveReferencedBlock:x,sandbox:h,previewBaseUrl:m,onRequestAddSection:f,onVariantMatcherOp:y}=t,v=c===void 0?R5:c;let N;e[0]!==n||e[1]!==v||e[2]!==S||e[3]!==o||e[4]!==i||e[5]!==p||e[6]!==a||e[7]!==r||e[8]!==f||e[9]!==x||e[10]!==y||e[11]!==m||e[12]!==h||e[13]!==d||e[14]!==u?(N=n&&i?d?s.jsx(A5,{schema:n,resolveType:d,value:i,formResetKey:o,onChange:r,onBreadcrumbChange:a,siteDefaultSeo:u}):s.jsx(V9,{schema:n,value:i,onChange:r,basePath:"",breadcrumbPath:v,onBreadcrumbChange:a,meta:p,decofile:S,onSaveReferencedBlock:x,sandbox:h,previewBaseUrl:m,onRequestAddSection:f,onVariantMatcherOp:y},o):null,e[0]=n,e[1]=v,e[2]=S,e[3]=o,e[4]=i,e[5]=p,e[6]=a,e[7]=r,e[8]=f,e[9]=x,e[10]=y,e[11]=m,e[12]=h,e[13]=d,e[14]=u,e[15]=N):N=e[15];const b=N;let g;e[16]!==l||e[17]!==b?(g=b??s.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:l}),e[16]=l,e[17]=b,e[18]=g):g=e[18];let j;return e[19]!==L||e[20]!==g?(j=s.jsx("div",{className:"min-w-0 max-w-full overflow-x-hidden px-6 py-4",children:s.jsxs("div",{className:"mx-auto max-w-2xl",children:[L,g]})}),e[19]=L,e[20]=g,e[21]=j):j=e[21],j}const ar="text-[oklch(0.45_0.15_160)] bg-[oklch(0.65_0.15_160/0.18)] dark:text-[oklch(0.78_0.15_160)] dark:bg-[oklch(0.65_0.15_160/0.22)]";function I5(t){const e=G.c(10),{children:n,className:i}=t,o=x9();let r;e[0]!==i?(r=h9("space-y-2 border-t px-3 pt-4",i),e[0]=i,e[1]=r):r=e[1];let a;e[2]!==o?(a=o("sectionsEditor.sectionsEditor.variantRule"),e[2]=o,e[3]=a):a=e[3];let c;e[4]!==a?(c=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:a}),e[4]=a,e[5]=c):c=e[5];let l;return e[6]!==n||e[7]!==r||e[8]!==c?(l=s.jsxs("div",{className:r,children:[c,n]}),e[6]=n,e[7]=r,e[8]=c,e[9]=l):l=e[9],l}function lr(t){const e=G.c(7),{children:n,onAdd:i}=t;let o;e[0]!==n?(o=s.jsx(p4,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"py-2",children:n})}),e[0]=n,e[1]=o):o=e[1];let r;e[2]!==i?(r=s.jsx("div",{className:"shrink-0 border-t p-2",children:s.jsx(K1,{onAdd:i})}),e[2]=i,e[3]=r):r=e[3];let a;return e[4]!==o||e[5]!==r?(a=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[o,r]}),e[4]=o,e[5]=r,e[6]=a):a=e[6],a}function Lr(t,e,n=!1){return V2(t,e,Bt(n))}function cr(t){const e=G.c(106),{pageKey:n,initialName:i,initialPath:o,onFieldChange:r,variant:a}=t,c=a===void 0?"form":a,l=x9(),[L,d]=P.useState(i),[u,p]=P.useState(o),[S,x]=P.useState(n),[h,m]=P.useState(null),f=P.useRef(!1),[y,v]=P.useState(null);S!==n&&(x(n),d(i),p(o),m(null),v(null));let N;e[0]!==o||e[1]!==u?(N=()=>{if(f.current){f.current=!1;return}const U=u.trim();if(U===o.trim()){p(o),v(null);return}const B=s2(U);if(B){v(B),p(o);return}v(null),m(U)},e[0]=o,e[1]=u,e[2]=N):N=e[2];const b=N;let g;e[3]!==r||e[4]!==h?(g=()=>{h!==null&&(p(h),r("path",h),m(null))},e[3]=r,e[4]=h,e[5]=g):g=e[5];const j=g;let C;e[6]!==o?(C=()=>{p(o),m(null)},e[6]=o,e[7]=C):C=e[7];const M=C;let T;e[8]!==o?(T=U=>{U.key==="Enter"?(U.preventDefault(),U.currentTarget.blur()):U.key==="Escape"&&(U.preventDefault(),f.current=!0,p(o),v(null),U.currentTarget.blur())},e[8]=o,e[9]=T):T=e[9];const w=T,k=h!==null;let A;e[10]!==M?(A=U=>{U||M()},e[10]=M,e[11]=A):A=e[11];let E;e[12]!==l?(E=l("sectionsEditor.sectionsEditorPanels.changePathTitle"),e[12]=l,e[13]=E):E=e[13];let F;e[14]!==E?(F=s.jsx(h3,{children:E}),e[14]=E,e[15]=F):F=e[15];const R=h??"";let O;e[16]!==o||e[17]!==l||e[18]!==R?(O=l("sectionsEditor.sectionsEditorPanels.changePathDescription",{from:o,to:R}),e[16]=o,e[17]=l,e[18]=R,e[19]=O):O=e[19];let I;e[20]!==O?(I=s.jsx(g3,{children:O}),e[20]=O,e[21]=I):I=e[21];let D;e[22]!==I||e[23]!==F?(D=s.jsxs(x3,{children:[F,I]}),e[22]=I,e[23]=F,e[24]=D):D=e[24];let _;e[25]!==l?(_=l("sectionsEditor.sectionsEditorPanels.changePathCancel"),e[25]=l,e[26]=_):_=e[26];let H;e[27]!==_?(H=s.jsx(y3,{children:_}),e[27]=_,e[28]=H):H=e[28];let K;e[29]!==j?(K=U=>{U.preventDefault(),j()},e[29]=j,e[30]=K):K=e[30];let t9;e[31]!==l?(t9=l("sectionsEditor.sectionsEditorPanels.changePathConfirm"),e[31]=l,e[32]=t9):t9=e[32];let z;e[33]!==K||e[34]!==t9?(z=s.jsx(v3,{onClick:K,children:t9}),e[33]=K,e[34]=t9,e[35]=z):z=e[35];let s9;e[36]!==H||e[37]!==z?(s9=s.jsxs(b3,{children:[H,z]}),e[36]=H,e[37]=z,e[38]=s9):s9=e[38];let Z;e[39]!==D||e[40]!==s9?(Z=s.jsxs(j3,{children:[D,s9]}),e[39]=D,e[40]=s9,e[41]=Z):Z=e[41];let l9;e[42]!==Z||e[43]!==k||e[44]!==A?(l9=s.jsx(S3,{open:k,onOpenChange:A,children:Z}),e[42]=Z,e[43]=k,e[44]=A,e[45]=l9):l9=e[45];const i9=l9;if(c==="header"){let U;e[46]!==r?(U=I9=>{d(I9.target.value),r("name",I9.target.value)},e[46]=r,e[47]=U):U=e[47];let B;e[48]!==l?(B=l("sectionsEditor.sectionsEditorPanels.pageNamePlaceholder"),e[48]=l,e[49]=B):B=e[49];let Q;e[50]!==L||e[51]!==U||e[52]!==B?(Q=s.jsx("input",{type:"text",value:L,onChange:U,className:"w-full bg-transparent text-sm font-semibold truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:B}),e[50]=L,e[51]=U,e[52]=B,e[53]=Q):Q=e[53];let o9;e[54]===Symbol.for("react.memo_cache_sentinel")?(o9=I9=>{p(I9.target.value),v(null)},e[54]=o9):o9=e[54];let y9;e[55]!==l?(y9=l("sectionsEditor.sectionsEditorPanels.pathPlaceholder"),e[55]=l,e[56]=y9):y9=e[56];let g9;e[57]!==b||e[58]!==w||e[59]!==u||e[60]!==y9?(g9=s.jsx("input",{type:"text",value:u,onChange:o9,onBlur:b,onKeyDown:w,className:"w-full bg-transparent text-xs text-muted-foreground truncate outline-none border-none p-0 focus:ring-0 placeholder:text-muted-foreground",placeholder:y9}),e[57]=b,e[58]=w,e[59]=u,e[60]=y9,e[61]=g9):g9=e[61];let j9;e[62]!==y?(j9=y&&s.jsx("p",{className:"text-xs text-destructive",children:y}),e[62]=y,e[63]=j9):j9=e[63];let E9;return e[64]!==i9||e[65]!==Q||e[66]!==g9||e[67]!==j9?(E9=s.jsxs("div",{className:"space-y-1",children:[Q,g9,j9,i9]}),e[64]=i9,e[65]=Q,e[66]=g9,e[67]=j9,e[68]=E9):E9=e[68],E9}let q;e[69]!==l?(q=l("sectionsEditor.sectionsEditorPanels.pageNameLabel"),e[69]=l,e[70]=q):q=e[70];let e9;e[71]!==q?(e9=s.jsx(H9,{htmlFor:"page-name",children:q}),e[71]=q,e[72]=e9):e9=e[72];let $;e[73]!==r?($=U=>{d(U.target.value),r("name",U.target.value)},e[73]=r,e[74]=$):$=e[74];let Y;e[75]!==l?(Y=l("sectionsEditor.sectionsEditorPanels.pageNamePlaceholder"),e[75]=l,e[76]=Y):Y=e[76];let W;e[77]!==L||e[78]!==$||e[79]!==Y?(W=s.jsx("input",{type:"text",id:"page-name",value:L,onChange:$,className:"w-full truncate outline-none h-9 rounded-[var(--studio-control-radius,var(--radius-md))] border border-input bg-transparent px-3 text-sm placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/20",placeholder:Y}),e[77]=L,e[78]=$,e[79]=Y,e[80]=W):W=e[80];let J;e[81]!==e9||e[82]!==W?(J=s.jsxs("div",{className:"space-y-1.5",children:[e9,W]}),e[81]=e9,e[82]=W,e[83]=J):J=e[83];let r9;e[84]!==l?(r9=l("sectionsEditor.sectionsEditorPanels.pathLabel"),e[84]=l,e[85]=r9):r9=e[85];let n9;e[86]!==r9?(n9=s.jsx(H9,{htmlFor:"page-path",children:r9}),e[86]=r9,e[87]=n9):n9=e[87];let p9;e[88]===Symbol.for("react.memo_cache_sentinel")?(p9=U=>{p(U.target.value),v(null)},e[88]=p9):p9=e[88];let X;e[89]!==l?(X=l("sectionsEditor.sectionsEditorPanels.pathPlaceholder"),e[89]=l,e[90]=X):X=e[90];let d9;e[91]!==b||e[92]!==w||e[93]!==u||e[94]!==X?(d9=s.jsx("input",{type:"text",id:"page-path",value:u,onChange:p9,onBlur:b,onKeyDown:w,className:"w-full truncate outline-none h-9 rounded-[var(--studio-control-radius,var(--radius-md))] border border-input bg-transparent px-3 text-sm placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/20",placeholder:X}),e[91]=b,e[92]=w,e[93]=u,e[94]=X,e[95]=d9):d9=e[95];let m9;e[96]!==n9||e[97]!==d9?(m9=s.jsxs("div",{className:"space-y-1.5",children:[n9,d9]}),e[96]=n9,e[97]=d9,e[98]=m9):m9=e[98];let a9;e[99]!==y?(a9=y&&s.jsx("p",{className:"text-xs text-destructive",children:y}),e[99]=y,e[100]=a9):a9=e[100];let f9;return e[101]!==i9||e[102]!==J||e[103]!==m9||e[104]!==a9?(f9=s.jsxs("div",{className:"space-y-4",children:[J,m9,a9,i9]}),e[101]=i9,e[102]=J,e[103]=m9,e[104]=a9,e[105]=f9):f9=e[105],f9}function dr(t){const e=G.c(21),{onClick:n}=t,i=x9();if(!w9()){let L;e[0]!==i?(L=i("sectionsEditor.sectionsEditorPanels.addVariant"),e[0]=i,e[1]=L):L=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(s1,{size:14}),e[2]=d):d=e[2];let u;e[3]!==n||e[4]!==L?(u=s.jsx($9,{asChild:!0,children:s.jsx(C9,{type:"button",variant:"ghost",size:"icon-sm","aria-label":L,className:"shrink-0 text-[oklch(0.65_0.15_160)]",onClick:n,children:d})}),e[3]=n,e[4]=L,e[5]=u):u=e[5];let p;e[6]!==i?(p=i("sectionsEditor.sectionsEditorPanels.addVariant"),e[6]=i,e[7]=p):p=e[7];let S;e[8]!==p?(S=s.jsx(B9,{side:"bottom",children:p}),e[8]=p,e[9]=S):S=e[9];let x;return e[10]!==u||e[11]!==S?(x=s.jsxs(z9,{children:[u,S]}),e[10]=u,e[11]=S,e[12]=x):x=e[12],x}let r;e[13]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(y0,{className:"size-3.5 shrink-0"}),e[13]=r):r=e[13];let a;e[14]!==i?(a=i("sectionsEditor.sectionsEditorPanels.createVariants"),e[14]=i,e[15]=a):a=e[15];let c;e[16]!==a?(c=s.jsx("span",{className:"truncate",children:a}),e[16]=a,e[17]=c):c=e[17];let l;return e[18]!==n||e[19]!==c?(l=s.jsxs(C9,{type:"button",variant:"outline",size:"sm",className:"shrink-0 gap-1 px-2 text-xs",onClick:n,children:[r,c]}),e[18]=n,e[19]=c,e[20]=l):l=e[20],l}const U1=h9("inline-flex h-7 shrink-0 cursor-pointer items-center gap-1 px-2 text-xs font-medium transition-colors","rounded-[var(--studio-control-radius,var(--radius-lg))] bg-[var(--studio-input-background)] text-foreground shadow-edge","hover:bg-[var(--studio-outline-hover-background)] hover:text-accent-foreground");function G1(t){const e=G.c(6),{icon:n,label:i}=t;let o;e[0]!==i?(o=s.jsx("span",{className:"max-w-[120px] truncate",children:i}),e[0]=i,e[1]=o):o=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(c0,{className:"size-3 shrink-0"}),e[2]=r):r=e[2];let a;return e[3]!==n||e[4]!==o?(a=s.jsx(ce,{asChild:!0,children:s.jsxs("button",{type:"button",className:U1,children:[n,o,r]})}),e[3]=n,e[4]=o,e[5]=a):a=e[5],a}function H1(t){const e=G.c(12),{heading:n,options:i,activeIndex:o,onSelect:r}=t;let a;e[0]!==n?(a=s.jsx(N3,{className:"text-xs font-medium text-muted-foreground",children:n}),e[0]=n,e[1]=a):a=e[1];let c;if(e[2]!==o||e[3]!==r||e[4]!==i){let L;e[6]!==o||e[7]!==r?(L=(d,u)=>s.jsxs(A9,{onClick:()=>r(u),children:[s.jsx(de,{className:h9("size-3.5",u===o?"opacity-100":"opacity-0")}),s.jsx("span",{className:"truncate",children:d.label})]},`${d.label}-${u}`),e[6]=o,e[7]=r,e[8]=L):L=e[8],c=i.map(L),e[2]=o,e[3]=r,e[4]=i,e[5]=c}else c=e[5];let l;return e[9]!==a||e[10]!==c?(l=s.jsxs(s.Fragment,{children:[a,c]}),e[9]=a,e[10]=c,e[11]=l):l=e[11],l}function _5(t){const e=G.c(31),{variants:n,activeIndex:i,onSelect:o,onManage:r,onRemoveAll:a}=t,c=x9(),l=n[i];if(!l)return null;let L;e[0]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(y0,{className:"size-3.5 shrink-0"}),e[0]=L):L=e[0];let d;e[1]!==l.label?(d=s.jsx(G1,{icon:L,label:l.label}),e[1]=l.label,e[2]=d):d=e[2];let u;e[3]!==c?(u=c("sectionsEditor.pageVariantTabs.variantsLabel"),e[3]=c,e[4]=u):u=e[4];let p;e[5]!==i||e[6]!==o||e[7]!==u||e[8]!==n?(p=s.jsx(H1,{heading:u,options:n,activeIndex:i,onSelect:o}),e[5]=i,e[6]=o,e[7]=u,e[8]=n,e[9]=p):p=e[9];let S;e[10]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Z0,{}),e[10]=S):S=e[10];let x;e[11]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(l2,{className:"size-3.5"}),e[11]=x):x=e[11];let h;e[12]!==c?(h=c("sectionsEditor.sectionsEditor.manageVariants"),e[12]=c,e[13]=h):h=e[13];let m;e[14]!==r||e[15]!==h?(m=s.jsxs(A9,{onClick:r,children:[x,h]}),e[14]=r,e[15]=h,e[16]=m):m=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Z0,{}),e[17]=f):f=e[17];let y;e[18]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(X9,{className:"size-3.5"}),e[18]=y):y=e[18];let v;e[19]!==c?(v=c("sectionsEditor.sectionVariantList.removeAllVariants"),e[19]=c,e[20]=v):v=e[20];let N;e[21]!==a||e[22]!==v?(N=s.jsxs(A9,{variant:"destructive",onClick:a,children:[y,v]}),e[21]=a,e[22]=v,e[23]=N):N=e[23];let b;e[24]!==N||e[25]!==p||e[26]!==m?(b=s.jsxs(q9,{align:"end",className:"w-52",children:[p,S,m,f,N]}),e[24]=N,e[25]=p,e[26]=m,e[27]=b):b=e[27];let g;return e[28]!==b||e[29]!==d?(g=s.jsxs(Y9,{children:[d,b]}),e[28]=b,e[29]=d,e[30]=g):g=e[30],g}const Ve=P.createContext(null);function ur(t){const e=G.c(5),{children:n}=t,[i,o]=P.useState(null);let r;e[0]!==i?(r={target:i,setTarget:o},e[0]=i,e[1]=r):r=e[1];let a;return e[2]!==n||e[3]!==r?(a=s.jsx(Ve,{value:r,children:n}),e[2]=n,e[3]=r,e[4]=a):a=e[4],a}function fr(){const t=G.c(3),e=P.use(Ve);let n;t[0]!==e?(n=()=>r=>{if(!(!r||!e))return e.setTarget(r),()=>{e.setTarget(a=>a===r?null:a)}},t[0]=e,t[1]=n):n=t[1];const[i]=P.useState(n);if(!e)return null;let o;return t[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{ref:i,className:"contents"}),t[2]=o):o=t[2],o}function W1({children:t}){const e=P.use(Ve);return e?.target?B0.createPortal(t,e.target):null}function xt(t){const e=G.c(61),{open:n,onOpenChange:i,defaultBlockId:o,isPending:r,onSubmit:a}=t,c=o===void 0?"":o,l=r===void 0?!1:r,[L,d]=P.useState(c),[u,p]=P.useState(n);n!==u&&(p(n),n&&d(c));let S;e[0]!==l||e[1]!==i?(S=K=>{!K&&!l&&i(!1)},e[0]=l,e[1]=i,e[2]=S):S=e[2];const x=S;let h;e[3]!==L||e[4]!==l||e[5]!==a?(h=async K=>{K.preventDefault();const t9=L.trim();!t9||l||await a(t9)},e[3]=L,e[4]=l,e[5]=a,e[6]=h):h=e[6];const m=h,f=x9();let y;e[7]!==f?(y=f("sectionsEditor.makeReusableModal.title"),e[7]=f,e[8]=y):y=e[8];let v;e[9]!==y?(v=s.jsx(zt,{children:y}),e[9]=y,e[10]=v):v=e[10];let N;e[11]!==f?(N=f("sectionsEditor.makeReusableModal.description"),e[11]=f,e[12]=N):N=e[12];let b;e[13]!==N?(b=s.jsx(Vt,{children:N}),e[13]=N,e[14]=b):b=e[14];let g;e[15]!==v||e[16]!==b?(g=s.jsxs(Kt,{children:[v,b]}),e[15]=v,e[16]=b,e[17]=g):g=e[17];let j;e[18]!==f?(j=f("sectionsEditor.makeReusableModal.blockNameLabel"),e[18]=f,e[19]=j):j=e[19];let C;e[20]!==j?(C=s.jsx("label",{htmlFor:"block-id",className:"text-sm font-medium",children:j}),e[20]=j,e[21]=C):C=e[21];let M;e[22]===Symbol.for("react.memo_cache_sentinel")?(M=K=>d(K.target.value),e[22]=M):M=e[22];let T;e[23]!==f?(T=f("sectionsEditor.makeReusableModal.blockNamePlaceholder"),e[23]=f,e[24]=T):T=e[24];let w;e[25]!==L||e[26]!==l||e[27]!==T?(w=s.jsx(F9,{id:"block-id",value:L,onChange:M,placeholder:T,autoFocus:!0,disabled:l}),e[25]=L,e[26]=l,e[27]=T,e[28]=w):w=e[28];let k;e[29]!==C||e[30]!==w?(k=s.jsxs("div",{className:"py-4 space-y-2",children:[C,w]}),e[29]=C,e[30]=w,e[31]=k):k=e[31];let A;e[32]!==i?(A=()=>i(!1),e[32]=i,e[33]=A):A=e[33];let E;e[34]!==f?(E=f("sectionsEditor.makeReusableModal.cancel"),e[34]=f,e[35]=E):E=e[35];let F;e[36]!==l||e[37]!==A||e[38]!==E?(F=s.jsx(C9,{type:"button",variant:"outline",onClick:A,disabled:l,children:E}),e[36]=l,e[37]=A,e[38]=E,e[39]=F):F=e[39];let R;e[40]!==L||e[41]!==l?(R=!L.trim()||l,e[40]=L,e[41]=l,e[42]=R):R=e[42];let O;e[43]!==l||e[44]!==f?(O=l?s.jsxs(s.Fragment,{children:[s.jsx(oe,{className:"size-3.5"}),f("sectionsEditor.makeReusableModal.saving")]}):f("sectionsEditor.makeReusableModal.save"),e[43]=l,e[44]=f,e[45]=O):O=e[45];let I;e[46]!==R||e[47]!==O?(I=s.jsx(C9,{type:"submit",disabled:R,children:O}),e[46]=R,e[47]=O,e[48]=I):I=e[48];let D;e[49]!==F||e[50]!==I?(D=s.jsxs(Ut,{children:[F,I]}),e[49]=F,e[50]=I,e[51]=D):D=e[51];let _;e[52]!==m||e[53]!==k||e[54]!==D||e[55]!==g?(_=s.jsx(Gt,{className:"sm:max-w-md",children:s.jsxs("form",{onSubmit:m,children:[g,k,D]})}),e[52]=m,e[53]=k,e[54]=D,e[55]=g,e[56]=_):_=e[56];let H;return e[57]!==x||e[58]!==n||e[59]!==_?(H=s.jsx(Ht,{open:n,onOpenChange:x,children:_}),e[57]=x,e[58]=n,e[59]=_,e[60]=H):H=e[60],H}function O5(t){if(!t?.properties)return{};const e={};for(const[n,i]of Object.entries(t.properties))n.startsWith("__")||n==="@type"||(i.default!==void 0?e[n]=i.default:i.type==="boolean"?e[n]=!1:i.type==="string"?e[n]="":i.type==="number"||i.type==="integer"?e[n]=0:i.type==="object"&&(e[n]={}));return e}function D5(t){const e=G.c(13),{blockKey:n}=t,i=x9();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(e0,{size:11}),e[0]=o):o=e[0];let r;e[1]!==i?(r=i("sectionsEditor.anyOfField.global"),e[1]=i,e[2]=r):r=e[2];let a;e[3]!==r?(a=s.jsx($9,{asChild:!0,children:s.jsxs("span",{className:"inline-flex shrink-0 items-center gap-1 rounded-[var(--studio-control-radius,var(--radius))] bg-global-section/14 px-1.5 py-0.5 text-2xs font-medium text-global-section-fg dark:text-global-section-fg-dark",children:[o,r]})}),e[3]=r,e[4]=a):a=e[4];let c;e[5]!==n||e[6]!==i?(c=i("sectionsEditor.anyOfField.globalLoaderTooltip",{blockKey:n}),e[5]=n,e[6]=i,e[7]=c):c=e[7];let l;e[8]!==c?(l=s.jsx(B9,{side:"top",className:"max-w-[260px]",children:c}),e[8]=c,e[9]=l):l=e[9];let L;return e[10]!==a||e[11]!==l?(L=s.jsxs(z9,{children:[a,l]}),e[10]=a,e[11]=l,e[12]=L):L=e[12],L}function P5(t){const e=G.c(37),{path:n,open:i,onOpenChange:o,title:r,nested:a,nestedBlockRef:c,globalBlockKey:l,onDetach:L,onMakeGlobal:d}=t,u=x9(),p=w9()?h0:d1,S=`${n}-loader-config`,x=c&&"ml-1";let h;e[0]!==x?(h=h9("rounded-[var(--studio-surface-radius,var(--radius-lg))] border border-border/80 bg-muted/30",x),e[0]=x,e[1]=h):h=e[1];let m;e[2]!==o||e[3]!==i?(m=()=>o(!i),e[2]=o,e[3]=i,e[4]=m):m=e[4];let f;e[5]!==i?(f=s.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-muted-foreground transition-colors group-hover:text-foreground",children:i?s.jsx(c0,{size:16}):s.jsx(N0,{size:16})}),e[5]=i,e[6]=f):f=e[6];let y;e[7]!==r?(y=s.jsx("span",{className:"truncate text-xs font-medium text-muted-foreground",children:r}),e[7]=r,e[8]=y):y=e[8];let v;e[9]!==l?(v=l&&s.jsx(D5,{blockKey:l}),e[9]=l,e[10]=v):v=e[10];let N;e[11]!==y||e[12]!==v?(N=s.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[y,v]}),e[11]=y,e[12]=v,e[13]=N):N=e[13];let b;e[14]!==S||e[15]!==i||e[16]!==m||e[17]!==f||e[18]!==N?(b=s.jsxs("button",{type:"button","aria-expanded":i,"aria-controls":S,onClick:m,className:"flex min-w-0 flex-1 items-center gap-2 rounded-lg px-3 py-2.5 text-left",children:[f,N]}),e[14]=S,e[15]=i,e[16]=m,e[17]=f,e[18]=N,e[19]=b):b=e[19];let g;e[20]!==p||e[21]!==l||e[22]!==L||e[23]!==d||e[24]!==u?(g=(L||d)&&s.jsxs(Y9,{children:[s.jsx(ce,{asChild:!0,children:s.jsx(C9,{type:"button",variant:"ghost",size:"icon-sm","aria-label":u("sectionsEditor.anyOfField.loaderActions"),className:"shrink-0 text-muted-foreground",children:s.jsx($t,{size:16})})}),s.jsxs(q9,{align:"end",className:"w-48",children:[l&&L&&s.jsxs(A9,{onClick:L,children:[s.jsx(p,{className:"h-4 w-4"}),u("sectionsEditor.anyOfField.detach")]}),!l&&d&&s.jsxs(A9,{onClick:d,children:[s.jsx(e0,{className:"h-4 w-4"}),u("sectionsEditor.anyOfField.makeGlobal")]})]})]}),e[20]=p,e[21]=l,e[22]=L,e[23]=d,e[24]=u,e[25]=g):g=e[25];let j;e[26]!==b||e[27]!==g?(j=s.jsxs("div",{className:"group flex w-full min-w-0 items-center gap-1 rounded-lg pr-2 transition-colors hover:bg-accent",children:[b,g]}),e[26]=b,e[27]=g,e[28]=j):j=e[28];let C;e[29]!==S||e[30]!==a||e[31]!==i?(C=i&&s.jsx("div",{id:S,className:"border-t border-border/60 px-4 pb-4 pt-3",children:s.jsx("div",{className:"border-l border-border/80 pl-4",children:a})}),e[29]=S,e[30]=a,e[31]=i,e[32]=C):C=e[32];let M;return e[33]!==j||e[34]!==C||e[35]!==h?(M=s.jsxs("div",{className:h,children:[j,C]}),e[33]=j,e[34]=C,e[35]=h,e[36]=M):M=e[36],M}function se(t){const e=G.c(46),{schema:n,value:i,onChange:o,path:r,label:a,breadcrumbPath:c,onBreadcrumbChange:l,meta:L,decofile:d,onSaveReferencedBlock:u,sandbox:p,previewBaseUrl:S,onRequestAddSection:x,focused:h}=t,m=x9(),f=w9(),y=(n.anyOfRefs??[]).filter(V5),v=d&&i?Le(i,d):null,N=v?.data??i,b=v?null:b1(N),g=b??N,j=T4(y,{savedBlockKey:v?.blockKey,editorValue:N}),C=j.length>0?v1(N,j,v?.blockKey):j[0]?.resolveType??"",T=n.type==="block-ref"&&j.some(z5);let w;e[0]!==L||e[1]!==n?(w=K2(n)&&!!L,e[0]=L,e[1]=n,e[2]=w):w=e[2];const k=w,A=k&&!!n.acceptsAnySection,E=k?(()=>{const X=new Set,d9=[],m9=(a9,f9)=>{!a9||X.has(a9)||(X.add(a9),d9.push({value:a9,label:f9}))};for(const a9 of j)m9(a9.resolveType,b0(a9));if(!A)return d9;for(const a9 of i2(L,d??{}))m9(a9.resolveType,a9.title);return d9})():[];let F;e[3]!==a||e[4]!==r?(F=a??(r.includes(".")?r.split(".")[0]:r),e[3]=a,e[4]=r,e[5]=F):F=e[5];const R=F;let O;e[6]!==c?(O=c??[],e[6]=c,e[7]=O):O=e[7];const I=O,D=T&&I.length>0&&R9(I[0])===R,_=D?I.slice(1):I,H=D?X=>{l?.([R,...X])}:l,K=L0(),[t9,z]=P.useState(C),[s9,Z]=P.useState(C);s9!==C&&(Z(C),z(C));const[l9,i9]=P.useState(()=>M4(N,v?.blockKey,K)),[q,e9]=P.useState(!1);if(j.length>0){const X=t9||C;let d9;e[8]!==X?(d9=c9=>c9.resolveType===X,e[8]=X,e[9]=d9):d9=e[9];const m9=j.find(d9),a9=Xe(N,L,m9?.schema),f9=A4(a9??m9?.schema??null,n.discriminatorKey),U=n.discriminatorKey,B=c9=>{z(c9);const S9=j.find(f0=>f0.resolveType===c9),k9=n0(c9)?S9?.schema:Xe(N,L,S9?.schema),Q9=new Set(Object.keys((k9??S9?.schema)?.properties??{})),t3=i!==null&&typeof i=="object"&&!Array.isArray(i)?i:{},n3=Object.fromEntries(Object.entries(t3).filter(f0=>{const[s3]=f0;return Q9.has(s3)})),G0={...O5(S9?.schema),...n3};if(U){const f0=S9?.discriminatorValue??c9;o({...G0,[U]:f0});return}if(n0(c9)){o(G0);return}o({...G0,__resolveType:c9})},Q=c9=>{o(U?_e(c9,U,m9):w4(c9,X))},o9=f9?.properties?s.jsx(V9,{schema:f9,value:g,onChange:c9=>{if(v&&u){u(v.blockKey,c9);return}if(b){o({...N,section:c9});return}Q(c9)},basePath:r,breadcrumbPath:_,onBreadcrumbChange:H,meta:L,decofile:d,onSaveReferencedBlock:u,sandbox:p,previewBaseUrl:S,onRequestAddSection:x}):null;if(T&&o9&&(_.length>0||h)){const c9=f&&h&&s.jsx(W1,{children:k?s.jsx(m4,{options:E,value:X,onChange:k9=>k9&&B(k9),contentClassName:"w-[320px]!",filter:z1,searchPlaceholder:m("sectionsEditor.anyOfField.searchSections"),emptyMessage:m("sectionsEditor.anyOfField.noSectionsFound"),renderSearchAction:A&&x?k9=>s.jsxs(z9,{children:[s.jsx($9,{asChild:!0,children:s.jsx(C9,{type:"button",variant:"ghost",size:"icon-sm",className:"shrink-0 text-muted-foreground","aria-label":m("sectionsEditor.anyOfField.browseSections"),onClick:()=>{k9(),x({append:Q9=>o(Q9)})},children:s.jsx(C2,{className:"size-3.5"})})}),s.jsx(B9,{side:"bottom",children:m("sectionsEditor.anyOfField.browseSections")})]}):void 0,renderTrigger:k9=>s.jsxs("button",{type:"button",className:U1,children:[v?s.jsx(e0,{className:"size-3.5 shrink-0"}):s.jsx(h0,{className:"size-3.5 shrink-0"}),s.jsx("span",{className:"max-w-[120px] truncate",children:k9?.label??m("sectionsEditor.anyOfField.selectPlaceholder")}),s.jsx(c0,{className:"size-3 shrink-0"})]})}):s.jsxs(Y9,{children:[s.jsx(G1,{icon:v?s.jsx(e0,{className:"size-3.5 shrink-0"}):s.jsx(h0,{className:"size-3.5 shrink-0"}),label:j.find(k9=>k9.resolveType===X)?b0(j.find(k9=>k9.resolveType===X)):m("sectionsEditor.anyOfField.selectPlaceholder")}),s.jsx(q9,{align:"end",className:"w-52",children:s.jsx(H1,{heading:a,options:j.map(B5),activeIndex:j.findIndex(k9=>k9.resolveType===X),onSelect:k9=>{const Q9=j[k9];Q9&&B(Q9.resolveType)}})})]})});let S9;return e[10]!==o9||e[11]!==c9?(S9=s.jsxs("div",{className:"min-w-0",children:[c9,o9]}),e[10]=o9,e[11]=c9,e[12]=S9):S9=e[12],S9}let y9;e[13]!==r?(y9=r.includes("."),e[13]=r,e[14]=y9):y9=e[14];const g9=y9,j9=v?()=>{const{name:c9,...S9}=v.data;o(S9)}:void 0,E9=!v&&!b&&!!u&&T&&!n0(X)&&X.includes("/"),I9=g&&typeof g=="object"&&!Array.isArray(g)?g:{},K9=c9=>{if(!u)return;const S9=c9.trim(),k9=g5(S9,d??{});if(k9){P9.error(k9);return}u(S9,{...I9,__resolveType:X,name:S9}),o({__resolveType:S9}),e9(!1),P9.success(m("sectionsEditor.anyOfField.globalBlockSaved",{name:S9}))};if(f&&T&&o9){let c9;return e[15]!==l||e[16]!==R||e[17]!==I?(c9=()=>l?.([...I,R]),e[15]=l,e[16]=R,e[17]=I,e[18]=c9):c9=e[18],s.jsxs(s.Fragment,{children:[s.jsx(O1,{icon:v?s.jsx(e0,{className:"size-4 shrink-0 text-muted-foreground"}):s.jsx(h0,{className:"size-4 shrink-0 text-muted-foreground"}),label:a,onOpen:c9,actions:(j9||E9)&&s.jsxs(Y9,{children:[s.jsx(U0,{label:m("sectionsEditor.anyOfField.loaderActions")}),s.jsxs(q9,{align:"end",className:"w-48",children:[v&&j9&&s.jsxs(A9,{onClick:j9,children:[s.jsx(h0,{className:"h-4 w-4"}),m("sectionsEditor.anyOfField.detach")]}),E9&&s.jsxs(A9,{onClick:()=>e9(!0),children:[s.jsx(e0,{className:"h-4 w-4"}),m("sectionsEditor.anyOfField.makeGlobal")]})]})]})}),E9&&s.jsx(xt,{open:q,onOpenChange:e9,defaultBlockId:mt(W9(X)),onSubmit:K9})]})}const V=p?.virtualMcpId;let L9;e[19]!==a||e[20]!==r||e[21]!==n.description||e[22]!==V?(L9=s.jsx(T9,{htmlFor:r,label:a,description:n.description,virtualMcpId:V}),e[19]=a,e[20]=r,e[21]=n.description,e[22]=V,e[23]=L9):L9=e[23];let u9;e[24]!==m?(u9=m("sectionsEditor.anyOfField.selectPlaceholder"),e[24]=m,e[25]=u9):u9=e[25];let v9;e[26]!==u9?(v9=s.jsx(E0,{placeholder:u9}),e[26]=u9,e[27]=v9):v9=e[27];let b9;return e[28]!==r||e[29]!==v9?(b9=s.jsx(k0,{id:r,className:"w-full min-w-0",children:v9}),e[28]=r,e[29]=v9,e[30]=b9):b9=e[30],s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"space-y-1.5",children:[L9,s.jsxs(C0,{value:X||void 0,onValueChange:B,children:[b9,s.jsx(T0,{children:j.map($5)})]})]}),o9&&(T?s.jsx(P5,{path:r,open:l9,onOpenChange:i9,title:m(g9?"sectionsEditor.anyOfField.configuration":"sectionsEditor.anyOfField.loaderConfiguration"),nested:o9,nestedBlockRef:g9,globalBlockKey:v?.blockKey,onDetach:j9,onMakeGlobal:E9?()=>e9(!0):void 0}):o9),E9&&s.jsx(xt,{open:q,onOpenChange:e9,defaultBlockId:mt(W9(X)),onSubmit:K9})]})}if(n.anyOfRefs&&n.anyOfRefs.length>0)return null;const $=p?.virtualMcpId;let Y;e[31]!==a||e[32]!==r||e[33]!==n.description||e[34]!==$?(Y=s.jsx(T9,{htmlFor:r,label:a,description:n.description,virtualMcpId:$}),e[31]=a,e[32]=r,e[33]=n.description,e[34]=$,e[35]=Y):Y=e[35];const W=i!=null?String(i):"";let J;e[36]!==o?(J=X=>o(X.target.value),e[36]=o,e[37]=J):J=e[37];const r9=n.description??"";let n9;e[38]!==r||e[39]!==W||e[40]!==J||e[41]!==r9?(n9=s.jsx("input",{id:r,type:"text",value:W,onChange:J,className:"w-full rounded-[var(--studio-control-radius,var(--radius-md))] border bg-background px-3 py-1.5 text-sm",placeholder:r9}),e[38]=r,e[39]=W,e[40]=J,e[41]=r9,e[42]=n9):n9=e[42];let p9;return e[43]!==Y||e[44]!==n9?(p9=s.jsxs("div",{className:"space-y-1.5",children:[Y,n9]}),e[43]=Y,e[44]=n9,e[45]=p9):p9=e[45],p9}function $5(t){const e=b0(t);return s.jsx(D9,{value:t.resolveType,children:e},t.resolveType)}function B5(t){return{label:b0(t)}}function z5(t){return t.resolveType.includes("/")&&!n0(t.resolveType)}function V5(t){return t.resolveType!==""}function K5(t){const e=G.c(18),n=V0(t.sandbox.virtualMcpId,t.sandbox.branch);let i,o;if(e[0]!==n.kind||e[1]!==t.decofile||e[2]!==t.value?(i=n.kind!=="legacy"&&t.decofile&&t.value?Le(t.value,t.decofile):null,o=i&&Wt(i.data),e[0]=n.kind,e[1]=t.decofile,e[2]=t.value,e[3]=i,e[4]=o):(i=e[3],o=e[4]),o){let a;e[5]!==t.decofile?(a=t.decofile??{},e[5]=t.decofile,e[6]=a):a=e[6];let c;e[7]!==i.blockKey?(c=[i.blockKey],e[7]=i.blockKey,e[8]=c):c=e[8];let l;e[9]!==t?(l=s.jsx(se,{...t}),e[9]=t,e[10]=l):l=e[10];let L;return e[11]!==t.sandbox||e[12]!==a||e[13]!==c||e[14]!==l?(L=s.jsx(Fe,{listing:a,scope:t.sandbox,names:c,children:l}),e[11]=t.sandbox,e[12]=a,e[13]=c,e[14]=l,e[15]=L):L=e[15],L}let r;return e[16]!==t?(r=s.jsx(se,{...t}),e[16]=t,e[17]=r):r=e[17],r}function yt(t){const e=G.c(2);let n;return e[0]!==t?(n=t.sandbox?s.jsx(K5,{...t,sandbox:t.sandbox}):s.jsx(se,{...t}),e[0]=t,e[1]=n):n=e[1],n}const vt="__none__";function U5({value:t,onChange:e,path:n,label:i,required:o,schema:r,sandbox:a,kinds:c,support:l}){const L=x9(),[d,u]=P.useState(!1),p=a4(t),S=m=>L(m==="experiments"?"sectionsEditor.namedRulePicker.fieldTests":"sectionsEditor.namedRulePicker.fieldCampaigns"),x=m=>l.kinds.find(f=>f.kind===m)?.state!=="conflict",h=async m=>{if(m===vt){e(void 0);return}const f=m;u(!0);try{if(!await l.ensureBlock(f))return}finally{u(!1)}e({__resolveType:f})};return s.jsxs("div",{className:"space-y-2",children:[s.jsx(T9,{htmlFor:n,label:i,description:r.description,virtualMcpId:a?.virtualMcpId}),s.jsxs(C0,{value:p??"",onValueChange:m=>{h(m)},disabled:d,children:[s.jsx(k0,{id:n,className:"h-10 w-full min-w-0",children:s.jsx(E0,{placeholder:L("sectionsEditor.namedRulePicker.fieldPlaceholder")})}),s.jsxs(T0,{children:[!o&&s.jsx(D9,{value:vt,className:"text-muted-foreground",children:L("sectionsEditor.namedRulePicker.fieldNone")}),c.map(m=>s.jsx(D9,{value:m,disabled:!x(m),children:S(m)},m))]})]}),p&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:L(p==="experiments"?"sectionsEditor.namedRulePicker.fieldTestsHint":"sectionsEditor.namedRulePicker.fieldCampaignsHint")}),s.jsx(l4,{kind:p})]}),c.some(m=>!x(m))&&s.jsx("p",{className:"text-xs text-muted-foreground",children:c.filter(m=>!x(m)).map(m=>L(m==="experiments"?"sectionsEditor.namedRulePicker.conflictTests":"sectionsEditor.namedRulePicker.conflictCampaigns")).join(" ")})]})}const G5=new Set(["split-traffic","calendar"]);function H5(t){return t.type==="block-ref"&&!!t.anyOfRefs?.some(e=>G5.has(e.resolveType))}function W5(t){const e=G.c(4),{fallback:n,...i}=t,o=m1(),r=o?o4(i.schema,i.value,o.kinds):[];if(!o||r.length===0)return s.jsx(s.Fragment,{children:n(i)});let a;return e[0]!==r||e[1]!==i||e[2]!==o?(a=s.jsx(U5,{...i,kinds:r,support:o}),e[0]=r,e[1]=i,e[2]=o,e[3]=a):a=e[3],a}const q0=(t,e)=>t.match(new RegExp(`\\b${e}\\s*=\\s*"([^"]*)"`,"i"))?.[1];function q5(t){const e={};if(typeof t!="string")return e;const n=/<symbol\b((?:[^>"']|"[^"]*"|'[^']*')*)>([\s\S]*?)<\/symbol>/gi;for(const i of t.matchAll(n)){const o=i[1]??"",r=i[2]??"",a=q0(o,"id");if(!a)continue;const c=q0(o,"viewBox"),l=q0(o,"fill"),L=['xmlns="http://www.w3.org/2000/svg"',c?`viewBox="${c}"`:"",l?`fill="${l}"`:""].filter(Boolean).join(" ");e[a]=`<svg ${L}>${r}</svg>`}return e}async function Y5(t){const e=await fetch(t);if(!e.ok)throw new Error(`Failed to fetch sprite sheet: ${e.status}`);return q5(await e.text())}function Z5(t){if(!Array.isArray(t))return[];const e=[];for(const n of t)if(typeof n=="string")e.push({value:n,label:n});else if(n&&typeof n=="object"&&"value"in n){const i=n;e.push({value:String(i.value),label:typeof i.label=="string"?i.label:String(i.value),image:typeof i.image=="string"?i.image:void 0,icon:typeof i.icon=="string"?i.icon:void 0})}return e}function J5(t){if(!Array.isArray(t))return[];const e=[];for(const n of t)typeof n=="string"&&e.push({value:n,label:n});return e}function X5(t,e){return t.length>0?t:e}function Q5(t,e){return t??e??void 0}function es(t){return(!t.previewUrl||!t.loaderPath)&&t.enumFallbackCount===0}function ts(t,e){const n=e.trim().toLowerCase();return n?t.filter(i=>i.value.toLowerCase().includes(n)||(i.label??"").toLowerCase().includes(n)):t}function ns({loaderPath:t,isIconSelect:e,enumFallbackCount:n,trimmedSearch:i,optionValues:o,optionsSettled:r}){return!!t&&!e&&n===0&&r&&i.length>0&&!o.includes(i)}function q1(t,e){const i=`<style>${e?`svg{color:${e}}`:""}.fill-current{fill:currentColor}.stroke-current{stroke:currentColor}.text-current{color:currentColor}</style>`,o=t.replace(/(<svg[^>]*>)/i,`$1${i}`);return`data:image/svg+xml;utf8,${encodeURIComponent(o)}`}function ss(){return getComputedStyle(document.documentElement).getPropertyValue("--foreground").trim()||void 0}function is(t,e){if(t.previewSrc)return t.previewSrc;if(t.image)return t.image;if(t.icon)return q1(t.icon,e)}async function rs(t,e,n){const i={};n&&(i.term=n);const r=`${t.replace(/\/+$/,"")}/deco/invoke/${e}`,a=await fetch(r,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(i)});if(!a.ok)throw new Error(`Failed to fetch dynamic options: ${a.status}`);const c=await a.json();return Z5(c)}function bt(t){const e=G.c(9),{option:n,className:i,fg:o}=t;let r;e[0]!==o||e[1]!==n?(r=is(n,o),e[0]=o,e[1]=n,e[2]=r):r=e[2];const a=r;if(!a)return null;const c=n.image?"rounded-[var(--studio-control-radius,var(--radius))] object-cover":"object-contain";let l;e[3]!==i||e[4]!==c?(l=h9("shrink-0",c,i),e[3]=i,e[4]=c,e[5]=l):l=e[5];let L;return e[6]!==a||e[7]!==l?(L=s.jsx("img",{src:a,alt:"",referrerPolicy:"no-referrer",className:l}),e[6]=a,e[7]=l,e[8]=L):L=e[8],L}function os(t){const e=G.c(32),{schema:n,value:i,onChange:o,path:r,label:a,sandbox:c,previewBaseUrl:l}=t,L=x9(),d=n.options,u=Q5(c?.previewUrl,l),[p,S]=P.useState(!1),[x,h]=P.useState(""),[m,f]=P.useState(""),y=P.useRef(null);let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v=$=>{h($),y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{f($)},300)},e[0]=v):v=e[0];const N=v,b=c?`${c.orgSlug}/${c.virtualMcpId}/${c.branch}`:u??"",g=typeof i=="string"?i:"",j=n.format==="icon-select",C=Ge({queryKey:He.sandboxInvoke(b,`dynamic-options:${d??""}:${m}`),queryFn:()=>rs(u,d,m||void 0),enabled:!!u&&!!d&&(p||!!g),staleTime:6e4,retry:1}),M=C.data??[],T=Ge({queryKey:He.sandboxSprite(b),queryFn:()=>Y5(t4({orgSlug:c.orgSlug,virtualMcpId:c.virtualMcpId,branch:c.branch,threadId:c.threadId,previewUrl:u},"/sprites.svg")),enabled:j&&!!c&&(p||!!g)&&(!d||C.isFetched&&M.length===0),staleTime:3e5,retry:1}),w=J5(n.enum),k=T.data??{},A=ss(),E=Object.fromEntries(Object.entries(k).map($=>{const[Y,W]=$;return[Y,q1(W,A)]})),F=j&&Object.keys(E).length>0?w.map($=>({...$,previewSrc:E[$.value]})):w,R=X5(M,F),O=ts(R,x);let I;e[1]!==g?(I=$=>$.value===g,e[1]=g,e[2]=I):I=e[2];const D=R.find(I),_=x.trim(),H=C.isFetched&&!C.isFetching&&x===m,K=ns({loaderPath:d,isIconSelect:j,enumFallbackCount:w.length,trimmedSearch:_,optionValues:R.map(as),optionsSettled:H});if(es({previewUrl:u,loaderPath:d,enumFallbackCount:w.length})){const $=c?.virtualMcpId;let Y;e[3]!==a||e[4]!==r||e[5]!==n.description||e[6]!==$?(Y=s.jsx(T9,{htmlFor:r,label:a,description:n.description,virtualMcpId:$}),e[3]=a,e[4]=r,e[5]=n.description,e[6]=$,e[7]=Y):Y=e[7];let W;e[8]!==o?(W=n9=>o(n9.target.value),e[8]=o,e[9]=W):W=e[9];let J;e[10]!==g||e[11]!==r||e[12]!==W?(J=s.jsx(F9,{id:r,type:"text",value:g,onChange:W}),e[10]=g,e[11]=r,e[12]=W,e[13]=J):J=e[13];let r9;return e[14]!==Y||e[15]!==J?(r9=s.jsxs("div",{className:"space-y-2",children:[Y,J]}),e[14]=Y,e[15]=J,e[16]=r9):r9=e[16],r9}const t9=c?.virtualMcpId;let z;e[17]!==a||e[18]!==r||e[19]!==n.description||e[20]!==t9?(z=s.jsx(T9,{htmlFor:r,label:a,description:n.description,virtualMcpId:t9}),e[17]=a,e[18]=r,e[19]=n.description,e[20]=t9,e[21]=z):z=e[21];const s9=D?s.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[s.jsx(bt,{option:D,className:"h-6 w-6",fg:A}),s.jsx("span",{className:"truncate",children:D.label??D.value})]}):g?s.jsx("span",{className:"truncate",children:g}):s.jsx("span",{className:"text-muted-foreground",children:L("sectionsEditor.dynamicOptionsField.selectPlaceholder")});let Z;e[22]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(p1,{className:"size-4 shrink-0 opacity-50"}),e[22]=Z):Z=e[22];let l9;e[23]!==p||e[24]!==s9?(l9=s.jsx(fe,{asChild:!0,children:s.jsxs(C9,{variant:"outline",size:"lg",role:"combobox","aria-expanded":p,className:"w-full justify-between font-normal",children:[s9,Z]})}),e[23]=p,e[24]=s9,e[25]=l9):l9=e[25];let i9;e[26]===Symbol.for("react.memo_cache_sentinel")?(i9={width:"var(--radix-popover-trigger-width)"},e[26]=i9):i9=e[26];let q;e[27]!==L?(q=L("sectionsEditor.dynamicOptionsField.searchPlaceholder"),e[27]=L,e[28]=q):q=e[28];let e9;return e[29]!==x||e[30]!==q?(e9=s.jsx(we,{placeholder:q,className:"h-9",value:x,onValueChange:N}),e[29]=x,e[30]=q,e[31]=e9):e9=e[31],s.jsxs("div",{className:"space-y-2",children:[z,s.jsxs(pe,{open:p,onOpenChange:S,children:[l9,s.jsx(me,{className:"p-0",style:i9,children:s.jsxs(u1,{shouldFilter:!1,children:[e9,s.jsxs(Ae,{children:[!K&&s.jsx(Me,{children:C.isLoading?L("sectionsEditor.dynamicOptionsField.loading"):L("sectionsEditor.dynamicOptionsField.noResults")}),s.jsx(v0,{children:O.map($=>s.jsxs(s0,{value:$.value,className:"cursor-pointer",onSelect:()=>{o($.value===g?"":$.value),S(!1)},children:[s.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[s.jsx(bt,{option:$,className:h9($.image?"h-9 w-9":"h-6 w-6"),fg:A}),s.jsx("span",{className:"truncate",children:$.label??$.value})]}),s.jsx(de,{className:h9("ml-auto size-4 shrink-0",g===$.value?"opacity-100":"opacity-0")})]},$.value))}),K&&s.jsx(v0,{children:s.jsx(s0,{value:_,className:"cursor-pointer",onSelect:()=>{o(_),h(""),f(""),S(!1)},children:s.jsx("span",{className:"truncate",children:L("sectionsEditor.dynamicOptionsField.useValue",{value:_})})})})]})]})})]})]})}function as(t){return t.value}function jt(t){const e=G.c(2),{ext:n}=t;if(!n)return null;let i;return e[0]!==n?(i=s.jsx("span",{className:"shrink-0 rounded-[var(--studio-control-radius,var(--radius))] bg-muted px-1.5 py-0.5 text-2xs font-medium uppercase text-muted-foreground",children:n}),e[0]=n,e[1]=i):i=e[1],i}function ls(t){const e=G.c(90),{schema:n,value:i,onChange:o,path:r,label:a,sandbox:c}=t,l=x9(),d=h1(c?.virtualMcpId)?.metadata?.assetStorageConfigId,u=n.format==="video-uri",p=Jt(i),[S,x]=P.useState(!1),[h,m]=P.useState(!1),f=p?H3(p):"",y=f?W3(f):"",v=q3(c),N=!v;let b;e[0]!==N?(b={enabled:N},e[0]=N,e[1]=b):b=e[1];const g=x4(b),j=y4(),C=P.useRef(null);let M;e[2]!==v||e[3]!==x?(M=()=>v?C.current?.click():x(!0),e[2]=v,e[3]=x,e[4]=M):M=e[4];const T=M,w=Y3(c,p);let k;e[5]!==g.data?.configs?(k=g.data?.configs??[],e[5]=g.data?.configs,e[6]=k):k=e[6];const A=c?.siteSlug;let E;e[7]!==d||e[8]!==k||e[9]!==A?(E=g4(k,A,d),e[7]=d,e[8]=k,e[9]=A,e[10]=E):E=e[10];const R=E?.id??null;let O;e[11]!==g.data?.configs||e[12]!==u||e[13]!==R||e[14]!==o||e[15]!==v||e[16]!==x||e[17]!==l||e[18]!==j?(O=async function(f9){if(!f9)return;let U=Array.from(f9);if(U.length===0)return;if(u&&(U=U.filter(Ls),U.length===0)){P9.error(l("sectionsEditor.fileField.videoFileError"));return}if(v){try{o(await v(U[0]))}catch(Q){const o9=Q;P9.error(o9 instanceof Error?o9.message:l("sectionsEditor.fileField.uploadFailed"))}return}const B=z3(g.data?.configs??[],R,typeof window<"u"?window.localStorage.getItem(V3):null);if(!B){x(!0);return}try{const Q=await j.mutateAsync({configId:B,file:U[0]});o(Q.publicUrl),U.length>1&&P9.info(l("sectionsEditor.fileField.multiFileWarning",{fileName:U[0].name}))}catch(Q){const o9=Q;P9.error(o9 instanceof Error?o9.message:l("sectionsEditor.fileField.uploadFailed"))}},e[11]=g.data?.configs,e[12]=u,e[13]=R,e[14]=o,e[15]=v,e[16]=x,e[17]=l,e[18]=j,e[19]=O):O=e[19];const I=O;let D;e[20]!==m?(D=function(f9){f9.preventDefault(),f9.dataTransfer.types.includes("Files")&&m(!0)},e[20]=m,e[21]=D):D=e[21];const _=D;let H;e[22]!==m?(H=function(f9){f9.currentTarget===f9.target&&m(!1)},e[22]=m,e[23]=H):H=e[23];const K=H;let t9;e[24]!==I||e[25]!==m?(t9=function(f9){f9.preventDefault(),f9.stopPropagation(),m(!1),I(f9.dataTransfer.files)},e[24]=I,e[25]=m,e[26]=t9):t9=e[26];const z=t9,s9=c?.virtualMcpId;let Z;e[27]!==a||e[28]!==r||e[29]!==n.description||e[30]!==s9?(Z=s.jsx("div",{className:"min-w-0",children:s.jsx(T9,{htmlFor:r,label:a,description:n.description,labelClassName:"text-muted-foreground",virtualMcpId:s9})}),e[27]=a,e[28]=r,e[29]=n.description,e[30]=s9,e[31]=Z):Z=e[31];const l9=h&&"border-primary ring-2 ring-primary/30",i9=j.isPending&&"pointer-events-none opacity-60";let q;e[32]!==l9||e[33]!==i9?(q=h9("group relative w-full overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-xl))] border shadow-edge border-border/60 bg-muted/30 transition",l9,i9),e[32]=l9,e[33]=i9,e[34]=q):q=e[34];let e9;e[35]!==T||e[36]!==y||e[37]!==f||e[38]!==u||e[39]!==w||e[40]!==p||e[41]!==l||e[42]!==j.isPending?(e9=p?u?s.jsxs(s.Fragment,{children:[s.jsxs("button",{type:"button",onClick:T,"aria-label":l("sectionsEditor.fileField.replaceVideoLabel"),className:"relative block h-40 w-full cursor-pointer overflow-hidden bg-black",children:[s.jsx("video",{src:w,preload:"metadata",className:"h-full w-full object-contain"},p),s.jsx(Z3,{})]}),s.jsxs("div",{className:"flex items-center gap-2 border-t border-border/60 bg-background/50 px-3 py-2",children:[s.jsx(We,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("p",{className:"min-w-0 flex-1 truncate text-xs text-muted-foreground",children:f}),s.jsx(jt,{ext:y})]})]}):s.jsxs("button",{type:"button",onClick:T,"aria-label":l("sectionsEditor.fileField.replaceFileLabel"),className:"flex w-full cursor-pointer items-center gap-3 px-3 py-2.5 text-left hover:bg-accent",children:[s.jsx("div",{className:"flex size-10 shrink-0 items-center justify-center rounded-md bg-background",children:s.jsx(Ze,{size:18,className:"text-muted-foreground"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"truncate text-sm font-medium",children:f}),s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:p})]}),s.jsx(jt,{ext:y})]}):s.jsxs("button",{type:"button",onClick:T,className:"flex w-full flex-col items-center justify-center gap-2 py-8 text-sm text-muted-foreground hover:bg-accent hover:text-foreground",children:[u?s.jsx(We,{size:20}):s.jsx(Ze,{size:20}),s.jsx("span",{className:"text-sm font-medium",children:j.isPending?l("sectionsEditor.fileField.uploading"):l(u?"sectionsEditor.fileField.dropVideoHint":"sectionsEditor.fileField.dropFileHint")}),s.jsx("span",{className:"text-xs text-muted-foreground",children:l("sectionsEditor.fileField.sizeLimit")})]}),e[35]=T,e[36]=y,e[37]=f,e[38]=u,e[39]=w,e[40]=p,e[41]=l,e[42]=j.isPending,e[43]=e9):e9=e[43];let $;e[44]!==h||e[45]!==l?($=h&&s.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-primary/10 backdrop-blur-[1px]",children:s.jsx("span",{className:"rounded-md bg-background px-3 py-1.5 text-xs font-medium shadow-soft",children:l("sectionsEditor.fileField.dropToUpload")})}),e[44]=h,e[45]=l,e[46]=$):$=e[46];let Y;e[47]!==K||e[48]!==_||e[49]!==z||e[50]!==q||e[51]!==e9||e[52]!==$?(Y=s.jsxs("div",{onDragOver:_,onDragLeave:K,onDrop:z,className:q,children:[e9,$]}),e[47]=K,e[48]=_,e[49]=z,e[50]=q,e[51]=e9,e[52]=$,e[53]=Y):Y=e[53];let W;e[54]!==o?(W=a9=>o(a9.target.value),e[54]=o,e[55]=W):W=e[55];let J;e[56]!==r||e[57]!==p||e[58]!==W?(J=s.jsx(F9,{id:r,type:"url",value:p,onChange:W,placeholder:"https://...",className:"h-9 min-w-0 flex-1"}),e[56]=r,e[57]=p,e[58]=W,e[59]=J):J=e[59];let r9;e[60]!==T||e[61]!==p||e[62]!==l?(r9=!p&&s.jsxs(C9,{type:"button",variant:"outline",size:"sm",onClick:T,className:"h-9 shrink-0",children:[s.jsx(h4,{size:14}),l("sectionsEditor.fileField.browseButton")]}),e[60]=T,e[61]=p,e[62]=l,e[63]=r9):r9=e[63];let n9;e[64]!==u||e[65]!==o||e[66]!==p?(n9=u&&p&&s.jsx(J3,{value:p,onChange:o,showMuted:!0}),e[64]=u,e[65]=o,e[66]=p,e[67]=n9):n9=e[67];let p9;e[68]!==o||e[69]!==p||e[70]!==l?(p9=p&&s.jsx(C9,{type:"button",variant:"ghost",size:"sm",onClick:()=>o(""),className:"h-9 shrink-0","aria-label":l("sectionsEditor.fileField.removeFileLabel"),children:s.jsx(X9,{size:14})}),e[68]=o,e[69]=p,e[70]=l,e[71]=p9):p9=e[71];let X;e[72]!==J||e[73]!==r9||e[74]!==n9||e[75]!==p9?(X=s.jsxs("div",{className:"flex w-full min-w-0 items-center gap-2",children:[J,r9,n9,p9]}),e[72]=J,e[73]=r9,e[74]=n9,e[75]=p9,e[76]=X):X=e[76];let d9;e[77]!==I||e[78]!==u||e[79]!==R||e[80]!==o||e[81]!==S||e[82]!==v||e[83]!==x?(d9=v?s.jsx("input",{ref:C,type:"file",accept:u?"video/*":void 0,className:"hidden",onChange:a9=>{I(a9.target.files),a9.target.value=""}}):s.jsx(K3,{open:S,onOpenChange:x,mode:"any",onSelect:a9=>o(a9),lockedConfigId:R??null}),e[77]=I,e[78]=u,e[79]=R,e[80]=o,e[81]=S,e[82]=v,e[83]=x,e[84]=d9):d9=e[84];let m9;return e[85]!==Z||e[86]!==Y||e[87]!==X||e[88]!==d9?(m9=s.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-2",children:[Z,Y,X,d9]}),e[85]=Z,e[86]=Y,e[87]=X,e[88]=d9,e[89]=m9):m9=e[89],m9}function Ls(t){return t.type.startsWith("video/")}const cs="0 0 1080 1080",ds="matrix(1 0 0 1 540 540)",Ke=[{code:"AC",name:"Acre",gTransform:"matrix(1 0 0 1 -248.53 -95.16)",pathTransform:"translate(-57.47, -224.1)",d:"M 30.47 237.77 L 28.39 237.73 L 28.93 235.92 L 28.72 235.09 L 28.47 234.6 L 27.22 233.9 L 27.08 233.45 L 27.35 232.3 L 26.58 230.35 L 25.49 229.71 L 19.89 228.46 L 12.55 228.27 L 12.82 227.71 L 15.31 225.45 L 16.2 224.22 L 16.49 223.02 L 16.27 221.79 L 15.59 220.88 L 14.76 220.44 L 13.08 217.49 L 12.31 217.05 L 11.41 216.86 L 10.28 215.73 L 9.36 213.35 L 7.36 211.82 L 6.38 208.2 L 5.51 206.56 L 3.63 205.48 L 3.55 204.31 L 4.36 204.41 L 4.78 203.89 L 4.85 203.22 L 4.65 202.8 L 2.53 201.87 L 2.17 201.21 L 0 199.32 L 0.04 198.95 L 0.66 198.9 L 1.16 197.58 L 1.15 196.27 L 4.16 195.88 L 4.66 195.49 L 4.44 194.14 L 3.27 192.57 L 3.27 192.57 L 21.22 200.05 L 44.88 205.71 L 57.02 208.85 L 83.46 223.02 L 111.97 235.15 L 111.97 235.15 L 114.94 236.41 L 114.94 236.41 L 114.64 236.89 L 113.07 237.55 L 110.98 239.14 L 108.12 241.93 L 106.47 242.79 L 105.81 242.61 L 104.28 242.79 L 104.23 243.35 L 102.31 244.65 L 100.23 245.64 L 98.79 247.47 L 98.35 248.65 L 97.74 248.93 L 96.57 248.18 L 95.81 248.05 L 93.44 248.1 L 92.76 248.36 L 92.13 248.81 L 91.77 249.67 L 89.33 253.15 L 85.56 254.4 L 84.72 255.09 L 82.78 255.6 L 81.75 255.63 L 81.83 253.52 L 80.47 253.72 L 76.92 252.95 L 71.68 252.48 L 66.59 252.86 L 65.93 252.28 L 63.66 252.11 L 60.1 253.94 L 57.37 254.56 L 55.69 253.89 L 54.29 252.45 L 52.65 253.61 L 52.69 236.06 L 52.74 234.96 L 53.21 234.25 L 53.28 231.9 L 53.02 231.02 L 53.99 229.84 L 54.47 228.7 L 53.31 228.9 L 50.34 231.49 L 48.74 232.5 L 46.68 234.88 L 44.73 235.55 L 44.08 236.63 L 42.27 237.62 z"},{code:"AL",name:"Alagoas",gTransform:"matrix(1 0 0 1 276.36 -86.82)",pathTransform:"translate(-582.36, -232.44)",d:"M 561.91 230.3 L 561.71 229.57 L 560.29 228.79 L 559.84 228.88 L 558.82 228.59 L 558.28 227.19 L 558.28 227.19 L 559.6 226.12 L 560.24 225.03 L 562.41 224.27 L 564.79 220.98 L 564.88 220.29 L 565.7 219.69 L 566.7 220.91 L 568.37 221.21 L 569.45 221.09 L 572 223.11 L 573.9 225.23 L 575.68 226.28 L 577.59 226.76 L 580.09 226.11 L 583.23 226.4 L 584.4 226.29 L 586.26 225.23 L 587.42 225.28 L 589.23 224.17 L 591.41 221.88 L 591.53 221.43 L 593.08 220.19 L 595.08 219.95 L 597.32 220.8 L 599.88 219.51 L 601.35 219.32 L 603.27 220.13 L 606.17 220.4 L 606.44 220.61 L 606.44 220.61 L 603.66 225.57 L 599.11 230.7 L 595.53 234.28 L 592.49 238.86 L 589.16 241.74 L 588.16 243.77 L 586.84 245.56 L 586.84 245.56 L 586.24 244.25 L 582.65 242.02 L 582.19 241.99 L 580.53 241.2 L 578.77 239.75 L 577.47 237.3 L 572.05 234.23 L 568.37 233.28 z"},{code:"AM",name:"Amazonas",gTransform:"matrix(1 0 0 1 -166.8 -178.05)",pathTransform:"translate(-139.2, -141.22)",d:"M 165.82 47.29 L 166.54 48.07 L 167.29 48.41 L 167.9 48.42 L 169.03 48 L 169.66 48.11 L 169.72 49.07 L 170.93 50.24 L 171.9 50.61 L 172.78 50.4 L 174.14 50.51 L 176.09 51.46 L 176.58 52.12 L 175.67 55.44 L 174.96 56.94 L 177.69 60.68 L 179.35 65.44 L 179.54 67.7 L 180.41 68.82 L 180.46 69.27 L 178.84 70.73 L 179.2 72.32 L 179.86 73.9 L 179.09 76.94 L 178.52 77.9 L 178.81 82.88 L 179.69 85.05 L 180.91 85.89 L 181.49 86.79 L 182.62 91.12 L 182.56 91.7 L 181.42 93.02 L 179.58 92.69 L 179.44 93.83 L 184.45 98.25 L 184.97 98.29 L 186.93 99.6 L 188.41 101.25 L 189.45 103.29 L 189.98 103.36 L 191.32 102.94 L 193.68 103.98 L 193.24 101.87 L 193.99 99.58 L 194.24 97.85 L 193.87 96.05 L 194.69 93.08 L 195.71 91.82 L 196.99 91.13 L 199.08 90.42 L 199.63 89.53 L 201.23 89.47 L 204.06 90.4 L 205.93 92.44 L 206.85 94.95 L 208.67 95.18 L 209.92 94.72 L 211.33 93.31 L 213.36 92.76 L 213.78 92.37 L 213.8 91.84 L 212.66 90.43 L 212.43 89.7 L 212.54 89.04 L 213.69 86.4 L 213.76 85.27 L 215.42 82.24 L 217.75 78.98 L 217.72 78.3 L 236.21 78.37 L 236.21 78.37 L 236.61 83.23 L 236.18 84.68 L 236.36 86.95 L 236.6 87.63 L 238.3 88.48 L 238.48 88.89 L 238.13 89.58 L 238.08 91.69 L 239.91 93.68 L 240.27 93.87 L 240.97 93.69 L 242.81 94.92 L 243.36 96.75 L 243.4 97.68 L 243.7 98.13 L 248.34 101.9 L 252.92 104.44 L 253.55 105.34 L 254.9 106.43 L 256.78 107.1 L 259.15 108.41 L 261.41 109.06 L 262.77 109.21 L 264.09 110.03 L 264.17 110.64 L 265.44 111.98 L 268.14 113.42 L 269.24 115.59 L 271.11 116.38 L 271.96 115.77 L 273.34 115.42 L 273.53 115.9 L 273.4 116.68 L 275.21 118.35 L 245.31 182.59 L 244.53 183.9 L 243.08 185.03 L 242.5 186 L 242.47 187.13 L 243.29 189.46 L 243.67 190.03 L 244.74 190.61 L 246.32 192.17 L 246.96 193.43 L 247.11 195.39 L 247.68 195.96 L 247.68 195.96 L 246.5 197.16 L 246.3 197.77 L 246.24 198.53 L 246.58 199.37 L 246.31 200.38 L 245.11 202.2 L 244.25 202.84 L 243.83 203.69 L 243.93 204.54 L 244.59 205.91 L 245.05 207.85 L 243.67 212.07 L 242.49 217.29 L 241.28 218.02 L 193.43 218.34 L 193.43 218.34 L 193.47 217.64 L 193.11 217.26 L 191.72 216.98 L 189.8 218.06 L 189.26 219.8 L 188.58 219.99 L 185.34 218.51 L 184.66 215.63 L 184.04 215.43 L 183.06 215.56 L 182.6 215.35 L 181.35 212.08 L 178.81 211.1 L 177.48 209.83 L 176.68 207.92 L 176.23 207.43 L 174.08 206.3 L 163.29 206.36 L 161.91 208.92 L 160.19 209.42 L 160.28 210.59 L 160.02 210.81 L 157.54 211.34 L 156.35 212.93 L 156.3 213.6 L 157.2 214.3 L 157.37 214.75 L 157.01 215.77 L 156.2 216.92 L 154.14 218.13 L 154.03 219.94 L 154.27 221.4 L 150.4 220.94 L 148.27 221.32 L 147.07 222.39 L 145.28 222.29 L 144.44 221.74 L 143.98 221.72 L 142.23 222.98 L 141.7 223.82 L 141.96 225.57 L 139.42 228.73 L 138.74 228.81 L 138.06 228.28 L 137.42 226.02 L 137.04 225.93 L 135.2 226.95 L 133.9 228.16 L 132.53 228.55 L 131.76 228.42 L 130.68 228.92 L 130.27 229.45 L 130.14 230.17 L 128.92 230.96 L 128.55 230.98 L 126.24 228.65 L 125.52 228.28 L 122.65 228.61 L 118.69 228.35 L 118.85 229.64 L 118.7 230.2 L 117.15 232.01 L 115.23 232.59 L 111.97 235.15 L 111.97 235.15 L 83.46 223.02 L 57.02 208.85 L 44.88 205.71 L 21.22 200.05 L 3.27 192.57 L 3.27 192.57 L 3.2 191.92 L 3.9 189 L 5.12 187.6 L 10.04 184.13 L 12.3 183.89 L 12.77 183.59 L 13.75 182.03 L 13.83 181 L 12.09 176.51 L 12.47 175.32 L 13.65 173.13 L 14.93 171.81 L 15.85 170.56 L 16.27 169.58 L 16.57 167.84 L 16.28 166.52 L 16.95 164.48 L 17.26 162.17 L 17.99 161.42 L 21.65 159.79 L 23.84 158.56 L 24.99 157.52 L 25.43 156.12 L 26.21 155.75 L 27.62 155.64 L 29.27 154.71 L 32.81 151.98 L 35.23 151.55 L 36.74 151.84 L 40.93 150.62 L 42.43 149.85 L 44.25 149.49 L 47.58 149.87 L 48.88 148.28 L 49.51 146.83 L 50.6 146.22 L 52.74 146.42 L 53.38 146.96 L 54.7 146.72 L 55.8 145.98 L 57.51 146.1 L 57.82 146.63 L 57.8 147.81 L 59.41 149.1 L 62.24 149.18 L 62.82 148.78 L 63.28 148 L 63.17 147.61 L 64.34 142.69 L 71.04 105.52 L 72.2 102.6 L 71.21 97.64 L 71.33 97.38 L 70.03 96.33 L 68.55 93.58 L 68.51 93.09 L 69.16 91.7 L 68.64 89.92 L 68.27 89.52 L 66.57 88.93 L 63.54 86.58 L 61.6 84.3 L 61.8 72.79 L 65.69 72.53 L 67.44 71.36 L 70.94 70.44 L 73.62 72.2 L 74.84 72.31 L 76.11 71.88 L 75.62 70.19 L 75.92 68.47 L 74.55 66.37 L 73.98 65.83 L 72.83 65.23 L 71.32 65.76 L 68.53 65.15 L 64.96 65.24 L 64.9 55.34 L 65.86 55.38 L 67.18 54.8 L 69.46 54.2 L 72.3 55.07 L 91.33 55.13 L 90.87 54.47 L 90.08 54.33 L 89.7 53.13 L 90.65 51.2 L 92.08 51.6 L 92.69 53.12 L 93.56 54.44 L 94.22 54.79 L 95.05 54.8 L 96.66 54.19 L 98.6 52.1 L 98.92 51.26 L 100.18 50.02 L 102.73 48.63 L 104.02 49.09 L 105.19 51.67 L 106.81 53.66 L 107.55 54.96 L 108.21 56.74 L 108.44 58.29 L 107.95 61.92 L 108.15 63.68 L 111.35 62.93 L 119.66 69.99 L 120.45 70.27 L 122.95 70.48 L 125.25 69.48 L 126.95 67.78 L 129.06 66.62 L 131.25 66.51 L 131.81 66.8 L 132.58 67.88 L 132.56 68.85 L 131.45 70.55 L 131.82 71.53 L 132.4 71.8 L 133.73 71.08 L 134.29 70.17 L 134.52 68.88 L 135.52 67.72 L 135.99 67.49 L 136.99 67.67 L 137.54 67.49 L 137.95 66.83 L 138.41 64.52 L 138.92 64.15 L 140.43 63.79 L 143.36 62.02 L 144.33 62.57 L 145.26 62.28 L 146.86 61.24 L 147.88 59.63 L 149.99 58.42 L 152.02 58.97 L 154.38 57.32 L 154.93 56.5 L 155.37 53.84 L 155.34 52.55 L 156.11 51.63 L 157.14 51.21 L 158.88 51.19 L 160.22 50.8 L 162.28 49.2 L 163.24 48.83 L 165.52 48.53 z"},{code:"AP",name:"Amapá",gTransform:"matrix(1 0 0 1 32.29 -262.31)",pathTransform:"translate(-338.29, -56.97)",d:"M 344.98 99.7 L 344.04 99.64 L 343.27000000000004 99.98 L 341.97 100.10000000000001 L 339.18 99.42 L 337.73 98.39 L 337.3 96.89 L 335.43 95.5 L 335.32 94.2 L 335.53 93.51 L 335.21999999999997 91.93 L 334.89 91.46000000000001 L 333.94 91.27000000000001 L 333.53 90.33000000000001 L 333.60999999999996 87.9 L 330.67999999999995 84.62 L 329.9 84.98 L 329.08 84.79 L 327.58 81.31 L 327.71 79.73 L 327.12 77.92 L 326.5 77.36 L 325.83 75.85 L 325.64 73.74 L 326.07 70.6 L 325.9 70.27 L 323.33 69.53999999999999 L 321.31 67.27999999999999 L 320.55 64.44999999999999 L 320.74 63.72999999999999 L 321.42 63.49999999999999 L 320.93 62.31999999999999 L 320.25 62.349999999999994 L 317.41 59.69 L 316.47 59.83 L 316.09000000000003 60.25 L 314.76000000000005 60.39 L 313.9200000000001 60.12 L 313.12000000000006 59.14 L 311.9800000000001 58.3 L 310.7900000000001 58.18 L 310.30000000000007 56.9 L 309.63000000000005 56.1 L 307.70000000000005 55.050000000000004 L 306.41 54.56 L 303.02000000000004 54.190000000000005 L 301.94000000000005 54.480000000000004 L 300.77000000000004 54.46 L 300.46000000000004 53.92 L 300.22 52.480000000000004 L 300.47 47.940000000000005 L 301.09000000000003 46.64000000000001 L 300.72 44.34000000000001 L 300.1 43.77000000000001 L 300.1 43.77000000000001 L 300.45000000000005 43.56000000000001 L 301.44000000000005 43.86000000000001 L 301.43000000000006 44.67000000000001 L 301.14000000000004 44.85000000000001 L 301.48 45.82000000000001 L 302.95000000000005 45.760000000000005 L 303.77000000000004 45.99 L 304.12000000000006 46.89 L 304.96000000000004 47.6 L 307.21000000000004 48.38 L 310.50000000000006 49.13 L 313.26000000000005 47.35 L 313.61000000000007 46.59 L 315.3400000000001 45.42 L 316.1700000000001 45.13 L 316.86000000000007 46.07 L 319.57000000000005 47.01 L 320.65000000000003 46.89 L 322.37000000000006 45.88 L 322.49000000000007 45.46 L 322.81000000000006 45.49 L 324.27000000000004 46.79 L 324.07000000000005 47.66 L 326.44000000000005 47.489999999999995 L 326.95000000000005 47.989999999999995 L 327.90000000000003 48.16 L 328.52000000000004 48.15 L 329.43000000000006 47.67 L 331.1000000000001 46.17 L 332.88000000000005 45.07 L 334.63000000000005 42.77 L 335.00000000000006 41.77 L 334.80000000000007 41.230000000000004 L 337.93000000000006 34.730000000000004 L 338.0400000000001 32.910000000000004 L 339.1500000000001 31.610000000000003 L 339.8800000000001 31.42 L 343.48000000000013 25.630000000000003 L 343.71000000000015 24.480000000000004 L 344.5500000000001 23.280000000000005 L 346.34000000000015 21.730000000000004 L 346.97000000000014 20.070000000000004 L 349.08000000000015 18.930000000000003 L 349.5500000000002 18.01 L 350.5900000000002 17.430000000000003 L 351.1500000000002 18.890000000000004 L 352.0300000000002 20.250000000000004 L 350.3600000000002 15.450000000000003 L 350.2900000000002 14.160000000000004 L 350.4700000000002 13.830000000000004 L 353.8400000000002 16.250000000000004 L 354.9800000000002 17.460000000000004 L 355.8900000000002 18.680000000000003 L 356.4100000000002 19.870000000000005 L 356.44000000000017 21.450000000000003 L 356.88000000000017 21.76 L 357.20000000000016 21.28 L 357.58000000000015 21.18 L 357.79000000000013 21.58 L 358.0000000000001 29.47 L 358.66000000000014 33.339999999999996 L 361.3700000000001 39.38999999999999 L 364.03000000000014 48.32999999999999 L 367.35000000000014 53.32999999999999 L 368.3600000000001 53.67999999999999 L 371.6300000000001 53.599999999999994 L 374.4100000000001 54.53999999999999 L 375.7000000000001 55.38999999999999 L 376.4700000000001 58.03999999999999 L 376.31000000000006 61.36999999999999 L 375.02000000000004 62.32999999999999 L 373.29 62.75999999999999 L 372.91 63.08999999999999 L 374.70000000000005 62.93999999999999 L 375.74000000000007 62.51999999999999 L 376.02000000000004 62.749999999999986 L 376.14000000000004 63.33999999999999 L 375.97 64.07 L 370.94000000000005 68.13 L 369.77000000000004 70.22999999999999 L 367.62000000000006 71.63999999999999 L 365.68000000000006 75.35999999999999 L 362.77000000000004 78.85999999999999 L 362.07000000000005 79.31999999999998 L 361.13000000000005 79.22999999999998 L 359.68000000000006 79.74999999999997 L 357.6000000000001 82.72999999999998 L 357.6000000000001 82.72999999999998 L 356.2600000000001 82.79999999999997 L 355.5100000000001 83.69999999999997 L 355.5100000000001 83.69999999999997 L 354.0400000000001 85.37999999999998 L 353.07000000000005 87.59999999999998 L 351.95000000000005 89.46999999999998 L 351.11000000000007 90.11999999999999 L 348.1000000000001 93.57 L 347.74000000000007 95.97 L 347.9100000000001 97.77 L 345.9600000000001 99.58 L 344.98 99.7 z M 368.34 52.71 L 367.89 52.38 L 366.78999999999996 50.52 L 366.85999999999996 49.64 L 367.09 49.230000000000004 L 368.75 48.78 L 369.18 49.17 L 370.01 51.440000000000005 L 369.02 52.540000000000006 L 368.34 52.71 z M 370.83 70.32 L 370.43 70.07 L 370.35 69.36 L 371.46000000000004 68.26 L 372.34000000000003 68.11 L 373.59000000000003 68.35 L 374.05 68.24 L 374.49 67.6 L 374.54 68.19 L 373.57 69.63 L 372.58 70.13 L 370.83 70.32 z M 374.27 67.45 L 373.49 67.22 L 373.49 66.66 L 374.21000000000004 65.61999999999999 L 375.46000000000004 65.52 L 375.64000000000004 65.86999999999999 L 375.54 66.38 L 374.27 67.45 z M 367.08 49.03 L 366.32 48.53 L 366.58 47.7 L 367.46 47.53 L 368.32 47.85 L 368.33 48.58 L 367.08 49.03 z"},{code:"BA",name:"Bahia",gTransform:"matrix(1 0 0 1 193.52 -26.39)",pathTransform:"translate(-499.52, -292.87)",d:"M 527.5 365.33 L 527.14 364.5 L 527.8199999999999 363.15 L 527.81 362.62 L 527.28 361.58 L 523.15 358.53 L 523 358.02 L 523.22 356.51 L 522.65 355.28 L 522 355.52 L 521.8 355.96999999999997 L 521.4599999999999 356.15 L 521.2399999999999 355.9 L 521.7699999999999 351.5 L 522.5899999999999 348.2 L 523.41 347.32 L 525.88 347.56 L 526.9 346.85 L 526.9 346.43 L 526.34 345.41 L 526.5 342.76000000000005 L 531.46 338.54 L 532.9300000000001 335.46000000000004 L 532.5100000000001 334.29 L 531.7300000000001 333.27000000000004 L 530.8400000000001 333.21000000000004 L 530.1100000000001 332.83000000000004 L 527.2800000000001 330.36 L 525.1600000000001 330.38 L 522.97 329.78 L 520.7 328.7 L 517.97 328.14 L 515.99 328 L 514.67 328.99 L 513.1999999999999 329.49 L 510.5899999999999 329.04 L 510.0199999999999 329.25 L 509.5799999999999 325.29 L 503.05999999999995 319.09000000000003 L 502.67999999999995 318.91 L 498.28999999999996 320.14000000000004 L 496.76 318.90000000000003 L 496.25 319.11 L 495.32 318.89 L 492.78 317.66999999999996 L 490.60999999999996 316.04999999999995 L 489.62999999999994 316.22999999999996 L 485.2799999999999 312.59999999999997 L 484.1799999999999 312.05999999999995 L 481.4499999999999 311.30999999999995 L 479.6799999999999 311.55999999999995 L 477.7999999999999 312.4599999999999 L 476.9899999999999 313.5799999999999 L 476.3499999999999 313.75999999999993 L 471.0199999999999 312.2899999999999 L 470.4099999999999 311.7999999999999 L 470.1499999999999 310.2999999999999 L 470.2899999999999 309.4099999999999 L 471.5799999999999 306.6699999999999 L 470.7199999999999 306.2099999999999 L 468.43999999999994 305.68999999999994 L 466.25999999999993 305.6499999999999 L 465.05999999999995 305.1499999999999 L 463.2699999999999 305.06999999999994 L 459.43999999999994 306.6499999999999 L 455.17999999999995 309.6799999999999 L 454.53999999999996 310.7899999999999 L 451.16999999999996 312.6599999999999 L 449.15 313.0599999999999 L 448.2 314.2399999999999 L 446.39 315.7899999999999 L 444.96 316.3099999999999 L 443.96 316.1599999999999 L 442.10999999999996 318.7399999999999 L 441.06999999999994 319.5099999999999 L 438.93999999999994 319.1299999999999 L 438.2199999999999 319.2599999999999 L 437.5299999999999 320.2599999999999 L 436.18999999999994 321.1799999999999 L 435.78999999999996 320.9399999999999 L 437.21999999999997 317.5099999999999 L 436.71 315.09999999999985 L 436.71 315.09999999999985 L 438.19 313.1299999999998 L 438.44 312.35999999999984 L 438.21 311.08999999999986 L 437.53999999999996 309.36999999999983 L 437.64 308.6999999999998 L 438.34999999999997 307.2799999999998 L 438.29999999999995 306.8199999999998 L 435.09 304.1999999999998 L 433.4 300.73999999999984 L 432.78 297.21999999999986 L 432.83 295.66999999999985 L 434.03 291.83999999999986 L 435.61999999999995 290.8099999999999 L 435.84999999999997 290.4299999999999 L 435.90999999999997 289.4899999999999 L 434.28 288.6499999999999 L 434.16999999999996 288.31999999999994 L 434.65 285.79999999999995 L 436.08 284.73999999999995 L 436.06 284.36999999999995 L 433.34 281.90999999999997 L 433.34 281.90999999999997 L 433.29999999999995 280.97999999999996 L 434.65999999999997 278.59999999999997 L 434.61999999999995 277.53 L 434.44999999999993 277.10999999999996 L 432.98999999999995 276.61999999999995 L 432.04999999999995 275.96999999999997 L 431.69999999999993 274.71 L 431.75999999999993 271.78999999999996 L 431.94999999999993 270.93999999999994 L 433.8999999999999 269.2699999999999 L 435.0399999999999 268.8499999999999 L 435.9999999999999 268.1299999999999 L 435.70999999999987 267.4999999999999 L 435.1299999999999 266.9799999999999 L 434.20999999999987 266.6899999999999 L 433.1799999999999 266.8699999999999 L 432.82999999999987 266.5399999999999 L 432.7399999999999 266.0399999999999 L 433.1599999999999 265.0799999999999 L 435.19999999999993 264.25999999999993 L 435.75999999999993 263.80999999999995 L 435.7199999999999 263.04999999999995 L 433.8399999999999 262.06999999999994 L 430.25999999999993 261.3999999999999 L 428.3999999999999 259.43999999999994 L 428.1699999999999 258.5199999999999 L 428.6699999999999 257.3599999999999 L 429.6799999999999 256.6299999999999 L 431.1999999999999 253.1499999999999 L 432.09999999999985 252.53999999999988 L 433.10999999999984 252.26999999999987 L 433.45999999999987 251.88999999999987 L 432.16999999999985 250.08999999999986 L 432.35999999999984 249.71999999999986 L 435.5699999999998 247.09999999999985 L 439.3899999999998 245.07999999999984 L 439.9499999999998 244.60999999999984 L 440.16999999999985 243.62999999999985 L 440.85999999999984 242.97999999999985 L 440.85999999999984 242.97999999999985 L 443.1899999999998 242.95999999999984 L 444.6299999999998 244.29999999999984 L 445.28999999999985 245.33999999999983 L 445.8199999999998 247.54999999999984 L 447.5799999999998 250.03999999999985 L 451.7599999999998 251.89999999999986 L 453.55999999999983 251.37999999999985 L 455.66999999999985 251.55999999999986 L 455.99999999999983 251.34999999999985 L 456.74999999999983 249.89999999999986 L 457.8899999999998 249.52999999999986 L 458.55999999999983 248.65999999999985 L 459.72999999999985 247.76999999999987 L 461.9399999999998 247.01999999999987 L 463.2699999999998 247.18999999999986 L 464.74999999999983 247.71999999999986 L 466.09999999999985 247.29999999999987 L 469.0699999999999 244.87999999999988 L 472.01999999999987 239.82999999999987 L 472.7399999999999 238.96999999999986 L 472.9799999999999 238.04999999999987 L 473.2799999999999 235.48999999999987 L 473.1599999999999 234.32999999999987 L 470.9199999999999 229.89999999999986 L 470.9699999999999 228.96999999999986 L 474.2099999999999 227.31999999999985 L 476.1599999999999 227.29999999999984 L 477.6599999999999 227.75999999999985 L 478.06999999999994 228.68999999999986 L 478.38999999999993 228.86999999999986 L 480.50999999999993 228.43999999999986 L 481.8999999999999 227.89999999999986 L 483.2299999999999 228.27999999999986 L 484.9399999999999 229.26999999999987 L 484.8099999999999 229.91999999999987 L 484.9999999999999 230.20999999999987 L 485.8199999999999 230.48999999999987 L 488.8199999999999 230.37999999999985 L 490.2899999999999 229.73999999999987 L 491.9899999999999 229.63999999999987 L 492.8099999999999 228.41999999999987 L 494.3199999999999 227.07999999999987 L 497.0499999999999 226.73999999999987 L 497.8199999999999 226.37999999999985 L 498.6299999999999 225.39999999999986 L 500.7999999999999 225.40999999999985 L 501.4199999999999 226.03999999999985 L 501.7299999999999 226.08999999999986 L 503.5899999999999 224.27999999999986 L 503.4899999999999 221.87999999999985 L 505.4799999999999 221.49999999999986 L 506.2699999999999 221.67999999999986 L 507.31999999999994 221.01999999999987 L 508.81999999999994 218.70999999999987 L 509.2799999999999 217.55999999999986 L 509.2799999999999 217.55999999999986 L 510.1699999999999 217.95999999999987 L 511.3299999999999 217.68999999999986 L 513.53 217.97999999999985 L 516.35 219.36999999999983 L 516.7900000000001 219.87999999999982 L 516.7300000000001 222.60999999999981 L 517.4500000000002 224.5499999999998 L 519.6600000000002 225.4599999999998 L 519.9300000000002 227.4599999999998 L 519.0100000000002 229.13999999999982 L 520.8400000000003 229.75999999999982 L 521.8000000000003 229.53999999999982 L 522.6200000000003 228.61999999999983 L 525.4900000000004 227.73999999999984 L 526.2600000000003 224.15999999999983 L 526.7600000000003 223.28999999999982 L 527.5100000000003 223.12999999999982 L 528.2900000000003 223.65999999999983 L 528.9200000000003 223.70999999999984 L 531.3100000000003 222.68999999999983 L 532.4100000000003 221.44999999999982 L 532.5800000000003 220.85999999999981 L 532.3300000000003 219.4999999999998 L 532.6200000000002 219.2499999999998 L 534.8600000000002 218.7999999999998 L 535.6300000000002 216.7499999999998 L 537.2800000000002 216.3099999999998 L 539.8100000000002 214.8499999999998 L 540.4000000000002 214.7499999999998 L 541.8900000000002 215.3099999999998 L 542.7200000000003 216.7499999999998 L 544.0800000000003 217.5599999999998 L 546.4400000000003 218.3399999999998 L 549.4300000000003 218.7399999999998 L 551.0100000000003 219.88999999999982 L 551.5500000000003 221.53999999999982 L 551.9400000000003 221.80999999999983 L 552.3700000000002 221.65999999999983 L 552.6600000000002 219.90999999999983 L 553.0900000000001 219.46999999999983 L 554.0900000000001 219.45999999999984 L 554.5400000000002 219.77999999999983 L 554.5600000000002 220.40999999999983 L 553.9400000000002 221.28999999999982 L 554.3900000000002 222.11999999999983 L 554.8900000000002 222.48999999999984 L 556.9900000000002 223.34999999999985 L 557.0100000000002 224.28999999999985 L 558.2300000000002 227.33999999999986 L 558.2300000000002 227.33999999999986 L 558.7700000000002 228.73999999999987 L 559.7900000000002 229.02999999999986 L 560.2400000000002 228.93999999999986 L 561.6700000000002 229.72999999999985 L 561.8700000000002 230.44999999999985 L 561.8700000000002 230.44999999999985 L 561.2000000000003 231.60999999999984 L 561.4100000000003 233.74999999999983 L 562.6900000000003 236.24999999999983 L 564.6800000000003 238.19999999999982 L 565.4300000000003 239.34999999999982 L 565.3500000000003 242.46999999999983 L 564.6900000000003 244.08999999999983 L 564.6000000000003 244.96999999999983 L 565.3600000000002 247.71999999999983 L 565.0600000000003 248.29999999999984 L 564.3700000000002 248.84999999999985 L 561.8200000000003 249.84999999999985 L 560.6900000000003 249.09999999999985 L 558.9800000000002 249.08999999999986 L 558.6600000000002 249.38999999999987 L 558.0700000000002 250.96999999999989 L 558.0900000000001 251.7399999999999 L 559.0400000000002 253.3399999999999 L 560.1400000000002 253.9999999999999 L 560.6600000000002 255.4899999999999 L 562.0900000000001 256.9999999999999 L 562.2400000000001 257.3899999999999 L 562.1100000000001 258.8099999999999 L 561.7700000000001 259.1999999999999 L 561.8900000000001 259.6199999999999 L 562.4800000000001 260.1399999999999 L 564.4100000000001 261.0599999999999 L 564.8900000000001 261.76999999999987 L 565.4300000000001 262.10999999999984 L 566.98 262.74999999999983 L 569.87 261.86999999999983 L 569.87 261.86999999999983 L 570.51 261.84999999999985 L 570.87 262.2599999999999 L 566.79 271.08999999999986 L 562.9599999999999 276.27999999999986 L 561.93 278.60999999999984 L 556.9 284.34999999999985 L 554.4499999999999 285.60999999999984 L 553.5799999999999 285.59999999999985 L 553.8799999999999 284.16999999999985 L 554.2499999999999 284.01999999999987 L 554.3899999999999 282.91999999999985 L 553.9399999999998 280.98999999999984 L 552.0699999999998 280.73999999999984 L 551.6399999999999 279.4399999999998 L 550.9599999999999 278.6899999999998 L 550.5899999999999 279.28999999999985 L 550.1299999999999 281.61999999999983 L 549.6299999999999 282.48999999999984 L 549.0799999999999 282.86999999999983 L 548.52 282.5799999999998 L 548.03 280.8399999999998 L 548.14 280.5199999999998 L 548.4499999999999 280.3899999999998 L 548.42 279.99999999999983 L 547.55 281.28999999999985 L 548.4799999999999 282.97999999999985 L 548.9399999999999 283.20999999999987 L 549.31 283.0599999999999 L 550.4599999999999 283.3199999999999 L 549.9999999999999 285.1299999999999 L 548.7899999999998 286.27999999999986 L 548.5399999999998 288.09999999999985 L 547.2899999999998 289.0699999999999 L 546.9399999999998 289.7399999999999 L 546.7399999999998 290.57999999999987 L 546.9199999999997 291.4299999999999 L 545.5699999999997 291.0399999999999 L 545.3599999999997 291.4299999999999 L 544.9999999999997 293.9499999999999 L 545.3599999999997 293.22999999999985 L 546.1099999999997 293.4399999999998 L 546.3499999999997 293.97999999999985 L 546.1199999999997 294.3899999999999 L 546.1799999999996 295.0099999999999 L 546.4799999999996 295.3099999999999 L 546.8099999999996 296.3099999999999 L 545.7699999999996 298.8199999999999 L 546.3399999999997 302.2599999999999 L 545.7899999999997 302.7499999999999 L 545.2199999999997 302.52999999999986 L 545.0799999999997 303.65999999999985 L 545.6699999999997 304.11999999999983 L 546.8799999999998 302.3999999999998 L 546.4099999999997 300.1899999999998 L 547.2299999999998 299.5799999999998 L 547.4799999999998 300.11999999999983 L 547.4199999999998 301.8799999999998 L 546.4599999999998 304.48999999999984 L 545.7199999999998 309.91999999999985 L 545.2099999999998 311.72999999999985 L 545.4099999999999 314.1999999999999 L 546.1899999999998 317.0499999999999 L 546.3799999999999 321.5899999999999 L 547.2499999999999 327.99999999999994 L 548.2399999999999 331.41999999999996 L 546.0299999999999 338.08 L 544.6799999999998 344.72999999999996 L 544.2099999999998 345.73999999999995 L 544.0499999999998 348.59999999999997 L 542.9899999999999 352.32 L 542.8999999999999 354.65 L 543.2899999999998 359.07 L 544.1799999999998 360.78 L 541.9399999999998 363.76 L 540.1299999999999 364.43 L 539.1899999999998 365.07 L 536.4699999999998 368.96 L 535.9 371 L 535.9 371 L 527.81 365.86 L 527.5 365.33 z M 549.78 287.33 L 549.55 286.13 L 550.29 285.71999999999997 L 551.3499999999999 284.67999999999995 L 551.5099999999999 284.03999999999996 L 551.1399999999999 283.30999999999995 L 551.8999999999999 283.44999999999993 L 552.7199999999999 284.49999999999994 L 552.67 285.0299999999999 L 549.78 287.33 z M 547.25 294.18 L 546.62 294.15000000000003 L 546.63 293.48 L 546.89 293.12 L 546.09 292.9 L 545.6700000000001 292.5 L 545.8000000000001 291.43 L 547.6700000000001 291.28000000000003 L 547.83 291.48 L 547.94 292.61 L 547.25 294.18 z"},{code:"CE",name:"Ceará",gTransform:"matrix(1 0 0 1 235.04 -154.64)",pathTransform:"translate(-541.04, -164.62)",d:"M 573.79 156.85 L 568.9 158.44 L 566.29 160.45 L 562.99 167.14 L 562.15 168.26 L 561.28 168.83 L 560.63 170.5 L 560.78 171.24 L 559.38 173.68 L 557.92 175.19 L 557.35 176.29 L 556.32 176.55 L 555.54 176.04 L 555.03 176.11 L 554.19 176.99 L 552.78 179.24 L 552.44 181.21 L 553.08 181.38 L 553.74 181 L 553.74 181 L 553.66 181.54 L 552.82 182.69 L 551.79 185.69 L 552.31 187 L 551.65 188.31 L 550.56 188.94 L 550.39 189.32 L 550.27 190.25 L 550.51 190.66 L 551.09 190.95 L 551.44 191.67 L 551.42 193.33 L 552.66 194.22 L 553.35 194.3 L 553.69 195.49 L 552.08 198.98 L 550.89 200.1 L 551.06 200.35 L 551.06 200.35 L 549.47 200.84 L 548.4 201.67 L 546.86 203.96 L 545.21 204.01 L 544.58 202.37 L 543.8 201.8 L 542.44 201.32 L 541.43 200.25 L 540.97 199.26 L 539.14 198.43 L 536.29 196.53 L 533.21 196.11 L 531.92 196.21 L 529.78 197.01 L 528.15 197.2 L 527.26 196.96 L 522.33 196.76 L 522.33 196.76 L 522.39 195.44 L 521.71 194.76 L 521.63 193.79 L 522.77 190.68 L 524.27 188.43 L 524.28 187.74 L 523.51 186.58 L 520.95 186.11 L 519.64 185.46 L 518.63 182.79 L 517.58 177.59 L 516.82 175.02 L 517.06 174.57 L 516.12 166.41 L 516.01 166.03 L 515.09 165.34 L 515.89 164.76 L 516.48 163.18 L 515.88 160.19 L 514.88 158.18 L 515.36 156.58 L 514.57 152.71 L 515.31 151.35 L 515.33 150.59 L 513.97 149 L 513.53 147.27 L 510.38 140.85 L 508.58 136.13 L 508.29 134.84 L 508.47 133.38 L 510.05 131.41 L 511.14 129.56 L 511.25 128.76 L 511.25 128.76 L 511.44 128.62 L 511.4 128 L 511 127.34 L 511.65 126.53 L 518.39 126.31 L 521.28 125.88 L 523.35 125.22 L 530.75 126.01 L 532.87 127.13 L 534.81 128.63 L 538.93 130.81 L 540.39 131.33 L 545.21 134.33 L 546.42 134.53 L 548.64 136.82 L 551.63 138.93 L 554.2 139.65 L 556.64 142.56 L 557.86 143.17 L 560.82 146.98 L 564.98 150.06 L 566.44 152.06 L 567.48 153.05 L 568.98 153.87 L 570.13 153.9 L 572.5 154.82 L 573.29 155.49 z"},{code:"DF",name:"Distrito Federal",gTransform:"matrix(1 0 0 1 103.1 10.18)",pathTransform:"translate(-409.11, -329.45)",d:"M 416.71 333.87 L 402.02 333.85 L 401.5 330.59 L 402.42 328.76 L 402.8 325.03 L 414.75 325.04 L 416.58 327.02 L 416.64 329.23 L 416.05 330.42 L 415.84 332.86 z"},{code:"ES",name:"Espírito Santo",gTransform:"matrix(1 0 0 1 212.62 72.56)",pathTransform:"translate(-518.62, -391.82)",d:"M 501.63 411.37 L 501.34 411.23 L 501.78 408.89 L 502.35 407.59 L 501.76 404.47 L 501.92 404.05 L 503.64 401.99 L 508.79 402.02 L 509.34 401.7 L 510.31 398.46 L 511.42 397.19 L 512.3 394.9 L 512.54 393.18 L 512.8 392.74 L 514.04 391.88 L 515.75 389.79 L 516.29 386.82 L 516 384.39 L 514.73 381.58 L 513.63 380.31 L 513.11 380.22 L 512.66 380.51 L 511.9 380.23 L 511.41 379.52 L 511.84 378.97 L 513.32 378.88 L 514.12 379.23 L 515.09 379.26 L 516.04 379.02 L 516.36 378.6 L 516.19 376.88 L 514.88 376.53 L 514.67 376.12 L 514.97 374.58 L 515 372.66 L 514.48 372 L 513.15 371.33 L 512.85 370.63 L 514.02 368.7 L 516.19 367.39 L 516.5 367.37 L 517.55 368.11 L 518.68 368.22 L 518.7 367.41 L 517.03 365.14 L 518.37 365.27 L 520.55 364.98 L 521.39 364.37 L 522.47 364.05 L 524.05 363.97 L 526.59 364.78 L 527.5 365.33 L 527.5 365.33 L 527.5 365.33 L 527.5 365.33 L 527.8 365.86 L 535.9 371 L 535.9 371 L 534.97 374.35 L 534.66 377.21 L 534.78 380.8 L 535.5 386.95 L 535.19 389.42 L 533.7 392.6 L 530.95 393.99 L 530.4 394.59 L 528.73 397.92 L 527.75 401.72 L 526.98 403.19 L 526.15 402.51 L 525.27 402.38 L 524.98 403.66 L 526.33 404.18 L 524.39 408.42 L 520.94 412.26 L 520.7 411.99 L 518.84 412.65 L 518.04 413.88 L 517.98 415.27 L 517.56 416.52 L 515.97 418.54 L 515.68 419.67 L 515.68 419.67 L 514.06 418.61 L 511.07 418.98 L 506.73 417.97 L 504.23 416.84 L 503.56 412.13 z"},{code:"GO",name:"Goiás",gTransform:"matrix(1 0 0 1 75.37 14.13)",pathTransform:"translate(-381.37, -333.38)",d:"M 416.71 333.87 L 415.84 332.86 L 416.05 330.42 L 416.64 329.23 L 416.58 327.02 L 414.75 325.04 L 402.8 325.03 L 402.42 328.76 L 401.5 330.59 L 402.02 333.85 L 416.71 333.87 L 416.71 333.87 L 416.71 333.87 L 416.71 333.87 L 416.18 335.39 L 416.49 336.96 L 415.81 338.55 L 414.77 339.8 L 414.36 341.27 L 415.21 342.48 L 416.06 342.82 L 417.48 343.85 L 419.13 348.41 L 419.13 349.01 L 416.81 351.72 L 413.57 354.73 L 413.14 356.87 L 414.23 357.98 L 415.13 357.51 L 416.71 358.08 L 417.18 358.69 L 417.36 359.69 L 417.19 360.4 L 416.46 361.3 L 415.95 363.19 L 417.14 366.65 L 414.05 368.71 L 412.89 368.91 L 412.03 369.81 L 411.55 370.93 L 406.66 373.67 L 405.96 372.9 L 401.61 371.04 L 401.06 371.52 L 400.48 371.61 L 398.73 371.62 L 397.25 371.34 L 393.39 371.5 L 391.38 370.61 L 387.25 373.25 L 384.34 376.17 L 384.01 376.17 L 382.7 374.75 L 381.18 374.45 L 377.99 376.09 L 374.28 375.47 L 371.8 376.43 L 369.57 376.97 L 368.16 379.07 L 366.95 381.53 L 367.01 382.53 L 366.17 383.83 L 365.35 384.11 L 364.51 383.95 L 364.06 384.09 L 363.12 384.83 L 361.48 386.93 L 360.91 388.83 L 361.47 389.44 L 361.46 389.78 L 361.1 390.01 L 360.24 389.55 L 360.24 389.55 L 360 389.1 L 357.34 386.86 L 354.19 386.25 L 352.57 384.7 L 350.67 384.27 L 349.18 384.23 L 345.83 382.89 L 345.15 382.04 L 342.08 380.48 L 341.41 379.87 L 339.97 379.16 L 338.83 378.99 L 336.13 377.31 L 333.35 377.47 L 329.55 376.77 L 329.42 376.44 L 329.68 375.6 L 330.25 374.43 L 331.56 372.67 L 331.48 372.25 L 329.23 371.35 L 328.09 372.02 L 327.43 371.83 L 327.15 371.42 L 326.92 370.31 L 327.18 367.73 L 326.99 365.96 L 326.99 365.96 L 326.04 363.76 L 325.86 360.33 L 324.45 358.14 L 324.29 357.43 L 324.69 354.02 L 327.24 350.17 L 327.62 347.26 L 328.32 346.49 L 330.34 345.65 L 332.26 343.88 L 333.51 341.86 L 333.84 339.91 L 334.34 338.9 L 335.62 337.86 L 336.44 336.43 L 336.52 334.89 L 338.27 333.92 L 339.67 331.3 L 342.32 331.17 L 345.04 330.31 L 345.36 330.03 L 347.34 325.84 L 348.05 324.88 L 348.69 320.78 L 349.07 320.04 L 350.99 318.1 L 352.64 317.09 L 353.71 316.83 L 354.94 317.51 L 356.15 316.78 L 357.54 315.35 L 358.38 312.42 L 359.55 309.55 L 359.54 308.75 L 359.06 307.61 L 359.64 304.87 L 361.24 301.78 L 361.12 296.6 L 362.33 295.82 L 363.36 293.19 L 365.36 290.02 L 365.75 288.95 L 365.59 286.23 L 365.94 285.33 L 366.91 284.47 L 367.18 283.34 L 367.1 282.71 L 367.1 282.71 L 367.44 282.26 L 367.64 280.38 L 368.3 279.15 L 370.11 277.06 L 370.67 276.76 L 370.64 278.47 L 369.42 280.35 L 368.9 282.69 L 371.3 283.09 L 373.5 284.12 L 377.43 284.52 L 380.52 286.23 L 384.59 287.66 L 385.22 287.43 L 386.85 281.49 L 388.32 279.1 L 389.5 278.13 L 390.65 279.44 L 391.69 281.32 L 392.8 285.03 L 393.41 288.13 L 394.55 288.18 L 395.3 287.43 L 395.6 286.43 L 396.16 285.89 L 398.92 286.23 L 403.45 285.7 L 403.67 286.44 L 403.11 288 L 406.24 289.47 L 409.59 290.15 L 410.28 290.07 L 410.79 286.77 L 411.34 286.8 L 412.85 289.42 L 413.31 289.66 L 415.09 288.76 L 417.61 286.68 L 422.14 285.68 L 423.69 285.68 L 426.25 284.58 L 427.99 283.24 L 433.35 281.82 L 433.35 281.82 L 436.07 284.28 L 436.09 284.66 L 434.66 285.72 L 434.18 288.24 L 434.28 288.57 L 435.91 289.41 L 435.85 290.35 L 435.62 290.73 L 434.03 291.76 L 432.84 295.59 L 432.79 297.14 L 433.41 300.66 L 435.11 304.12 L 438.32 306.74 L 438.37 307.21 L 437.65 308.63 L 437.55 309.3 L 438.22 311.02 L 438.45 312.3 L 438.2 313.07 L 436.72 315.04 L 436.72 315.04 L 435.72 316.05 L 432.49 315.71 L 431.59 313.95 L 429.17 312.47 L 428 313.96 L 428.58 317.73 L 428.01 318.27 L 427.61 318.4 L 424.83 317.26 L 423.66 317.49 L 423.29 317.77 L 422.57 320.95 L 423.29 321.05 L 423.78 322.21 L 423.21 323.15 L 422.48 323.85 L 422.52 325.75 L 422.94 326.36 L 423.47 326.55 L 424.16 330.81 L 423.63 331.34 L 420.27 332.24 L 417.98 333.75 z"},{code:"MA",name:"Maranhão",gTransform:"matrix(1 0 0 1 142.22 -148.63)",pathTransform:"translate(-448.22, -170.64)",d:"M 458.57 128.92 L 458.53 129.25 L 456.48999999999995 131.4 L 456.05999999999995 131.57 L 456.0199999999999 133.01 L 457.98999999999995 131.31 L 458.66999999999996 130.1 L 460.78999999999996 128.51999999999998 L 461.67999999999995 127.37999999999998 L 462.7099999999999 121.04999999999998 L 463.8599999999999 120.34999999999998 L 464.9699999999999 120.22999999999998 L 466.63999999999993 119.30999999999997 L 467.2899999999999 119.17999999999998 L 467.7499999999999 119.29999999999998 L 467.82999999999987 120.92999999999998 L 467.6299999999999 121.37999999999998 L 466.20999999999987 123.24999999999999 L 462.9999999999999 124.99999999999999 L 462.9699999999999 125.71999999999998 L 463.69999999999993 125.83999999999999 L 464.1499999999999 125.02999999999999 L 465.2999999999999 124.71999999999998 L 465.5199999999999 125.54999999999998 L 464.92999999999995 126.05999999999999 L 465.17999999999995 126.35999999999999 L 469.38999999999993 121.38999999999999 L 470.24999999999994 121.71999999999998 L 472.8299999999999 120.78999999999998 L 476.86999999999995 121.21999999999998 L 476.40999999999997 118.80999999999999 L 477.02 118.57999999999998 L 479.44 118.65999999999998 L 481.21999999999997 119.03999999999998 L 483.84999999999997 120.08999999999997 L 484.89 120.19999999999997 L 487.03999999999996 121.57999999999997 L 488.43999999999994 121.60999999999997 L 489.69999999999993 122.90999999999997 L 491.5899999999999 124.22999999999996 L 494.0899999999999 124.80999999999996 L 495.24999999999994 124.61999999999996 L 495.80999999999995 125.37999999999997 L 496.1499999999999 125.42999999999996 L 497.7399999999999 125.33999999999996 L 500.1999999999999 125.99999999999996 L 500.45999999999987 125.09999999999995 L 499.78999999999985 124.62999999999995 L 501.45999999999987 124.24999999999996 L 502.02999999999986 124.35999999999996 L 501.9399999999999 124.77999999999996 L 501.9399999999999 124.77999999999996 L 501.4799999999999 126.20999999999997 L 501.7099999999999 126.92999999999996 L 502.3399999999999 127.46999999999997 L 501.9599999999999 128.99999999999997 L 500.1699999999999 131.26999999999998 L 496.0399999999999 135.23999999999998 L 492.7199999999999 135.7 L 491.9199999999999 135.54 L 488.9999999999999 138.94 L 489.0399999999999 140.74 L 488.1599999999999 142.57000000000002 L 486.2699999999999 144.42000000000002 L 485.44999999999993 146.4 L 484.80999999999995 146.57 L 484.03999999999996 147.62 L 484.4 149.54 L 485.63 150.37 L 486.01 151.65 L 485.73 153.11 L 484.59000000000003 155.98000000000002 L 486.17 158.79000000000002 L 486.72 161.77 L 486.61 164.20000000000002 L 486.40000000000003 164.75000000000003 L 482.3 169.17000000000002 L 482.13 171.65 L 482.25 173.76000000000002 L 482.76 176.06000000000003 L 484.53999999999996 178.10000000000002 L 486.15 179.01000000000002 L 486.32 179.51000000000002 L 486.45 180.35000000000002 L 486.06 182.55 L 485.77 182.99 L 485.65 184.20000000000002 L 485.15 185.66000000000003 L 483.94 186.97000000000003 L 481.65 187.26000000000002 L 481 186.98000000000002 L 480.17 187.02 L 477.74 187.88000000000002 L 476.22 187.99000000000004 L 473.72 186.17000000000004 L 472.71000000000004 185.96000000000004 L 471.25000000000006 186.15000000000003 L 470.24000000000007 186.75000000000003 L 469.12000000000006 187.01000000000002 L 468.89000000000004 186.71 L 468.05000000000007 186.95000000000002 L 467.55000000000007 187.17000000000002 L 465.6500000000001 189.08 L 465.6600000000001 189.54000000000002 L 465.0300000000001 190.41000000000003 L 463.0200000000001 192.41000000000003 L 460.6800000000001 193.32000000000002 L 457.8100000000001 195.88000000000002 L 456.48000000000013 196.41000000000003 L 455.4300000000001 196.45000000000002 L 453.73000000000013 197.98000000000002 L 452.65000000000015 198.34000000000003 L 450.04000000000013 198.66000000000003 L 447.3200000000001 199.42000000000002 L 445.1900000000001 201.37 L 444.2100000000001 204.34 L 443.8200000000001 207.31 L 443.1900000000001 209.63 L 441.7400000000001 212.37 L 441.4400000000001 212.59 L 441.10000000000014 213.41 L 440.97000000000014 214.93 L 439.77000000000015 217.41 L 438.07000000000016 218.81 L 437.34000000000015 220.81 L 438.0500000000001 222.75 L 438.52000000000015 225.93 L 440.25000000000017 228.99 L 440.21000000000015 229.51000000000002 L 439.45000000000016 230.91000000000003 L 439.32000000000016 237.27000000000004 L 438.1700000000002 239.72000000000003 L 437.9100000000002 240.78000000000003 L 437.8600000000002 242.70000000000002 L 437.8600000000002 242.70000000000002 L 436.5800000000002 242.04000000000002 L 435.9700000000002 241.22000000000003 L 435.1500000000002 240.77000000000004 L 434.1600000000002 240.48000000000005 L 432.3800000000002 240.68000000000004 L 431.67000000000024 240.50000000000003 L 430.3200000000002 238.50000000000003 L 429.3300000000002 235.64000000000001 L 427.2000000000002 234.02 L 427.06000000000023 232.37 L 428.7000000000002 230.56 L 428.62000000000023 230.03 L 424.74000000000024 228.08 L 424.12000000000023 227.03 L 424.06000000000023 225.37 L 423.31000000000023 223.78 L 422.37000000000023 223.09 L 420.29000000000025 222.81 L 420.09000000000026 222.39000000000001 L 420.35000000000025 221.68 L 422.98000000000025 219.14000000000001 L 422.61000000000024 217.83 L 423.34000000000026 215.15 L 424.03000000000026 213.72 L 424.60000000000025 213.17 L 425.9400000000002 212.63 L 429.3300000000002 212.28 L 428.9400000000002 210.93 L 429.5800000000002 207.68 L 429.5000000000002 205.92000000000002 L 427.7000000000002 204.71 L 423.43000000000023 205.65 L 421.28000000000026 206.99 L 419.0100000000003 203.97 L 418.10000000000025 203.12 L 415.10000000000025 198.97 L 414.22000000000025 199.04 L 413.3800000000003 197.6 L 413.9900000000003 196.41 L 413.8800000000003 195.53 L 413.6300000000003 195.19 L 412.2600000000003 194.95 L 411.84000000000026 195.22 L 409.91000000000025 193.89 L 410.09000000000026 193.17999999999998 L 411.85000000000025 192.51999999999998 L 413.60000000000025 190.48 L 413.85000000000025 188.89 L 413.5700000000003 187.89 L 413.8800000000003 185.52999999999997 L 415.65000000000026 179.36999999999998 L 415.66000000000025 178.93999999999997 L 414.98000000000025 177.79999999999998 L 414.7500000000002 176.71999999999997 L 414.9600000000002 172.99999999999997 L 414.3200000000002 171.49999999999997 L 413.8500000000002 168.00999999999996 L 413.0100000000002 166.97999999999996 L 409.61000000000024 165.53999999999996 L 408.3900000000002 165.51999999999995 L 408.11000000000024 165.19999999999996 L 408.03000000000026 164.16999999999996 L 407.4400000000003 163.47999999999996 L 405.7000000000003 163.18999999999997 L 404.7400000000003 163.70999999999998 L 403.3400000000003 163.61999999999998 L 400.56000000000034 162.10999999999999 L 399.70000000000033 162.04999999999998 L 397.74000000000035 162.57999999999998 L 395.12000000000035 164.42999999999998 L 394.5900000000004 165.06999999999996 L 394.5900000000004 165.06999999999996 L 394.10000000000036 164.98999999999995 L 408.81000000000034 153.15999999999994 L 411.16000000000037 153.38999999999993 L 412.3300000000004 152.46999999999994 L 413.8800000000004 150.29999999999995 L 414.3100000000004 149.14999999999995 L 415.8600000000004 147.97999999999996 L 416.4800000000004 145.09999999999997 L 417.6000000000004 144.63999999999996 L 420.0400000000004 142.31999999999996 L 420.51000000000045 141.10999999999996 L 420.80000000000047 139.20999999999995 L 422.4000000000005 134.51999999999995 L 424.36000000000047 132.97999999999996 L 425.8400000000005 131.21999999999997 L 426.67000000000047 129.76999999999998 L 427.13000000000045 128.48999999999998 L 426.95000000000044 126.66999999999999 L 427.74000000000046 125.85999999999999 L 426.70000000000044 124.27999999999999 L 430.38000000000045 121.18999999999998 L 430.25000000000045 119.54999999999998 L 430.75000000000045 117.16999999999999 L 432.49000000000046 115.6 L 432.8500000000005 114.89 L 433.75000000000045 111.87 L 433.83000000000044 110.26 L 433.40000000000043 109.73 L 432.4100000000004 109.89 L 432.14000000000044 109.4 L 432.19000000000045 108.78 L 433.33000000000044 108.63 L 433.90000000000043 107.89 L 434.6100000000004 103.5 L 434.4500000000004 102.12 L 434.9200000000004 101.09 L 435.6900000000004 100.64 L 435.6900000000004 100.64 L 436.3200000000004 100.64 L 436.5600000000004 100.4 L 436.5000000000004 99.86 L 436.8400000000004 99.11 L 437.42000000000036 98.58 L 438.76000000000033 99.56 L 439.2100000000003 101.4 L 440.4000000000003 101.52000000000001 L 441.1700000000003 100.16000000000001 L 441.7800000000003 103.09000000000002 L 442.7700000000003 103.13000000000002 L 443.06000000000034 102.64000000000003 L 443.13000000000034 101.70000000000003 L 443.98000000000036 101.66000000000003 L 445.67000000000036 102.19000000000003 L 446.17000000000036 102.88000000000002 L 444.74000000000035 104.58000000000003 L 445.41000000000037 105.28000000000003 L 445.43000000000035 105.83000000000003 L 446.6400000000003 103.79000000000002 L 447.13000000000034 102.25000000000001 L 447.5800000000003 102.25000000000001 L 447.9800000000003 103.27000000000001 L 447.9800000000003 103.85000000000001 L 447.1100000000003 104.77000000000001 L 446.8400000000003 105.76 L 446.9200000000003 108.47 L 447.1800000000003 108.8 L 447.6500000000003 108.92 L 448.2300000000003 108.78 L 449.1900000000003 107.85 L 448.72000000000025 106.85 L 448.86000000000024 106.25 L 450.18000000000023 104.82 L 451.23000000000025 104.57 L 453.36000000000024 105.16 L 454.86000000000024 104.05 L 454.91000000000025 104.97 L 454.55000000000024 105.17999999999999 L 453.42000000000024 106.71 L 454.0100000000002 107.28999999999999 L 454.11000000000024 106.91999999999999 L 455.36000000000024 106.32 L 455.9400000000002 107.11 L 455.80000000000024 108.32 L 457.43000000000023 110.07 L 458.29000000000025 109.63 L 459.87000000000023 110.3 L 460.6400000000002 112.7 L 460.5300000000002 113.65 L 458.3400000000002 116.38000000000001 L 457.9600000000002 117.27000000000001 L 458.06000000000023 117.93 L 458.66000000000025 116.9 L 460.41000000000025 115.22 L 461.24000000000024 115.19 L 462.11000000000024 116 L 462.6300000000002 117.89 L 462.36000000000024 119.12 L 461.3900000000002 119.31 L 460.36000000000024 120.22 L 459.2000000000002 121.71 L 459.2700000000002 122.47999999999999 L 458.1100000000002 124.82999999999998 L 457.4900000000002 128.35 L 457.70000000000016 128.69 L 458.57 128.92 z M 459.09 129.37 L 459.03 128.58 L 459.55999999999995 127.05000000000001 L 459.1499999999999 125.98000000000002 L 459.2799999999999 125.32000000000002 L 460.18999999999994 124.08000000000003 L 460.73999999999995 123.89000000000003 L 460.78999999999996 126.24000000000002 L 460.56999999999994 127.58000000000003 L 459.7699999999999 128.18000000000004 L 459.09 129.37 z M 452.79 103.61 L 452.35 103.15 L 452.27000000000004 102.55000000000001 L 453.07000000000005 101.43 L 453.91 101.4 L 454.59000000000003 101.82000000000001 L 454.69000000000005 102.16000000000001 L 454.50000000000006 102.52000000000001 L 452.79 103.61 z M 456.29 107.79 L 456 107.49000000000001 L 456.06 106.96000000000001 L 457.12 106.07000000000001 L 457.6 106.14 L 458.1 106.99 L 457.96000000000004 107.6 L 457.56000000000006 107.42999999999999 L 456.29 107.79 z M 442.13 102.98 L 441.92 102.93 L 442.87 99.35000000000001 L 443.17 99.44000000000001 L 443.2 99.67000000000002 L 442.78999999999996 102.73000000000002 L 442.13 102.98 z"},{code:"MG",name:"Minas Gerais",gTransform:"matrix(1 0 0 1 139.79 56.66)",pathTransform:"translate(-445.79, -375.93)",d:"M 527.5 365.33 L 526.59 364.78 L 524.05 363.97 L 522.47 364.05 L 521.39 364.37 L 520.55 364.98 L 518.37 365.27 L 517.03 365.14 L 518.7 367.41 L 518.68 368.22 L 517.55 368.11 L 516.5 367.37 L 516.19 367.39 L 514.02 368.7 L 512.85 370.63 L 513.15 371.33 L 514.48 372 L 515 372.66 L 514.97 374.58 L 514.67 376.12 L 514.88 376.53 L 516.19 376.88 L 516.36 378.6 L 516.04 379.02 L 515.09 379.26 L 514.12 379.23 L 513.32 378.88 L 511.84 378.97 L 511.41 379.52 L 511.9 380.23 L 512.66 380.51 L 513.11 380.22 L 513.63 380.31 L 514.73 381.58 L 516 384.39 L 516.29 386.82 L 515.75 389.79 L 514.04 391.88 L 512.8 392.74 L 512.54 393.18 L 512.3 394.9 L 511.42 397.19 L 510.31 398.46 L 509.34 401.7 L 508.79 402.02 L 503.64 401.99 L 501.92 404.05 L 501.76 404.47 L 502.35 407.59 L 501.78 408.89 L 501.34 411.23 L 501.63 411.37 L 501.63 411.37 L 499.1 413.72 L 497.86 413.99 L 497.3 414.49 L 498.04 415.19 L 495.68 421.24 L 493.78 424.95 L 493.69 425.7 L 495.13 425.83 L 495.42 426.44 L 495.21 426.96 L 492.68 427.94 L 483.17 432.47 L 481.8 432.67 L 481.82 432.21 L 481.33 432.04 L 478.8 431.77 L 478.23 431.83 L 476.61 432.77 L 475.36 432.93 L 472.16 433.01 L 471.8 432.69 L 471.29 432.77 L 467.19 434.55 L 466.14 435.32 L 464.43 436.09 L 463.93 435.81 L 461.34 435.98 L 458.43 437.32 L 456.01 438.06 L 455.33 438.55 L 455.33 438.55 L 454.08 439.28 L 451.88 439.5 L 449.95 440.52 L 448.72 441.76 L 446.93 442.43 L 444.55 442.68 L 442.21 442.6 L 442.2 442.11 L 442.55 441.62 L 442.46 441.27 L 441.27 441.6 L 441.09 443.9 L 441.33 444.13 L 441.28 444.97 L 440.53 445.95 L 439.23 446.27 L 438.66 445.84 L 435.05 446.84 L 434.86 446.31 L 432.85 446.55 L 431.73 446.3 L 429.7 442.99 L 430.92 442.28 L 430.4 440.57 L 428.6 439.74 L 426.81 438.51 L 426.1 436.9 L 426.63 435.34 L 426.82 431.89 L 426.56 428.95 L 428.42 426.23 L 429.12 424.05 L 429.17 422.78 L 428.94 422.41 L 425.24 421.09 L 424.24 421.14 L 423.96 421.5 L 423.18 421.81 L 421.57 421.86 L 421.6 421.01 L 420.77 419.02 L 419.47 417.23 L 419.1 415.02 L 418.79 414.4 L 418 413.66 L 418.19 411.72 L 419.71 409.69 L 419.77 409.13 L 419.37 407.58 L 417.49 406.37 L 416.91 405.76 L 417.2 403.39 L 417.77 402.38 L 417.57 401.34 L 414.3 397.99 L 413 398.28 L 412.15 398.92 L 410.5 398.14 L 408.12 398.25 L 407.81 398.86 L 408.01 399.32 L 407.57 400.31 L 404.79 400.99 L 403.68 400.56 L 402.17 399.11 L 401.16 400.36 L 392.98 401.04 L 392.52 401.52 L 392.04 402.71 L 392.31 405.25 L 391.9 405.69 L 390.71 405.17 L 390.7 402.39 L 390.45 401.43 L 390.09 401.04 L 389.53 400.99 L 389.27 401.18 L 388.86 402.31 L 388.19 403.25 L 387.65 403.57 L 387.03 403.55 L 385.82 401.45 L 385.49 400.03 L 385.63 399.12 L 383.95 398.33 L 381.77 396.91 L 379.78 397.5 L 378.16 397.28 L 376.49 397.63 L 372.2 396.67 L 369.65 396.59 L 367.92 395.04 L 367.17 394.9 L 365.67 395.51 L 364.24 397.2 L 362.32 397.57 L 360.17 398.68 L 358.95 399.81 L 358.95 399.81 L 359.26 397.19 L 358.67 393.98 L 359.66 389.8 L 360.24 389.55 L 360.24 389.55 L 361.1 390.01 L 361.46 389.78 L 361.47 389.44 L 360.91 388.83 L 361.48 386.93 L 363.12 384.83 L 364.06 384.09 L 364.51 383.95 L 365.35 384.11 L 366.17 383.83 L 367.01 382.53 L 366.95 381.53 L 368.16 379.07 L 369.57 376.97 L 371.8 376.43 L 374.28 375.47 L 377.99 376.09 L 381.18 374.45 L 382.7 374.75 L 384.01 376.17 L 384.34 376.17 L 387.25 373.25 L 391.38 370.61 L 393.39 371.5 L 397.25 371.34 L 398.73 371.62 L 400.48 371.61 L 401.06 371.52 L 401.61 371.04 L 405.96 372.9 L 406.66 373.67 L 411.55 370.93 L 412.03 369.81 L 412.89 368.91 L 414.05 368.71 L 417.14 366.65 L 415.95 363.19 L 416.46 361.3 L 417.19 360.4 L 417.36 359.69 L 417.18 358.69 L 416.71 358.08 L 415.13 357.51 L 414.23 357.98 L 413.14 356.87 L 413.57 354.73 L 416.81 351.72 L 419.13 349.01 L 419.13 348.41 L 417.48 343.85 L 416.06 342.82 L 415.21 342.48 L 414.36 341.27 L 414.77 339.8 L 415.81 338.55 L 416.49 336.96 L 416.18 335.39 L 416.71 333.87 L 417.98 333.75 L 420.27 332.24 L 423.63 331.34 L 424.16 330.81 L 423.47 326.55 L 422.94 326.36 L 422.52 325.75 L 422.48 323.85 L 423.21 323.15 L 423.78 322.21 L 423.29 321.05 L 422.57 320.95 L 423.29 317.77 L 423.66 317.49 L 424.83 317.26 L 427.61 318.4 L 428.01 318.27 L 428.58 317.73 L 428 313.96 L 429.17 312.47 L 431.59 313.95 L 432.49 315.71 L 435.72 316.05 L 436.72 315.04 L 436.72 315.04 L 437.23 317.45 L 435.8 320.89 L 436.2 321.12 L 437.54 320.21 L 438.24 319.21 L 438.96 319.08 L 441.09 319.46 L 442.13 318.69 L 443.98 316.12 L 444.97 316.27 L 446.4 315.74 L 448.21 314.19 L 449.16 313.02 L 451.18 312.61 L 454.55 310.75 L 455.19 309.64 L 459.46 306.61 L 463.28 305.03 L 465.08 305.12 L 466.28 305.62 L 468.46 305.65 L 470.74 306.18 L 471.59 306.64 L 470.3 309.38 L 470.15 310.27 L 470.41 311.76 L 471.02 312.26 L 476.35 313.72 L 476.99 313.55 L 477.8 312.43 L 479.68 311.54 L 481.45 311.28 L 484.18 312.03 L 485.28 312.57 L 489.63 316.21 L 490.61 316.03 L 492.78 317.65 L 495.31 318.87 L 496.24 319.09 L 496.75 318.88 L 498.28 320.12 L 502.67 318.89 L 503.05 319.07 L 509.57 325.27 L 510.01 329.23 L 510.58 329.02 L 513.19 329.47 L 514.66 328.97 L 515.98 327.98 L 517.97 328.13 L 520.7 328.69 L 522.96 329.77 L 525.15 330.38 L 527.27 330.35 L 530.1 332.82 L 530.83 333.2 L 531.72 333.27 L 532.5 334.29 L 532.92 335.46 L 531.45 338.54 L 526.49 342.76 L 526.34 345.41 L 526.9 346.43 L 526.9 346.85 L 525.88 347.56 L 523.4 347.32 L 522.58 348.2 L 521.76 351.5 L 521.23 355.9 L 521.45 356.15 L 521.8 355.96 L 522 355.51 L 522.64 355.27 L 523.22 356.5 L 523 358.01 L 523.15 358.52 L 527.29 361.58 L 527.82 362.62 L 527.83 363.15 L 527.15 364.5 z"},{code:"MS",name:"Mato Grosso do Sul",gTransform:"matrix(1 0 0 1 -2.22 90.13)",pathTransform:"translate(-303.77, -409.4)",d:"M 358.95 399.81 L 358.55 402.27 L 358.27 402.67 L 356.77 403.45 L 355.45 403.49 L 354.98 403.71 L 353.76 404.74 L 351.77 407.42 L 351.04 408.07 L 350.03 408.37 L 349.41 410.05 L 349.25 412.98 L 346.66 416.62 L 345.7 417.14 L 345.47 417.52 L 345.78 419.45 L 345.7 420.4 L 344.49 422.74 L 342.49 425 L 342.84 425.85 L 342.56 427.06 L 341.12 428.09 L 340.72 429.3 L 338.99 430.99 L 337.73 433.43 L 335.78 435.3 L 328.22 439.83 L 326.96 440.97 L 326.22 442.51 L 325.38 443.59 L 325.38 443.59 L 319.97 445.86 L 318.86 446.68 L 317.93 449.01 L 317.95 450.16 L 316.5 453.72 L 315.83 454.4 L 314.17 455.41 L 313.06 455.73 L 312.73 456.08 L 311.16 464 L 310.8 464.82 L 308.42 466.38 L 308.42 466.38 L 305.87 464.05 L 302.46 462.16 L 298.47 464.13 L 297.79 464.88 L 296.13 465.37 L 293.55 465.8 L 291.19 465.34 L 290.18 464.69 L 289.71 460.42 L 289.39 459.72 L 288.49 458.77 L 288.26 456.3 L 288.77 454.96 L 288.13 454.17 L 288.04 453.73 L 288.04 450.86 L 287.15 448.89 L 286.55 446.15 L 286.5 445.43 L 287.09 444.07 L 287.11 442.46 L 285.54 441.37 L 285.16 440.57 L 285 438.41 L 283.35 436.59 L 281.18 436.33 L 279.67 436.64 L 277.84 436.35 L 275.38 434.39 L 274.82 432.9 L 273.28 433.23 L 271.11 435.97 L 270.11 435.37 L 268.39 436.18 L 267.31 436.34 L 265.57 435.65 L 263.01 435.16 L 259.55 435.39 L 255.89 434.68 L 255.41 433.77 L 253.42 433.64 L 252.53 434.16 L 250.03 433.28 L 250.94 426.01 L 250.51 423.63 L 251.11 422.21 L 252.09 420.75 L 252.69 414.72 L 252.03 412.39 L 251.98 410.66 L 251.22 409.7 L 250.79 409.61 L 250.3 410.26 L 249.66 407 L 248.87 405.13 L 247.66 403.11 L 247.31 401.28 L 251.34 398.98 L 252.1 398.1 L 247.9 394.24 L 253.28 382.82 L 254.4 382.76 L 254.12 380.63 L 253.38 380.5 L 256.61 370.17 L 257.27 369.01 L 254.18 363.16 L 254.21 361.25 L 254.21 361.25 L 254.91 361.45 L 255.93 362.55 L 258.08 364.07 L 263.7 362.1 L 265.75 360.1 L 267.77 357.15 L 267.86 355.98 L 269.26 354.53 L 271.85 354.56 L 273.41 354.34 L 274.18 354.68 L 275.84 354.17 L 277.19 352.92 L 279.21 352.43 L 280.48 352.63 L 281.24 353.78 L 284.03 355.03 L 286.65 355.5 L 287.3 355.85 L 287.57 356.71 L 288.35 357.73 L 291.38 358.89 L 292.64 360 L 293.88 360.57 L 298.4 359.94 L 299.66 359.14 L 300.15 358.29 L 301.58 357.68 L 304.02 357.75 L 305.61 358.79 L 305.91 360.16 L 306.15 360.41 L 307.14 360.45 L 309.27 359.57 L 310.28 359.63 L 315.9 353.62 L 317.24 353.49 L 316.01 360.1 L 314.21 360.8 L 312.55 363.63 L 312.36 364.09 L 312.51 364.62 L 313.81 364.73 L 315.55 366 L 320.17 366.27 L 320.74 365.7 L 323.4 365.62 L 324.27 365.7 L 325.44 366.27 L 326.99 365.96 L 326.99 365.96 L 327.18 367.73 L 326.92 370.31 L 327.15 371.42 L 327.43 371.83 L 328.09 372.02 L 329.23 371.35 L 331.48 372.25 L 331.56 372.67 L 330.25 374.43 L 329.68 375.6 L 329.42 376.44 L 329.55 376.77 L 333.35 377.47 L 336.13 377.31 L 338.83 378.99 L 339.97 379.16 L 341.41 379.87 L 342.08 380.48 L 345.15 382.04 L 345.83 382.89 L 349.18 384.23 L 350.67 384.27 L 352.57 384.7 L 354.19 386.25 L 357.34 386.86 L 360 389.1 L 360.24 389.55 L 360.24 389.55 L 359.66 389.8 L 358.67 393.98 L 359.26 397.19 z"},{code:"MT",name:"Mato Grosso",gTransform:"matrix(1 0 0 1 -23.8 -38.15)",pathTransform:"translate(-282.2, -281.12)",d:"M 206.96 296.05 L 208.43 294.62 L 212.54 292.05 L 213.06 289.6 L 214.49 285.82 L 215.42 284.74 L 217.06 284.21 L 217.49 283.8 L 218.07 282.96 L 218.59 280.71 L 220.25 278.7 L 220.81 276.46 L 220.88 274.75 L 220.3 273.26 L 220.34 271.21 L 218.81 267.87 L 217.91 267.9 L 217.33 267.39 L 216.9 264.14 L 217.04 262.82 L 218.4 261.74 L 219.8 259.99 L 219.97 259.24 L 218.56 255.65 L 217.49 255.22 L 216.38 255.11 L 212.88 255.2 L 211.66 254.09 L 211.9 253.53 L 194.74 253.48 L 195.64 244.48 L 194.14 241.73 L 193.87 239.97 L 193.9 239.17 L 194.9 235.65 L 194.52 233.72 L 195.46 232.05 L 194.63 229.78 L 194.48 228.39 L 194.22 227.78 L 193.44 227.31 L 193.38 226.96 L 194.67 221.97 L 195.43 220.55 L 194.83 219.31 L 193.43 218.34 L 193.43 218.34 L 241.28 218.02 L 242.49 217.29 L 243.67 212.07 L 245.05 207.85 L 244.59 205.91 L 243.93 204.54 L 243.83 203.69 L 244.25 202.84 L 245.11 202.2 L 246.31 200.38 L 246.58 199.37 L 246.24 198.53 L 246.3 197.77 L 246.5 197.16 L 247.68 195.96 L 247.68 195.96 L 248.85 197.04 L 251.3 201.1 L 251.7 202.86 L 253.07 206.82 L 254.39 208.75 L 255.16 210.37 L 254.93 212.81 L 255.41 215.21 L 256.14 217.41 L 257.67 218.52 L 260.67 221.27 L 264.05 222.97 L 264.28 223.91 L 264.24 225.01 L 264.47 225.5 L 265.42 225.9 L 266.24 225.73 L 267.87 226.18 L 268.41 226.9 L 268.61 227.98 L 268.96 228.3 L 270.33 227.85 L 274.02 229.34 L 308.06 231.76 L 371.03 235.24 L 371.03 235.24 L 370.38 236.26 L 369.82 238.15 L 368.72 239.4 L 368.28 242.54 L 367.85 243.39 L 367.48 243.66 L 365.54 248.95 L 365 251.92 L 364.96 254.87 L 363.08 260.86 L 363.14 261.72 L 364.53 263.06 L 364.37 263.93 L 363.55 264.82 L 363.5 265.32 L 364.6 267.57 L 364.13 270.88 L 364.14 272.45 L 364.66 273.03 L 365.1 276.08 L 364.36 278.84 L 365.34 282.18 L 366.3 282.69 L 367.1 282.71 L 367.1 282.71 L 367.18 283.34 L 366.91 284.47 L 365.94 285.33 L 365.59 286.23 L 365.75 288.95 L 365.36 290.02 L 363.36 293.19 L 362.33 295.82 L 361.12 296.6 L 361.24 301.78 L 359.64 304.87 L 359.06 307.61 L 359.54 308.75 L 359.55 309.55 L 358.38 312.42 L 357.54 315.35 L 356.15 316.78 L 354.94 317.51 L 353.71 316.83 L 352.64 317.09 L 350.99 318.1 L 349.07 320.04 L 348.69 320.78 L 348.05 324.88 L 347.34 325.84 L 345.36 330.03 L 345.04 330.31 L 342.32 331.17 L 339.67 331.3 L 338.27 333.92 L 336.52 334.89 L 336.44 336.43 L 335.62 337.86 L 334.34 338.9 L 333.84 339.91 L 333.51 341.86 L 332.26 343.88 L 330.34 345.65 L 328.32 346.49 L 327.62 347.26 L 327.24 350.17 L 324.69 354.02 L 324.29 357.43 L 324.45 358.14 L 325.86 360.33 L 326.04 363.76 L 326.99 365.96 L 326.99 365.96 L 325.44 366.27 L 324.27 365.7 L 323.4 365.62 L 320.74 365.7 L 320.17 366.27 L 315.55 366 L 313.81 364.73 L 312.51 364.62 L 312.36 364.09 L 312.55 363.63 L 314.21 360.8 L 316.01 360.1 L 317.24 353.49 L 315.9 353.62 L 310.28 359.63 L 309.27 359.57 L 307.14 360.45 L 306.15 360.41 L 305.91 360.16 L 305.61 358.79 L 304.02 357.75 L 301.58 357.68 L 300.15 358.29 L 299.66 359.14 L 298.4 359.94 L 293.88 360.57 L 292.64 360 L 291.38 358.89 L 288.35 357.73 L 287.57 356.71 L 287.3 355.85 L 286.65 355.5 L 284.03 355.03 L 281.24 353.78 L 280.48 352.63 L 279.21 352.43 L 277.19 352.92 L 275.84 354.17 L 274.18 354.68 L 273.41 354.34 L 271.85 354.56 L 269.26 354.53 L 267.86 355.98 L 267.77 357.15 L 265.75 360.1 L 263.7 362.1 L 258.08 364.07 L 255.93 362.55 L 254.91 361.45 L 254.21 361.25 L 254.21 361.25 L 253.55 360.58 L 253.23 359.78 L 253.77 359.07 L 251.33 356.92 L 250.05 357.55 L 249.53 357.5 L 248.36 356.82 L 247.91 356.12 L 245.89 354.71 L 244 353.95 L 243.7 353.63 L 243.4 352.51 L 243.17 349.58 L 242.56 347.81 L 242.37 344.15 L 243.25 342.51 L 244.39 341.42 L 244.73 339.64 L 244.68 337.75 L 243.72 337.81 L 243.32 338.41 L 242.94 338.57 L 216.08 337.49 L 215.03 324.84 L 209.66 318.71 L 214.54 318.65 L 214.19 311.1 L 211.55 305.78 L 211.06 303.81 L 211.32 302.75 L 211.93 302.2 L 212.58 300.92 L 211.14 297.99 L 208.03 296.95 z"},{code:"PA",name:"Pará",gTransform:"matrix(1 0 0 1 29.16 -180.48)",pathTransform:"translate(-335.15, -138.78)",d:"M 371.03 235.24 L 308.05999999999995 231.76000000000002 L 274.0199999999999 229.34000000000003 L 270.3299999999999 227.85000000000002 L 268.9599999999999 228.3 L 268.6099999999999 227.99 L 268.4099999999999 226.9 L 267.8599999999999 226.18 L 266.2299999999999 225.73000000000002 L 265.4099999999999 225.9 L 264.4599999999999 225.51000000000002 L 264.2299999999999 225.01000000000002 L 264.2699999999999 223.91000000000003 L 264.0399999999999 222.97000000000003 L 260.6599999999999 221.27000000000004 L 257.6599999999999 218.51000000000005 L 256.1199999999999 217.40000000000003 L 255.3999999999999 215.20000000000005 L 254.9199999999999 212.81000000000006 L 255.1499999999999 210.37000000000006 L 254.37999999999988 208.74000000000007 L 253.04999999999987 206.81000000000006 L 251.67999999999986 202.86000000000007 L 251.28999999999988 201.10000000000008 L 248.8399999999999 197.04000000000008 L 247.65999999999988 195.96000000000006 L 247.65999999999988 195.96000000000006 L 247.0899999999999 195.40000000000006 L 246.93999999999988 193.44000000000005 L 246.2999999999999 192.18000000000006 L 244.7099999999999 190.62000000000006 L 243.6399999999999 190.04000000000005 L 243.2699999999999 189.47000000000006 L 242.43999999999988 187.13000000000005 L 242.46999999999989 186.00000000000006 L 243.0499999999999 185.03000000000006 L 244.4999999999999 183.90000000000006 L 245.2799999999999 182.59000000000006 L 275.1799999999999 118.35000000000007 L 273.3699999999999 116.68000000000006 L 273.4999999999999 115.90000000000006 L 273.3099999999999 115.42000000000006 L 271.9199999999999 115.77000000000005 L 271.0699999999999 116.38000000000005 L 269.1999999999999 115.60000000000005 L 268.09999999999985 113.43000000000005 L 265.40999999999985 111.98000000000005 L 264.1399999999999 110.64000000000004 L 264.0599999999999 110.04000000000005 L 262.7399999999999 109.22000000000006 L 261.3699999999999 109.07000000000005 L 259.1199999999999 108.42000000000004 L 256.7399999999999 107.11000000000004 L 254.8599999999999 106.44000000000004 L 253.5099999999999 105.35000000000004 L 252.8799999999999 104.45000000000003 L 248.2999999999999 101.91000000000003 L 243.6599999999999 98.14000000000003 L 243.3599999999999 97.70000000000003 L 243.3199999999999 96.77000000000002 L 242.7699999999999 94.94000000000003 L 240.9299999999999 93.71000000000002 L 240.2299999999999 93.90000000000002 L 239.8699999999999 93.70000000000002 L 238.03999999999988 91.72000000000001 L 238.0899999999999 89.61000000000001 L 238.43999999999988 88.92000000000002 L 238.25999999999988 88.51000000000002 L 236.56999999999988 87.66000000000003 L 236.32999999999987 86.98000000000002 L 236.14999999999986 84.71000000000002 L 236.57999999999987 83.26000000000002 L 236.17999999999986 78.40000000000002 L 236.17999999999986 78.40000000000002 L 234.58999999999986 61.43000000000002 L 234.58999999999986 61.43000000000002 L 235.33999999999986 61.75000000000002 L 235.76999999999987 62.33000000000002 L 235.74999999999986 62.81000000000002 L 236.19999999999985 63.210000000000015 L 237.11999999999983 63.490000000000016 L 238.48999999999984 62.780000000000015 L 238.95999999999984 61.97000000000001 L 241.66999999999985 62.20000000000001 L 242.47999999999985 61.15000000000001 L 241.93999999999986 59.34000000000001 L 243.72999999999985 58.98000000000001 L 245.13999999999984 57.35000000000001 L 247.77999999999983 58.36000000000001 L 249.65999999999983 58.39000000000001 L 250.19999999999982 56.870000000000005 L 253.52999999999983 55.25000000000001 L 255.49999999999983 55.64000000000001 L 256.65999999999985 55.53000000000001 L 257.14999999999986 55.28000000000001 L 258.34999999999985 53.80000000000001 L 258.74999999999983 52.40000000000001 L 260.2099999999998 51.30000000000001 L 261.0699999999998 51.19000000000001 L 261.7199999999998 51.65000000000001 L 263.8299999999998 50.52000000000001 L 264.23999999999984 50.63000000000001 L 264.60999999999984 51.62000000000001 L 265.33999999999986 52.070000000000014 L 267.36999999999983 52.55000000000001 L 268.97999999999985 52.80000000000001 L 269.53999999999985 52.20000000000001 L 271.20999999999987 51.81000000000001 L 271.98999999999984 52.09000000000001 L 272.80999999999983 52.08000000000001 L 273.66999999999985 51.74000000000001 L 275.90999999999985 52.040000000000006 L 280.57999999999987 53.42000000000001 L 281.53999999999985 53.28000000000001 L 282.53999999999985 52.41000000000001 L 282.5099999999999 50.13000000000001 L 280.4399999999999 47.63000000000001 L 279.1999999999999 47.00000000000001 L 279.6899999999999 45.32000000000001 L 280.9999999999999 43.870000000000005 L 281.27999999999986 42.760000000000005 L 281.58999999999986 42.59 L 282.29999999999984 42.78 L 283.1299999999998 43.54 L 285.47999999999985 44.65 L 297.09999999999985 42.32 L 298.66999999999985 44.01 L 299.6899999999998 44.07 L 300.1299999999998 43.78 L 300.1299999999998 43.78 L 300.74999999999983 44.35 L 301.11999999999983 46.65 L 300.49999999999983 47.949999999999996 L 300.24999999999983 52.489999999999995 L 300.48999999999984 53.92999999999999 L 300.79999999999984 54.46999999999999 L 301.96999999999986 54.489999999999995 L 303.04999999999984 54.199999999999996 L 306.4399999999998 54.56999999999999 L 307.72999999999985 55.059999999999995 L 309.65999999999985 56.10999999999999 L 310.32999999999987 56.90999999999999 L 310.8199999999999 58.18999999999999 L 312.0099999999999 58.30999999999999 L 313.14999999999986 59.14999999999999 L 313.9499999999999 60.12999999999999 L 314.78999999999985 60.39999999999999 L 316.11999999999983 60.25999999999999 L 316.49999999999983 59.83999999999999 L 317.4399999999998 59.69999999999999 L 320.2799999999998 62.359999999999985 L 320.9599999999998 62.329999999999984 L 321.4499999999998 63.509999999999984 L 320.7699999999998 63.73999999999998 L 320.5799999999998 64.45999999999998 L 321.3399999999998 67.28999999999998 L 323.3599999999998 69.54999999999998 L 325.9299999999998 70.27999999999999 L 326.0999999999998 70.60999999999999 L 325.6699999999998 73.74999999999999 L 325.8599999999998 75.85999999999999 L 326.5299999999998 77.36999999999999 L 327.1499999999998 77.92999999999999 L 327.7399999999998 79.74 L 327.6099999999998 81.32 L 329.1099999999998 84.8 L 329.9299999999998 84.99 L 330.70999999999975 84.63 L 333.63999999999976 87.91 L 333.5599999999998 90.34 L 333.9699999999998 91.28 L 334.9199999999998 91.47 L 335.2499999999998 91.94 L 335.5599999999998 93.52 L 335.3499999999998 94.21 L 335.4599999999998 95.50999999999999 L 337.3299999999998 96.89999999999999 L 337.7599999999998 98.39999999999999 L 339.2099999999998 99.42999999999999 L 341.99999999999983 100.11 L 343.29999999999984 99.99 L 344.0699999999998 99.64999999999999 L 345.0099999999998 99.71 L 345.0099999999998 99.71 L 344.47999999999985 100.44999999999999 L 344.76999999999987 102.03999999999999 L 344.59999999999985 102.57 L 343.30999999999983 103.67999999999999 L 341.91999999999985 103.85 L 341.41999999999985 103.66999999999999 L 340.57999999999987 102.87999999999998 L 339.91999999999985 102.72999999999998 L 336.53999999999985 104.30999999999997 L 336.16999999999985 104.84999999999998 L 334.5699999999998 105.56999999999998 L 333.9399999999998 105.54999999999998 L 332.3899999999998 106.13999999999999 L 332.42999999999984 106.71999999999998 L 338.8899999999998 105.65999999999998 L 339.7699999999998 106.31999999999998 L 339.8999999999998 106.77999999999997 L 339.8999999999998 107.43999999999997 L 339.2799999999998 107.93999999999997 L 339.5799999999998 108.29999999999997 L 340.2099999999998 108.09999999999997 L 341.0699999999998 107.09999999999997 L 342.0899999999998 107.08999999999996 L 342.6199999999998 106.81999999999996 L 343.2199999999998 106.93999999999997 L 344.2899999999998 106.51999999999997 L 345.4299999999998 105.94999999999997 L 348.70999999999975 103.60999999999997 L 350.20999999999975 103.25999999999998 L 352.0499999999997 102.44999999999997 L 355.20999999999975 100.60999999999997 L 355.7499999999998 99.60999999999997 L 356.4199999999998 99.08999999999997 L 358.50999999999976 98.07999999999997 L 359.1699999999998 97.35999999999997 L 358.9199999999998 96.68999999999997 L 359.12999999999977 96.27999999999997 L 360.25999999999976 95.99999999999997 L 361.34999999999974 96.05999999999997 L 361.75999999999976 96.26999999999997 L 362.13999999999976 100.06999999999996 L 361.6199999999998 102.64999999999996 L 361.94999999999976 104.26999999999997 L 362.75999999999976 105.86999999999996 L 364.06999999999977 107.21999999999996 L 364.3699999999998 108.85999999999996 L 364.2499999999998 109.32999999999996 L 362.4099999999998 111.16999999999996 L 361.93999999999977 111.29999999999995 L 361.06999999999977 110.77999999999996 L 359.2499999999998 110.25999999999996 L 357.9899999999998 109.94999999999996 L 357.0599999999998 110.08999999999996 L 354.9299999999998 109.04999999999995 L 354.6699999999998 107.92999999999995 L 353.7899999999998 107.39999999999995 L 351.5099999999998 111.21999999999994 L 350.8999999999998 113.58999999999995 L 351.5799999999998 116.55999999999995 L 352.05999999999983 117.19999999999995 L 352.97999999999985 117.81999999999995 L 351.96999999999986 116.67999999999995 L 351.53999999999985 113.98999999999995 L 351.65999999999985 113.46999999999996 L 354.22999999999985 109.24999999999996 L 356.53999999999985 110.42999999999996 L 356.64999999999986 110.87999999999997 L 359.17999999999984 113.32999999999997 L 358.92999999999984 115.34999999999997 L 358.1899999999998 115.89999999999996 L 358.5899999999998 118.22999999999996 L 359.1099999999998 119.35999999999996 L 360.2299999999998 120.10999999999996 L 360.9699999999998 120.25999999999996 L 361.4899999999998 120.74999999999996 L 361.1499999999998 120.10999999999996 L 360.3799999999998 119.86999999999996 L 359.17999999999984 118.82999999999996 L 358.9599999999998 118.14999999999995 L 359.2999999999998 113.94999999999995 L 360.1199999999998 112.75999999999995 L 361.5499999999998 113.48999999999995 L 362.37999999999977 114.68999999999996 L 362.2899999999998 115.47999999999996 L 363.4899999999998 116.33999999999996 L 363.7399999999998 116.04999999999995 L 362.7399999999998 114.78999999999995 L 361.81999999999977 112.68999999999996 L 361.81999999999977 112.24999999999996 L 364.07999999999976 109.92999999999996 L 365.69999999999976 110.01999999999997 L 367.62999999999977 110.65999999999997 L 367.96999999999974 111.21999999999997 L 367.35999999999973 111.80999999999997 L 367.6799999999997 112.08999999999997 L 368.15999999999974 112.11999999999998 L 369.1899999999997 111.94999999999997 L 370.5199999999997 111.04999999999997 L 374.6099999999997 110.08999999999997 L 375.37999999999965 110.28999999999998 L 377.11999999999966 111.34999999999998 L 380.2899999999997 110.92999999999998 L 381.3599999999997 110.51999999999998 L 382.37999999999965 109.50999999999998 L 383.3599999999997 108.91999999999997 L 385.0999999999997 108.40999999999997 L 385.86999999999966 108.47999999999996 L 385.92999999999967 109.22999999999996 L 383.88999999999965 113.24999999999996 L 383.64999999999964 114.74999999999996 L 383.18999999999966 115.81999999999995 L 382.3599999999997 116.84999999999995 L 382.3499999999997 117.72999999999995 L 382.92999999999967 119.14999999999995 L 382.6099999999997 121.61999999999995 L 383.48999999999967 120.42999999999995 L 383.49999999999966 119.02999999999994 L 385.0399999999997 116.02999999999994 L 386.1699999999997 112.83999999999995 L 387.2899999999997 111.27999999999994 L 387.55999999999966 111.00999999999995 L 388.31999999999965 110.95999999999995 L 388.89999999999964 110.60999999999996 L 390.71999999999963 110.37999999999995 L 391.5999999999996 109.02999999999996 L 393.1099999999996 107.33999999999996 L 394.46999999999963 105.07999999999996 L 394.9899999999996 104.61999999999996 L 395.77999999999963 105.10999999999996 L 396.39999999999964 104.64999999999996 L 398.01999999999964 106.98999999999997 L 399.20999999999964 107.57999999999997 L 399.1599999999996 106.83999999999997 L 398.8099999999996 106.08999999999997 L 399.4299999999996 105.07999999999997 L 402.9399999999996 104.56999999999996 L 401.9099999999996 104.24999999999997 L 398.39999999999964 104.70999999999997 L 398.08999999999963 104.49999999999997 L 398.37999999999965 102.06999999999996 L 398.88999999999965 101.77999999999996 L 399.55999999999966 102.15999999999995 L 400.57999999999964 102.26999999999995 L 401.64999999999964 99.16999999999996 L 400.96999999999963 97.77999999999996 L 400.9999999999996 97.09999999999995 L 402.1699999999996 95.28999999999995 L 405.0099999999996 92.80999999999995 L 405.3699999999996 92.72999999999995 L 406.4799999999996 93.86999999999995 L 409.4099999999996 91.77999999999994 L 409.8699999999996 91.70999999999995 L 410.2699999999996 92.15999999999995 L 410.3699999999996 92.72999999999995 L 410.0499999999996 93.39999999999995 L 411.1199999999996 93.23999999999995 L 411.9299999999996 92.65999999999995 L 412.2899999999996 91.87999999999995 L 412.9199999999996 91.68999999999996 L 413.1999999999996 91.83999999999996 L 413.9399999999996 93.22999999999996 L 415.2699999999996 94.42999999999996 L 415.4699999999996 93.86999999999996 L 415.35999999999956 93.48999999999997 L 414.4 93 L 414.26 92.71 L 414.13 91.50999999999999 L 414.3 91.08999999999999 L 414.74 90.89999999999999 L 417.02 91.16 L 418.2 91.81 L 418.82 92.83 L 420.45 93.53999999999999 L 422.09999999999997 92.75999999999999 L 422.62999999999994 94.89999999999999 L 422.12999999999994 95.21 L 422.09999999999997 95.8 L 423.02 95.28 L 424.18 92.93 L 424.56 93.16000000000001 L 424.33 94.49000000000001 L 424.74 94.93 L 427.25 94.67 L 427.7 95.32000000000001 L 428.15999999999997 97.00000000000001 L 427.55999999999995 97.95000000000002 L 428.40999999999997 97.45000000000002 L 428.66999999999996 97.82000000000002 L 430.55999999999995 97.96000000000002 L 434.0899999999999 96.72000000000003 L 433.7799999999999 98.30000000000003 L 433.0299999999999 100.13000000000002 L 434.49999999999994 99.64000000000003 L 435.0899999999999 99.02000000000002 L 435.7199999999999 100.64000000000003 L 435.7199999999999 100.64000000000003 L 434.94999999999993 101.09000000000003 L 434.4799999999999 102.12000000000003 L 434.63999999999993 103.50000000000003 L 433.92999999999995 107.89000000000003 L 433.35999999999996 108.63000000000002 L 432.21999999999997 108.78000000000003 L 432.16999999999996 109.40000000000003 L 432.43999999999994 109.89000000000003 L 433.42999999999995 109.73000000000003 L 433.85999999999996 110.26000000000003 L 433.78 111.87000000000003 L 432.88 114.89000000000003 L 432.52 115.60000000000002 L 430.78 117.17000000000002 L 430.28 119.55000000000001 L 430.40999999999997 121.19000000000001 L 426.72999999999996 124.28000000000002 L 427.77 125.86000000000001 L 426.97999999999996 126.67000000000002 L 427.15999999999997 128.49 L 426.7 129.77 L 425.87 131.22 L 424.39 132.98 L 422.43 134.51999999999998 L 420.83 139.20999999999998 L 420.53999999999996 141.10999999999999 L 420.06999999999994 142.32 L 417.62999999999994 144.64 L 416.50999999999993 145.1 L 415.88999999999993 147.98 L 414.3399999999999 149.14999999999998 L 413.9099999999999 150.29999999999998 L 412.3599999999999 152.46999999999997 L 411.1899999999999 153.38999999999996 L 408.83999999999986 153.15999999999997 L 394.1299999999999 164.98999999999998 L 394.6199999999999 165.07 L 394.6199999999999 165.07 L 396.9099999999999 165.88 L 398.7799999999999 165.64 L 400.06999999999994 165.76 L 401.0899999999999 167.42 L 401.4799999999999 167.73 L 402.3499999999999 167.86999999999998 L 403.6099999999999 169.03999999999996 L 403.5699999999999 169.66999999999996 L 403.1999999999999 170.33999999999995 L 402.47999999999985 170.70999999999995 L 401.5099999999998 170.77999999999994 L 401.2199999999998 171.05999999999995 L 401.3099999999998 172.46999999999994 L 402.31999999999977 173.80999999999995 L 401.39999999999975 176.55999999999995 L 400.75999999999976 177.03999999999994 L 399.2999999999998 177.49999999999994 L 399.0499999999998 177.95999999999995 L 399.3399999999998 179.15999999999994 L 399.1499999999998 180.49999999999994 L 397.8499999999998 180.64999999999995 L 396.3399999999998 181.98999999999995 L 395.4899999999998 183.25999999999996 L 395.63999999999976 184.76999999999995 L 395.39999999999975 185.26999999999995 L 392.89999999999975 186.46999999999994 L 389.4899999999997 187.60999999999993 L 387.0199999999997 189.38999999999993 L 386.8299999999997 189.73999999999992 L 387.2599999999997 191.92999999999992 L 387.3199999999997 194.5999999999999 L 386.03999999999974 196.6999999999999 L 384.6299999999997 198.3799999999999 L 384.47999999999973 198.9499999999999 L 384.64999999999975 199.8299999999999 L 385.2399999999997 200.7899999999999 L 386.90999999999974 202.52999999999992 L 387.65999999999974 202.8499999999999 L 387.8099999999997 203.14999999999992 L 387.1499999999997 207.1899999999999 L 385.3899999999997 212.33999999999992 L 384.3099999999997 213.14999999999992 L 382.60999999999973 216.38999999999993 L 382.4299999999997 217.37999999999994 L 381.4899999999997 218.91999999999993 L 380.7499999999997 219.76999999999992 L 379.6999999999997 219.92999999999992 L 378.3299999999997 220.8499999999999 L 377.2999999999997 222.7699999999999 L 376.08999999999975 224.4499999999999 L 374.90999999999974 225.5399999999999 L 373.75999999999976 227.11999999999992 L 372.62999999999977 231.57999999999993 L 371.03 235.24 z M 392.19 104.93 L 387.67 106.89 L 384.28000000000003 107.41 L 382.26000000000005 107.1 L 381.61000000000007 108.22999999999999 L 379.7700000000001 109.41999999999999 L 379.05000000000007 108.80999999999999 L 378.44000000000005 107.27999999999999 L 378.21000000000004 107.55999999999999 L 378.63000000000005 108.78999999999999 L 378.2900000000001 109.6 L 377.5800000000001 110.00999999999999 L 373.8100000000001 108.36999999999999 L 373.0100000000001 109.08999999999999 L 368.8200000000001 110.35 L 365.6200000000001 109.78 L 364.8100000000001 109.17 L 364.5700000000001 107.32000000000001 L 364.3400000000001 106.91000000000001 L 363.2300000000001 105.89000000000001 L 362.1700000000001 104.29000000000002 L 361.9600000000001 102.51000000000002 L 362.4800000000001 99.76000000000002 L 363.1000000000001 99.38000000000002 L 364.86000000000007 99.74000000000002 L 365.7900000000001 98.99000000000002 L 365.87000000000006 98.43000000000002 L 364.57000000000005 98.86000000000003 L 363.35 98.73000000000003 L 362.41 98.02000000000004 L 362.23 96.97000000000004 L 362.57 91.89000000000004 L 363.3 91.13000000000004 L 363.65000000000003 91.88000000000004 L 365.41 92.48000000000003 L 365.96000000000004 92.42000000000003 L 365.50000000000006 92.00000000000003 L 364.2300000000001 91.78000000000003 L 363.3300000000001 89.62000000000003 L 363.6900000000001 87.94000000000003 L 364.5800000000001 85.97000000000003 L 365.9100000000001 84.64000000000003 L 366.87000000000006 84.07000000000004 L 368.21000000000004 83.58000000000004 L 369.53000000000003 83.45000000000005 L 372.99 83.97000000000004 L 380.2 85.74000000000004 L 383.9 85.28000000000004 L 384.01 84.98000000000005 L 385.15 84.36000000000004 L 387.31 83.99000000000004 L 390.2 84.28000000000004 L 393 85.10000000000004 L 399.48 85.95000000000003 L 400.11 86.42000000000003 L 400.06 87.65000000000003 L 399.36 88.39000000000003 L 398.68 89.89000000000003 L 398.32 92.54000000000003 L 397.46 95.84000000000003 L 396.16999999999996 96.52000000000004 L 395.81999999999994 97.21000000000004 L 396.04999999999995 98.40000000000003 L 394.06999999999994 100.98000000000003 L 392.67999999999995 104.48000000000003 L 392.19 104.93 z M 344.98 104.76 L 344.23 104.25 L 345.33000000000004 102 L 345.24000000000007 100.21 L 345.49000000000007 100 L 347.82000000000005 99.52 L 348.72 98.66 L 348.87 98.16 L 348.67 95.82 L 349.53000000000003 93.24 L 350.79 91.75 L 353.08000000000004 90.28 L 355.95000000000005 90.08 L 356.6700000000001 92.44 L 355.57000000000005 94.63 L 354.72 97.67 L 353.62 98.34 L 352.28000000000003 100.37 L 351.50000000000006 101.09 L 346.56000000000006 104.4 L 344.98 104.76 z M 373.46 81.86 L 372.43 81.61 L 369.98 81.69 L 369.19 81.53 L 368.9 81.27 L 368.52 80.17999999999999 L 368.53 78.94 L 370.03999999999996 78.52 L 371.92999999999995 78.56 L 374.11999999999995 77.27 L 378.92999999999995 76.67 L 379.69999999999993 76.93 L 380.37999999999994 77.61000000000001 L 380.19999999999993 78.63000000000001 L 377.63999999999993 80.02000000000001 L 375.85999999999996 82.50000000000001 L 374.76 83 L 373.46 81.86 z M 378.25 81.86 L 380.11 80.66 L 382.09000000000003 80.69 L 383.74 81.31 L 384.27 82.3 L 384.32 82.92 L 383.44 83.69 L 380.59 83.97 L 379.41999999999996 84.28999999999999 L 377.15999999999997 83.39999999999999 L 376.96 82.86999999999999 L 378.25 81.86 z M 361.27 86.25 L 360.77 85.99 L 360.15999999999997 86.03 L 358.61999999999995 85.34 L 358.8299999999999 84.18 L 359.4699999999999 83.26 L 361.38999999999993 82.86 L 363.74999999999994 81.96 L 365.06999999999994 82.03999999999999 L 365.86999999999995 82.72 L 365.9599999999999 82.85 L 364.0299999999999 84.46 L 362.9599999999999 84.8 L 361.27 86.25 z M 370.69 76.56 L 369.87 76.26 L 369.7 74.60000000000001 L 369.84999999999997 74.00000000000001 L 371.02 72.69000000000001 L 373.46999999999997 71.77000000000001 L 373.71999999999997 71.89000000000001 L 374.24999999999994 72.57000000000002 L 374.28999999999996 73.46000000000002 L 372.34 75.45000000000002 L 370.69 76.56 z M 356.86 96.78 L 356.72 96.37 L 356.91 95.44 L 357.95000000000005 92.63 L 360.54 90.94 L 361.26000000000005 90.66 L 361.95000000000005 90.8 L 361.79 92.59 L 360.23 93.03 L 358.61 95.22 L 356.86 96.78 z M 367.77 79.21 L 366.58 78.89999999999999 L 366.28 78.41999999999999 L 367.15999999999997 77.46 L 367.86999999999995 73.50999999999999 L 368.75999999999993 72.27999999999999 L 369.04999999999995 72.40999999999998 L 369.11999999999995 72.72999999999998 L 369.09999999999997 75.20999999999998 L 369.7 77.07999999999998 L 369.38 77.95999999999998 L 368.35 78.35999999999999 L 367.77 79.21 z M 352.96 89.4 L 352.69 89.21000000000001 L 352.81 88.60000000000001 L 353.36 88.24000000000001 L 354.55 86.53000000000002 L 355.31 84.99000000000001 L 356.04 84.33000000000001 L 357.49 83.79 L 357.29 85.28 L 356.89000000000004 86.28 L 355.17 87.94 L 352.96 89.4 z M 366.83 82.37 L 366.22999999999996 82.22 L 365.39 81.51 L 364.43 79.87 L 364.38 79.49000000000001 L 364.61 79.2 L 365.42 78.62 L 367.27000000000004 79.46000000000001 L 367.56000000000006 79.89000000000001 L 367.80000000000007 81.98000000000002 L 366.83 82.37 z M 361.45 112.93 L 360.8 112.82000000000001 L 359.92 112.30000000000001 L 359.23 112.76 L 358.48 112.48 L 356.8 110.74000000000001 L 356.8 110.13000000000001 L 358.08 110.12 L 361.14 111.44 L 361.45 112.93 z M 340.3 107.39 L 340.34000000000003 106.36 L 340.14000000000004 106.06 L 340.74000000000007 105.07000000000001 L 343.1000000000001 104.19000000000001 L 343.88000000000005 104.57000000000001 L 344.75000000000006 105.43 L 344.46000000000004 105.78 L 343.43000000000006 106.25 L 340.89000000000004 106.66 L 340.3 107.39 z M 353 100.7 L 352.82 100.67 L 352.83 100.32000000000001 L 353.37 99.38000000000001 L 355.16 97.76 L 355.58000000000004 96.52000000000001 L 355.63000000000005 95.22000000000001 L 355.87000000000006 94.92000000000002 L 356.19000000000005 95.36000000000001 L 356.19000000000005 96.87000000000002 L 355.30000000000007 99.60000000000002 L 354.68000000000006 100.25000000000003 L 353 100.7 z M 359.3 90.8 L 360.95 87.84 L 361.83 87.63000000000001 L 362.53999999999996 87.82000000000001 L 362.80999999999995 88.69000000000001 L 362.22999999999996 89.4 L 359.3 90.8 z M 390.72 109.77 L 389.88000000000005 109.42 L 389.5400000000001 108.36 L 390.5800000000001 106.64 L 391.6500000000001 106.31 L 391.8400000000001 106.41 L 391.8200000000001 107.14999999999999 L 391.0800000000001 109.38999999999999 L 390.72 109.77 z M 357.24 90.3 L 356.7 90.1 L 357.02 88.05999999999999 L 358.34999999999997 86.24999999999999 L 358.58 86.28999999999999 L 359.87 87.16999999999999 L 359.86 87.41999999999999 L 358.31 88.05999999999999 L 357.24 90.3 z M 359.47 95.33 L 360.19000000000005 95.36 L 359.7900000000001 95.81 L 358.8500000000001 96.12 L 358.74000000000007 97.24000000000001 L 357.95000000000005 97.95 L 356.26000000000005 98.79 L 356.1 98.61 L 356.37 97.78 L 356.84000000000003 97.15 L 358.57000000000005 95.48 L 359.47 95.33 z M 336.91 105.54 L 336.36 105.35000000000001 L 336.29 105.00000000000001 L 336.72 104.60000000000001 L 340.28000000000003 103.00000000000001 L 340.82000000000005 103.70000000000002 L 340.81000000000006 103.90000000000002 L 339.4100000000001 104.63000000000002 L 336.91 105.54 z M 400.44 100.76 L 399.41 100.57000000000001 L 398.59000000000003 99.78 L 399.46000000000004 98.53 L 400.8 98.52 L 400.99 99.71 L 400.89 100.3 L 400.44 100.76 z M 363.19 81.86 L 360.83 82.56 L 360.24 82.57000000000001 L 360.06 82.36000000000001 L 361.09 81.32000000000001 L 362.13 80.81 L 363.17 80.98 L 363.61 81.32000000000001 L 363.76 81.55000000000001 L 363.61 81.76 L 363.19 81.86 z M 357.92 90.45 L 357.84000000000003 89.69 L 358.09000000000003 89.19 L 360.57000000000005 87.73 L 359.6700000000001 89.73 L 358.86000000000007 90.36 L 357.92 90.45 z M 360.06 94.98 L 359.61 94.86 L 359.54 94.63 L 360.32 93.13 L 361.51 93.14999999999999 L 361.39 94.49999999999999 L 360.06 94.98 z M 388.1 110.81 L 387.82000000000005 110.58 L 388.72 108.98 L 389.40000000000003 108.58 L 389.63000000000005 109.33 L 390.14000000000004 109.7 L 389.88000000000005 110.22 L 389.45000000000005 110.56 L 388.82000000000005 110.38 L 388.1 110.81 z M 361.44 87.49 L 360.55 87.42 L 360.57 87.23 L 362.93 85.39 L 362.97 86.35 L 362.74 86.97999999999999 L 362.49 87.32 L 361.44 87.49 z M 428.9 97.71 L 428.52 97.17999999999999 L 428.71 96.41999999999999 L 429.72999999999996 95.50999999999999 L 429.97999999999996 95.66 L 430.21 97.41 L 428.9 97.71 z"},{code:"PB",name:"Paraíba",gTransform:"matrix(1 0 0 1 275.13 -126.21)",pathTransform:"translate(-581.13, -193.05)",d:"M 610.43 199.15 L 607.93 197.09 L 607.11 196.83 L 604.46 196.62 L 602.15 197.69 L 600.67 198.97 L 600.22 200.77 L 598.32 201.8 L 596.31 202.25 L 595.17 202.23 L 595.17 202.83 L 594.37 203.36 L 592.19 203.65 L 588.31 203.39 L 586.7 204.27 L 586.15 204.91 L 584.33 205.01 L 583.44 205.7 L 582.9 206.46 L 583.29 207.19 L 583.3 207.73 L 582.9 208.21 L 581.12 209.74 L 579.78 209.9 L 578.13 210.74 L 576.53 209.95 L 575.58 209.01 L 575.23 206.77 L 575.47 206.28 L 575.29 205.98 L 574.15 205.66 L 573.71 205.95 L 572.2 206.2 L 572.24 205.75 L 574.77 203.11 L 574.94 202.68 L 574.22 200.81 L 574.18 200.34 L 574.55 199.56 L 577.55 198.49 L 577.66 198.19 L 577.16 196.8 L 573.66 194.88 L 572.18 195.29 L 569.96 196.55 L 569.03 198.06 L 567.55 198.93 L 566.5 199.24 L 563.8 201.12 L 562.28 202.76 L 560.65 202.99 L 558.02 203.96 L 557.25 203.63 L 557.3 202.95 L 556.67 201.71 L 556.29 201.63 L 555.36 202.36 L 553.85 202.68 L 552.86 202.35 L 551.46 200.44 L 551.06 200.35 L 551.06 200.35 L 550.89 200.1 L 552.08 198.98 L 553.69 195.49 L 553.35 194.3 L 552.66 194.22 L 551.42 193.33 L 551.44 191.67 L 551.09 190.95 L 550.51 190.66 L 550.27 190.25 L 550.39 189.32 L 550.56 188.94 L 551.65 188.31 L 552.31 187 L 551.79 185.69 L 552.82 182.69 L 553.66 181.54 L 553.74 181 L 553.74 181 L 554.31 180.54 L 556.24 182.18 L 557.14 182.6 L 560.02 183.21 L 561.18 182.08 L 564.41 180.42 L 565.23 179.71 L 565.33 178.67 L 565.74 177.72 L 568.92 176.51 L 570.35 176.39 L 573.61 175.35 L 574.25 175.43 L 574.78 175.87 L 574.79 177.06 L 571.8 180.27 L 571.36 181.23 L 570.98 182.97 L 570.57 183.35 L 569.72 183.6 L 569.51 183.91 L 569.43 185.63 L 572.96 186.15 L 573.28 186.38 L 573.59 187.76 L 573.88 187.99 L 577.03 186.73 L 578.8 186.65 L 580.75 186.95 L 581.64 188.12 L 581.12 189.66 L 581.95 190.4 L 584.3 189.47 L 584.8 188.73 L 585.35 187.52 L 584.88 186.58 L 584.72 185.16 L 585.2 184.57 L 586.21 184.89 L 585.68 183.36 L 584.96 182.58 L 585.27 181.1 L 587.09 179.75 L 588.47 179.7 L 588.89 180.09 L 588.79 181.09 L 589.41 181.58 L 592.83 181.98 L 593.36 182.33 L 599.19 181.94 L 601.36 182.24 L 603.82 183.34 L 604.86 182.94 L 608.36 183.15 L 609.29 182.91 L 609.29 182.91 L 609.38 185.31 L 610.83 189.7 L 610.89 190.34 L 610.71 191.28 L 610.34 191.73 L 610.31 192.61 L 610.89 191.87 L 611.4 190.37 L 611.41 192.35 L 612 193.36 L 611.73 198.54 L 611.37 199.14 z"},{code:"PE",name:"Pernambuco",gTransform:"matrix(1 0 0 1 254.6 -106.99)",pathTransform:"translate(-560.6, -212.26)",d:"M 558.28 227.19 L 557.06 224.15 L 557.05 223.21 L 554.94 222.35 L 554.44 221.98 L 553.99 221.15 L 554.6 220.26 L 554.58 219.64 L 554.13 219.32 L 553.13 219.33 L 552.7 219.77 L 552.41 221.51 L 551.98 221.66 L 551.59 221.4 L 551.05 219.75 L 549.47 218.6 L 546.48 218.2 L 544.12 217.43 L 542.77 216.62 L 541.94 215.18 L 540.45 214.62 L 539.86 214.73 L 537.33 216.19 L 535.68 216.63 L 534.91 218.68 L 532.68 219.13 L 532.39 219.38 L 532.64 220.74 L 532.47 221.33 L 531.37 222.57 L 528.98 223.6 L 528.34 223.54 L 527.57 223.01 L 526.81 223.18 L 526.31 224.05 L 525.54 227.62 L 522.67 228.5 L 521.85 229.42 L 520.89 229.65 L 519.05 229.03 L 519.97 227.35 L 519.71 225.35 L 517.5 224.44 L 516.78 222.5 L 516.84 219.77 L 516.4 219.26 L 513.59 217.88 L 511.39 217.59 L 510.23 217.85 L 509.33 217.45 L 509.33 217.45 L 511.95 216.18 L 513.92 214.47 L 514.46 213.6 L 516.75 212.27 L 517.72 211.99 L 521.61 208.12 L 522.35 206.36 L 522.41 204.09 L 522.12 203.55 L 520.5 201.97 L 520.57 199.78 L 519.97 198.65 L 519.91 197.7 L 520.02 197.25 L 520.54 196.92 L 522.33 196.76 L 522.33 196.76 L 527.26 196.96 L 528.15 197.2 L 529.78 197.01 L 531.92 196.21 L 533.21 196.11 L 536.29 196.53 L 539.14 198.43 L 540.97 199.26 L 541.43 200.25 L 542.44 201.32 L 543.8 201.8 L 544.58 202.37 L 545.21 204.01 L 546.86 203.96 L 548.4 201.67 L 549.47 200.84 L 551.06 200.35 L 551.06 200.35 L 551.46 200.44 L 552.86 202.35 L 553.85 202.68 L 555.36 202.36 L 556.29 201.63 L 556.67 201.71 L 557.3 202.95 L 557.25 203.63 L 558.02 203.96 L 560.65 202.99 L 562.28 202.76 L 563.8 201.12 L 566.5 199.24 L 567.55 198.93 L 569.03 198.06 L 569.96 196.55 L 572.18 195.29 L 573.66 194.88 L 577.16 196.8 L 577.66 198.19 L 577.55 198.49 L 574.55 199.56 L 574.18 200.34 L 574.22 200.81 L 574.94 202.68 L 574.77 203.11 L 572.24 205.75 L 572.2 206.2 L 573.71 205.95 L 574.15 205.66 L 575.29 205.98 L 575.47 206.28 L 575.23 206.77 L 575.58 209.01 L 576.53 209.95 L 578.13 210.74 L 579.78 209.9 L 581.12 209.74 L 582.9 208.21 L 583.3 207.73 L 583.29 207.19 L 582.9 206.46 L 583.44 205.7 L 584.33 205.01 L 586.15 204.91 L 586.7 204.27 L 588.31 203.39 L 592.19 203.65 L 594.37 203.36 L 595.17 202.83 L 595.17 202.23 L 596.31 202.25 L 598.32 201.8 L 600.22 200.77 L 600.67 198.97 L 602.15 197.69 L 604.46 196.62 L 607.11 196.83 L 607.93 197.09 L 610.43 199.15 L 610.43 199.15 L 611.31 199.38 L 611.86 200.6 L 610.59 202.32 L 610.48 202.87 L 610.49 203.35 L 611.19 203.72 L 611.46 204.22 L 611.65 205.28 L 609.69 211.66 L 606.44 220.61 L 606.44 220.61 L 606.17 220.4 L 603.27 220.13 L 601.35 219.32 L 599.88 219.51 L 597.32 220.8 L 595.08 219.95 L 593.08 220.19 L 591.53 221.43 L 591.41 221.88 L 589.23 224.17 L 587.42 225.28 L 586.26 225.23 L 584.4 226.29 L 583.23 226.4 L 580.09 226.11 L 577.59 226.76 L 575.68 226.28 L 573.9 225.23 L 572 223.11 L 569.45 221.09 L 568.37 221.21 L 566.7 220.91 L 565.7 219.69 L 564.88 220.29 L 564.79 220.98 L 562.41 224.27 L 560.24 225.03 L 559.6 226.12 z"},{code:"PI",name:"Piauí",gTransform:"matrix(1 0 0 1 174.84 -130.97)",pathTransform:"translate(-480.85, -188.29)",d:"M 505.7 126.91 L 507.01 127.03 L 507.7 126.8 L 509.94 127.31 L 510.93 128.16 L 511.25 128.76 L 511.25 128.76 L 511.14 129.56 L 510.05 131.41 L 508.47 133.38 L 508.29 134.84 L 508.58 136.13 L 510.38 140.85 L 513.53 147.27 L 513.97 149 L 515.33 150.59 L 515.31 151.35 L 514.57 152.71 L 515.36 156.58 L 514.88 158.18 L 515.88 160.19 L 516.48 163.18 L 515.89 164.76 L 515.09 165.34 L 516.01 166.03 L 516.12 166.41 L 517.06 174.57 L 516.82 175.02 L 517.58 177.59 L 518.63 182.79 L 519.64 185.46 L 520.95 186.11 L 523.51 186.58 L 524.28 187.74 L 524.27 188.43 L 522.77 190.68 L 521.63 193.79 L 521.71 194.76 L 522.39 195.44 L 522.33 196.76 L 522.33 196.76 L 520.54 196.92 L 520.02 197.25 L 519.91 197.7 L 519.97 198.65 L 520.57 199.78 L 520.5 201.97 L 522.12 203.55 L 522.41 204.09 L 522.35 206.36 L 521.61 208.12 L 517.72 211.99 L 516.75 212.27 L 514.46 213.6 L 513.92 214.47 L 511.95 216.18 L 509.33 217.45 L 509.33 217.45 L 508.88 218.61 L 507.38 220.91 L 506.33 221.58 L 505.54 221.4 L 503.54 221.78 L 503.65 224.18 L 501.79 225.98 L 501.47 225.93 L 500.85 225.31 L 498.69 225.3 L 497.87 226.28 L 497.1 226.64 L 494.37 226.98 L 492.86 228.32 L 492.04 229.54 L 490.34 229.64 L 488.86 230.28 L 485.86 230.39 L 485.04 230.11 L 484.85 229.83 L 484.98 229.17 L 483.27 228.19 L 481.94 227.8 L 480.55 228.35 L 478.42 228.78 L 478.1 228.6 L 477.69 227.67 L 476.19 227.21 L 474.24 227.23 L 471 228.88 L 470.94 229.81 L 473.18 234.25 L 473.3 235.4 L 473.01 237.97 L 472.76 238.88 L 472.04 239.74 L 469.09 244.79 L 466.12 247.21 L 464.77 247.63 L 463.29 247.1 L 461.95 246.93 L 459.75 247.68 L 458.58 248.57 L 457.91 249.44 L 456.77 249.82 L 456.02 251.27 L 455.69 251.48 L 453.58 251.3 L 451.78 251.82 L 447.6 249.97 L 445.83 247.48 L 445.3 245.27 L 444.64 244.23 L 443.2 242.89 L 440.87 242.91 L 440.87 242.91 L 437.93 242.7 L 437.93 242.7 L 437.98 240.78 L 438.24 239.72 L 439.39 237.27 L 439.52 230.91 L 440.28 229.51 L 440.31 229 L 438.58 225.94 L 438.11 222.75 L 437.41 220.81 L 438.14 218.81 L 439.84 217.41 L 441.04 214.93 L 441.17 213.42 L 441.51 212.59 L 441.81 212.38 L 443.25 209.64 L 443.88 207.32 L 444.27 204.35 L 445.25 201.37 L 447.38 199.42 L 450.1 198.66 L 452.71 198.35 L 453.78 197.98 L 455.48 196.45 L 456.53 196.41 L 457.87 195.89 L 460.73 193.32 L 463.07 192.41 L 465.08 190.41 L 465.71 189.54 L 465.71 189.08 L 467.61 187.16 L 468.11 186.94 L 468.95 186.7 L 469.18 187 L 470.3 186.74 L 471.3 186.14 L 472.76 185.95 L 473.77 186.16 L 476.28 187.98 L 477.79 187.88 L 480.23 187.02 L 481.06 186.98 L 481.71 187.26 L 483.99 186.97 L 485.2 185.66 L 485.7 184.2 L 485.82 182.99 L 486.11 182.55 L 486.5 180.35 L 486.37 179.5 L 486.2 179 L 484.59 178.09 L 482.81 176.06 L 482.3 173.76 L 482.19 171.65 L 482.36 169.17 L 486.46 164.74 L 486.67 164.19 L 486.77 161.76 L 486.22 158.78 L 484.64 155.98 L 485.78 153.11 L 486.06 151.64 L 485.68 150.37 L 484.45 149.53 L 484.1 147.61 L 484.87 146.56 L 485.51 146.39 L 486.33 144.41 L 488.22 142.56 L 489.1 140.73 L 489.06 138.94 L 491.98 135.53 L 492.79 135.69 L 496.1 135.23 L 500.23 131.26 L 502.02 128.99 L 502.41 127.46 L 501.77 126.93 L 501.55 126.21 L 502.01 124.77 L 502.01 124.77 L 502.74 124.89 L 504.21 125.76 L 504.72 126.27 L 504.59 126.58 z"},{code:"PR",name:"Paraná",gTransform:"matrix(1 0 0 1 47.59 157)",pathTransform:"translate(-353.59, -476.27)",d:"M 396.75 499.4 L 391.51 499.37 L 391.18 499.81 L 389.44 500.05 L 388.68 499.98 L 388.57 499.59 L 387 500.16 L 385.65 501.59 L 382.3 503.72 L 380.86 503.56 L 379.63 502.94 L 376.5 500.34 L 375.47 499.95 L 374.71 499.94 L 371.87 500.67 L 369.54 500.84 L 368.73 500.81 L 367.31 500.05 L 366.2 500.19 L 364.67 500.84 L 364.08 502.31 L 363.35 503.18 L 361.48 504.16 L 357.91 503.75 L 355.91 504.9 L 355.19 505.67 L 354.5 507.26 L 355.35 510.25 L 354.48 511.11 L 353.56 511.13 L 352.81 511.51 L 352.64 512 L 351.31 510.11 L 347.06 510.24 L 343.3 509.81 L 341.72 508.63 L 341.56 508.22 L 340.53 507.59 L 336.27 507.23 L 330.98 505.55 L 328.64 506.12 L 325.95 506.09 L 323.93 504.68 L 323.61 504.17 L 322.55 503.93 L 322.02 503.92 L 321.31 504.29 L 317.68 504.27 L 317.68 504.27 L 317.46 503.06 L 314.93 498.88 L 314.95 496.29 L 313.96 493.41 L 310.54 491.04 L 309.45 492.17 L 307.33 492.06 L 306.23 492.49 L 305.16 493.39 L 303.7 492.31 L 302.88 492.37 L 302.6 490.17 L 303.26 488.6 L 304.33 487.33 L 305.55 485.15 L 305.61 484.81 L 305.12 484.06 L 305.14 482.82 L 306.04 479.18 L 307.3 476.16 L 307.05 473.86 L 308.33 471.48 L 308.12 470.46 L 307.28 469.58 L 306.97 467.98 L 307.63 466.92 L 308.42 466.38 L 308.42 466.38 L 310.8 464.82 L 311.16 464 L 312.73 456.08 L 313.06 455.73 L 314.17 455.41 L 315.83 454.4 L 316.5 453.72 L 317.95 450.16 L 317.93 449.01 L 318.86 446.68 L 319.97 445.86 L 325.38 443.59 L 325.38 443.59 L 328.64 441.3 L 332.47 441.95 L 336.48 441.84 L 339.75 442.13 L 340.96 441.51 L 341.31 440.91 L 342.04 440.54 L 343.21 440.83 L 344.69 441.61 L 347.21 442.07 L 349.85 443.16 L 351.16 443.29 L 352.23 442.75 L 354.81 442.74 L 355.59 443.74 L 357.34 444.58 L 360.85 445.38 L 361.48 445.89 L 362.19 447.21 L 363.92 447.28 L 364.34 446.94 L 365.99 447.09 L 366.65 447.63 L 371.96 447.76 L 374.93 446.91 L 376.06 448.46 L 379.65 451.29 L 380.54 453.05 L 380.55 455.79 L 380.16 456.37 L 380 457.18 L 380.38 459.02 L 381.68 460.53 L 381.6 462.29 L 381.24 462.85 L 382.73 465.85 L 383.94 467 L 384.61 467.28 L 385.11 467.96 L 385.06 468.85 L 385.98 470.82 L 386.58 471.11 L 386.83 471.55 L 386.58 472.6 L 385.31 474.73 L 385.63 476.77 L 386.23 477.15 L 387.24 477.36 L 389.62 477.24 L 393.04 476.71 L 393.54 477.1 L 395.12 476.91 L 396.71 477.04 L 398.32 478.3 L 398.18 478.71 L 397.29 479.36 L 396.6 482.66 L 396.95 483.44 L 398.02 483.97 L 398.67 483.12 L 399.77 480.36 L 400.53 480.19 L 402.67 480.77 L 402.27 482.72 L 403 486.02 L 404.42 486.6 L 404.58 487.92 L 404.58 487.92 L 403.23 488.94 L 402.62 490.42 L 402.07 490.3 L 402.34 488.36 L 403.78 487.41 L 402.37 487.69 L 401.48 488.18 L 400.61 488.16 L 400.27 487.77 L 399.7 487.6 L 399.16 487.97 L 398.88 488.9 L 399.4 489.7 L 398.67 490.66 L 398.37 490.76 L 395.89 490.23 L 395.1 489.69 L 394.65 489.81 L 394.47 490.71 L 394.81 491.08 L 396.42 491.64 L 397.82 491.39 L 399.95 491.99 L 400.22 492.47 L 399.25 493.15 L 397.71 495.93 L 396.47 496.7 L 394.05 497.27 L 393.85 497.72 L 396.8 497.52 L 396.95 498.71 z"},{code:"RJ",name:"Rio de Janeiro",gTransform:"matrix(1 0 0 1 179.27 113.69)",pathTransform:"translate(-485.28, -432.95)",d:"M 468.35 450.28 L 468.28000000000003 449.5 L 468.66 449.23 L 471.85 449.45000000000005 L 474.44 448.86000000000007 L 471.91 447.31000000000006 L 470.51000000000005 446.81000000000006 L 467.70000000000005 447.49000000000007 L 466.34000000000003 449.0900000000001 L 465.31000000000006 449.4100000000001 L 464.61000000000007 449.36000000000007 L 463.26000000000005 447.2100000000001 L 462.78000000000003 447.2100000000001 L 461.88000000000005 447.6300000000001 L 460.9200000000001 448.6900000000001 L 457.7700000000001 449.4900000000001 L 457.4300000000001 450.40000000000015 L 457.2400000000001 452.3000000000001 L 459.4300000000001 452.4300000000001 L 460.5000000000001 453.4400000000001 L 459.35000000000014 454.5200000000001 L 458.41000000000014 454.3500000000001 L 456.9900000000001 454.5200000000001 L 456.9900000000001 454.5200000000001 L 456.5100000000001 454.2600000000001 L 454.8800000000001 452.5300000000001 L 454.8300000000001 452.12000000000006 L 455.9200000000001 448.62000000000006 L 457.01000000000005 447.4700000000001 L 459.36000000000007 446.4600000000001 L 459.86000000000007 446.61000000000007 L 462.63000000000005 446.25000000000006 L 464.13000000000005 445.5400000000001 L 465.78000000000003 443.3900000000001 L 465.03000000000003 441.7500000000001 L 463.33000000000004 441.7400000000001 L 460.18000000000006 442.2700000000001 L 458.4100000000001 441.8800000000001 L 457.18000000000006 440.29000000000013 L 456.62000000000006 439.1200000000001 L 455.3500000000001 438.5800000000001 L 455.3500000000001 438.5800000000001 L 456.0300000000001 438.0900000000001 L 458.4500000000001 437.3500000000001 L 461.3600000000001 436.0100000000001 L 463.9400000000001 435.8400000000001 L 464.4400000000001 436.11000000000007 L 466.16000000000014 435.3400000000001 L 467.21000000000015 434.5700000000001 L 471.3000000000001 432.7800000000001 L 471.8200000000001 432.7100000000001 L 472.1800000000001 433.0200000000001 L 475.3800000000001 432.9500000000001 L 476.6300000000001 432.7800000000001 L 478.2600000000001 431.8400000000001 L 478.8300000000001 431.7800000000001 L 481.36000000000007 432.05000000000007 L 481.8500000000001 432.2200000000001 L 481.8300000000001 432.6900000000001 L 483.2100000000001 432.4900000000001 L 492.7200000000001 427.96000000000015 L 495.25000000000006 426.97000000000014 L 495.46000000000004 426.45000000000016 L 495.18000000000006 425.84000000000015 L 493.74000000000007 425.71000000000015 L 493.83000000000004 424.96000000000015 L 495.72 421.25000000000017 L 498.08000000000004 415.21000000000015 L 497.35 414.50000000000017 L 497.91 414.01000000000016 L 499.15000000000003 413.7400000000002 L 501.68 411.38000000000017 L 501.68 411.38000000000017 L 503.61 412.14000000000016 L 504.28000000000003 416.85000000000014 L 506.78000000000003 417.98000000000013 L 511.11 418.9900000000001 L 514.1 418.6200000000001 L 515.72 419.6800000000001 L 515.72 419.6800000000001 L 515.64 420.9500000000001 L 514.6999999999999 422.5600000000001 L 514.4799999999999 424.6900000000001 L 515.6199999999999 431.4700000000001 L 515.1199999999999 432.1500000000001 L 512.0399999999998 433.9000000000001 L 506.0699999999998 435.8400000000001 L 503.23999999999984 437.5600000000001 L 499.73999999999984 441.2500000000001 L 499.6299999999998 442.91000000000014 L 499.9399999999998 444.10000000000014 L 499.74999999999983 445.72000000000014 L 499.0199999999998 447.20000000000016 L 497.1999999999998 447.71000000000015 L 490.6499999999998 447.54000000000013 L 484.8599999999998 448.2400000000001 L 482.4699999999998 447.78000000000014 L 481.9799999999998 447.40000000000015 L 481.9199999999998 446.72000000000014 L 482.94999999999976 445.2400000000001 L 483.6199999999998 443.79000000000013 L 483.5299999999998 443.17000000000013 L 482.74999999999983 442.9900000000001 L 479.9599999999998 444.1400000000001 L 479.6999999999998 444.8300000000001 L 480.0099999999998 445.6200000000001 L 481.3899999999998 446.79000000000013 L 481.6399999999998 447.76000000000016 L 481.04999999999984 448.28000000000014 L 479.41999999999985 448.79000000000013 L 477.84999999999985 448.76000000000016 L 469.80999999999983 449.83000000000015 L 468.35 450.28 z M 463.24 452.27 L 462.57 451.29999999999995 L 464.68 449.74999999999994 L 466.54 450.68999999999994 L 466.97 451.38999999999993 L 464.51000000000005 451.88999999999993 L 464.1 451.5399999999999 L 463.63 451.5399999999999 L 463.24 452.27 z"},{code:"RN",name:"Rio Grande do Norte",gTransform:"matrix(1 0 0 1 274.86 -145.63)",pathTransform:"translate(-580.87, -173.63)",d:"M 609.29 182.91 L 608.36 183.15 L 604.86 182.94 L 603.82 183.34 L 601.36 182.24 L 599.19 181.94 L 593.36 182.33 L 592.83 181.98 L 589.41 181.58 L 588.79 181.09 L 588.89 180.09 L 588.47 179.7 L 587.09 179.75 L 585.27 181.1 L 584.96 182.58 L 585.68 183.36 L 586.21 184.89 L 585.2 184.57 L 584.72 185.16 L 584.88 186.58 L 585.35 187.52 L 584.8 188.73 L 584.3 189.47 L 581.95 190.4 L 581.12 189.66 L 581.64 188.12 L 580.75 186.95 L 578.8 186.65 L 577.03 186.73 L 573.88 187.99 L 573.59 187.76 L 573.28 186.38 L 572.96 186.15 L 569.43 185.63 L 569.51 183.91 L 569.72 183.6 L 570.57 183.35 L 570.98 182.97 L 571.36 181.23 L 571.8 180.27 L 574.79 177.06 L 574.78 175.87 L 574.25 175.43 L 573.61 175.35 L 570.35 176.39 L 568.92 176.51 L 565.74 177.72 L 565.33 178.67 L 565.23 179.71 L 564.41 180.42 L 561.18 182.08 L 560.02 183.21 L 557.14 182.6 L 556.24 182.18 L 554.31 180.54 L 553.74 181 L 553.74 181 L 553.08 181.38 L 552.44 181.21 L 552.78 179.24 L 554.19 176.99 L 555.03 176.11 L 555.54 176.04 L 556.32 176.55 L 557.35 176.29 L 557.92 175.19 L 559.38 173.68 L 560.78 171.24 L 560.63 170.5 L 561.28 168.83 L 562.15 168.26 L 562.99 167.14 L 566.29 160.45 L 568.9 158.44 L 573.79 156.85 L 573.79 156.85 L 574.26 157.61 L 575.12 158.36 L 578.25 158.35 L 579.47 158.76 L 581.16 160.51 L 582.48 161.01 L 585.81 160.69 L 588.69 161.21 L 591.23 160.97 L 593.56 160.24 L 598.06 161.16 L 599.33 161.2 L 601.28 162.06 L 602.3 162.88 L 602.94 163.82 L 605.25 168.56 L 605.75 170.35 L 605.71 171.1 L 607.19 176.48 L 607.4 178.16 L 608.12 178.7 L 609.08 181.39 z"},{code:"RO",name:"Rondônia",gTransform:"matrix(1 0 0 1 -139.57 -68.08)",pathTransform:"translate(-166.43, -251.18)",d:"M 187.32 290.95 L 186.03 289.5 L 185.59 287.62 L 184.03 287.1 L 183.17 287.42 L 181.36 287.5 L 177.29 285.69 L 177.28 285.29 L 176.62 284.68 L 175.35 285.27 L 173.37 283.59 L 171.85 282.62 L 170.99 281.16 L 170.71 279.77 L 169.67 279.38 L 167.9 280.5 L 166.68 280.47 L 165.27 279.67 L 164.4 278.34 L 161.27 276.76 L 159.31 276.59 L 158.17 277.13 L 157.27 277.98 L 155.84 277.81 L 155.53 277.51 L 153.39 277 L 150.33 276.72 L 149.57 276.29 L 148.39 275.1 L 148.09 273.13 L 146.51 272.64 L 144.62 271.67 L 143.8 269.95 L 143.51 269.75 L 140.79 269.47 L 140.41 269.12 L 139.57 265.41 L 138.69 264.52 L 138.21 265.68 L 137.55 265.36 L 137.28 264.72 L 137.9 263.19 L 137.06 261.67 L 135.7 261.28 L 134.44 257.81 L 134.27 256.15 L 135.82 253.24 L 135.61 251.58 L 134.45 249.61 L 133.7 247.45 L 133.64 245.16 L 134.26 244.66 L 134.64 243.29 L 135.68 242.24 L 136.04 240.77 L 135.8 239.28 L 135.38 238.39 L 135.29 236.86 L 135.83 235.21 L 134.66 233.03 L 133.64 232.65 L 132.55 233.63 L 132.49 234.14 L 131.65 235.1 L 131.08 235.1 L 128.9 234.08 L 123.72 234.16 L 118.11 235.94 L 116.42 235.93 L 114.94 236.41 L 114.94 236.41 L 111.97 235.15 L 111.97 235.15 L 115.23 232.59 L 117.15 232.01 L 118.7 230.2 L 118.85 229.64 L 118.69 228.35 L 122.65 228.61 L 125.52 228.28 L 126.24 228.65 L 128.55 230.98 L 128.92 230.96 L 130.14 230.17 L 130.27 229.45 L 130.68 228.92 L 131.76 228.42 L 132.53 228.55 L 133.9 228.16 L 135.2 226.95 L 137.04 225.93 L 137.42 226.02 L 138.06 228.28 L 138.74 228.81 L 139.42 228.73 L 141.96 225.57 L 141.7 223.82 L 142.23 222.98 L 143.98 221.72 L 144.44 221.74 L 145.28 222.29 L 147.07 222.39 L 148.27 221.32 L 150.4 220.94 L 154.27 221.4 L 154.03 219.94 L 154.14 218.13 L 156.2 216.92 L 157.01 215.77 L 157.37 214.75 L 157.2 214.3 L 156.3 213.6 L 156.35 212.93 L 157.54 211.34 L 160.02 210.81 L 160.28 210.59 L 160.19 209.42 L 161.91 208.92 L 163.29 206.36 L 174.08 206.3 L 176.23 207.43 L 176.68 207.92 L 177.48 209.83 L 178.81 211.1 L 181.35 212.08 L 182.6 215.35 L 183.06 215.56 L 184.04 215.43 L 184.66 215.63 L 185.34 218.51 L 188.58 219.99 L 189.26 219.8 L 189.8 218.06 L 191.72 216.98 L 193.11 217.26 L 193.47 217.64 L 193.43 218.34 L 193.43 218.34 L 194.83 219.31 L 195.43 220.55 L 194.67 221.97 L 193.38 226.96 L 193.44 227.31 L 194.22 227.78 L 194.48 228.39 L 194.63 229.78 L 195.46 232.05 L 194.52 233.72 L 194.9 235.65 L 193.9 239.17 L 193.87 239.97 L 194.14 241.73 L 195.64 244.48 L 194.74 253.48 L 211.9 253.53 L 211.66 254.09 L 212.88 255.2 L 216.38 255.11 L 217.49 255.22 L 218.56 255.65 L 219.97 259.24 L 219.8 259.99 L 218.4 261.74 L 217.04 262.82 L 216.9 264.14 L 217.33 267.39 L 217.91 267.9 L 218.81 267.87 L 220.34 271.21 L 220.3 273.26 L 220.88 274.75 L 220.81 276.46 L 220.25 278.7 L 218.59 280.71 L 218.07 282.96 L 217.49 283.8 L 217.06 284.21 L 215.42 284.74 L 214.49 285.82 L 213.06 289.6 L 212.54 292.05 L 208.43 294.62 L 206.96 296.05 L 206.96 296.05 L 206.22 296.01 L 203.63 294.46 L 202.36 293.03 L 195.28 293.99 L 193.96 293.56 L 193.71 293.26 L 190.33 293.92 L 189.85 293.76 L 189.33 292.41 z"},{code:"RR",name:"Roraima",gTransform:"matrix(1 0 0 1 -116.08 -267.27)",pathTransform:"translate(-189.92, -51.99)",d:"M 234.61 61.4 L 236.21 78.37 L 236.21 78.37 L 217.72 78.3 L 217.75 78.98 L 215.42 82.24 L 213.76 85.27 L 213.69 86.4 L 212.54 89.04 L 212.43 89.7 L 212.66 90.43 L 213.8 91.84 L 213.78 92.37 L 213.36 92.76 L 211.33 93.31 L 209.92 94.72 L 208.67 95.18 L 206.85 94.95 L 205.93 92.44 L 204.06 90.4 L 201.23 89.47 L 199.63 89.53 L 199.08 90.42 L 196.99 91.13 L 195.71 91.82 L 194.69 93.08 L 193.87 96.05 L 194.24 97.85 L 193.99 99.58 L 193.24 101.87 L 193.68 103.98 L 191.32 102.94 L 189.98 103.36 L 189.45 103.29 L 188.41 101.25 L 186.93 99.6 L 184.97 98.29 L 184.45 98.25 L 179.44 93.83 L 179.58 92.69 L 181.42 93.02 L 182.56 91.7 L 182.62 91.12 L 181.49 86.79 L 180.91 85.89 L 179.69 85.05 L 178.81 82.88 L 178.52 77.9 L 179.09 76.94 L 179.86 73.9 L 179.2 72.32 L 178.84 70.73 L 180.46 69.27 L 180.41 68.82 L 179.54 67.7 L 179.35 65.44 L 177.69 60.68 L 174.96 56.94 L 175.67 55.44 L 176.58 52.12 L 176.09 51.46 L 174.14 50.51 L 172.78 50.4 L 171.9 50.61 L 170.93 50.24 L 169.72 49.07 L 169.66 48.11 L 169.03 48 L 167.9 48.42 L 167.29 48.41 L 166.54 48.07 L 165.82 47.29 L 165.82 47.29 L 166.12 46.83 L 166.35 44.55 L 166.05 44.33 L 162.68 44.1 L 158.93 44.24 L 155.62 43.54 L 155.42 42.94 L 156.22 41.18 L 156.34 39.7 L 155.61 37.93 L 153.67 34.39 L 152.94 32.33 L 152.47 28.61 L 153.26 27.13 L 153.18 26.17 L 151.34 24.17 L 149.18 23.11 L 146.37 20.33 L 145.31 18.52 L 145.02 17.56 L 143.88 16.91 L 143.63 16.52 L 143.66 15.68 L 143.95 15.35 L 144.85 15.42 L 145.97 16.08 L 146.91 17.81 L 147.52 17.9 L 150.91 17.4 L 152.26 17.5 L 154.17 18.09 L 154.78 19.29 L 155.33 21.22 L 155.87 21.57 L 156.83 21.49 L 157.57 20.84 L 158.52 20.44 L 161.7 20.6 L 162.17 20.65 L 163.48 21.86 L 164.08 22.01 L 164.6 21.87 L 165.21 20.31 L 166.52 20.45 L 167.97 21.38 L 171.9 25.95 L 172.95 26.52 L 173.66 26.63 L 175.17 25.95 L 175.91 24.82 L 176.01 23.98 L 175.18 21.22 L 175.54 19.48 L 176 19.2 L 177.93 19.15 L 178.94 18.05 L 180.49 16.96 L 181.24 17.01 L 185.14 18.35 L 185.73 18.18 L 186.53 17.46 L 187.56 17.16 L 188.69 17.51 L 189.72 17.3 L 191.06 16.02 L 192.06 15.77 L 193.21 16 L 194.32 15.93 L 195 15.08 L 195.05 13.73 L 198.08 11.92 L 200.41 12.11 L 203.17 11.72 L 204.06 10.59 L 204.15 9.88 L 204.74 8.76 L 205.49 8.63 L 207.34 7.73 L 208.44 6.69 L 209.55 4.98 L 208.35 1.42 L 207.18 1.06 L 207.82 0.88 L 209.25 0.95 L 210.05 1.27 L 213.62 1.17 L 214.68 0.22 L 215.42 0 L 216.79 0.42 L 217.32 1.73 L 218.36 2.53 L 218.84 3.9 L 218.17 8.8 L 217.45 10.18 L 216.2 10.88 L 216.26 11.71 L 217.87 12.12 L 219.49 11.9 L 221.84 12.71 L 223.66 13.81 L 222.78 15.24 L 222.77 16.39 L 225.11 19.81 L 225.31 21.36 L 223.8 24.28 L 221.92 25.69 L 221.2 27.19 L 221.47 27.58 L 221.53 29.75 L 220.06 32.16 L 219.16 34.93 L 218.85 37.5 L 218.76 40.17 L 219.74 42.04 L 220.25 43.8 L 220.24 45.2 L 221.81 46.23 L 222.71 46.43 L 222.84 47.11 L 222.38 52.26 L 222.5 53 L 224.31 53.29 L 223.65 54.46 L 224.11 54.96 L 226.26 55.7 L 227.72 57.62 L 230.38 60.36 z"},{code:"RS",name:"Rio Grande do Sul",gTransform:"matrix(1 0 0 1 11.62 259.25)",pathTransform:"translate(-317.63, -578.5)",d:"M 321.99 638.52 L 321.63 638.53 L 319.69 637.42 L 319.49 636.96 L 320.01 632.69 L 319.55 628.44 L 319.7 627.37 L 320.33 626.13 L 323.17 623.75 L 324 622.19 L 326.3 619.63 L 324.84 617.98 L 323.77 617.36 L 321.52 616.76 L 319.2 614.51 L 317.99 612.89 L 317.89 611.3 L 317.46 610.12 L 316.23 608.09 L 314.17 605.85 L 313.5 605.26 L 311.11 604.05 L 309.66 604.26 L 307.76 602.75 L 306.24 601.12 L 304.99 600.34 L 304.85 598.64 L 302.95 596.48 L 299.63 596.02 L 298.71 595.55 L 296.98 593.89 L 295.22 594.02 L 293.05 592.64 L 291.14 588.93 L 290.03 587.44 L 287.5 585.32 L 286.8 585.4 L 286.13 587.19 L 283.54 589.43 L 280.87 589.55 L 280.97 586.69 L 281.37 585.41 L 280.98 584.41 L 277.33 580.12 L 274.96 578.35 L 272.78 576.29 L 271.03 574.18 L 268.34 571.97 L 266.44 571.83 L 264.29 572.04 L 263.15 573.4 L 263.09 574.36 L 262.06 575.33 L 260.95 575.35 L 260.37 574.87 L 257.21 575.01 L 256.56 574.53 L 256.4 573.62 L 255.91 573.4 L 256.76 573.18 L 257.8 572.46 L 260.32 569.69 L 260.43 567.85 L 261.03 566.6 L 261.85 566.15 L 263.14 566.08 L 263.78 565.82 L 264.7 564.82 L 270.15 558.34 L 270.78 556.92 L 270.95 555.81 L 271.77 554.74 L 272.97 553.89 L 274.34 553.48 L 276.3 549.26 L 276.4 548.65 L 276.71 548.28 L 278.35 547.42 L 279.98 545.62 L 280.83 544.47 L 281.34 543.18 L 282.68 541.08 L 283.61 540.79 L 285.18 540.97 L 285.73 541.76 L 286.2 540.48 L 285.99 539.9 L 284.64 539.08 L 284.59 538.72 L 284.94 538.39 L 286.02 538.01 L 286.84 537.05 L 289.63 536.1 L 290.68 535.03 L 290.78 534.11 L 291.6 533.2 L 293.81 532.05 L 296.28 531.65 L 298.05 529.84 L 298.2 528.78 L 299.52 526.42 L 299.85 526.38 L 299.9 526.74 L 300.19 526.94 L 301.52 526.77 L 303.96 525.64 L 306.64 525.05 L 307.85 524.48 L 309.95 522.13 L 310.45 522.14 L 311.12 521.75 L 312.13 520.4 L 314.44 519.67 L 314.74 520.05 L 314.74 520.05 L 318.26 520.44 L 321.52 519.29 L 322.08 518.48 L 323.43 519.06 L 323.28 519.98 L 326.36 519.95 L 327.99 520.94 L 330.55 520.57 L 332.47 521.72 L 335.05 521.31 L 336.59 521.49 L 339.39 521.33 L 341.65 522.25 L 344.13 523.65 L 345.13 526.09 L 346.72 526.28 L 346.81 525.8 L 348.62 525.45 L 354.18 528.99 L 355.55 530.54 L 356.26 530.51 L 357.82 531.49 L 360.85 534.98 L 362.49 537.19 L 362.97 538.67 L 365.14 541.33 L 366.31 541.88 L 373 542.94 L 375.11 542.54 L 378.46 542.88 L 379.34 545.22 L 377.26 546.8 L 375.99 547.21 L 375.26 549.07 L 375.48 551.26 L 375.1 552.82 L 374.58 554.12 L 373.4 554.32 L 372.11 556.01 L 372.08 557.42 L 373.88 558.59 L 374.15 558.39 L 373.87 557.42 L 373.88 556.46 L 375.37 555.64 L 376.95 556.28 L 377.68 557.19 L 378.85 558.04 L 379.3 558.01 L 379.3 558.01 L 377.9 559.74 L 374 566.78 L 369.79 578.38 L 363.49 588.86 L 358.05 595.52 L 351.54 601.48 L 345.45 605.16 L 342.35 609.47 L 342.17 609.04 L 342.82 607.46 L 343.16 605.28 L 341.98 603.57 L 342.08 603.15 L 343.01 602.98 L 344.02 603.38 L 344.58 603.96 L 345.6 604 L 348.18 602.59 L 349 601.91 L 351.85 598.2 L 352.6 597.51 L 353.05 597.7 L 354.07 597.51 L 355.12 596.67 L 356.05 595.4 L 356.42 593.92 L 356.6 592.99 L 356.37 590.89 L 356.57 589.52 L 358.14 589.45 L 358.88 589.75 L 359.15 590.58 L 359.5 590.32 L 359.21 588.92 L 359.72 586.85 L 360.2 586.28 L 362.94 584.69 L 363.67 583.61 L 364.14 580.86 L 363.93 578.58 L 364.49 577.9 L 364.99 578.7 L 365.36 578.73 L 365.79 578.31 L 366.26 575.23 L 366.16 574.79 L 365.21 573.57 L 364.54 573.54 L 364.28 574.23 L 364.45 574.62 L 364.31 575.19 L 363.96 575.39 L 362.45 575.37 L 360.44 575.77 L 360.1 577.38 L 359.57 577.43 L 358.76 576.99 L 358.86 575.28 L 358.04 574.39 L 357 574.72 L 356.4 574.24 L 355.67 572.98 L 355.27 571.53 L 355.39 570.96 L 354.75 570.27 L 354.14 572.98 L 354.58 575.23 L 355.83 577.34 L 355.26 578.15 L 354.52 580.69 L 354.9 583.72 L 354.72 584.49 L 354.24 584.12 L 354.5 583.88 L 354.47 583.17 L 354 581.89 L 353.55 581.5 L 353.02 582.16 L 352.99 583.53 L 351.58 586.8 L 351.53 588.69 L 351.75 589.21 L 351.03 589.91 L 349.42 590.55 L 348.81 592.13 L 344.72 593.7 L 344 594.23 L 343.47 595.82 L 343.37 598.09 L 342.4 600.36 L 340.04 601.66 L 339.93 603.42 L 340.41 604.25 L 340.66 605.27 L 339.71 605.83 L 339.46 607.34 L 339.89 607.94 L 340.57 607.8 L 341.87 608.43 L 342.02 609.34 L 339.89 610.99 L 337.57 615.51 L 335.64 622.39 L 333.63 626.88 L 331.95 629.4 L 324.16 636.93 z"},{code:"SC",name:"Santa Catarina",gTransform:"matrix(1 0 0 1 51.41 209.71)",pathTransform:"translate(-357.4, -528.97)",d:"M 379.3 558.01 L 378.85 558.04 L 377.68 557.1899999999999 L 376.95 556.27 L 375.36 555.64 L 373.88 556.46 L 373.87 557.4200000000001 L 374.15 558.3900000000001 L 373.88 558.5900000000001 L 372.08 557.4200000000002 L 372.12 556.0100000000002 L 373.4 554.3200000000002 L 374.58 554.1200000000001 L 375.10999999999996 552.8100000000002 L 375.47999999999996 551.2600000000002 L 375.25999999999993 549.0700000000002 L 375.98999999999995 547.2100000000002 L 377.25999999999993 546.7900000000002 L 379.3399999999999 545.2100000000002 L 378.4599999999999 542.8700000000001 L 375.1099999999999 542.5300000000001 L 372.9999999999999 542.9300000000001 L 366.3099999999999 541.8700000000001 L 365.14999999999986 541.3300000000002 L 362.97999999999985 538.6700000000002 L 362.48999999999984 537.1900000000002 L 360.85999999999984 534.9800000000001 L 357.82999999999987 531.4900000000001 L 356.2599999999999 530.5000000000001 L 355.5499999999999 530.5300000000001 L 354.1799999999999 528.9800000000001 L 348.6199999999999 525.4400000000002 L 346.8099999999999 525.7800000000002 L 346.7199999999999 526.2600000000002 L 345.1199999999999 526.0700000000002 L 344.1199999999999 523.6300000000001 L 341.64999999999986 522.2400000000001 L 339.3799999999999 521.3100000000002 L 336.58999999999986 521.4700000000001 L 335.04999999999984 521.2900000000002 L 332.45999999999987 521.7000000000002 L 330.54999999999984 520.5500000000002 L 327.97999999999985 520.9100000000002 L 326.34999999999985 519.9300000000002 L 323.26999999999987 519.9600000000002 L 323.41999999999985 519.0300000000002 L 322.0699999999998 518.4500000000002 L 321.5099999999998 519.2600000000001 L 318.24999999999983 520.4200000000001 L 314.72999999999985 520.0300000000001 L 314.72999999999985 520.0300000000001 L 316.17999999999984 517.1000000000001 L 316.90999999999985 515.0100000000001 L 316.32999999999987 511.7600000000001 L 316.7399999999999 508.5500000000001 L 316.6999999999999 506.0000000000001 L 317.65999999999985 504.2500000000001 L 317.65999999999985 504.2500000000001 L 321.28999999999985 504.2700000000001 L 321.99999999999983 503.8900000000001 L 322.5299999999998 503.9000000000001 L 323.5899999999998 504.1400000000001 L 323.8999999999998 504.6500000000001 L 325.9299999999998 506.0600000000001 L 328.6099999999998 506.0900000000001 L 330.94999999999976 505.5100000000001 L 336.2399999999998 507.1900000000001 L 340.4999999999998 507.5500000000001 L 341.51999999999975 508.1800000000001 L 341.68999999999977 508.59000000000015 L 343.25999999999976 509.77000000000015 L 347.02999999999975 510.19000000000017 L 351.27999999999975 510.0600000000002 L 352.60999999999973 511.96000000000015 L 352.78999999999974 511.46000000000015 L 353.52999999999975 511.08000000000015 L 354.44999999999976 511.0600000000002 L 355.31999999999977 510.20000000000016 L 354.46999999999974 507.21000000000015 L 355.15999999999974 505.63000000000017 L 355.87999999999977 504.8500000000002 L 357.87999999999977 503.7100000000002 L 361.44999999999976 504.1100000000002 L 363.31999999999977 503.14000000000016 L 364.0499999999998 502.27000000000015 L 364.63999999999976 500.79000000000013 L 366.16999999999973 500.14000000000016 L 367.27999999999975 500.00000000000017 L 368.69999999999976 500.76000000000016 L 369.50999999999976 500.79000000000013 L 371.83999999999975 500.6200000000001 L 374.6799999999997 499.8900000000001 L 375.4299999999997 499.9000000000001 L 376.46999999999974 500.30000000000007 L 379.58999999999975 502.9000000000001 L 380.81999999999977 503.5200000000001 L 382.25999999999976 503.6800000000001 L 385.6099999999998 501.5500000000001 L 386.9599999999998 500.1200000000001 L 388.5199999999998 499.5500000000001 L 388.6399999999998 499.9400000000001 L 389.3999999999998 500.0100000000001 L 391.1399999999998 499.7800000000001 L 391.4699999999998 499.3400000000001 L 396.7099999999998 499.37000000000006 L 396.7099999999998 499.37000000000006 L 396.3199999999998 500.69000000000005 L 396.8299999999998 502.34000000000003 L 396.7599999999998 502.73 L 395.2599999999998 503.87 L 394.2799999999998 503.39 L 393.4599999999998 500.86 L 393.4399999999998 501.98 L 394.0299999999998 504.70000000000005 L 395.7399999999998 506.36000000000007 L 396.2999999999998 507.31000000000006 L 395.2899999999998 509.6000000000001 L 395.12999999999977 511.9200000000001 L 395.2299999999998 512.35 L 395.9899999999998 513.08 L 396.2499999999998 518.94 L 396.5599999999998 519.49 L 396.9899999999998 519.69 L 397.75999999999976 519.1800000000001 L 398.1099999999998 519.9000000000001 L 398.2099999999998 520.7700000000001 L 397.7399999999998 520.83 L 397.3099999999998 520.5500000000001 L 396.1199999999998 521.1800000000001 L 395.7799999999998 525.0200000000001 L 396.3499999999998 527.6100000000001 L 395.7799999999998 528.3600000000001 L 396.0899999999998 530.2900000000001 L 396.99999999999983 532.1700000000001 L 396.1399999999998 534.5100000000001 L 395.61999999999983 538.5200000000001 L 393.90999999999985 543.2 L 393.5699999999999 543.1 L 393.20999999999987 542.34 L 393.41999999999985 541.37 L 392.49999999999983 540.19 L 392.23999999999984 540.5200000000001 L 392.41999999999985 542.95 L 393.57999999999987 543.7800000000001 L 392.65999999999985 545.44 L 391.01999999999987 546.09 L 386.8899999999999 549.13 L 384.08999999999986 551.6899999999999 L 380.33999999999986 556.13 L 379.3 558.01 z M 397.18 531.46 L 397.03000000000003 530.99 L 397.28000000000003 529.24 L 398.04 526.84 L 397.64000000000004 525.6600000000001 L 397.80000000000007 524.6400000000001 L 399.20000000000005 523.8800000000001 L 399.4200000000001 523.94 L 400.0800000000001 524.8800000000001 L 399.5400000000001 527.44 L 398.7200000000001 528.3000000000001 L 398.1300000000001 529.5200000000001 L 398.3300000000001 530.69 L 397.18 531.46 z M 396.73 507.09 L 394.86 505.07 L 397.41 502.63 L 397.66 502.67 L 398.31 503.72 L 397.45 505.04 L 396.73 507.09 z"},{code:"SE",name:"Sergipe",gTransform:"matrix(1 0 0 1 266.49 -72.82)",pathTransform:"translate(-572.49, -246.44)",d:"M 569.94 261.69 L 567.04 262.58 L 565.49 261.94 L 564.95 261.6 L 564.47 260.88 L 562.55 259.96 L 561.95 259.44 L 561.83 259.03 L 562.17 258.64 L 562.3 257.22 L 562.15 256.83 L 560.72 255.32 L 560.2 253.83 L 559.11 253.16 L 558.15 251.56 L 558.13 250.79 L 558.72 249.21 L 559.04 248.91 L 560.74 248.92 L 561.87 249.67 L 564.42 248.68 L 565.11 248.13 L 565.41 247.55 L 564.65 244.8 L 564.73 243.92 L 565.39 242.3 L 565.47 239.19 L 564.72 238.04 L 562.73 236.09 L 561.46 233.59 L 561.24 231.45 L 561.91 230.3 L 561.91 230.3 L 568.37 233.28 L 572.05 234.23 L 577.47 237.3 L 578.77 239.75 L 580.53 241.2 L 582.19 241.99 L 582.65 242.02 L 586.24 244.25 L 586.84 245.56 L 586.84 245.56 L 584.46 246.32 L 579.89 249.26 L 578.92 250.15 L 577.37 252.36 L 577.05 252.34 L 577.16 251.24 L 576.11 249.42 L 575.12 249.58 L 575.46 250.74 L 576.7 250.74 L 576.93 250.98 L 576.41 252.95 L 575.14 255.04 L 574.61 254.69 L 574.24 254.02 L 573.25 253.86 L 573.45 254.54 L 574.58 255.16 L 574.32 256.93 L 573.46 258.08 L 572.53 260.11 L 571.75 260.26 L 571.45 259.8 L 571.93 258.4 L 572.34 258.27 L 572.65 257.84 L 573.02 256.8 L 572.21 256.43 L 572.31 257.11 L 571.86 258.24 L 571.38 258.74 L 571.12 259.83 L 571.4 260.55 L 571.14 261.07 z"},{code:"SP",name:"São Paulo",gTransform:"matrix(1 0 0 1 89.6 122.15)",pathTransform:"translate(-395.6, -441.42)",d:"M 404.58 487.92 L 404.41999999999996 486.59000000000003 L 402.99999999999994 486.02000000000004 L 402.2699999999999 482.72 L 402.6699999999999 480.77000000000004 L 400.5299999999999 480.19000000000005 L 399.7699999999999 480.36000000000007 L 398.6699999999999 483.13000000000005 L 398.0099999999999 483.9800000000001 L 396.9499999999999 483.4500000000001 L 396.59999999999985 482.67000000000013 L 397.28999999999985 479.3700000000001 L 398.17999999999984 478.7100000000001 L 398.3199999999998 478.3100000000001 L 396.7099999999998 477.04000000000013 L 395.11999999999983 476.91000000000014 L 393.53999999999985 477.10000000000014 L 393.03999999999985 476.72000000000014 L 389.6299999999998 477.2500000000001 L 387.24999999999983 477.3700000000001 L 386.23999999999984 477.16000000000014 L 385.6399999999998 476.77000000000015 L 385.30999999999983 474.73000000000013 L 386.5899999999998 472.6100000000001 L 386.8399999999998 471.5600000000001 L 386.5899999999998 471.1200000000001 L 385.9899999999998 470.8200000000001 L 385.06999999999977 468.8500000000001 L 385.12999999999977 467.9600000000001 L 384.62999999999977 467.2800000000001 L 383.95999999999975 466.99000000000007 L 382.7499999999998 465.8500000000001 L 381.25999999999976 462.8400000000001 L 381.6199999999998 462.2900000000001 L 381.69999999999976 460.5300000000001 L 380.39999999999975 459.0100000000001 L 380.01999999999975 457.17000000000013 L 380.18999999999977 456.3600000000001 L 380.57999999999976 455.78000000000014 L 380.5599999999998 453.04000000000013 L 379.6699999999998 451.28000000000014 L 376.0799999999998 448.45000000000016 L 374.9499999999998 446.90000000000015 L 371.9799999999998 447.76000000000016 L 366.6699999999998 447.63000000000017 L 366.00999999999976 447.09000000000015 L 364.3599999999998 446.95000000000016 L 363.93999999999977 447.29000000000013 L 362.21999999999974 447.22000000000014 L 361.4999999999997 445.90000000000015 L 360.8699999999997 445.39000000000016 L 357.35999999999973 444.59000000000015 L 355.60999999999973 443.75000000000017 L 354.82999999999976 442.75000000000017 L 352.2499999999998 442.76000000000016 L 351.1799999999998 443.3000000000002 L 349.8599999999998 443.1700000000002 L 347.2199999999998 442.0800000000002 L 344.6899999999998 441.62000000000023 L 343.2099999999998 440.8300000000002 L 342.0399999999998 440.5400000000002 L 341.3099999999998 440.9100000000002 L 340.9699999999998 441.5100000000002 L 339.7599999999998 442.1300000000002 L 336.47999999999985 441.8400000000002 L 332.46999999999986 441.9500000000002 L 328.6399999999999 441.30000000000024 L 325.3899999999999 443.59000000000026 L 325.3899999999999 443.59000000000026 L 326.22999999999985 442.5100000000003 L 326.95999999999987 440.97000000000025 L 328.21999999999986 439.83000000000027 L 335.77999999999986 435.29000000000025 L 337.72999999999985 433.42000000000024 L 338.98999999999984 430.99000000000024 L 340.71999999999986 429.30000000000024 L 341.11999999999983 428.09000000000026 L 342.55999999999983 427.0600000000003 L 342.8399999999998 425.84000000000026 L 342.4899999999998 425.0000000000003 L 344.4899999999998 422.7400000000003 L 345.69999999999976 420.4000000000003 L 345.76999999999975 419.4600000000003 L 345.45999999999975 417.5300000000003 L 345.68999999999977 417.1400000000003 L 346.64999999999975 416.62000000000035 L 349.2499999999998 412.98000000000036 L 349.4099999999998 410.05000000000035 L 350.0299999999998 408.37000000000035 L 351.0399999999998 408.07000000000033 L 351.7699999999998 407.43000000000035 L 353.7599999999998 404.75000000000034 L 354.97999999999985 403.73000000000036 L 355.4499999999999 403.50000000000034 L 356.7599999999999 403.4600000000003 L 358.2599999999999 402.68000000000035 L 358.53999999999985 402.28000000000037 L 358.9399999999998 399.8200000000004 L 358.9399999999998 399.8200000000004 L 360.15999999999985 398.6900000000004 L 362.30999999999983 397.5800000000004 L 364.22999999999985 397.2100000000004 L 365.65999999999985 395.5200000000004 L 367.15999999999985 394.91000000000037 L 367.90999999999985 395.05000000000035 L 369.6399999999999 396.60000000000036 L 372.1899999999999 396.68000000000035 L 376.4799999999999 397.6400000000003 L 378.1499999999999 397.2800000000003 L 379.7699999999999 397.50000000000034 L 381.7699999999999 396.91000000000037 L 383.94999999999993 398.3300000000004 L 385.61999999999995 399.1200000000004 L 385.48999999999995 400.0400000000004 L 385.81999999999994 401.46000000000043 L 387.0299999999999 403.5500000000004 L 387.6599999999999 403.5800000000004 L 388.19999999999993 403.2600000000004 L 388.86999999999995 402.3200000000004 L 389.28 401.1900000000004 L 389.53999999999996 401.0000000000004 L 390.09 401.0500000000004 L 390.45 401.4400000000004 L 390.7 402.4000000000004 L 390.71 405.18000000000035 L 391.90999999999997 405.7100000000003 L 392.32 405.26000000000033 L 392.05 402.7200000000003 L 392.54 401.5300000000003 L 392.99 401.0500000000003 L 401.17 400.3800000000003 L 402.18 399.1300000000003 L 403.68 400.59000000000026 L 404.8 401.02000000000027 L 407.58 400.33000000000027 L 408.02 399.34000000000026 L 407.82 398.8800000000003 L 408.13 398.27000000000027 L 410.51 398.16000000000025 L 412.17 398.9400000000002 L 413.02000000000004 398.30000000000024 L 414.33000000000004 398.0100000000002 L 417.59000000000003 401.36000000000024 L 417.79 402.40000000000026 L 417.22 403.41000000000025 L 416.93 405.78000000000026 L 417.51 406.39000000000027 L 419.4 407.60000000000025 L 419.79999999999995 409.15000000000026 L 419.73999999999995 409.71000000000026 L 418.21999999999997 411.74000000000024 L 418.03999999999996 413.68000000000023 L 418.83 414.42000000000024 L 419.14 415.03000000000026 L 419.51 417.24000000000024 L 420.81 419.04000000000025 L 421.64 421.03000000000026 L 421.61 421.8800000000003 L 423.22 421.83000000000027 L 424 421.52000000000027 L 424.28 421.16000000000025 L 425.28 421.11000000000024 L 428.97999999999996 422.43000000000023 L 429.21 422.80000000000024 L 429.15999999999997 424.0700000000002 L 428.46 426.2500000000002 L 426.59999999999997 428.97000000000025 L 426.85999999999996 431.91000000000025 L 426.66999999999996 435.36000000000024 L 426.14 436.92000000000024 L 426.86 438.52000000000027 L 428.64 439.7600000000003 L 430.45 440.59000000000026 L 430.96 442.3100000000003 L 429.75 443.0100000000003 L 431.77 446.3200000000003 L 432.9 446.5700000000003 L 434.90999999999997 446.33000000000027 L 435.09 446.86000000000024 L 438.71 445.86000000000024 L 439.27 446.28000000000026 L 440.58 445.96000000000026 L 441.33 444.98000000000025 L 441.38 444.14000000000027 L 441.14 443.90000000000026 L 441.31 441.60000000000025 L 442.5 441.27000000000027 L 442.59 441.6200000000003 L 442.23999999999995 442.1100000000003 L 442.24999999999994 442.5900000000003 L 444.5899999999999 442.6700000000003 L 446.9799999999999 442.4200000000003 L 448.7699999999999 441.7500000000003 L 449.99999999999994 440.5100000000003 L 451.92999999999995 439.4900000000003 L 454.13999999999993 439.27000000000027 L 455.37999999999994 438.54000000000025 L 455.37999999999994 438.54000000000025 L 456.6499999999999 439.08000000000027 L 457.2099999999999 440.2500000000003 L 458.43999999999994 441.84000000000026 L 460.2099999999999 442.23000000000025 L 463.3599999999999 441.7000000000003 L 465.0599999999999 441.71000000000026 L 465.8099999999999 443.35000000000025 L 464.1599999999999 445.5000000000002 L 462.6599999999999 446.2100000000002 L 459.88999999999993 446.5700000000002 L 459.38999999999993 446.42000000000024 L 457.0399999999999 447.43000000000023 L 455.94999999999993 448.5800000000002 L 454.85999999999996 452.0800000000002 L 454.90999999999997 452.49000000000024 L 456.53999999999996 454.22000000000025 L 457.02 454.48000000000025 L 457.02 454.48000000000025 L 456.96 454.68000000000023 L 455.27 455.10000000000025 L 454.21 454.28000000000026 L 452.72999999999996 455.39000000000027 L 452.29999999999995 456.04000000000025 L 452.56999999999994 456.2600000000003 L 451.80999999999995 456.90000000000026 L 448.5899999999999 458.4500000000003 L 446.3399999999999 459.15000000000026 L 446.05999999999995 459.59000000000026 L 446.09999999999997 460.55000000000024 L 446.59999999999997 462.10000000000025 L 446.28 462.52000000000027 L 444.88 462.78000000000026 L 444.18 462.14000000000027 L 442.84000000000003 461.85000000000025 L 439.72 461.35000000000025 L 438.86 461.5000000000002 L 437.54 461.8400000000002 L 435.81 462.6600000000002 L 435.31 463.1700000000002 L 434.1 465.32000000000016 L 432.79 465.89000000000016 L 432.29 465.77000000000015 L 432.87 465.3000000000001 L 432.39 464.0800000000001 L 431.21999999999997 463.2300000000001 L 430.39 464.4600000000001 L 430.65 465.2100000000001 L 430.34999999999997 465.8200000000001 L 422.72999999999996 470.0600000000001 L 421.78 470.8800000000001 L 421.46999999999997 472.04000000000013 L 418.2 475.04000000000013 L 414.95 476.9900000000001 L 413.03 477.5200000000001 L 408.53 480.7300000000001 L 406.2 482.69000000000005 L 405.53 482.77000000000004 L 405.09 483.39000000000004 L 405.98999999999995 483.82000000000005 L 406.65 483.88000000000005 L 407.58 483.52000000000004 L 407.58 484.28000000000003 L 406.96 485.59000000000003 L 405.64 486.44000000000005 L 404.58 487.92 z M 448.89 464.91 L 447.34999999999997 464.26000000000005 L 446.18999999999994 464.44000000000005 L 445.69999999999993 464.06000000000006 L 445.79999999999995 463.2800000000001 L 446.74999999999994 462.6300000000001 L 447.8399999999999 460.7800000000001 L 448.55999999999995 461.0300000000001 L 449.21999999999997 461.68000000000006 L 449.34999999999997 464.5900000000001 L 448.89 464.91 z"},{code:"TO",name:"Tocantins",gTransform:"matrix(1 0 0 1 95.98 -93.17)",pathTransform:"translate(-401.98, -226.09)",d:"M 433.35 281.82 L 427.99 283.24 L 426.25 284.58 L 423.69 285.68 L 422.14 285.68 L 417.61 286.68 L 415.09 288.76 L 413.31 289.66 L 412.85 289.42 L 411.34 286.8 L 410.79 286.77 L 410.28 290.07 L 409.59 290.15 L 406.24 289.47 L 403.11 288 L 403.67 286.44 L 403.45 285.7 L 398.92 286.23 L 396.16 285.89 L 395.6 286.43 L 395.3 287.43 L 394.55 288.18 L 393.41 288.13 L 392.8 285.03 L 391.69 281.32 L 390.65 279.44 L 389.5 278.13 L 388.32 279.1 L 386.85 281.49 L 385.22 287.43 L 384.59 287.66 L 380.52 286.23 L 377.43 284.52 L 373.5 284.12 L 371.3 283.09 L 368.9 282.69 L 369.42 280.35 L 370.64 278.47 L 370.67 276.76 L 370.11 277.06 L 368.3 279.15 L 367.64 280.38 L 367.44 282.26 L 367.1 282.71 L 367.1 282.71 L 366.3 282.69 L 365.34 282.18 L 364.36 278.84 L 365.1 276.08 L 364.66 273.03 L 364.14 272.45 L 364.13 270.88 L 364.6 267.57 L 363.5 265.32 L 363.55 264.82 L 364.37 263.93 L 364.53 263.06 L 363.14 261.72 L 363.08 260.86 L 364.96 254.87 L 365 251.92 L 365.54 248.95 L 367.48 243.66 L 367.85 243.39 L 368.28 242.54 L 368.72 239.4 L 369.82 238.15 L 370.38 236.26 L 371.03 235.24 L 371.03 235.24 L 372.65 231.55 L 373.78 227.1 L 374.93 225.52 L 376.12 224.42 L 377.33 222.74 L 378.36 220.82 L 379.73 219.9 L 380.78 219.74 L 381.51 218.89 L 382.45 217.35 L 382.63 216.36 L 384.33 213.12 L 385.42 212.32 L 387.18 207.17 L 387.84 203.13 L 387.69 202.83 L 386.95 202.51 L 385.28 200.77 L 384.68 199.82 L 384.52 198.94 L 384.66 198.37 L 386.07 196.68 L 387.36 194.58 L 387.3 191.91 L 386.87 189.73 L 387.06 189.38 L 389.53 187.6 L 392.94 186.46 L 395.44 185.25 L 395.68 184.75 L 395.53 183.24 L 396.39 181.97 L 397.9 180.63 L 399.19 180.48 L 399.38 179.14 L 399.09 177.94 L 399.34 177.48 L 400.8 177.02 L 401.44 176.54 L 402.37 173.79 L 401.35 172.45 L 401.26 171.05 L 401.55 170.77 L 402.52 170.69 L 403.24 170.32 L 403.61 169.66 L 403.64 169.02 L 402.38 167.85 L 401.51 167.71 L 401.12 167.4 L 400.1 165.74 L 398.81 165.62 L 396.94 165.87 L 394.65 165.06 L 394.65 165.06 L 395.18 164.42 L 397.8 162.57 L 399.76 162.04 L 400.63 162.09 L 403.41 163.61 L 404.81 163.69 L 405.76 163.17 L 407.5 163.46 L 408.09 164.15 L 408.17 165.18 L 408.45 165.5 L 409.67 165.53 L 413.07 166.96 L 413.91 167.99 L 414.38 171.49 L 415.02 172.99 L 414.81 176.71 L 415.04 177.79 L 415.71 178.92 L 415.7 179.36 L 413.93 185.51 L 413.62 187.88 L 413.9 188.88 L 413.65 190.47 L 411.9 192.51 L 410.14 193.18 L 409.96 193.89 L 411.9 195.21 L 412.32 194.94 L 413.69 195.18 L 413.94 195.53 L 414.05 196.41 L 413.43 197.6 L 414.28 199.04 L 415.16 198.97 L 418.16 203.13 L 419.07 203.98 L 421.35 207 L 423.49 205.66 L 427.76 204.72 L 429.56 205.94 L 429.64 207.69 L 429 210.94 L 429.39 212.29 L 426 212.64 L 424.66 213.18 L 424.09 213.73 L 423.41 215.16 L 422.68 217.84 L 423.05 219.14 L 420.42 221.69 L 420.16 222.39 L 420.36 222.81 L 422.44 223.1 L 423.38 223.79 L 424.12 225.38 L 424.18 227.04 L 424.8 228.08 L 428.68 230.03 L 428.77 230.56 L 427.13 232.37 L 427.26 234.02 L 429.4 235.64 L 430.39 238.51 L 431.73 240.51 L 432.44 240.69 L 434.22 240.48 L 435.22 240.78 L 436.04 241.22 L 436.65 242.04 L 437.93 242.7 L 437.93 242.7 L 440.87 242.91 L 440.87 242.91 L 440.18 243.56 L 439.96 244.54 L 439.4 245.01 L 435.58 247.03 L 432.37 249.65 L 432.18 250.02 L 433.47 251.82 L 433.11 252.21 L 432.1 252.48 L 431.2 253.09 L 429.68 256.58 L 428.67 257.3 L 428.17 258.46 L 428.4 259.38 L 430.26 261.33 L 433.85 262 L 435.72 262.99 L 435.77 263.75 L 435.21 264.2 L 433.17 265.01 L 432.74 265.97 L 432.83 266.47 L 433.18 266.8 L 434.21 266.62 L 435.13 266.91 L 435.71 267.42 L 436 268.06 L 435.04 268.77 L 433.89 269.19 L 431.94 270.86 L 431.75 271.71 L 431.7 274.63 L 432.05 275.88 L 432.99 276.54 L 434.04 276.78 L 434.45 277.03 L 434.62 277.45 L 434.67 278.51 L 433.31 280.89 z"}];function us({selected:t,onSelect:e}){const n=x9(),[i,o]=P.useState(cs),r=a=>{if(a)try{const c=a.getBBox();if(!c.width||!c.height)return;const l=Math.max(c.width,c.height)*.04,L=`${c.x-l} ${c.y-l} ${c.width+l*2} ${c.height+l*2}`;o(d=>d===L?d:L)}catch{}};return s.jsx("svg",{ref:r,viewBox:i,role:"group","aria-label":n("sectionsEditor.brazilMap.ariaLabel"),className:"h-72 w-full rounded-[var(--studio-surface-radius,var(--radius-md))] border border-border/60 bg-muted/20",children:s.jsx("g",{transform:ds,children:Ke.map(a=>{const c=a.code===t;return s.jsx("g",{transform:a.gTransform,children:s.jsx("path",{d:a.d,transform:a.pathTransform,role:"button",tabIndex:0,"aria-label":a.name,"aria-pressed":c,onClick:()=>e(a.code),onKeyDown:l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),e(a.code))},className:h9("cursor-pointer stroke-background outline-none transition-colors [stroke-width:1] [vector-effect:non-scaling-stroke]","hover:fill-primary/50 focus-visible:fill-primary/50",c?"fill-primary":"fill-muted-foreground/40")})},a.code)})})})}const fs=[{code:"AF",name:"Afghanistan"},{code:"AX",name:"Åland Islands"},{code:"AL",name:"Albania"},{code:"DZ",name:"Algeria"},{code:"AS",name:"American Samoa"},{code:"AD",name:"Andorra"},{code:"AO",name:"Angola"},{code:"AI",name:"Anguilla"},{code:"AQ",name:"Antarctica"},{code:"AG",name:"Antigua & Barbuda"},{code:"AR",name:"Argentina"},{code:"AM",name:"Armenia"},{code:"AW",name:"Aruba"},{code:"AU",name:"Australia"},{code:"AT",name:"Austria"},{code:"AZ",name:"Azerbaijan"},{code:"BS",name:"Bahamas"},{code:"BH",name:"Bahrain"},{code:"BD",name:"Bangladesh"},{code:"BB",name:"Barbados"},{code:"BY",name:"Belarus"},{code:"BE",name:"Belgium"},{code:"BZ",name:"Belize"},{code:"BJ",name:"Benin"},{code:"BM",name:"Bermuda"},{code:"BT",name:"Bhutan"},{code:"BO",name:"Bolivia"},{code:"BA",name:"Bosnia & Herzegovina"},{code:"BW",name:"Botswana"},{code:"BV",name:"Bouvet Island"},{code:"BR",name:"Brazil"},{code:"VG",name:"British Virgin Islands"},{code:"BN",name:"Brunei"},{code:"BG",name:"Bulgaria"},{code:"BF",name:"Burkina Faso"},{code:"BI",name:"Burundi"},{code:"KH",name:"Cambodia"},{code:"CM",name:"Cameroon"},{code:"CA",name:"Canada"},{code:"CV",name:"Cape Verde"},{code:"BQ",name:"Caribbean Netherlands"},{code:"KY",name:"Cayman Islands"},{code:"CF",name:"Central African Republic"},{code:"TD",name:"Chad"},{code:"IO",name:"Chagos Archipelago"},{code:"CL",name:"Chile"},{code:"CN",name:"China mainland"},{code:"CX",name:"Christmas Island"},{code:"CC",name:"Cocos (Keeling) Islands"},{code:"CO",name:"Colombia"},{code:"KM",name:"Comoros"},{code:"CG",name:"Congo - Brazzaville"},{code:"CD",name:"Congo - Kinshasa"},{code:"CK",name:"Cook Islands"},{code:"CR",name:"Costa Rica"},{code:"CI",name:"Côte d’Ivoire"},{code:"HR",name:"Croatia"},{code:"CU",name:"Cuba"},{code:"CW",name:"Curaçao"},{code:"CY",name:"Cyprus"},{code:"CZ",name:"Czechia"},{code:"DK",name:"Denmark"},{code:"DJ",name:"Djibouti"},{code:"DM",name:"Dominica"},{code:"DO",name:"Dominican Republic"},{code:"EC",name:"Ecuador"},{code:"EG",name:"Egypt"},{code:"SV",name:"El Salvador"},{code:"GQ",name:"Equatorial Guinea"},{code:"ER",name:"Eritrea"},{code:"EE",name:"Estonia"},{code:"SZ",name:"Eswatini"},{code:"ET",name:"Ethiopia"},{code:"FK",name:"Falkland Islands"},{code:"FO",name:"Faroe Islands"},{code:"FJ",name:"Fiji"},{code:"FI",name:"Finland"},{code:"FR",name:"France"},{code:"GF",name:"French Guiana"},{code:"PF",name:"French Polynesia"},{code:"TF",name:"French Southern Territories"},{code:"GA",name:"Gabon"},{code:"GM",name:"Gambia"},{code:"GE",name:"Georgia"},{code:"DE",name:"Germany"},{code:"GH",name:"Ghana"},{code:"GI",name:"Gibraltar"},{code:"GR",name:"Greece"},{code:"GL",name:"Greenland"},{code:"GD",name:"Grenada"},{code:"GP",name:"Guadeloupe"},{code:"GU",name:"Guam"},{code:"GT",name:"Guatemala"},{code:"GG",name:"Guernsey"},{code:"GN",name:"Guinea"},{code:"GW",name:"Guinea-Bissau"},{code:"GY",name:"Guyana"},{code:"HT",name:"Haiti"},{code:"HM",name:"Heard & McDonald Islands"},{code:"HN",name:"Honduras"},{code:"HK",name:"Hong Kong"},{code:"HU",name:"Hungary"},{code:"IS",name:"Iceland"},{code:"IN",name:"India"},{code:"ID",name:"Indonesia"},{code:"IR",name:"Iran"},{code:"IQ",name:"Iraq"},{code:"IE",name:"Ireland"},{code:"IM",name:"Isle of Man"},{code:"IL",name:"Israel"},{code:"IT",name:"Italy"},{code:"JM",name:"Jamaica"},{code:"JP",name:"Japan"},{code:"JE",name:"Jersey"},{code:"JO",name:"Jordan"},{code:"KZ",name:"Kazakhstan"},{code:"KE",name:"Kenya"},{code:"KI",name:"Kiribati"},{code:"KW",name:"Kuwait"},{code:"KG",name:"Kyrgyzstan"},{code:"LA",name:"Laos"},{code:"LV",name:"Latvia"},{code:"LB",name:"Lebanon"},{code:"LS",name:"Lesotho"},{code:"LR",name:"Liberia"},{code:"LY",name:"Libya"},{code:"LI",name:"Liechtenstein"},{code:"LT",name:"Lithuania"},{code:"LU",name:"Luxembourg"},{code:"MO",name:"Macao"},{code:"MG",name:"Madagascar"},{code:"MW",name:"Malawi"},{code:"MY",name:"Malaysia"},{code:"MV",name:"Maldives"},{code:"ML",name:"Mali"},{code:"MT",name:"Malta"},{code:"MH",name:"Marshall Islands"},{code:"MQ",name:"Martinique"},{code:"MR",name:"Mauritania"},{code:"MU",name:"Mauritius"},{code:"YT",name:"Mayotte"},{code:"MX",name:"Mexico"},{code:"FM",name:"Micronesia"},{code:"MD",name:"Moldova"},{code:"MC",name:"Monaco"},{code:"MN",name:"Mongolia"},{code:"ME",name:"Montenegro"},{code:"MS",name:"Montserrat"},{code:"MA",name:"Morocco"},{code:"MZ",name:"Mozambique"},{code:"MM",name:"Myanmar (Burma)"},{code:"NA",name:"Namibia"},{code:"NR",name:"Nauru"},{code:"NP",name:"Nepal"},{code:"NL",name:"Netherlands"},{code:"NC",name:"New Caledonia"},{code:"NZ",name:"New Zealand"},{code:"NI",name:"Nicaragua"},{code:"NE",name:"Niger"},{code:"NG",name:"Nigeria"},{code:"NU",name:"Niue"},{code:"NF",name:"Norfolk Island"},{code:"KP",name:"North Korea"},{code:"MK",name:"North Macedonia"},{code:"MP",name:"Northern Mariana Islands"},{code:"NO",name:"Norway"},{code:"OM",name:"Oman"},{code:"PK",name:"Pakistan"},{code:"PW",name:"Palau"},{code:"PS",name:"Palestinian Territories"},{code:"PA",name:"Panama"},{code:"PG",name:"Papua New Guinea"},{code:"PY",name:"Paraguay"},{code:"PE",name:"Peru"},{code:"PH",name:"Philippines"},{code:"PN",name:"Pitcairn Islands"},{code:"PL",name:"Poland"},{code:"PT",name:"Portugal"},{code:"PR",name:"Puerto Rico"},{code:"QA",name:"Qatar"},{code:"RE",name:"Réunion"},{code:"RO",name:"Romania"},{code:"RU",name:"Russia"},{code:"RW",name:"Rwanda"},{code:"WS",name:"Samoa"},{code:"SM",name:"San Marino"},{code:"ST",name:"São Tomé & Príncipe"},{code:"SA",name:"Saudi Arabia"},{code:"SN",name:"Senegal"},{code:"RS",name:"Serbia"},{code:"SC",name:"Seychelles"},{code:"SL",name:"Sierra Leone"},{code:"SG",name:"Singapore"},{code:"SX",name:"Sint Maarten"},{code:"SK",name:"Slovakia"},{code:"SI",name:"Slovenia"},{code:"GS",name:"So. Georgia & So. Sandwich Isl."},{code:"SB",name:"Solomon Islands"},{code:"SO",name:"Somalia"},{code:"ZA",name:"South Africa"},{code:"KR",name:"South Korea"},{code:"SS",name:"South Sudan"},{code:"ES",name:"Spain"},{code:"LK",name:"Sri Lanka"},{code:"BL",name:"St. Barthélemy"},{code:"SH",name:"St. Helena"},{code:"KN",name:"St. Kitts & Nevis"},{code:"LC",name:"St. Lucia"},{code:"MF",name:"St. Martin"},{code:"PM",name:"St. Pierre & Miquelon"},{code:"VC",name:"St. Vincent & Grenadines"},{code:"SD",name:"Sudan"},{code:"SR",name:"Suriname"},{code:"SJ",name:"Svalbard & Jan Mayen"},{code:"SE",name:"Sweden"},{code:"CH",name:"Switzerland"},{code:"SY",name:"Syria"},{code:"TW",name:"Taiwan"},{code:"TJ",name:"Tajikistan"},{code:"TZ",name:"Tanzania"},{code:"TH",name:"Thailand"},{code:"TL",name:"Timor-Leste"},{code:"TG",name:"Togo"},{code:"TK",name:"Tokelau"},{code:"TO",name:"Tonga"},{code:"T1",name:"Tor network (Cloudflare)"},{code:"TT",name:"Trinidad & Tobago"},{code:"TN",name:"Tunisia"},{code:"TR",name:"Türkiye"},{code:"TM",name:"Turkmenistan"},{code:"TC",name:"Turks & Caicos Islands"},{code:"TV",name:"Tuvalu"},{code:"UM",name:"U.S. Outlying Islands"},{code:"VI",name:"U.S. Virgin Islands"},{code:"UG",name:"Uganda"},{code:"UA",name:"Ukraine"},{code:"AE",name:"United Arab Emirates"},{code:"GB",name:"United Kingdom"},{code:"US",name:"United States"},{code:"XX",name:"Unknown (Cloudflare could not determine)"},{code:"UY",name:"Uruguay"},{code:"UZ",name:"Uzbekistan"},{code:"VU",name:"Vanuatu"},{code:"VA",name:"Vatican City"},{code:"VE",name:"Venezuela"},{code:"VN",name:"Vietnam"},{code:"WF",name:"Wallis & Futuna"},{code:"EH",name:"Western Sahara"},{code:"YE",name:"Yemen"},{code:"ZM",name:"Zambia"},{code:"ZW",name:"Zimbabwe"}],ms="BR";function ps(t){if(!t)return!1;const e=Object.keys(t).sort();return e.length===3&&e[0]==="city"&&e[1]==="country"&&e[2]==="regionCode"}function hs(t){const e=t&&typeof t=="object"&&!Array.isArray(t)?t:{};return{city:typeof e.city=="string"?e.city:"",regionCode:typeof e.regionCode=="string"?e.regionCode:"",country:typeof e.country=="string"?e.country:""}}function gs(t,e){const n={...t,...e},i={};for(const o of["city","regionCode","country"])n[o]&&(i[o]=n[o]);return i}function St(t){const e=G.c(37),{id:n,options:i,value:o,placeholder:r,emptyMessage:a,onChange:c}=t,[l,L]=P.useState(!1);let d;if(e[0]!==i||e[1]!==o){let j;e[3]!==o?(j=C=>C.value===o,e[3]=o,e[4]=j):j=e[4],d=i.find(j),e[0]=i,e[1]=o,e[2]=d}else d=e[2];const u=d;let p;e[5]!==r||e[6]!==u?(p=u?s.jsx("span",{className:"truncate",children:u.label}):s.jsx("span",{className:"text-muted-foreground",children:r}),e[5]=r,e[6]=u,e[7]=p):p=e[7];let S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(p1,{className:"size-4 shrink-0 opacity-50"}),e[8]=S):S=e[8];let x;e[9]!==n||e[10]!==l||e[11]!==p?(x=s.jsx(fe,{asChild:!0,children:s.jsxs(C9,{id:n,variant:"outline",size:"lg",role:"combobox","aria-expanded":l,className:"w-full justify-between font-normal",children:[p,S]})}),e[9]=n,e[10]=l,e[11]=p,e[12]=x):x=e[12];let h;e[13]===Symbol.for("react.memo_cache_sentinel")?(h={width:"var(--radix-popover-trigger-width)"},e[13]=h):h=e[13];let m;e[14]!==r?(m=s.jsx(we,{placeholder:r,className:"h-9"}),e[14]=r,e[15]=m):m=e[15];let f;e[16]!==a?(f=s.jsx(Me,{children:a}),e[16]=a,e[17]=f):f=e[17];let y;if(e[18]!==c||e[19]!==i||e[20]!==o){let j;e[22]!==c||e[23]!==o?(j=C=>s.jsxs(s0,{value:`${C.label} ${C.value}`,onSelect:()=>{c(C.value===o?"":C.value),L(!1)},children:[s.jsx("span",{className:"truncate",children:C.label}),s.jsx(de,{className:h9("ml-auto size-4 shrink-0",o===C.value?"opacity-100":"opacity-0")})]},C.value),e[22]=c,e[23]=o,e[24]=j):j=e[24],y=i.map(j),e[18]=c,e[19]=i,e[20]=o,e[21]=y}else y=e[21];let v;e[25]!==y?(v=s.jsx(v0,{children:y}),e[25]=y,e[26]=v):v=e[26];let N;e[27]!==f||e[28]!==v?(N=s.jsxs(Ae,{children:[f,v]}),e[27]=f,e[28]=v,e[29]=N):N=e[29];let b;e[30]!==N||e[31]!==m?(b=s.jsx(me,{className:"p-0",style:h,children:s.jsxs(u1,{children:[m,N]})}),e[30]=N,e[31]=m,e[32]=b):b=e[32];let g;return e[33]!==l||e[34]!==b||e[35]!==x?(g=s.jsxs(pe,{open:l,onOpenChange:L,children:[x,b]}),e[33]=l,e[34]=b,e[35]=x,e[36]=g):g=e[36],g}const xs=fs.map(t=>({value:t.code,label:`${t.name} (${t.code})`})),ys=Ke.map(t=>({value:t.code,label:`${t.name} (${t.code})`}));function Y1(t){const e=G.c(66),{schema:n,value:i,onChange:o,path:r,sandbox:a}=t,c=x9();let l;e[0]!==i?(l=hs(i),e[0]=i,e[1]=l):l=e[1];const L=l,{city:d,regionCode:u,country:p}=L;let S;e[2]!==n.properties?(S=n.properties??{},e[2]=n.properties,e[3]=S):S=e[3];const x=S;let h;e[4]!==x.country?.title||e[5]!==c?(h=x.country?.title??c("sectionsEditor.locationField.countryDefault"),e[4]=x.country?.title,e[5]=c,e[6]=h):h=e[6];const m=h;let f;e[7]!==x.regionCode?.title||e[8]!==c?(f=x.regionCode?.title??c("sectionsEditor.locationField.regionDefault"),e[7]=x.regionCode?.title,e[8]=c,e[9]=f):f=e[9];const y=f;let v;e[10]!==x.city?.title||e[11]!==c?(v=x.city?.title??c("sectionsEditor.locationField.cityDefault"),e[10]=x.city?.title,e[11]=c,e[12]=v):v=e[12];const N=v;let b;e[13]!==L||e[14]!==o?(b=M=>{o(gs(L,M))},e[13]=L,e[14]=o,e[15]=b):b=e[15];const g=b,j=p===ms;let C;if(e[16]!==d||e[17]!==N||e[18]!==p||e[19]!==m||e[20]!==g||e[21]!==j||e[22]!==r||e[23]!==u||e[24]!==y||e[25]!==a?.virtualMcpId||e[26]!==n.description||e[27]!==n.title||e[28]!==c){let M;e[30]!==u?(M=z=>z.code===u,e[30]=u,e[31]=M):M=e[31];const T=Ke.find(M),w=`${r}.country`;let k;e[32]!==n.title||e[33]!==c?(k=n.title??c("sectionsEditor.locationField.locationDefault"),e[32]=n.title,e[33]=c,e[34]=k):k=e[34];const A=a?.virtualMcpId;let E;e[35]!==n.description||e[36]!==k||e[37]!==A||e[38]!==w?(E=s.jsx(T9,{htmlFor:w,label:k,description:n.description,virtualMcpId:A}),e[35]=n.description,e[36]=k,e[37]=A,e[38]=w,e[39]=E):E=e[39];const F=`${r}.country`;let R;e[40]!==m||e[41]!==F?(R=s.jsx(H9,{htmlFor:F,className:"text-xs",children:m}),e[40]=m,e[41]=F,e[42]=R):R=e[42];const O=`${r}.country`;let I;e[43]!==c?(I=c("sectionsEditor.locationField.selectCountryPlaceholder"),e[43]=c,e[44]=I):I=e[44];let D;e[45]!==c?(D=c("sectionsEditor.locationField.noCountryFound"),e[45]=c,e[46]=D):D=e[46];let _;e[47]!==g?(_=z=>g({country:z,regionCode:"",city:""}),e[47]=g,e[48]=_):_=e[48];let H;e[49]!==p||e[50]!==O||e[51]!==I||e[52]!==D||e[53]!==_?(H=s.jsx(St,{id:O,options:xs,value:p,placeholder:I,emptyMessage:D,onChange:_}),e[49]=p,e[50]=O,e[51]=I,e[52]=D,e[53]=_,e[54]=H):H=e[54];let K;e[55]!==R||e[56]!==H?(K=s.jsxs("div",{className:"space-y-1.5",children:[R,H]}),e[55]=R,e[56]=H,e[57]=K):K=e[57];let t9;e[58]!==p||e[59]!==g||e[60]!==j||e[61]!==r||e[62]!==u||e[63]!==y||e[64]!==c?(t9=p&&s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(H9,{htmlFor:`${r}.regionCode`,className:"text-xs",children:y}),j?s.jsxs("div",{className:"space-y-2",children:[s.jsx(us,{selected:u,onSelect:z=>g({regionCode:z===u?"":z,city:""})}),s.jsx(St,{id:`${r}.regionCode`,options:ys,value:u,placeholder:c("sectionsEditor.locationField.selectStatePlaceholder"),emptyMessage:c("sectionsEditor.locationField.noStateFound"),onChange:z=>g({regionCode:z,city:""})})]}):s.jsxs(s.Fragment,{children:[s.jsx(F9,{id:`${r}.regionCode`,type:"text",value:u,placeholder:c("sectionsEditor.locationField.regionCodePlaceholder"),onChange:z=>g({regionCode:z.target.value})}),s.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:c("sectionsEditor.locationField.regionCodeHelperText")})]})]}),e[58]=p,e[59]=g,e[60]=j,e[61]=r,e[62]=u,e[63]=y,e[64]=c,e[65]=t9):t9=e[65],C=s.jsxs("div",{className:"space-y-4",children:[E,K,t9,p&&s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(H9,{htmlFor:`${r}.city`,className:"text-xs",children:N}),s.jsx(F9,{id:`${r}.city`,type:"text",value:d,placeholder:j&&T?c("sectionsEditor.locationField.cityPlaceholderWithState",{state:T.name}):c("sectionsEditor.locationField.cityPlaceholder"),onChange:z=>g({city:z.target.value})}),s.jsx("p",{className:"text-xs leading-normal text-muted-foreground",children:c("sectionsEditor.locationField.cityHelperText")})]})]}),e[16]=d,e[17]=N,e[18]=p,e[19]=m,e[20]=g,e[21]=j,e[22]=r,e[23]=u,e[24]=y,e[25]=a?.virtualMcpId,e[26]=n.description,e[27]=n.title,e[28]=c,e[29]=C}else C=e[29];return C}const $0="loader:";function vs(t){const e=t.schema;if(!e?.properties)return null;const n=new Set(Object.keys(t.discriminators??{}));if(n.size===0)return e;const i={};for(const[o,r]of Object.entries(e.properties))n.has(o)||(i[o]=r);return Object.keys(i).length===0?null:{...e,properties:i}}function Nt(t){const e=G.c(18),n=x9(),{schema:i,value:o,onChange:r,path:a,label:c}=t,l=i.inlineUnionBranches??[],L=N1(o,l.map(js)),[d,u]=P.useState(L),[p,S]=P.useState(L);p!==L&&(S(L),u(L));const x=Math.min(d,l.length-1),h=l[x];let m;e[0]!==i.loaderRef?.anyOfRefs?(m=i.loaderRef?.anyOfRefs??[],e[0]=i.loaderRef?.anyOfRefs,e[1]=m):m=e[1];const f=m,y=A=>{if(A.startsWith($0)){const F=f[Number(A.slice($0.length))];F&&r({__resolveType:F.resolveType});return}const E=Number(A);u(E),r(l[E]?.schema?.type==="array"?[]:{...l[E]?.discriminators??{}})};if(l.length===0)return null;const v=h?vs(h):null,N=I4(o,Object.keys(h?.schema?.properties??{}));let b;e[2]!==c||e[3]!==a||e[4]!==t.sandbox?.virtualMcpId||e[5]!==i.description?(b=c&&s.jsx(T9,{htmlFor:a,label:c,description:i.description,virtualMcpId:t.sandbox?.virtualMcpId}),e[2]=c,e[3]=a,e[4]=t.sandbox?.virtualMcpId,e[5]=i.description,e[6]=b):b=e[6];const g=String(x);let j;e[7]!==n?(j=n("sectionsEditor.inlineUnionField.selectPlaceholder"),e[7]=n,e[8]=j):j=e[8];let C;e[9]!==j?(C=s.jsx(E0,{placeholder:j}),e[9]=j,e[10]=C):C=e[10];let M;e[11]!==a||e[12]!==C?(M=s.jsx(k0,{id:a,className:"w-full min-w-0",children:C}),e[11]=a,e[12]=C,e[13]=M):M=e[13];let T;e[14]!==n?(T=(A,E)=>s.jsx(D9,{value:String(E),children:$4(A.title)||n("sectionsEditor.inlineUnionField.branchFallback",{index:E+1})},`${E}-${A.title??""}`),e[14]=n,e[15]=T):T=e[15];const w=l.map(T);let k;return e[16]!==f?(k=f.map(bs),e[16]=f,e[17]=k):k=e[17],s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"space-y-1.5",children:[b,s.jsxs(C0,{value:g,onValueChange:y,children:[M,s.jsxs(T0,{children:[w,k]})]})]}),h&&(h.schema?.type==="array"?_9({...t,schema:h.schema,value:Array.isArray(o)?o:[],label:""}):ps(h.schema?.properties)?s.jsx(Y1,{...t,schema:h.schema,onChange:A=>r(Qe(N,A,h.discriminators))}):v?s.jsx(V9,{schema:v,value:o,onChange:A=>r(Qe(N,A,h.discriminators)),basePath:a,breadcrumbPath:t.breadcrumbPath,onBreadcrumbChange:t.onBreadcrumbChange,meta:t.meta,decofile:t.decofile,onSaveReferencedBlock:t.onSaveReferencedBlock,sandbox:t.sandbox,previewBaseUrl:t.previewBaseUrl,onAddSectionItem:t.onAddSectionItem,onRequestAddSection:t.onRequestAddSection}):null)]})}function bs(t,e){return s.jsx(D9,{value:`${$0}${e}`,children:b0(t)},`${$0}${t.resolveType}`)}function js(t){return{discriminators:t.discriminators,propertyKeys:Object.keys(t.schema?.properties??{}),isArray:t.schema?.type==="array"}}const Ss={lat:-21.9,lng:-41.42},ie=1e5;let M0=null;function Ns(t){return M0||(M0=new Promise((e,n)=>{if(typeof window>"u"){n(new Error("Google Maps requires a browser environment"));return}const i=window;if(i.google?.maps){e(i.google.maps);return}const o=()=>{const c=window.google?.maps;c?e(c):n(new Error("Google Maps script loaded without google.maps"))},r=document.querySelector("script[data-google-maps-loader]");if(r){r.addEventListener("load",o),r.addEventListener("error",()=>n(new Error("Failed to load Google Maps")));return}const a=document.createElement("script");a.src=`https://maps.googleapis.com/maps/api/js?key=${t}&v=weekly&libraries=maps`,a.async=!0,a.defer=!0,a.dataset.googleMapsLoader="true",a.addEventListener("load",o),a.addEventListener("error",()=>n(new Error("Failed to load Google Maps"))),document.head.appendChild(a)}),M0)}function Cs(t){if(typeof t!="string"||!t)return null;const e=t.split(",").map(Number),[n,i,o]=e;return!Number.isFinite(n)||!Number.isFinite(i)?null:{lat:n,lng:i,radius:Number.isFinite(o)?o:ie}}function ks({schema:t,value:e,onChange:n,path:i,label:o,sandbox:r}){const a=C3().googleMapsApiKey,c=P.useRef(n);c.current=n;const l=P.useRef(Cs(e)),[L,d]=P.useState(null),u=P.useRef(null),p=S=>{if(!S||!a)return;const x={disposed:!1,circle:null,listeners:[]};return Ns(a).then(h=>{if(x.disposed)return;const m=l.current,f=m?{lat:m.lat,lng:m.lng}:Ss,y=m?.radius??ie,v=new h.Map(S,{center:f,zoom:y?Math.round(Math.log2(768e4/y))+1:4,draggable:!0,streetViewControl:!1,mapTypeControl:!1}),N=new h.Circle({strokeColor:"#2E6ED9",strokeOpacity:.8,strokeWeight:2,fillColor:"#2E6ED9",fillOpacity:.35,editable:!0,draggable:!0,map:v,center:f,radius:y});x.circle=N;const b=()=>{const j=N.getCenter(),C=N.getRadius();j&&c.current(`${j.lat()},${j.lng()},${C}`)},g=j=>{j&&x.listeners.push(j)};g(v.addListener("click",j=>{j.latLng&&(N.setCenter({lat:j.latLng.lat(),lng:j.latLng.lng()}),N.getRadius()||N.setRadius(ie),b())})),g(N.addListener("radius_changed",b)),g(N.addListener("dragend",b))},h=>{x.disposed||d(h instanceof Error?h.message:"Failed to load map")}),()=>{x.disposed=!0;for(const h of x.listeners)try{h?.remove()}catch{}if(x.listeners=[],x.circle){try{x.circle.setMap(null)}catch{}x.circle=null}}};return u.current||(u.current=p),s.jsxs("div",{className:"space-y-2",children:[s.jsx(T9,{htmlFor:i,label:o,description:t.description,virtualMcpId:r?.virtualMcpId}),a?L?s.jsx("div",{className:"rounded-[var(--studio-surface-radius,var(--radius-md))] border border-destructive/40 bg-destructive/5 px-3 py-2 text-xs text-destructive",children:L}):s.jsx("div",{ref:u.current,id:i,className:"h-72 w-full rounded-[var(--studio-surface-radius,var(--radius-md))] border border-border/60"}):s.jsxs("div",{className:"rounded-[var(--studio-surface-radius,var(--radius-md))] border border-border/60 bg-muted/30 px-3 py-2 text-xs text-muted-foreground",children:["The map picker is unavailable — set"," ",s.jsx("code",{className:"font-mono",children:"GOOGLE_MAPS_API_KEY"})," on the server to enable it."]})]})}const Es="oklch(0.65 0.15 160)",mr="text-[oklch(0.45_0.15_160)] focus:bg-[oklch(0.65_0.15_160/0.12)] focus:text-[oklch(0.45_0.15_160)] dark:text-[oklch(0.78_0.15_160)] dark:focus:bg-[oklch(0.65_0.15_160/0.15)] dark:focus:text-[oklch(0.78_0.15_160)]";function Ct(t){return t.map(e=>e.label).join(`
`)}function kt(t){return t.map(e=>({id:crypto.randomUUID(),index:e.index,label:e.label}))}function Ts(t,e){const n=new Map;for(const i of t){const o=n.get(i.label);o?o.push(i):n.set(i.label,[i])}return e.map(i=>({id:n.get(i.label)?.shift()?.id??crypto.randomUUID(),index:i.index,label:i.label}))}function ws(t){return t.map((e,n)=>({...e,index:n}))}function Z1(t){const e=G.c(17),{label:n,canDelete:i,dragging:o,onRename:r,onDuplicate:a,onDelete:c}=t,l=x9(),L=w9();let d;e[0]!==L||e[1]!==o?(d=L?s.jsxs("span",{className:"relative size-4 shrink-0",children:[s.jsx(y0,{className:h9("absolute inset-0 size-4 text-muted-foreground transition-opacity",o?"opacity-0":"group-hover:opacity-0 group-has-[:focus-visible]:opacity-0")}),s.jsx(Re,{"aria-hidden":!0,className:h9("absolute inset-0 size-4 transition-opacity",o?"opacity-100":"opacity-0 group-hover:opacity-100 group-has-[:focus-visible]:opacity-100")})]}):s.jsxs(s.Fragment,{children:[s.jsx(c1,{className:h9("h-4 w-4 shrink-0 text-muted-foreground/40 transition-opacity",o?"opacity-100":"opacity-0 group-hover:opacity-100")}),s.jsx(d1,{className:"h-4 w-4 shrink-0",style:{color:Es}})]}),e[0]=L,e[1]=o,e[2]=d):d=e[2];let u;e[3]!==n?(u=s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:n}),e[3]=n,e[4]=u):u=e[4];let p;e[5]!==i||e[6]!==o||e[7]!==n||e[8]!==c||e[9]!==a||e[10]!==r||e[11]!==l?(p=!o&&s.jsxs(Y9,{children:[s.jsx(U0,{label:l("sectionsEditor.sectionVariantList.openActionsFor",{label:n}),classicClassName:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 group-has-[:focus-visible]:opacity-100 data-[state=open]:opacity-100"}),s.jsxs(q9,{align:"end",children:[r&&s.jsxs(A9,{onClick:x=>{x.stopPropagation(),r()},children:[s.jsx(k2,{size:14}),l("sectionsEditor.sectionVariantList.rename")]}),s.jsxs(A9,{onClick:x=>{x.stopPropagation(),a?.()},children:[s.jsx(he,{size:14}),l("sectionsEditor.sectionVariantList.duplicate")]}),s.jsxs(A9,{variant:"destructive",disabled:!i,onClick:x=>{x.stopPropagation(),c?.()},children:[s.jsx(X9,{size:14}),l("sectionsEditor.sectionVariantList.delete")]})]})]}),e[5]=i,e[6]=o,e[7]=n,e[8]=c,e[9]=a,e[10]=r,e[11]=l,e[12]=p):p=e[12];let S;return e[13]!==d||e[14]!==u||e[15]!==p?(S=s.jsxs(s.Fragment,{children:[d,u,p]}),e[13]=d,e[14]=u,e[15]=p,e[16]=S):S=e[16],S}function As(t){const e=G.c(28),{entry:n,selected:i,canDelete:o,onSelect:r,onRename:a,onDuplicate:c,onDelete:l}=t,L=w9();let d;e[0]!==n.id?(d={id:n.id,animateLayoutChanges:Ms},e[0]=n.id,e[1]=d):d=e[1];const{attributes:u,listeners:p,setNodeRef:S,transform:x,isDragging:h}=Ne(d);let m;e[2]!==x?(m=ge.Transform.toString(x?{...x,x:0}:null),e[2]=x,e[3]=m):m=e[3];const f=h?0:void 0;let y;e[4]!==m||e[5]!==f?(y={transform:m,opacity:f},e[4]=m,e[5]=f,e[6]=y):y=e[6];const v=y;let N;e[7]!==r?(N=C=>{C.target===C.currentTarget&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),r())},e[7]=r,e[8]=N):N=e[8];let b;e[9]!==L||e[10]!==h||e[11]!==i?(b=h9(u0({tone:L?"default":"variant",selected:i}),h?"cursor-grabbing":"cursor-grab"),e[9]=L,e[10]=h,e[11]=i,e[12]=b):b=e[12];let g;e[13]!==o||e[14]!==n.label||e[15]!==l||e[16]!==c||e[17]!==a?(g=s.jsx(Z1,{label:n.label,canDelete:o,onRename:a,onDuplicate:c,onDelete:l}),e[13]=o,e[14]=n.label,e[15]=l,e[16]=c,e[17]=a,e[18]=g):g=e[18];let j;return e[19]!==u||e[20]!==p||e[21]!==r||e[22]!==S||e[23]!==v||e[24]!==N||e[25]!==b||e[26]!==g?(j=s.jsx("div",{ref:S,style:v,...u,...p,onClick:r,onKeyDown:N,className:b,children:g}),e[19]=u,e[20]=p,e[21]=r,e[22]=S,e[23]=v,e[24]=N,e[25]=b,e[26]=g,e[27]=j):j=e[27],j}function Ms(){return!1}function Et(t){const e=G.c(77),{listKey:n,variants:i,selectedIndex:o,onSelect:r,onRename:a,onDuplicate:c,onDelete:l,onRemoveAll:L,onReorder:d,onAdd:u}=t,p=x9(),S=w9(),x=i.length>1;let h;e[0]!==i?(h=()=>kt(i),e[0]=i,e[1]=h):h=e[1];const[m,f]=P.useState(h),[y,v]=P.useState(null),[N,b]=P.useState(n),[g,j]=P.useState(i.length);let C;e[2]!==i?(C=()=>Ct(i),e[2]=i,e[3]=C):C=e[3];const[M,T]=P.useState(C),w=P.useRef(!1),k=Ct(i);N!==n?(b(n),j(i.length),T(k),f(kt(i))):(g!==i.length||M!==k)&&(j(i.length),T(k),f(U=>Ts(U,i)));let A;e[4]===Symbol.for("react.memo_cache_sentinel")?(A={activationConstraint:{distance:8}},e[4]=A):A=e[4];let E;e[5]===Symbol.for("react.memo_cache_sentinel")?(E={coordinateGetter:Ce},e[5]=E):E=e[5];const F=xe(o0(ve,A),o0(ye,E));let R;e[6]!==m?(R=m.map(Rs),e[6]=m,e[7]=R):R=e[7];const O=R;let I;e[8]!==m?(I=U=>{const B=String(U.active.id);v(m.find(Q=>Q.id===B)??null)},e[8]=m,e[9]=I):I=e[9];const D=I;let _;e[10]!==O||e[11]!==d?(_=U=>{v(null);const{active:B,over:Q}=U;if(!Q||B.id===Q.id)return;const o9=O.indexOf(String(B.id)),y9=O.indexOf(String(Q.id));o9===-1||y9===-1||(f(g9=>ws(I0([...g9],o9,y9))),w.current=!0,requestAnimationFrame(()=>{w.current=!1}),d(o9,y9))},e[10]=O,e[11]=d,e[12]=_):_=e[12];const H=_;let K;e[13]===Symbol.for("react.memo_cache_sentinel")?(K=()=>{v(null)},e[13]=K):K=e[13];const t9=K;let z,s9,Z,l9,i9,q,e9,$,Y,W,J,r9,n9;if(e[14]!==x||e[15]!==S||e[16]!==m||e[17]!==O||e[18]!==H||e[19]!==D||e[20]!==u||e[21]!==l||e[22]!==c||e[23]!==L||e[24]!==a||e[25]!==r||e[26]!==o||e[27]!==F||e[28]!==p){const U=o9=>{w.current||r(o9)},B=!S&&"border-b";e[42]!==B?(J=h9("space-y-1 p-2",B),e[42]=B,e[43]=J):J=e[43],e[44]!==S||e[45]!==u||e[46]!==L||e[47]!==p?(r9=!S&&s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p("sectionsEditor.sectionVariantList.title")}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsxs(z9,{children:[s.jsx($9,{asChild:!0,children:s.jsx(C9,{type:"button",variant:"ghost",size:"icon-xs","aria-label":p("sectionsEditor.sectionVariantList.addVariantAriaLabel"),onClick:u,children:s.jsx(l0,{size:14})})}),s.jsx(B9,{children:p("sectionsEditor.sectionVariantList.addVariant")})]}),s.jsxs(z9,{children:[s.jsx($9,{asChild:!0,children:s.jsx(C9,{type:"button",variant:"ghost-destructive",size:"icon-xs","aria-label":p("sectionsEditor.sectionVariantList.removeAllVariantsAriaLabel"),onClick:L,children:s.jsx(X9,{size:14})})}),s.jsx(B9,{children:p("sectionsEditor.sectionVariantList.removeAllVariants")})]})]})]}),e[44]=S,e[45]=u,e[46]=L,e[47]=p,e[48]=r9):r9=e[48],s9=be,q=F,e9=je,$=D,Y=H,W=t9,z=ke,l9=O,i9=Ee;const Q=S?"space-y-1":"space-y-0.5";e[49]!==Q?(n9=h9(Q),e[49]=Q,e[50]=n9):n9=e[50],Z=m.map(o9=>s.jsx(As,{entry:o9,selected:o9.index===o,canDelete:x,onSelect:()=>U(o9.index),onRename:a?()=>a(o9.index):void 0,onDuplicate:()=>c(o9.index),onDelete:()=>l(o9.index)},o9.id)),e[14]=x,e[15]=S,e[16]=m,e[17]=O,e[18]=H,e[19]=D,e[20]=u,e[21]=l,e[22]=c,e[23]=L,e[24]=a,e[25]=r,e[26]=o,e[27]=F,e[28]=p,e[29]=z,e[30]=s9,e[31]=Z,e[32]=l9,e[33]=i9,e[34]=q,e[35]=e9,e[36]=$,e[37]=Y,e[38]=W,e[39]=J,e[40]=r9,e[41]=n9}else z=e[29],s9=e[30],Z=e[31],l9=e[32],i9=e[33],q=e[34],e9=e[35],$=e[36],Y=e[37],W=e[38],J=e[39],r9=e[40],n9=e[41];let p9;e[51]!==Z||e[52]!==n9?(p9=s.jsx("div",{className:n9,children:Z}),e[51]=Z,e[52]=n9,e[53]=p9):p9=e[53];let X;e[54]!==z||e[55]!==l9||e[56]!==i9||e[57]!==p9?(X=s.jsx(z,{items:l9,strategy:i9,children:p9}),e[54]=z,e[55]=l9,e[56]=i9,e[57]=p9,e[58]=X):X=e[58];let d9;e[59]!==y||e[60]!==x?(d9=y?s.jsx("div",{className:h9(u0({tone:"variant",selected:!0,className:"cursor-grabbing shadow-lift"})),children:s.jsx(Z1,{label:y.label,canDelete:x,dragging:!0})}):null,e[59]=y,e[60]=x,e[61]=d9):d9=e[61];let m9;e[62]!==d9?(m9=B0.createPortal(s.jsx(Se,{dropAnimation:$e,children:d9}),document.body),e[62]=d9,e[63]=m9):m9=e[63];let a9;e[64]!==s9||e[65]!==q||e[66]!==e9||e[67]!==$||e[68]!==Y||e[69]!==W||e[70]!==X||e[71]!==m9?(a9=s.jsxs(s9,{sensors:q,collisionDetection:e9,onDragStart:$,onDragEnd:Y,onDragCancel:W,children:[X,m9]}),e[64]=s9,e[65]=q,e[66]=e9,e[67]=$,e[68]=Y,e[69]=W,e[70]=X,e[71]=m9,e[72]=a9):a9=e[72];let f9;return e[73]!==J||e[74]!==r9||e[75]!==a9?(f9=s.jsxs("div",{className:J,children:[r9,a9]}),e[73]=J,e[74]=r9,e[75]=a9,e[76]=f9):f9=e[76],f9}function Rs(t){return t.id}function re({currentRt:t,currentLabel:e,currentGlobalKey:n,matchers:i,globals:o,onSelect:r,onSelectGlobal:a,schema:c,formValue:l,onChange:L,formKey:d,formWrapperClassName:u,meta:p,decofile:S,onSaveReferencedBlock:x,sandbox:h,named:m,namedRow:f,rule:y}){const v=x9(),N=f?`${d}\0${f.kind}\0${f.name}`:null,[b,g]=P.useState(null),[j,C]=P.useState(!1);b!==null&&b!==N&&g(null);const M=b!==null&&b===N,T=!m?.load||m.load.ready,w=m?L4(y,m.kinds,S):null,k=!!f?.missing||w!==null,A=m?.load?.request;P.useEffect(()=>{k&&!T&&A?.()},[k,T,A]);const E=T?w:null,F=!!f?.missing&&T,R=m&&f?m.kinds.find(_=>_.kind===f.kind):void 0,O=R?R.entries.map(_=>_.name):[],I=!!m&&!!f&&F&&!f.inlineDate&&!!R&&R.state!=="conflict"&&c4(f.name,O)===null,D=async _=>{if(m){C(!0);try{await m.onPick(_)}finally{C(!1)}g(null)}};return s.jsxs(s.Fragment,{children:[s.jsx(h5,{currentRt:t,currentLabel:e,currentGlobalKey:n,matchers:i,globals:o,onSelect:r,onSelectGlobal:a,named:m}),m&&f&&!n?s.jsx("div",{className:u,children:I&&M?s.jsx("div",{className:"rounded-[var(--studio-control-radius,var(--radius-md))] border border-border/80",children:s.jsx(f1,{kind:f.kind,initialName:f.name,existingNames:O,pending:j,submitLabel:v("sectionsEditor.namedRules.create"),dismiss:"cancel",onBack:()=>g(null),onSubmit:_=>{D(_)}},N??"")}):s.jsx(d4,{kind:f.kind,name:f.name,summary:f.summary,missing:F,conflict:f.conflict,inlineDate:f.inlineDate,...I?{onCreate:()=>g(N)}:{}})}):c&&l&&s.jsx("div",{className:u,children:s.jsx(F5,{schema:c,value:l,onChange:L,meta:p,decofile:S,onSaveReferencedBlock:x,sandbox:h},d)}),E&&s.jsx("p",{className:"text-xs text-foreground","data-testid":"named-rule-missing-within",children:v(E==="experiments"?"sectionsEditor.namedRulePicker.missingTestWithin":"sectionsEditor.namedRulePicker.missingCampaignWithin")})]})}function Fs(t){const e=G.c(13),n=V0(t.sandbox.virtualMcpId,t.sandbox.branch),i=t.currentGlobalKey;if(n.kind!=="legacy"&&i&&Wt(t.decofile?.[i])){let r;e[0]!==t.decofile?(r=t.decofile??{},e[0]=t.decofile,e[1]=r):r=e[1];let a;e[2]!==i?(a=[i],e[2]=i,e[3]=a):a=e[3];let c;e[4]!==t?(c=s.jsx(re,{...t}),e[4]=t,e[5]=c):c=e[5];let l;return e[6]!==t.sandbox||e[7]!==r||e[8]!==a||e[9]!==c?(l=s.jsx(Fe,{listing:r,scope:t.sandbox,names:a,children:c}),e[6]=t.sandbox,e[7]=r,e[8]=a,e[9]=c,e[10]=l):l=e[10],l}let o;return e[11]!==t?(o=s.jsx(re,{...t}),e[11]=t,e[12]=o):o=e[12],o}function Tt(t){const e=G.c(2);let n;return e[0]!==t?(n=t.sandbox?s.jsx(Fs,{...t,sandbox:t.sandbox}):s.jsx(re,{...t}),e[0]=t,e[1]=n):n=e[1],n}function Is(t){const e=G.c(57),{open:n,initialName:i,autoLabel:o,isPending:r,onSubmit:a,onOpenChange:c}=t,l=r===void 0?!1:r,L=x9(),[d,u]=P.useState(i),[p,S]=P.useState(n);n!==p&&(S(n),n&&u(i));let x;e[0]!==l||e[1]!==c?(x=_=>{!_&&!l&&c(!1)},e[0]=l,e[1]=c,e[2]=x):x=e[2];const h=x;let m;e[3]!==l||e[4]!==d||e[5]!==a?(m=async _=>{_.preventDefault(),!l&&await a(d.trim())},e[3]=l,e[4]=d,e[5]=a,e[6]=m):m=e[6];const f=m;let y;e[7]!==L?(y=L("sectionsEditor.variantRenameDialog.title"),e[7]=L,e[8]=y):y=e[8];let v;e[9]!==y?(v=s.jsx(zt,{children:y}),e[9]=y,e[10]=v):v=e[10];let N;e[11]!==o||e[12]!==L?(N=L("sectionsEditor.variantRenameDialog.description",{fallback:o||L("sectionsEditor.variantRenameDialog.defaultFallback")}),e[11]=o,e[12]=L,e[13]=N):N=e[13];let b;e[14]!==N?(b=s.jsx(Vt,{children:N}),e[14]=N,e[15]=b):b=e[15];let g;e[16]!==v||e[17]!==b?(g=s.jsxs(Kt,{children:[v,b]}),e[16]=v,e[17]=b,e[18]=g):g=e[18];let j;e[19]!==L?(j=L("sectionsEditor.variantRenameDialog.nameLabel"),e[19]=L,e[20]=j):j=e[20];let C;e[21]!==j?(C=s.jsx("label",{htmlFor:"variant-rename-name",className:"text-xs font-medium text-muted-foreground",children:j}),e[21]=j,e[22]=C):C=e[22];let M;e[23]===Symbol.for("react.memo_cache_sentinel")?(M=_=>u(_.target.value),e[23]=M):M=e[23];let T;e[24]!==o||e[25]!==l||e[26]!==d?(T=s.jsx(F9,{id:"variant-rename-name",value:d,onChange:M,placeholder:o,autoFocus:!0,disabled:l}),e[24]=o,e[25]=l,e[26]=d,e[27]=T):T=e[27];let w;e[28]!==C||e[29]!==T?(w=s.jsxs("div",{className:"space-y-1.5 py-4",children:[C,T]}),e[28]=C,e[29]=T,e[30]=w):w=e[30];let k;e[31]!==c?(k=()=>c(!1),e[31]=c,e[32]=k):k=e[32];let A;e[33]!==L?(A=L("sectionsEditor.variantRenameDialog.cancel"),e[33]=L,e[34]=A):A=e[34];let E;e[35]!==l||e[36]!==k||e[37]!==A?(E=s.jsx(C9,{type:"button",variant:"outline",onClick:k,disabled:l,children:A}),e[35]=l,e[36]=k,e[37]=A,e[38]=E):E=e[38];let F;e[39]!==l||e[40]!==L?(F=l?s.jsxs(s.Fragment,{children:[s.jsx(oe,{className:"size-3.5"}),L("sectionsEditor.variantRenameDialog.saving")]}):L("sectionsEditor.variantRenameDialog.save"),e[39]=l,e[40]=L,e[41]=F):F=e[41];let R;e[42]!==l||e[43]!==F?(R=s.jsx(C9,{type:"submit",disabled:l,children:F}),e[42]=l,e[43]=F,e[44]=R):R=e[44];let O;e[45]!==E||e[46]!==R?(O=s.jsxs(Ut,{children:[E,R]}),e[45]=E,e[46]=R,e[47]=O):O=e[47];let I;e[48]!==f||e[49]!==w||e[50]!==O||e[51]!==g?(I=s.jsx(Gt,{className:"sm:max-w-md",children:s.jsxs("form",{onSubmit:f,children:[g,w,O]})}),e[48]=f,e[49]=w,e[50]=O,e[51]=g,e[52]=I):I=e[52];let D;return e[53]!==h||e[54]!==n||e[55]!==I?(D=s.jsx(Ht,{open:n,onOpenChange:h,children:I}),e[53]=h,e[54]=n,e[55]=I,e[56]=D):D=e[56],D}function _s(t){if(!t||typeof t!="object")return!1;const e=t;return typeof e.__resolveType=="string"&&Array.isArray(e.variants)}function Os(t,e,n){const i=()=>Ot(e,structuredClone(t));return{__resolveType:e,variants:[{rule:J0(n),value:i()},{rule:J0(n),value:i()}]}}function Ds(t){const e=t.variants;if(e.length===0)return;const i=e.find(o=>k3(o.rule))??e[e.length-1];return E3(i)}function Ps(t,e,n=!1){const i=[...t.variants],o=i[i.length-1],r={rule:J0(e),value:o?structuredClone(o.value):void 0};return i.splice(qt(t.variants,n),0,r),{...t,variants:i}}function $s(t,e){if(t.variants.length<=1)return null;const n=[...t.variants];return n.splice(e,1),{...t,variants:n}}function Bs(t,e,n=!1){const i=[...t.variants],o=i[e];return o?(i.splice(Yt(t.variants,e,n),0,structuredClone(o)),{...t,variants:i}):t}function zs(t,e,n){return e<t?t-1:Math.min(t,n-1)}function Vs(t,e,n){const i=[...t.variants];if(e===n||e<0||n<0||e>=i.length||n>=i.length)return t;const[o]=i.splice(e,1);return o?(i.splice(n,0,o),{...t,variants:i}):t}function Ks(t,e,n){const i=[...t.variants],o=i[e];return o?(i[e]={...o,value:n},{...t,variants:i}):t}function R0(t,e,n){const i=[...t.variants],o=i[e];return o?(i[e]={...o,rule:n},{...t,variants:i}):t}const wt=new WeakMap;function Us(t){let e=wt.get(t);return e||(e=m5(t),wt.set(t,e)),e}const J1=P.createContext(null),pr=J1.Provider;function X1({multivariateResolveType:t,renderInnerField:e,asDestination:n,onVariantMatcherOp:i,...o}){const r=x9(),a=w9(),c=a?y0:s1,{value:l,onChange:L,meta:d,path:u,label:p,focused:S,decofile:x}=o,h=L0(),m=Bt(h),f=P.useContext(J1),y=u===""?f:null,[v,N]=P.useState(()=>y?.index??0),b=B=>{N(B),y?.remember?.(B)},[g,j]=P.useState(null),[C,M]=P.useState(!1),T=m1();if(!_s(l))return s.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)_auto] items-start gap-2",children:[e(o),s.jsxs(z9,{children:[s.jsx($9,{asChild:!0,children:s.jsx(C9,{type:"button",variant:"ghost",size:"icon-xs",className:"shrink-0 text-muted-foreground hover:text-foreground","aria-label":r("sectionsEditor.multivariateFieldWrapper.addVariant"),onClick:()=>{L(Os(l,t,d)),b(0)},children:s.jsx(c,{size:14})})}),s.jsx(B9,{children:r("sectionsEditor.multivariateFieldWrapper.addVariant")})]})]});if(a&&n&&!S)return s.jsx(O1,{icon:s.jsx(y0,{className:"size-4 shrink-0 text-muted-foreground"}),label:r("sectionsEditor.multivariateFieldWrapper.variantsOf",{label:p}),onOpen:()=>o.onBreadcrumbChange?.([...o.breadcrumbPath??[],p])});const w=l,k=w.variants,A=Math.min(v,k.length-1),E=k.map((B,Q)=>({index:Q,label:w0(B.rule,x??{},m,d)||r("sectionsEditor.multivariateFieldWrapper.variantN",{n:String(Q+1)})})),F=k[A],R=F?.rule??{},O=U2(R,x??{},d)??void 0,{resolveType:I,formValue:D}=G2(R,x??{},d),_=F?.value,H=d?Us(d):[],K=d&&x?u5(d,x):[],t9=I&&d?a0(I,d):null,z=()=>{L(Ds(w)),b(0)},s9=()=>{L(Ps(w,d,h)),b(qt(w.variants,h))},Z=B=>{const Q=$s(w,B);Q&&(L(Q),b(zs(A,B,Q.variants.length)))},l9=B=>{L(Bs(w,B,h)),b(Yt(w.variants,B,h))},i9=(B,Q)=>{const o9=Vs(w,B,Q);L(o9),A===B&&b(Q)},q=B=>{const Q=B?q2(B,d):{__resolveType:T3(d)};L(R0(w,A,Q))},e9=B=>{const Q=B;if(O){const y9=x?.[O]??{},g9=typeof y9.name=="string"?y9.name:O;o.onSaveReferencedBlock?.(O,W2(I,Q,g9));return}const o9=I?{...Q,__resolveType:I}:{...Q};L(R0(w,A,o9))},$=o.value,Y=B=>{if(i){i.selectGlobal($,A,B);return}L(R0(w,A,L1(B)))},W=async B=>{if(i?.selectNamedRule){await i.selectNamedRule($,A,B);return}const Q=await T?.prepare(B);Q&&L(R0(w,A,Q))},J=T&&T.kinds.length>0?{kinds:T.kinds,selected:r2(R),campaignPrefill:u4(R),onPick:W,...T.load?{load:T.load}:{}}:void 0,r9=T?f4(R,T.kinds):null,n9=async(B,Q)=>{if(i){M(!0);try{await i.rename($,B,Q)}finally{M(!1),j(null)}}},p9=B=>{L(Ks(w,A,B))},X=`${u}-${w.__resolveType}`,d9=r("sectionsEditor.pageVariantTabs.variantsLabel"),m9=o.breadcrumbPath??[],a9=m9.length>0&&R9(m9[0])===d9,f9=()=>o.onBreadcrumbChange?.([d9,...m9.slice(1)]),U=()=>o.onBreadcrumbChange?.([]);return a&&n&&S?s.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-0",children:[!a9&&s.jsx(W1,{children:s.jsx(_5,{variants:E,activeIndex:A,onSelect:B=>{b(B),U()},onManage:f9,onRemoveAll:z})}),a9?s.jsxs(s.Fragment,{children:[s.jsx(Et,{listKey:X,variants:E,selectedIndex:A,onSelect:B=>{b(B),U()},onDuplicate:l9,onDelete:Z,onRemoveAll:z,onReorder:i9,onAdd:s9}),s.jsx(I5,{children:s.jsx(Tt,{currentRt:I,currentLabel:w0(R,x??{},m,d),currentGlobalKey:O,matchers:H,globals:K,onSelect:q,onSelectGlobal:Y,named:J,namedRow:r9,rule:R,schema:t9,formValue:D,onChange:e9,formKey:`${A}:${O??I}`,formWrapperClassName:"pt-1",meta:d,decofile:x,onSaveReferencedBlock:o.onSaveReferencedBlock,sandbox:o.sandbox})}),s.jsx("div",{className:"px-2 pt-3",children:s.jsx(K1,{onAdd:s9})})]}):e({...o,value:_,onChange:p9})]}):s.jsxs("div",{className:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] gap-0",children:[s.jsx(Et,{listKey:X,variants:E,selectedIndex:A,onSelect:b,onRename:i?j:void 0,onDuplicate:l9,onDelete:Z,onRemoveAll:z,onReorder:i9,onAdd:s9}),s.jsxs("div",{className:"space-y-4 px-2 pt-3",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(H9,{className:"text-xs text-muted-foreground",children:r("sectionsEditor.multivariateFieldWrapper.ruleLabel")}),s.jsx(Tt,{currentRt:I,currentLabel:w0(R,x??{},m,d),currentGlobalKey:O,matchers:H,globals:K,onSelect:q,onSelectGlobal:Y,named:J,namedRow:r9,rule:R,schema:t9,formValue:D,onChange:e9,formKey:`${A}:${O??I}`,formWrapperClassName:"pt-1",meta:d,decofile:x,onSaveReferencedBlock:o.onSaveReferencedBlock,sandbox:o.sandbox})]}),e({...o,value:_,onChange:p9})]}),g!==null&&s.jsx(Is,{open:!0,initialName:H2(k[g]?.rule,x??{},d)?w0(k[g]?.rule,x??{},m,d):"",autoLabel:m(Te(k[g]?.rule,x??{},d)),isPending:C,onSubmit:B=>n9(g,B),onOpenChange:B=>{!B&&!C&&j(null)}})]})}const Gs=w3({value:A3().min(2).refine(Zt)}),Hs=new Set(["localhost","127.0.0.1","[::1]"]);function Ws(t){const e=[v4(t.siteSlug),t.previewServerUrl].filter(n=>!!n).filter(n=>!Hs.has(new URL(n).hostname));return[...new Set(e)]}async function qs(t,e){for(const n of e)for(const i of M3){const o=await fetch(new URL(`/live/invoke/${i}`,n),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({value:t}),cache:"no-store",credentials:"omit"}).catch(()=>null);if(!o?.ok)continue;const r=Gs.safeParse(await o.json().catch(()=>null));if(r.success&&r.data.value!==t)return r.data.value}throw new Error("Secret encryption failed")}function Ys(t,e){return F0(e)||t.format==="secret"||t.format==="password"}function Zs(t){const e=G.c(61),{schema:n,value:i,onChange:o,label:r,path:a,sandbox:c}=t,l=x9(),L=h1(c?.virtualMcpId)?.metadata,d=L?.siteSlug;let u;e[0]!==L||e[1]!==d?(u=Ws({siteSlug:d,previewServerUrl:b4(L)}),e[0]=L,e[1]=d,e[2]=u):u=e[2];const p=u;let S;e[3]!==p?(S=E=>qs(E,p),e[3]=p,e[4]=S):S=e[4];const x=S;let h;e[5]!==r||e[6]!==c?.virtualMcpId||e[7]!==n.description?(h=E=>s.jsx(T9,{htmlFor:E,label:r,description:n.description,virtualMcpId:c?.virtualMcpId}),e[5]=r,e[6]=c?.virtualMcpId,e[7]=n.description,e[8]=h):h=e[8];const m=h;if(!F0(i)&&n.format==="password"){let E;e[9]!==m||e[10]!==a?(E=m(a),e[9]=m,e[10]=a,e[11]=E):E=e[11];let F;e[12]!==o||e[13]!==a||e[14]!==i?(F=s.jsx(Js,{id:a,value:i,onChange:o}),e[12]=o,e[13]=a,e[14]=i,e[15]=F):F=e[15];let R;return e[16]!==E||e[17]!==F?(R=s.jsxs("div",{className:"space-y-2",children:[E,F]}),e[16]=E,e[17]=F,e[18]=R):R=e[18],R}if(!F0(i)){let E;e[19]!==m||e[20]!==a?(E=m(a),e[19]=m,e[20]=a,e[21]=E):E=e[21];let F;e[22]!==i?(F=At(i),e[22]=i,e[23]=F):F=e[23];let R;e[24]!==x||e[25]!==o||e[26]!==a||e[27]!==F?(R=s.jsx(Mt,{id:a,stored:F,encrypt:x,onEncrypted:o}),e[24]=x,e[25]=o,e[26]=a,e[27]=F,e[28]=R):R=e[28];let O;return e[29]!==E||e[30]!==R?(O=s.jsxs("div",{className:"space-y-2",children:[E,R]}),e[29]=E,e[30]=R,e[31]=O):O=e[31],O}let f;if(e[32]!==i){const{value:E,...F}=i;f=F,e[32]=i,e[33]=f}else f=e[33];const y=typeof f.name=="string"?f.name:"",v=`${a}-name`;let N;e[34]!==m||e[35]!==v?(N=m(v),e[34]=m,e[35]=v,e[36]=N):N=e[36];const b=`${a}-name`;let g;e[37]!==l?(g=l("sectionsEditor.secretField.secretNamePlaceholder"),e[37]=l,e[38]=g):g=e[38];let j;e[39]!==f||e[40]!==o?(j=E=>o({...f,name:E.target.value}),e[39]=f,e[40]=o,e[41]=j):j=e[41];let C;e[42]!==y||e[43]!==b||e[44]!==g||e[45]!==j?(C=s.jsx(F9,{id:b,value:y,placeholder:g,onChange:j,className:"h-10"}),e[42]=y,e[43]=b,e[44]=g,e[45]=j,e[46]=C):C=e[46];const M=`${a}-value`;let T;e[47]!==f.encrypted?(T=At(f.encrypted),e[47]=f.encrypted,e[48]=T):T=e[48];let w;e[49]!==f||e[50]!==o?(w=E=>o({__resolveType:R3,...f,encrypted:E}),e[49]=f,e[50]=o,e[51]=w):w=e[51];let k;e[52]!==x||e[53]!==M||e[54]!==T||e[55]!==w?(k=s.jsx(Mt,{id:M,stored:T,encrypt:x,onEncrypted:w}),e[52]=x,e[53]=M,e[54]=T,e[55]=w,e[56]=k):k=e[56];let A;return e[57]!==C||e[58]!==k||e[59]!==N?(A=s.jsxs("div",{className:"space-y-2",children:[N,C,k]}),e[57]=C,e[58]=k,e[59]=N,e[60]=A):A=e[60],A}function At(t){return t==null||t===""?"none":Zt(t)?"encrypted":"plaintext"}function Mt({id:t,stored:e,encrypt:n,onEncrypted:i}){const o=x9(),[r,a]=P.useState(""),[c,l]=P.useState("idle"),L=P.useRef(!1),d=async()=>{if(!(!r||L.current)){L.current=!0,l("encrypting");try{const u=await n(r);a(""),l("idle"),i(u)}catch{l("failed")}finally{L.current=!1}}};return s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx(F9,{id:t,type:"password",value:r,disabled:c==="encrypting",autoComplete:"new-password",autoCorrect:"off",spellCheck:!1,placeholder:o(e==="encrypted"?"sectionsEditor.secretField.leaveBlankPlaceholder":"sectionsEditor.secretField.secretValuePlaceholder"),onChange:u=>{a(u.target.value),c==="failed"&&l("idle")},onKeyDown:u=>{u.key==="Enter"&&(u.preventDefault(),d())},onBlur:()=>{d()},className:"h-10"}),s.jsx(C9,{type:"button",variant:"outline",size:"lg",disabled:!r||c==="encrypting",onClick:()=>{d()},children:o("sectionsEditor.secretField.encryptButton")})]}),c==="failed"?s.jsx("p",{role:"alert",className:"text-xs text-destructive",children:o("sectionsEditor.secretField.encryptFailedMessage")}):c==="encrypting"?s.jsx("p",{className:"text-xs text-muted-foreground",children:o("sectionsEditor.secretField.encryptingMessage")}):r?s.jsx("p",{className:"text-xs text-muted-foreground",children:o("sectionsEditor.secretField.pendingMessage")}):e==="plaintext"?s.jsx("p",{role:"alert",className:"text-xs text-destructive",children:o("sectionsEditor.secretField.plaintextStoredMessage")}):e==="encrypted"?s.jsx("p",{className:"text-xs text-muted-foreground",children:o("sectionsEditor.secretField.storedSecretMessage")}):null]})}function Js(t){const e=G.c(11),{id:n,value:i,onChange:o}=t,r=x9(),[a]=P.useState(i),[c,l]=P.useState(""),L=typeof a=="string"&&a.length>0;let d;e[0]!==L||e[1]!==r?(d=r(L?"sectionsEditor.secretField.leaveBlankPlaceholder":"sectionsEditor.secretField.secretValuePlaceholder"),e[0]=L,e[1]=r,e[2]=d):d=e[2];let u;e[3]!==o||e[4]!==a?(u=S=>{l(S.target.value),o(S.target.value||a)},e[3]=o,e[4]=a,e[5]=u):u=e[5];let p;return e[6]!==c||e[7]!==n||e[8]!==d||e[9]!==u?(p=s.jsx(F9,{id:n,type:"password",value:c,autoComplete:"new-password",autoCorrect:"off",spellCheck:!1,placeholder:d,onChange:u,className:"h-10"}),e[6]=c,e[7]=n,e[8]=d,e[9]=u,e[10]=p):p=e[10],p}function Rt(t){const e=G.c(7),n=V0(t.sandbox?.virtualMcpId,t.sandbox?.branch);if(n.kind==="legacy"||t.schema.format==="password"){let o;return e[0]!==t?(o=s.jsx(Zs,{...t}),e[0]=t,e[1]=o):o=e[1],o}if(n.kind!=="protocol"){const o=n.kind==="unavailable"?"sectionsEditor.secretField.backendUnavailableMessage":null;let r;return e[2]!==t||e[3]!==o?(r=s.jsx(Ft,{...t,message:o}),e[2]=t,e[3]=o,e[4]=r):r=e[4],r}let i;return e[5]!==t?(i=s.jsx(Ft,{...t,message:"sectionsEditor.secretField.platformSecretMessage"}),e[5]=t,e[6]=i):i=e[6],i}function Ft(t){const e=G.c(11),{schema:n,label:i,path:o,sandbox:r,message:a}=t,c=x9(),l=r?.virtualMcpId;let L;e[0]!==i||e[1]!==o||e[2]!==n.description||e[3]!==l?(L=s.jsx(T9,{htmlFor:o,label:i,description:n.description,virtualMcpId:l}),e[0]=i,e[1]=o,e[2]=n.description,e[3]=l,e[4]=L):L=e[4];let d;e[5]!==a||e[6]!==c?(d=a&&s.jsx("p",{className:"text-xs text-muted-foreground",children:c(a)}),e[5]=a,e[6]=c,e[7]=d):d=e[7];let u;return e[8]!==L||e[9]!==d?(u=s.jsxs("div",{className:"space-y-2",children:[L,d]}),e[8]=L,e[9]=d,e[10]=u):u=e[10],u}function Xs(t,e){const n=t.anyOfRefs;if(!n?.length)return;const i=e.find(L=>L!=null&&typeof L=="object"&&!Array.isArray(L)),o=i?Object.keys(i).filter(L=>!L.startsWith("__")):[],r=[],a=L=>{L?.type==="object"&&L.properties&&r.push(L)};for(const L of n){const d=L.schema;if(d&&(d.type==="array"&&a(d.items),d.properties))for(const u of Object.values(d.properties))u?.type==="array"&&a(u.items)}if(r.length===0)return;if(o.length===0)return r.length===1?r[0]:void 0;let c,l=-1;for(const L of r){const d=L.properties??{},u=o.filter(p=>p in d).length*2+(L.titleBy?1:0);u>l&&(l=u,c=L)}return l>=2?c:void 0}function Qs(t){const e=t.length>0?t[0]:void 0;if(e==null||typeof e!="object"||Array.isArray(e))return;const n={};for(const[i,o]of Object.entries(e))i.startsWith("__")||(typeof o=="string"?n[i]={type:"string"}:typeof o=="number"?n[i]={type:"number"}:typeof o=="boolean"&&(n[i]={type:"boolean"}));return Object.keys(n).length>0?{type:"object",properties:n}:void 0}const ei=[],ti=new Set(["__resolveType","@type"]);function ni(t){if(t.type!=="block-ref"||!t.anyOfRefs?.length||t.anyOfRefs.length!==1)return!1;const e=t.anyOfRefs[0].schema;return!!(e?.properties?.variants||!e&&t.plainSchema)}function si(t){return X2(t)?.items}function It(t){if(t.type==="array"&&t.items)return t;const e=t.items??si(t);return e?{...t,type:"array",items:e}:null}function ii(t){switch(t){case"string":return"";case"number":case"integer":return 0;case"boolean":return!1;case"array":return[];case"object":return{};default:return null}}function Q1(t){const{value:e,meta:n}=t;if(e===null||typeof e!="object"||Array.isArray(e))return null;const i=e.__resolveType;if(typeof i!="string"||!n)return null;const o=a0(i,n);return o?s.jsx(V9,{schema:o,value:e,onChange:t.onChange,basePath:t.path,breadcrumbPath:t.breadcrumbPath,onBreadcrumbChange:t.onBreadcrumbChange,meta:n,decofile:t.decofile,onSaveReferencedBlock:t.onSaveReferencedBlock,previewBaseUrl:t.previewBaseUrl,onAddSectionItem:t.onAddSectionItem,onRequestAddSection:t.onRequestAddSection,sandbox:t.sandbox},t.path):null}function _9(t){return H5(t.schema)?s.jsx(W5,{...t,fallback:_t},t.path):_t(t)}function _t(t){const e={...t,schema:M1(t.schema,t.meta)},{schema:n,value:i}=e;if(F3(n)){const l=n.properties.value;return _9({...e,schema:{...l,title:n.title??l.title,description:n.description??l.description},value:_3(i),onChange:L=>e.onChange(I3(L))})}const o=r0(e.meta);if(Ye(i,o)){const l=Z2(i,o),L=It(n);if(l!==null&&L)return s.jsx(A0,{...e,schema:L,value:l,onChange:d=>e.onChange(J2(i,d,e.meta,o))},e.path)}if(Array.isArray(i)&&n.type==="block-ref"&&l1(n)){const l=It(n);if(l)return s.jsx(A0,{...e,schema:l,value:i,onChange:e.onChange},e.path)}if(Array.isArray(i)&&!Ye(i,o)&&n.type==="block-ref"){const l=Xs(n,i)??Qs(i);if(l){const L={...n,type:"array",items:l};return s.jsx(A0,{...e,schema:L,value:i,onChange:e.onChange},e.path)}}if(n.loaderRef&&i!==null&&typeof i=="object"&&!Array.isArray(i)&&typeof i.__resolveType=="string")return _9({...e,schema:n.loaderRef});if(n.type==="block-ref"||i!==null&&typeof i=="object"&&!Array.isArray(i)&&typeof i.__resolveType=="string"&&n.anyOfRefs){if(ni(n)){const L=n.anyOfRefs[0],d=L.schema?.properties?.variants?.items?.properties?.value,u=d&&d.type!=="block-ref"?tn(d,n.plainSchema):n.plainSchema??d?.plainSchema??{type:"string"},p={...u,description:u.description??n.description},S=x=>_9({...x,schema:p});return s.jsx(X1,{...e,asDestination:!0,multivariateResolveType:L.resolveType,renderInnerField:S},e.path)}const l=R4(n,i);return l?s.jsx(Nt,{...e,schema:l},e.path):n.anyOfRefs?s.jsx(yt,{...e,schema:F4(n)},e.path):null}if(n.type==="inline-union")return s.jsx(Nt,{...e},e.path);if(n.format==="image-uri")return s.jsx(X3,{...e},e.path);if(n.format==="file-uri"||n.format==="video-uri")return s.jsx(ls,{...e},e.path);if(n.format==="map")return s.jsx(ks,{...e},e.path);if(n.format==="icon-select"||n.format==="dynamic-options"&&n.options)return s.jsx(os,{...e},e.path);if(n.format==="location")return s.jsx(Y1,{...e},e.path);if(n.enum&&n.enum.length>0)return s.jsx(Dn,{...e},e.path);if(n.type==="anyOf")return s.jsx(yt,{...e},e.path);if(Ys(n,i))return s.jsx(Rt,{...e},e.path);if(!n.format&&!n.enum){const l=Q1(e);if(l)return l}const r=i==null||n.type==="object"&&(typeof i!="object"||Array.isArray(i))?ii(n.type):i;if(r==null)return null;if(F0(r))return s.jsx(Rt,{...e,value:r},e.path);const a={...e,value:r},c=n.type==="boolean"||n.type==="number"||n.type==="integer"?n.type:i==null?n.type??typeof r:Array.isArray(r)?"array":typeof r;if(c==="array"||Array.isArray(r))return s.jsx(A0,{...a},e.path);switch(c){case"boolean":return s.jsx(Rn,{...a},e.path);case"number":case"integer":return s.jsx(Mn,{...a},e.path);case"string":return s.jsx(at,{...a},e.path);case"object":return r!==null&&typeof r=="object"&&!Array.isArray(r)?s.jsx(c5,{...a},e.path):null;default:return s.jsx(at,{...a},e.path)}}function ri(t,e){if(e&&(e.type==="block-ref"||e.anyOfRefs||e.properties))return _9({...t,schema:e});const n=Q1(t);return n||_9(e?{...t,schema:e}:t)}function V9(t){const e=G.c(4);if(a5()){let o;return e[0]!==t?(o=s.jsx(e3,{...t}),e[0]=t,e[1]=o):o=e[1],o}let i;return e[2]!==t?(i=s.jsx(ai,{...t}),e[2]=t,e[3]=i):i=e[3],i}function oi(t,e,n,i,o){const r=G.c(10),a=o===void 0?!0:o;let c;r[0]!==i||r[1]!==t||r[2]!==e?(c=sn(t,e,i),r[0]=i,r[1]=t,r[2]=e,r[3]=c):c=r[3];const l=c;let L,d;return r[4]!==n||r[5]!==a||r[6]!==l||r[7]!==e?(L=()=>{a&&l!==e&&n(l)},d=[a,l,e,n],r[4]=n,r[5]=a,r[6]=l,r[7]=e,r[8]=L,r[9]=d):(L=r[8],d=r[9]),P.useEffect(L,d),l}function ai(t){const e=G.c(3),{schema:n,value:i,onChange:o,meta:r,persistDefaults:a}=t,c=oi(n,i,o,r,a);let l;return e[0]!==t||e[1]!==c?(l=s.jsx(r5,{children:s.jsx(e3,{...t,value:c})}),e[0]=t,e[1]=c,e[2]=l):l=e[2],l}function e3({schema:t,value:e,onChange:n,basePath:i,breadcrumbPath:o=ei,onBreadcrumbChange:r,meta:a,decofile:c,onSaveReferencedBlock:l,previewBaseUrl:L,onAddSectionItem:d,onRequestAddSection:u,sandbox:p,onVariantMatcherOp:S}){const x=x9(),h=w9()?"new":"classic",m=t.properties;if(!m)return t.type==="inline-union"?_9({schema:t,value:e,onChange:n,path:i,label:t.title??"",breadcrumbPath:o,onBreadcrumbChange:r,meta:a,decofile:c,onSaveReferencedBlock:l,previewBaseUrl:L,onAddSectionItem:d,onRequestAddSection:u,sandbox:p}):null;if(Y2(e,r0(a))&&m.variants){const E=m.variants.items?.properties?.value;return s.jsx(X1,{schema:t,value:e,onChange:n,path:i,label:t.title??"",breadcrumbPath:o,onBreadcrumbChange:r,meta:a,decofile:c,onSaveReferencedBlock:l,previewBaseUrl:L,onAddSectionItem:d,onRequestAddSection:u,sandbox:p,onVariantMatcherOp:S,multivariateResolveType:e.__resolveType,renderInnerField:F=>ri(F,E)},i)}const f=e!=null&&typeof e=="object"&&!Array.isArray(e)?e:{},y=Object.keys(m).filter(E=>!ti.has(E)&&m[E]?.hidden!==!0),v=new Set(t.required??[]);if(y.length===0)return s.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:x("sectionsEditor.sectionsEditor.noEditableFields")});const N=(E,F)=>{if(F===void 0){const{[E]:R,...O}=f;n(O);return}n({...f,[E]:F})},b=typeof f.__resolveType=="string"?f.__resolveType:void 0,g=y.filter(E=>{const F=m[E];return F!=null&&i0(F,f[E])}).length>1,j=Y4(y,m,f),C=o.length>0?J4(y,m,f,o,c,a):null,M=C?m[C]:null,T=C&&M?[C]:y,w=C&&M?q4(C,M,o,S0(C,y,m)):o,k=W4(o,w),A=k.length>0&&r?E=>r([...k,...E]):r;return s.jsx("div",{className:"min-w-0 space-y-6","data-blocks-editor":h,children:T.map(E=>{const F=m[E];if(!F)return null;const R=i?`${i}.${E}`:E,O=S0(E,y,m),I=J9(E,F),H=(k.length===0&&y.some(z=>{const s9=m[z];return z!==E&&s9!=null&&J9(z,s9)===I})||k.length===0&&j.has(E))&&A?F.type==="block-ref"?z=>A(G4(E,z)):z=>A(U4(O,z)):A,K=v.has(E),t9=_9({schema:F,value:f[E],onChange:z=>N(E,z),path:R,label:O,required:K,breadcrumbPath:w,onBreadcrumbChange:H,hasSiblingDrillDownFields:g,focused:C===E,meta:a,decofile:c,onSaveReferencedBlock:l,containerResolveType:b,previewBaseUrl:L,onAddSectionItem:d,onRequestAddSection:u,sandbox:p});return t9===null?null:s.jsx(n1,{required:K,invalid:K&&Xt(f[E]),children:t9},R)})})}function hr(t){const e=G.c(43),{orgSlug:n,virtualMcpId:i,branch:o,blockKey:r,present:a,showDeleted:c,children:l,listing:L}=t,d=c===void 0?!0:c,u=x9(),p=V0(i,o),S=p.kind==="protocol"&&p.source==="github";let x;e[0]!==o||e[1]!==n||e[2]!==i?(x=j4({orgSlug:n,virtualMcpId:i,branch:o}),e[0]=o,e[1]=n,e[2]=i,e[3]=x):x=e[3];const h=S4(x);let m;e[4]!==o||e[5]!==n||e[6]!==i?(m={orgSlug:n,virtualMcpId:i,branch:o},e[4]=o,e[5]=n,e[6]=i,e[7]=m):m=e[7];const f=U3(m);let y;e[8]!==r||e[9]!==h||e[10]!==S?(y=S?h(r):0,e[8]=r,e[9]=h,e[10]=S,e[11]=y):y=e[11];const v=y;let N;e[12]!==r||e[13]!==v?(N={blockKey:r,epoch:v,remounts:0},e[12]=r,e[13]=v,e[14]=N):N=e[14];const[b,g]=P.useState(N),j=b.blockKey===r&&b.epoch!==v,C=b.remounts+(j?1:0);if((b.blockKey!==r||b.epoch!==v)&&g({blockKey:r,epoch:v,remounts:C}),S&&d&&a===!1){let A;e[15]!==u?(A=u("sectionsEditor.reconcile.deletedTitle"),e[15]=u,e[16]=A):A=e[16];let E;e[17]!==r||e[18]!==f?(E=f(r)?"sectionsEditor.reconcile.deletedNeverPublishedDescription":"sectionsEditor.reconcile.deletedDescription",e[17]=r,e[18]=f,e[19]=E):E=e[19];let F;e[20]!==u||e[21]!==E?(F=u(E),e[20]=u,e[21]=E,e[22]=F):F=e[22];let R;return e[23]!==A||e[24]!==F?(R=s.jsx(P2,{icon:X9,title:A,description:F}),e[23]=A,e[24]=F,e[25]=R):R=e[25],R}if(p.kind==="legacy"){let A;return e[26]!==l||e[27]!==C?(A=s.jsx(P.Fragment,{children:l},C),e[26]=l,e[27]=C,e[28]=A):A=e[28],A}let M;e[29]!==o||e[30]!==n||e[31]!==i?(M={orgSlug:n,virtualMcpId:i,branch:o},e[29]=o,e[30]=n,e[31]=i,e[32]=M):M=e[32];let T;e[33]!==r?(T=[r],e[33]=r,e[34]=T):T=e[34];let w;e[35]!==l||e[36]!==C?(w=s.jsx(P.Fragment,{children:l},C),e[35]=l,e[36]=C,e[37]=w):w=e[37];let k;return e[38]!==L||e[39]!==M||e[40]!==T||e[41]!==w?(k=s.jsx(Fe,{listing:L,scope:M,names:T,children:w}),e[38]=L,e[39]=M,e[40]=T,e[41]=w,e[42]=k):k=e[42],k}export{dr as A,ur as B,Fe as C,_5 as D,Bn as E,fr as F,Re as G,hr as H,N5 as I,lr as J,pr as K,or as L,xt as M,Mn as N,r5 as O,cr as P,Is as Q,fn as R,V9 as S,nr as T,sr as U,mr as V,Qi as W,A5 as X,a0 as a,er as b,R9 as c,_4 as d,ln as e,at as f,k1 as g,$e as h,ir as i,U0 as j,tr as k,u0 as l,m5 as m,u5 as n,pt as o,Lr as p,ar as q,_0 as r,mt as s,hn as t,Xi as u,g5 as v,rr as w,I5 as x,Tt as y,Et as z};