@matdata/yasgui-utils 5.6.0 → 5.8.0

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.
package/README.md CHANGED
@@ -64,13 +64,33 @@ YASGUI provides a complete SPARQL development environment with powerful features
64
64
  ### 🔧 Expert Features
65
65
  - **[Multiple Tabs](./docs/user-guide.md#query-tabs)** - Work on multiple queries simultaneously
66
66
  - **[Endpoint Management](./docs/user-guide.md#endpoint-quick-switch)** - Quick-switch between SPARQL endpoints
67
+ - **[Authentication Support](./docs/developer-guide.md#authentication)** - Basic Auth, Bearer Token, API Key, OAuth2
67
68
  - **[Persistent Storage](./docs/user-guide.md#query-history-and-persistence)** - Auto-save queries and preferences
68
69
  - **[URL Sharing](./docs/user-guide.md#share-queries)** - Share queries via URL parameters
69
70
  - **[Fullscreen Mode](./docs/user-guide.md#fullscreen-mode)** - Maximize editor or results viewer
70
71
  - **[Export Results](./docs/developer-guide.md#yasr-class)** - Download results in various formats
72
+ - **[Configuration Import/Export](./docs/user-guide.md#configuration-importexport)** - Backup and restore settings
71
73
 
72
74
  For detailed feature documentation, see the **[User Guide](./docs/user-guide.md)**.
73
75
 
76
+ ---
77
+
78
+ ## Browser Support
79
+
80
+ YASGUI works on all modern browsers:
81
+
82
+ - ✅ Chrome / Edge (latest)
83
+ - ✅ Firefox (latest)
84
+ - ✅ Safari (latest)
85
+ - ✅ Opera (latest)
86
+
87
+ **Requirements:**
88
+ - JavaScript enabled
89
+ - Cookies/LocalStorage enabled (for query persistence)
90
+ - Modern ES6+ support
91
+
92
+ ---
93
+
74
94
  ## Installation
75
95
 
76
96
  ### npm
@@ -94,17 +114,22 @@ yarn add @matdata/yasgui
94
114
 
95
115
  ### Docker
96
116
 
117
+ **Run with default endpoint:**
97
118
  ```bash
98
119
  docker pull mathiasvda/yasgui:latest
99
120
  docker run -p 8080:8080 mathiasvda/yasgui:latest
100
121
  ```
101
122
 
123
+ Access at: `http://localhost:8080`
124
+
102
125
  **Custom endpoint:**
103
126
  ```bash
104
- docker run -p 8080:8080 -e YASGUI_DEFAULT_ENDPOINT=https://your-endpoint.com/sparql mathiasvda/yasgui:latest
127
+ docker run -p 8080:8080 \
128
+ -e YASGUI_DEFAULT_ENDPOINT=https://your-endpoint.com/sparql \
129
+ mathiasvda/yasgui:latest
105
130
  ```
106
131
 
107
- For detailed installation instructions and usage examples, see the **[Developer Guide](./docs/developer-guide.md#installation)**.
132
+ For detailed installation instructions and usage examples, see the **[Developer Guide](./docs/developer-guide.md#installation)** and **[User Guide - Docker](./docs/user-guide.md#running-yasgui-with-docker)**.
108
133
 
109
134
  ## Quick Start
110
135
 
@@ -146,10 +171,115 @@ const yasgui = new Yasgui(document.getElementById('yasgui'), {
146
171
  });
147
172
  ```
148
173
 
174
+ ### Authentication
175
+
176
+ YASGUI supports multiple authentication methods for secure SPARQL endpoints:
177
+
178
+ **Basic Authentication:**
179
+ ```javascript
180
+ const yasgui = new Yasgui(document.getElementById('yasgui'), {
181
+ requestConfig: {
182
+ endpoint: 'https://secure-endpoint.com/sparql',
183
+ basicAuth: {
184
+ username: 'myuser',
185
+ password: 'mypassword'
186
+ }
187
+ }
188
+ });
189
+ ```
190
+
191
+ **Bearer Token (OAuth2/JWT):**
192
+ ```javascript
193
+ const yasgui = new Yasgui(document.getElementById('yasgui'), {
194
+ requestConfig: {
195
+ endpoint: 'https://api.example.com/sparql',
196
+ bearerAuth: {
197
+ token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
198
+ }
199
+ }
200
+ });
201
+ ```
202
+
203
+ **API Key (Custom Headers):**
204
+ ```javascript
205
+ const yasgui = new Yasgui(document.getElementById('yasgui'), {
206
+ requestConfig: {
207
+ endpoint: 'https://api.example.com/sparql',
208
+ apiKeyAuth: {
209
+ headerName: 'X-API-Key',
210
+ apiKey: 'your-api-key-here'
211
+ }
212
+ }
213
+ });
214
+ ```
215
+
216
+ Authentication can also be configured through the UI via the Settings modal (gear icon). For detailed authentication documentation including dynamic auth and OAuth2, see the **[Developer Guide - Authentication](./docs/developer-guide.md#authentication)**.
217
+
149
218
  For framework-specific examples and advanced usage, see the **[Developer Guide](./docs/developer-guide.md#usage-examples)**.
150
219
 
151
220
  ---
152
221
 
222
+ ## Configuration Options
223
+
224
+ YASGUI is highly configurable. Here are some common configuration options:
225
+
226
+ ```javascript
227
+ const yasgui = new Yasgui(document.getElementById('yasgui'), {
228
+ // Request configuration
229
+ requestConfig: {
230
+ endpoint: 'https://dbpedia.org/sparql',
231
+ method: 'POST', // GET or POST
232
+ headers: { 'Custom-Header': 'value' }, // Custom HTTP headers
233
+ args: [{ name: 'param', value: 'val' }] // URL parameters
234
+ },
235
+
236
+ // UI configuration
237
+ theme: 'dark', // 'light' or 'dark'
238
+ orientation: 'horizontal', // 'horizontal' or 'vertical'
239
+ showSnippetsBar: true, // Show code snippets
240
+
241
+ // Persistence
242
+ persistenceId: 'my-yasgui-instance', // Custom storage ID
243
+ persistencyExpire: 7 * 24 * 60 * 60, // Storage expiration (7 days)
244
+
245
+ // Default query
246
+ yasqe: {
247
+ value: 'SELECT * WHERE { ?s ?p ?o } LIMIT 10'
248
+ }
249
+ });
250
+ ```
251
+
252
+ For complete configuration options, see the **[Developer Guide - Configuration](./docs/developer-guide.md#configuration)**.
253
+
254
+ ---
255
+
256
+ ## Troubleshooting
257
+
258
+ ### CORS Issues
259
+
260
+ If you encounter CORS errors when querying remote endpoints:
261
+
262
+ 1. **Use a CORS proxy** - Set up a proxy server that adds CORS headers
263
+ 2. **Configure the endpoint** - Some endpoints support CORS with proper configuration
264
+ 3. **Server-side queries** - Execute queries server-side and display results client-side
265
+
266
+ See the **[User Guide - CORS Errors](./docs/user-guide.md#cors-errors)** for detailed solutions.
267
+
268
+ ### Local Endpoint Access
269
+
270
+ To query local SPARQL endpoints from YASGUI:
271
+
272
+ ```bash
273
+ # Example: Running a local endpoint accessible to YASGUI
274
+ docker run -p 3030:3030 stain/jena-fuseki
275
+ ```
276
+
277
+ Access at: `http://localhost:3030/dataset/sparql`
278
+
279
+ For more details, see **[User Guide - Querying Local Endpoints](./docs/user-guide.md#querying-local-endpoints)**.
280
+
281
+ ---
282
+
153
283
  ## Contributing
154
284
 
155
285
  We welcome contributions! To get started:
@@ -165,16 +295,40 @@ For detailed contribution guidelines, see the **[Developer Guide](./docs/develop
165
295
 
166
296
  ---
167
297
 
298
+ ## Support & Community
299
+
300
+ ### Getting Help
301
+
302
+ - 📖 **[User Guide](./docs/user-guide.md)** - Comprehensive usage documentation
303
+ - 🛠️ **[Developer Guide](./docs/developer-guide.md)** - API reference and integration
304
+ - 🐛 **[Issue Tracker](https://github.com/Matdata-eu/Yasgui/issues)** - Report bugs or request features
305
+ - 💬 **[Discussions](https://github.com/Matdata-eu/Yasgui/discussions)** - Ask questions and share ideas
306
+
307
+ ### Reporting Issues
308
+
309
+ When reporting issues, please include:
310
+ - Browser version and operating system
311
+ - Steps to reproduce the problem
312
+ - Expected vs. actual behavior
313
+ - Console errors (if any)
314
+ - Minimal example query demonstrating the issue
315
+
316
+ ---
317
+
168
318
  ## License
169
319
 
170
320
  MIT License - see [LICENSE](./LICENSE) file for details.
171
321
 
322
+ ### Credits
323
+
172
324
  This is a fork from [Zazuko](https://github.com/zazuko/Yasgui) who forked it from [Triply](https://github.com/TriplyDB/Yasgui).
173
325
 
326
+ **Maintained by:** [Matdata](https://matdata.eu)
327
+
174
328
  ---
175
329
 
176
330
  ## Release Notes & Changelog
177
331
 
178
332
  Release notes and changelog are available in the [Releases](https://github.com/Matdata-eu/Yasgui/releases) section.
179
333
 
180
- For instructions on writing release notes, see [release_notes_instructions.md](./docs/release_notes_instructions.md)
334
+ For instructions on writing release notes, see [release-note-instructions.md](./docs/release-note-instructions.md).
@@ -1,15 +1,15 @@
1
- "use strict";var Utils=(()=>{var Kn=Object.create;var Ne=Object.defineProperty;var Zn=Object.getOwnPropertyDescriptor;var Qn=Object.getOwnPropertyNames;var er=Object.getPrototypeOf,tr=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nr=(e,t)=>{for(var r in t)Ne(e,r,{get:t[r],enumerable:!0})},Wt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Qn(t))!tr.call(e,o)&&o!==r&&Ne(e,o,{get:()=>t[o],enumerable:!(i=Zn(t,o))||i.enumerable});return e};var rr=(e,t,r)=>(r=e!=null?Kn(er(e)):{},Wt(t||!e||!e.__esModule?Ne(r,"default",{value:e,enumerable:!0}):r,e)),ir=e=>Wt(Ne({},"__esModule",{value:!0}),e);var X=I((zi,rn)=>{var st=Lr(),xr=Nr(),Or=Dr(),Rr=typeof window<"u"?window:global;rn.exports={assign:st,create:xr,trim:Or,bind:Ir,slice:lt,each:nn,map:Cr,pluck:ct,isList:ut,isFunction:Mr,isObject:Pr,Global:Rr};function Lr(){return Object.assign?Object.assign:function(t,r,i,o){for(var u=1;u<arguments.length;u++)nn(Object(arguments[u]),function(g,m){t[m]=g});return t}}function Nr(){if(Object.create)return function(r,i,o,u){var g=lt(arguments,1);return st.apply(this,[Object.create(r)].concat(g))};{let t=function(){};var e=t;return function(i,o,u,g){var m=lt(arguments,1);return t.prototype=i,st.apply(this,[new t].concat(m))}}}function Dr(){return String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function Ir(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}}function lt(e,t){return Array.prototype.slice.call(e,t||0)}function nn(e,t){ct(e,function(r,i){return t(r,i),!1})}function Cr(e,t){var r=ut(e)?[]:{};return ct(e,function(i,o){return r[o]=t(i,o),!1}),r}function ct(e,t){if(ut(e)){for(var r=0;r<e.length;r++)if(t(e[r],r))return e[r]}else for(var i in e)if(e.hasOwnProperty(i)&&t(e[i],i))return e[i]}function ut(e){return e!=null&&typeof e!="function"&&typeof e.length=="number"}function Mr(e){return e&&{}.toString.call(e)==="[object Function]"}function Pr(e){return e&&{}.toString.call(e)==="[object Object]"}});var on=I((Hi,an)=>{var W=X(),kr=W.slice,Fr=W.pluck,ae=W.each,Ur=W.bind,zr=W.create,ft=W.isList,pt=W.isFunction,Hr=W.isObject;an.exports={createStore:mt};var Gr={version:"2.0.12",enabled:!1,get:function(e,t){var r=this.storage.read(this._namespacePrefix+e);return this._deserialize(r,t)},set:function(e,t){return t===void 0?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each(function(r,i){e.call(t,t._deserialize(r),(i||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return mt.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return mt(this.storage,this.plugins,e)}};function Wr(){var e=typeof console>"u"?null:console;if(e){var t=e.warn?e.warn:e.log;t.apply(e,arguments)}}function mt(e,t,r){r||(r=""),e&&!ft(e)&&(e=[e]),t&&!ft(t)&&(t=[t]);var i=r?"__storejs_"+r+"_":"",o=r?new RegExp("^"+i):null,u=/^[a-zA-Z0-9_\-]*$/;if(!u.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var g={_namespacePrefix:i,_namespaceRegexp:o,_testStorage:function(l){try{var h="__storejs__test__";l.write(h,h);var N=l.read(h)===h;return l.remove(h),N}catch{return!1}},_assignPluginFnProp:function(l,h){var N=this[h];this[h]=function(){var D=kr(arguments,0),k=this;function q(){if(N)return ae(arguments,function(Pe,ke){D[ke]=Pe}),N.apply(k,D)}var Me=[q].concat(D);return l.apply(k,Me)}},_serialize:function(l){return JSON.stringify(l)},_deserialize:function(l,h){if(!l)return h;var N="";try{N=JSON.parse(l)}catch{N=l}return N!==void 0?N:h},_addStorage:function(l){this.enabled||this._testStorage(l)&&(this.storage=l,this.enabled=!0)},_addPlugin:function(l){var h=this;if(ft(l)){ae(l,function(D){h._addPlugin(D)});return}var N=Fr(this.plugins,function(D){return l===D});if(!N){if(this.plugins.push(l),!pt(l))throw new Error("Plugins must be function values that return objects");var B=l.call(this);if(!Hr(B))throw new Error("Plugins must return an object of function properties");ae(B,function(D,k){if(!pt(D))throw new Error("Bad plugin property: "+k+" from plugin "+l.name+". Plugins should only return functions.");h._assignPluginFnProp(D,k)})}},addStorage:function(l){Wr("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(l)}},m=zr(g,Gr,{plugins:[]});return m.raw={},ae(m,function(l,h){pt(l)&&(m.raw[h]=Ur(m,l))}),ae(e,function(l){m._addStorage(l)}),ae(t,function(l){m._addPlugin(l)}),m}});var cn=I((Gi,ln)=>{var jr=X(),Br=jr.Global;ln.exports={name:"localStorage",read:sn,write:qr,each:Yr,remove:$r,clearAll:Xr};function oe(){return Br.localStorage}function sn(e){return oe().getItem(e)}function qr(e,t){return oe().setItem(e,t)}function Yr(e){for(var t=oe().length-1;t>=0;t--){var r=oe().key(t);e(sn(r),r)}}function $r(e){return oe().removeItem(e)}function Xr(){return oe().clear()}});var pn=I((Wi,fn)=>{var Jr=X(),Vr=Jr.Global;fn.exports={name:"oldFF-globalStorage",read:Kr,write:Zr,each:un,remove:Qr,clearAll:ei};var J=Vr.globalStorage;function Kr(e){return J[e]}function Zr(e,t){J[e]=t}function un(e){for(var t=J.length-1;t>=0;t--){var r=J.key(t);e(J[r],r)}}function Qr(e){return J.removeItem(e)}function ei(){un(function(e,t){delete J[e]})}});var gn=I((ji,dn)=>{var ti=X(),dt=ti.Global;dn.exports={name:"oldIE-userDataStorage",write:ni,read:ri,each:ii,remove:ai,clearAll:oi};var Ee="storejs",_e=dt.document,Te=li(),mn=(dt.navigator?dt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ni(e,t){if(!mn){var r=gt(e);Te(function(i){i.setAttribute(r,t),i.save(Ee)})}}function ri(e){if(!mn){var t=gt(e),r=null;return Te(function(i){r=i.getAttribute(t)}),r}}function ii(e){Te(function(t){for(var r=t.XMLDocument.documentElement.attributes,i=r.length-1;i>=0;i--){var o=r[i];e(t.getAttribute(o.name),o.name)}})}function ai(e){var t=gt(e);Te(function(r){r.removeAttribute(t),r.save(Ee)})}function oi(){Te(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(Ee);for(var r=t.length-1;r>=0;r--)e.removeAttribute(t[r].name);e.save(Ee)})}var si=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function gt(e){return e.replace(/^\d/,"___$&").replace(si,"___")}function li(){if(!_e||!_e.documentElement||!_e.documentElement.addBehavior)return null;var e="script",t,r,i;try{r=new ActiveXObject("htmlfile"),r.open(),r.write("<"+e+">document.w=window</"+e+'><iframe src="/favicon.ico"></iframe>'),r.close(),t=r.w.frames[0].document,i=t.createElement("div")}catch{i=_e.createElement("div"),t=_e.body}return function(o){var u=[].slice.call(arguments,0);u.unshift(i),t.appendChild(i),i.addBehavior("#default#userData"),i.load(Ee),o.apply(this,u),t.removeChild(i)}}});var vn=I((Bi,An)=>{var hn=X(),ci=hn.Global,ui=hn.trim;An.exports={name:"cookieStorage",read:fi,write:pi,each:_n,remove:En,clearAll:mi};var Ae=ci.document;function fi(e){if(!e||!Tn(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Ae.cookie.replace(new RegExp(t),"$1"))}function _n(e){for(var t=Ae.cookie.split(/; ?/g),r=t.length-1;r>=0;r--)if(ui(t[r])){var i=t[r].split("="),o=unescape(i[0]),u=unescape(i[1]);e(u,o)}}function pi(e,t){e&&(Ae.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function En(e){!e||!Tn(e)||(Ae.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function mi(){_n(function(e,t){En(t)})}function Tn(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Ae.cookie)}});var yn=I((qi,bn)=>{var di=X(),gi=di.Global;bn.exports={name:"sessionStorage",read:Sn,write:hi,each:_i,remove:Ei,clearAll:Ti};function se(){return gi.sessionStorage}function Sn(e){return se().getItem(e)}function hi(e,t){return se().setItem(e,t)}function _i(e){for(var t=se().length-1;t>=0;t--){var r=se().key(t);e(Sn(r),r)}}function Ei(e){return se().removeItem(e)}function Ti(){return se().clear()}});var xn=I((Yi,wn)=>{wn.exports={name:"memoryStorage",read:Ai,write:vi,each:Si,remove:bi,clearAll:yi};var V={};function Ai(e){return V[e]}function vi(e,t){V[e]=t}function Si(e){for(var t in V)V.hasOwnProperty(t)&&e(V[t],t)}function bi(e){delete V[e]}function yi(e){V={}}});var Rn=I(($i,On)=>{On.exports=[cn(),pn(),gn(),vn(),yn(),xn()]});var Ln=I((exports,module)=>{typeof JSON!="object"&&(JSON={});(function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(t){var r=meta[t];return typeof r=="string"?r:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var r,i,o,u,g=gap,m,l=t[e];switch(l&&typeof l=="object"&&typeof l.toJSON=="function"&&(l=l.toJSON(e)),typeof rep=="function"&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,m=[],Object.prototype.toString.apply(l)==="[object Array]"){for(u=l.length,r=0;r<u;r+=1)m[r]=str(r,l)||"null";return o=m.length===0?"[]":gap?`[
1
+ "use strict";var Utils=(()=>{var Kn=Object.create;var Ne=Object.defineProperty;var Zn=Object.getOwnPropertyDescriptor;var Qn=Object.getOwnPropertyNames;var er=Object.getPrototypeOf,tr=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nr=(e,t)=>{for(var r in t)Ne(e,r,{get:t[r],enumerable:!0})},Wt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Qn(t))!tr.call(e,o)&&o!==r&&Ne(e,o,{get:()=>t[o],enumerable:!(i=Zn(t,o))||i.enumerable});return e};var rr=(e,t,r)=>(r=e!=null?Kn(er(e)):{},Wt(t||!e||!e.__esModule?Ne(r,"default",{value:e,enumerable:!0}):r,e)),ir=e=>Wt(Ne({},"__esModule",{value:!0}),e);var J=I((zi,rn)=>{var lt=Dr(),xr=Nr(),Or=Lr(),Rr=typeof window<"u"?window:global;rn.exports={assign:lt,create:xr,trim:Or,bind:Ir,slice:ct,each:nn,map:Cr,pluck:ut,isList:ft,isFunction:Mr,isObject:Pr,Global:Rr};function Dr(){return Object.assign?Object.assign:function(t,r,i,o){for(var u=1;u<arguments.length;u++)nn(Object(arguments[u]),function(g,m){t[m]=g});return t}}function Nr(){if(Object.create)return function(r,i,o,u){var g=ct(arguments,1);return lt.apply(this,[Object.create(r)].concat(g))};{let t=function(){};var e=t;return function(i,o,u,g){var m=ct(arguments,1);return t.prototype=i,lt.apply(this,[new t].concat(m))}}}function Lr(){return String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function Ir(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}}function ct(e,t){return Array.prototype.slice.call(e,t||0)}function nn(e,t){ut(e,function(r,i){return t(r,i),!1})}function Cr(e,t){var r=ft(e)?[]:{};return ut(e,function(i,o){return r[o]=t(i,o),!1}),r}function ut(e,t){if(ft(e)){for(var r=0;r<e.length;r++)if(t(e[r],r))return e[r]}else for(var i in e)if(e.hasOwnProperty(i)&&t(e[i],i))return e[i]}function ft(e){return e!=null&&typeof e!="function"&&typeof e.length=="number"}function Mr(e){return e&&{}.toString.call(e)==="[object Function]"}function Pr(e){return e&&{}.toString.call(e)==="[object Object]"}});var on=I((Hi,an)=>{var B=J(),Fr=B.slice,kr=B.pluck,ae=B.each,Ur=B.bind,zr=B.create,pt=B.isList,mt=B.isFunction,Hr=B.isObject;an.exports={createStore:dt};var Gr={version:"2.0.12",enabled:!1,get:function(e,t){var r=this.storage.read(this._namespacePrefix+e);return this._deserialize(r,t)},set:function(e,t){return t===void 0?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each(function(r,i){e.call(t,t._deserialize(r),(i||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return dt.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return dt(this.storage,this.plugins,e)}};function Wr(){var e=typeof console>"u"?null:console;if(e){var t=e.warn?e.warn:e.log;t.apply(e,arguments)}}function dt(e,t,r){r||(r=""),e&&!pt(e)&&(e=[e]),t&&!pt(t)&&(t=[t]);var i=r?"__storejs_"+r+"_":"",o=r?new RegExp("^"+i):null,u=/^[a-zA-Z0-9_\-]*$/;if(!u.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var g={_namespacePrefix:i,_namespaceRegexp:o,_testStorage:function(l){try{var h="__storejs__test__";l.write(h,h);var N=l.read(h)===h;return l.remove(h),N}catch{return!1}},_assignPluginFnProp:function(l,h){var N=this[h];this[h]=function(){var L=Fr(arguments,0),F=this;function Y(){if(N)return ae(arguments,function(Pe,Fe){L[Fe]=Pe}),N.apply(F,L)}var Me=[Y].concat(L);return l.apply(F,Me)}},_serialize:function(l){return JSON.stringify(l)},_deserialize:function(l,h){if(!l)return h;var N="";try{N=JSON.parse(l)}catch{N=l}return N!==void 0?N:h},_addStorage:function(l){this.enabled||this._testStorage(l)&&(this.storage=l,this.enabled=!0)},_addPlugin:function(l){var h=this;if(pt(l)){ae(l,function(L){h._addPlugin(L)});return}var N=kr(this.plugins,function(L){return l===L});if(!N){if(this.plugins.push(l),!mt(l))throw new Error("Plugins must be function values that return objects");var q=l.call(this);if(!Hr(q))throw new Error("Plugins must return an object of function properties");ae(q,function(L,F){if(!mt(L))throw new Error("Bad plugin property: "+F+" from plugin "+l.name+". Plugins should only return functions.");h._assignPluginFnProp(L,F)})}},addStorage:function(l){Wr("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(l)}},m=zr(g,Gr,{plugins:[]});return m.raw={},ae(m,function(l,h){mt(l)&&(m.raw[h]=Ur(m,l))}),ae(e,function(l){m._addStorage(l)}),ae(t,function(l){m._addPlugin(l)}),m}});var cn=I((Gi,ln)=>{var jr=J(),Br=jr.Global;ln.exports={name:"localStorage",read:sn,write:qr,each:Yr,remove:$r,clearAll:Xr};function oe(){return Br.localStorage}function sn(e){return oe().getItem(e)}function qr(e,t){return oe().setItem(e,t)}function Yr(e){for(var t=oe().length-1;t>=0;t--){var r=oe().key(t);e(sn(r),r)}}function $r(e){return oe().removeItem(e)}function Xr(){return oe().clear()}});var pn=I((Wi,fn)=>{var Jr=J(),Vr=Jr.Global;fn.exports={name:"oldFF-globalStorage",read:Kr,write:Zr,each:un,remove:Qr,clearAll:ei};var V=Vr.globalStorage;function Kr(e){return V[e]}function Zr(e,t){V[e]=t}function un(e){for(var t=V.length-1;t>=0;t--){var r=V.key(t);e(V[r],r)}}function Qr(e){return V.removeItem(e)}function ei(){un(function(e,t){delete V[e]})}});var gn=I((ji,dn)=>{var ti=J(),gt=ti.Global;dn.exports={name:"oldIE-userDataStorage",write:ni,read:ri,each:ii,remove:ai,clearAll:oi};var Ee="storejs",_e=gt.document,Te=li(),mn=(gt.navigator?gt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ni(e,t){if(!mn){var r=ht(e);Te(function(i){i.setAttribute(r,t),i.save(Ee)})}}function ri(e){if(!mn){var t=ht(e),r=null;return Te(function(i){r=i.getAttribute(t)}),r}}function ii(e){Te(function(t){for(var r=t.XMLDocument.documentElement.attributes,i=r.length-1;i>=0;i--){var o=r[i];e(t.getAttribute(o.name),o.name)}})}function ai(e){var t=ht(e);Te(function(r){r.removeAttribute(t),r.save(Ee)})}function oi(){Te(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(Ee);for(var r=t.length-1;r>=0;r--)e.removeAttribute(t[r].name);e.save(Ee)})}var si=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ht(e){return e.replace(/^\d/,"___$&").replace(si,"___")}function li(){if(!_e||!_e.documentElement||!_e.documentElement.addBehavior)return null;var e="script",t,r,i;try{r=new ActiveXObject("htmlfile"),r.open(),r.write("<"+e+">document.w=window</"+e+'><iframe src="/favicon.ico"></iframe>'),r.close(),t=r.w.frames[0].document,i=t.createElement("div")}catch{i=_e.createElement("div"),t=_e.body}return function(o){var u=[].slice.call(arguments,0);u.unshift(i),t.appendChild(i),i.addBehavior("#default#userData"),i.load(Ee),o.apply(this,u),t.removeChild(i)}}});var vn=I((Bi,An)=>{var hn=J(),ci=hn.Global,ui=hn.trim;An.exports={name:"cookieStorage",read:fi,write:pi,each:_n,remove:En,clearAll:mi};var Ae=ci.document;function fi(e){if(!e||!Tn(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Ae.cookie.replace(new RegExp(t),"$1"))}function _n(e){for(var t=Ae.cookie.split(/; ?/g),r=t.length-1;r>=0;r--)if(ui(t[r])){var i=t[r].split("="),o=unescape(i[0]),u=unescape(i[1]);e(u,o)}}function pi(e,t){e&&(Ae.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function En(e){!e||!Tn(e)||(Ae.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function mi(){_n(function(e,t){En(t)})}function Tn(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Ae.cookie)}});var yn=I((qi,bn)=>{var di=J(),gi=di.Global;bn.exports={name:"sessionStorage",read:Sn,write:hi,each:_i,remove:Ei,clearAll:Ti};function se(){return gi.sessionStorage}function Sn(e){return se().getItem(e)}function hi(e,t){return se().setItem(e,t)}function _i(e){for(var t=se().length-1;t>=0;t--){var r=se().key(t);e(Sn(r),r)}}function Ei(e){return se().removeItem(e)}function Ti(){return se().clear()}});var xn=I((Yi,wn)=>{wn.exports={name:"memoryStorage",read:Ai,write:vi,each:Si,remove:bi,clearAll:yi};var K={};function Ai(e){return K[e]}function vi(e,t){K[e]=t}function Si(e){for(var t in K)K.hasOwnProperty(t)&&e(K[t],t)}function bi(e){delete K[e]}function yi(e){K={}}});var Rn=I(($i,On)=>{On.exports=[cn(),pn(),gn(),vn(),yn(),xn()]});var Dn=I((exports,module)=>{typeof JSON!="object"&&(JSON={});(function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(t){var r=meta[t];return typeof r=="string"?r:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var r,i,o,u,g=gap,m,l=t[e];switch(l&&typeof l=="object"&&typeof l.toJSON=="function"&&(l=l.toJSON(e)),typeof rep=="function"&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,m=[],Object.prototype.toString.apply(l)==="[object Array]"){for(u=l.length,r=0;r<u;r+=1)m[r]=str(r,l)||"null";return o=m.length===0?"[]":gap?`[
2
2
  `+gap+m.join(`,
3
3
  `+gap)+`
4
4
  `+g+"]":"["+m.join(",")+"]",gap=g,o}if(rep&&typeof rep=="object")for(u=rep.length,r=0;r<u;r+=1)typeof rep[r]=="string"&&(i=rep[r],o=str(i,l),o&&m.push(quote(i)+(gap?": ":":")+o));else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(o=str(i,l),o&&m.push(quote(i)+(gap?": ":":")+o));return o=m.length===0?"{}":gap?`{
5
5
  `+gap+m.join(`,
6
6
  `+gap)+`
7
- `+g+"}":"{"+m.join(",")+"}",gap=g,o}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,r){var i;if(gap="",indent="",typeof r=="number")for(i=0;i<r;i+=1)indent+=" ";else typeof r=="string"&&(indent=r);if(rep=t,t&&typeof t!="function"&&(typeof t!="object"||typeof t.length!="number"))throw new Error("JSON.stringify");return str("",{"":e})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var r,i,o=e[t];if(o&&typeof o=="object")for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i=walk(o,r),i!==void 0?o[r]=i:delete o[r]);return reviver.call(e,t,o)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var Dn=I((Xi,Nn)=>{Nn.exports=wi;function wi(){return Ln(),{}}});var Cn=I((Ji,In)=>{var xi=on(),Oi=Rn(),Ri=[Dn()];In.exports=xi.createStore(Oi,Ri)});var ki={};nr(ki,{Storage:()=>ve,addClass:()=>Ci,drawFontAwesomeIconAsSvg:()=>Ii,drawSvgStringAsElement:()=>Di,getAsValue:()=>Pi,hasClass:()=>ht,removeClass:()=>Mi});var{entries:Kt,setPrototypeOf:jt,isFrozen:ar,getPrototypeOf:or,getOwnPropertyDescriptor:sr}=Object,{freeze:O,seal:C,create:it}=Object,{apply:at,construct:ot}=typeof Reflect<"u"&&Reflect;O||(O=function(t){return t});C||(C=function(t){return t});at||(at=function(t,r){for(var i=arguments.length,o=new Array(i>2?i-2:0),u=2;u<i;u++)o[u-2]=arguments[u];return t.apply(r,o)});ot||(ot=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return new t(...i)});var De=R(Array.prototype.forEach),lr=R(Array.prototype.lastIndexOf),Bt=R(Array.prototype.pop),pe=R(Array.prototype.push),cr=R(Array.prototype.splice),Ce=R(String.prototype.toLowerCase),Ze=R(String.prototype.toString),Qe=R(String.prototype.match),me=R(String.prototype.replace),ur=R(String.prototype.indexOf),fr=R(String.prototype.trim),M=R(Object.prototype.hasOwnProperty),x=R(RegExp.prototype.test),de=pr(TypeError);function R(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return at(e,t,i)}}function pr(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return ot(e,r)}}function p(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ce;jt&&jt(e,null);let i=t.length;for(;i--;){let o=t[i];if(typeof o=="string"){let u=r(o);u!==o&&(ar(t)||(t[i]=u),o=u)}e[o]=!0}return e}function mr(e){for(let t=0;t<e.length;t++)M(e,t)||(e[t]=null);return e}function G(e){let t=it(null);for(let[r,i]of Kt(e))M(e,r)&&(Array.isArray(i)?t[r]=mr(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=G(i):t[r]=i);return t}function ge(e,t){for(;e!==null;){let i=sr(e,t);if(i){if(i.get)return R(i.get);if(typeof i.value=="function")return R(i.value)}e=or(e)}function r(){return null}return r}var qt=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"]),et=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"]),tt=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"]),dr=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"]),nt=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"]),gr=O(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Yt=O(["#text"]),$t=O(["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"]),rt=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"]),Xt=O(["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"]),Ie=O(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hr=C(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_r=C(/<%[\w\W]*|[\w\W]*%>/gm),Er=C(/\$\{[\w\W]*/gm),Tr=C(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ar=C(/^aria-[\-\w]+$/),Zt=C(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vr=C(/^(?:\w+script|data):/i),Sr=C(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qt=C(/^html$/i),br=C(/^[a-z][.\w]*(-[.\w]+)+$/i),Jt=Object.freeze({__proto__:null,ARIA_ATTR:Ar,ATTR_WHITESPACE:Sr,CUSTOM_ELEMENT:br,DATA_ATTR:Tr,DOCTYPE_NAME:Qt,ERB_EXPR:_r,IS_ALLOWED_URI:Zt,IS_SCRIPT_OR_DATA:vr,MUSTACHE_EXPR:hr,TMPLIT_EXPR:Er}),he={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},yr=function(){return typeof window>"u"?null:window},wr=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null,o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(i=r.getAttribute(o));let u="dompurify"+(i?"#"+i:"");try{return t.createPolicy(u,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},Vt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function en(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yr(),t=c=>en(c);if(t.version="3.3.0",t.removed=[],!e||!e.document||e.document.nodeType!==he.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e,i=r,o=i.currentScript,{DocumentFragment:u,HTMLTemplateElement:g,Node:m,Element:l,NodeFilter:h,NamedNodeMap:N=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:B,DOMParser:D,trustedTypes:k}=e,q=l.prototype,Me=ge(q,"cloneNode"),Pe=ge(q,"remove"),ke=ge(q,"nextSibling"),Mn=ge(q,"childNodes"),Se=ge(q,"parentNode");if(typeof g=="function"){let c=r.createElement("template");c.content&&c.content.ownerDocument&&(r=c.content.ownerDocument)}let y,le="",{implementation:Fe,createNodeIterator:Pn,createDocumentFragment:kn,getElementsByTagName:Fn}=r,{importNode:Un}=i,w=Vt();t.isSupported=typeof Kt=="function"&&typeof Se=="function"&&Fe&&Fe.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ue,ERB_EXPR:ze,TMPLIT_EXPR:He,DATA_ATTR:zn,ARIA_ATTR:Hn,IS_SCRIPT_OR_DATA:Gn,ATTR_WHITESPACE:_t,CUSTOM_ELEMENT:Wn}=Jt,{IS_ALLOWED_URI:Et}=Jt,T=null,Tt=p({},[...qt,...et,...tt,...nt,...Yt]),v=null,At=p({},[...$t,...rt,...Xt,...Ie]),_=Object.seal(it(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,Ge=null,K=Object.seal(it(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),vt=!0,We=!0,St=!1,bt=!0,Z=!1,be=!0,Y=!1,je=!1,Be=!1,Q=!1,ye=!1,we=!1,yt=!0,wt=!1,jn="user-content-",qe=!0,ue=!1,ee={},te=null,xt=p({},["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"]),Ot=null,Rt=p({},["audio","video","img","source","image","track"]),Ye=null,Lt=p({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xe="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",U="http://www.w3.org/1999/xhtml",ne=U,$e=!1,Xe=null,Bn=p({},[xe,Oe,U],Ze),Re=p({},["mi","mo","mn","ms","mtext"]),Le=p({},["annotation-xml"]),qn=p({},["title","style","font","a","script"]),fe=null,Yn=["application/xhtml+xml","text/html"],$n="text/html",A=null,re=null,Xn=r.createElement("form"),Nt=function(n){return n instanceof RegExp||n instanceof Function},Je=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(re&&re===n)){if((!n||typeof n!="object")&&(n={}),n=G(n),fe=Yn.indexOf(n.PARSER_MEDIA_TYPE)===-1?$n:n.PARSER_MEDIA_TYPE,A=fe==="application/xhtml+xml"?Ze:Ce,T=M(n,"ALLOWED_TAGS")?p({},n.ALLOWED_TAGS,A):Tt,v=M(n,"ALLOWED_ATTR")?p({},n.ALLOWED_ATTR,A):At,Xe=M(n,"ALLOWED_NAMESPACES")?p({},n.ALLOWED_NAMESPACES,Ze):Bn,Ye=M(n,"ADD_URI_SAFE_ATTR")?p(G(Lt),n.ADD_URI_SAFE_ATTR,A):Lt,Ot=M(n,"ADD_DATA_URI_TAGS")?p(G(Rt),n.ADD_DATA_URI_TAGS,A):Rt,te=M(n,"FORBID_CONTENTS")?p({},n.FORBID_CONTENTS,A):xt,ce=M(n,"FORBID_TAGS")?p({},n.FORBID_TAGS,A):G({}),Ge=M(n,"FORBID_ATTR")?p({},n.FORBID_ATTR,A):G({}),ee=M(n,"USE_PROFILES")?n.USE_PROFILES:!1,vt=n.ALLOW_ARIA_ATTR!==!1,We=n.ALLOW_DATA_ATTR!==!1,St=n.ALLOW_UNKNOWN_PROTOCOLS||!1,bt=n.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Z=n.SAFE_FOR_TEMPLATES||!1,be=n.SAFE_FOR_XML!==!1,Y=n.WHOLE_DOCUMENT||!1,Q=n.RETURN_DOM||!1,ye=n.RETURN_DOM_FRAGMENT||!1,we=n.RETURN_TRUSTED_TYPE||!1,Be=n.FORCE_BODY||!1,yt=n.SANITIZE_DOM!==!1,wt=n.SANITIZE_NAMED_PROPS||!1,qe=n.KEEP_CONTENT!==!1,ue=n.IN_PLACE||!1,Et=n.ALLOWED_URI_REGEXP||Zt,ne=n.NAMESPACE||U,Re=n.MATHML_TEXT_INTEGRATION_POINTS||Re,Le=n.HTML_INTEGRATION_POINTS||Le,_=n.CUSTOM_ELEMENT_HANDLING||{},n.CUSTOM_ELEMENT_HANDLING&&Nt(n.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=n.CUSTOM_ELEMENT_HANDLING.tagNameCheck),n.CUSTOM_ELEMENT_HANDLING&&Nt(n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),n.CUSTOM_ELEMENT_HANDLING&&typeof n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(We=!1),ye&&(Q=!0),ee&&(T=p({},Yt),v=[],ee.html===!0&&(p(T,qt),p(v,$t)),ee.svg===!0&&(p(T,et),p(v,rt),p(v,Ie)),ee.svgFilters===!0&&(p(T,tt),p(v,rt),p(v,Ie)),ee.mathMl===!0&&(p(T,nt),p(v,Xt),p(v,Ie))),n.ADD_TAGS&&(typeof n.ADD_TAGS=="function"?K.tagCheck=n.ADD_TAGS:(T===Tt&&(T=G(T)),p(T,n.ADD_TAGS,A))),n.ADD_ATTR&&(typeof n.ADD_ATTR=="function"?K.attributeCheck=n.ADD_ATTR:(v===At&&(v=G(v)),p(v,n.ADD_ATTR,A))),n.ADD_URI_SAFE_ATTR&&p(Ye,n.ADD_URI_SAFE_ATTR,A),n.FORBID_CONTENTS&&(te===xt&&(te=G(te)),p(te,n.FORBID_CONTENTS,A)),qe&&(T["#text"]=!0),Y&&p(T,["html","head","body"]),T.table&&(p(T,["tbody"]),delete ce.tbody),n.TRUSTED_TYPES_POLICY){if(typeof n.TRUSTED_TYPES_POLICY.createHTML!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof n.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=n.TRUSTED_TYPES_POLICY,le=y.createHTML("")}else y===void 0&&(y=wr(k,o)),y!==null&&typeof le=="string"&&(le=y.createHTML(""));O&&O(n),re=n}},Dt=p({},[...et,...tt,...dr]),It=p({},[...nt,...gr]),Jn=function(n){let a=Se(n);(!a||!a.tagName)&&(a={namespaceURI:ne,tagName:"template"});let s=Ce(n.tagName),d=Ce(a.tagName);return Xe[n.namespaceURI]?n.namespaceURI===Oe?a.namespaceURI===U?s==="svg":a.namespaceURI===xe?s==="svg"&&(d==="annotation-xml"||Re[d]):!!Dt[s]:n.namespaceURI===xe?a.namespaceURI===U?s==="math":a.namespaceURI===Oe?s==="math"&&Le[d]:!!It[s]:n.namespaceURI===U?a.namespaceURI===Oe&&!Le[d]||a.namespaceURI===xe&&!Re[d]?!1:!It[s]&&(qn[s]||!Dt[s]):!!(fe==="application/xhtml+xml"&&Xe[n.namespaceURI]):!1},F=function(n){pe(t.removed,{element:n});try{Se(n).removeChild(n)}catch{Pe(n)}},$=function(n,a){try{pe(t.removed,{attribute:a.getAttributeNode(n),from:a})}catch{pe(t.removed,{attribute:null,from:a})}if(a.removeAttribute(n),n==="is")if(Q||ye)try{F(a)}catch{}else try{a.setAttribute(n,"")}catch{}},Ct=function(n){let a=null,s=null;if(Be)n="<remove></remove>"+n;else{let E=Qe(n,/^[\r\n\t ]+/);s=E&&E[0]}fe==="application/xhtml+xml"&&ne===U&&(n='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+n+"</body></html>");let d=y?y.createHTML(n):n;if(ne===U)try{a=new D().parseFromString(d,fe)}catch{}if(!a||!a.documentElement){a=Fe.createDocument(ne,"template",null);try{a.documentElement.innerHTML=$e?le:d}catch{}}let b=a.body||a.documentElement;return n&&s&&b.insertBefore(r.createTextNode(s),b.childNodes[0]||null),ne===U?Fn.call(a,Y?"html":"body")[0]:Y?a.documentElement:b},Mt=function(n){return Pn.call(n.ownerDocument||n,n,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Ve=function(n){return n instanceof B&&(typeof n.nodeName!="string"||typeof n.textContent!="string"||typeof n.removeChild!="function"||!(n.attributes instanceof N)||typeof n.removeAttribute!="function"||typeof n.setAttribute!="function"||typeof n.namespaceURI!="string"||typeof n.insertBefore!="function"||typeof n.hasChildNodes!="function")},Pt=function(n){return typeof m=="function"&&n instanceof m};function z(c,n,a){De(c,s=>{s.call(t,n,a,re)})}let kt=function(n){let a=null;if(z(w.beforeSanitizeElements,n,null),Ve(n))return F(n),!0;let s=A(n.nodeName);if(z(w.uponSanitizeElement,n,{tagName:s,allowedTags:T}),be&&n.hasChildNodes()&&!Pt(n.firstElementChild)&&x(/<[/\w!]/g,n.innerHTML)&&x(/<[/\w!]/g,n.textContent)||n.nodeType===he.progressingInstruction||be&&n.nodeType===he.comment&&x(/<[/\w]/g,n.data))return F(n),!0;if(!(K.tagCheck instanceof Function&&K.tagCheck(s))&&(!T[s]||ce[s])){if(!ce[s]&&Ut(s)&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s)))return!1;if(qe&&!te[s]){let d=Se(n)||n.parentNode,b=Mn(n)||n.childNodes;if(b&&d){let E=b.length;for(let L=E-1;L>=0;--L){let H=Me(b[L],!0);H.__removalCount=(n.__removalCount||0)+1,d.insertBefore(H,ke(n))}}}return F(n),!0}return n instanceof l&&!Jn(n)||(s==="noscript"||s==="noembed"||s==="noframes")&&x(/<\/no(script|embed|frames)/i,n.innerHTML)?(F(n),!0):(Z&&n.nodeType===he.text&&(a=n.textContent,De([Ue,ze,He],d=>{a=me(a,d," ")}),n.textContent!==a&&(pe(t.removed,{element:n.cloneNode()}),n.textContent=a)),z(w.afterSanitizeElements,n,null),!1)},Ft=function(n,a,s){if(yt&&(a==="id"||a==="name")&&(s in r||s in Xn))return!1;if(!(We&&!Ge[a]&&x(zn,a))){if(!(vt&&x(Hn,a))){if(!(K.attributeCheck instanceof Function&&K.attributeCheck(a,n))){if(!v[a]||Ge[a]){if(!(Ut(n)&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,n)||_.tagNameCheck instanceof Function&&_.tagNameCheck(n))&&(_.attributeNameCheck instanceof RegExp&&x(_.attributeNameCheck,a)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(a,n))||a==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s))))return!1}else if(!Ye[a]){if(!x(Et,me(s,_t,""))){if(!((a==="src"||a==="xlink:href"||a==="href")&&n!=="script"&&ur(s,"data:")===0&&Ot[n])){if(!(St&&!x(Gn,me(s,_t,"")))){if(s)return!1}}}}}}}return!0},Ut=function(n){return n!=="annotation-xml"&&Qe(n,Wn)},zt=function(n){z(w.beforeSanitizeAttributes,n,null);let{attributes:a}=n;if(!a||Ve(n))return;let s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:v,forceKeepAttr:void 0},d=a.length;for(;d--;){let b=a[d],{name:E,namespaceURI:L,value:H}=b,ie=A(E),Ke=H,S=E==="value"?Ke:fr(Ke);if(s.attrName=ie,s.attrValue=S,s.keepAttr=!0,s.forceKeepAttr=void 0,z(w.uponSanitizeAttribute,n,s),S=s.attrValue,wt&&(ie==="id"||ie==="name")&&($(E,n),S=jn+S),be&&x(/((--!?|])>)|<\/(style|title|textarea)/i,S)){$(E,n);continue}if(ie==="attributename"&&Qe(S,"href")){$(E,n);continue}if(s.forceKeepAttr)continue;if(!s.keepAttr){$(E,n);continue}if(!bt&&x(/\/>/i,S)){$(E,n);continue}Z&&De([Ue,ze,He],Gt=>{S=me(S,Gt," ")});let Ht=A(n.nodeName);if(!Ft(Ht,ie,S)){$(E,n);continue}if(y&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!L)switch(k.getAttributeType(Ht,ie)){case"TrustedHTML":{S=y.createHTML(S);break}case"TrustedScriptURL":{S=y.createScriptURL(S);break}}if(S!==Ke)try{L?n.setAttributeNS(L,E,S):n.setAttribute(E,S),Ve(n)?F(n):Bt(t.removed)}catch{$(E,n)}}z(w.afterSanitizeAttributes,n,null)},Vn=function c(n){let a=null,s=Mt(n);for(z(w.beforeSanitizeShadowDOM,n,null);a=s.nextNode();)z(w.uponSanitizeShadowNode,a,null),kt(a),zt(a),a.content instanceof u&&c(a.content);z(w.afterSanitizeShadowDOM,n,null)};return t.sanitize=function(c){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=null,s=null,d=null,b=null;if($e=!c,$e&&(c="<!-->"),typeof c!="string"&&!Pt(c))if(typeof c.toString=="function"){if(c=c.toString(),typeof c!="string")throw de("dirty is not a string, aborting")}else throw de("toString is not a function");if(!t.isSupported)return c;if(je||Je(n),t.removed=[],typeof c=="string"&&(ue=!1),ue){if(c.nodeName){let H=A(c.nodeName);if(!T[H]||ce[H])throw de("root node is forbidden and cannot be sanitized in-place")}}else if(c instanceof m)a=Ct("<!---->"),s=a.ownerDocument.importNode(c,!0),s.nodeType===he.element&&s.nodeName==="BODY"||s.nodeName==="HTML"?a=s:a.appendChild(s);else{if(!Q&&!Z&&!Y&&c.indexOf("<")===-1)return y&&we?y.createHTML(c):c;if(a=Ct(c),!a)return Q?null:we?le:""}a&&Be&&F(a.firstChild);let E=Mt(ue?c:a);for(;d=E.nextNode();)kt(d),zt(d),d.content instanceof u&&Vn(d.content);if(ue)return c;if(Q){if(ye)for(b=kn.call(a.ownerDocument);a.firstChild;)b.appendChild(a.firstChild);else b=a;return(v.shadowroot||v.shadowrootmode)&&(b=Un.call(i,b,!0)),b}let L=Y?a.outerHTML:a.innerHTML;return Y&&T["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&x(Qt,a.ownerDocument.doctype.name)&&(L="<!DOCTYPE "+a.ownerDocument.doctype.name+`>
8
- `+L),Z&&De([Ue,ze,He],H=>{L=me(L,H," ")}),y&&we?y.createHTML(L):L},t.setConfig=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Je(c),je=!0},t.clearConfig=function(){re=null,je=!1},t.isValidAttribute=function(c,n,a){re||Je({});let s=A(c),d=A(n);return Ft(s,d,a)},t.addHook=function(c,n){typeof n=="function"&&pe(w[c],n)},t.removeHook=function(c,n){if(n!==void 0){let a=lr(w[c],n);return a===-1?void 0:cr(w[c],a,1)[0]}return Bt(w[c])},t.removeHooks=function(c){w[c]=[]},t.removeAllHooks=function(){w=Vt()},t}var tn=en();var P=rr(Cn()),ve=class{constructor(t){this.namespace=t}set(t,r,i,o){if(P.default.enabled&&(this.removeExpiredKeys(),t&&r!==void 0)){r.documentElement&&(r=new XMLSerializer().serializeToString(r.documentElement));try{P.default.set(t,{namespace:this.namespace,val:r,exp:i,time:new Date().getTime()/1e3})}catch(u){if(u instanceof Error){let g=u;if(g.quotaExceeded=Li(u),g.quotaExceeded&&o)o(u);else throw g}throw u}}}remove(t){P.default.enabled&&t&&P.default.remove(t)}removeExpiredKeys(){P.default.enabled&&P.default.each((t,r)=>{t&&t.exp&&new Date().getTime()/1e3-t.time>t.exp&&this.remove(r)})}removeAll(){P.default.enabled}removeNamespace(){P.default.each((t,r)=>{t.namespace&&t.namespace===this.namespace&&this.remove(r)})}get(t){if(P.default.enabled&&t)if(this.removeExpiredKeys(),t){var r=P.default.get(t);return r?r.val:void 0}else return}};function Li(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:e.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(t=!0);break}else e.number===-2147024882&&(t=!0);return t}var{sanitize:Ni}=tn;function Di(e){if(e&&e.trim().indexOf("<svg")==0){var t=new DOMParser,r=t.parseFromString(e,"text/xml"),i=r.documentElement;i.setAttribute("aria-hidden","true");var o=document.createElement("div");return o.className="svgImg",o.appendChild(i),o}throw new Error("No svg string given. Cannot draw")}function Ii(e){return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${e.width} ${e.height}" aria-hidden="true"><path fill="currentColor" d="${e.svgPathData}"></path></svg>`}function ht(e,t){if(e)return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function Ci(e,...t){if(e)for(let r of t)e.classList?e.classList.add(r):ht(e,r)||(e.className+=" "+r)}function Mi(e,t){if(e){if(e.classList)e.classList.remove(t);else if(ht(e,t)){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(r," ")}}}function Pi(e,t){return typeof e=="function"?e(t):typeof e=="string"?Ni(e):e}return ir(ki);})();
7
+ `+g+"}":"{"+m.join(",")+"}",gap=g,o}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,r){var i;if(gap="",indent="",typeof r=="number")for(i=0;i<r;i+=1)indent+=" ";else typeof r=="string"&&(indent=r);if(rep=t,t&&typeof t!="function"&&(typeof t!="object"||typeof t.length!="number"))throw new Error("JSON.stringify");return str("",{"":e})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var r,i,o=e[t];if(o&&typeof o=="object")for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i=walk(o,r),i!==void 0?o[r]=i:delete o[r]);return reviver.call(e,t,o)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var Ln=I((Xi,Nn)=>{Nn.exports=wi;function wi(){return Dn(),{}}});var Cn=I((Ji,In)=>{var xi=on(),Oi=Rn(),Ri=[Ln()];In.exports=xi.createStore(Oi,Ri)});var Fi={};nr(Fi,{Storage:()=>ve,addClass:()=>Ci,drawFontAwesomeIconAsSvg:()=>Ii,drawSvgStringAsElement:()=>Li,getAsValue:()=>Pi,hasClass:()=>_t,removeClass:()=>Mi});var{entries:Kt,setPrototypeOf:jt,isFrozen:ar,getPrototypeOf:or,getOwnPropertyDescriptor:sr}=Object,{freeze:O,seal:C,create:at}=Object,{apply:ot,construct:st}=typeof Reflect<"u"&&Reflect;O||(O=function(t){return t});C||(C=function(t){return t});ot||(ot=function(t,r){for(var i=arguments.length,o=new Array(i>2?i-2:0),u=2;u<i;u++)o[u-2]=arguments[u];return t.apply(r,o)});st||(st=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return new t(...i)});var Le=R(Array.prototype.forEach),lr=R(Array.prototype.lastIndexOf),Bt=R(Array.prototype.pop),pe=R(Array.prototype.push),cr=R(Array.prototype.splice),Ce=R(String.prototype.toLowerCase),Qe=R(String.prototype.toString),et=R(String.prototype.match),me=R(String.prototype.replace),ur=R(String.prototype.indexOf),fr=R(String.prototype.trim),M=R(Object.prototype.hasOwnProperty),x=R(RegExp.prototype.test),de=pr(TypeError);function R(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return ot(e,t,i)}}function pr(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return st(e,r)}}function p(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ce;jt&&jt(e,null);let i=t.length;for(;i--;){let o=t[i];if(typeof o=="string"){let u=r(o);u!==o&&(ar(t)||(t[i]=u),o=u)}e[o]=!0}return e}function mr(e){for(let t=0;t<e.length;t++)M(e,t)||(e[t]=null);return e}function z(e){let t=at(null);for(let[r,i]of Kt(e))M(e,r)&&(Array.isArray(i)?t[r]=mr(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=z(i):t[r]=i);return t}function ge(e,t){for(;e!==null;){let i=sr(e,t);if(i){if(i.get)return R(i.get);if(typeof i.value=="function")return R(i.value)}e=or(e)}function r(){return null}return r}var qt=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"]),tt=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"]),nt=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"]),dr=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"]),rt=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"]),gr=O(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Yt=O(["#text"]),$t=O(["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"]),it=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"]),Xt=O(["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"]),Ie=O(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hr=C(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_r=C(/<%[\w\W]*|[\w\W]*%>/gm),Er=C(/\$\{[\w\W]*/gm),Tr=C(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ar=C(/^aria-[\-\w]+$/),Zt=C(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vr=C(/^(?:\w+script|data):/i),Sr=C(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qt=C(/^html$/i),br=C(/^[a-z][.\w]*(-[.\w]+)+$/i),Jt=Object.freeze({__proto__:null,ARIA_ATTR:Ar,ATTR_WHITESPACE:Sr,CUSTOM_ELEMENT:br,DATA_ATTR:Tr,DOCTYPE_NAME:Qt,ERB_EXPR:_r,IS_ALLOWED_URI:Zt,IS_SCRIPT_OR_DATA:vr,MUSTACHE_EXPR:hr,TMPLIT_EXPR:Er}),he={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},yr=function(){return typeof window>"u"?null:window},wr=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null,o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(i=r.getAttribute(o));let u="dompurify"+(i?"#"+i:"");try{return t.createPolicy(u,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},Vt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function en(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yr(),t=c=>en(c);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==he.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e,i=r,o=i.currentScript,{DocumentFragment:u,HTMLTemplateElement:g,Node:m,Element:l,NodeFilter:h,NamedNodeMap:N=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:q,DOMParser:L,trustedTypes:F}=e,Y=l.prototype,Me=ge(Y,"cloneNode"),Pe=ge(Y,"remove"),Fe=ge(Y,"nextSibling"),Mn=ge(Y,"childNodes"),Se=ge(Y,"parentNode");if(typeof g=="function"){let c=r.createElement("template");c.content&&c.content.ownerDocument&&(r=c.content.ownerDocument)}let y,le="",{implementation:ke,createNodeIterator:Pn,createDocumentFragment:Fn,getElementsByTagName:kn}=r,{importNode:Un}=i,w=Vt();t.isSupported=typeof Kt=="function"&&typeof Se=="function"&&ke&&ke.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ue,ERB_EXPR:ze,TMPLIT_EXPR:He,DATA_ATTR:zn,ARIA_ATTR:Hn,IS_SCRIPT_OR_DATA:Gn,ATTR_WHITESPACE:Et,CUSTOM_ELEMENT:Wn}=Jt,{IS_ALLOWED_URI:Tt}=Jt,A=null,At=p({},[...qt,...tt,...nt,...rt,...Yt]),v=null,vt=p({},[...$t,...it,...Xt,...Ie]),_=Object.seal(at(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,Ge=null,Z=Object.seal(at(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),St=!0,We=!0,bt=!1,yt=!0,Q=!1,be=!0,$=!1,je=!1,Be=!1,ee=!1,ye=!1,we=!1,wt=!0,xt=!1,jn="user-content-",qe=!0,ue=!1,te={},k=null,Ye=p({},["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"]),Ot=null,Rt=p({},["audio","video","img","source","image","track"]),$e=null,Dt=p({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xe="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",H="http://www.w3.org/1999/xhtml",ne=H,Xe=!1,Je=null,Bn=p({},[xe,Oe,H],Qe),Re=p({},["mi","mo","mn","ms","mtext"]),De=p({},["annotation-xml"]),qn=p({},["title","style","font","a","script"]),fe=null,Yn=["application/xhtml+xml","text/html"],$n="text/html",T=null,re=null,Xn=r.createElement("form"),Nt=function(n){return n instanceof RegExp||n instanceof Function},Ve=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(re&&re===n)){if((!n||typeof n!="object")&&(n={}),n=z(n),fe=Yn.indexOf(n.PARSER_MEDIA_TYPE)===-1?$n:n.PARSER_MEDIA_TYPE,T=fe==="application/xhtml+xml"?Qe:Ce,A=M(n,"ALLOWED_TAGS")?p({},n.ALLOWED_TAGS,T):At,v=M(n,"ALLOWED_ATTR")?p({},n.ALLOWED_ATTR,T):vt,Je=M(n,"ALLOWED_NAMESPACES")?p({},n.ALLOWED_NAMESPACES,Qe):Bn,$e=M(n,"ADD_URI_SAFE_ATTR")?p(z(Dt),n.ADD_URI_SAFE_ATTR,T):Dt,Ot=M(n,"ADD_DATA_URI_TAGS")?p(z(Rt),n.ADD_DATA_URI_TAGS,T):Rt,k=M(n,"FORBID_CONTENTS")?p({},n.FORBID_CONTENTS,T):Ye,ce=M(n,"FORBID_TAGS")?p({},n.FORBID_TAGS,T):z({}),Ge=M(n,"FORBID_ATTR")?p({},n.FORBID_ATTR,T):z({}),te=M(n,"USE_PROFILES")?n.USE_PROFILES:!1,St=n.ALLOW_ARIA_ATTR!==!1,We=n.ALLOW_DATA_ATTR!==!1,bt=n.ALLOW_UNKNOWN_PROTOCOLS||!1,yt=n.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Q=n.SAFE_FOR_TEMPLATES||!1,be=n.SAFE_FOR_XML!==!1,$=n.WHOLE_DOCUMENT||!1,ee=n.RETURN_DOM||!1,ye=n.RETURN_DOM_FRAGMENT||!1,we=n.RETURN_TRUSTED_TYPE||!1,Be=n.FORCE_BODY||!1,wt=n.SANITIZE_DOM!==!1,xt=n.SANITIZE_NAMED_PROPS||!1,qe=n.KEEP_CONTENT!==!1,ue=n.IN_PLACE||!1,Tt=n.ALLOWED_URI_REGEXP||Zt,ne=n.NAMESPACE||H,Re=n.MATHML_TEXT_INTEGRATION_POINTS||Re,De=n.HTML_INTEGRATION_POINTS||De,_=n.CUSTOM_ELEMENT_HANDLING||{},n.CUSTOM_ELEMENT_HANDLING&&Nt(n.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=n.CUSTOM_ELEMENT_HANDLING.tagNameCheck),n.CUSTOM_ELEMENT_HANDLING&&Nt(n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),n.CUSTOM_ELEMENT_HANDLING&&typeof n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(We=!1),ye&&(ee=!0),te&&(A=p({},Yt),v=[],te.html===!0&&(p(A,qt),p(v,$t)),te.svg===!0&&(p(A,tt),p(v,it),p(v,Ie)),te.svgFilters===!0&&(p(A,nt),p(v,it),p(v,Ie)),te.mathMl===!0&&(p(A,rt),p(v,Xt),p(v,Ie))),n.ADD_TAGS&&(typeof n.ADD_TAGS=="function"?Z.tagCheck=n.ADD_TAGS:(A===At&&(A=z(A)),p(A,n.ADD_TAGS,T))),n.ADD_ATTR&&(typeof n.ADD_ATTR=="function"?Z.attributeCheck=n.ADD_ATTR:(v===vt&&(v=z(v)),p(v,n.ADD_ATTR,T))),n.ADD_URI_SAFE_ATTR&&p($e,n.ADD_URI_SAFE_ATTR,T),n.FORBID_CONTENTS&&(k===Ye&&(k=z(k)),p(k,n.FORBID_CONTENTS,T)),n.ADD_FORBID_CONTENTS&&(k===Ye&&(k=z(k)),p(k,n.ADD_FORBID_CONTENTS,T)),qe&&(A["#text"]=!0),$&&p(A,["html","head","body"]),A.table&&(p(A,["tbody"]),delete ce.tbody),n.TRUSTED_TYPES_POLICY){if(typeof n.TRUSTED_TYPES_POLICY.createHTML!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof n.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=n.TRUSTED_TYPES_POLICY,le=y.createHTML("")}else y===void 0&&(y=wr(F,o)),y!==null&&typeof le=="string"&&(le=y.createHTML(""));O&&O(n),re=n}},Lt=p({},[...tt,...nt,...dr]),It=p({},[...rt,...gr]),Jn=function(n){let a=Se(n);(!a||!a.tagName)&&(a={namespaceURI:ne,tagName:"template"});let s=Ce(n.tagName),d=Ce(a.tagName);return Je[n.namespaceURI]?n.namespaceURI===Oe?a.namespaceURI===H?s==="svg":a.namespaceURI===xe?s==="svg"&&(d==="annotation-xml"||Re[d]):!!Lt[s]:n.namespaceURI===xe?a.namespaceURI===H?s==="math":a.namespaceURI===Oe?s==="math"&&De[d]:!!It[s]:n.namespaceURI===H?a.namespaceURI===Oe&&!De[d]||a.namespaceURI===xe&&!Re[d]?!1:!It[s]&&(qn[s]||!Lt[s]):!!(fe==="application/xhtml+xml"&&Je[n.namespaceURI]):!1},U=function(n){pe(t.removed,{element:n});try{Se(n).removeChild(n)}catch{Pe(n)}},X=function(n,a){try{pe(t.removed,{attribute:a.getAttributeNode(n),from:a})}catch{pe(t.removed,{attribute:null,from:a})}if(a.removeAttribute(n),n==="is")if(ee||ye)try{U(a)}catch{}else try{a.setAttribute(n,"")}catch{}},Ct=function(n){let a=null,s=null;if(Be)n="<remove></remove>"+n;else{let E=et(n,/^[\r\n\t ]+/);s=E&&E[0]}fe==="application/xhtml+xml"&&ne===H&&(n='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+n+"</body></html>");let d=y?y.createHTML(n):n;if(ne===H)try{a=new L().parseFromString(d,fe)}catch{}if(!a||!a.documentElement){a=ke.createDocument(ne,"template",null);try{a.documentElement.innerHTML=Xe?le:d}catch{}}let b=a.body||a.documentElement;return n&&s&&b.insertBefore(r.createTextNode(s),b.childNodes[0]||null),ne===H?kn.call(a,$?"html":"body")[0]:$?a.documentElement:b},Mt=function(n){return Pn.call(n.ownerDocument||n,n,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Ke=function(n){return n instanceof q&&(typeof n.nodeName!="string"||typeof n.textContent!="string"||typeof n.removeChild!="function"||!(n.attributes instanceof N)||typeof n.removeAttribute!="function"||typeof n.setAttribute!="function"||typeof n.namespaceURI!="string"||typeof n.insertBefore!="function"||typeof n.hasChildNodes!="function")},Pt=function(n){return typeof m=="function"&&n instanceof m};function G(c,n,a){Le(c,s=>{s.call(t,n,a,re)})}let Ft=function(n){let a=null;if(G(w.beforeSanitizeElements,n,null),Ke(n))return U(n),!0;let s=T(n.nodeName);if(G(w.uponSanitizeElement,n,{tagName:s,allowedTags:A}),be&&n.hasChildNodes()&&!Pt(n.firstElementChild)&&x(/<[/\w!]/g,n.innerHTML)&&x(/<[/\w!]/g,n.textContent)||n.nodeType===he.progressingInstruction||be&&n.nodeType===he.comment&&x(/<[/\w]/g,n.data))return U(n),!0;if(!(Z.tagCheck instanceof Function&&Z.tagCheck(s))&&(!A[s]||ce[s])){if(!ce[s]&&Ut(s)&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s)))return!1;if(qe&&!k[s]){let d=Se(n)||n.parentNode,b=Mn(n)||n.childNodes;if(b&&d){let E=b.length;for(let D=E-1;D>=0;--D){let W=Me(b[D],!0);W.__removalCount=(n.__removalCount||0)+1,d.insertBefore(W,Fe(n))}}}return U(n),!0}return n instanceof l&&!Jn(n)||(s==="noscript"||s==="noembed"||s==="noframes")&&x(/<\/no(script|embed|frames)/i,n.innerHTML)?(U(n),!0):(Q&&n.nodeType===he.text&&(a=n.textContent,Le([Ue,ze,He],d=>{a=me(a,d," ")}),n.textContent!==a&&(pe(t.removed,{element:n.cloneNode()}),n.textContent=a)),G(w.afterSanitizeElements,n,null),!1)},kt=function(n,a,s){if(wt&&(a==="id"||a==="name")&&(s in r||s in Xn))return!1;if(!(We&&!Ge[a]&&x(zn,a))){if(!(St&&x(Hn,a))){if(!(Z.attributeCheck instanceof Function&&Z.attributeCheck(a,n))){if(!v[a]||Ge[a]){if(!(Ut(n)&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,n)||_.tagNameCheck instanceof Function&&_.tagNameCheck(n))&&(_.attributeNameCheck instanceof RegExp&&x(_.attributeNameCheck,a)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(a,n))||a==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&x(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s))))return!1}else if(!$e[a]){if(!x(Tt,me(s,Et,""))){if(!((a==="src"||a==="xlink:href"||a==="href")&&n!=="script"&&ur(s,"data:")===0&&Ot[n])){if(!(bt&&!x(Gn,me(s,Et,"")))){if(s)return!1}}}}}}}return!0},Ut=function(n){return n!=="annotation-xml"&&et(n,Wn)},zt=function(n){G(w.beforeSanitizeAttributes,n,null);let{attributes:a}=n;if(!a||Ke(n))return;let s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:v,forceKeepAttr:void 0},d=a.length;for(;d--;){let b=a[d],{name:E,namespaceURI:D,value:W}=b,ie=T(E),Ze=W,S=E==="value"?Ze:fr(Ze);if(s.attrName=ie,s.attrValue=S,s.keepAttr=!0,s.forceKeepAttr=void 0,G(w.uponSanitizeAttribute,n,s),S=s.attrValue,xt&&(ie==="id"||ie==="name")&&(X(E,n),S=jn+S),be&&x(/((--!?|])>)|<\/(style|title|textarea)/i,S)){X(E,n);continue}if(ie==="attributename"&&et(S,"href")){X(E,n);continue}if(s.forceKeepAttr)continue;if(!s.keepAttr){X(E,n);continue}if(!yt&&x(/\/>/i,S)){X(E,n);continue}Q&&Le([Ue,ze,He],Gt=>{S=me(S,Gt," ")});let Ht=T(n.nodeName);if(!kt(Ht,ie,S)){X(E,n);continue}if(y&&typeof F=="object"&&typeof F.getAttributeType=="function"&&!D)switch(F.getAttributeType(Ht,ie)){case"TrustedHTML":{S=y.createHTML(S);break}case"TrustedScriptURL":{S=y.createScriptURL(S);break}}if(S!==Ze)try{D?n.setAttributeNS(D,E,S):n.setAttribute(E,S),Ke(n)?U(n):Bt(t.removed)}catch{X(E,n)}}G(w.afterSanitizeAttributes,n,null)},Vn=function c(n){let a=null,s=Mt(n);for(G(w.beforeSanitizeShadowDOM,n,null);a=s.nextNode();)G(w.uponSanitizeShadowNode,a,null),Ft(a),zt(a),a.content instanceof u&&c(a.content);G(w.afterSanitizeShadowDOM,n,null)};return t.sanitize=function(c){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=null,s=null,d=null,b=null;if(Xe=!c,Xe&&(c="<!-->"),typeof c!="string"&&!Pt(c))if(typeof c.toString=="function"){if(c=c.toString(),typeof c!="string")throw de("dirty is not a string, aborting")}else throw de("toString is not a function");if(!t.isSupported)return c;if(je||Ve(n),t.removed=[],typeof c=="string"&&(ue=!1),ue){if(c.nodeName){let W=T(c.nodeName);if(!A[W]||ce[W])throw de("root node is forbidden and cannot be sanitized in-place")}}else if(c instanceof m)a=Ct("<!---->"),s=a.ownerDocument.importNode(c,!0),s.nodeType===he.element&&s.nodeName==="BODY"||s.nodeName==="HTML"?a=s:a.appendChild(s);else{if(!ee&&!Q&&!$&&c.indexOf("<")===-1)return y&&we?y.createHTML(c):c;if(a=Ct(c),!a)return ee?null:we?le:""}a&&Be&&U(a.firstChild);let E=Mt(ue?c:a);for(;d=E.nextNode();)Ft(d),zt(d),d.content instanceof u&&Vn(d.content);if(ue)return c;if(ee){if(ye)for(b=Fn.call(a.ownerDocument);a.firstChild;)b.appendChild(a.firstChild);else b=a;return(v.shadowroot||v.shadowrootmode)&&(b=Un.call(i,b,!0)),b}let D=$?a.outerHTML:a.innerHTML;return $&&A["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&x(Qt,a.ownerDocument.doctype.name)&&(D="<!DOCTYPE "+a.ownerDocument.doctype.name+`>
8
+ `+D),Q&&Le([Ue,ze,He],W=>{D=me(D,W," ")}),y&&we?y.createHTML(D):D},t.setConfig=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ve(c),je=!0},t.clearConfig=function(){re=null,je=!1},t.isValidAttribute=function(c,n,a){re||Ve({});let s=T(c),d=T(n);return kt(s,d,a)},t.addHook=function(c,n){typeof n=="function"&&pe(w[c],n)},t.removeHook=function(c,n){if(n!==void 0){let a=lr(w[c],n);return a===-1?void 0:cr(w[c],a,1)[0]}return Bt(w[c])},t.removeHooks=function(c){w[c]=[]},t.removeAllHooks=function(){w=Vt()},t}var tn=en();var P=rr(Cn()),ve=class{constructor(t){this.namespace=t}set(t,r,i,o){if(P.default.enabled&&(this.removeExpiredKeys(),t&&r!==void 0)){r.documentElement&&(r=new XMLSerializer().serializeToString(r.documentElement));try{P.default.set(t,{namespace:this.namespace,val:r,exp:i,time:new Date().getTime()/1e3})}catch(u){if(u instanceof Error){let g=u;if(g.quotaExceeded=Di(u),g.quotaExceeded&&o)o(u);else throw g}throw u}}}remove(t){P.default.enabled&&t&&P.default.remove(t)}removeExpiredKeys(){P.default.enabled&&P.default.each((t,r)=>{t&&t.exp&&new Date().getTime()/1e3-t.time>t.exp&&this.remove(r)})}removeAll(){P.default.enabled}removeNamespace(){P.default.each((t,r)=>{t.namespace&&t.namespace===this.namespace&&this.remove(r)})}get(t){if(P.default.enabled&&t)if(this.removeExpiredKeys(),t){var r=P.default.get(t);return r?r.val:void 0}else return}};function Di(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:e.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(t=!0);break}else e.number===-2147024882&&(t=!0);return t}var{sanitize:Ni}=tn;function Li(e){if(e&&e.trim().indexOf("<svg")==0){var t=new DOMParser,r=t.parseFromString(e,"text/xml"),i=r.documentElement;i.setAttribute("aria-hidden","true");var o=document.createElement("div");return o.className="svgImg",o.appendChild(i),o}throw new Error("No svg string given. Cannot draw")}function Ii(e){return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${e.width} ${e.height}" aria-hidden="true"><path fill="currentColor" d="${e.svgPathData}"></path></svg>`}function _t(e,t){if(e)return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function Ci(e,...t){if(e)for(let r of t)e.classList?e.classList.add(r):_t(e,r)||(e.className+=" "+r)}function Mi(e,t){if(e){if(e.classList)e.classList.remove(t);else if(_t(e,t)){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(r," ")}}}function Pi(e,t){return typeof e=="function"?e(t):typeof e=="string"?Ni(e):e}return ir(Fi);})();
9
9
  /*! Bundled license information:
10
10
 
11
11
  dompurify/dist/purify.es.mjs:
12
- (*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE *)
12
+ (*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE *)
13
13
  */
14
14
  if (typeof Utils !== 'undefined' && Utils?.default) { Utils = Utils.default; }
15
15
  //# sourceMappingURL=utils.min.js.map