streamlit-nightly 1.44.2.dev20250407__py3-none-any.whl → 1.44.2.dev20250409__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- streamlit/elements/html.py +49 -6
- streamlit/elements/toast.py +1 -1
- streamlit/proto/ClientState_pb2.py +4 -4
- streamlit/proto/ClientState_pb2.pyi +7 -2
- streamlit/runtime/context.py +9 -0
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/ErrorOutline.esm.ENWg0nfu.js +1 -0
- streamlit/static/static/js/{FileDownload.esm.76_siAan.js → FileDownload.esm.CN7br5rg.js} +1 -1
- streamlit/static/static/js/{FileHelper.C-t60d9I.js → FileHelper.D5g9MFNe.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.BxIPIP5L.js → FormClearHelper.CX-Gs7qK.js} +1 -1
- streamlit/static/static/js/{Hooks.CsneG6D-.js → Hooks.B5nmrNJR.js} +1 -1
- streamlit/static/static/js/{InputInstructions.CzJqQPUo.js → InputInstructions.BZGdmYsa.js} +1 -1
- streamlit/static/static/js/{ProgressBar.rnqmSFc7.js → ProgressBar.BxQ6jFn8.js} +1 -1
- streamlit/static/static/js/{RenderInPortalIfExists.BT1iglcq.js → RenderInPortalIfExists.DFt4JIzF.js} +1 -1
- streamlit/static/static/js/{Toolbar.C-G8EZDL.js → Toolbar.CY1GT2dp.js} +1 -1
- streamlit/static/static/js/{base-input.BE23gnVe.js → base-input.BmYqV4Pl.js} +1 -1
- streamlit/static/static/js/{checkbox.5KG91rAf.js → checkbox.B1IOyAGW.js} +1 -1
- streamlit/static/static/js/{createSuper.Djpx0JHn.js → createSuper.DpbLf0_h.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.D5ZEJ6-g.js → data-grid-overlay-editor.D_wogwmc.js} +1 -1
- streamlit/static/static/js/{downloader.2PLh9ewR.js → downloader.BZyuOpNH.js} +1 -1
- streamlit/static/static/js/{es6.Co_R4Vrv.js → es6.TevHRLVP.js} +2 -2
- streamlit/static/static/js/{iframeResizer.contentWindow.xC-s1Xv_.js → iframeResizer.contentWindow.BQdvZMA5.js} +1 -1
- streamlit/static/static/js/{index.G5BB57Lk.js → index.B-25xB1B.js} +1 -1
- streamlit/static/static/js/{index.CD3nk9Fu.js → index.BBcwoT79.js} +1 -1
- streamlit/static/static/js/{index.BDCmLPQN.js → index.BCnndYVM.js} +1 -1
- streamlit/static/static/js/{index.CVpc4758.js → index.BKzAjBcF.js} +1 -1
- streamlit/static/static/js/{index.DIQp9MZY.js → index.BL2wH96x.js} +1 -1
- streamlit/static/static/js/index.BZbcSe_-.js +1 -0
- streamlit/static/static/js/{index.DNsBOU6p.js → index.Ble5u7wO.js} +5 -5
- streamlit/static/static/js/{index.DEqbXo0i.js → index.C6-GtsGY.js} +1 -1
- streamlit/static/static/js/{index.C4Lfn2XI.js → index.CDk0bFvg.js} +1 -1
- streamlit/static/static/js/{index.CdIt7R38.js → index.CNLOs3Iw.js} +1 -1
- streamlit/static/static/js/{index.DZ1bfx6i.js → index.CRrGY6zW.js} +1 -1
- streamlit/static/static/js/{index.LEPdg6O5.js → index.CTUkw_xI.js} +1 -1
- streamlit/static/static/js/{index.CL9k-WRa.js → index.ChiN8eU0.js} +1 -1
- streamlit/static/static/js/{index.DyhGBqck.js → index.CjwpOtXo.js} +1 -1
- streamlit/static/static/js/{index.BhQfRF6s.js → index.CovpLz39.js} +1 -1
- streamlit/static/static/js/{index.5KFYXBbC.js → index.CpdOZl0C.js} +7 -7
- streamlit/static/static/js/{index.DSs7V2Hz.js → index.D5F8g4-_.js} +1 -1
- streamlit/static/static/js/{index.KrzfTD2f.js → index.DBRsAip9.js} +1 -1
- streamlit/static/static/js/{index.uyVXCnCm.js → index.DNU7tZCh.js} +1 -1
- streamlit/static/static/js/{index.CwBkmOEf.js → index.DRCKxBhb.js} +1 -1
- streamlit/static/static/js/{index.CMDu4q8N.js → index.DVPNZzVD.js} +1 -1
- streamlit/static/static/js/{index.BhwLaup4.js → index.DcLZqsqU.js} +1 -1
- streamlit/static/static/js/index.DdNejElO.js +2 -0
- streamlit/static/static/js/{index.Cm77Rq1x.js → index.DdXb1AFy.js} +1 -1
- streamlit/static/static/js/{index.7G_phRf1.js → index.Dg_ihGj-.js} +1 -1
- streamlit/static/static/js/{index.DhlyA8r5.js → index.Dp3KWGz9.js} +1 -1
- streamlit/static/static/js/{index.BLuvs8YB.js → index.DryeXqz7.js} +1 -1
- streamlit/static/static/js/index.DuZMqiAG.js +1 -0
- streamlit/static/static/js/{index.7c-G8UGV.js → index.DysAcrb5.js} +1 -1
- streamlit/static/static/js/{index.3lMrZLLw.js → index.F-w8z7xE.js} +1 -1
- streamlit/static/static/js/{index.CbPbNHEK.js → index.WWjp-U83.js} +1 -1
- streamlit/static/static/js/{index.CNErThK-.js → index._aSwYKPs.js} +1 -1
- streamlit/static/static/js/{index.BDb06VAk.js → index.bshtkjRk.js} +1 -1
- streamlit/static/static/js/{index.DpkiOR-s.js → index.jUVQlfHg.js} +1 -1
- streamlit/static/static/js/{index.DUB8mvGX.js → index.pbCHXMbC.js} +1 -1
- streamlit/static/static/js/index.v2RKI03a.js +12 -0
- streamlit/static/static/js/{index.CHq7UPqh.js → index.xzcb7F3N.js} +1 -1
- streamlit/static/static/js/{input.Dj1y6w2g.js → input.ttBb0XuQ.js} +1 -1
- streamlit/static/static/js/{memory.ClgbFfRV.js → memory.L6ZasMP5.js} +1 -1
- streamlit/static/static/js/{mergeWith.p3MKF-Jv.js → mergeWith.XFCr5Pq3.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.DSy8B0d4.js → number-overlay-editor.DV520fV4.js} +1 -1
- streamlit/static/static/js/{possibleConstructorReturn.PqdlS9VN.js → possibleConstructorReturn.BOMuW84u.js} +1 -1
- streamlit/static/static/js/{sandbox.JYNAoHIv.js → sandbox.DmMxKos0.js} +1 -1
- streamlit/static/static/js/{textarea.BRz2PqBl.js → textarea.Gur9iw9w.js} +1 -1
- streamlit/static/static/js/{timepicker.CLWT7Rjp.js → timepicker.BTRQ13xq.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.BesBwzeG.js → toConsumableArray.XenQAj3U.js} +1 -1
- streamlit/static/static/js/{uniqueId.HRwxnbrd.js → uniqueId.DLkywlCm.js} +1 -1
- streamlit/static/static/js/{useBasicWidgetState.QU3v4y2-.js → useBasicWidgetState.C5iDSeL6.js} +1 -1
- streamlit/static/static/js/{useOnInputChange.BbhxtdXj.js → useOnInputChange.DSAoxLvg.js} +1 -1
- streamlit/static/static/js/withFullScreenWrapper.C1Fbq1nA.js +1 -0
- {streamlit_nightly-1.44.2.dev20250407.dist-info → streamlit_nightly-1.44.2.dev20250409.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.44.2.dev20250407.dist-info → streamlit_nightly-1.44.2.dev20250409.dist-info}/RECORD +78 -77
- streamlit/static/static/js/index.CLlijDQ8.js +0 -12
- streamlit/static/static/js/index.CbEMdCQd.js +0 -1
- streamlit/static/static/js/index.D8OA-3wz.js +0 -1
- streamlit/static/static/js/index.fNuc0k1L.js +0 -2
- streamlit/static/static/js/withFullScreenWrapper.BhOSdZrO.js +0 -1
- {streamlit_nightly-1.44.2.dev20250407.data → streamlit_nightly-1.44.2.dev20250409.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.44.2.dev20250407.dist-info → streamlit_nightly-1.44.2.dev20250409.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.44.2.dev20250407.dist-info → streamlit_nightly-1.44.2.dev20250409.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.44.2.dev20250407.dist-info → streamlit_nightly-1.44.2.dev20250409.dist-info}/top_level.txt +0 -0
@@ -1,2 +0,0 @@
|
|
1
|
-
import{n as jt,r as Ce,bh as Vt,j as lt,F as $t}from"./index.5KFYXBbC.js";/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:gt,setPrototypeOf:ct,isFrozen:qt,getPrototypeOf:Kt,getOwnPropertyDescriptor:Zt}=Object;let{freeze:S,seal:L,create:ht}=Object,{apply:we,construct:xe}=typeof Reflect<"u"&&Reflect;S||(S=function(n){return n});L||(L=function(n){return n});we||(we=function(n,l,r){return n.apply(l,r)});xe||(xe=function(n,l){return new n(...l)});const se=R(Array.prototype.forEach),Jt=R(Array.prototype.lastIndexOf),ft=R(Array.prototype.pop),V=R(Array.prototype.push),Qt=R(Array.prototype.splice),ce=R(String.prototype.toLowerCase),be=R(String.prototype.toString),ut=R(String.prototype.match),$=R(String.prototype.replace),en=R(String.prototype.indexOf),tn=R(String.prototype.trim),b=R(Object.prototype.hasOwnProperty),A=R(RegExp.prototype.test),q=nn(TypeError);function R(a){return function(n){for(var l=arguments.length,r=new Array(l>1?l-1:0),u=1;u<l;u++)r[u-1]=arguments[u];return we(a,n,r)}}function nn(a){return function(){for(var n=arguments.length,l=new Array(n),r=0;r<n;r++)l[r]=arguments[r];return xe(a,l)}}function s(a,n){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ce;ct&&ct(a,null);let r=n.length;for(;r--;){let u=n[r];if(typeof u=="string"){const y=l(u);y!==u&&(qt(n)||(n[r]=y),u=y)}a[u]=!0}return a}function on(a){for(let n=0;n<a.length;n++)b(a,n)||(a[n]=null);return a}function x(a){const n=ht(null);for(const[l,r]of gt(a))b(a,l)&&(Array.isArray(r)?n[l]=on(r):r&&typeof r=="object"&&r.constructor===Object?n[l]=x(r):n[l]=r);return n}function K(a,n){for(;a!==null;){const r=Zt(a,n);if(r){if(r.get)return R(r.get);if(typeof r.value=="function")return R(r.value)}a=Kt(a)}function l(){return null}return l}const mt=S(["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","section","select","shadow","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"]),Ne=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),De=S(["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=S(["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"]),Ie=S(["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=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pt=S(["#text"]),dt=S(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Me=S(["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"]),Tt=S(["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"]),le=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),sn=L(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ln=L(/<%[\w\W]*|[\w\W]*%>/gm),cn=L(/\$\{[\w\W]*/gm),fn=L(/^data-[\-\w.\u00B7-\uFFFF]+$/),un=L(/^aria-[\-\w]+$/),At=L(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mn=L(/^(?:\w+script|data):/i),pn=L(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),St=L(/^html$/i),dn=L(/^[a-z][.\w]*(-[.\w]+)+$/i);var Et=Object.freeze({__proto__:null,ARIA_ATTR:un,ATTR_WHITESPACE:pn,CUSTOM_ELEMENT:dn,DATA_ATTR:fn,DOCTYPE_NAME:St,ERB_EXPR:ln,IS_ALLOWED_URI:At,IS_SCRIPT_OR_DATA:mn,MUSTACHE_EXPR:sn,TMPLIT_EXPR:cn});const Z={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tn=function(){return typeof window>"u"?null:window},En=function(n,l){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const u="data-tt-policy-suffix";l&&l.hasAttribute(u)&&(r=l.getAttribute(u));const y="dompurify"+(r?"#"+r:"");try{return n.createPolicy(y,{createHTML(I){return I},createScriptURL(I){return I}})}catch{return console.warn("TrustedTypes policy "+y+" could not be created."),null}},_t=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Rt(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn();const n=i=>Rt(i);if(n.version="3.2.4",n.removed=[],!a||!a.document||a.document.nodeType!==Z.document||!a.Element)return n.isSupported=!1,n;let{document:l}=a;const r=l,u=r.currentScript,{DocumentFragment:y,HTMLTemplateElement:I,Node:fe,Element:ve,NodeFilter:z,NamedNodeMap:Ot=a.NamedNodeMap||a.MozNamedAttrMap,HTMLFormElement:yt,DOMParser:Lt,trustedTypes:J}=a,G=ve.prototype,bt=K(G,"cloneNode"),Nt=K(G,"remove"),Dt=K(G,"nextSibling"),It=K(G,"childNodes"),Q=K(G,"parentNode");if(typeof I=="function"){const i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let _,W="";const{implementation:ue,createNodeIterator:Mt,createDocumentFragment:Ct,getElementsByTagName:wt}=l,{importNode:xt}=r;let g=_t();n.isSupported=typeof gt=="function"&&typeof Q=="function"&&ue&&ue.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:pe,TMPLIT_EXPR:de,DATA_ATTR:Pt,ARIA_ATTR:kt,IS_SCRIPT_OR_DATA:vt,ATTR_WHITESPACE:Ue,CUSTOM_ELEMENT:Ut}=Et;let{IS_ALLOWED_URI:Fe}=Et,m=null;const He=s({},[...mt,...Ne,...De,...Ie,...pt]);let d=null;const ze=s({},[...dt,...Me,...Tt,...le]);let f=Object.seal(ht(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}})),B=null,Te=null,Ge=!0,Ee=!0,We=!1,Be=!0,P=!1,_e=!0,w=!1,ge=!1,he=!1,k=!1,ee=!1,te=!1,Ye=!0,Xe=!1;const Ft="user-content-";let Ae=!0,Y=!1,v={},U=null;const je=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 Ve=null;const $e=s({},["audio","video","img","source","image","track"]);let Se=null;const qe=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ne="http://www.w3.org/1998/Math/MathML",oe="http://www.w3.org/2000/svg",M="http://www.w3.org/1999/xhtml";let F=M,Re=!1,Oe=null;const Ht=s({},[ne,oe,M],be);let ie=s({},["mi","mo","mn","ms","mtext"]),ae=s({},["annotation-xml"]);const zt=s({},["title","style","font","a","script"]);let X=null;const Gt=["application/xhtml+xml","text/html"],Wt="text/html";let p=null,H=null;const Bt=l.createElement("form"),Ke=function(e){return e instanceof RegExp||e instanceof Function},ye=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(H&&H===e)){if((!e||typeof e!="object")&&(e={}),e=x(e),X=Gt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Wt:e.PARSER_MEDIA_TYPE,p=X==="application/xhtml+xml"?be:ce,m=b(e,"ALLOWED_TAGS")?s({},e.ALLOWED_TAGS,p):He,d=b(e,"ALLOWED_ATTR")?s({},e.ALLOWED_ATTR,p):ze,Oe=b(e,"ALLOWED_NAMESPACES")?s({},e.ALLOWED_NAMESPACES,be):Ht,Se=b(e,"ADD_URI_SAFE_ATTR")?s(x(qe),e.ADD_URI_SAFE_ATTR,p):qe,Ve=b(e,"ADD_DATA_URI_TAGS")?s(x($e),e.ADD_DATA_URI_TAGS,p):$e,U=b(e,"FORBID_CONTENTS")?s({},e.FORBID_CONTENTS,p):je,B=b(e,"FORBID_TAGS")?s({},e.FORBID_TAGS,p):{},Te=b(e,"FORBID_ATTR")?s({},e.FORBID_ATTR,p):{},v=b(e,"USE_PROFILES")?e.USE_PROFILES:!1,Ge=e.ALLOW_ARIA_ATTR!==!1,Ee=e.ALLOW_DATA_ATTR!==!1,We=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,P=e.SAFE_FOR_TEMPLATES||!1,_e=e.SAFE_FOR_XML!==!1,w=e.WHOLE_DOCUMENT||!1,k=e.RETURN_DOM||!1,ee=e.RETURN_DOM_FRAGMENT||!1,te=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,Ye=e.SANITIZE_DOM!==!1,Xe=e.SANITIZE_NAMED_PROPS||!1,Ae=e.KEEP_CONTENT!==!1,Y=e.IN_PLACE||!1,Fe=e.ALLOWED_URI_REGEXP||At,F=e.NAMESPACE||M,ie=e.MATHML_TEXT_INTEGRATION_POINTS||ie,ae=e.HTML_INTEGRATION_POINTS||ae,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),P&&(Ee=!1),ee&&(k=!0),v&&(m=s({},pt),d=[],v.html===!0&&(s(m,mt),s(d,dt)),v.svg===!0&&(s(m,Ne),s(d,Me),s(d,le)),v.svgFilters===!0&&(s(m,De),s(d,Me),s(d,le)),v.mathMl===!0&&(s(m,Ie),s(d,Tt),s(d,le))),e.ADD_TAGS&&(m===He&&(m=x(m)),s(m,e.ADD_TAGS,p)),e.ADD_ATTR&&(d===ze&&(d=x(d)),s(d,e.ADD_ATTR,p)),e.ADD_URI_SAFE_ATTR&&s(Se,e.ADD_URI_SAFE_ATTR,p),e.FORBID_CONTENTS&&(U===je&&(U=x(U)),s(U,e.FORBID_CONTENTS,p)),Ae&&(m["#text"]=!0),w&&s(m,["html","head","body"]),m.table&&(s(m,["tbody"]),delete B.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,W=_.createHTML("")}else _===void 0&&(_=En(J,u)),_!==null&&typeof W=="string"&&(W=_.createHTML(""));S&&S(e),H=e}},Ze=s({},[...Ne,...De,...an]),Je=s({},[...Ie,...rn]),Yt=function(e){let t=Q(e);(!t||!t.tagName)&&(t={namespaceURI:F,tagName:"template"});const o=ce(e.tagName),c=ce(t.tagName);return Oe[e.namespaceURI]?e.namespaceURI===oe?t.namespaceURI===M?o==="svg":t.namespaceURI===ne?o==="svg"&&(c==="annotation-xml"||ie[c]):!!Ze[o]:e.namespaceURI===ne?t.namespaceURI===M?o==="math":t.namespaceURI===oe?o==="math"&&ae[c]:!!Je[o]:e.namespaceURI===M?t.namespaceURI===oe&&!ae[c]||t.namespaceURI===ne&&!ie[c]?!1:!Je[o]&&(zt[o]||!Ze[o]):!!(X==="application/xhtml+xml"&&Oe[e.namespaceURI]):!1},N=function(e){V(n.removed,{element:e});try{Q(e).removeChild(e)}catch{Nt(e)}},re=function(e,t){try{V(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{V(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(k||ee)try{N(t)}catch{}else try{t.setAttribute(e,"")}catch{}},Qe=function(e){let t=null,o=null;if(he)e="<remove></remove>"+e;else{const T=ut(e,/^[\r\n\t ]+/);o=T&&T[0]}X==="application/xhtml+xml"&&F===M&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const c=_?_.createHTML(e):e;if(F===M)try{t=new Lt().parseFromString(c,X)}catch{}if(!t||!t.documentElement){t=ue.createDocument(F,"template",null);try{t.documentElement.innerHTML=Re?W:c}catch{}}const E=t.body||t.documentElement;return e&&o&&E.insertBefore(l.createTextNode(o),E.childNodes[0]||null),F===M?wt.call(t,w?"html":"body")[0]:w?t.documentElement:E},et=function(e){return Mt.call(e.ownerDocument||e,e,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof yt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Ot)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},tt=function(e){return typeof fe=="function"&&e instanceof fe};function C(i,e,t){se(i,o=>{o.call(n,e,t,H)})}const nt=function(e){let t=null;if(C(g.beforeSanitizeElements,e,null),Le(e))return N(e),!0;const o=p(e.nodeName);if(C(g.uponSanitizeElement,e,{tagName:o,allowedTags:m}),e.hasChildNodes()&&!tt(e.firstElementChild)&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent)||e.nodeType===Z.progressingInstruction||_e&&e.nodeType===Z.comment&&A(/<[/\w]/g,e.data))return N(e),!0;if(!m[o]||B[o]){if(!B[o]&&it(o)&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,o)||f.tagNameCheck instanceof Function&&f.tagNameCheck(o)))return!1;if(Ae&&!U[o]){const c=Q(e)||e.parentNode,E=It(e)||e.childNodes;if(E&&c){const T=E.length;for(let O=T-1;O>=0;--O){const D=bt(E[O],!0);D.__removalCount=(e.__removalCount||0)+1,c.insertBefore(D,Dt(e))}}}return N(e),!0}return e instanceof ve&&!Yt(e)||(o==="noscript"||o==="noembed"||o==="noframes")&&A(/<\/no(script|embed|frames)/i,e.innerHTML)?(N(e),!0):(P&&e.nodeType===Z.text&&(t=e.textContent,se([me,pe,de],c=>{t=$(t,c," ")}),e.textContent!==t&&(V(n.removed,{element:e.cloneNode()}),e.textContent=t)),C(g.afterSanitizeElements,e,null),!1)},ot=function(e,t,o){if(Ye&&(t==="id"||t==="name")&&(o in l||o in Bt))return!1;if(!(Ee&&!Te[t]&&A(Pt,t))){if(!(Ge&&A(kt,t))){if(!d[t]||Te[t]){if(!(it(e)&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&A(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||t==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,o)||f.tagNameCheck instanceof Function&&f.tagNameCheck(o))))return!1}else if(!Se[t]){if(!A(Fe,$(o,Ue,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&en(o,"data:")===0&&Ve[e])){if(!(We&&!A(vt,$(o,Ue,"")))){if(o)return!1}}}}}}return!0},it=function(e){return e!=="annotation-xml"&&ut(e,Ut)},at=function(e){C(g.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Le(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let c=t.length;for(;c--;){const E=t[c],{name:T,namespaceURI:O,value:D}=E,j=p(T);let h=T==="value"?D:tn(D);if(o.attrName=j,o.attrValue=h,o.keepAttr=!0,o.forceKeepAttr=void 0,C(g.uponSanitizeAttribute,e,o),h=o.attrValue,Xe&&(j==="id"||j==="name")&&(re(T,e),h=Ft+h),_e&&A(/((--!?|])>)|<\/(style|title)/i,h)){re(T,e);continue}if(o.forceKeepAttr||(re(T,e),!o.keepAttr))continue;if(!Be&&A(/\/>/i,h)){re(T,e);continue}P&&se([me,pe,de],st=>{h=$(h,st," ")});const rt=p(e.nodeName);if(ot(rt,j,h)){if(_&&typeof J=="object"&&typeof J.getAttributeType=="function"&&!O)switch(J.getAttributeType(rt,j)){case"TrustedHTML":{h=_.createHTML(h);break}case"TrustedScriptURL":{h=_.createScriptURL(h);break}}try{O?e.setAttributeNS(O,T,h):e.setAttribute(T,h),Le(e)?N(e):ft(n.removed)}catch{}}}C(g.afterSanitizeAttributes,e,null)},Xt=function i(e){let t=null;const o=et(e);for(C(g.beforeSanitizeShadowDOM,e,null);t=o.nextNode();)C(g.uponSanitizeShadowNode,t,null),nt(t),at(t),t.content instanceof y&&i(t.content);C(g.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,o=null,c=null,E=null;if(Re=!i,Re&&(i="<!-->"),typeof i!="string"&&!tt(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw q("dirty is not a string, aborting")}else throw q("toString is not a function");if(!n.isSupported)return i;if(ge||ye(e),n.removed=[],typeof i=="string"&&(Y=!1),Y){if(i.nodeName){const D=p(i.nodeName);if(!m[D]||B[D])throw q("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof fe)t=Qe("<!---->"),o=t.ownerDocument.importNode(i,!0),o.nodeType===Z.element&&o.nodeName==="BODY"||o.nodeName==="HTML"?t=o:t.appendChild(o);else{if(!k&&!P&&!w&&i.indexOf("<")===-1)return _&&te?_.createHTML(i):i;if(t=Qe(i),!t)return k?null:te?W:""}t&&he&&N(t.firstChild);const T=et(Y?i:t);for(;c=T.nextNode();)nt(c),at(c),c.content instanceof y&&Xt(c.content);if(Y)return i;if(k){if(ee)for(E=Ct.call(t.ownerDocument);t.firstChild;)E.appendChild(t.firstChild);else E=t;return(d.shadowroot||d.shadowrootmode)&&(E=xt.call(r,E,!0)),E}let O=w?t.outerHTML:t.innerHTML;return w&&m["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&A(St,t.ownerDocument.doctype.name)&&(O="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
2
|
-
`+O),P&&se([me,pe,de],D=>{O=$(O,D," ")}),_&&te?_.createHTML(O):O},n.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ye(i),ge=!0},n.clearConfig=function(){H=null,ge=!1},n.isValidAttribute=function(i,e,t){H||ye({});const o=p(i),c=p(e);return ot(o,c,t)},n.addHook=function(i,e){typeof e=="function"&&V(g[i],e)},n.removeHook=function(i,e){if(e!==void 0){const t=Jt(g[i],e);return t===-1?void 0:Qt(g[i],t,1)[0]}return ft(g[i])},n.removeHooks=function(i){g[i]=[]},n.removeAllHooks=function(){g=_t()},n}var ke=Rt();const _n=jt("div",{target:"ez8s6cm0"})({width:"100%"}),Pe="data-temp-href-target";ke.addHook("beforeSanitizeAttributes",function(a){a instanceof HTMLElement&&a.hasAttribute("target")&&a.getAttribute("target")==="_blank"&&a.setAttribute(Pe,"_blank")});ke.addHook("afterSanitizeAttributes",function(a){a instanceof HTMLElement&&a.hasAttribute(Pe)&&(a.setAttribute("target","_blank"),a.setAttribute("rel","noopener noreferrer"),a.removeAttribute(Pe))});const gn=a=>{const n={USE_PROFILES:{html:!0},FORCE_BODY:!0};return ke.sanitize(a,n)};function hn({element:a}){const{body:n}=a,[l,r]=Vt(),u=Ce.useMemo(()=>gn(n),[n]);return Ce.useEffect(()=>{var y,I;((y=r.current)==null?void 0:y.clientHeight)===0&&l>=0&&((I=r.current.parentElement)==null?void 0:I.childElementCount)===1&&r.current.parentElement.classList.add("stHtml-empty")}),lt($t,{children:u&<(_n,{className:"stHtml","data-testid":"stHtml",ref:r,dangerouslySetInnerHTML:{__html:u}})})}const Sn=Ce.memo(hn);export{Sn as default};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{n as p,r as n,aD as x,bg as h,z as y,bh as C,j as i,aZ as w}from"./index.5KFYXBbC.js";const b=p("div",{target:"ek8upll0"})(({theme:e,isExpanded:t})=>({width:"100%",...t?{position:"fixed",top:0,left:0,bottom:0,right:0,background:e.colors.bgColor,zIndex:e.zIndices.fullscreenWrapper,padding:e.spacing.md,paddingTop:e.sizes.fullScreenHeaderHeight,overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{}})),f=n.createContext(null);f.displayName="ElementFullscreenContext";const g=e=>{const t=n.useContext(e);if(t==null)throw new Error(`useRequiredContext: ${e.displayName??"context"} not found`);return t},F=()=>{const{setFullScreen:e}=n.useContext(x),[t,u]=n.useState(!1),{fullHeight:s,fullWidth:c}=g(h),o=n.useCallback(a=>{u(a),e(a)},[e]),d=n.useCallback(()=>{document.body.style.overflow="hidden",o(!0)},[o]),l=n.useCallback(()=>{document.body.style.overflow="unset",o(!1)},[o]),r=n.useCallback(a=>{a.keyCode===27&&t&&l()},[l,t]);return n.useEffect(()=>(document.addEventListener("keydown",r,!1),()=>{document.removeEventListener("keydown",r,!1)}),[r]),n.useMemo(()=>({expanded:t,zoomIn:d,zoomOut:l,fullHeight:s,fullWidth:c}),[t,d,l,s,c])},S=({children:e,height:t})=>{const u=y(),{expanded:s,fullHeight:c,fullWidth:o,zoomIn:d,zoomOut:l}=F(),[r,a]=C(),m=n.useMemo(()=>({width:s?o:r,height:s?c:t,expanded:s,expand:d,collapse:l}),[s,c,o,t,r,d,l]);return i(f.Provider,{value:m,children:i(b,{ref:a,isExpanded:s,"data-testid":"stFullScreenFrame",theme:u,children:e})})};function E(e){const t=u=>i(S,{children:i(e,{...u})});return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,w(t,e)}export{f as E,g as u,E as w};
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|