5 lines
25 KiB
JavaScript
5 lines
25 KiB
JavaScript
/*! third party licenses: js/vendor.LICENSE.txt */
|
|
import{g as Xt}from"./vendor-BeFBwUwf.chunk.mjs";const{entries:St,setPrototypeOf:dt,isFrozen:$t,getPrototypeOf:Kt,getOwnPropertyDescriptor:Vt}=Object;let{freeze:N,seal:w,create:vt}=Object,{apply:Be,construct:Ge}=typeof Reflect<"u"&&Reflect;N||(N=function(t){return t}),w||(w=function(t){return t}),Be||(Be=function(t,a){for(var i=arguments.length,o=new Array(i>2?i-2:0),c=2;c<i;c++)o[c-2]=arguments[c];return t.apply(a,o)}),Ge||(Ge=function(t){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];return new t(...i)});const de=S(Array.prototype.forEach),Jt=S(Array.prototype.lastIndexOf),gt=S(Array.prototype.pop),Z=S(Array.prototype.push),Qt=S(Array.prototype.splice),he=S(String.prototype.toLowerCase),Ie=S(String.prototype.toString),Me=S(String.prototype.match),ee=S(String.prototype.replace),Zt=S(String.prototype.indexOf),en=S(String.prototype.trim),L=S(Object.prototype.hasOwnProperty),A=S(RegExp.prototype.test),te=tn(TypeError);function S(t){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var i=arguments.length,o=new Array(i>1?i-1:0),c=1;c<i;c++)o[c-1]=arguments[c];return Be(t,a,o)}}function tn(t){return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return Ge(t,i)}}function s(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:he;dt&&dt(t,null);let o=a.length;for(;o--;){let c=a[o];if(typeof c=="string"){const u=i(c);u!==c&&($t(a)||(a[o]=u),c=u)}t[c]=!0}return t}function nn(t){for(let a=0;a<t.length;a++)L(t,a)||(t[a]=null);return t}function U(t){const a=vt(null);for(const[i,o]of St(t))L(t,i)&&(Array.isArray(o)?a[i]=nn(o):o&&typeof o=="object"&&o.constructor===Object?a[i]=U(o):a[i]=o);return a}function ne(t,a){for(;t!==null;){const o=Vt(t,a);if(o){if(o.get)return S(o.get);if(typeof o.value=="function")return S(o.value)}t=Kt(t)}function i(){return null}return i}const ht=N(["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"]),Pe=N(["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","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ue=N(["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"]),an=N(["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"]),ze=N(["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"]),rn=N(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Tt=N(["#text"]),yt=N(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","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","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Fe=N(["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","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"]),_t=N(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),ge=N(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),on=w(/\{\{[\w\W]*|[\w\W]*\}\}/gm),sn=w(/<%[\w\W]*|[\w\W]*%>/gm),cn=w(/\$\{[\w\W]*/gm),ln=w(/^data-[\-\w.\u00B7-\uFFFF]+$/),un=w(/^aria-[\-\w]+$/),wt=w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mn=w(/^(?:\w+script|data):/i),pn=w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Rt=w(/^html$/i),fn=w(/^[a-z][.\w]*(-[.\w]+)+$/i);var bt=Object.freeze({__proto__:null,ARIA_ATTR:un,ATTR_WHITESPACE:pn,CUSTOM_ELEMENT:fn,DATA_ATTR:ln,DOCTYPE_NAME:Rt,ERB_EXPR:sn,IS_ALLOWED_URI:wt,IS_SCRIPT_OR_DATA:mn,MUSTACHE_EXPR:on,TMPLIT_EXPR:cn});const ae={element:1,text:3,progressingInstruction:7,comment:8,document:9},dn=function(){return typeof window>"u"?null:window},gn=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const o="data-tt-policy-suffix";a&&a.hasAttribute(o)&&(i=a.getAttribute(o));const c="dompurify"+(i?"#"+i:"");try{return t.createPolicy(c,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Et=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function kt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dn();const a=e=>kt(e);if(a.version="3.2.7",a.removed=[],!t||!t.document||t.document.nodeType!==ae.document||!t.Element)return a.isSupported=!1,a;let{document:i}=t;const o=i,c=o.currentScript,{DocumentFragment:u,HTMLTemplateElement:R,Node:f,Element:_,NodeFilter:D,NamedNodeMap:z=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:re,DOMParser:Te,trustedTypes:k}=t,v=_.prototype,$=ne(v,"cloneNode"),ye=ne(v,"remove"),oe=ne(v,"nextSibling"),ie=ne(v,"childNodes"),O=ne(v,"parentNode");if(typeof R=="function"){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let b,K="";const{implementation:_e,createNodeIterator:xt,createDocumentFragment:Ct,getElementsByTagName:Lt}=i,{importNode:Dt}=o;let E=Et();a.isSupported=typeof St=="function"&&typeof O=="function"&&_e&&_e.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:be,ERB_EXPR:Ee,TMPLIT_EXPR:Ae,DATA_ATTR:It,ARIA_ATTR:Mt,IS_SCRIPT_OR_DATA:Pt,ATTR_WHITESPACE:je,CUSTOM_ELEMENT:Ut}=bt;let{IS_ALLOWED_URI:Ye}=bt,d=null;const qe=s({},[...ht,...Pe,...Ue,...ze,...Tt]);let h=null;const Xe=s({},[...yt,...Fe,..._t,...ge]);let p=Object.seal(vt(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}})),V=null,Ne=null,$e=!0,Se=!0,Ke=!1,Ve=!0,B=!1,se=!0,F=!1,ve=!1,we=!1,G=!1,ce=!1,le=!1,Je=!0,Qe=!1;const zt="user-content-";let Re=!0,J=!1,j={},Y=null;const Ze=s({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let et=null;const tt=s({},["audio","video","img","source","image","track"]);let ke=null;const nt=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ue="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",I="http://www.w3.org/1999/xhtml";let q=I,Oe=!1,xe=null;const Ft=s({},[ue,me,I],Ie);let pe=s({},["mi","mo","mn","ms","mtext"]),fe=s({},["annotation-xml"]);const Ht=s({},["title","style","font","a","script"]);let Q=null;const Wt=["application/xhtml+xml","text/html"],Bt="text/html";let g=null,X=null;const Gt=i.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},Ce=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(X&&X===e)){if((!e||typeof e!="object")&&(e={}),e=U(e),Q=Wt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Bt:e.PARSER_MEDIA_TYPE,g=Q==="application/xhtml+xml"?Ie:he,d=L(e,"ALLOWED_TAGS")?s({},e.ALLOWED_TAGS,g):qe,h=L(e,"ALLOWED_ATTR")?s({},e.ALLOWED_ATTR,g):Xe,xe=L(e,"ALLOWED_NAMESPACES")?s({},e.ALLOWED_NAMESPACES,Ie):Ft,ke=L(e,"ADD_URI_SAFE_ATTR")?s(U(nt),e.ADD_URI_SAFE_ATTR,g):nt,et=L(e,"ADD_DATA_URI_TAGS")?s(U(tt),e.ADD_DATA_URI_TAGS,g):tt,Y=L(e,"FORBID_CONTENTS")?s({},e.FORBID_CONTENTS,g):Ze,V=L(e,"FORBID_TAGS")?s({},e.FORBID_TAGS,g):U({}),Ne=L(e,"FORBID_ATTR")?s({},e.FORBID_ATTR,g):U({}),j=L(e,"USE_PROFILES")?e.USE_PROFILES:!1,$e=e.ALLOW_ARIA_ATTR!==!1,Se=e.ALLOW_DATA_ATTR!==!1,Ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ve=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,B=e.SAFE_FOR_TEMPLATES||!1,se=e.SAFE_FOR_XML!==!1,F=e.WHOLE_DOCUMENT||!1,G=e.RETURN_DOM||!1,ce=e.RETURN_DOM_FRAGMENT||!1,le=e.RETURN_TRUSTED_TYPE||!1,we=e.FORCE_BODY||!1,Je=e.SANITIZE_DOM!==!1,Qe=e.SANITIZE_NAMED_PROPS||!1,Re=e.KEEP_CONTENT!==!1,J=e.IN_PLACE||!1,Ye=e.ALLOWED_URI_REGEXP||wt,q=e.NAMESPACE||I,pe=e.MATHML_TEXT_INTEGRATION_POINTS||pe,fe=e.HTML_INTEGRATION_POINTS||fe,p=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(p.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(p.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(p.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),B&&(Se=!1),ce&&(G=!0),j&&(d=s({},Tt),h=[],j.html===!0&&(s(d,ht),s(h,yt)),j.svg===!0&&(s(d,Pe),s(h,Fe),s(h,ge)),j.svgFilters===!0&&(s(d,Ue),s(h,Fe),s(h,ge)),j.mathMl===!0&&(s(d,ze),s(h,_t),s(h,ge))),e.ADD_TAGS&&(d===qe&&(d=U(d)),s(d,e.ADD_TAGS,g)),e.ADD_ATTR&&(h===Xe&&(h=U(h)),s(h,e.ADD_ATTR,g)),e.ADD_URI_SAFE_ATTR&&s(ke,e.ADD_URI_SAFE_ATTR,g),e.FORBID_CONTENTS&&(Y===Ze&&(Y=U(Y)),s(Y,e.FORBID_CONTENTS,g)),Re&&(d["#text"]=!0),F&&s(d,["html","head","body"]),d.table&&(s(d,["tbody"]),delete V.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw te('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw te('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=e.TRUSTED_TYPES_POLICY,K=b.createHTML("")}else b===void 0&&(b=gn(k,c)),b!==null&&typeof K=="string"&&(K=b.createHTML(""));N&&N(e),X=e}},rt=s({},[...Pe,...Ue,...an]),ot=s({},[...ze,...rn]),jt=function(e){let r=O(e);(!r||!r.tagName)&&(r={namespaceURI:q,tagName:"template"});const n=he(e.tagName),l=he(r.tagName);return xe[e.namespaceURI]?e.namespaceURI===me?r.namespaceURI===I?n==="svg":r.namespaceURI===ue?n==="svg"&&(l==="annotation-xml"||pe[l]):!!rt[n]:e.namespaceURI===ue?r.namespaceURI===I?n==="math":r.namespaceURI===me?n==="math"&&fe[l]:!!ot[n]:e.namespaceURI===I?r.namespaceURI===me&&!fe[l]||r.namespaceURI===ue&&!pe[l]?!1:!ot[n]&&(Ht[n]||!rt[n]):!!(Q==="application/xhtml+xml"&&xe[e.namespaceURI]):!1},H=function(e){Z(a.removed,{element:e});try{O(e).removeChild(e)}catch{ye(e)}},W=function(e,r){try{Z(a.removed,{attribute:r.getAttributeNode(e),from:r})}catch{Z(a.removed,{attribute:null,from:r})}if(r.removeAttribute(e),e==="is")if(G||ce)try{H(r)}catch{}else try{r.setAttribute(e,"")}catch{}},it=function(e){let r=null,n=null;if(we)e="<remove></remove>"+e;else{const m=Me(e,/^[\r\n\t ]+/);n=m&&m[0]}Q==="application/xhtml+xml"&&q===I&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const l=b?b.createHTML(e):e;if(q===I)try{r=new Te().parseFromString(l,Q)}catch{}if(!r||!r.documentElement){r=_e.createDocument(q,"template",null);try{r.documentElement.innerHTML=Oe?K:l}catch{}}const T=r.body||r.documentElement;return e&&n&&T.insertBefore(i.createTextNode(n),T.childNodes[0]||null),q===I?Lt.call(r,F?"html":"body")[0]:F?r.documentElement:T},st=function(e){return xt.call(e.ownerDocument||e,e,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT|D.SHOW_PROCESSING_INSTRUCTION|D.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof re&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof z)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},ct=function(e){return typeof f=="function"&&e instanceof f};function M(e,r,n){de(e,l=>{l.call(a,r,n,X)})}const lt=function(e){let r=null;if(M(E.beforeSanitizeElements,e,null),Le(e))return H(e),!0;const n=g(e.nodeName);if(M(E.uponSanitizeElement,e,{tagName:n,allowedTags:d}),se&&e.hasChildNodes()&&!ct(e.firstElementChild)&&A(/<[/\w!]/g,e.innerHTML)&&A(/<[/\w!]/g,e.textContent)||e.nodeType===ae.progressingInstruction||se&&e.nodeType===ae.comment&&A(/<[/\w]/g,e.data))return H(e),!0;if(!d[n]||V[n]){if(!V[n]&&mt(n)&&(p.tagNameCheck instanceof RegExp&&A(p.tagNameCheck,n)||p.tagNameCheck instanceof Function&&p.tagNameCheck(n)))return!1;if(Re&&!Y[n]){const l=O(e)||e.parentNode,T=ie(e)||e.childNodes;if(T&&l){const m=T.length;for(let P=m-1;P>=0;--P){const x=$(T[P],!0);x.__removalCount=(e.__removalCount||0)+1,l.insertBefore(x,oe(e))}}}return H(e),!0}return e instanceof _&&!jt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&A(/<\/no(script|embed|frames)/i,e.innerHTML)?(H(e),!0):(B&&e.nodeType===ae.text&&(r=e.textContent,de([be,Ee,Ae],l=>{r=ee(r,l," ")}),e.textContent!==r&&(Z(a.removed,{element:e.cloneNode()}),e.textContent=r)),M(E.afterSanitizeElements,e,null),!1)},ut=function(e,r,n){if(Je&&(r==="id"||r==="name")&&(n in i||n in Gt))return!1;if(!(Se&&!Ne[r]&&A(It,r))&&!($e&&A(Mt,r))){if(!h[r]||Ne[r]){if(!(mt(e)&&(p.tagNameCheck instanceof RegExp&&A(p.tagNameCheck,e)||p.tagNameCheck instanceof Function&&p.tagNameCheck(e))&&(p.attributeNameCheck instanceof RegExp&&A(p.attributeNameCheck,r)||p.attributeNameCheck instanceof Function&&p.attributeNameCheck(r,e))||r==="is"&&p.allowCustomizedBuiltInElements&&(p.tagNameCheck instanceof RegExp&&A(p.tagNameCheck,n)||p.tagNameCheck instanceof Function&&p.tagNameCheck(n))))return!1}else if(!ke[r]&&!A(Ye,ee(n,je,""))&&!((r==="src"||r==="xlink:href"||r==="href")&&e!=="script"&&Zt(n,"data:")===0&&et[e])&&!(Ke&&!A(Pt,ee(n,je,"")))&&n)return!1}return!0},mt=function(e){return e!=="annotation-xml"&&Me(e,Ut)},pt=function(e){M(E.beforeSanitizeAttributes,e,null);const{attributes:r}=e;if(!r||Le(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:h,forceKeepAttr:void 0};let l=r.length;for(;l--;){const T=r[l],{name:m,namespaceURI:P,value:x}=T,C=g(m),De=x;let y=m==="value"?De:en(De);if(n.attrName=C,n.attrValue=y,n.keepAttr=!0,n.forceKeepAttr=void 0,M(E.uponSanitizeAttribute,e,n),y=n.attrValue,Qe&&(C==="id"||C==="name")&&(W(m,e),y=zt+y),se&&A(/((--!?|])>)|<\/(style|title|textarea)/i,y)){W(m,e);continue}if(C==="attributename"&&Me(y,"href")){W(m,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){W(m,e);continue}if(!Ve&&A(/\/>/i,y)){W(m,e);continue}B&&de([be,Ee,Ae],qt=>{y=ee(y,qt," ")});const ft=g(e.nodeName);if(!ut(ft,C,y)){W(m,e);continue}if(b&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!P)switch(k.getAttributeType(ft,C)){case"TrustedHTML":{y=b.createHTML(y);break}case"TrustedScriptURL":{y=b.createScriptURL(y);break}}if(y!==De)try{P?e.setAttributeNS(P,m,y):e.setAttribute(m,y),Le(e)?H(e):gt(a.removed)}catch{W(m,e)}}M(E.afterSanitizeAttributes,e,null)},Yt=function e(r){let n=null;const l=st(r);for(M(E.beforeSanitizeShadowDOM,r,null);n=l.nextNode();)M(E.uponSanitizeShadowNode,n,null),lt(n),pt(n),n.content instanceof u&&e(n.content);M(E.afterSanitizeShadowDOM,r,null)};return a.sanitize=function(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,l=null,T=null,m=null;if(Oe=!e,Oe&&(e="<!-->"),typeof e!="string"&&!ct(e))if(typeof e.toString=="function"){if(e=e.toString(),typeof e!="string")throw te("dirty is not a string, aborting")}else throw te("toString is not a function");if(!a.isSupported)return e;if(ve||Ce(r),a.removed=[],typeof e=="string"&&(J=!1),J){if(e.nodeName){const C=g(e.nodeName);if(!d[C]||V[C])throw te("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof f)n=it("<!---->"),l=n.ownerDocument.importNode(e,!0),l.nodeType===ae.element&&l.nodeName==="BODY"||l.nodeName==="HTML"?n=l:n.appendChild(l);else{if(!G&&!B&&!F&&e.indexOf("<")===-1)return b&&le?b.createHTML(e):e;if(n=it(e),!n)return G?null:le?K:""}n&&we&&H(n.firstChild);const P=st(J?e:n);for(;T=P.nextNode();)lt(T),pt(T),T.content instanceof u&&Yt(T.content);if(J)return e;if(G){if(ce)for(m=Ct.call(n.ownerDocument);n.firstChild;)m.appendChild(n.firstChild);else m=n;return(h.shadowroot||h.shadowrootmode)&&(m=Dt.call(o,m,!0)),m}let x=F?n.outerHTML:n.innerHTML;return F&&d["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&A(Rt,n.ownerDocument.doctype.name)&&(x="<!DOCTYPE "+n.ownerDocument.doctype.name+`>
|
|
`+x),B&&de([be,Ee,Ae],C=>{x=ee(x,C," ")}),b&&le?b.createHTML(x):x},a.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ce(e),ve=!0},a.clearConfig=function(){X=null,ve=!1},a.isValidAttribute=function(e,r,n){X||Ce({});const l=g(e),T=g(r);return ut(l,T,n)},a.addHook=function(e,r){typeof r=="function"&&Z(E[e],r)},a.removeHook=function(e,r){if(r!==void 0){const n=Jt(E[e],r);return n===-1?void 0:Qt(E[e],n,1)[0]}return gt(E[e])},a.removeHooks=function(e){E[e]=[]},a.removeAllHooks=function(){E=Et()},a}var hn=kt(),He,At;function Tn(){if(At)return He;At=1;var t=/["'&<>]/;He=a;function a(i){var o=""+i,c=t.exec(o);if(!c)return o;var u,R="",f=0,_=0;for(f=c.index;f<o.length;f++){switch(o.charCodeAt(f)){case 34:u=""";break;case 38:u="&";break;case 39:u="'";break;case 60:u="<";break;case 62:u=">";break;default:continue}_!==f&&(R+=o.substring(_,f)),_=f+1,R+=u}return _!==f?R+o.substring(_,f):R}return He}var yn=Tn();const Nt=Xt(yn);function _n(){return globalThis._nc_l10n_locale}function An(){return _n().replaceAll(/_/g,"-")}function bn(){return globalThis._nc_l10n_language}globalThis._nc_l10n_locale??(globalThis._nc_l10n_locale=typeof document<"u"&&document.documentElement.dataset.locale||Intl.DateTimeFormat().resolvedOptions().locale.replaceAll(/-/g,"_")),globalThis._nc_l10n_language??(globalThis._nc_l10n_language=typeof document<"u"&&document.documentElement.lang||(globalThis.navigator?.language??"en"));function Ot(t){return{translations:globalThis._oc_l10n_registry_translations[t]??{},pluralFunction:globalThis._oc_l10n_registry_plural_functions[t]??(a=>a)}}globalThis._oc_l10n_registry_translations??(globalThis._oc_l10n_registry_translations={}),globalThis._oc_l10n_registry_plural_functions??(globalThis._oc_l10n_registry_plural_functions={});function We(t,a,i,o,c){const u=typeof i=="object"?i:void 0,R=typeof o=="number"?o:typeof i=="number"?i:void 0,f={escape:!0,sanitize:!0,...typeof c=="object"?c:typeof o=="object"?o:{}},_=v=>v,D=(f.sanitize?hn.sanitize:_)||_,z=f.escape?Nt:_,re=v=>typeof v=="string"||typeof v=="number",Te=(v,$,ye)=>v.replace(/%n/g,""+ye).replace(/{([^{}]*)}/g,(oe,ie)=>{if($===void 0||!(ie in $))return z(oe);const O=$[ie];return re(O)?z(`${O}`):typeof O=="object"&&re(O.value)?(O.escape!==!1?Nt:_)(`${O.value}`):z(oe)});let k=(c?.bundle??Ot(t)).translations[a]||a;return k=Array.isArray(k)?k[0]:k,D(typeof u=="object"||R!==void 0?Te(k,u,R):k)}function Nn(t,a,i,o,c,u){const R="_"+a+"_::_"+i+"_",f=u?.bundle??Ot(t),_=f.translations[R];if(typeof _<"u"){const D=_;if(Array.isArray(D)){const z=f.pluralFunction(o);return We(t,D[z],c,o,u)}}return o===1?We(t,a,c,o,u):We(t,i,c,o,u)}function Sn(t,a=bn()){switch(a==="pt-BR"&&(a="xbr"),a.length>3&&(a=a.substring(0,a.lastIndexOf("-"))),a){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"oc":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return t===1?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"hy":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return t===0||t===1?0:1;case"be":case"bs":case"hr":case"ru":case"sh":case"sr":case"uk":return t%10===1&&t%100!==11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"cs":case"sk":return t===1?0:t>=2&&t<=4?1:2;case"ga":return t===1?0:t===2?1:2;case"lt":return t%10===1&&t%100!==11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2;case"sl":return t%100===1?0:t%100===2?1:t%100===3||t%100===4?2:3;case"mk":return t%10===1?0:1;case"mt":return t===1?0:t===0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3;case"lv":return t===0?0:t%10===1&&t%100!==11?1:2;case"pl":return t===1?0:t%10>=2&&t%10<=4&&(t%100<12||t%100>14)?1:2;case"cy":return t===1?0:t===2?1:t===8||t===11?2:3;case"ro":return t===1?0:t===0||t%100>0&&t%100<20?1:2;case"ar":return t===0?0:t===1?1:t===2?2:t%100>=3&&t%100<=10?3:t%100>=11&&t%100<=99?4:5;default:return 0}}export{Nn as a,Sn as b,An as c,bn as g,hn as p,We as t};
|
|
//# sourceMappingURL=translation-DoG5ZELJ-DKBzIEvm.chunk.mjs.map
|