vendor: 7,535 bytes, lines 1-2
1import{j as c,s as et}from"./index-BKYl9XI7.js";import{f as Mn,r as pe,L as Me}from"./vendor-react-BjSty5Uo.js";import{C as Pn,t as zt,a as vn}from"./news-jOL2U-g6.js";import{f as kn}from"./format-BMulUEhk.js";import{L as Un,t as tt,a1 as Fn,g as zn,q as jt}from"./vendor-ui-Ci1VS1Mm.js";import"./vendor-supabase-BPVmyxZX.js";/*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */function Ht(o,n){(n==null||n>o.length)&&(n=o.length);for(var s=0,l=Array(n);s<n;s++)l[s]=o[s];return l}function jn(o){if(Array.isArray(o))return o}function Hn(o,n){var s=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(s!=null){var l,f,d,A,Q=[],I=!0,J=!1;try{if(d=(s=s.call(o)).next,n!==0)for(;!(I=(l=d.call(s)).done)&&(Q.push(l.value),Q.length!==n);I=!0);}catch(N){J=!0,f=N}finally{try{if(!I&&s.return!=null&&(A=s.return(),Object(A)!==A))return}finally{if(J)throw f}}return Q}}function Gn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bn(o,n){return jn(o)||Hn(o,n)||Wn(o,n)||Gn()}function Wn(o,n){if(o){if(typeof o=="string")return Ht(o,n);var s={}.toString.call(o).slice(8,-1);return s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set"?Array.from(o):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Ht(o,n):void 0}}const tn=Object.entries,Gt=Object.setPrototypeOf,Yn=Object.isFrozen,qn=Object.getPrototypeOf,$n=Object.getOwnPropertyDescriptor;let R=Object.freeze,w=Object.seal,de=Object.create,nn=typeof Reflect<"u"&&Reflect,at=nn.apply,lt=nn.construct;R||(R=function(n){return n});w||(w=function(n){return n});at||(at=function(n,s){for(var l=arguments.length,f=new Array(l>2?l-2:0),d=2;d<l;d++)f[d-2]=arguments[d];return n.apply(s,f)});lt||(lt=function(n){for(var s=arguments.length,l=new Array(s>1?s-1:0),f=1;f<s;f++)l[f-1]=arguments[f];return new n(...l)});const be=y(Array.prototype.forEach),Xn=y(Array.prototype.lastIndexOf),Bt=y(Array.prototype.pop),me=y(Array.prototype.push),Vn=y(Array.prototype.splice),Z=Array.isArray,Se=y(String.prototype.toLowerCase),nt=y(String.prototype.toString),Wt=y(String.prototype.match),ye=y(String.prototype.replace),Yt=y(String.prototype.indexOf),Kn=y(String.prototype.trim),Zn=y(Number.prototype.toString),Qn=y(Boolean.prototype.toString),qt=typeof BigInt>"u"?null:y(BigInt.prototype.toString),$t=typeof Symbol>"u"?null:y(Symbol.prototype.toString),x=y(Object.prototype.hasOwnProperty),Ae=y(Object.prototype.toString),O=y(RegExp.prototype.test),re=Jn(TypeError);function y(o){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var s=arguments.length,l=new Array(s>1?s-1:0),f=1;f<s;f++)l[f-1]=arguments[f];return at(o,n,l)}}function Jn(o){return function(){for(var n=arguments.length,s=new Array(n),l=0;l<n;l++)s[l]=arguments[l];return lt(o,s)}}function p(o,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se;if(Gt&&Gt(o,null),!Z(n))return o;let l=n.length;for(;l--;){let f=n[l];if(typeof f=="string"){const d=s(f);d!==f&&(Yn(n)||(n[l]=d),f=d)}o[f]=!0}return o}function eo(o){for(let n=0;n<o.length;n++)x(o,n)||(o[n]=null);return o}function C(o){const n=de(null);for(const l of tn(o)){var s=Bn(l,2);const f=s[0],d=s[1];x(o,f)&&(Z(d)?n[f]=eo(d):d&&typeof d=="object"&&d.constructor===Object?n[f]=C(d):n[f]=d)}return n}function to(o){switch(typeof o){case"string":return o;case"number":return Zn(o);case"boolean":return Qn(o);case"bigint":return qt?qt(o):"0";case"symbol":return $t?$t(o):"Symbol()";case"undefined":return Ae(o);case"function":case"object":{if(o===null)return Ae(o);const n=o,s=B(n,"toString");if(typeof s=="function"){const l=s(n);return typeof l=="string"?l:Ae(l)}return Ae(o)}default:return Ae(o)}}function B(o,n){for(;o!==null;){const l=$n(o,n);if(l){if(l.get)return y(l.get);if(typeof l.value=="function")return y(l.value)}o=qn(o)}function s(){return null}return s}function no(o){try{return O(o,""),!0}catch{return!1}}const Xt=R(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ot=R(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),rt=R(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),oo=R(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),it=R(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ro=R(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Vt=R(["#text"]),Kt=R(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),st=R(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zt=R(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Pe=R(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),io=w(/{{[\w\W]*|^[\w\W]*}}/g),so=w(/<%[\w\W]*|^[\w\W]*%>/g),ao=w(/\${[\w\W]*/g),lo=w(/^data-[\-\w.\u00B7-\uFFFF]+$/),co=w(/^aria-[\-\w]+$/),Qt=w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),uo=w(/^(?:\w+script|data):/i),fo=w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),po=w(/^html$/i),mo=w(/^[a-z][.\w]*(-[.\w]+)+$/i),Jt=w(/<[/\w!]/g),ho=w(/<[/\w]/g),go=w(/<\/no(script|embed|frames)/i),To=w(/\/>/i),G={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},_o=function(){return typeof window>"u"?null:window},Eo=function(n,s){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let l=null;const f="data-tt-policy-suffix";s&&s.hasAttribute(f)&&(l=s.getAttribute(f));const d="dompurify"+(l?"#"+l:"");try{return n.createPolicy(d,{createHTML(A){return A},createScriptURL(A){return A}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},en=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},K=function(n,s,l,f){return x(n,s)&&Z(n[s])?p(f.base?C(f.base):{},n[s],f.transform):l};function on(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_o();const n=i=>on(i);if(n.version="3.4.11",n.removed=[],!o||!o.document||o.document.nodeType!==G.document||!o.Element)return n.isSupported=!1,n;let s=o.document;const l=s,f=l.currentScript;o.DocumentFragment;const d=o.HTMLTemplateElement,A=o.Node,Q=o.Element,I=o.NodeFilter,J=o.NamedNodeMap;J===void 0&&(o.NamedNodeMap||o.MozNamedAttrMap),o.HTMLFormElement;const N=o.DOMParser,P=o.trustedTypes,v=Q.prototype,ct=B(v,"cloneNode"),xe=B(v,"remove"),ee=B(v,"nextSibling"),U=B(v,"childNodes"),W=B(v,"parentNode"),F=B(v,"shadowRoot"),ie=B(v,"attributes"),D=A&&A.prototype?B(A.prototype,"nodeType"):null,q=A&&A.prototype?B(A.prototype,"nodeName"):null;if(typeof d=="function"){const i=s.createElement("template");i.content&&i.content.ownerDocument&&(s=i.content.ownerDocument)}let M,te="",ve,ut=!1,he=0;
vendor: 4,474 bytes, line 2
2const ft=function(){if(he>0)throw re('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},se=function(e){ft(),he++;try{return M.createHTML(e)}finally{he--}},rn=function(e){ft(),he++;try{return M.createScriptURL(e)}finally{he--}},sn=function(){return ut||(ve=Eo(P,f),ut=!0),ve},Ne=s,ke=Ne.implementation,pt=Ne.createNodeIterator,an=Ne.createDocumentFragment,ln=Ne.getElementsByTagName,cn=l.importNode;let E=en();n.isSupported=typeof tn=="function"&&typeof W=="function"&&ke&&ke.createHTMLDocument!==void 0;const un=io,fn=so,pn=ao,mn=lo,dn=co,hn=uo,mt=fo,gn=mo;let dt=Qt,h=null;const ht=p({},[...Xt,...ot,...rt,...it,...Vt]);let g=null;const gt=p({},[...Kt,...st,...Zt,...Pe]);let T=Object.seal(de(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ge=null,Tt=null;const $=Object.seal(de(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let _t=!0,Ue=!0,Et=!1,bt=!0,X=!1,Te=!0,ne=!1,Fe=!1,ze=null,je=null,He=!1,ae=!1,Oe=!1,Re=!1,yt=!0,At=!1;const St="user-content-";let Ge=!0,Be=!1,le={},j=null;const We=p({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let xt=null;const Nt=p({},["audio","video","img","source","image","track"]);let Ye=null;const Ot=p({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),we="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",H="http://www.w3.org/1999/xhtml";let ce=H,qe=!1,$e=null;const Tn=p({},[we,Ie,H],nt),Rt=R(["mi","mo","mn","ms","mtext"]);let Xe=p({},Rt);const wt=R(["annotation-xml"]);let Ve=p({},wt);const _n=p({},["title","style","font","a","script"]);let _e=null;const En=["application/xhtml+xml","text/html"],bn="text/html";let _=null,ue=null;const yn=s.createElement("form"),It=function(e){return e instanceof RegExp||e instanceof Function},Ke=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ue&&ue===e)return;(!e||typeof e!="object")&&(e={}),e=C(e),_e=En.indexOf(e.PARSER_MEDIA_TYPE)===-1?bn:e.PARSER_MEDIA_TYPE,_=_e==="application/xhtml+xml"?nt:Se,h=K(e,"ALLOWED_TAGS",ht,{transform:_}),g=K(e,"ALLOWED_ATTR",gt,{transform:_}),$e=K(e,"ALLOWED_NAMESPACES",Tn,{transform:nt}),Ye=K(e,"ADD_URI_SAFE_ATTR",Ot,{transform:_,base:Ot}),xt=K(e,"ADD_DATA_URI_TAGS",Nt,{transform:_,base:Nt}),j=K(e,"FORBID_CONTENTS",We,{transform:_}),ge=K(e,"FORBID_TAGS",C({}),{transform:_}),Tt=K(e,"FORBID_ATTR",C({}),{transform:_}),le=x(e,"USE_PROFILES")?e.USE_PROFILES&&typeof e.USE_PROFILES=="object"?C(e.USE_PROFILES):e.USE_PROFILES:!1,_t=e.ALLOW_ARIA_ATTR!==!1,Ue=e.ALLOW_DATA_ATTR!==!1,Et=e.ALLOW_UNKNOWN_PROTOCOLS||!1,bt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,X=e.SAFE_FOR_TEMPLATES||!1,Te=e.SAFE_FOR_XML!==!1,ne=e.WHOLE_DOCUMENT||!1,ae=e.RETURN_DOM||!1,Oe=e.RETURN_DOM_FRAGMENT||!1,Re=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,yt=e.SANITIZE_DOM!==!1,At=e.SANITIZE_NAMED_PROPS||!1,Ge=e.KEEP_CONTENT!==!1,Be=e.IN_PLACE||!1,dt=no(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Qt,ce=typeof e.NAMESPACE=="string"?e.NAMESPACE:H,Xe=x(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS=="object"?C(e.MATHML_TEXT_INTEGRATION_POINTS):p({},Rt),Ve=x(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS=="object"?C(e.HTML_INTEGRATION_POINTS):p({},wt);const t=x(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING=="object"?C(e.CUSTOM_ELEMENT_HANDLING):de(null);if(T=de(null),x(t,"tagNameCheck")&&It(t.tagNameCheck)&&(T.tagNameCheck=t.tagNameCheck),x(t,"attributeNameCheck")&&It(t.attributeNameCheck)&&(T.attributeNameCheck=t.attributeNameCheck),x(t,"allowCustomizedBuiltInElements")&&typeof t.allowCustomizedBuiltInElements=="boolean"&&(T.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),w(T),X&&
vendor: 9,061 bytes, line 2
2(Ue=!1),Oe&&(ae=!0),le&&(h=p({},Vt),g=de(null),le.html===!0&&(p(h,Xt),p(g,Kt)),le.svg===!0&&(p(h,ot),p(g,st),p(g,Pe)),le.svgFilters===!0&&(p(h,rt),p(g,st),p(g,Pe)),le.mathMl===!0&&(p(h,it),p(g,Zt),p(g,Pe))),$.tagCheck=null,$.attributeCheck=null,x(e,"ADD_TAGS")&&(typeof e.ADD_TAGS=="function"?$.tagCheck=e.ADD_TAGS:Z(e.ADD_TAGS)&&(h===ht&&(h=C(h)),p(h,e.ADD_TAGS,_))),x(e,"ADD_ATTR")&&(typeof e.ADD_ATTR=="function"?$.attributeCheck=e.ADD_ATTR:Z(e.ADD_ATTR)&&(g===gt&&(g=C(g)),p(g,e.ADD_ATTR,_))),x(e,"ADD_URI_SAFE_ATTR")&&Z(e.ADD_URI_SAFE_ATTR)&&p(Ye,e.ADD_URI_SAFE_ATTR,_),x(e,"FORBID_CONTENTS")&&Z(e.FORBID_CONTENTS)&&(j===We&&(j=C(j)),p(j,e.FORBID_CONTENTS,_)),x(e,"ADD_FORBID_CONTENTS")&&Z(e.ADD_FORBID_CONTENTS)&&(j===We&&(j=C(j)),p(j,e.ADD_FORBID_CONTENTS,_)),Ge&&(h["#text"]=!0),ne&&p(h,["html","head","body"]),h.table&&(p(h,["tbody"]),delete ge.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw re('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw re('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const r=M;M=e.TRUSTED_TYPES_POLICY;try{te=se("")}catch(a){throw M=r,a}}else e.TRUSTED_TYPES_POLICY===null?(M=void 0,te=""):(M===void 0&&(M=sn()),M&&typeof te=="string"&&(te=se("")));R&&R(e),ue=e},Dt=p({},[...ot,...rt,...oo]),Lt=p({},[...it,...ro]),An=function(e,t,r){return t.namespaceURI===H?e==="svg":t.namespaceURI===we?e==="svg"&&(r==="annotation-xml"||Xe[r]):!!Dt[e]},Sn=function(e,t,r){return t.namespaceURI===H?e==="math":t.namespaceURI===Ie?e==="math"&&Ve[r]:!!Lt[e]},xn=function(e,t,r){return t.namespaceURI===Ie&&!Ve[r]||t.namespaceURI===we&&!Xe[r]?!1:!Lt[e]&&(_n[e]||!Dt[e])},Nn=function(e){let t=W(e);(!t||!t.tagName)&&(t={namespaceURI:ce,tagName:"template"});const r=Se(e.tagName),a=Se(t.tagName);return $e[e.namespaceURI]?e.namespaceURI===Ie?An(r,t,a):e.namespaceURI===we?Sn(r,t,a):e.namespaceURI===H?xn(r,t,a):!!(_e==="application/xhtml+xml"&&$e[e.namespaceURI]):!1},V=function(e){me(n.removed,{element:e});try{W(e).removeChild(e)}catch{if(xe(e),!W(e))throw re("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ct=function(e){const t=U(e);if(t){const a=[];be(t,u=>{me(a,u)}),be(a,u=>{try{xe(u)}catch{}})}const r=ie(e);if(r)for(let a=r.length-1;a>=0;--a){const u=r[a],m=u&&u.name;if(typeof m=="string")try{e.removeAttribute(m)}catch{}}},oe=function(e,t){try{me(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{me(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(ae||Oe)try{V(t)}catch{}else try{t.setAttribute(e,"")}catch{}},On=function(e){const t=ie(e);if(t)for(let r=t.length-1;r>=0;--r){const a=t[r],u=a&&a.name;if(!(typeof u!="string"||g[_(u)]))try{e.removeAttribute(u)}catch{}}},Rn=function(e){const t=[e];for(;t.length>0;){const r=t.pop();(D?D(r):r.nodeType)===G.element&&On(r);const u=U(r);if(u)for(let m=u.length-1;m>=0;--m)t.push(u[m])}},Mt=function(e){let t=null,r=null;if(He)e="<remove></remove>"+e;else{const m=Wt(e,/^[\r\n\t ]+/);r=m&&m[0]}_e==="application/xhtml+xml"&&ce===H&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const a=M?se(e):e;if(ce===H)try{t=new N().parseFromString(a,_e)}catch{}if(!t||!t.documentElement){t=ke.createDocument(ce,"template",null);try{t.documentElement.innerHTML=qe?te:a}catch{}}const u=t.body||t.documentElement;return e&&r&&u.insertBefore(s.createTextNode(r),u.childNodes[0]||null),ce===H?ln.call(t,ne?"html":"body")[0]:ne?t.documentElement:u},Pt=function(e){return pt.call(e.ownerDocument||e,e,I.SHOW_ELEMENT|I.SHOW_COMMENT|I.SHOW_TEXT|I.SHOW_PROCESSING_INSTRUCTION|I.SHOW_CDATA_SECTION,null)},De=function(e){return e=ye(e,un," "),e=ye(e,fn," "),e=ye(e,pn," "),e},Ze=function(e){var t;e.normalize();const r=pt.call(e.ownerDocument||e,e,I.SHOW_TEXT|I.SHOW_COMMENT|I.SHOW_CDATA_SECTION|I.SHOW_PROCESSING_INSTRUCTION,null);let a=r.nextNode();for(;a;)a.data=De(a.data),a=r.nextNode();const u=(t=e.querySelectorAll)===null||t===void 0?void 0:t.call(e,"template");u&&be(u,m=>{fe(m.content)&&Ze(m.content)})},Le=function(e){const t=q?q(e):null;return typeof t!="string"||_(t)!=="form"?!1:typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||e.attributes!==ie(e)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function"||e.nodeType!==D(e)||e.childNodes!==U(e)},fe=function(e){if(!D||typeof e!="object"||e===null)return!1;try{return D(e)===G.documentFragment}catch{return!1}},Ee=function(e){if(!D||typeof e!="object"||e===null)return!1;try{return typeof D(e)=="number"}catch{return!1}};function Y(i,e,t){i.length!==0&&be(i,r=>{r.call(n,e,t,ue)})}const wn=function(e,t){return!!(Te&&e.hasChildNodes()&&!Ee(e.firstElementChild)&&O(Jt,e.textContent)&&O(Jt,e.innerHTML)||Te&&e.namespaceURI===H&&t==="style"&&Ee(e.firstElementChild)||e.nodeType===G.processingInstruction||Te&&e.nodeType===G.comment&&O(ho,e.data))},In=function(e,t){if(!ge[t]&&Ut(t)&&(T.tagNameCheck instanceof RegExp&&O(T.tagNameCheck,t)||T.tagNameCheck instanceof Function&&T.tagNameCheck(t)))return!1;if(Ge&&!j[t]){const r=W(e),a=U(e);if(a&&r){const u=a.length;for(let m=u-1;m>=0;--m){const S=Be?a[m]:ct(a[m],!0);r.insertBefore(S,ee(e))}}}return V(e),!0},vt=function(e){if(Y(E.beforeSanitizeElements,e,null),Le(e))return V(e),!0;const t=_(q?q(e):e.nodeName);if(Y(E.uponSanitizeElement,e,{tagName:t,allowedTags:h}),wn(e,t))return V(e),!0;if(ge[t]||!($.tagCheck instanceof Function&&$.tagCheck(t))&&!h[t])return In(e,t);if((D?D(e):e.nodeType)===G.element&&!Nn(e)||(t==="noscript"||t==="noembed"||t==="noframes")&&O(go,e.innerHTML))return V(e),!0;if(X&&e.nodeType===G.text){const a=De(e.textContent);e.textContent!==a&&(me(n.removed,{element:e.cloneNode()}),e.textContent=a)}return Y(E.afterSanitizeElements,e,null),!1},kt=function(e,t,r){if(Tt[t]||yt&&(t==="id"||t==="name")&&(r in s||r in yn))return!1;const a=g[t]||$.attributeCheck instanceof Function&&$.attributeCheck(t,e);if(!(Ue&&O(mn,t))){if(!(_t&&O(dn,t))){if(a){if(!Ye[t]){if(!O(dt,ye(r,mt,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&Yt(r,"data:")===0&&xt[e])){if(!(Et&&!O(hn,ye(r,mt,"")))){if(r)return!1}}}}}else if(!(Ut(e)&&(T.tagNameCheck instanceof RegExp&&O(T.tagNameCheck,e)||T.tagNameCheck instanceof Function&&T.tagNameCheck(e))&&(T.attributeNameCheck instanceof RegExp&&O(T.attributeNameCheck,t)||T.attributeNameCheck instanceof Function&&T.attributeNameCheck(t,e))||t==="is"&&T.allowCustomizedBuiltInElements&&(T.tagNameCheck instanceof RegExp&&O(T.tagNameCheck,r)||T.tagNameCheck instanceof Function&&T.tagNameCheck(r))))return!1}}return!0},Dn=p({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ut=function(e){return!Dn[Se(e)]&&O(gn,e)},Ln=function(e,t,r,a){if(M&&typeof P=="object"&&typeof P.getAttributeType=="function"&&!r)switch(P.getAttributeType(e,t)){case"TrustedHTML":return se(a);case"TrustedScriptURL":return rn(a)}return a},Cn=function(e,t,r,a){try{r?e.setAttributeNS(r,t,a):e.setAttribute(t,a),Le(e)?V(e):Bt(n.removed)}catch{oe(t,e)}},Ft=function(e){Y(E.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||Le(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:g,forceKeepAttr:void 0};let a=t.length;const u=_(e.nodeName);for(;a--;){const m=t[a],S=m.name,b=m.namespaceURI,k=m.value,z=_(S),Je=k;let L=S==="value"?Je:Kn(Je);if(r.attrName=z,r.attrValue=L,r.keepAttr=!0,r.forceKeepAttr=void 0,Y(E.uponSanitizeAttribute,e,r),L=r.attrValue,At&&(z==="id"||z==="name")&&Yt(L,St)!==0&&(oe(S,e),L=St+L),Te&&O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,L)){oe(S,e);continue}if(z==="attributename"&&Wt(L,"href")){oe(S,e);continue}if(!r.forceKeepAttr){if(!r.keepAttr){oe(S,e);continue}if(!bt&&O(To,L)){oe(S,e);continue}if(X&&(L=De(L)),!kt(u,z,L)){oe(S,e);continue}L=Ln(u,z,b,L),L!==Je&&Cn(e,S,b,L)}}Y(E.afterSanitizeAttributes,e,null)},Ce=function(e){let t=null;const r=Pt(e);for(Y(E.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)if(Y(E.uponSanitizeShadowNode,t,null),vt(t),Ft(t),fe(t.content)&&Ce(t.content),(D?D(t):t.nodeType)===G.element){const u=F(t);fe(u)&&(Qe(u),Ce(u))}Y(E.afterSanitizeShadowDOM,e,null)},Qe=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const r=t.pop();if(r.shadow){Ce(r.shadow);continue}const a=r.node,m=(D?D(a):a.nodeType)===G.element,S=U(a);if(S)for(let b=S.length-1;b>=0;--b)t.push({node:S[b],shadow:null});if(m){const b=q?q(a):null;if(typeof b=="string"&&_(b)==="template"){const k=a.content;fe(k)&&t.push({node:k,shadow:null})}}if(m){const b=F(a);fe(b)&&t.push({node:null,shadow:b},{node:b,shadow:null})}}};return n.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,r=null,a=null,u=null;if(qe=!i,qe&&(i="<!-->
2"),typeof i!="string"&&!Ee(i)&&(i=to(i),typeof i!="string"))throw re("dirty is not a string, aborting");if(!n.isSupported)return i;Fe?(h=ze,g=je):Ke(e),(E.uponSanitizeElement.length>0||E.uponSanitizeAttribute.length>0)&&(h=C(h)),E.uponSanitizeAttribute.length>0&&(g=C(g)),n.removed=[];const m=Be&&typeof i!="string"&&Ee(i);if(m){const k=q?q(i):i.nodeName;if(typeof k=="string"){const z=_(k);if(!h[z]||ge[z])throw re("root node is forbidden and cannot be sanitized in-place")}if(Le(i))throw re("root node is clobbered and cannot be sanitized in-place");try{Qe(i)}catch(z){throw Ct(i),z}}else if(Ee(i))t=Mt("<!---->"),r=t.ownerDocument.importNode(i,!0),r.nodeType===G.element&&r.nodeName==="BODY"||r.nodeName==="HTML"?t=r:t.appendChild(r),Qe(r);else{if(!ae&&!X&&!ne&&i.indexOf("<")===-1)return M&&Re?se(i):i;if(t=Mt(i),!t)return ae?null:Re?te:""}t&&He&&V(t.firstChild);const S=Pt(m?i:t);try{for(;a=S.nextNode();)vt(a),Ft(a),fe(a.content)&&Ce(a.content)}catch(k){throw m&&Ct(i),k}if(m)return be(n.removed,k=>{k.element&&Rn(k.element)}),X&&Ze(i),i;if(ae){if(X&&Ze(t),Oe)for(u=an.call(t.ownerDocument);t.firstChild;)u.appendChild(t.firstChild);else u=t;return(g.shadowroot||g.shadowrootmode)&&(u=cn.call(l,u,!0)),u}let b=ne?t.outerHTML:t.innerHTML;return ne&&h["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&O(po,t.ownerDocument.doctype.name)&&(b="<!DOCTYPE "+t.ownerDocument.doctype.name+`> 3`+b),X&&(b=De(b)),M&&Re?se(b):b},n.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ke(i),Fe=!0,ze=h,je=g},n.clearConfig=function(){ue=null,Fe=!1,ze=null,je=null,M=ve,te=""},n.isValidAttribute=function(i,e,t){ue||Ke({});const r=_(i),a=_(e);return kt(r,a,t)},n.addHook=function(i,e){typeof e=="function"&&x(E,i)&&me(E[i],e)},n.removeHook=function(i,e){if(x(E,i)){if(e!==void 0){const t=Xn(E[i],e);return t===-1?void 0:Vn(E[i],t,1)[0]}return Bt(E[i])}},n.removeHooks=function(i){x(E,i)&&(E[i]=[])},n.removeAllHooks=function(){E=en()},n}var bo=on();function yo(o){return kn(o,"es-EC",{year:"numeric",month:"long",day:"numeric"})}function wo(){const{slug:o}=Mn(),[n,s]=pe.useState(null),[l,f]=pe.useState([]),[d,A]=pe.useState(!0),[Q,I]=pe.useState(!1);if(pe.useEffect(()=>{async function N(){if(!o){I(!0),A(!1);return}let{data:P}=await et.from("news").select("*").eq("slug",o).maybeSingle();if(P||(P=(await et.from("news").select("*").eq("id",o).maybeSingle()).data),P){s(P);const{data:v}=await et.from("news").select("id, title, excerpt, category, image_url, author, published_at, featured, slug").eq("category",P.category).neq("id",P.id).order("published_at",{ascending:!1}).limit(3);f(v??[])}else I(!0);A(!1)}N()},[o]),pe.useEffect(()=>{if(!n)return;const N=n.excerpt||n.title,P=`${window.location.origin}${window.location.pathname}`,v=document.title;document.title=`${n.title} | Sociedad Deportivo Quito`;const xe=[["name","description",N],["property","og:type","article"],["property","og:title",n.title],["property","og:description",N],["property","og:url",P],["name","twitter:title",n.title],["name","twitter:description",N],...n.image_url?[["property","og:image",n.image_url],["name","twitter:image",n.image_url]]:[]].map(([ee,U,W])=>{let F=document.querySelector(`meta[${ee}="${U}"]`);const ie=!F;F||(F=document.createElement("meta"),F.setAttribute(ee,U),document.head.appendChild(F));const D=ie?null:F.getAttribute("content");return F.setAttribute("content",W),{el:F,prev:D,created:ie}});return()=>{document.title=v,xe.forEach(({el:ee,prev:U,created:W})=>{W?ee.remove():U!==null&&ee.setAttribute("content",U)})}},[n]),d)return c.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:c.jsx(Un,{size:40,className:"animate-spin text-sdq-blue"})});if(Q||!n)return c.jsxs("div",{className:"min-h-screen bg-white flex flex-col items-center justify-center gap-4",children:[c.jsx("p",{className:"text-gray-500 text-lg",children:"Noticia no encontrada."}),c.jsxs(Me,{to:"/noticias",className:"text-sdq-blue font-semibold hover:underline flex items-center gap-1.5",children:[c.jsx(tt,{size:15})," Volver a noticias"]})]});const J=Pn[n.category]??"bg-gray-600";return c.jsxs("div",{className:"bg-white min-h-screen",children:[c.jsxs("div",{className:"relative bg-sdq-dark-blue overflow-hidden",children:[c.jsx("div",{className:"absolute top-4 left-4 z-20 sm:top-6 sm:left-6",children:c.jsxs(Me,{to:"/noticias",className:"inline-flex items-center gap-1.5 bg-black/30 backdrop-blur-sm text-white text-xs font-semibold px-4 py-2 rounded-full hover:bg-black/50 transition-colors",children:[c.jsx(tt,{size:14})," Noticias"]})}),n.image_url?c.jsx("img",{src:n.image_url,alt:n.title,className:"w-full h-72 sm:h-96 lg:h-[480px] object-cover opacity-50"}):c.jsx("div",{className:"w-full h-72 sm:h-96 lg:h-[480px] bg-gradient-to-br from-sdq-dark-blue via-sdq-blue/30 to-sdq-dark-blue"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent"}),c.jsxs("div",{className:"absolute bottom-0 left-0 right-0 max-w-4xl mx-auto px-4 sm:px-8 pb-8 sm:pb-12",children:[c.jsx("span",{className:`${J} text-white text-[10px] font-bold px-3 py-1 rounded-full tracking-wider`,children:n.category}),c.jsx("h1",{className:"text-2xl sm:text-4xl lg:text-5xl font-extrabold text-white mt-4 leading-tight",children:n.title}),c.jsxs("div",{className:"flex flex-wrap items-center gap-4 mt-4 text-white/60 text-sm",children:[c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(Fn,{size:13})," ",n.author]}),c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(zn,{size:13})," ",yo(n.published_at)]}),c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(jt,{size:13})," ",zt(n.published_at)]})]})]})]}),c.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-8 py-10 sm:py-14",children:[n.excerpt&&c.jsx("p",{className:"text-lg sm:text-xl text-gray-700 font-medium leading-relaxed mb-8 border-l-4 border-sdq-blue pl-5",children:n.excerpt}),n.content&&c.jsx("div",{className:`prose prose-lg max-w-none 4 prose-headings:font-extrabold prose-headings:text-gray-900 5 prose-h2:text-2xl prose-h2:mt-10 prose-h2:mb-4 6 prose-h3:text-xl prose-h3:mt-8 prose-h3:mb-3 7 prose-p:text-gray-700 prose-p:leading-[1.9] prose-p:text-[17px] prose-p:mb-5 8 prose-a:text-sdq-blue prose-a:font-semibold hover:prose-a:underline 9 prose-strong:text-gray-900 prose-strong:font-bold 10 prose-em:italic 11 prose-blockquote:border-l-4 prose-blockquote:border-sdq-red prose-blockquote:pl-5 prose-blockquote:italic prose-blockquote:text-gray-500 12 prose-ul:list-disc prose-ul:pl-6 prose-ul:space-y-1 13 prose-ol:list-decimal prose-ol:pl-6 prose-ol:space-y-1 14 prose-li:text-gray-700 prose-li:text-[17px] 15 prose-img:rounded-xl prose-img:my-8 prose-img:w-full prose-img:object-cover`,dangerouslySetInnerHTML:{__html:bo.sanitize(n.content)}}),c.jsx("div",{className:"mt-12 pt-6 border-t border-gray-100",children:c.jsxs(Me,{to:"/noticias",className:"inline-flex items-center gap-2 text-sdq-blue font-semibold text-sm hover:underline",children:[c.jsx(tt,{size:15})," Volver a todas las noticias"]})})]}),l.length>0&&c.jsx("div",{className:"bg-gray-50 border-t border-gray-100",children:c.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-8 py-10 sm:py-14",children:[c.jsxs("h2",{className:"text-lg font-extrabold text-gray-900 mb-6",children:["Más noticias de ",n.category]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:l.map(N=>c.jsxs(Me,{to:vn(N),className:"group bg-white rounded-xl overflow-hidden border border-gray-100 hover:shadow-md transition-shadow",children:[c.jsx("div",{className:"h-36 overflow-hidden",children:N.image_url?c.jsx("img",{src:N.image_url,alt:N.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):c.jsx("div",{className:"w-full h-full bg-gradient-to-br from-sdq-dark-blue to-sdq-blue"})}),c.jsxs("div",{className:"p-4",children:[c.jsx("h3",{className:"text-sm font-bold text-gray-900 leading-snug line-clamp-2 group-hover:text-sdq-blue transition-colors",children:N.title}),c.jsxs("span",{className:"text-[11px] text-gray-400 mt-2 flex items-center gap-1",children:[c.jsx(jt,{size:10})," ",zt(N.published_at)]})]})]},N.id))})]})})]})}export{wo as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.