/*! * (C) Ionic http://ionicframework.com - MIT License */ const t=t=>{try{if(t instanceof c)return t.value;if(!e()||"string"!=typeof t||""===t)return t;if(t.includes("onload="))return"";const r=document.createDocumentFragment(),i=document.createElement("div");r.appendChild(i),i.innerHTML=t,s.forEach((t=>{const e=r.querySelectorAll(t);for(let t=e.length-1;t>=0;t--){const s=e[t];s.parentNode?s.parentNode.removeChild(s):r.removeChild(s);const c=o(s);for(let t=0;t{if(t.nodeType&&1!==t.nodeType)return;if("undefined"!=typeof NamedNodeMap&&!(t.attributes instanceof NamedNodeMap))return void t.remove();for(let n=t.attributes.length-1;n>=0;n--){const o=t.attributes.item(n),e=o.name;if(!r.includes(e.toLowerCase())){t.removeAttribute(e);continue}const s=o.value,c=t[e];(null!=s&&s.toLowerCase().includes("javascript:")||null!=c&&c.toLowerCase().includes("javascript:"))&&t.removeAttribute(e)}const e=o(t);for(let t=0;tnull!=t.children?t.children:t.childNodes,e=()=>{var t;const n=window,o=null===(t=null==n?void 0:n.Ionic)||void 0===t?void 0:t.config;return!o||(o.get?o.get("sanitizerEnabled",!0):!0===o.sanitizerEnabled||void 0===o.sanitizerEnabled)},r=["class","id","href","src","name","slot"],s=["script","style","iframe","meta","link","object","embed"];class c{constructor(t){this.value=t}}const i=t=>{const n=window,o=n.Ionic;if(!o||!o.config||"Object"===o.config.constructor.name)return n.Ionic=n.Ionic||{},n.Ionic.config=Object.assign(Object.assign({},n.Ionic.config),t),n.Ionic.config},d=()=>{var t;const n=window,o=null===(t=null==n?void 0:n.Ionic)||void 0===t?void 0:t.config;return o?o.mode?o.mode:o.get("mode"):"md"},l=!1;export{l as E,c as I,t as a,d as g,i as s}