@esri/solutions-components 5.1.10 → 5.1.12

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.
Files changed (165) hide show
  1. package/dist/cdn/{KTPO53JO.js → 2MNK2M2M.js} +1 -1
  2. package/dist/cdn/{2HPIGWIB.js → 2PTMXOMF.js} +1 -1
  3. package/dist/cdn/2Q4QB7TO.js +2 -0
  4. package/dist/cdn/{UOMLB2VF.js → 2VGOP33I.js} +1 -1
  5. package/dist/cdn/{35CQS4OH.js → 2WAKABNP.js} +1 -1
  6. package/dist/cdn/{CPUKQ2OY.js → 32WAEWTQ.js} +1 -1
  7. package/dist/cdn/{6PJXRZLY.js → 3BNJMNCD.js} +1 -1
  8. package/dist/cdn/{2K2YQ45L.js → 3Q6BLEUW.js} +1 -1
  9. package/dist/cdn/{WWTVTT5J.js → 457IM76B.js} +1 -1
  10. package/dist/cdn/{DAQ57N3D.js → 4AHNA557.js} +1 -1
  11. package/dist/cdn/{VUOKGQXZ.js → 4GPNCEKH.js} +1 -1
  12. package/dist/cdn/{GACGFXNN.js → 4OIVPXP3.js} +1 -1
  13. package/dist/cdn/{OLYZZUDI.js → 4RQL5YHI.js} +1 -1
  14. package/dist/cdn/{5AQFUEQB.js → 5KRXUSOX.js} +1 -1
  15. package/dist/cdn/{4LAXSM63.js → 5KY4HLRS.js} +1 -1
  16. package/dist/cdn/{4YCW3VWN.js → 5Z4SUP7T.js} +1 -1
  17. package/dist/cdn/{XV6XQ6BU.js → 67BBZSAM.js} +1 -1
  18. package/dist/cdn/{4CDVQJQA.js → 6DGA5RSD.js} +1 -1
  19. package/dist/cdn/{C5KDPY7R.js → 6DJOSQ7E.js} +1 -1
  20. package/dist/cdn/{V7HVK5MH.js → 6LRXKHHM.js} +1 -1
  21. package/dist/cdn/6OHUYDZC.js +2 -0
  22. package/dist/cdn/{OOVVT6VG.js → 6R6R4TFH.js} +1 -1
  23. package/dist/cdn/{4PJ467WK.js → 7AGZWUUJ.js} +1 -1
  24. package/dist/cdn/{RUMT4B4X.js → 7DSKOZI7.js} +1 -1
  25. package/dist/cdn/{6Z3LGOUQ.js → 7LWYVZJS.js} +1 -1
  26. package/dist/cdn/{XJQG7EGF.js → 7TAWNPBZ.js} +1 -1
  27. package/dist/cdn/{WKO7FD3G.js → 7WIJOZY6.js} +1 -1
  28. package/dist/cdn/{V232YHD7.js → A3WAZRSL.js} +1 -1
  29. package/dist/cdn/{Z7C3QF2Q.js → ACCXBTM6.js} +1 -1
  30. package/dist/cdn/ACTGIDKO.js +4 -0
  31. package/dist/cdn/{FXDJTMGY.js → AK6SGWFY.js} +1 -1
  32. package/dist/cdn/{P2RGP6L2.js → AQMPJ6TG.js} +1 -1
  33. package/dist/cdn/{5FDLHAS4.js → BIXXUZLW.js} +1 -1
  34. package/dist/cdn/{XQBLBK5A.js → BLEYIRYP.js} +1 -1
  35. package/dist/cdn/{N47PSCNQ.js → BLZW32L2.js} +1 -1
  36. package/dist/cdn/{OKJ6QAHM.js → BOTOPHKQ.js} +1 -1
  37. package/dist/cdn/{2ZDSUBVY.js → BVHDC4HW.js} +1 -1
  38. package/dist/cdn/{SUGRUFSJ.js → C5VZOL4I.js} +1 -1
  39. package/dist/cdn/{YM4U4HSN.js → CMCDRXVO.js} +1 -1
  40. package/dist/cdn/COSMV4TW.js +2 -0
  41. package/dist/cdn/{B4JCBMGE.js → COXJFTQE.js} +1 -1
  42. package/dist/cdn/{KX6TYZ5K.js → CQWSM2QS.js} +1 -1
  43. package/dist/cdn/{ZTVNKDEK.js → CTCWANBA.js} +1 -1
  44. package/dist/cdn/{FDX3I6JP.js → CUIC7YIY.js} +1 -1
  45. package/dist/cdn/{SHQFXQEI.js → D53I5PX3.js} +1 -1
  46. package/dist/cdn/{DI3IFDJG.js → DVCHUTGL.js} +1 -1
  47. package/dist/cdn/{AHI2MTG5.js → DXWDIRXT.js} +1 -1
  48. package/dist/cdn/{PA7UC7MJ.js → EKAMSP2I.js} +1 -1
  49. package/dist/cdn/EXPBVOCZ.js +2 -0
  50. package/dist/cdn/{GEEMZCDZ.js → F6KYF65C.js} +1 -1
  51. package/dist/cdn/{L4EVXVMR.js → FE2JEI24.js} +1 -1
  52. package/dist/cdn/{THZKWIXD.js → FETSFCBL.js} +1 -1
  53. package/dist/cdn/{VMDJMTU2.js → FM47F4IP.js} +1 -1
  54. package/dist/cdn/{RKJHNKGM.js → GDBULXEH.js} +1 -1
  55. package/dist/cdn/{CQYD3TH5.js → GFJKJUVU.js} +1 -1
  56. package/dist/cdn/{ELGHSGTO.js → GICK5T3K.js} +1 -1
  57. package/dist/cdn/GMBKLZ7L.js +2 -0
  58. package/dist/cdn/{BQLGP7UD.js → GMHKIHCY.js} +1 -1
  59. package/dist/cdn/GPJOHTN2.js +2 -0
  60. package/dist/cdn/{M6YYTOSO.js → H2N3DWE3.js} +2 -2
  61. package/dist/cdn/{AZJYH7I7.js → H3NTIWHD.js} +1 -1
  62. package/dist/cdn/{F2EGGQ3W.js → HFWBH4NP.js} +1 -1
  63. package/dist/cdn/{MZLGG4TG.js → HKYICIPA.js} +1 -1
  64. package/dist/cdn/{AIFW3W6B.js → HR3I4AKU.js} +1 -1
  65. package/dist/cdn/{XYIGNT62.js → HXRZFGOY.js} +1 -1
  66. package/dist/cdn/{PUFUUKRQ.js → IJCFPV64.js} +1 -1
  67. package/dist/cdn/{PZRAETRN.js → IR62FFTY.js} +1 -1
  68. package/dist/cdn/{A6BQFFPE.js → J5QSJIKI.js} +1 -1
  69. package/dist/cdn/{DLAKQTNZ.js → JVPJ55OU.js} +1 -1
  70. package/dist/cdn/{KIEHSIOJ.js → JYSAPVP6.js} +1 -1
  71. package/dist/cdn/{BLUKS5FJ.js → KHQOH5SY.js} +1 -1
  72. package/dist/cdn/{C34LZE4Q.js → KMN7UYCS.js} +1 -1
  73. package/dist/cdn/L3DICS7J.js +2 -0
  74. package/dist/cdn/{QF5BFH3R.js → LDZAYZBC.js} +1 -1
  75. package/dist/cdn/{4VV7DDBG.js → LFBK5LL3.js} +1 -1
  76. package/dist/cdn/{5HJ6EE4G.js → LL7F77JR.js} +1 -1
  77. package/dist/cdn/{CPOU3UCE.js → LT6TNRF6.js} +1 -1
  78. package/dist/cdn/{FFSZ5CYN.js → LXV4DUWX.js} +1 -1
  79. package/dist/cdn/LYUPBV3Q.js +358 -0
  80. package/dist/cdn/{AE272XE3.js → LZXRP7BT.js} +1 -1
  81. package/dist/cdn/{OQWPF3PK.js → M6KMGWHY.js} +112 -112
  82. package/dist/cdn/{IJR4CI4G.js → MKC6TXIJ.js} +1 -1
  83. package/dist/cdn/{WZMO2SQE.js → MPOW6X2Q.js} +1 -1
  84. package/dist/cdn/{SPBY5FBC.js → MQKP6YSO.js} +1 -1
  85. package/dist/cdn/{ECEZOF4D.js → N2IAIH6E.js} +1 -1
  86. package/dist/cdn/{4R2OJQVH.js → NFLDV2BR.js} +1 -1
  87. package/dist/cdn/{WJ5N6JPF.js → NFTILQ3U.js} +1 -1
  88. package/dist/cdn/{SIBQRSHI.js → NT2KAJ24.js} +1 -1
  89. package/dist/cdn/{TE2VLVWS.js → NTDKTPEM.js} +1 -1
  90. package/dist/cdn/NTFCCNHZ.js +2 -0
  91. package/dist/cdn/{RUNSGWMR.js → NW2ZINAM.js} +1 -1
  92. package/dist/cdn/{ASQ2ASAR.js → NYLOU7ZM.js} +1 -1
  93. package/dist/cdn/{PPEPIUC4.js → O24QAFNA.js} +1 -1
  94. package/dist/cdn/{RQ6B7DOH.js → OIGQMEOA.js} +1 -1
  95. package/dist/cdn/{676PIMSM.js → OLSMTDUD.js} +1 -1
  96. package/dist/cdn/{JOH2V3WI.js → OQUU2BPX.js} +1 -1
  97. package/dist/cdn/{GC3FZF6H.js → OZMIISOL.js} +1 -1
  98. package/dist/cdn/{6GVJDW4C.js → PFI2WBBU.js} +1 -1
  99. package/dist/cdn/{3EZYKC6C.js → PHTD6XJU.js} +1 -1
  100. package/dist/cdn/{NWVVA2OS.js → PIVCBKS2.js} +1 -1
  101. package/dist/cdn/PJ7NZ4M6.js +2 -0
  102. package/dist/cdn/{4E4CF6Q7.js → QAVOSU5J.js} +1 -1
  103. package/dist/cdn/{NCCSRCZ2.js → QFRV5L7Q.js} +1 -1
  104. package/dist/cdn/{5MYEU5AR.js → QQL4IXXC.js} +1 -1
  105. package/dist/cdn/{MA4TKCKK.js → R5ZOW7UQ.js} +1 -1
  106. package/dist/cdn/{KJ3CURXB.js → RCUY64AW.js} +1 -1
  107. package/dist/cdn/{3REF4TDF.js → RRI2ETOQ.js} +1 -1
  108. package/dist/cdn/{SIQTPM44.js → RUT4YHDB.js} +1 -1
  109. package/dist/cdn/RYASHZOG.js +2 -0
  110. package/dist/cdn/{XUOTOCCL.js → S2E4VZKV.js} +1 -1
  111. package/dist/cdn/{MCV6DHJB.js → S5QUASO4.js} +1 -1
  112. package/dist/cdn/{7VY6KY45.js → TBSQOQZJ.js} +1 -1
  113. package/dist/cdn/{N5GSNHSN.js → TCPO7PEE.js} +1 -1
  114. package/dist/cdn/{WQ5ENRKJ.js → TM3HQUQN.js} +1 -1
  115. package/dist/cdn/{FCBPBLC6.js → TPEN36NI.js} +1 -1
  116. package/dist/cdn/{DYEOE6I6.js → TPQYGT3D.js} +1 -1
  117. package/dist/cdn/{PAV6AMLY.js → TUU4N22R.js} +1 -1
  118. package/dist/cdn/{5T64N34W.js → TVQ4LX3S.js} +1 -1
  119. package/dist/cdn/{IIJ5ZZTX.js → TWCRSSGO.js} +1 -1
  120. package/dist/cdn/{I3OUQRK4.js → U2J33BNN.js} +1 -1
  121. package/dist/cdn/{XR6IYM4R.js → UNCNKYZ5.js} +1 -1
  122. package/dist/cdn/{6EQSEEAD.js → UO6VHOEP.js} +1 -1
  123. package/dist/cdn/{TDKGF25P.js → UP2QQ6SM.js} +1 -1
  124. package/dist/cdn/{UG3QQIMB.js → UQ2YJTC2.js} +1 -1
  125. package/dist/cdn/{I4GVAMDM.js → VCBFHQXN.js} +1 -1
  126. package/dist/cdn/{ZFBW6LYC.js → VINK2SLZ.js} +1 -1
  127. package/dist/cdn/{Q7SDLDQW.js → VIV4OT32.js} +1 -1
  128. package/dist/cdn/WDSHKWCQ.js +2 -0
  129. package/dist/cdn/{FSKZZJUF.js → WHAWIESZ.js} +1 -1
  130. package/dist/cdn/{K5VCPN45.js → WLHWENZ3.js} +1 -1
  131. package/dist/cdn/WPDKKXGG.js +7 -0
  132. package/dist/cdn/WRO2YCVL.js +2 -0
  133. package/dist/cdn/{CQE44Z6L.js → XT7FRIZE.js} +1 -1
  134. package/dist/cdn/{PIXT3QPN.js → YQI2AE2N.js} +1 -1
  135. package/dist/cdn/YQJQT3CK.js +2 -0
  136. package/dist/cdn/{W2MQCT4W.js → Z3W4TEJR.js} +1 -1
  137. package/dist/cdn/{PIJIETWD.js → Z7SEICRM.js} +1 -1
  138. package/dist/cdn/{DKY76MHW.js → ZDXFFQJI.js} +1 -1
  139. package/dist/cdn/{EUG36OCW.js → ZJG6BJZB.js} +1 -1
  140. package/dist/cdn/index.js +1 -1
  141. package/dist/chunks/runtime.js +1 -1
  142. package/dist/components/layer-table/customElement.js +122 -82
  143. package/dist/components/map-card/customElement.js +29 -24
  144. package/dist/docs/api.json +1 -1
  145. package/dist/docs/docs.json +1 -1
  146. package/dist/docs/web-types.json +1 -1
  147. package/dist/solutions-components_commit.txt +4 -4
  148. package/package.json +1 -1
  149. package/dist/cdn/25QMR32G.js +0 -2
  150. package/dist/cdn/3WOIIFS2.js +0 -2
  151. package/dist/cdn/BL4VPKUH.js +0 -2
  152. package/dist/cdn/CJ3EZE7U.js +0 -2
  153. package/dist/cdn/CYMX2JCD.js +0 -2
  154. package/dist/cdn/DF5KXARH.js +0 -2
  155. package/dist/cdn/E6L2N2MO.js +0 -2
  156. package/dist/cdn/EKB54JZO.js +0 -2
  157. package/dist/cdn/IADXB53D.js +0 -2
  158. package/dist/cdn/PGR3XQ7V.js +0 -2
  159. package/dist/cdn/U65LFJEF.js +0 -2
  160. package/dist/cdn/WHUO5NPJ.js +0 -7
  161. package/dist/cdn/WTSL6A4A.js +0 -2
  162. package/dist/cdn/XEXP4MZX.js +0 -351
  163. package/dist/cdn/XXIEONFX.js +0 -2
  164. package/dist/cdn/YJQ6BJTX.js +0 -2
  165. package/dist/cdn/YVWFYZTI.js +0 -4
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{I as s}from"./T3EPRHTT.js";var t=s({defaultAssetPath:"https://js.arcgis.com/5.1.9/solutions-components/",hydratedAttribute:"hydrated"}),{customElement:i,getAssetPath:n,setAssetPath:u}=t;t.t=void 0;t.o=void 0;t.c=void 0;t.r=void 0;export{t as a,i as b,n as c};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as v}from"./CJ3EZE7U.js";import"./C5KDPY7R.js";import"./YM4U4HSN.js";import{a as g}from"./IADXB53D.js";import b from"./QZ2ZMWIH.js";import a from"./CS5N3DOL.js";import{a as p}from"./OKJ6QAHM.js";import{b as l}from"./ZTVNKDEK.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{H as o,J as d,L as c,h as s,i as t,q as r}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,{b:h}])=>{var x=s`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: 500;--instant-apps-interactive-legend-secondary-color: var( --calcite-color-text-1 );--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .instant-apps-interactive-legend__header--compact .esri-widget__heading{font-size:.9rem}:host .esri-widget__heading{overflow:hidden;margin:0;display:inline-block;font-size:var(--calcite-font-size-1);font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}:host header{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host header h3{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color);margin-bottom:5px}:host header .instant-apps-interactive-legend__heading-text--group-item{-webkit-line-clamp:2;line-clamp:2}:host header span{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}:host header .instant-apps-interactive-legend__header-action-container{display:flex;align-items:center}:host .esri-widget__heading header{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .esri-widget--panel{margin:0}:host(.calcite-mode-dark) .instant-apps-interactive-legend__header{background-color:#242424;color:var(--calcite-color-text-1)}:host(.calcite-mode-light) .instant-apps-interactive-legend__header{background-color:#fff;color:var(--calcite-color-text-1)}`,e={label:"esri-legend__service-label",header:"esri-widget__heading",interacitveLegendHeader:"instant-apps-interactive-legend__header",headerActionContainer:"instant-apps-interactive-legend__header-action-container",compact:"instant-apps-interactive-legend__header--compact"},a=class extends o{constructor(){super(...arguments),this._messages=p({name:"instant-apps-interactive-legend"}),this.isChild=!1,this.expanded=!0,this.layerCaptionElementExpandUpdated=r()}static{this.properties={legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5,expanded:5}}static{this.styles=x}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.layerCaptionElementExpandUpdated.emit(this.expanded)}}render(){let m=v(this.activeLayerInfo),{expanded:n}=this,i=n?this._messages?.collapse:this._messages?.expand,f=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"",_=h.get("compact")?` ${e.compact}`:"";return t`<header class=${`${e.interacitveLegendHeader} ${g(this.el)}${_}`}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${i??""} .label=${i} scale=s></calcite-action><span><span class=${d(e.headerActionContainer)}><h3 class=${`${e.header} ${e.label}${f}`} title=${this.activeLayerInfo?.title??""??c}>${this.activeLayerInfo?.title}</h3></span>${this.featureCount&&m?t`<instant-apps-interactive-legend-count .activeLayerInfo=${this.activeLayerInfo} show-total .legendvm=${this.legendvm}></instant-apps-interactive-legend-count>`:null}</span></header>`}};l("instant-apps-interactive-legend-layer-element-caption",a);return a},a,b)
@@ -1,4 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import"./EXBEKVP5.js";function Mt(n,o){(o==null||o>n.length)&&(o=n.length);for(var s=0,l=Array(o);s<o;s++)l[s]=n[s];return l}function Nn(n){if(Array.isArray(n))return n}function In(n,o){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var l,u,m,N,re=[],w=!0,ie=!1;try{if(m=(s=s.call(n)).next,o!==0)for(;!(w=(l=m.call(s)).done)&&(re.push(l.value),re.length!==o);w=!0);}catch(Ie){ie=!0,u=Ie}finally{try{if(!w&&s.return!=null&&(N=s.return(),Object(N)!==N))return}finally{if(ie)throw u}}return re}}function Dn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ln(n,o){return Nn(n)||In(n,o)||wn(n,o)||Dn()}function wn(n,o){if(n){if(typeof n=="string")return Mt(n,o);var s={}.toString.call(n).slice(8,-1);return s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set"?Array.from(n):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Mt(n,o):void 0}}var $t=Object.entries,Pt=Object.setPrototypeOf,Cn=Object.isFrozen,Mn=Object.getPrototypeOf,Pn=Object.getOwnPropertyDescriptor,O=Object.freeze,R=Object.seal,oe=Object.create,Xt=typeof Reflect<"u"&&Reflect,Qe=Xt.apply,et=Xt.construct;O||(O=function(o){return o});R||(R=function(o){return o});Qe||(Qe=function(o,s){for(var l=arguments.length,u=new Array(l>2?l-2:0),m=2;m<l;m++)u[m-2]=arguments[m];return o.apply(s,u)});et||(et=function(o){for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];return new o(...l)});var me=A(Array.prototype.forEach),xn=A(Array.prototype.lastIndexOf),xt=A(Array.prototype.pop),ne=A(Array.prototype.push),kn=A(Array.prototype.splice),Y=Array.isArray,_e=A(String.prototype.toLowerCase),Ve=A(String.prototype.toString),kt=A(String.prototype.match),de=A(String.prototype.replace),vt=A(String.prototype.indexOf),vn=A(String.prototype.trim),Un=A(Number.prototype.toString),Fn=A(Boolean.prototype.toString),Ut=typeof BigInt>"u"?null:A(BigInt.prototype.toString),Ft=typeof Symbol>"u"?null:A(Symbol.prototype.toString),S=A(Object.prototype.hasOwnProperty),Te=A(Object.prototype.toString),b=A(RegExp.prototype.test),q=zn(TypeError);function A(n){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];return Qe(n,o,l)}}function zn(n){return function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return et(n,s)}}function f(n,o){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_e;if(Pt&&Pt(n,null),!Y(o))return n;let l=o.length;for(;l--;){let u=o[l];if(typeof u=="string"){let m=s(u);m!==u&&(Cn(o)||(o[l]=m),u=m)}n[u]=!0}return n}function Hn(n){for(let o=0;o<n.length;o++)S(n,o)||(n[o]=null);return n}function D(n){let o=oe(null);for(let l of $t(n)){var s=Ln(l,2);let u=s[0],m=s[1];S(n,u)&&(Y(m)?o[u]=Hn(m):m&&typeof m=="object"&&m.constructor===Object?o[u]=D(m):o[u]=m)}return o}function Gn(n){switch(typeof n){case"string":return n;case"number":return Un(n);case"boolean":return Fn(n);case"bigint":return Ut?Ut(n):"0";case"symbol":return Ft?Ft(n):"Symbol()";case"undefined":return Te(n);case"function":case"object":{if(n===null)return Te(n);let o=n,s=U(o,"toString");if(typeof s=="function"){let l=s(o);return typeof l=="string"?l:Te(l)}return Te(n)}default:return Te(n)}}function U(n,o){for(;n!==null;){let l=Pn(n,o);if(l){if(l.get)return A(l.get);if(typeof l.value=="function")return A(l.value)}n=Mn(n)}function s(){return null}return s}function Bn(n){try{return b(n,""),!0}catch{return!1}}var zt=O(["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"]),qe=O(["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"]),Ke=O(["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"]),Wn=O(["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=O(["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"]),Yn=O(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ht=O(["#text"]),Gt=O(["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","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"]),Je=O(["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"]),Bt=O(["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"]),Ne=O(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),jn=R(/{{[\w\W]*|^[\w\W]*}}/g),$n=R(/<%[\w\W]*|^[\w\W]*%>/g),Xn=R(/\${[\w\W]*/g),Vn=R(/^data-[\-\w.\u00B7-\uFFFF]+$/),qn=R(/^aria-[\-\w]+$/),Wt=R(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Kn=R(/^(?:\w+script|data):/i),Zn=R(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Jn=R(/^html$/i),Qn=R(/^[a-z][.\w]*(-[.\w]+)+$/i),Yt=R(/<[/\w!]/g),eo=R(/<[/\w]/g),to=R(/<\/no(script|embed|frames)/i),no=R(/\/>/i),v={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},oo=function(){return typeof window>"u"?null:window},ro=function(o,s){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let l=null,u="data-tt-policy-suffix";s&&s.hasAttribute(u)&&(l=s.getAttribute(u));let m="dompurify"+(l?"#"+l:"");try{return o.createPolicy(m,{createHTML(N){return N},createScriptURL(N){return N}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},jt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},W=function(o,s,l,u){return S(o,s)&&Y(o[s])?f(u.base?D(u.base):{},o[s],u.transform):l};function Vt(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oo(),o=i=>Vt(i);if(o.version="3.4.11",o.removed=[],!n||!n.document||n.document.nodeType!==v.document||!n.Element)return o.isSupported=!1,o;let s=n.document,l=s,u=l.currentScript;n.DocumentFragment;let m=n.HTMLTemplateElement,N=n.Node,re=n.Element,w=n.NodeFilter,ie=n.NamedNodeMap;ie===void 0&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let Ie=n.DOMParser,he=n.trustedTypes,j=re.prototype,qt=U(j,"cloneNode"),tt=U(j,"remove"),Kt=U(j,"nextSibling"),ae=U(j,"childNodes"),se=U(j,"parentNode"),nt=U(j,"shadowRoot"),De=U(j,"attributes"),C=N&&N.prototype?U(N.prototype,"nodeType"):null,z=N&&N.prototype?U(N.prototype,"nodeName"):null;if(typeof m=="function"){let i=s.createElement("template");i.content&&i.content.ownerDocument&&(s=i.content.ownerDocument)}let L,$="",Le,ot=!1,le=0,rt=function(){if(le>0)throw q('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.')},K=function(e){rt(),le++;try{return L.createHTML(e)}finally{le--}},Zt=function(e){rt(),le++;try{return L.createScriptURL(e)}finally{le--}},Jt=function(){return ot||(Le=ro(he,u),ot=!0),Le},ge=s,we=ge.implementation,it=ge.createNodeIterator,Qt=ge.createDocumentFragment,en=ge.getElementsByTagName,tn=l.importNode,g=jt();o.isSupported=typeof $t=="function"&&typeof se=="function"&&we&&we.createHTMLDocument!==void 0;let nn=jn,on=$n,rn=Xn,an=Vn,sn=qn,ln=Kn,at=Zn,cn=Qn,st=Wt,d=null,lt=f({},[...zt,...qe,...Ke,...Ze,...Ht]),T=null,ct=f({},[...Gt,...Je,...Bt,...Ne]),_=Object.seal(oe(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}})),ce=null,ut=null,H=Object.seal(oe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ft=!0,Ce=!0,pt=!1,mt=!0,G=!1,ue=!0,X=!1,Me=!1,Pe=null,xe=null,ke=!1,Z=!1,Ee=!1,Ae=!1,dt=!0,Tt=!1,_t="user-content-",ve=!0,Ue=!1,J={},x=null,Fe=f({},["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"]),ht=null,gt=f({},["audio","video","img","source","image","track"]),ze=null,Et=f({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ye="http://www.w3.org/1998/Math/MathML",Se="http://www.w3.org/2000/svg",k="http://www.w3.org/1999/xhtml",Q=k,He=!1,Ge=null,un=f({},[ye,Se,k],Ve),At=O(["mi","mo","mn","ms","mtext"]),Be=f({},At),yt=O(["annotation-xml"]),We=f({},yt),fn=f({},["title","style","font","a","script"]),fe=null,pn=["application/xhtml+xml","text/html"],mn="text/html",h=null,ee=null,dn=s.createElement("form"),St=function(e){return e instanceof RegExp||e instanceof Function},Ye=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ee&&ee===e)return;(!e||typeof e!="object")&&(e={}),e=D(e),fe=pn.indexOf(e.PARSER_MEDIA_TYPE)===-1?mn:e.PARSER_MEDIA_TYPE,h=fe==="application/xhtml+xml"?Ve:_e,d=W(e,"ALLOWED_TAGS",lt,{transform:h}),T=W(e,"ALLOWED_ATTR",ct,{transform:h}),Ge=W(e,"ALLOWED_NAMESPACES",un,{transform:Ve}),ze=W(e,"ADD_URI_SAFE_ATTR",Et,{transform:h,base:Et}),ht=W(e,"ADD_DATA_URI_TAGS",gt,{transform:h,base:gt}),x=W(e,"FORBID_CONTENTS",Fe,{transform:h}),ce=W(e,"FORBID_TAGS",D({}),{transform:h}),ut=W(e,"FORBID_ATTR",D({}),{transform:h}),J=S(e,"USE_PROFILES")?e.USE_PROFILES&&typeof e.USE_PROFILES=="object"?D(e.USE_PROFILES):e.USE_PROFILES:!1,ft=e.ALLOW_ARIA_ATTR!==!1,Ce=e.ALLOW_DATA_ATTR!==!1,pt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,mt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,G=e.SAFE_FOR_TEMPLATES||!1,ue=e.SAFE_FOR_XML!==!1,X=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,Ee=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,ke=e.FORCE_BODY||!1,dt=e.SANITIZE_DOM!==!1,Tt=e.SANITIZE_NAMED_PROPS||!1,ve=e.KEEP_CONTENT!==!1,Ue=e.IN_PLACE||!1,st=Bn(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Wt,Q=typeof e.NAMESPACE=="string"?e.NAMESPACE:k,Be=S(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS=="object"?D(e.MATHML_TEXT_INTEGRATION_POINTS):f({},At),We=S(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS=="object"?D(e.HTML_INTEGRATION_POINTS):f({},yt);let t=S(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING=="object"?D(e.CUSTOM_ELEMENT_HANDLING):oe(null);if(_=oe(null),S(t,"tagNameCheck")&&St(t.tagNameCheck)&&(_.tagNameCheck=t.tagNameCheck),S(t,"attributeNameCheck")&&St(t.attributeNameCheck)&&(_.attributeNameCheck=t.attributeNameCheck),S(t,"allowCustomizedBuiltInElements")&&typeof t.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),R(_),G&&(Ce=!1),Ee&&(Z=!0),J&&(d=f({},Ht),T=oe(null),J.html===!0&&(f(d,zt),f(T,Gt)),J.svg===!0&&(f(d,qe),f(T,Je),f(T,Ne)),J.svgFilters===!0&&(f(d,Ke),f(T,Je),f(T,Ne)),J.mathMl===!0&&(f(d,Ze),f(T,Bt),f(T,Ne))),H.tagCheck=null,H.attributeCheck=null,S(e,"ADD_TAGS")&&(typeof e.ADD_TAGS=="function"?H.tagCheck=e.ADD_TAGS:Y(e.ADD_TAGS)&&(d===lt&&(d=D(d)),f(d,e.ADD_TAGS,h))),S(e,"ADD_ATTR")&&(typeof e.ADD_ATTR=="function"?H.attributeCheck=e.ADD_ATTR:Y(e.ADD_ATTR)&&(T===ct&&(T=D(T)),f(T,e.ADD_ATTR,h))),S(e,"ADD_URI_SAFE_ATTR")&&Y(e.ADD_URI_SAFE_ATTR)&&f(ze,e.ADD_URI_SAFE_ATTR,h),S(e,"FORBID_CONTENTS")&&Y(e.FORBID_CONTENTS)&&(x===Fe&&(x=D(x)),f(x,e.FORBID_CONTENTS,h)),S(e,"ADD_FORBID_CONTENTS")&&Y(e.ADD_FORBID_CONTENTS)&&(x===Fe&&(x=D(x)),f(x,e.ADD_FORBID_CONTENTS,h)),ve&&(d["#text"]=!0),X&&f(d,["html","head","body"]),d.table&&(f(d,["tbody"]),delete ce.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.');let r=L;L=e.TRUSTED_TYPES_POLICY;try{$=K("")}catch(a){throw L=r,a}}else e.TRUSTED_TYPES_POLICY===null?(L=void 0,$=""):(L===void 0&&(L=Jt()),L&&typeof $=="string"&&($=K("")));O&&O(e),ee=e},bt=f({},[...qe,...Ke,...Wn]),Ot=f({},[...Ze,...Yn]),Tn=function(e,t,r){return t.namespaceURI===k?e==="svg":t.namespaceURI===ye?e==="svg"&&(r==="annotation-xml"||Be[r]):!!bt[e]},_n=function(e,t,r){return t.namespaceURI===k?e==="math":t.namespaceURI===Se?e==="math"&&We[r]:!!Ot[e]},hn=function(e,t,r){return t.namespaceURI===Se&&!We[r]||t.namespaceURI===ye&&!Be[r]?!1:!Ot[e]&&(fn[e]||!bt[e])},gn=function(e){let t=se(e);(!t||!t.tagName)&&(t={namespaceURI:Q,tagName:"template"});let r=_e(e.tagName),a=_e(t.tagName);return Ge[e.namespaceURI]?e.namespaceURI===Se?Tn(r,t,a):e.namespaceURI===ye?_n(r,t,a):e.namespaceURI===k?hn(r,t,a):!!(fe==="application/xhtml+xml"&&Ge[e.namespaceURI]):!1},B=function(e){ne(o.removed,{element:e});try{se(e).removeChild(e)}catch{if(tt(e),!se(e))throw q("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Rt=function(e){let t=ae(e);if(t){let a=[];me(t,c=>{ne(a,c)}),me(a,c=>{try{tt(c)}catch{}})}let r=De(e);if(r)for(let a=r.length-1;a>=0;--a){let c=r[a],p=c&&c.name;if(typeof p=="string")try{e.removeAttribute(p)}catch{}}},V=function(e,t){try{ne(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{ne(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(Z||Ee)try{B(t)}catch{}else try{t.setAttribute(e,"")}catch{}},En=function(e){let t=De(e);if(t)for(let r=t.length-1;r>=0;--r){let a=t[r],c=a&&a.name;if(!(typeof c!="string"||T[h(c)]))try{e.removeAttribute(c)}catch{}}},An=function(e){let t=[e];for(;t.length>0;){let r=t.pop();(C?C(r):r.nodeType)===v.element&&En(r);let c=ae(r);if(c)for(let p=c.length-1;p>=0;--p)t.push(c[p])}},Nt=function(e){let t=null,r=null;if(ke)e="<remove></remove>"+e;else{let p=kt(e,/^[\r\n\t ]+/);r=p&&p[0]}fe==="application/xhtml+xml"&&Q===k&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let a=L?K(e):e;if(Q===k)try{t=new Ie().parseFromString(a,fe)}catch{}if(!t||!t.documentElement){t=we.createDocument(Q,"template",null);try{t.documentElement.innerHTML=He?$:a}catch{}}let c=t.body||t.documentElement;return e&&r&&c.insertBefore(s.createTextNode(r),c.childNodes[0]||null),Q===k?en.call(t,X?"html":"body")[0]:X?t.documentElement:c},It=function(e){return it.call(e.ownerDocument||e,e,w.SHOW_ELEMENT|w.SHOW_COMMENT|w.SHOW_TEXT|w.SHOW_PROCESSING_INSTRUCTION|w.SHOW_CDATA_SECTION,null)},be=function(e){return e=de(e,nn," "),e=de(e,on," "),e=de(e,rn," "),e},je=function(e){var t;e.normalize();let r=it.call(e.ownerDocument||e,e,w.SHOW_TEXT|w.SHOW_COMMENT|w.SHOW_CDATA_SECTION|w.SHOW_PROCESSING_INSTRUCTION,null),a=r.nextNode();for(;a;)a.data=be(a.data),a=r.nextNode();let c=(t=e.querySelectorAll)===null||t===void 0?void 0:t.call(e,"template");c&&me(c,p=>{te(p.content)&&je(p.content)})},Oe=function(e){let t=z?z(e):null;return typeof t!="string"||h(t)!=="form"?!1:typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||e.attributes!==De(e)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function"||e.nodeType!==C(e)||e.childNodes!==ae(e)},te=function(e){if(!C||typeof e!="object"||e===null)return!1;try{return C(e)===v.documentFragment}catch{return!1}},pe=function(e){if(!C||typeof e!="object"||e===null)return!1;try{return typeof C(e)=="number"}catch{return!1}};function F(i,e,t){i.length!==0&&me(i,r=>{r.call(o,e,t,ee)})}let yn=function(e,t){return!!(ue&&e.hasChildNodes()&&!pe(e.firstElementChild)&&b(Yt,e.textContent)&&b(Yt,e.innerHTML)||ue&&e.namespaceURI===k&&t==="style"&&pe(e.firstElementChild)||e.nodeType===v.processingInstruction||ue&&e.nodeType===v.comment&&b(eo,e.data))},Sn=function(e,t){if(!ce[t]&&wt(t)&&(_.tagNameCheck instanceof RegExp&&b(_.tagNameCheck,t)||_.tagNameCheck instanceof Function&&_.tagNameCheck(t)))return!1;if(ve&&!x[t]){let r=se(e),a=ae(e);if(a&&r){let c=a.length;for(let p=c-1;p>=0;--p){let y=Ue?a[p]:qt(a[p],!0);r.insertBefore(y,Kt(e))}}}return B(e),!0},Dt=function(e){if(F(g.beforeSanitizeElements,e,null),Oe(e))return B(e),!0;let t=h(z?z(e):e.nodeName);if(F(g.uponSanitizeElement,e,{tagName:t,allowedTags:d}),yn(e,t))return B(e),!0;if(ce[t]||!(H.tagCheck instanceof Function&&H.tagCheck(t))&&!d[t])return Sn(e,t);if((C?C(e):e.nodeType)===v.element&&!gn(e)||(t==="noscript"||t==="noembed"||t==="noframes")&&b(to,e.innerHTML))return B(e),!0;if(G&&e.nodeType===v.text){let a=be(e.textContent);e.textContent!==a&&(ne(o.removed,{element:e.cloneNode()}),e.textContent=a)}return F(g.afterSanitizeElements,e,null),!1},Lt=function(e,t,r){if(ut[t]||dt&&(t==="id"||t==="name")&&(r in s||r in dn))return!1;let a=T[t]||H.attributeCheck instanceof Function&&H.attributeCheck(t,e);if(!(Ce&&b(an,t))){if(!(ft&&b(sn,t))){if(a){if(!ze[t]){if(!b(st,de(r,at,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&vt(r,"data:")===0&&ht[e])){if(!(pt&&!b(ln,de(r,at,"")))){if(r)return!1}}}}}else if(!(wt(e)&&(_.tagNameCheck instanceof RegExp&&b(_.tagNameCheck,e)||_.tagNameCheck instanceof Function&&_.tagNameCheck(e))&&(_.attributeNameCheck instanceof RegExp&&b(_.attributeNameCheck,t)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(t,e))||t==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&b(_.tagNameCheck,r)||_.tagNameCheck instanceof Function&&_.tagNameCheck(r))))return!1}}return!0},bn=f({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wt=function(e){return!bn[_e(e)]&&b(cn,e)},On=function(e,t,r,a){if(L&&typeof he=="object"&&typeof he.getAttributeType=="function"&&!r)switch(he.getAttributeType(e,t)){case"TrustedHTML":return K(a);case"TrustedScriptURL":return Zt(a)}return a},Rn=function(e,t,r,a){try{r?e.setAttributeNS(r,t,a):e.setAttribute(t,a),Oe(e)?B(e):xt(o.removed)}catch{V(t,e)}},Ct=function(e){F(g.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||Oe(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0},a=t.length,c=h(e.nodeName);for(;a--;){let p=t[a],y=p.name,E=p.namespaceURI,M=p.value,P=h(y),Xe=M,I=y==="value"?Xe:vn(Xe);if(r.attrName=P,r.attrValue=I,r.keepAttr=!0,r.forceKeepAttr=void 0,F(g.uponSanitizeAttribute,e,r),I=r.attrValue,Tt&&(P==="id"||P==="name")&&vt(I,_t)!==0&&(V(y,e),I=_t+I),ue&&b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,I)){V(y,e);continue}if(P==="attributename"&&kt(I,"href")){V(y,e);continue}if(!r.forceKeepAttr){if(!r.keepAttr){V(y,e);continue}if(!mt&&b(no,I)){V(y,e);continue}if(G&&(I=be(I)),!Lt(c,P,I)){V(y,e);continue}I=On(c,P,E,I),I!==Xe&&Rn(e,y,E,I)}}F(g.afterSanitizeAttributes,e,null)},Re=function(e){let t=null,r=It(e);for(F(g.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)if(F(g.uponSanitizeShadowNode,t,null),Dt(t),Ct(t),te(t.content)&&Re(t.content),(C?C(t):t.nodeType)===v.element){let c=nt(t);te(c)&&($e(c),Re(c))}F(g.afterSanitizeShadowDOM,e,null)},$e=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let r=t.pop();if(r.shadow){Re(r.shadow);continue}let a=r.node,p=(C?C(a):a.nodeType)===v.element,y=ae(a);if(y)for(let E=y.length-1;E>=0;--E)t.push({node:y[E],shadow:null});if(p){let E=z?z(a):null;if(typeof E=="string"&&h(E)==="template"){let M=a.content;te(M)&&t.push({node:M,shadow:null})}}if(p){let E=nt(a);te(E)&&t.push({node:null,shadow:E},{node:E,shadow:null})}}};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,r=null,a=null,c=null;if(He=!i,He&&(i="<!-->"),typeof i!="string"&&!pe(i)&&(i=Gn(i),typeof i!="string"))throw q("dirty is not a string, aborting");if(!o.isSupported)return i;Me?(d=Pe,T=xe):Ye(e),(g.uponSanitizeElement.length>0||g.uponSanitizeAttribute.length>0)&&(d=D(d)),g.uponSanitizeAttribute.length>0&&(T=D(T)),o.removed=[];let p=Ue&&typeof i!="string"&&pe(i);if(p){let M=z?z(i):i.nodeName;if(typeof M=="string"){let P=h(M);if(!d[P]||ce[P])throw q("root node is forbidden and cannot be sanitized in-place")}if(Oe(i))throw q("root node is clobbered and cannot be sanitized in-place");try{$e(i)}catch(P){throw Rt(i),P}}else if(pe(i))t=Nt("<!---->"),r=t.ownerDocument.importNode(i,!0),r.nodeType===v.element&&r.nodeName==="BODY"||r.nodeName==="HTML"?t=r:t.appendChild(r),$e(r);else{if(!Z&&!G&&!X&&i.indexOf("<")===-1)return L&&Ae?K(i):i;if(t=Nt(i),!t)return Z?null:Ae?$:""}t&&ke&&B(t.firstChild);let y=It(p?i:t);try{for(;a=y.nextNode();)Dt(a),Ct(a),te(a.content)&&Re(a.content)}catch(M){throw p&&Rt(i),M}if(p)return me(o.removed,M=>{M.element&&An(M.element)}),G&&je(i),i;if(Z){if(G&&je(t),Ee)for(c=Qt.call(t.ownerDocument);t.firstChild;)c.appendChild(t.firstChild);else c=t;return(T.shadowroot||T.shadowrootmode)&&(c=tn.call(l,c,!0)),c}let E=X?t.outerHTML:t.innerHTML;return X&&d["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&b(Jn,t.ownerDocument.doctype.name)&&(E="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
4
- `+E),G&&(E=be(E)),L&&Ae?K(E):E},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ye(i),Me=!0,Pe=d,xe=T},o.clearConfig=function(){ee=null,Me=!1,Pe=null,xe=null,L=Le,$=""},o.isValidAttribute=function(i,e,t){ee||Ye({});let r=h(i),a=h(e);return Lt(r,a,t)},o.addHook=function(i,e){typeof e=="function"&&S(g,i)&&ne(g[i],e)},o.removeHook=function(i,e){if(S(g,i)){if(e!==void 0){let t=xn(g[i],e);return t===-1?void 0:kn(g[i],t,1)[0]}return xt(g[i])}},o.removeHooks=function(i){S(g,i)&&(g[i]=[])},o.removeAllHooks=function(){g=jt()},o}var io=Vt();export{io as default};