sootsim 0.1.293 → 0.1.295

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 (169) hide show
  1. package/detox/expectations.ts +4 -3
  2. package/detox/index.ts +2 -4
  3. package/dist-cli/bin.js +7 -5
  4. package/dist-cli/chunks/{agent-YWI2NWL7.js → agent-ASAYE5YY.js} +4 -2
  5. package/dist-cli/chunks/{agent-wrapper-IYJ7UZOA.js → agent-wrapper-K2D4Q5AA.js} +4 -2
  6. package/dist-cli/chunks/{app-fonts-FQFUC4LR.js → app-fonts-36N7AVQ3.js} +4 -2
  7. package/dist-cli/chunks/{assert-XUCELWAC.js → assert-4FKHHDY7.js} +4 -2
  8. package/dist-cli/chunks/{auth-4DQTV3OW.js → auth-BQPOPEFK.js} +4 -2
  9. package/dist-cli/chunks/beta-3LNYONDF.js +4 -0
  10. package/dist-cli/chunks/{camera-RYOHBVZA.js → camera-Y5MZ5V4L.js} +4 -2
  11. package/dist-cli/chunks/{chunk-YRFWATLA.js → chunk-2RI6RC6I.js} +4 -2
  12. package/dist-cli/chunks/{chunk-RV67J726.js → chunk-3WQISFAK.js} +3 -1
  13. package/dist-cli/chunks/{chunk-67CIS55C.js → chunk-4NJIXTVJ.js} +3 -1
  14. package/dist-cli/chunks/{chunk-UOHGYYSO.js → chunk-4ODQVUBH.js} +3 -1
  15. package/dist-cli/chunks/chunk-4V2KYK5T.js +4 -0
  16. package/dist-cli/chunks/chunk-6VF477QO.js +4 -0
  17. package/dist-cli/chunks/{chunk-2XYCSFGN.js → chunk-7FYIMLU4.js} +34 -32
  18. package/dist-cli/chunks/{chunk-WOWLO4LL.js → chunk-7GVBNEQ3.js} +3 -1
  19. package/dist-cli/chunks/{chunk-J6P2UPXH.js → chunk-7GZ6XF2B.js} +7 -5
  20. package/dist-cli/chunks/{chunk-VZ44FQDG.js → chunk-BX2NUJGR.js} +3 -1
  21. package/dist-cli/chunks/chunk-COEKUTWV.js +4 -0
  22. package/dist-cli/chunks/chunk-CVDC2ER2.js +10 -0
  23. package/dist-cli/chunks/{chunk-2VKTOZQ5.js → chunk-D2DU3ROC.js} +4 -2
  24. package/dist-cli/chunks/{chunk-DE4ZA3NL.js → chunk-DKS75M2I.js} +4 -2
  25. package/dist-cli/chunks/{chunk-WP3TFHFL.js → chunk-DXCQP3VE.js} +4 -2
  26. package/dist-cli/chunks/{chunk-6IFJLHDA.js → chunk-E6DZD6JD.js} +3 -1
  27. package/dist-cli/chunks/chunk-ETDZQUGI.js +5 -0
  28. package/dist-cli/chunks/{chunk-KC5SCOGS.js → chunk-FH7DQ2HB.js} +4 -2
  29. package/dist-cli/chunks/{chunk-LOQLZFRK.js → chunk-HT6WYHQL.js} +4 -2
  30. package/dist-cli/chunks/{chunk-LA5DIO33.js → chunk-I4QJVACX.js} +3 -1
  31. package/dist-cli/chunks/chunk-I7AWRAXM.js +125 -0
  32. package/dist-cli/chunks/{chunk-U3564F2Y.js → chunk-JPPGM6RZ.js} +4 -2
  33. package/dist-cli/chunks/chunk-K7LQB4IF.js +7 -0
  34. package/dist-cli/chunks/chunk-L7V46673.js +3 -0
  35. package/dist-cli/chunks/chunk-MEYVMDZR.js +74 -0
  36. package/dist-cli/chunks/chunk-OQ7SSRYK.js +4 -0
  37. package/dist-cli/chunks/{chunk-BQT5YDTV.js → chunk-QKZVANQG.js} +5 -3
  38. package/dist-cli/chunks/{chunk-E5WYXRGV.js → chunk-QPA44BZC.js} +28 -26
  39. package/dist-cli/chunks/{chunk-WPPMUUML.js → chunk-RNW36VM5.js} +4 -2
  40. package/dist-cli/chunks/{chunk-UPKYK52K.js → chunk-RV67EC7L.js} +4 -2
  41. package/dist-cli/chunks/{chunk-RKXHQ2Q3.js → chunk-S6BEA6OC.js} +18 -16
  42. package/dist-cli/chunks/chunk-SU5WQ4SQ.js +4 -0
  43. package/dist-cli/chunks/{chunk-7B6RGFTM.js → chunk-T2DHHOWE.js} +4 -2
  44. package/dist-cli/chunks/{chunk-4B4VFT73.js → chunk-TGYZYSDB.js} +7 -5
  45. package/dist-cli/chunks/{chunk-JOPKZVOW.js → chunk-TNKZWHD2.js} +3 -1
  46. package/dist-cli/chunks/chunk-TXURXDZN.js +4 -0
  47. package/dist-cli/chunks/{chunk-PCAPHXN3.js → chunk-U2QPKFOY.js} +4 -2
  48. package/dist-cli/chunks/{chunk-WVMYRKSS.js → chunk-UAZ3NVKO.js} +4 -2
  49. package/dist-cli/chunks/{chunk-B7TX4WFB.js → chunk-UBIGBHUM.js} +4 -2
  50. package/dist-cli/chunks/{chunk-547W23BB.js → chunk-UWFAWMPE.js} +4 -2
  51. package/dist-cli/chunks/{chunk-VO74GDXL.js → chunk-WFYQNZTT.js} +5 -3
  52. package/dist-cli/chunks/{chunk-NCCMRFXU.js → chunk-X5FTDIHQ.js} +3 -1
  53. package/dist-cli/chunks/{chunk-2M57EAWS.js → chunk-XCCDO6I2.js} +3 -1
  54. package/dist-cli/chunks/{chunk-RMLJXP7T.js → chunk-XQRUWC3F.js} +4 -2
  55. package/dist-cli/chunks/{chunk-TJS5IMOH.js → chunk-Y6FJ5FCY.js} +3 -1
  56. package/dist-cli/chunks/{chunk-WI36YJ23.js → chunk-ZJZYGLJ2.js} +3 -1
  57. package/dist-cli/chunks/{cleanup-BLFDJSFS.js → cleanup-SMCA44QC.js} +4 -2
  58. package/dist-cli/chunks/cli-version-I6BOBK57.js +4 -0
  59. package/dist-cli/chunks/{compat-Q3WCSTB7.js → compat-FCM2ZQLV.js} +5 -3
  60. package/dist-cli/chunks/{config-NHNMRRNB.js → config-PZSANSAI.js} +4 -2
  61. package/dist-cli/chunks/control-PM554MHE.js +4 -0
  62. package/dist-cli/chunks/daemon-5KXEZZLJ.js +4 -0
  63. package/dist-cli/chunks/{debug-PGRMZFXA.js → debug-VG2JOF6H.js} +5 -3
  64. package/dist-cli/chunks/{desktop-NVTQ37LH.js → desktop-GH2POW6X.js} +5 -3
  65. package/dist-cli/chunks/{detox-W3JDXS76.js → detox-X6T265L5.js} +4 -2
  66. package/dist-cli/chunks/{device-KQYN3EVK.js → device-VDOOSAXO.js} +4 -2
  67. package/dist-cli/chunks/{diagnose-CPUKSGNO.js → diagnose-6D6WNAGL.js} +4 -2
  68. package/dist-cli/chunks/disk-cleanup-HTOIDDKK.js +4 -0
  69. package/dist-cli/chunks/drivers-CKLBQDXG.js +4 -0
  70. package/dist-cli/chunks/{film-VZGAZ2YY.js → film-UZWYISAB.js} +11 -24
  71. package/dist-cli/chunks/flow-VOS3RKB3.js +4 -0
  72. package/dist-cli/chunks/help-LVMDERFQ.js +4 -0
  73. package/dist-cli/chunks/{hidden-runtime-alias-KWHABCNZ.js → hidden-runtime-alias-UGMJ4LJX.js} +4 -2
  74. package/dist-cli/chunks/{home-paths-O4CGYVHF.js → home-paths-3LYT47SY.js} +4 -2
  75. package/dist-cli/chunks/inspect-FHCSOWGQ.js +4 -0
  76. package/dist-cli/chunks/install-desktop-KLMCVDGZ.js +4 -0
  77. package/dist-cli/chunks/{login-KPN4Z26Q.js → login-K43TRKUC.js} +6 -4
  78. package/dist-cli/chunks/logout-L43CR6M2.js +4 -0
  79. package/dist-cli/chunks/{maestro-PYA4AHTS.js → maestro-7VZFYLNS.js} +13 -11
  80. package/dist-cli/chunks/{maestro-generate-KCMYWPWL.js → maestro-generate-PMYHUVH4.js} +5 -3
  81. package/dist-cli/chunks/{mode-AEB7G2SJ.js → mode-QQS5XFFX.js} +4 -2
  82. package/dist-cli/chunks/optional-demo-registry-2V327HDG.js +4 -0
  83. package/dist-cli/chunks/{perf-YLXGZI3E.js → perf-CL5P3JVP.js} +4 -2
  84. package/dist-cli/chunks/{permissions-7VMVZOUV.js → permissions-RGVCEC2B.js} +4 -2
  85. package/dist-cli/chunks/{record-AVQO45PE.js → record-ASW6UFQT.js} +5 -3
  86. package/dist-cli/chunks/runtime-GB3ZE27C.js +4 -0
  87. package/dist-cli/chunks/{screenshot-command-LACQLA4N.js → screenshot-command-FEJGQMQF.js} +5 -3
  88. package/dist-cli/chunks/{screenshots-capture-PROOBSGB.js → screenshots-capture-3JPZ5WMX.js} +4 -2
  89. package/dist-cli/chunks/{serve-FJN2FRGW.js → serve-SYXRHRQO.js} +4 -2
  90. package/dist-cli/chunks/{setup-IVV4NRYQ.js → setup-QLGL6MC6.js} +5 -3
  91. package/dist-cli/chunks/{skills-WYR3PJOH.js → skills-T6EEX5P6.js} +4 -2
  92. package/dist-cli/chunks/{storage-GM7K4MGM.js → storage-ZFUK4EQA.js} +4 -2
  93. package/dist-cli/chunks/store-WCDTSWJC.js +4 -0
  94. package/dist-cli/chunks/telemetry-D7SL4WW7.js +4 -0
  95. package/dist-cli/chunks/{timeline-R5UL3N4T.js → timeline-EIURYQVC.js} +4 -2
  96. package/dist-cli/chunks/{upgrade-RWHSFZRX.js → upgrade-Q7ZGWMCJ.js} +4 -2
  97. package/dist-cli/chunks/upload-7XEICYJX.js +4 -0
  98. package/dist-cli/chunks/{version-7K6TVQOW.js → version-PDG4V26R.js} +4 -2
  99. package/dist-cli/chunks/web-AMW2TRWB.js +4 -0
  100. package/dist-cli/chunks/{what-happened-K24TSJZX.js → what-happened-L5ZN7S5G.js} +4 -2
  101. package/dist-lib/agent-daemon-client.cjs +2 -1
  102. package/dist-lib/agent-events.cjs +1 -1
  103. package/dist-lib/agent-identity.cjs +3 -3
  104. package/dist-lib/agent-sessions.cjs +1 -1
  105. package/dist-lib/attached-projects.cjs +1 -1
  106. package/dist-lib/auth/shared-session.cjs +1 -1
  107. package/dist-lib/backend-origin.cjs +1 -1
  108. package/dist-lib/beta.cjs +1 -1
  109. package/dist-lib/beta.mjs +1 -1
  110. package/dist-lib/bridge-constants.cjs +4 -1
  111. package/dist-lib/cli-constants.cjs +1 -1
  112. package/dist-lib/config.cjs +1 -1
  113. package/dist-lib/detox/index.cjs +5 -4
  114. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  115. package/dist-lib/home-paths.cjs +1 -1
  116. package/dist-lib/host/bridge-host.cjs +4 -3
  117. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  118. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  119. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  120. package/dist-lib/host/websocket-proxy.cjs +1 -1
  121. package/dist-lib/index.cjs +4 -1
  122. package/dist-lib/jump-to-source-babel.cjs +1 -1
  123. package/dist-lib/menu.cjs +45 -4
  124. package/dist-lib/menu.mjs +42 -4
  125. package/dist-lib/metro.cjs +1 -1
  126. package/dist-lib/profiles.cjs +1 -1
  127. package/dist-lib/render-mode.cjs +1 -1
  128. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  129. package/dist-lib/sdk.cjs +5 -2
  130. package/dist-lib/sdk.mjs +4 -2
  131. package/dist-lib/skills.cjs +328 -183
  132. package/dist-lib/vite.cjs +2 -1
  133. package/package.json +6 -1
  134. package/scripts/postinstall.cjs +11 -2
  135. package/skills/contrast/SKILL.md +2 -2
  136. package/src/agent-identity.ts +2 -2
  137. package/src/bridge-constants.ts +1 -0
  138. package/src/index.ts +4 -1
  139. package/src/menu.ts +53 -4
  140. package/src/vite-plugin.ts +102 -2
  141. package/dist-cli/chunks/beta-CFDAW6UN.js +0 -2
  142. package/dist-cli/chunks/chunk-3UX6AY2B.js +0 -2
  143. package/dist-cli/chunks/chunk-6VVLDYPV.js +0 -8
  144. package/dist-cli/chunks/chunk-7H34H74K.js +0 -72
  145. package/dist-cli/chunks/chunk-7H5G4HUK.js +0 -2
  146. package/dist-cli/chunks/chunk-ACSTEPSD.js +0 -2
  147. package/dist-cli/chunks/chunk-AFRXWKTA.js +0 -118
  148. package/dist-cli/chunks/chunk-HKMWUN7F.js +0 -2
  149. package/dist-cli/chunks/chunk-K5JEUI5G.js +0 -5
  150. package/dist-cli/chunks/chunk-MOU2WLO4.js +0 -2
  151. package/dist-cli/chunks/chunk-QXDXUDJD.js +0 -1
  152. package/dist-cli/chunks/chunk-USJTVC7T.js +0 -2
  153. package/dist-cli/chunks/chunk-YNG4C3ZS.js +0 -2
  154. package/dist-cli/chunks/cli-version-TQHZOK4L.js +0 -2
  155. package/dist-cli/chunks/control-I7YBDRJT.js +0 -2
  156. package/dist-cli/chunks/daemon-4R3SZLZY.js +0 -2
  157. package/dist-cli/chunks/disk-cleanup-2COWZWBC.js +0 -2
  158. package/dist-cli/chunks/drivers-RRZM6E72.js +0 -2
  159. package/dist-cli/chunks/flow-VH6DFDQ4.js +0 -2
  160. package/dist-cli/chunks/help-3HQ2RINO.js +0 -2
  161. package/dist-cli/chunks/inspect-PKMJGXDH.js +0 -2
  162. package/dist-cli/chunks/install-desktop-K5TP3ZHJ.js +0 -2
  163. package/dist-cli/chunks/logout-E3UCJAMC.js +0 -2
  164. package/dist-cli/chunks/optional-demo-registry-AIWOBAAA.js +0 -2
  165. package/dist-cli/chunks/runtime-HOGETVVD.js +0 -2
  166. package/dist-cli/chunks/store-YLVHPKG7.js +0 -2
  167. package/dist-cli/chunks/telemetry-MQKB6PFX.js +0 -2
  168. package/dist-cli/chunks/upload-RBH4XGJ2.js +0 -2
  169. package/dist-cli/chunks/web-46ZPQCAL.js +0 -2
@@ -1,2 +1,4 @@
1
- /*! sootsim v0.1.293 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a as o}from"./chunk-547W23BB.js";var c=["ghs_","ghp_","gho_","ghu_","github_pat_"];function d(n){return!!(n&&n.length>=20&&c.some(t=>n.startsWith(t)))}function p(){let n=process.env.CONTRAST_INSTALLATION_TOKEN?.trim(),t=process.env.GITHUB_TOKEN?.trim(),e=n||t;if(!d(e))return null;let r=(process.env.CONTRAST_REPO||process.env.GITHUB_REPOSITORY||"").trim();if(!r)return null;let[i,s]=r.includes("/")?r.split("/",2):[null,null],u=(process.env.CONTRAST_REPO_ID||process.env.GITHUB_REPOSITORY_ID||"").trim(),l=(process.env.CONTRAST_INSTALLATION_ID||process.env.GITHUB_APP_INSTALLATION_ID||"").trim();return{kind:"github",token:e,repoId:r,repositoryId:u||null,owner:i||null,repo:s||null,installationId:l||null,source:n?"contrast-runner":"github-actions"}}function a(){let n=process.env.SOOTSIM_API_KEY?.trim();if(n&&n.startsWith("sk_sootsim_"))return{kind:"api-key",secret:n,source:"env"};let t=p();if(t)return t;let e=o();return e?.token?{kind:"session",token:e.token,origin:e.origin}:null}function g(n){return n.kind==="api-key"?`Bearer ${n.secret}`:`Bearer ${n.token}`}function _(n){return!n||n.kind!=="github"?null:{repoId:n.repoId,owner:n.owner??void 0,repo:n.repo??void 0,installationId:n.installationId}}export{a,g as b,_ as c};
1
+ /*! sootsim v0.1.295 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ import{a as o}from"./chunk-UWFAWMPE.js";var c=["ghs_","ghp_","gho_","ghu_","github_pat_"];function d(n){return!!(n&&n.length>=20&&c.some(t=>n.startsWith(t)))}function p(){let n=process.env.CONTRAST_INSTALLATION_TOKEN?.trim(),t=process.env.GITHUB_TOKEN?.trim(),e=n||t;if(!d(e))return null;let r=(process.env.CONTRAST_REPO||process.env.GITHUB_REPOSITORY||"").trim();if(!r)return null;let[i,s]=r.includes("/")?r.split("/",2):[null,null],u=(process.env.CONTRAST_REPO_ID||process.env.GITHUB_REPOSITORY_ID||"").trim(),l=(process.env.CONTRAST_INSTALLATION_ID||process.env.GITHUB_APP_INSTALLATION_ID||"").trim();return{kind:"github",token:e,repoId:r,repositoryId:u||null,owner:i||null,repo:s||null,installationId:l||null,source:n?"contrast-runner":"github-actions"}}function a(){let n=process.env.SOOTSIM_API_KEY?.trim();if(n&&n.startsWith("sk_sootsim_"))return{kind:"api-key",secret:n,source:"env"};let t=p();if(t)return t;let e=o();return e?.token?{kind:"session",token:e.token,origin:e.origin}:null}function g(n){return n.kind==="api-key"?`Bearer ${n.secret}`:`Bearer ${n.token}`}function _(n){return!n||n.kind!=="github"?null:{repoId:n.repoId,owner:n.owner??void 0,repo:n.repo??void 0,installationId:n.installationId}}export{a,g as b,_ as c};
@@ -1,5 +1,7 @@
1
- /*! sootsim v0.1.293 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a as xt,b as gr}from"./chunk-6IFJLHDA.js";import{H as mr}from"./chunk-WOWLO4LL.js";import{a as Zi,b as M,d as Ji}from"./chunk-RV67J726.js";var vr=M(et=>{"use strict";et.byteLength=ru;et.toByteArray=iu;et.fromByteArray=ou;var W=[],G=[],tu=typeof Uint8Array<"u"?Uint8Array:Array,Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ce=0,br=Pt.length;ce<br;++ce)W[ce]=Pt[ce],G[Pt.charCodeAt(ce)]=ce;var ce,br;G[45]=62;G[95]=63;function Cr(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function ru(e){var t=Cr(e),r=t[0],i=t[1];return(r+i)*3/4-i}function nu(e,t,r){return(t+r)*3/4-r}function iu(e){var t,r=Cr(e),i=r[0],n=r[1],s=new tu(nu(e,i,n)),u=0,l=n>0?i-4:i,c;for(c=0;c<l;c+=4)t=G[e.charCodeAt(c)]<<18|G[e.charCodeAt(c+1)]<<12|G[e.charCodeAt(c+2)]<<6|G[e.charCodeAt(c+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=t&255;return n===2&&(t=G[e.charCodeAt(c)]<<2|G[e.charCodeAt(c+1)]>>4,s[u++]=t&255),n===1&&(t=G[e.charCodeAt(c)]<<10|G[e.charCodeAt(c+1)]<<4|G[e.charCodeAt(c+2)]>>2,s[u++]=t>>8&255,s[u++]=t&255),s}function uu(e){return W[e>>18&63]+W[e>>12&63]+W[e>>6&63]+W[e&63]}function su(e,t,r){for(var i,n=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),n.push(uu(i));return n.join("")}function ou(e){for(var t,r=e.length,i=r%3,n=[],s=16383,u=0,l=r-i;u<l;u+=s)n.push(su(e,u,u+s>l?l:u+s));return i===1?(t=e[r-1],n.push(W[t>>2]+W[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(W[t>>10]+W[t>>4&63]+W[t<<2&63]+"=")),n.join("")}});var Y=M((Tr,ue)=>{(function(){var e,t,r,i,n,s,u,l={}.hasOwnProperty;e=function(c,...p){var m,d,y,b;if(n(Object.assign))Object.assign.apply(null,arguments);else for(m=0,y=p.length;m<y;m++)if(b=p[m],b!=null)for(d in b)l.call(b,d)&&(c[d]=b[d]);return c},n=function(c){return!!c&&Object.prototype.toString.call(c)==="[object Function]"},s=function(c){var p;return!!c&&((p=typeof c)=="function"||p==="object")},r=function(c){return n(Array.isArray)?Array.isArray(c):Object.prototype.toString.call(c)==="[object Array]"},i=function(c){var p;if(r(c))return!c.length;for(p in c)if(l.call(c,p))return!1;return!0},u=function(c){var p,m;return s(c)&&(m=Object.getPrototypeOf(c))&&(p=m.constructor)&&typeof p=="function"&&p instanceof p&&Function.prototype.toString.call(p)===Function.prototype.toString.call(Object)},t=function(c){return n(c.valueOf)?c.valueOf():c},ue.exports.assign=e,ue.exports.isFunction=n,ue.exports.isObject=s,ue.exports.isArray=r,ue.exports.isEmpty=i,ue.exports.isPlainObject=u,ue.exports.getValue=t}).call(Tr)});var Rt=M((Nr,Sr)=>{(function(){var e;Sr.exports=e=class{hasFeature(r,i){return!0}createDocumentType(r,i,n){throw new Error("This DOM method is not implemented.")}createDocument(r,i,n){throw new Error("This DOM method is not implemented.")}createHTMLDocument(r){throw new Error("This DOM method is not implemented.")}getFeature(r,i){throw new Error("This DOM method is not implemented.")}}}).call(Nr)});var Lr=M((Or,Ir)=>{(function(){var e;Ir.exports=e=class{constructor(){}handleError(r){throw new Error(r)}}}).call(Or)});var Fr=M((Mr,Br)=>{(function(){var e;Br.exports=e=(function(){class t{constructor(i){this.arr=i||[]}item(i){return this.arr[i]||null}contains(i){return this.arr.indexOf(i)!==-1}}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t}).call(this)}).call(Mr)});var Rr=M((xr,Pr)=>{(function(){var e,t,r;t=Lr(),r=Fr(),Pr.exports=e=(function(){class i{constructor(){var s;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new t,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=s=Object.create(this.defaultParams)}getParameter(s){return this.params.hasOwnProperty(s)?this.params[s]:null}canSetParameter(s,u){return!0}setParameter(s,u){return u!=null?this.params[s]=u:delete this.params[s]}}return Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new r(Object.keys(this.defaultParams))}}),i}).call(this)}).call(xr)});var R=M((qr,_r)=>{(function(){_r.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(qr)});var qt=M((kr,Ur)=>{(function(){var e,t,r;e=R(),r=z(),Ur.exports=t=(function(){class i{constructor(s,u,l){if(this.parent=s,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),u==null)throw new Error("Missing attribute name. "+this.debugInfo(u));this.name=this.stringify.name(u),this.value=this.stringify.attValue(l),this.type=e.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(s){return this.options.writer.attribute(this,this.options.writer.filterOptions(s))}debugInfo(s){return s=s||this.name,s==null?"parent: <"+this.parent.name+">":"attribute: {"+s+"}, parent: <"+this.parent.name+">"}isEqualNode(s){return!(s.namespaceURI!==this.namespaceURI||s.prefix!==this.prefix||s.localName!==this.localName||s.value!==this.value)}}return Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(n){return this.value=n||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i}).call(this)}).call(kr)});var tt=M((jr,Xr)=>{(function(){var e;Xr.exports=e=(function(){class t{constructor(i){this.nodes=i}clone(){return this.nodes=null}getNamedItem(i){return this.nodes[i]}setNamedItem(i){var n;return n=this.nodes[i.nodeName],this.nodes[i.nodeName]=i,n||null}removeNamedItem(i){var n;return n=this.nodes[i],delete this.nodes[i],n||null}item(i){return this.nodes[Object.keys(this.nodes)[i]]||null}getNamedItemNS(i,n){throw new Error("This DOM method is not implemented.")}setNamedItemNS(i){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(i,n){throw new Error("This DOM method is not implemented.")}}return Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),t}).call(this)}).call(jr)});var rt=M((Vr,Hr)=>{(function(){var e,t,r,i,n,s,u,l,c={}.hasOwnProperty;({isObject:l,isFunction:u,getValue:s}=Y()),n=z(),e=R(),t=qt(),i=tt(),Hr.exports=r=(function(){class p extends n{constructor(d,y,b){var C,N,T,B;if(super(d),y==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(y),this.type=e.Element,this.attribs={},this.schemaTypeInfo=null,b!=null&&this.attribute(b),d.type===e.Document&&(this.isRoot=!0,this.documentObject=d,d.rootObject=this,d.children)){for(B=d.children,N=0,T=B.length;N<T;N++)if(C=B[N],C.type===e.DocType){C.name=this.name;break}}}clone(){var d,y,b,C;b=Object.create(this),b.isRoot&&(b.documentObject=null),b.attribs={},C=this.attribs;for(y in C)c.call(C,y)&&(d=C[y],b.attribs[y]=d.clone());return b.children=[],this.children.forEach(function(N){var T;return T=N.clone(),T.parent=b,b.children.push(T)}),b}attribute(d,y){var b,C;if(d!=null&&(d=s(d)),l(d))for(b in d)c.call(d,b)&&(C=d[b],this.attribute(b,C));else u(y)&&(y=y.apply()),this.options.keepNullAttributes&&y==null?this.attribs[d]=new t(this,d,""):y!=null&&(this.attribs[d]=new t(this,d,y));return this}removeAttribute(d){var y,b,C;if(d==null)throw new Error("Missing attribute name. "+this.debugInfo());if(d=s(d),Array.isArray(d))for(b=0,C=d.length;b<C;b++)y=d[b],delete this.attribs[y];else delete this.attribs[d];return this}toString(d){return this.options.writer.element(this,this.options.writer.filterOptions(d))}att(d,y){return this.attribute(d,y)}a(d,y){return this.attribute(d,y)}getAttribute(d){return this.attribs.hasOwnProperty(d)?this.attribs[d].value:null}setAttribute(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(d){return this.attribs.hasOwnProperty(d)?this.attribs[d]:null}setAttributeNode(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(d,y,b){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(d){return this.attribs.hasOwnProperty(d)}hasAttributeNS(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(d,y){return this.attribs.hasOwnProperty(d)?this.attribs[d].isId:y}setIdAttributeNS(d,y,b){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(d){var y,b,C;if(!super.isEqualNode(d)||d.namespaceURI!==this.namespaceURI||d.prefix!==this.prefix||d.localName!==this.localName||d.attribs.length!==this.attribs.length)return!1;for(y=b=0,C=this.attribs.length-1;0<=C?b<=C:b>=C;y=0<=C?++b:--b)if(!this.attribs[y].isEqualNode(d.attribs[y]))return!1;return!0}}return Object.defineProperty(p.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(p.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(p.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(p.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(p.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(p.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(p.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(p.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new i(this.attribs)),this.attributeMap}}),p}).call(this)}).call(Vr)});var Se=M((zr,Gr)=>{(function(){var e,t;t=z(),Gr.exports=e=(function(){class r extends t{constructor(n){super(n),this.value=""}clone(){return Object.create(this)}substringData(n,s){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(n){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(n,s){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(n,s){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(n,s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(n){return!(!super.isEqualNode(n)||n.data!==this.data)}}return Object.defineProperty(r.prototype,"data",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(r.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),r}).call(this)}).call(zr)});var nt=M(($r,Wr)=>{(function(){var e,t,r;e=R(),r=Se(),Wr.exports=t=class extends r{constructor(n,s){if(super(n),s==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=e.CData,this.value=this.stringify.cdata(s)}clone(){return Object.create(this)}toString(n){return this.options.writer.cdata(this,this.options.writer.filterOptions(n))}}}).call($r)});var it=M((Yr,Kr)=>{(function(){var e,t,r;e=R(),t=Se(),Kr.exports=r=class extends t{constructor(n,s){if(super(n),s==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=e.Comment,this.value=this.stringify.comment(s)}clone(){return Object.create(this)}toString(n){return this.options.writer.comment(this,this.options.writer.filterOptions(n))}}}).call(Yr)});var ut=M((Zr,Jr)=>{(function(){var e,t,r,i;({isObject:i}=Y()),r=z(),e=R(),Jr.exports=t=class extends r{constructor(s,u,l,c){super(s),i(u)&&({version:u,encoding:l,standalone:c}=u),u||(u="1.0"),this.type=e.Declaration,this.version=this.stringify.xmlVersion(u),l!=null&&(this.encoding=this.stringify.xmlEncoding(l)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}toString(s){return this.options.writer.declaration(this,this.options.writer.filterOptions(s))}}}).call(Zr)});var st=M((Qr,en)=>{(function(){var e,t,r;r=z(),e=R(),en.exports=t=class extends r{constructor(n,s,u,l,c,p){if(super(n),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(u==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(s));if(!l)throw new Error("Missing DTD attribute type. "+this.debugInfo(s));if(!c)throw new Error("Missing DTD attribute default. "+this.debugInfo(s));if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(s));if(p&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(s));this.elementName=this.stringify.name(s),this.type=e.AttributeDeclaration,this.attributeName=this.stringify.name(u),this.attributeType=this.stringify.dtdAttType(l),p&&(this.defaultValue=this.stringify.dtdAttDefault(p)),this.defaultValueType=c}toString(n){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(n))}}}).call(Qr)});var ot=M((tn,rn)=>{(function(){var e,t,r,i;({isObject:i}=Y()),r=z(),e=R(),rn.exports=t=(function(){class n extends r{constructor(u,l,c,p){if(super(u),c==null)throw new Error("Missing DTD entity name. "+this.debugInfo(c));if(p==null)throw new Error("Missing DTD entity value. "+this.debugInfo(c));if(this.pe=!!l,this.name=this.stringify.name(c),this.type=e.EntityDeclaration,!i(p))this.value=this.stringify.dtdEntityValue(p),this.internal=!0;else{if(!p.pubID&&!p.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(c));if(p.pubID&&!p.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(c));if(this.internal=!1,p.pubID!=null&&(this.pubID=this.stringify.dtdPubID(p.pubID)),p.sysID!=null&&(this.sysID=this.stringify.dtdSysID(p.sysID)),p.nData!=null&&(this.nData=this.stringify.dtdNData(p.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(c))}}toString(u){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(u))}}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(n.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(n.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlVersion",{get:function(){return null}}),n}).call(this)}).call(tn)});var at=M((nn,un)=>{(function(){var e,t,r;r=z(),e=R(),un.exports=t=class extends r{constructor(n,s,u){if(super(n),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());u||(u="(#PCDATA)"),Array.isArray(u)&&(u="("+u.join(",")+")"),this.name=this.stringify.name(s),this.type=e.ElementDeclaration,this.value=this.stringify.dtdElementValue(u)}toString(n){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(n))}}}).call(nn)});var lt=M((sn,on)=>{(function(){var e,t,r;r=z(),e=R(),on.exports=t=(function(){class i extends r{constructor(s,u,l){if(super(s),u==null)throw new Error("Missing DTD notation name. "+this.debugInfo(u));if(!l.pubID&&!l.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(u));this.name=this.stringify.name(u),this.type=e.NotationDeclaration,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID))}toString(s){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(s))}}return Object.defineProperty(i.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(i.prototype,"systemId",{get:function(){return this.sysID}}),i}).call(this)}).call(sn)});var ct=M((an,ln)=>{(function(){var e,t,r,i,n,s,u,l,c;({isObject:c}=Y()),l=z(),e=R(),t=st(),i=ot(),r=at(),n=lt(),u=tt(),ln.exports=s=(function(){class p extends l{constructor(d,y,b){var C,N,T,B;if(super(d),this.type=e.DocType,d.children){for(B=d.children,N=0,T=B.length;N<T;N++)if(C=B[N],C.type===e.Element){this.name=C.name;break}}this.documentObject=d,c(y)&&({pubID:y,sysID:b}=y),b==null&&([b,y]=[y,b]),y!=null&&(this.pubID=this.stringify.dtdPubID(y)),b!=null&&(this.sysID=this.stringify.dtdSysID(b))}element(d,y){var b;return b=new r(this,d,y),this.children.push(b),this}attList(d,y,b,C,N){var T;return T=new t(this,d,y,b,C,N),this.children.push(T),this}entity(d,y){var b;return b=new i(this,!1,d,y),this.children.push(b),this}pEntity(d,y){var b;return b=new i(this,!0,d,y),this.children.push(b),this}notation(d,y){var b;return b=new n(this,d,y),this.children.push(b),this}toString(d){return this.options.writer.docType(this,this.options.writer.filterOptions(d))}ele(d,y){return this.element(d,y)}att(d,y,b,C,N){return this.attList(d,y,b,C,N)}ent(d,y){return this.entity(d,y)}pent(d,y){return this.pEntity(d,y)}not(d,y){return this.notation(d,y)}up(){return this.root()||this.documentObject}isEqualNode(d){return!(!super.isEqualNode(d)||d.name!==this.name||d.publicId!==this.publicId||d.systemId!==this.systemId)}}return Object.defineProperty(p.prototype,"entities",{get:function(){var m,d,y,b,C;for(b={},C=this.children,d=0,y=C.length;d<y;d++)m=C[d],m.type===e.EntityDeclaration&&!m.pe&&(b[m.name]=m);return new u(b)}}),Object.defineProperty(p.prototype,"notations",{get:function(){var m,d,y,b,C;for(b={},C=this.children,d=0,y=C.length;d<y;d++)m=C[d],m.type===e.NotationDeclaration&&(b[m.name]=m);return new u(b)}}),Object.defineProperty(p.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(p.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(p.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),p}).call(this)}).call(an)});var ht=M((cn,hn)=>{(function(){var e,t,r;e=R(),t=z(),hn.exports=r=class extends t{constructor(n,s){if(super(n),s==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=e.Raw,this.value=this.stringify.raw(s)}clone(){return Object.create(this)}toString(n){return this.options.writer.raw(this,this.options.writer.filterOptions(n))}}}).call(cn)});var ft=M((fn,dn)=>{(function(){var e,t,r;e=R(),t=Se(),dn.exports=r=(function(){class i extends t{constructor(s,u){if(super(s),u==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=e.Text,this.value=this.stringify.text(u)}clone(){return Object.create(this)}toString(s){return this.options.writer.text(this,this.options.writer.filterOptions(s))}splitText(s){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(s){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(i.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"wholeText",{get:function(){var n,s,u;for(u="",s=this.previousSibling;s;)u=s.data+u,s=s.previousSibling;for(u+=this.data,n=this.nextSibling;n;)u=u+n.data,n=n.nextSibling;return u}}),i}).call(this)}).call(fn)});var dt=M((pn,mn)=>{(function(){var e,t,r;e=R(),t=Se(),mn.exports=r=class extends t{constructor(n,s,u){if(super(n),s==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=e.ProcessingInstruction,this.target=this.stringify.insTarget(s),this.name=this.target,u&&(this.value=this.stringify.insValue(u))}clone(){return Object.create(this)}toString(n){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(n))}isEqualNode(n){return!(!super.isEqualNode(n)||n.target!==this.target)}}}).call(pn)});var _t=M((gn,Dn)=>{(function(){var e,t,r;r=z(),e=R(),Dn.exports=t=class extends r{constructor(n){super(n),this.type=e.Dummy}clone(){return Object.create(this)}toString(n){return""}}}).call(gn)});var En=M((yn,wn)=>{(function(){var e;wn.exports=e=(function(){class t{constructor(i){this.nodes=i}clone(){return this.nodes=null}item(i){return this.nodes[i]||null}}return Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length||0}}),t}).call(this)}).call(yn)});var Cn=M((An,bn)=>{(function(){bn.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(An)});var z=M((vn,Tn)=>{(function(){var e,t,r,i,n,s,u,l,c,p,m,d,y,b,C,N,T,B,P={}.hasOwnProperty,f=[].splice;({isObject:B,isFunction:T,isEmpty:N,getValue:C}=Y()),l=null,r=null,i=null,n=null,s=null,y=null,b=null,d=null,u=null,t=null,m=null,c=null,e=null,Tn.exports=p=(function(){class h{constructor(o){this.parent=o,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,l||(l=rt(),r=nt(),i=it(),n=ut(),s=ct(),y=ht(),b=ft(),d=dt(),u=_t(),t=R(),m=En(),c=tt(),e=Cn())}setParent(o){var D,A,a,g,E;for(this.parent=o,o&&(this.options=o.options,this.stringify=o.stringify),g=this.children,E=[],A=0,a=g.length;A<a;A++)D=g[A],E.push(D.setParent(this));return E}element(o,D,A){var a,g,E,v,O,I,q,L,S;if(I=null,D===null&&A==null&&([D,A]=[{},null]),D==null&&(D={}),D=C(D),B(D)||([A,D]=[D,A]),o!=null&&(o=C(o)),Array.isArray(o))for(E=0,q=o.length;E<q;E++)g=o[E],I=this.element(g);else if(T(o))I=this.element(o.apply());else if(B(o)){for(O in o)if(P.call(o,O))if(S=o[O],T(S)&&(S=S.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&O.indexOf(this.stringify.convertAttKey)===0)I=this.attribute(O.substr(this.stringify.convertAttKey.length),S);else if(!this.options.separateArrayItems&&Array.isArray(S)&&N(S))I=this.dummy();else if(B(S)&&N(S))I=this.element(O);else if(!this.options.keepNullNodes&&S==null)I=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(S))for(v=0,L=S.length;v<L;v++)g=S[v],a={},a[O]=g,I=this.element(a);else B(S)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&O.indexOf(this.stringify.convertTextKey)===0?I=this.element(S):(I=this.element(O),I.element(S)):I=this.element(O,S)}else!this.options.keepNullNodes&&A===null?I=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&o.indexOf(this.stringify.convertTextKey)===0?I=this.text(A):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&o.indexOf(this.stringify.convertCDataKey)===0?I=this.cdata(A):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&o.indexOf(this.stringify.convertCommentKey)===0?I=this.comment(A):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&o.indexOf(this.stringify.convertRawKey)===0?I=this.raw(A):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&o.indexOf(this.stringify.convertPIKey)===0?I=this.instruction(o.substr(this.stringify.convertPIKey.length),A):I=this.node(o,D,A);if(I==null)throw new Error("Could not create any elements with: "+o+". "+this.debugInfo());return I}insertBefore(o,D,A){var a,g,E,v,O;if(o?.type)return E=o,v=D,E.setParent(this),v?(g=children.indexOf(v),O=children.splice(g),children.push(E),Array.prototype.push.apply(children,O)):children.push(E),E;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(o));return g=this.parent.children.indexOf(this),O=this.parent.children.splice(g),a=this.parent.element(o,D,A),Array.prototype.push.apply(this.parent.children,O),a}insertAfter(o,D,A){var a,g,E;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(o));return g=this.parent.children.indexOf(this),E=this.parent.children.splice(g+1),a=this.parent.element(o,D,A),Array.prototype.push.apply(this.parent.children,E),a}remove(){var o,D;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return o=this.parent.children.indexOf(this),f.apply(this.parent.children,[o,o-o+1].concat(D=[])),this.parent}node(o,D,A){var a;return o!=null&&(o=C(o)),D||(D={}),D=C(D),B(D)||([A,D]=[D,A]),a=new l(this,o,D),A!=null&&a.text(A),this.children.push(a),a}text(o){var D;return B(o)&&this.element(o),D=new b(this,o),this.children.push(D),this}cdata(o){var D;return D=new r(this,o),this.children.push(D),this}comment(o){var D;return D=new i(this,o),this.children.push(D),this}commentBefore(o){var D,A,a;return A=this.parent.children.indexOf(this),a=this.parent.children.splice(A),D=this.parent.comment(o),Array.prototype.push.apply(this.parent.children,a),this}commentAfter(o){var D,A,a;return A=this.parent.children.indexOf(this),a=this.parent.children.splice(A+1),D=this.parent.comment(o),Array.prototype.push.apply(this.parent.children,a),this}raw(o){var D;return D=new y(this,o),this.children.push(D),this}dummy(){var o;return o=new u(this),o}instruction(o,D){var A,a,g,E,v;if(o!=null&&(o=C(o)),D!=null&&(D=C(D)),Array.isArray(o))for(E=0,v=o.length;E<v;E++)A=o[E],this.instruction(A);else if(B(o))for(A in o)P.call(o,A)&&(a=o[A],this.instruction(A,a));else T(D)&&(D=D.apply()),g=new d(this,o,D),this.children.push(g);return this}instructionBefore(o,D){var A,a,g;return a=this.parent.children.indexOf(this),g=this.parent.children.splice(a),A=this.parent.instruction(o,D),Array.prototype.push.apply(this.parent.children,g),this}instructionAfter(o,D){var A,a,g;return a=this.parent.children.indexOf(this),g=this.parent.children.splice(a+1),A=this.parent.instruction(o,D),Array.prototype.push.apply(this.parent.children,g),this}declaration(o,D,A){var a,g;return a=this.document(),g=new n(a,o,D,A),a.children.length===0?a.children.unshift(g):a.children[0].type===t.Declaration?a.children[0]=g:a.children.unshift(g),a.root()||a}dtd(o,D){var A,a,g,E,v,O,I,q,L,S;for(a=this.document(),g=new s(a,o,D),L=a.children,E=v=0,I=L.length;v<I;E=++v)if(A=L[E],A.type===t.DocType)return a.children[E]=g,g;for(S=a.children,E=O=0,q=S.length;O<q;E=++O)if(A=S[E],A.isRoot)return a.children.splice(E,0,g),g;return a.children.push(g),g}up(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent}root(){var o;for(o=this;o;){if(o.type===t.Document)return o.rootObject;if(o.isRoot)return o;o=o.parent}}document(){var o;for(o=this;o;){if(o.type===t.Document)return o;o=o.parent}}end(o){return this.document().end(o)}prev(){var o;if(o=this.parent.children.indexOf(this),o<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[o-1]}next(){var o;if(o=this.parent.children.indexOf(this),o===-1||o===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[o+1]}importDocument(o){var D,A,a,g,E;if(A=o.root().clone(),A.parent=this,A.isRoot=!1,this.children.push(A),this.type===t.Document&&(A.isRoot=!0,A.documentObject=this,this.rootObject=A,this.children)){for(E=this.children,a=0,g=E.length;a<g;a++)if(D=E[a],D.type===t.DocType){D.name=A.name;break}}return this}debugInfo(o){var D,A;return o=o||this.name,o==null&&!((D=this.parent)!=null&&D.name)?"":o==null?"parent: <"+this.parent.name+">":(A=this.parent)!=null&&A.name?"node: <"+o+">, parent: <"+this.parent.name+">":"node: <"+o+">"}ele(o,D,A){return this.element(o,D,A)}nod(o,D,A){return this.node(o,D,A)}txt(o){return this.text(o)}dat(o){return this.cdata(o)}com(o){return this.comment(o)}ins(o,D){return this.instruction(o,D)}doc(){return this.document()}dec(o,D,A){return this.declaration(o,D,A)}e(o,D,A){return this.element(o,D,A)}n(o,D,A){return this.node(o,D,A)}t(o){return this.text(o)}d(o){return this.cdata(o)}c(o){return this.comment(o)}r(o){return this.raw(o)}i(o,D){return this.instruction(o,D)}u(){return this.up()}importXMLBuilder(o){return this.importDocument(o)}attribute(o,D){throw new Error("attribute() applies to element nodes only.")}att(o,D){return this.attribute(o,D)}a(o,D){return this.attribute(o,D)}removeAttribute(o){throw new Error("attribute() applies to element nodes only.")}replaceChild(o,D){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(o,D){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(o){var D,A;return D=this,D===o?0:this.document()!==o.document()?(A=e.Disconnected|e.ImplementationSpecific,Math.random()<.5?A|=e.Preceding:A|=e.Following,A):D.isAncestor(o)?e.Contains|e.Preceding:D.isDescendant(o)?e.Contains|e.Following:D.isPreceding(o)?e.Preceding:e.Following}isSameNode(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(o){var D,A,a;if(o.nodeType!==this.nodeType||o.children.length!==this.children.length)return!1;for(D=A=0,a=this.children.length-1;0<=a?A<=a:A>=a;D=0<=a?++A:--A)if(!this.children[D].isEqualNode(o.children[D]))return!1;return!0}getFeature(o,D){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(o,D,A){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(o){return o?o===this||this.isDescendant(o):!1}isDescendant(o){var D,A,a,g,E;for(E=this.children,a=0,g=E.length;a<g;a++)if(D=E[a],o===D||(A=D.isDescendant(o),A))return!0;return!1}isAncestor(o){return o.isDescendant(this)}isPreceding(o){var D,A;return D=this.treePosition(o),A=this.treePosition(this),D===-1||A===-1?!1:D<A}isFollowing(o){var D,A;return D=this.treePosition(o),A=this.treePosition(this),D===-1||A===-1?!1:D>A}treePosition(o){var D,A;return A=0,D=!1,this.foreachTreeNode(this.document(),function(a){if(A++,!D&&a===o)return D=!0}),D?A:-1}foreachTreeNode(o,D){var A,a,g,E,v;for(o||(o=this.document()),E=o.children,a=0,g=E.length;a<g;a++){if(A=E[a],v=D(A))return v;if(v=this.foreachTreeNode(A,D),v)return v}}}return Object.defineProperty(h.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(h.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(h.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(h.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(h.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new m(this.children)),this.childNodeList}}),Object.defineProperty(h.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(h.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(h.prototype,"previousSibling",{get:function(){var w;return w=this.parent.children.indexOf(this),this.parent.children[w-1]||null}}),Object.defineProperty(h.prototype,"nextSibling",{get:function(){var w;return w=this.parent.children.indexOf(this),this.parent.children[w+1]||null}}),Object.defineProperty(h.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(h.prototype,"textContent",{get:function(){var w,o,D,A,a;if(this.nodeType===t.Element||this.nodeType===t.DocumentFragment){for(a="",A=this.children,o=0,D=A.length;o<D;o++)w=A[o],w.textContent&&(a+=w.textContent);return a}else return null},set:function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),h}).call(this)}).call(vn)});var kt=M((Nn,Sn)=>{(function(){var e,t={}.hasOwnProperty;Sn.exports=e=(function(){class r{constructor(n){var s,u,l;this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),n||(n={}),this.options=n,this.options.version||(this.options.version="1.0"),u=n.stringify||{};for(s in u)t.call(u,s)&&(l=u[s],this[s]=l)}name(n){return this.options.noValidation?n:this.assertLegalName(""+n||"")}text(n){return this.options.noValidation?n:this.assertLegalChar(this.textEscape(""+n||""))}cdata(n){return this.options.noValidation?n:(n=""+n||"",n=n.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(n))}comment(n){if(this.options.noValidation)return n;if(n=""+n||"",n.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+n);return this.assertLegalChar(n)}raw(n){return this.options.noValidation?n:""+n||""}attValue(n){return this.options.noValidation?n:this.assertLegalChar(this.attEscape(n=""+n||""))}insTarget(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}insValue(n){if(this.options.noValidation)return n;if(n=""+n||"",n.match(/\?>/))throw new Error("Invalid processing instruction value: "+n);return this.assertLegalChar(n)}xmlVersion(n){if(this.options.noValidation)return n;if(n=""+n||"",!n.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+n);return n}xmlEncoding(n){if(this.options.noValidation)return n;if(n=""+n||"",!n.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+n);return this.assertLegalChar(n)}xmlStandalone(n){return this.options.noValidation?n:n?"yes":"no"}dtdPubID(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}dtdSysID(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}dtdElementValue(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}dtdAttType(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}dtdAttDefault(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}dtdEntityValue(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}dtdNData(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}assertLegalChar(n){var s,u;if(this.options.noValidation)return n;if(this.options.version==="1.0"){if(s=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)n=n.replace(s,this.options.invalidCharReplacement);else if(u=n.match(s))throw new Error(`Invalid character in string: ${n} at index ${u.index}`)}else if(this.options.version==="1.1"){if(s=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)n=n.replace(s,this.options.invalidCharReplacement);else if(u=n.match(s))throw new Error(`Invalid character in string: ${n} at index ${u.index}`)}return n}assertLegalName(n){var s;if(this.options.noValidation)return n;if(n=this.assertLegalChar(n),s=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!n.match(s))throw new Error(`Invalid character in name: ${n}`);return n}textEscape(n){var s;return this.options.noValidation?n:(s=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,n.replace(s,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))}attEscape(n){var s;return this.options.noValidation?n:(s=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,n.replace(s,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))}}return r.prototype.convertAttKey="@",r.prototype.convertPIKey="?",r.prototype.convertTextKey="#text",r.prototype.convertCDataKey="#cdata",r.prototype.convertCommentKey="#comment",r.prototype.convertRawKey="#raw",r}).call(this)}).call(Nn)});var Oe=M((On,In)=>{(function(){In.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(On)});var Ut=M((Ln,Mn)=>{(function(){var e,t,r,i,n,s,u,l,c,p,m,d,y,b,C,N,T,B={}.hasOwnProperty;({assign:T}=Y()),e=R(),c=ut(),p=ct(),r=nt(),i=it(),d=rt(),b=ht(),C=ft(),y=dt(),m=_t(),n=st(),s=at(),u=ot(),l=lt(),t=Oe(),Mn.exports=N=class{constructor(f){var h,w,o;f||(f={}),this.options=f,w=f.writer||{};for(h in w)B.call(w,h)&&(o=w[h],this["_"+h]=this[h],this[h]=o)}filterOptions(f){var h,w,o,D,A,a,g,E,v;return f||(f={}),f=T({},this.options,f),h={writer:this},h.pretty=f.pretty||!1,h.allowEmpty=f.allowEmpty||!1,h.indent=(w=f.indent)!=null?w:" ",h.newline=(o=f.newline)!=null?o:`
1
+ /*! sootsim v0.1.295 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ import{a as xt,b as gr}from"./chunk-E6DZD6JD.js";import{H as mr}from"./chunk-7GVBNEQ3.js";import{a as Zi,b as M,d as Ji}from"./chunk-3WQISFAK.js";var vr=M(et=>{"use strict";et.byteLength=ru;et.toByteArray=iu;et.fromByteArray=ou;var W=[],G=[],tu=typeof Uint8Array<"u"?Uint8Array:Array,Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ce=0,br=Pt.length;ce<br;++ce)W[ce]=Pt[ce],G[Pt.charCodeAt(ce)]=ce;var ce,br;G[45]=62;G[95]=63;function Cr(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function ru(e){var t=Cr(e),r=t[0],i=t[1];return(r+i)*3/4-i}function nu(e,t,r){return(t+r)*3/4-r}function iu(e){var t,r=Cr(e),i=r[0],n=r[1],s=new tu(nu(e,i,n)),u=0,l=n>0?i-4:i,c;for(c=0;c<l;c+=4)t=G[e.charCodeAt(c)]<<18|G[e.charCodeAt(c+1)]<<12|G[e.charCodeAt(c+2)]<<6|G[e.charCodeAt(c+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=t&255;return n===2&&(t=G[e.charCodeAt(c)]<<2|G[e.charCodeAt(c+1)]>>4,s[u++]=t&255),n===1&&(t=G[e.charCodeAt(c)]<<10|G[e.charCodeAt(c+1)]<<4|G[e.charCodeAt(c+2)]>>2,s[u++]=t>>8&255,s[u++]=t&255),s}function uu(e){return W[e>>18&63]+W[e>>12&63]+W[e>>6&63]+W[e&63]}function su(e,t,r){for(var i,n=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),n.push(uu(i));return n.join("")}function ou(e){for(var t,r=e.length,i=r%3,n=[],s=16383,u=0,l=r-i;u<l;u+=s)n.push(su(e,u,u+s>l?l:u+s));return i===1?(t=e[r-1],n.push(W[t>>2]+W[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(W[t>>10]+W[t>>4&63]+W[t<<2&63]+"=")),n.join("")}});var Y=M((Tr,ue)=>{(function(){var e,t,r,i,n,s,u,l={}.hasOwnProperty;e=function(c,...p){var m,d,y,b;if(n(Object.assign))Object.assign.apply(null,arguments);else for(m=0,y=p.length;m<y;m++)if(b=p[m],b!=null)for(d in b)l.call(b,d)&&(c[d]=b[d]);return c},n=function(c){return!!c&&Object.prototype.toString.call(c)==="[object Function]"},s=function(c){var p;return!!c&&((p=typeof c)=="function"||p==="object")},r=function(c){return n(Array.isArray)?Array.isArray(c):Object.prototype.toString.call(c)==="[object Array]"},i=function(c){var p;if(r(c))return!c.length;for(p in c)if(l.call(c,p))return!1;return!0},u=function(c){var p,m;return s(c)&&(m=Object.getPrototypeOf(c))&&(p=m.constructor)&&typeof p=="function"&&p instanceof p&&Function.prototype.toString.call(p)===Function.prototype.toString.call(Object)},t=function(c){return n(c.valueOf)?c.valueOf():c},ue.exports.assign=e,ue.exports.isFunction=n,ue.exports.isObject=s,ue.exports.isArray=r,ue.exports.isEmpty=i,ue.exports.isPlainObject=u,ue.exports.getValue=t}).call(Tr)});var Rt=M((Nr,Sr)=>{(function(){var e;Sr.exports=e=class{hasFeature(r,i){return!0}createDocumentType(r,i,n){throw new Error("This DOM method is not implemented.")}createDocument(r,i,n){throw new Error("This DOM method is not implemented.")}createHTMLDocument(r){throw new Error("This DOM method is not implemented.")}getFeature(r,i){throw new Error("This DOM method is not implemented.")}}}).call(Nr)});var Lr=M((Or,Ir)=>{(function(){var e;Ir.exports=e=class{constructor(){}handleError(r){throw new Error(r)}}}).call(Or)});var Fr=M((Mr,Br)=>{(function(){var e;Br.exports=e=(function(){class t{constructor(i){this.arr=i||[]}item(i){return this.arr[i]||null}contains(i){return this.arr.indexOf(i)!==-1}}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t}).call(this)}).call(Mr)});var Rr=M((xr,Pr)=>{(function(){var e,t,r;t=Lr(),r=Fr(),Pr.exports=e=(function(){class i{constructor(){var s;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new t,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=s=Object.create(this.defaultParams)}getParameter(s){return this.params.hasOwnProperty(s)?this.params[s]:null}canSetParameter(s,u){return!0}setParameter(s,u){return u!=null?this.params[s]=u:delete this.params[s]}}return Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new r(Object.keys(this.defaultParams))}}),i}).call(this)}).call(xr)});var R=M((qr,_r)=>{(function(){_r.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(qr)});var qt=M((kr,Ur)=>{(function(){var e,t,r;e=R(),r=z(),Ur.exports=t=(function(){class i{constructor(s,u,l){if(this.parent=s,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),u==null)throw new Error("Missing attribute name. "+this.debugInfo(u));this.name=this.stringify.name(u),this.value=this.stringify.attValue(l),this.type=e.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(s){return this.options.writer.attribute(this,this.options.writer.filterOptions(s))}debugInfo(s){return s=s||this.name,s==null?"parent: <"+this.parent.name+">":"attribute: {"+s+"}, parent: <"+this.parent.name+">"}isEqualNode(s){return!(s.namespaceURI!==this.namespaceURI||s.prefix!==this.prefix||s.localName!==this.localName||s.value!==this.value)}}return Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(n){return this.value=n||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i}).call(this)}).call(kr)});var tt=M((jr,Xr)=>{(function(){var e;Xr.exports=e=(function(){class t{constructor(i){this.nodes=i}clone(){return this.nodes=null}getNamedItem(i){return this.nodes[i]}setNamedItem(i){var n;return n=this.nodes[i.nodeName],this.nodes[i.nodeName]=i,n||null}removeNamedItem(i){var n;return n=this.nodes[i],delete this.nodes[i],n||null}item(i){return this.nodes[Object.keys(this.nodes)[i]]||null}getNamedItemNS(i,n){throw new Error("This DOM method is not implemented.")}setNamedItemNS(i){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(i,n){throw new Error("This DOM method is not implemented.")}}return Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),t}).call(this)}).call(jr)});var rt=M((Vr,Hr)=>{(function(){var e,t,r,i,n,s,u,l,c={}.hasOwnProperty;({isObject:l,isFunction:u,getValue:s}=Y()),n=z(),e=R(),t=qt(),i=tt(),Hr.exports=r=(function(){class p extends n{constructor(d,y,b){var C,N,T,B;if(super(d),y==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(y),this.type=e.Element,this.attribs={},this.schemaTypeInfo=null,b!=null&&this.attribute(b),d.type===e.Document&&(this.isRoot=!0,this.documentObject=d,d.rootObject=this,d.children)){for(B=d.children,N=0,T=B.length;N<T;N++)if(C=B[N],C.type===e.DocType){C.name=this.name;break}}}clone(){var d,y,b,C;b=Object.create(this),b.isRoot&&(b.documentObject=null),b.attribs={},C=this.attribs;for(y in C)c.call(C,y)&&(d=C[y],b.attribs[y]=d.clone());return b.children=[],this.children.forEach(function(N){var T;return T=N.clone(),T.parent=b,b.children.push(T)}),b}attribute(d,y){var b,C;if(d!=null&&(d=s(d)),l(d))for(b in d)c.call(d,b)&&(C=d[b],this.attribute(b,C));else u(y)&&(y=y.apply()),this.options.keepNullAttributes&&y==null?this.attribs[d]=new t(this,d,""):y!=null&&(this.attribs[d]=new t(this,d,y));return this}removeAttribute(d){var y,b,C;if(d==null)throw new Error("Missing attribute name. "+this.debugInfo());if(d=s(d),Array.isArray(d))for(b=0,C=d.length;b<C;b++)y=d[b],delete this.attribs[y];else delete this.attribs[d];return this}toString(d){return this.options.writer.element(this,this.options.writer.filterOptions(d))}att(d,y){return this.attribute(d,y)}a(d,y){return this.attribute(d,y)}getAttribute(d){return this.attribs.hasOwnProperty(d)?this.attribs[d].value:null}setAttribute(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(d){return this.attribs.hasOwnProperty(d)?this.attribs[d]:null}setAttributeNode(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(d,y,b){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(d){return this.attribs.hasOwnProperty(d)}hasAttributeNS(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(d,y){return this.attribs.hasOwnProperty(d)?this.attribs[d].isId:y}setIdAttributeNS(d,y,b){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(d){var y,b,C;if(!super.isEqualNode(d)||d.namespaceURI!==this.namespaceURI||d.prefix!==this.prefix||d.localName!==this.localName||d.attribs.length!==this.attribs.length)return!1;for(y=b=0,C=this.attribs.length-1;0<=C?b<=C:b>=C;y=0<=C?++b:--b)if(!this.attribs[y].isEqualNode(d.attribs[y]))return!1;return!0}}return Object.defineProperty(p.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(p.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(p.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(p.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(p.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(p.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(p.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(p.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new i(this.attribs)),this.attributeMap}}),p}).call(this)}).call(Vr)});var Se=M((zr,Gr)=>{(function(){var e,t;t=z(),Gr.exports=e=(function(){class r extends t{constructor(n){super(n),this.value=""}clone(){return Object.create(this)}substringData(n,s){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(n){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(n,s){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(n,s){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(n,s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(n){return!(!super.isEqualNode(n)||n.data!==this.data)}}return Object.defineProperty(r.prototype,"data",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(r.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),r}).call(this)}).call(zr)});var nt=M(($r,Wr)=>{(function(){var e,t,r;e=R(),r=Se(),Wr.exports=t=class extends r{constructor(n,s){if(super(n),s==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=e.CData,this.value=this.stringify.cdata(s)}clone(){return Object.create(this)}toString(n){return this.options.writer.cdata(this,this.options.writer.filterOptions(n))}}}).call($r)});var it=M((Yr,Kr)=>{(function(){var e,t,r;e=R(),t=Se(),Kr.exports=r=class extends t{constructor(n,s){if(super(n),s==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=e.Comment,this.value=this.stringify.comment(s)}clone(){return Object.create(this)}toString(n){return this.options.writer.comment(this,this.options.writer.filterOptions(n))}}}).call(Yr)});var ut=M((Zr,Jr)=>{(function(){var e,t,r,i;({isObject:i}=Y()),r=z(),e=R(),Jr.exports=t=class extends r{constructor(s,u,l,c){super(s),i(u)&&({version:u,encoding:l,standalone:c}=u),u||(u="1.0"),this.type=e.Declaration,this.version=this.stringify.xmlVersion(u),l!=null&&(this.encoding=this.stringify.xmlEncoding(l)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}toString(s){return this.options.writer.declaration(this,this.options.writer.filterOptions(s))}}}).call(Zr)});var st=M((Qr,en)=>{(function(){var e,t,r;r=z(),e=R(),en.exports=t=class extends r{constructor(n,s,u,l,c,p){if(super(n),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(u==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(s));if(!l)throw new Error("Missing DTD attribute type. "+this.debugInfo(s));if(!c)throw new Error("Missing DTD attribute default. "+this.debugInfo(s));if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(s));if(p&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(s));this.elementName=this.stringify.name(s),this.type=e.AttributeDeclaration,this.attributeName=this.stringify.name(u),this.attributeType=this.stringify.dtdAttType(l),p&&(this.defaultValue=this.stringify.dtdAttDefault(p)),this.defaultValueType=c}toString(n){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(n))}}}).call(Qr)});var ot=M((tn,rn)=>{(function(){var e,t,r,i;({isObject:i}=Y()),r=z(),e=R(),rn.exports=t=(function(){class n extends r{constructor(u,l,c,p){if(super(u),c==null)throw new Error("Missing DTD entity name. "+this.debugInfo(c));if(p==null)throw new Error("Missing DTD entity value. "+this.debugInfo(c));if(this.pe=!!l,this.name=this.stringify.name(c),this.type=e.EntityDeclaration,!i(p))this.value=this.stringify.dtdEntityValue(p),this.internal=!0;else{if(!p.pubID&&!p.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(c));if(p.pubID&&!p.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(c));if(this.internal=!1,p.pubID!=null&&(this.pubID=this.stringify.dtdPubID(p.pubID)),p.sysID!=null&&(this.sysID=this.stringify.dtdSysID(p.sysID)),p.nData!=null&&(this.nData=this.stringify.dtdNData(p.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(c))}}toString(u){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(u))}}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(n.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(n.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlVersion",{get:function(){return null}}),n}).call(this)}).call(tn)});var at=M((nn,un)=>{(function(){var e,t,r;r=z(),e=R(),un.exports=t=class extends r{constructor(n,s,u){if(super(n),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());u||(u="(#PCDATA)"),Array.isArray(u)&&(u="("+u.join(",")+")"),this.name=this.stringify.name(s),this.type=e.ElementDeclaration,this.value=this.stringify.dtdElementValue(u)}toString(n){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(n))}}}).call(nn)});var lt=M((sn,on)=>{(function(){var e,t,r;r=z(),e=R(),on.exports=t=(function(){class i extends r{constructor(s,u,l){if(super(s),u==null)throw new Error("Missing DTD notation name. "+this.debugInfo(u));if(!l.pubID&&!l.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(u));this.name=this.stringify.name(u),this.type=e.NotationDeclaration,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID))}toString(s){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(s))}}return Object.defineProperty(i.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(i.prototype,"systemId",{get:function(){return this.sysID}}),i}).call(this)}).call(sn)});var ct=M((an,ln)=>{(function(){var e,t,r,i,n,s,u,l,c;({isObject:c}=Y()),l=z(),e=R(),t=st(),i=ot(),r=at(),n=lt(),u=tt(),ln.exports=s=(function(){class p extends l{constructor(d,y,b){var C,N,T,B;if(super(d),this.type=e.DocType,d.children){for(B=d.children,N=0,T=B.length;N<T;N++)if(C=B[N],C.type===e.Element){this.name=C.name;break}}this.documentObject=d,c(y)&&({pubID:y,sysID:b}=y),b==null&&([b,y]=[y,b]),y!=null&&(this.pubID=this.stringify.dtdPubID(y)),b!=null&&(this.sysID=this.stringify.dtdSysID(b))}element(d,y){var b;return b=new r(this,d,y),this.children.push(b),this}attList(d,y,b,C,N){var T;return T=new t(this,d,y,b,C,N),this.children.push(T),this}entity(d,y){var b;return b=new i(this,!1,d,y),this.children.push(b),this}pEntity(d,y){var b;return b=new i(this,!0,d,y),this.children.push(b),this}notation(d,y){var b;return b=new n(this,d,y),this.children.push(b),this}toString(d){return this.options.writer.docType(this,this.options.writer.filterOptions(d))}ele(d,y){return this.element(d,y)}att(d,y,b,C,N){return this.attList(d,y,b,C,N)}ent(d,y){return this.entity(d,y)}pent(d,y){return this.pEntity(d,y)}not(d,y){return this.notation(d,y)}up(){return this.root()||this.documentObject}isEqualNode(d){return!(!super.isEqualNode(d)||d.name!==this.name||d.publicId!==this.publicId||d.systemId!==this.systemId)}}return Object.defineProperty(p.prototype,"entities",{get:function(){var m,d,y,b,C;for(b={},C=this.children,d=0,y=C.length;d<y;d++)m=C[d],m.type===e.EntityDeclaration&&!m.pe&&(b[m.name]=m);return new u(b)}}),Object.defineProperty(p.prototype,"notations",{get:function(){var m,d,y,b,C;for(b={},C=this.children,d=0,y=C.length;d<y;d++)m=C[d],m.type===e.NotationDeclaration&&(b[m.name]=m);return new u(b)}}),Object.defineProperty(p.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(p.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(p.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),p}).call(this)}).call(an)});var ht=M((cn,hn)=>{(function(){var e,t,r;e=R(),t=z(),hn.exports=r=class extends t{constructor(n,s){if(super(n),s==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=e.Raw,this.value=this.stringify.raw(s)}clone(){return Object.create(this)}toString(n){return this.options.writer.raw(this,this.options.writer.filterOptions(n))}}}).call(cn)});var ft=M((fn,dn)=>{(function(){var e,t,r;e=R(),t=Se(),dn.exports=r=(function(){class i extends t{constructor(s,u){if(super(s),u==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=e.Text,this.value=this.stringify.text(u)}clone(){return Object.create(this)}toString(s){return this.options.writer.text(this,this.options.writer.filterOptions(s))}splitText(s){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(s){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(i.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"wholeText",{get:function(){var n,s,u;for(u="",s=this.previousSibling;s;)u=s.data+u,s=s.previousSibling;for(u+=this.data,n=this.nextSibling;n;)u=u+n.data,n=n.nextSibling;return u}}),i}).call(this)}).call(fn)});var dt=M((pn,mn)=>{(function(){var e,t,r;e=R(),t=Se(),mn.exports=r=class extends t{constructor(n,s,u){if(super(n),s==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=e.ProcessingInstruction,this.target=this.stringify.insTarget(s),this.name=this.target,u&&(this.value=this.stringify.insValue(u))}clone(){return Object.create(this)}toString(n){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(n))}isEqualNode(n){return!(!super.isEqualNode(n)||n.target!==this.target)}}}).call(pn)});var _t=M((gn,Dn)=>{(function(){var e,t,r;r=z(),e=R(),Dn.exports=t=class extends r{constructor(n){super(n),this.type=e.Dummy}clone(){return Object.create(this)}toString(n){return""}}}).call(gn)});var En=M((yn,wn)=>{(function(){var e;wn.exports=e=(function(){class t{constructor(i){this.nodes=i}clone(){return this.nodes=null}item(i){return this.nodes[i]||null}}return Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length||0}}),t}).call(this)}).call(yn)});var Cn=M((An,bn)=>{(function(){bn.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(An)});var z=M((vn,Tn)=>{(function(){var e,t,r,i,n,s,u,l,c,p,m,d,y,b,C,N,T,B,P={}.hasOwnProperty,f=[].splice;({isObject:B,isFunction:T,isEmpty:N,getValue:C}=Y()),l=null,r=null,i=null,n=null,s=null,y=null,b=null,d=null,u=null,t=null,m=null,c=null,e=null,Tn.exports=p=(function(){class h{constructor(o){this.parent=o,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,l||(l=rt(),r=nt(),i=it(),n=ut(),s=ct(),y=ht(),b=ft(),d=dt(),u=_t(),t=R(),m=En(),c=tt(),e=Cn())}setParent(o){var D,A,a,g,E;for(this.parent=o,o&&(this.options=o.options,this.stringify=o.stringify),g=this.children,E=[],A=0,a=g.length;A<a;A++)D=g[A],E.push(D.setParent(this));return E}element(o,D,A){var a,g,E,v,O,I,q,L,S;if(I=null,D===null&&A==null&&([D,A]=[{},null]),D==null&&(D={}),D=C(D),B(D)||([A,D]=[D,A]),o!=null&&(o=C(o)),Array.isArray(o))for(E=0,q=o.length;E<q;E++)g=o[E],I=this.element(g);else if(T(o))I=this.element(o.apply());else if(B(o)){for(O in o)if(P.call(o,O))if(S=o[O],T(S)&&(S=S.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&O.indexOf(this.stringify.convertAttKey)===0)I=this.attribute(O.substr(this.stringify.convertAttKey.length),S);else if(!this.options.separateArrayItems&&Array.isArray(S)&&N(S))I=this.dummy();else if(B(S)&&N(S))I=this.element(O);else if(!this.options.keepNullNodes&&S==null)I=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(S))for(v=0,L=S.length;v<L;v++)g=S[v],a={},a[O]=g,I=this.element(a);else B(S)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&O.indexOf(this.stringify.convertTextKey)===0?I=this.element(S):(I=this.element(O),I.element(S)):I=this.element(O,S)}else!this.options.keepNullNodes&&A===null?I=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&o.indexOf(this.stringify.convertTextKey)===0?I=this.text(A):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&o.indexOf(this.stringify.convertCDataKey)===0?I=this.cdata(A):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&o.indexOf(this.stringify.convertCommentKey)===0?I=this.comment(A):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&o.indexOf(this.stringify.convertRawKey)===0?I=this.raw(A):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&o.indexOf(this.stringify.convertPIKey)===0?I=this.instruction(o.substr(this.stringify.convertPIKey.length),A):I=this.node(o,D,A);if(I==null)throw new Error("Could not create any elements with: "+o+". "+this.debugInfo());return I}insertBefore(o,D,A){var a,g,E,v,O;if(o?.type)return E=o,v=D,E.setParent(this),v?(g=children.indexOf(v),O=children.splice(g),children.push(E),Array.prototype.push.apply(children,O)):children.push(E),E;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(o));return g=this.parent.children.indexOf(this),O=this.parent.children.splice(g),a=this.parent.element(o,D,A),Array.prototype.push.apply(this.parent.children,O),a}insertAfter(o,D,A){var a,g,E;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(o));return g=this.parent.children.indexOf(this),E=this.parent.children.splice(g+1),a=this.parent.element(o,D,A),Array.prototype.push.apply(this.parent.children,E),a}remove(){var o,D;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return o=this.parent.children.indexOf(this),f.apply(this.parent.children,[o,o-o+1].concat(D=[])),this.parent}node(o,D,A){var a;return o!=null&&(o=C(o)),D||(D={}),D=C(D),B(D)||([A,D]=[D,A]),a=new l(this,o,D),A!=null&&a.text(A),this.children.push(a),a}text(o){var D;return B(o)&&this.element(o),D=new b(this,o),this.children.push(D),this}cdata(o){var D;return D=new r(this,o),this.children.push(D),this}comment(o){var D;return D=new i(this,o),this.children.push(D),this}commentBefore(o){var D,A,a;return A=this.parent.children.indexOf(this),a=this.parent.children.splice(A),D=this.parent.comment(o),Array.prototype.push.apply(this.parent.children,a),this}commentAfter(o){var D,A,a;return A=this.parent.children.indexOf(this),a=this.parent.children.splice(A+1),D=this.parent.comment(o),Array.prototype.push.apply(this.parent.children,a),this}raw(o){var D;return D=new y(this,o),this.children.push(D),this}dummy(){var o;return o=new u(this),o}instruction(o,D){var A,a,g,E,v;if(o!=null&&(o=C(o)),D!=null&&(D=C(D)),Array.isArray(o))for(E=0,v=o.length;E<v;E++)A=o[E],this.instruction(A);else if(B(o))for(A in o)P.call(o,A)&&(a=o[A],this.instruction(A,a));else T(D)&&(D=D.apply()),g=new d(this,o,D),this.children.push(g);return this}instructionBefore(o,D){var A,a,g;return a=this.parent.children.indexOf(this),g=this.parent.children.splice(a),A=this.parent.instruction(o,D),Array.prototype.push.apply(this.parent.children,g),this}instructionAfter(o,D){var A,a,g;return a=this.parent.children.indexOf(this),g=this.parent.children.splice(a+1),A=this.parent.instruction(o,D),Array.prototype.push.apply(this.parent.children,g),this}declaration(o,D,A){var a,g;return a=this.document(),g=new n(a,o,D,A),a.children.length===0?a.children.unshift(g):a.children[0].type===t.Declaration?a.children[0]=g:a.children.unshift(g),a.root()||a}dtd(o,D){var A,a,g,E,v,O,I,q,L,S;for(a=this.document(),g=new s(a,o,D),L=a.children,E=v=0,I=L.length;v<I;E=++v)if(A=L[E],A.type===t.DocType)return a.children[E]=g,g;for(S=a.children,E=O=0,q=S.length;O<q;E=++O)if(A=S[E],A.isRoot)return a.children.splice(E,0,g),g;return a.children.push(g),g}up(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent}root(){var o;for(o=this;o;){if(o.type===t.Document)return o.rootObject;if(o.isRoot)return o;o=o.parent}}document(){var o;for(o=this;o;){if(o.type===t.Document)return o;o=o.parent}}end(o){return this.document().end(o)}prev(){var o;if(o=this.parent.children.indexOf(this),o<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[o-1]}next(){var o;if(o=this.parent.children.indexOf(this),o===-1||o===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[o+1]}importDocument(o){var D,A,a,g,E;if(A=o.root().clone(),A.parent=this,A.isRoot=!1,this.children.push(A),this.type===t.Document&&(A.isRoot=!0,A.documentObject=this,this.rootObject=A,this.children)){for(E=this.children,a=0,g=E.length;a<g;a++)if(D=E[a],D.type===t.DocType){D.name=A.name;break}}return this}debugInfo(o){var D,A;return o=o||this.name,o==null&&!((D=this.parent)!=null&&D.name)?"":o==null?"parent: <"+this.parent.name+">":(A=this.parent)!=null&&A.name?"node: <"+o+">, parent: <"+this.parent.name+">":"node: <"+o+">"}ele(o,D,A){return this.element(o,D,A)}nod(o,D,A){return this.node(o,D,A)}txt(o){return this.text(o)}dat(o){return this.cdata(o)}com(o){return this.comment(o)}ins(o,D){return this.instruction(o,D)}doc(){return this.document()}dec(o,D,A){return this.declaration(o,D,A)}e(o,D,A){return this.element(o,D,A)}n(o,D,A){return this.node(o,D,A)}t(o){return this.text(o)}d(o){return this.cdata(o)}c(o){return this.comment(o)}r(o){return this.raw(o)}i(o,D){return this.instruction(o,D)}u(){return this.up()}importXMLBuilder(o){return this.importDocument(o)}attribute(o,D){throw new Error("attribute() applies to element nodes only.")}att(o,D){return this.attribute(o,D)}a(o,D){return this.attribute(o,D)}removeAttribute(o){throw new Error("attribute() applies to element nodes only.")}replaceChild(o,D){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(o,D){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(o){var D,A;return D=this,D===o?0:this.document()!==o.document()?(A=e.Disconnected|e.ImplementationSpecific,Math.random()<.5?A|=e.Preceding:A|=e.Following,A):D.isAncestor(o)?e.Contains|e.Preceding:D.isDescendant(o)?e.Contains|e.Following:D.isPreceding(o)?e.Preceding:e.Following}isSameNode(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(o){var D,A,a;if(o.nodeType!==this.nodeType||o.children.length!==this.children.length)return!1;for(D=A=0,a=this.children.length-1;0<=a?A<=a:A>=a;D=0<=a?++A:--A)if(!this.children[D].isEqualNode(o.children[D]))return!1;return!0}getFeature(o,D){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(o,D,A){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(o){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(o){return o?o===this||this.isDescendant(o):!1}isDescendant(o){var D,A,a,g,E;for(E=this.children,a=0,g=E.length;a<g;a++)if(D=E[a],o===D||(A=D.isDescendant(o),A))return!0;return!1}isAncestor(o){return o.isDescendant(this)}isPreceding(o){var D,A;return D=this.treePosition(o),A=this.treePosition(this),D===-1||A===-1?!1:D<A}isFollowing(o){var D,A;return D=this.treePosition(o),A=this.treePosition(this),D===-1||A===-1?!1:D>A}treePosition(o){var D,A;return A=0,D=!1,this.foreachTreeNode(this.document(),function(a){if(A++,!D&&a===o)return D=!0}),D?A:-1}foreachTreeNode(o,D){var A,a,g,E,v;for(o||(o=this.document()),E=o.children,a=0,g=E.length;a<g;a++){if(A=E[a],v=D(A))return v;if(v=this.foreachTreeNode(A,D),v)return v}}}return Object.defineProperty(h.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(h.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(h.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(h.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(h.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new m(this.children)),this.childNodeList}}),Object.defineProperty(h.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(h.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(h.prototype,"previousSibling",{get:function(){var w;return w=this.parent.children.indexOf(this),this.parent.children[w-1]||null}}),Object.defineProperty(h.prototype,"nextSibling",{get:function(){var w;return w=this.parent.children.indexOf(this),this.parent.children[w+1]||null}}),Object.defineProperty(h.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(h.prototype,"textContent",{get:function(){var w,o,D,A,a;if(this.nodeType===t.Element||this.nodeType===t.DocumentFragment){for(a="",A=this.children,o=0,D=A.length;o<D;o++)w=A[o],w.textContent&&(a+=w.textContent);return a}else return null},set:function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),h}).call(this)}).call(vn)});var kt=M((Nn,Sn)=>{(function(){var e,t={}.hasOwnProperty;Sn.exports=e=(function(){class r{constructor(n){var s,u,l;this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),n||(n={}),this.options=n,this.options.version||(this.options.version="1.0"),u=n.stringify||{};for(s in u)t.call(u,s)&&(l=u[s],this[s]=l)}name(n){return this.options.noValidation?n:this.assertLegalName(""+n||"")}text(n){return this.options.noValidation?n:this.assertLegalChar(this.textEscape(""+n||""))}cdata(n){return this.options.noValidation?n:(n=""+n||"",n=n.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(n))}comment(n){if(this.options.noValidation)return n;if(n=""+n||"",n.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+n);return this.assertLegalChar(n)}raw(n){return this.options.noValidation?n:""+n||""}attValue(n){return this.options.noValidation?n:this.assertLegalChar(this.attEscape(n=""+n||""))}insTarget(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}insValue(n){if(this.options.noValidation)return n;if(n=""+n||"",n.match(/\?>/))throw new Error("Invalid processing instruction value: "+n);return this.assertLegalChar(n)}xmlVersion(n){if(this.options.noValidation)return n;if(n=""+n||"",!n.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+n);return n}xmlEncoding(n){if(this.options.noValidation)return n;if(n=""+n||"",!n.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+n);return this.assertLegalChar(n)}xmlStandalone(n){return this.options.noValidation?n:n?"yes":"no"}dtdPubID(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}dtdSysID(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}dtdElementValue(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}dtdAttType(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}dtdAttDefault(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}dtdEntityValue(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}dtdNData(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")}assertLegalChar(n){var s,u;if(this.options.noValidation)return n;if(this.options.version==="1.0"){if(s=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)n=n.replace(s,this.options.invalidCharReplacement);else if(u=n.match(s))throw new Error(`Invalid character in string: ${n} at index ${u.index}`)}else if(this.options.version==="1.1"){if(s=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)n=n.replace(s,this.options.invalidCharReplacement);else if(u=n.match(s))throw new Error(`Invalid character in string: ${n} at index ${u.index}`)}return n}assertLegalName(n){var s;if(this.options.noValidation)return n;if(n=this.assertLegalChar(n),s=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!n.match(s))throw new Error(`Invalid character in name: ${n}`);return n}textEscape(n){var s;return this.options.noValidation?n:(s=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,n.replace(s,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))}attEscape(n){var s;return this.options.noValidation?n:(s=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,n.replace(s,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))}}return r.prototype.convertAttKey="@",r.prototype.convertPIKey="?",r.prototype.convertTextKey="#text",r.prototype.convertCDataKey="#cdata",r.prototype.convertCommentKey="#comment",r.prototype.convertRawKey="#raw",r}).call(this)}).call(Nn)});var Oe=M((On,In)=>{(function(){In.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(On)});var Ut=M((Ln,Mn)=>{(function(){var e,t,r,i,n,s,u,l,c,p,m,d,y,b,C,N,T,B={}.hasOwnProperty;({assign:T}=Y()),e=R(),c=ut(),p=ct(),r=nt(),i=it(),d=rt(),b=ht(),C=ft(),y=dt(),m=_t(),n=st(),s=at(),u=ot(),l=lt(),t=Oe(),Mn.exports=N=class{constructor(f){var h,w,o;f||(f={}),this.options=f,w=f.writer||{};for(h in w)B.call(w,h)&&(o=w[h],this["_"+h]=this[h],this[h]=o)}filterOptions(f){var h,w,o,D,A,a,g,E,v;return f||(f={}),f=T({},this.options,f),h={writer:this},h.pretty=f.pretty||!1,h.allowEmpty=f.allowEmpty||!1,h.indent=(w=f.indent)!=null?w:" ",h.newline=(o=f.newline)!=null?o:`
3
5
  `,h.offset=(D=f.offset)!=null?D:0,h.width=(A=f.width)!=null?A:0,h.dontPrettyTextNodes=(a=(g=f.dontPrettyTextNodes)!=null?g:f.dontprettytextnodes)!=null?a:0,h.spaceBeforeSlash=(E=(v=f.spaceBeforeSlash)!=null?v:f.spacebeforeslash)!=null?E:"",h.spaceBeforeSlash===!0&&(h.spaceBeforeSlash=" "),h.suppressPrettyCount=0,h.user={},h.state=t.None,h}indent(f,h,w){var o;return!h.pretty||h.suppressPrettyCount?"":h.pretty&&(o=(w||0)+h.offset+1,o>0)?new Array(o).join(h.indent):""}endline(f,h,w){return!h.pretty||h.suppressPrettyCount?"":h.newline}attribute(f,h,w){var o;return this.openAttribute(f,h,w),h.pretty&&h.width>0?o=f.name+'="'+f.value+'"':o=" "+f.name+'="'+f.value+'"',this.closeAttribute(f,h,w),o}cdata(f,h,w){var o;return this.openNode(f,h,w),h.state=t.OpenTag,o=this.indent(f,h,w)+"<![CDATA[",h.state=t.InsideTag,o+=f.value,h.state=t.CloseTag,o+="]]>"+this.endline(f,h,w),h.state=t.None,this.closeNode(f,h,w),o}comment(f,h,w){var o;return this.openNode(f,h,w),h.state=t.OpenTag,o=this.indent(f,h,w)+"<!-- ",h.state=t.InsideTag,o+=f.value,h.state=t.CloseTag,o+=" -->"+this.endline(f,h,w),h.state=t.None,this.closeNode(f,h,w),o}declaration(f,h,w){var o;return this.openNode(f,h,w),h.state=t.OpenTag,o=this.indent(f,h,w)+"<?xml",h.state=t.InsideTag,o+=' version="'+f.version+'"',f.encoding!=null&&(o+=' encoding="'+f.encoding+'"'),f.standalone!=null&&(o+=' standalone="'+f.standalone+'"'),h.state=t.CloseTag,o+=h.spaceBeforeSlash+"?>",o+=this.endline(f,h,w),h.state=t.None,this.closeNode(f,h,w),o}docType(f,h,w){var o,D,A,a,g;if(w||(w=0),this.openNode(f,h,w),h.state=t.OpenTag,a=this.indent(f,h,w),a+="<!DOCTYPE "+f.root().name,f.pubID&&f.sysID?a+=' PUBLIC "'+f.pubID+'" "'+f.sysID+'"':f.sysID&&(a+=' SYSTEM "'+f.sysID+'"'),f.children.length>0){for(a+=" [",a+=this.endline(f,h,w),h.state=t.InsideTag,g=f.children,D=0,A=g.length;D<A;D++)o=g[D],a+=this.writeChildNode(o,h,w+1);h.state=t.CloseTag,a+="]"}return h.state=t.CloseTag,a+=h.spaceBeforeSlash+">",a+=this.endline(f,h,w),h.state=t.None,this.closeNode(f,h,w),a}element(f,h,w){var o,D,A,a,g,E,v,O,I,q,L,S,_,Ke,Ze,Je,Bt,Ft,pe;if(w||(w=0),S=!1,this.openNode(f,h,w),h.state=t.OpenTag,_=this.indent(f,h,w)+"<"+f.name,h.pretty&&h.width>0){O=_.length,Ze=f.attribs;for(L in Ze)B.call(Ze,L)&&(o=Ze[L],Ke=this.attribute(o,h,w),D=Ke.length,O+D>h.width?(pe=this.indent(f,h,w+1)+Ke,_+=this.endline(f,h,w)+pe,O=pe.length):(pe=" "+Ke,_+=pe,O+=pe.length))}else{Je=f.attribs;for(L in Je)B.call(Je,L)&&(o=Je[L],_+=this.attribute(o,h,w))}if(a=f.children.length,g=a===0?null:f.children[0],a===0||f.children.every(function(Qe){return(Qe.type===e.Text||Qe.type===e.Raw||Qe.type===e.CData)&&Qe.value===""}))h.allowEmpty?(_+=">",h.state=t.CloseTag,_+="</"+f.name+">"+this.endline(f,h,w)):(h.state=t.CloseTag,_+=h.spaceBeforeSlash+"/>"+this.endline(f,h,w));else if(h.pretty&&a===1&&(g.type===e.Text||g.type===e.Raw||g.type===e.CData)&&g.value!=null)_+=">",h.state=t.InsideTag,h.suppressPrettyCount++,S=!0,_+=this.writeChildNode(g,h,w+1),h.suppressPrettyCount--,S=!1,h.state=t.CloseTag,_+="</"+f.name+">"+this.endline(f,h,w);else{if(h.dontPrettyTextNodes){for(Bt=f.children,E=0,I=Bt.length;E<I;E++)if(A=Bt[E],(A.type===e.Text||A.type===e.Raw||A.type===e.CData)&&A.value!=null){h.suppressPrettyCount++,S=!0;break}}for(_+=">"+this.endline(f,h,w),h.state=t.InsideTag,Ft=f.children,v=0,q=Ft.length;v<q;v++)A=Ft[v],_+=this.writeChildNode(A,h,w+1);h.state=t.CloseTag,_+=this.indent(f,h,w)+"</"+f.name+">",S&&h.suppressPrettyCount--,_+=this.endline(f,h,w),h.state=t.None}return this.closeNode(f,h,w),_}writeChildNode(f,h,w){switch(f.type){case e.CData:return this.cdata(f,h,w);case e.Comment:return this.comment(f,h,w);case e.Element:return this.element(f,h,w);case e.Raw:return this.raw(f,h,w);case e.Text:return this.text(f,h,w);case e.ProcessingInstruction:return this.processingInstruction(f,h,w);case e.Dummy:return"";case e.Declaration:return this.declaration(f,h,w);case e.DocType:return this.docType(f,h,w);case e.AttributeDeclaration:return this.dtdAttList(f,h,w);case e.ElementDeclaration:return this.dtdElement(f,h,w);case e.EntityDeclaration:return this.dtdEntity(f,h,w);case e.NotationDeclaration:return this.dtdNotation(f,h,w);default:throw new Error("Unknown XML node type: "+f.constructor.name)}}processingInstruction(f,h,w){var o;return this.openNode(f,h,w),h.state=t.OpenTag,o=this.indent(f,h,w)+"<?",h.state=t.InsideTag,o+=f.target,f.value&&(o+=" "+f.value),h.state=t.CloseTag,o+=h.spaceBeforeSlash+"?>",o+=this.endline(f,h,w),h.state=t.None,this.closeNode(f,h,w),o}raw(f,h,w){var o;return this.openNode(f,h,w),h.state=t.OpenTag,o=this.indent(f,h,w),h.state=t.InsideTag,o+=f.value,h.state=t.CloseTag,o+=this.endline(f,h,w),h.state=t.None,this.closeNode(f,h,w),o}text(f,h,w){var o;return this.openNode(f,h,w),h.state=t.OpenTag,o=this.indent(f,h,w),h.state=t.InsideTag,o+=f.value,h.state=t.CloseTag,o+=this.endline(f,h,w),h.state=t.None,this.closeNode(f,h,w),o}dtdAttList(f,h,w){var o;return this.openNode(f,h,w),h.state=t.OpenTag,o=this.indent(f,h,w)+"<!ATTLIST",h.state=t.InsideTag,o+=" "+f.elementName+" "+f.attributeName+" "+f.attributeType,f.defaultValueType!=="#DEFAULT"&&(o+=" "+f.defaultValueType),f.defaultValue&&(o+=' "'+f.defaultValue+'"'),h.state=t.CloseTag,o+=h.spaceBeforeSlash+">"+this.endline(f,h,w),h.state=t.None,this.closeNode(f,h,w),o}dtdElement(f,h,w){var o;return this.openNode(f,h,w),h.state=t.OpenTag,o=this.indent(f,h,w)+"<!ELEMENT",h.state=t.InsideTag,o+=" "+f.name+" "+f.value,h.state=t.CloseTag,o+=h.spaceBeforeSlash+">"+this.endline(f,h,w),h.state=t.None,this.closeNode(f,h,w),o}dtdEntity(f,h,w){var o;return this.openNode(f,h,w),h.state=t.OpenTag,o=this.indent(f,h,w)+"<!ENTITY",h.state=t.InsideTag,f.pe&&(o+=" %"),o+=" "+f.name,f.value?o+=' "'+f.value+'"':(f.pubID&&f.sysID?o+=' PUBLIC "'+f.pubID+'" "'+f.sysID+'"':f.sysID&&(o+=' SYSTEM "'+f.sysID+'"'),f.nData&&(o+=" NDATA "+f.nData)),h.state=t.CloseTag,o+=h.spaceBeforeSlash+">"+this.endline(f,h,w),h.state=t.None,this.closeNode(f,h,w),o}dtdNotation(f,h,w){var o;return this.openNode(f,h,w),h.state=t.OpenTag,o=this.indent(f,h,w)+"<!NOTATION",h.state=t.InsideTag,o+=" "+f.name,f.pubID&&f.sysID?o+=' PUBLIC "'+f.pubID+'" "'+f.sysID+'"':f.pubID?o+=' PUBLIC "'+f.pubID+'"':f.sysID&&(o+=' SYSTEM "'+f.sysID+'"'),h.state=t.CloseTag,o+=h.spaceBeforeSlash+">"+this.endline(f,h,w),h.state=t.None,this.closeNode(f,h,w),o}openNode(f,h,w){}closeNode(f,h,w){}openAttribute(f,h,w){}closeAttribute(f,h,w){}}}).call(Ln)});var pt=M((Bn,Fn)=>{(function(){var e,t;t=Ut(),Fn.exports=e=class extends t{constructor(i){super(i)}document(i,n){var s,u,l,c,p;for(n=this.filterOptions(n),c="",p=i.children,u=0,l=p.length;u<l;u++)s=p[u],c+=this.writeChildNode(s,n,0);return n.pretty&&c.slice(-n.newline.length)===n.newline&&(c=c.slice(0,-n.newline.length)),c}}}).call(Bn)});var jt=M((xn,Pn)=>{(function(){var e,t,r,i,n,s,u,l;({isPlainObject:l}=Y()),r=Rt(),t=Rr(),n=z(),e=R(),u=kt(),s=pt(),Pn.exports=i=(function(){class c extends n{constructor(m){super(null),this.name="#document",this.type=e.Document,this.documentURI=null,this.domConfig=new t,m||(m={}),m.writer||(m.writer=new s),this.options=m,this.stringify=new u(m)}end(m){var d;return d={},m?l(m)&&(d=m,m=this.options.writer):m=this.options.writer,m.document(this,m.filterOptions(d))}toString(m){return this.options.writer.document(this,this.options.writer.filterOptions(m))}createElement(m){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(m){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(m){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(m){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(m,d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(m){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(m){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(m){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(m,d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(m,d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(m,d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(m,d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(m){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(m){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(m,d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(m){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(m){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(m,d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(m,d,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(c.prototype,"implementation",{value:new r}),Object.defineProperty(c.prototype,"doctype",{get:function(){var p,m,d,y;for(y=this.children,m=0,d=y.length;m<d;m++)if(p=y[m],p.type===e.DocType)return p;return null}}),Object.defineProperty(c.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].encoding:null}}),Object.defineProperty(c.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(c.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(c.prototype,"origin",{get:function(){return null}}),Object.defineProperty(c.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(c.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(c.prototype,"contentType",{get:function(){return null}}),c}).call(this)}).call(xn)});var _n=M((Rn,qn)=>{(function(){var e,t,r,i,n,s,u,l,c,p,m,d,y,b,C,N,T,B,P,f,h,w,o,D={}.hasOwnProperty;({isObject:w,isFunction:h,isPlainObject:o,getValue:f}=Y()),e=R(),d=jt(),b=rt(),i=nt(),n=it(),N=ht(),P=ft(),C=dt(),p=ut(),m=ct(),s=st(),l=ot(),u=at(),c=lt(),r=qt(),B=kt(),T=pt(),t=Oe(),qn.exports=y=class{constructor(a,g,E){var v;this.name="?xml",this.type=e.Document,a||(a={}),v={},a.writer?o(a.writer)&&(v=a.writer,a.writer=new T):a.writer=new T,this.options=a,this.writer=a.writer,this.writerOptions=this.writer.filterOptions(v),this.stringify=new B(a),this.onDataCallback=g||function(){},this.onEndCallback=E||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(a){var g,E,v,O,I,q,L,S;switch(a.type){case e.CData:this.cdata(a.value);break;case e.Comment:this.comment(a.value);break;case e.Element:v={},L=a.attribs;for(E in L)D.call(L,E)&&(g=L[E],v[E]=g.value);this.node(a.name,v);break;case e.Dummy:this.dummy();break;case e.Raw:this.raw(a.value);break;case e.Text:this.text(a.value);break;case e.ProcessingInstruction:this.instruction(a.target,a.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+a.constructor.name)}for(S=a.children,I=0,q=S.length;I<q;I++)O=S[I],this.createChildNode(O),O.type===e.Element&&this.up();return this}dummy(){return this}node(a,g,E){if(a==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(a));return this.openCurrent(),a=f(a),g==null&&(g={}),g=f(g),w(g)||([E,g]=[g,E]),this.currentNode=new b(this,a,g),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,E!=null&&this.text(E),this}element(a,g,E){var v,O,I,q,L,S;if(this.currentNode&&this.currentNode.type===e.DocType)this.dtdElement(...arguments);else if(Array.isArray(a)||w(a)||h(a))for(q=this.options.noValidation,this.options.noValidation=!0,S=new d(this.options).element("TEMP_ROOT"),S.element(a),this.options.noValidation=q,L=S.children,O=0,I=L.length;O<I;O++)v=L[O],this.createChildNode(v),v.type===e.Element&&this.up();else this.node(a,g,E);return this}attribute(a,g){var E,v;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(a));if(a!=null&&(a=f(a)),w(a))for(E in a)D.call(a,E)&&(v=a[E],this.attribute(E,v));else h(g)&&(g=g.apply()),this.options.keepNullAttributes&&g==null?this.currentNode.attribs[a]=new r(this,a,""):g!=null&&(this.currentNode.attribs[a]=new r(this,a,g));return this}text(a){var g;return this.openCurrent(),g=new P(this,a),this.onData(this.writer.text(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(a){var g;return this.openCurrent(),g=new i(this,a),this.onData(this.writer.cdata(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(a){var g;return this.openCurrent(),g=new n(this,a),this.onData(this.writer.comment(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(a){var g;return this.openCurrent(),g=new N(this,a),this.onData(this.writer.raw(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(a,g){var E,v,O,I,q;if(this.openCurrent(),a!=null&&(a=f(a)),g!=null&&(g=f(g)),Array.isArray(a))for(E=0,I=a.length;E<I;E++)v=a[E],this.instruction(v);else if(w(a))for(v in a)D.call(a,v)&&(O=a[v],this.instruction(v,O));else h(g)&&(g=g.apply()),q=new C(this,a,g),this.onData(this.writer.processingInstruction(q,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(a,g,E){var v;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return v=new p(this,a,g,E),this.onData(this.writer.declaration(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(a,g,E){if(this.openCurrent(),a==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new m(this,g,E),this.currentNode.rootNodeName=a,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(a,g){var E;return this.openCurrent(),E=new u(this,a,g),this.onData(this.writer.dtdElement(E,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(a,g,E,v,O){var I;return this.openCurrent(),I=new s(this,a,g,E,v,O),this.onData(this.writer.dtdAttList(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(a,g){var E;return this.openCurrent(),E=new l(this,!1,a,g),this.onData(this.writer.dtdEntity(E,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(a,g){var E;return this.openCurrent(),E=new l(this,!0,a,g),this.onData(this.writer.dtdEntity(E,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(a,g){var E;return this.openCurrent(),E=new c(this,a,g),this.onData(this.writer.dtdNotation(E,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(a){var g,E,v,O;if(!a.isOpen){if(!this.root&&this.currentLevel===0&&a.type===e.Element&&(this.root=a),E="",a.type===e.Element){this.writerOptions.state=t.OpenTag,E=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<"+a.name,O=a.attribs;for(v in O)D.call(O,v)&&(g=O[v],E+=this.writer.attribute(g,this.writerOptions,this.currentLevel));E+=(a.children?">":"/>")+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=t.InsideTag}else this.writerOptions.state=t.OpenTag,E=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID?E+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(E+=' SYSTEM "'+a.sysID+'"'),a.children?(E+=" [",this.writerOptions.state=t.InsideTag):(this.writerOptions.state=t.CloseTag,E+=">"),E+=this.writer.endline(a,this.writerOptions,this.currentLevel);return this.onData(E,this.currentLevel),a.isOpen=!0}}closeNode(a){var g;if(!a.isClosed)return g="",this.writerOptions.state=t.CloseTag,a.type===e.Element?g=this.writer.indent(a,this.writerOptions,this.currentLevel)+"</"+a.name+">"+this.writer.endline(a,this.writerOptions,this.currentLevel):g=this.writer.indent(a,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=t.None,this.onData(g,this.currentLevel),a.isClosed=!0}onData(a,g){return this.documentStarted=!0,this.onDataCallback(a,g+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(a){return a==null?"":"node: <"+a+">"}ele(){return this.element(...arguments)}nod(a,g,E){return this.node(a,g,E)}txt(a){return this.text(a)}dat(a){return this.cdata(a)}com(a){return this.comment(a)}ins(a,g){return this.instruction(a,g)}dec(a,g,E){return this.declaration(a,g,E)}dtd(a,g,E){return this.doctype(a,g,E)}e(a,g,E){return this.element(a,g,E)}n(a,g,E){return this.node(a,g,E)}t(a){return this.text(a)}d(a){return this.cdata(a)}c(a){return this.comment(a)}r(a){return this.raw(a)}i(a,g){return this.instruction(a,g)}att(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(a,g){return this.entity(a,g)}pent(a,g){return this.pEntity(a,g)}not(a,g){return this.notation(a,g)}}}).call(Rn)});var jn=M((kn,Un)=>{(function(){var e,t,r,i,n={}.hasOwnProperty;e=R(),i=Ut(),t=Oe(),Un.exports=r=class extends i{constructor(u,l){super(l),this.stream=u}endline(u,l,c){return u.isLastRootNode&&l.state===t.CloseTag?"":super.endline(u,l,c)}document(u,l){var c,p,m,d,y,b,C,N,T;for(C=u.children,p=m=0,y=C.length;m<y;p=++m)c=C[p],c.isLastRootNode=p===u.children.length-1;for(l=this.filterOptions(l),N=u.children,T=[],d=0,b=N.length;d<b;d++)c=N[d],T.push(this.writeChildNode(c,l,0));return T}cdata(u,l,c){return this.stream.write(super.cdata(u,l,c))}comment(u,l,c){return this.stream.write(super.comment(u,l,c))}declaration(u,l,c){return this.stream.write(super.declaration(u,l,c))}docType(u,l,c){var p,m,d,y;if(c||(c=0),this.openNode(u,l,c),l.state=t.OpenTag,this.stream.write(this.indent(u,l,c)),this.stream.write("<!DOCTYPE "+u.root().name),u.pubID&&u.sysID?this.stream.write(' PUBLIC "'+u.pubID+'" "'+u.sysID+'"'):u.sysID&&this.stream.write(' SYSTEM "'+u.sysID+'"'),u.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(u,l,c)),l.state=t.InsideTag,y=u.children,m=0,d=y.length;m<d;m++)p=y[m],this.writeChildNode(p,l,c+1);l.state=t.CloseTag,this.stream.write("]")}return l.state=t.CloseTag,this.stream.write(l.spaceBeforeSlash+">"),this.stream.write(this.endline(u,l,c)),l.state=t.None,this.closeNode(u,l,c)}element(u,l,c){var p,m,d,y,b,C,N,T,B,P,f,h,w,o,D,A;if(c||(c=0),this.openNode(u,l,c),l.state=t.OpenTag,f=this.indent(u,l,c)+"<"+u.name,l.pretty&&l.width>0){N=f.length,w=u.attribs;for(B in w)n.call(w,B)&&(p=w[B],h=this.attribute(p,l,c),m=h.length,N+m>l.width?(A=this.indent(u,l,c+1)+h,f+=this.endline(u,l,c)+A,N=A.length):(A=" "+h,f+=A,N+=A.length))}else{o=u.attribs;for(B in o)n.call(o,B)&&(p=o[B],f+=this.attribute(p,l,c))}if(this.stream.write(f),y=u.children.length,b=y===0?null:u.children[0],y===0||u.children.every(function(a){return(a.type===e.Text||a.type===e.Raw||a.type===e.CData)&&a.value===""}))l.allowEmpty?(this.stream.write(">"),l.state=t.CloseTag,this.stream.write("</"+u.name+">")):(l.state=t.CloseTag,this.stream.write(l.spaceBeforeSlash+"/>"));else if(l.pretty&&y===1&&(b.type===e.Text||b.type===e.Raw||b.type===e.CData)&&b.value!=null)this.stream.write(">"),l.state=t.InsideTag,l.suppressPrettyCount++,P=!0,this.writeChildNode(b,l,c+1),l.suppressPrettyCount--,P=!1,l.state=t.CloseTag,this.stream.write("</"+u.name+">");else{for(this.stream.write(">"+this.endline(u,l,c)),l.state=t.InsideTag,D=u.children,C=0,T=D.length;C<T;C++)d=D[C],this.writeChildNode(d,l,c+1);l.state=t.CloseTag,this.stream.write(this.indent(u,l,c)+"</"+u.name+">")}return this.stream.write(this.endline(u,l,c)),l.state=t.None,this.closeNode(u,l,c)}processingInstruction(u,l,c){return this.stream.write(super.processingInstruction(u,l,c))}raw(u,l,c){return this.stream.write(super.raw(u,l,c))}text(u,l,c){return this.stream.write(super.text(u,l,c))}dtdAttList(u,l,c){return this.stream.write(super.dtdAttList(u,l,c))}dtdElement(u,l,c){return this.stream.write(super.dtdElement(u,l,c))}dtdEntity(u,l,c){return this.stream.write(super.dtdEntity(u,l,c))}dtdNotation(u,l,c){return this.stream.write(super.dtdNotation(u,l,c))}}}).call(kn)});var Vn=M((Xn,se)=>{(function(){var e,t,r,i,n,s,u,l,c;({assign:l,isFunction:c}=Y()),r=Rt(),i=jt(),n=_n(),u=pt(),s=jn(),e=R(),t=Oe(),se.exports.create=function(p,m,d,y){var b,C;if(p==null)throw new Error("Root element needs a name.");return y=l({},m,d,y),b=new i(y),C=b.element(p),y.headless||(b.declaration(y),(y.pubID!=null||y.sysID!=null)&&b.dtd(y)),C},se.exports.begin=function(p,m,d){return c(p)&&([m,d]=[p,m],p={}),m?new n(p,m,d):new i(p)},se.exports.stringWriter=function(p){return new u(p)},se.exports.streamWriter=function(p,m){return new s(p,m)},se.exports.implementation=new r,se.exports.nodeType=e,se.exports.writerState=t}).call(Xn)});var $n=M(Ie=>{"use strict";var Gn=Ie&&Ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.build=hu;var Hn=Gn(vr()),au=Gn(Vn());function lu(e){function t(r){return r<10?"0"+r:r}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"Z"}var cu=Object.prototype.toString;function zn(e){let t=cu.call(e).match(/\[object (.*)\]/);return t&&t[1]}function hu(e,t){let r={version:"1.0",encoding:"UTF-8"},i={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"},n=au.default.create("plist");return n.dec(r.version,r.encoding,r.standalone),n.dtd(i.pubid,i.sysid),n.att("version","1.0"),Xt(e,n),t||(t={}),t.pretty=t.pretty!==!1,n.end(t)}function Xt(e,t){let r,i,n,s=zn(e);if(s!=="Undefined")if(Array.isArray(e))for(t=t.ele("array"),i=0;i<e.length;i++)Xt(e[i],t);else if(Buffer.isBuffer(e))t.ele("data").raw(e.toString("base64"));else if(s==="Object"){t=t.ele("dict");for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==void 0&&(t.ele("key").txt(n),Xt(e[n],t))}else s==="Number"?(r=e%1===0?"integer":"real",t.ele(r).txt(e.toString())):s==="Date"?t.ele("date").txt(lu(new Date(e))):s==="Boolean"?t.ele(e?"true":"false"):s==="String"?t.ele("string").txt(e):s==="ArrayBuffer"?t.ele("data").raw(Hn.default.fromByteArray(e)):e&&e.buffer&&zn(e.buffer)==="ArrayBuffer"&&t.ele("data").raw(Hn.default.fromByteArray(new Uint8Array(e.buffer)))}});var Le=M(me=>{"use strict";function fu(e,t,r){if(r===void 0&&(r=Array.prototype),e&&typeof r.find=="function")return r.find.call(e,t);for(var i=0;i<e.length;i++)if(Object.prototype.hasOwnProperty.call(e,i)){var n=e[i];if(t.call(void 0,n,i,e))return n}}function Vt(e,t){return t===void 0&&(t=Object),t&&typeof t.freeze=="function"?t.freeze(e):e}function du(e,t){if(e===null||typeof e!="object")throw new TypeError("target is not an object");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}var Wn=Vt({HTML:"text/html",isHTML:function(e){return e===Wn.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Yn=Vt({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===Yn.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});me.assign=du;me.find=fu;me.freeze=Vt;me.MIME_TYPE=Wn;me.NAMESPACE=Yn});var tr=M(te=>{var ni=Le(),K=ni.find,Me=ni.NAMESPACE;function pu(e){return e!==""}function mu(e){return e?e.split(/[\t\n\f\r ]+/).filter(pu):[]}function gu(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function Kn(e){if(!e)return[];var t=mu(e);return Object.keys(t.reduce(gu,{}))}function Du(e){return function(t){return e&&e.indexOf(t)!==-1}}function Fe(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function V(e,t){var r=e.prototype;if(!(r instanceof t)){let n=function(){};var i=n;n.prototype=t.prototype,n=new n,Fe(r,n),e.prototype=r=n}r.constructor!=e&&(typeof e!="function"&&console.error("unknown Class:"+e),r.constructor=e)}var H={},$=H.ELEMENT_NODE=1,De=H.ATTRIBUTE_NODE=2,gt=H.TEXT_NODE=3,ii=H.CDATA_SECTION_NODE=4,ui=H.ENTITY_REFERENCE_NODE=5,yu=H.ENTITY_NODE=6,Ht=H.PROCESSING_INSTRUCTION_NODE=7,zt=H.COMMENT_NODE=8,si=H.DOCUMENT_NODE=9,oi=H.DOCUMENT_TYPE_NODE=10,J=H.DOCUMENT_FRAGMENT_NODE=11,wu=H.NOTATION_NODE=12,j={},U={},Qs=j.INDEX_SIZE_ERR=(U[1]="Index size error",1),eo=j.DOMSTRING_SIZE_ERR=(U[2]="DOMString size error",2),X=j.HIERARCHY_REQUEST_ERR=(U[3]="Hierarchy request error",3),to=j.WRONG_DOCUMENT_ERR=(U[4]="Wrong document",4),Eu=j.INVALID_CHARACTER_ERR=(U[5]="Invalid character",5),ro=j.NO_DATA_ALLOWED_ERR=(U[6]="No data allowed",6),no=j.NO_MODIFICATION_ALLOWED_ERR=(U[7]="No modification allowed",7),ai=j.NOT_FOUND_ERR=(U[8]="Not found",8),io=j.NOT_SUPPORTED_ERR=(U[9]="Not supported",9),Zn=j.INUSE_ATTRIBUTE_ERR=(U[10]="Attribute in use",10),ge=j.INVALID_STATE_ERR=(U[11]="Invalid state",11),uo=j.SYNTAX_ERR=(U[12]="Syntax error",12),so=j.INVALID_MODIFICATION_ERR=(U[13]="Invalid modification",13),oo=j.NAMESPACE_ERR=(U[14]="Invalid namespace",14),ao=j.INVALID_ACCESS_ERR=(U[15]="Invalid access",15);function x(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,U[e]),this.message=U[e],Error.captureStackTrace&&Error.captureStackTrace(this,x);return r.code=e,t&&(this.message=this.message+": "+t),r}x.prototype=Error.prototype;Fe(j,x);function Q(){}Q.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t,r){for(var i=!!r&&!!r.requireWellFormed,n=[],s=0;s<this.length;s++)er(this[s],n,e,t,null,i);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function ye(e,t){this._node=e,this._refresh=t,Gt(this)}function Gt(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(Ei(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var i=r.length;i in e;i++)Object.prototype.hasOwnProperty.call(e,i)&&delete e[i];Fe(r,e),e._inc=t}}ye.prototype.item=function(e){return Gt(this),this[e]||null};V(ye,Q);function Dt(){}function li(e,t){for(var r=e.length;r--;)if(e[r]===t)return r}function Jn(e,t,r,i){if(i?t[li(t,i)]=r:t[t.length++]=r,e){r.ownerElement=e;var n=e.ownerDocument;n&&(i&&fi(n,e,i),Au(n,e,r))}}function Qn(e,t,r){var i=li(t,r);if(i>=0){for(var n=t.length-1;i<n;)t[i]=t[++i];if(t.length=n,e){var s=e.ownerDocument;s&&(fi(s,e,r),r.ownerElement=null)}}else throw new x(ai,new Error(e.tagName+"@"+r))}Dt.prototype={length:0,item:Q.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var r=this[t];if(r.nodeName==e)return r}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new x(Zn);var r=this.getNamedItem(e.nodeName);return Jn(this._ownerElement,this,e,r),r},setNamedItemNS:function(e){var t=e.ownerElement,r;if(t&&t!=this._ownerElement)throw new x(Zn);return r=this.getNamedItemNS(e.namespaceURI,e.localName),Jn(this._ownerElement,this,e,r),r},removeNamedItem:function(e){var t=this.getNamedItem(e);return Qn(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return Qn(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){for(var r=this.length;r--;){var i=this[r];if(i.localName==t&&i.namespaceURI==e)return i}return null}};function ci(){}ci.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var i=new xe;if(i.implementation=this,i.childNodes=new Q,i.doctype=r||null,r&&i.appendChild(r),t){var n=i.createElementNS(e,t);i.appendChild(n)}return i},createDocumentType:function(e,t,r){var i=new At;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=r||"",i}};function F(){}F.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return wt(this,e,t)},replaceChild:function(e,t){wt(this,e,t,pi),t&&this.removeChild(t)},removeChild:function(e){return di(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return wi(this.ownerDocument||this,this,e)},normalize:function(){k(this,null,{enter:function(e){for(var t=e.firstChild;t;){var r=t.nextSibling;r!==null&&r.nodeType===gt&&t.nodeType===gt?(e.removeChild(r),t.appendData(r.data)):t=r}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r){for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&r[i]===e)return i}t=t.nodeType==De?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];t=t.nodeType==De?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return t==null}};function hi(e){return e=="<"&&"&lt;"||e==">"&&"&gt;"||e=="&"&&"&amp;"||e=='"'&&"&quot;"||"&#"+e.charCodeAt()+";"}Fe(H,F);Fe(H,F.prototype);function yt(e,t){return k(e,null,{enter:function(r){return t(r)?k.STOP:!0}})===k.STOP}function k(e,t,r){for(var i=[{node:e,context:t,phase:k.ENTER}];i.length>0;){var n=i.pop();if(n.phase===k.ENTER){var s=r.enter(n.node,n.context);if(s===k.STOP)return k.STOP;if(i.push({node:n.node,context:s,phase:k.EXIT}),s==null)continue;for(var u=n.node.lastChild;u;)i.push({node:u,context:s,phase:k.ENTER}),u=u.previousSibling}else r.exit&&r.exit(n.node,n.context)}}k.STOP=Symbol("walkDOM.STOP");k.ENTER=0;k.EXIT=1;function xe(){this.ownerDocument=this}function Au(e,t,r){e&&e._inc++;var i=r.namespaceURI;i===Me.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}function fi(e,t,r,i){e&&e._inc++;var n=r.namespaceURI;n===Me.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function $t(e,t,r){if(e&&e._inc){e._inc++;var i=t.childNodes;if(r)i[i.length++]=r;else{for(var n=t.firstChild,s=0;n;)i[s++]=n,n=n.nextSibling;i.length=s,delete i[i.length]}}}function di(e,t){var r=t.previousSibling,i=t.nextSibling;return r?r.nextSibling=i:e.firstChild=i,i?i.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,$t(e.ownerDocument,e),t}function bu(e){return e&&(e.nodeType===F.DOCUMENT_NODE||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.ELEMENT_NODE)}function Cu(e){return e&&(Z(e)||Wt(e)||ee(e)||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.COMMENT_NODE||e.nodeType===F.PROCESSING_INSTRUCTION_NODE)}function ee(e){return e&&e.nodeType===F.DOCUMENT_TYPE_NODE}function Z(e){return e&&e.nodeType===F.ELEMENT_NODE}function Wt(e){return e&&e.nodeType===F.TEXT_NODE}function ei(e,t){var r=e.childNodes||[];if(K(r,Z)||ee(t))return!1;var i=K(r,ee);return!(t&&i&&r.indexOf(i)>r.indexOf(t))}function ti(e,t){var r=e.childNodes||[];function i(s){return Z(s)&&s!==t}if(K(r,i))return!1;var n=K(r,ee);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function vu(e,t,r){if(!bu(e))throw new x(X,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new x(ai,"child not in parent");if(!Cu(t)||ee(t)&&e.nodeType!==F.DOCUMENT_NODE)throw new x(X,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function Tu(e,t,r){var i=e.childNodes||[],n=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var s=n.filter(Z);if(s.length>1||K(n,Wt))throw new x(X,"More than one element or text in fragment");if(s.length===1&&!ei(e,r))throw new x(X,"Element in fragment can not be inserted before doctype")}if(Z(t)&&!ei(e,r))throw new x(X,"Only one element can be added and only after doctype");if(ee(t)){if(K(i,ee))throw new x(X,"Only one doctype is allowed");var u=K(i,Z);if(r&&i.indexOf(u)<i.indexOf(r))throw new x(X,"Doctype can only be inserted before an element");if(!r&&u)throw new x(X,"Doctype can not be appended since element is present")}}function pi(e,t,r){var i=e.childNodes||[],n=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var s=n.filter(Z);if(s.length>1||K(n,Wt))throw new x(X,"More than one element or text in fragment");if(s.length===1&&!ti(e,r))throw new x(X,"Element in fragment can not be inserted before doctype")}if(Z(t)&&!ti(e,r))throw new x(X,"Only one element can be added and only after doctype");if(ee(t)){let c=function(p){return ee(p)&&p!==r};var l=c;if(K(i,c))throw new x(X,"Only one doctype is allowed");var u=K(i,Z);if(r&&i.indexOf(u)<i.indexOf(r))throw new x(X,"Doctype can only be inserted before an element")}}function wt(e,t,r,i){vu(e,t,r),e.nodeType===F.DOCUMENT_NODE&&(i||Tu)(e,t,r);var n=t.parentNode;if(n&&n.removeChild(t),t.nodeType===J){var s=t.firstChild;if(s==null)return t;var u=t.lastChild}else s=u=t;var l=r?r.previousSibling:e.lastChild;s.previousSibling=l,u.nextSibling=r,l?l.nextSibling=s:e.firstChild=s,r==null?e.lastChild=u:r.previousSibling=u;do{s.parentNode=e;var c=e.ownerDocument||e;Be(s,c)}while(s!==u&&(s=s.nextSibling));return $t(e.ownerDocument||e,e),t.nodeType==J&&(t.firstChild=t.lastChild=null),t}function Be(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===$&&e.attributes)for(var r=0;r<e.attributes.length;r++){var i=e.attributes.item(r);i&&(i.ownerDocument=t)}for(var n=e.firstChild;n;)Be(n,t),n=n.nextSibling}}function Nu(e,t){t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,$t(e.ownerDocument,e,t);var r=e.ownerDocument||e;return Be(t,r),t}xe.prototype={nodeName:"#document",nodeType:si,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==J){for(var r=e.firstChild;r;){var i=r.nextSibling;this.insertBefore(r,t),r=i}return e}return wt(this,e,t),Be(e,this),this.documentElement===null&&e.nodeType===$&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),di(this,e)},replaceChild:function(e,t){wt(this,e,t,pi),Be(e,this),t&&this.removeChild(t),Z(e)&&(this.documentElement=e)},importNode:function(e,t){return Su(this,e,t)},getElementById:function(e){var t=null;return yt(this.documentElement,function(r){if(r.nodeType==$&&r.getAttribute("id")==e)return t=r,!0}),t},getElementsByClassName:function(e){var t=Kn(e);return new ye(this,function(r){var i=[];return t.length>0&&yt(r.documentElement,function(n){if(n!==r&&n.nodeType===$){var s=n.getAttribute("class");if(s){var u=e===s;if(!u){var l=Kn(s);u=t.every(Du(l))}u&&i.push(n)}}}),i})},createElement:function(e){var t=new he;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new Q;var r=t.attributes=new Dt;return r._ownerElement=t,t},createDocumentFragment:function(){var e=new bt;return e.ownerDocument=this,e.childNodes=new Q,e},createTextNode:function(e){var t=new Yt;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new Kt;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){if(e.indexOf("]]>")!==-1)throw new x(Eu,'data contains "]]>"');var t=new Zt;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new Qt;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new Et;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new Jt;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new he,i=t.split(":"),n=r.attributes=new Dt;return r.childNodes=new Q,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,i.length==2?(r.prefix=i[0],r.localName=i[1]):r.localName=t,n._ownerElement=r,r},createAttributeNS:function(e,t){var r=new Et,i=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,i.length==2?(r.prefix=i[0],r.localName=i[1]):r.localName=t,r}};V(xe,F);function he(){this._nsMap={}}he.prototype={nodeType:$,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===J?this.insertBefore(e,null):Nu(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+r,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new ye(this,function(t){var r=[];return yt(t,function(i){i!==t&&i.nodeType==$&&(e==="*"||i.tagName==e)&&r.push(i)}),r})},getElementsByTagNameNS:function(e,t){return new ye(this,function(r){var i=[];return yt(r,function(n){n!==r&&n.nodeType===$&&(e==="*"||n.namespaceURI===e)&&(t==="*"||n.localName==t)&&i.push(n)}),i})}};xe.prototype.getElementsByTagName=he.prototype.getElementsByTagName;xe.prototype.getElementsByTagNameNS=he.prototype.getElementsByTagNameNS;V(he,F);function Et(){}Et.prototype.nodeType=De;V(Et,F);function Pe(){}Pe.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(U[X])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){var i=this.data.substring(0,e),n=this.data.substring(e+t);r=i+r+n,this.nodeValue=this.data=r,this.length=r.length}};V(Pe,F);function Yt(){}Yt.prototype={nodeName:"#text",nodeType:gt,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}};V(Yt,Pe);function Kt(){}Kt.prototype={nodeName:"#comment",nodeType:zt};V(Kt,Pe);function Zt(){}Zt.prototype={nodeName:"#cdata-section",nodeType:ii};V(Zt,Pe);function At(){}At.prototype.nodeType=oi;V(At,F);function mi(){}mi.prototype.nodeType=wu;V(mi,F);function gi(){}gi.prototype.nodeType=yu;V(gi,F);function Jt(){}Jt.prototype.nodeType=ui;V(Jt,F);function bt(){}bt.prototype.nodeName="#document-fragment";bt.prototype.nodeType=J;V(bt,F);function Qt(){}Qt.prototype.nodeType=Ht;V(Qt,F);function Di(){}Di.prototype.serializeToString=function(e,t,r,i){return yi.call(e,t,r,i)};F.prototype.toString=yi;function yi(e,t,r){var i=!!r&&!!r.requireWellFormed,n=[],s=this.nodeType==9&&this.documentElement||this,u=s.prefix,l=s.namespaceURI;if(l&&u==null){var u=s.lookupPrefix(l);if(u==null)var c=[{namespace:l,prefix:null}]}return er(this,n,e,t,c,i),n.join("")}function ri(e,t,r){var i=e.prefix||"",n=e.namespaceURI;if(!n||i==="xml"&&n===Me.XML||n===Me.XMLNS)return!1;for(var s=r.length;s--;){var u=r[s];if(u.prefix===i)return u.namespace!==n}return!0}function mt(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,hi),'"')}function er(e,t,r,i,n,s){n||(n=[]),k(e,{ns:n,isHTML:r},{enter:function(u,l){var c=l.ns,p=l.isHTML;if(i)if(u=i(u),u){if(typeof u=="string")return t.push(u),null}else return null;switch(u.nodeType){case $:var m=u.attributes,d=m.length,y=u.tagName;p=Me.isHTML(u.namespaceURI)||p;var b=y;if(!p&&!u.prefix&&u.namespaceURI){for(var C,N=0;N<m.length;N++)if(m.item(N).name==="xmlns"){C=m.item(N).value;break}if(!C)for(var T=c.length-1;T>=0;T--){var B=c[T];if(B.prefix===""&&B.namespace===u.namespaceURI){C=B.namespace;break}}if(C!==u.namespaceURI)for(var T=c.length-1;T>=0;T--){var B=c[T];if(B.namespace===u.namespaceURI){B.prefix&&(b=B.prefix+":"+y);break}}}t.push("<",b);for(var P=c.slice(),f=0;f<d;f++){var h=m.item(f);h.prefix=="xmlns"?P.push({prefix:h.localName,namespace:h.value}):h.nodeName=="xmlns"&&P.push({prefix:"",namespace:h.value})}for(var f=0;f<d;f++){var h=m.item(f);if(ri(h,p,P)){var w=h.prefix||"",o=h.namespaceURI;mt(t,w?"xmlns:"+w:"xmlns",o),P.push({prefix:w,namespace:o})}var D=i?i(h):h;D&&(typeof D=="string"?t.push(D):mt(t,D.name,D.value))}if(y===b&&ri(u,p,P)){var A=u.prefix||"",o=u.namespaceURI;mt(t,A?"xmlns:"+A:"xmlns",o),P.push({prefix:A,namespace:o})}var a=u.firstChild;if(a||p&&!/^(?:meta|link|img|br|hr|input)$/i.test(y)){if(t.push(">"),p&&/^script$/i.test(y)){for(;a;)a.data?t.push(a.data):er(a,t,p,i,P.slice(),s),a=a.nextSibling;return t.push("</",y,">"),null}return{ns:P,isHTML:p,tag:b}}else return t.push("/>"),null;case si:case J:return{ns:c.slice(),isHTML:p,tag:null};case De:return mt(t,u.name,u.value),null;case gt:return t.push(u.data.replace(/[<&>]/g,hi)),null;case ii:if(s&&u.data.indexOf("]]>")!==-1)throw new x(ge,'The CDATASection data contains "]]>"');return t.push("<![CDATA[",u.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case zt:if(s&&u.data.indexOf("-->")!==-1)throw new x(ge,'The comment node data contains "-->"');return t.push("<!--",u.data,"-->"),null;case oi:if(s){if(u.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(u.publicId))throw new x(ge,"DocumentType publicId is not a valid PubidLiteral");if(u.systemId&&!/^("[^"]*"|'[^']*')$/.test(u.systemId))throw new x(ge,"DocumentType systemId is not a valid SystemLiteral");if(u.internalSubset&&u.internalSubset.indexOf("]>")!==-1)throw new x(ge,'DocumentType internalSubset contains "]>"')}var g=u.publicId,E=u.systemId;if(t.push("<!DOCTYPE ",u.name),g)t.push(" PUBLIC ",g),E&&E!="."&&t.push(" ",E),t.push(">");else if(E&&E!=".")t.push(" SYSTEM ",E,">");else{var v=u.internalSubset;v&&t.push(" [",v,"]"),t.push(">")}return null;case Ht:if(s&&u.data.indexOf("?>")!==-1)throw new x(ge,'The ProcessingInstruction data contains "?>"');return t.push("<?",u.target," ",u.data,"?>"),null;case ui:return t.push("&",u.nodeName,";"),null;default:return t.push("??",u.nodeName),null}},exit:function(u,l){l&&l.tag&&t.push("</",l.tag,">")}})}function Su(e,t,r){var i;return k(t,null,{enter:function(n,s){var u=n.cloneNode(!1);u.ownerDocument=e,u.parentNode=null,s===null?i=u:s.appendChild(u);var l=n.nodeType===De||r;return l?u:null}}),i}function wi(e,t,r){var i;return k(t,null,{enter:function(n,s){var u=new n.constructor;for(var l in n)if(Object.prototype.hasOwnProperty.call(n,l)){var c=n[l];typeof c!="object"&&c!=u[l]&&(u[l]=c)}n.childNodes&&(u.childNodes=new Q),u.ownerDocument=e;var p=r;switch(u.nodeType){case $:var m=n.attributes,d=u.attributes=new Dt,y=m.length;d._ownerElement=u;for(var b=0;b<y;b++)u.setAttributeNode(wi(e,m.item(b),!0));break;case De:p=!0}return s!==null?s.appendChild(u):i=u,p?u:null}}),i}function Ei(e,t,r){e[t]=r}try{Object.defineProperty&&(Object.defineProperty(ye.prototype,"length",{get:function(){return Gt(this),this.$$length}}),Object.defineProperty(F.prototype,"textContent",{get:function(){if(this.nodeType===$||this.nodeType===J){var e=[];return k(this,null,{enter:function(t){if(t.nodeType===$||t.nodeType===J)return!0;if(t.nodeType===Ht||t.nodeType===zt)return null;e.push(t.nodeValue)}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case $:case J:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Ei=function(e,t,r){e["$$"+t]=r})}catch{}te.DocumentType=At;te.DOMException=x;te.DOMImplementation=ci;te.Element=he;te.Node=F;te.NodeList=Q;te.walkDOM=k;te.XMLSerializer=Di});var bi=M(Re=>{"use strict";var Ai=Le().freeze;Re.XML_ENTITIES=Ai({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});Re.HTML_ENTITIES=Ai({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
4
6
  `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"});Re.entityMap=Re.HTML_ENTITIES});var Li=M(nr=>{var Ue=Le().NAMESPACE,rr=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Ci=new RegExp("[\\-\\.0-9"+rr.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),vi=new RegExp("^"+rr.source+Ci.source+"*(?::"+rr.source+Ci.source+"*)?$"),qe=0,oe=1,we=2,_e=3,Ee=4,Ae=5,ke=6,Ct=7;function be(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,be)}be.prototype=new Error;be.prototype.name=be.name;function Si(){}Si.prototype={parse:function(e,t,r){var i=this.domBuilder;i.startDocument(),Oi(t,t={}),Ou(e,t,r,i,this.errorHandler),i.endDocument()}};function Ou(e,t,r,i,n){function s(L){if(L>65535){L-=65536;var S=55296+(L>>10),_=56320+(L&1023);return String.fromCharCode(S,_)}else return String.fromCharCode(L)}function u(L){var S=L.slice(1,-1);return Object.hasOwnProperty.call(r,S)?r[S]:S.charAt(0)==="#"?s(parseInt(S.substr(1).replace("x","0x"))):(n.error("entity not found:"+L),L)}function l(L){if(L>N){var S=e.substring(N,L).replace(/&#?\w+;/g,u);y&&c(N),i.characters(S,0,L-N),N=L}}function c(L,S){for(;L>=m&&(S=d.exec(e));)p=S.index,m=p+S[0].length,y.lineNumber++;y.columnNumber=L-p+1}for(var p=0,m=0,d=/.*(?:\r\n?|\n)|.*$/g,y=i.locator,b=[{currentNSMap:t}],C={},N=0;;){try{var T=e.indexOf("<",N);if(T<0){if(!e.substr(N).match(/^\s*$/)){var B=i.doc,P=B.createTextNode(e.substr(N));B.appendChild(P),i.currentElement=P}return}switch(T>N&&l(T),e.charAt(T+1)){case"/":var E=e.indexOf(">",T+3),f=e.substring(T+2,E).replace(/[ \t\n\r]+$/g,""),h=b.pop();E<0?(f=e.substring(T+2).replace(/[\s<].*/,""),n.error("end tag name: "+f+" is not complete:"+h.tagName),E=T+1+f.length):f.match(/\s</)&&(f=f.replace(/[\s<].*/,""),n.error("end tag name: "+f+" maybe not complete"),E=T+1+f.length);var w=h.localNSMap,o=h.tagName==f,D=o||h.tagName&&h.tagName.toLowerCase()==f.toLowerCase();if(D){if(i.endElement(h.uri,h.localName,f),w)for(var A in w)Object.prototype.hasOwnProperty.call(w,A)&&i.endPrefixMapping(A);o||n.fatalError("end tag name: "+f+" is not match the current start tagName:"+h.tagName)}else b.push(h);E++;break;case"?":y&&c(T),E=Fu(e,T,i);break;case"!":y&&c(T),E=Bu(e,T,i,n);break;default:y&&c(T);var a=new Ii,g=b[b.length-1].currentNSMap,E=Iu(e,T,a,g,u,n),v=a.length;if(!a.closed&&Mu(e,E,a.tagName,C)&&(a.closed=!0,r.nbsp||n.warning("unclosed xml attribute")),y&&v){for(var O=Ti(y,{}),I=0;I<v;I++){var q=a[I];c(q.offset),q.locator=Ti(y,{})}i.locator=O,Ni(a,i,g)&&b.push(a),i.locator=y}else Ni(a,i,g)&&b.push(a);Ue.isHTML(a.uri)&&!a.closed?E=Lu(e,E,a.tagName,u,i):E++}}catch(L){if(L instanceof be)throw L;n.error("element parse error: "+L),E=-1}E>N?N=E:l(Math.max(T,N)+1)}}function Ti(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Iu(e,t,r,i,n,s){function u(b,C,N){r.attributeNames.hasOwnProperty(b)&&s.fatalError("Attribute "+b+" redefined"),r.addValue(b,C.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,n),N)}for(var l,c,p=++t,m=qe;;){var d=e.charAt(p);switch(d){case"=":if(m===oe)l=e.slice(t,p),m=_e;else if(m===we)m=_e;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(m===_e||m===oe)if(m===oe&&(s.warning('attribute value must after "="'),l=e.slice(t,p)),t=p+1,p=e.indexOf(d,t),p>0)c=e.slice(t,p),u(l,c,t-1),m=Ae;else throw new Error("attribute value no end '"+d+"' match");else if(m==Ee)c=e.slice(t,p),u(l,c,t),s.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=p+1,m=Ae;else throw new Error('attribute value must after "="');break;case"/":switch(m){case qe:r.setTagName(e.slice(t,p));case Ae:case ke:case Ct:m=Ct,r.closed=!0;case Ee:case oe:break;case we:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),m==qe&&r.setTagName(e.slice(t,p)),p;case">":switch(m){case qe:r.setTagName(e.slice(t,p));case Ae:case ke:case Ct:break;case Ee:case oe:c=e.slice(t,p),c.slice(-1)==="/"&&(r.closed=!0,c=c.slice(0,-1));case we:m===we&&(c=l),m==Ee?(s.warning('attribute "'+c+'" missed quot(")!'),u(l,c,t)):((!Ue.isHTML(i[""])||!c.match(/^(?:disabled|checked|selected)$/i))&&s.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),u(c,c,t));break;case _e:throw new Error("attribute value missed!!")}return p;case"\x80":d=" ";default:if(d<=" ")switch(m){case qe:r.setTagName(e.slice(t,p)),m=ke;break;case oe:l=e.slice(t,p),m=we;break;case Ee:var c=e.slice(t,p);s.warning('attribute "'+c+'" missed quot(")!!'),u(l,c,t);case Ae:m=ke;break}else switch(m){case we:var y=r.tagName;(!Ue.isHTML(i[""])||!l.match(/^(?:disabled|checked|selected)$/i))&&s.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),u(l,l,t),t=p,m=oe;break;case Ae:s.warning('attribute space is required"'+l+'"!!');case ke:m=oe,t=p;break;case _e:m=Ee,t=p;break;case Ct:throw new Error("elements closed character '/' and '>' must be connected to")}}p++}}function Ni(e,t,r){for(var i=e.tagName,n=null,d=e.length;d--;){var s=e[d],u=s.qName,l=s.value,y=u.indexOf(":");if(y>0)var c=s.prefix=u.slice(0,y),p=u.slice(y+1),m=c==="xmlns"&&p;else p=u,c=null,m=u==="xmlns"&&"";s.localName=p,m!==!1&&(n==null&&(n={},Oi(r,r={})),r[m]=n[m]=l,s.uri=Ue.XMLNS,t.startPrefixMapping(m,l))}for(var d=e.length;d--;){s=e[d];var c=s.prefix;c&&(c==="xml"&&(s.uri=Ue.XML),c!=="xmlns"&&(s.uri=r[c||""]))}var y=i.indexOf(":");y>0?(c=e.prefix=i.slice(0,y),p=e.localName=i.slice(y+1)):(c=null,p=e.localName=i);var b=e.uri=r[c||""];if(t.startElement(b,p,i,e),e.closed){if(t.endElement(b,p,i),n)for(c in n)Object.prototype.hasOwnProperty.call(n,c)&&t.endPrefixMapping(c)}else return e.currentNSMap=r,e.localNSMap=n,!0}function Lu(e,t,r,i,n){if(/^(?:script|textarea)$/i.test(r)){var s=e.indexOf("</"+r+">",t),u=e.substring(t+1,s);if(/[&<]/.test(u))return/^script$/i.test(r)?(n.characters(u,0,u.length),s):(u=u.replace(/&#?\w+;/g,i),n.characters(u,0,u.length),s)}return t+1}function Mu(e,t,r,i){var n=i[r];return n==null&&(n=e.lastIndexOf("</"+r+">"),n<t&&(n=e.lastIndexOf("</"+r)),i[r]=n),n<t}function Oi(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function Bu(e,t,r,i){var n=e.charAt(t+2);switch(n){case"-":if(e.charAt(t+3)==="-"){var s=e.indexOf("-->",t+4);return s>t?(r.comment(e,t+4,s-t-4),s+3):(i.error("Unclosed comment"),-1)}else return-1;default:if(e.substr(t+3,6)=="CDATA["){var s=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,s-t-9),r.endCDATA(),s+3}var u=xu(e,t),l=u.length;if(l>1&&/!doctype/i.test(u[0][0])){var c=u[1][0],p=!1,m=!1;l>3&&(/^public$/i.test(u[2][0])?(p=u[3][0],m=l>4&&u[4][0]):/^system$/i.test(u[2][0])&&(m=u[3][0]));var d=u[l-1];return r.startDTD(c,p,m),r.endDTD(),d.index+d[0].length}}return-1}function Fu(e,t,r){var i=e.indexOf("?>",t);if(i){var n=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(n){var s=n[0].length;return r.processingInstruction(n[1],n[2]),i+2}else return-1}return-1}function Ii(){this.attributeNames={}}Ii.prototype={setTagName:function(e){if(!vi.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!vi.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};function xu(e,t){var r,i=[],n=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(n.lastIndex=t,n.exec(e);r=n.exec(e);)if(i.push(r),r[1])return i}nr.XMLReader=Si;nr.ParseError=be});var qi=M(Tt=>{var Pu=Le(),Ru=tr(),Mi=bi(),xi=Li(),qu=Ru.DOMImplementation,Bi=Pu.NAMESPACE,_u=xi.ParseError,ku=xi.XMLReader;function Pi(e){return e.replace(/\r[\n\u0085]/g,`
5
7
  `).replace(/[\r\u0085\u2028]/g,`
@@ -1,2 +1,4 @@
1
- /*! sootsim v0.1.293 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.295 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
2
4
  var e="./demo-app-registry.ts",o=null;async function p(){if(o)return o;try{let r=await import(e);o=Array.isArray(r.APPS)?r.APPS:[]}catch{o=[]}return o}function n(){return o??[]}function i(r){let t=o;return o=r,{restore:()=>{o=t}}}export{p as a,n as b,i as c};
@@ -0,0 +1,5 @@
1
+ /*! sootsim v0.1.295 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ function i(t,o,a,l){return{width:3,ringToggle:{side:"left",top:t[0],height:t[1]},volumeUp:{side:"left",top:o[0],height:o[1]},volumeDown:{side:"left",top:a[0],height:a[1]},lock:{side:"right",top:l[0],height:l[1]}}}var N={width:2.5,lock:{side:"right",top:188.7,height:68.1},ringToggle:{side:"left",top:113.2,height:36},volumeUp:{side:"left",top:188.2,height:68.1},volumeDown:{side:"left",top:269,height:68.1}},b={width:3,lock:{side:"right",top:671/2.625,height:163/2.625},ringToggle:{side:"left",top:-1e3,height:0},volumeUp:{side:"right",top:971/2.625,height:165/2.625},volumeDown:{side:"right",top:1136/2.625,height:166/2.625}},A={width:3,lock:{side:"right",top:248,height:72},ringToggle:{side:"left",top:-1e3,height:0},volumeUp:{side:"right",top:144,height:62},volumeDown:{side:"right",top:216,height:62}},s=24,c="17",d=37,T=1080/2.625,O=2400/2.625,u=132/2.625;function r(t){return{top:t,right:t,bottom:t,left:t}}function E(t){let o=(t.frameInsets.top+t.frameInsets.right+t.frameInsets.bottom+t.frameInsets.left)/4,a=Math.max(Math.abs(t.frameInsets.top-o),Math.abs(t.frameInsets.right-o),Math.abs(t.frameInsets.bottom-o),Math.abs(t.frameInsets.left-o));return{frameRadius:t.cornerRadius+o,frameRadiusApproximationError:a,screenRadius:t.cornerRadius}}function H(t){return{...E(t),frameHeight:t.frameInsets.top+t.height+t.frameInsets.bottom,frameWidth:t.frameInsets.left+t.width+t.frameInsets.right,screenBottomInset:t.frameInsets.bottom,screenLeft:t.frameInsets.left,screenRightInset:t.frameInsets.right,screenTop:t.frameInsets.top}}function n(t){return{...t,platform:"ios",navigationBarHeight:0,navigationBarMode:t.homeIndicatorHeight>0?"gesture":"none",displayCutout:{top:t.dynamicIsland?t.statusBarHeight:0,bottom:0,left:0,right:0},cameraCutout:null,osVersion:t.iosVersion,androidApiLevel:null,systemName:"iOS",manufacturer:"Apple",brand:"Apple",modelName:t.name}}var x={"canvas-workspace":n({name:"Canvas Workspace",width:1440,height:900,scale:1,statusBarHeight:0,homeIndicatorHeight:0,cornerRadius:0,continuousCornerRadius:0,frameInsets:r(16),dynamicIsland:null,safeAreaInsets:{top:0,bottom:0,left:0,right:0},iosVersion:"26.4",physicalPPI:110,hardwareButtons:i([185.8,41.7],[258.2,67.6],[344,67.6],[281.5,106.9]),experimental:!0}),"iphone-se":n({name:"iPhone SE",width:375,height:667,scale:2,statusBarHeight:20,homeIndicatorHeight:0,cornerRadius:0,continuousCornerRadius:0,frameInsets:r(28.7),dynamicIsland:null,safeAreaInsets:{top:20,bottom:0,left:0,right:0},iosVersion:"15.8",physicalPPI:326,hardwareButtons:N}),"iphone-14":n({name:"iPhone 14",width:390,height:844,scale:3,statusBarHeight:47,homeIndicatorHeight:34,cornerRadius:46.2,continuousCornerRadius:67.462,frameInsets:r(19.5),dynamicIsland:null,safeAreaInsets:{top:47,bottom:34,left:0,right:0},iosVersion:"17.6",physicalPPI:460,hardwareButtons:i([141.7,29.7],[205.9,69.6],[289.5,69.6],[228.9,114.5])}),"iphone-15":n({name:"iPhone 15",width:393,height:852,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:53.9,continuousCornerRadius:73.402,frameInsets:r(18.2),dynamicIsland:{width:126,height:37.3,top:14.1},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"17.6",physicalPPI:460,hardwareButtons:i([171.7,32],[235.8,65.3],[320.5,65.3],[280.6,105.2])}),"iphone-15-plus":n({name:"iPhone 15 Plus",width:430,height:932,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:53.9,continuousCornerRadius:74.654,frameInsets:r(17.3),dynamicIsland:{width:126,height:37.3,top:11.4},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"17.6",physicalPPI:460,hardwareButtons:i([172.1,33],[236.1,66.6],[321.2,66.6],[281,106.8])}),"iphone-15-pro":n({name:"iPhone 15 Pro",width:393,height:852,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:53.9,continuousCornerRadius:73.402,frameInsets:r(15.3),dynamicIsland:{width:126,height:38,top:13.4},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"18.2",physicalPPI:460,hardwareButtons:i([159.1,31.5],[220.1,61.9],[299,61.9],[260.8,98.9])}),"iphone-15-pro-max":n({name:"iPhone 15 Pro Max",width:430,height:932,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:53.9,continuousCornerRadius:74.654,frameInsets:r(15.3),dynamicIsland:{width:126,height:38,top:13.3},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"18.2",physicalPPI:460,hardwareButtons:i([173.3,32.2],[253.4,61.7],[343.3,61.7],[268.5,98.5])}),"iphone-16":n({name:"iPhone 16",width:393,height:852,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:53.9,continuousCornerRadius:73.402,frameInsets:r(15.3),dynamicIsland:{width:126,height:37.3,top:11},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([159.1,31.5],[220.1,61.9],[299,61.9],[260.8,98.9])}),"iphone-16-plus":n({name:"iPhone 16 Plus",width:430,height:932,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:53.9,continuousCornerRadius:74.654,frameInsets:r(15.3),dynamicIsland:{width:126,height:37.3,top:11.4},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([173.3,32.2],[253.4,61.7],[343.3,61.7],[268.5,98.5])}),"iphone-16-pro":n({name:"iPhone 16 Pro",width:402,height:874,scale:3,statusBarHeight:62,homeIndicatorHeight:34,cornerRadius:61,continuousCornerRadius:84.661,frameInsets:r(15.3),dynamicIsland:{width:126,height:38,top:13.5},safeAreaInsets:{top:62,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([159.1,31.5],[220.1,61.9],[299,61.9],[260.8,98.9])}),"iphone-16-pro-max":n({name:"iPhone 16 Pro Max",width:440,height:956,scale:3,statusBarHeight:62,homeIndicatorHeight:34,cornerRadius:61.3,continuousCornerRadius:85.163,frameInsets:r(15.4),dynamicIsland:{width:126,height:38,top:14},safeAreaInsets:{top:62,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([178.8,32.2],[266.8,61.8],[352.7,61.8],[292.2,98.3])}),"iphone-17":n({name:"iPhone 17",width:402,height:874,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:61,continuousCornerRadius:84.661,frameInsets:r(15.3),dynamicIsland:{width:126,height:37.3,top:14},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([159.1,31.5],[220.1,61.9],[299,61.9],[260.8,98.9])}),"iphone-17-air":n({name:"iPhone Air",width:420,height:912,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:64.6,continuousCornerRadius:88.313,frameInsets:r(10.7),dynamicIsland:{width:126,height:38,top:20},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([178.8,32.2],[266.8,61.8],[352.7,61.8],[292.2,98.3])}),"iphone-17-pro":n({name:"iPhone 17 Pro",width:402,height:874,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:61,continuousCornerRadius:84.661,frameInsets:r(15.3),dynamicIsland:{width:126,height:38,top:14},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([159.1,31.5],[220.1,61.9],[299,61.9],[260.8,98.9])}),"iphone-17-pro-max":n({name:"iPhone 17 Pro Max",width:440,height:956,scale:3,statusBarHeight:62,homeIndicatorHeight:34,cornerRadius:61.3,continuousCornerRadius:85.163,frameInsets:r(15.4),dynamicIsland:{width:126,height:38,top:14},safeAreaInsets:{top:62,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([178.8,32.2],[266.8,61.8],[352.7,61.8],[292.2,98.3])}),"pixel-8":{platform:"android",name:"Pixel 8",width:T,height:O,scale:2.625,statusBarHeight:u,homeIndicatorHeight:0,navigationBarHeight:s,navigationBarMode:"gesture",displayCutout:{top:u,bottom:0,left:0,right:0},cornerRadius:39,continuousCornerRadius:39,frameInsets:{top:55/2.625,right:50/2.625,bottom:58/2.625,left:49/2.625},dynamicIsland:null,cameraCutout:{diameter:72.5/2.625},safeAreaInsets:{top:u,bottom:s,left:0,right:0},osVersion:c,iosVersion:"",androidApiLevel:d,systemName:"Android",manufacturer:"Google",brand:"google",modelName:"Pixel 8",physicalPPI:428,hardwareButtons:b},"pixel-8-three-button":{platform:"android",name:"Pixel 8 (3-button)",width:T,height:O,scale:2.625,statusBarHeight:u,homeIndicatorHeight:0,navigationBarHeight:48,navigationBarMode:"three-button",displayCutout:{top:u,bottom:0,left:0,right:0},cornerRadius:39,continuousCornerRadius:39,frameInsets:{top:55/2.625,right:50/2.625,bottom:58/2.625,left:49/2.625},dynamicIsland:null,cameraCutout:{diameter:72.5/2.625},safeAreaInsets:{top:u,bottom:48,left:0,right:0},osVersion:c,iosVersion:"",androidApiLevel:d,systemName:"Android",manufacturer:"Google",brand:"google",modelName:"Pixel 8",physicalPPI:428,hardwareButtons:b},"pixel-9-pro-xl":{platform:"android",name:"Pixel 9 Pro XL",width:448,height:997,scale:3,statusBarHeight:40,homeIndicatorHeight:0,navigationBarHeight:s,navigationBarMode:"gesture",displayCutout:{top:40,bottom:0,left:0,right:0},cornerRadius:41,continuousCornerRadius:41,frameInsets:r(12),dynamicIsland:null,cameraCutout:{diameter:24},safeAreaInsets:{top:40,bottom:s,left:0,right:0},osVersion:c,iosVersion:"",androidApiLevel:d,systemName:"Android",manufacturer:"Google",brand:"google",modelName:"Pixel 9 Pro XL",physicalPPI:486,hardwareButtons:b},"pixel-10":{platform:"android",name:"Pixel 10",width:360,height:808,scale:3,statusBarHeight:40,homeIndicatorHeight:0,navigationBarHeight:s,navigationBarMode:"gesture",displayCutout:{top:40,bottom:0,left:0,right:0},cornerRadius:40,continuousCornerRadius:40,frameInsets:r(18),dynamicIsland:null,cameraCutout:{diameter:26},safeAreaInsets:{top:40,bottom:s,left:0,right:0},osVersion:c,iosVersion:"",androidApiLevel:d,systemName:"Android",manufacturer:"Google",brand:"google",modelName:"Pixel 10",physicalPPI:422,hardwareButtons:b},"galaxy-s24":{platform:"android",name:"Galaxy S24",width:360,height:780,scale:3,statusBarHeight:36,homeIndicatorHeight:0,navigationBarHeight:s,navigationBarMode:"gesture",displayCutout:{top:36,bottom:0,left:0,right:0},cornerRadius:36,continuousCornerRadius:36,frameInsets:r(8),dynamicIsland:null,cameraCutout:{diameter:18},safeAreaInsets:{top:36,bottom:s,left:0,right:0},osVersion:c,iosVersion:"",androidApiLevel:d,systemName:"Android",manufacturer:"Samsung",brand:"samsung",modelName:"SM-S921B",physicalPPI:416,hardwareButtons:A},"galaxy-s24-ultra":{platform:"android",name:"Galaxy S24 Ultra",width:384,height:832,scale:3.75,statusBarHeight:36,homeIndicatorHeight:0,navigationBarHeight:s,navigationBarMode:"gesture",displayCutout:{top:36,bottom:0,left:0,right:0},cornerRadius:24,continuousCornerRadius:24,frameInsets:r(9),dynamicIsland:null,cameraCutout:{diameter:18},safeAreaInsets:{top:36,bottom:s,left:0,right:0},osVersion:c,iosVersion:"",androidApiLevel:d,systemName:"Android",manufacturer:"Samsung",brand:"samsung",modelName:"SM-S928B",physicalPPI:505,hardwareButtons:A}},R="iphone-17-pro";function z(t){return x[t]}function C(){return Object.keys(x)}function G(){return C().filter(t=>!x[t].experimental)}var B=["off","soft","full"];function D(t){return t==="off"||t==="soft"||t==="full"}var y={"iphone-6-9":{name:"iphone-6-9",label:'iPhone 6.7"',width:1284,height:2778,store:"apple"},"iphone-6-1":{name:"iphone-6-1",label:'iPhone 6.5"',width:1242,height:2688,store:"apple"},"android-phone":{name:"android-phone",label:"Google Play phone",width:1080,height:1920,store:"google"},"android-tablet-7":{name:"android-tablet-7",label:'Google Play 7" tablet',width:1200,height:1920,store:"google"},"android-tablet-10":{name:"android-tablet-10",label:'Google Play 10" tablet',width:1600,height:2560,store:"google"}},S={dark:{type:"gradient",direction:180,glow:"#4caeff",stops:[{offset:0,color:"#111827"},{offset:40,color:"#101725"},{offset:100,color:"#06080d"}]},cyan:{type:"gradient",direction:180,glow:"#25c3ec",stops:[{offset:0,color:"#1b465c"},{offset:32,color:"#122336"},{offset:100,color:"#05070b"}]},gold:{type:"gradient",direction:180,glow:"#ffc25a",stops:[{offset:0,color:"#3b2f1a"},{offset:34,color:"#18140d"},{offset:100,color:"#050505"}]},red:{type:"gradient",direction:180,glow:"#ff6178",stops:[{offset:0,color:"#3e1018"},{offset:35,color:"#17080c"},{offset:100,color:"#050405"}]}},K={color:"#25c3ec",blur:120,spread:52,opacity:.34},Y="iphone-17-pro";var _=[{name:"white",value:"#ffffff"},{name:"gray-light",value:"#d1d5db"},{name:"gray",value:"#6b7280"},{name:"gray-dark",value:"#3b4350"},{name:"slate",value:"#2a3644"},{name:"black",value:"#000000"},{name:"cyan",value:"#25c3ec"},{name:"blue",value:"#3f7cff"},{name:"teal",value:"#1fc7b4"},{name:"green",value:"#42c95d"},{name:"lime",value:"#92d21b"},{name:"gold",value:"#f5c518"},{name:"orange",value:"#ff912e"},{name:"coral",value:"#ff6f5b"},{name:"red",value:"#ff4f6f"},{name:"berry",value:"#d054ff"},{name:"magenta",value:"#ff4eb8"}],k=Object.fromEntries(_.map(t=>[t.name,t.value]));function X(t){return k[t]??k.gray}function $(t){return Object.prototype.hasOwnProperty.call(y,t)?y[t]:null}function L(t){return{type:t.type,color:t.color,direction:t.direction,glow:t.glow,stops:t.stops?.map(o=>({...o}))}}function q(t){return Object.prototype.hasOwnProperty.call(S,t)?L(S[t]):null}var F=[.823,.882,.941,1,1.118,1.235,1.353,1.786,2.143,2.643,3.143,3.571];function e(t,o){return Object.freeze({fontSize:t,lineHeight:o})}var Q=Object.freeze({xs:Object.freeze({largeTitle:e(31,44.408775),title1:e(25,37.128102),title2:e(19,27.816685),title3:e(17,23.807109),headline:e(14,20.161577),body:e(14,20.161577),callout:e(13,18.942243),subheadline:e(12,16.720313),footnote:e(12,16.986979),caption1:e(11,15.564453),caption2:e(11,16.126953)}),s:Object.freeze({largeTitle:e(32,45.797256),title1:e(26,38.556756),title2:e(20,29.22433),title3:e(18,25.160469),headline:e(15,21.536754),body:e(15,21.536754),callout:e(14,20.326079),subheadline:e(13,18.213672),footnote:e(12,16.986979),caption1:e(11,15.564453),caption2:e(11,16.126953)}),m:Object.freeze({largeTitle:e(33,47.185737),title1:e(27,39.985409),title2:e(21,30.631975),title3:e(19,26.513828),headline:e(16,22.911932),body:e(16,22.911932),callout:e(15,21.709914),subheadline:e(14,19.557031),footnote:e(12,16.986979),caption1:e(11,15.564453),caption2:e(11,16.126953)}),l:Object.freeze({largeTitle:e(34,48.574219),title1:e(28,41.414063),title2:e(22,32.253906),title3:e(20,27.867187),headline:e(17,24.287109),body:e(17,24.287109),callout:e(16,23.09375),subheadline:e(15,20.900391),footnote:e(13,18.513672),caption1:e(12,17.320313),caption2:e(11,16.126953)}),xl:Object.freeze({largeTitle:e(36,51.351181),title1:e(30,44.271369),title2:e(24,35.069196),title3:e(22,30.733906),headline:e(19,27.037464),body:e(19,27.037464),callout:e(18,25.861421),subheadline:e(17,23.587109),footnote:e(15,21.233724),caption1:e(14,20.269531),caption2:e(13,19.667518)}),xxl:Object.freeze({largeTitle:e(38,54.323266),title1:e(32,47.128676),title2:e(26,37.884487),title3:e(24,33.440625),headline:e(21,29.78782),body:e(21,29.78782),callout:e(20,28.629092),subheadline:e(19,26.273828),footnote:e(17,23.953776),caption1:e(16,23.03125),caption2:e(15,22.515775)}),xxxl:Object.freeze({largeTitle:e(40,57.100229),title1:e(34,50.221278),title2:e(28,40.699777),title3:e(26,36.147344),headline:e(23,32.719993),body:e(23,32.719993),callout:e(22,31.58724),subheadline:e(21,28.960547),footnote:e(19,26.673828),caption1:e(18,25.792969),caption2:e(17,25.364032)}),ax1:Object.freeze({largeTitle:e(44,62.654154),title1:e(38,56.171186),title2:e(34,49.359933),title3:e(31,43.074141),headline:e(28,39.595881),body:e(28,39.595881),callout:e(26,37.122582),subheadline:e(25,34.483984),footnote:e(23,32.280599),caption1:e(22,31.316406),caption2:e(20,29.636418)}),ax2:Object.freeze({largeTitle:e(48,68.403201),title1:e(43,63.314453),title2:e(39,56.612444),title3:e(37,51.194297),headline:e(33,46.653587),body:e(33,46.653587),callout:e(32,45.616071),subheadline:e(30,41.200781),footnote:e(27,37.720703),caption1:e(26,37.027344),caption2:e(24,35.332933)}),ax3:Object.freeze({largeTitle:e(52,73.957127),title1:e(48,70.693015),title2:e(44,63.65067),title3:e(43,59.474453),headline:e(40,56.461648),body:e(40,56.461648),callout:e(38,54.109561),subheadline:e(36,49.410937),footnote:e(33,46.047526),caption1:e(32,45.5),caption2:e(29,42.684345)}),ax4:Object.freeze({largeTitle:e(56,79.706174),title1:e(53,77.600988),title2:e(50,72.310826),title3:e(49,67.754609),headline:e(47,65.360618),body:e(47,66.269709),callout:e(44,62.412574),subheadline:e(42,57.621094),footnote:e(38,53.014323),caption1:e(37,52.404297),caption2:e(34,50.035757)}),ax5:Object.freeze({largeTitle:e(60,85.260099),title1:e(58,85.214844),title2:e(56,80.970982),title3:e(55,76.034766),headline:e(53,74.520774),body:e(53,74.520774),callout:e(51,72.2899),subheadline:e(49,67.174609),footnote:e(44,61.174479),caption1:e(43,60.876953),caption2:e(40,58.811298)})});function M(t){return F.some(o=>Object.is(o,t))}var v={deviceModel:{type:"enum",default:R,description:"device model to simulate",cliFlag:"device",cliFlagShort:"d",options:C(),group:"device"},orientation:{type:"enum",default:"portrait",description:"screen orientation",cliFlag:"orientation",options:["portrait","landscape"],group:"device"},colorScheme:{type:"enum",default:"auto",description:"color scheme (auto follows system preference)",cliFlag:"theme",cliFlagShort:"t",options:["light","dark","auto"],group:"appearance"},reduceMotion:{type:"boolean",default:!1,description:"reduce motion",group:"appearance"},boldText:{type:"boolean",default:!1,description:"bold text",group:"appearance"},fontSize:{type:"number",default:1,description:"font size multiplier (1.0 = default)",group:"appearance",validate:t=>t>=.5&&t<=4},largerAccessibilitySizes:{type:"boolean",default:!1,description:"show accessibility categories in the dynamic type size picker",group:"appearance"},networkCondition:{type:"enum",default:"wifi",description:"simulated network condition",cliFlag:"network",options:["wifi","lte","fast-3g","slow-3g","offline"],group:"network"},language:{type:"string",default:"en",description:"language code (ISO 639-1)",cliFlag:"language",group:"locale"},region:{type:"string",default:"US",description:"region code (ISO 3166-1)",cliFlag:"region",group:"locale"},renderDensity:{type:"number",default:0,description:"render density override in device pixels per point for high-resolution capture (0 = device native)",group:"simulator",validate:t=>t===0||t>=1&&t<=9},showTouches:{type:"boolean",default:!1,description:"show touch indicators",group:"simulator"},showFrame:{type:"boolean",default:!0,description:"show device frame",cliFlag:"frame",group:"simulator"},showMenuBar:{type:"boolean",default:!0,description:"keep the menu bar visible instead of revealing it at the top edge",group:"simulator"},showRail:{type:"boolean",default:!0,description:"keep the rail visible instead of revealing it on hover",group:"simulator"},solidWindow:{type:"boolean",default:!1,description:"desktop app: always use the solid, freely-resizable window instead of the device-shaped transparent one (3d mode uses it regardless)",group:"simulator"},ambientGlow:{type:"enum",default:"off",description:"bleed the app's own edge colors outward behind the device, like bias lighting behind a TV (off, soft, full)",options:B,cliFlag:"ambient-glow",group:"simulator"},screenshotMode:{type:"boolean",default:!1,description:"show screenshot composition mode in the browser shell",group:"simulator"},screenshotCanvasEditing:{type:"boolean",default:!1,description:"experimental figma-style slide editing: draggable copy block, drop-in image layers (owner review pending)",group:"simulator"},threeMode:{type:"boolean",default:!1,description:"show the experimental 3d device stage in the browser shell",group:"simulator"},threeRecordingEditor:{type:"boolean",default:!1,description:"dock the 3d recording editor in the 3d stage (toggled from its rail)",group:"simulator"},screenshotCanvas:{type:"enum",default:"iphone-6-9",description:"target app-store canvas preset for screenshot mode",options:Object.keys(y),group:"simulator"},screenshotBackground:{type:"enum",default:"dark",description:"background preset rendered inside the screenshot canvas",options:Object.keys(S),group:"simulator"},screenshotText:{type:"enum",default:"bold-top",description:"text layout preset for the screenshot canvas",options:["bold-top","editorial-left","minimal-bottom","none"],group:"simulator"},screenshotPose:{type:"enum",default:"straight",description:"device pose preset inside the screenshot canvas",options:["straight","tilted-left","tilted-right","cut-bottom","cut-top"],group:"simulator"},screenshotDynamicSize:{type:"boolean",default:!1,description:"let the screenshot canvas rect fit available space (off = pin to exact preset pixels)",group:"simulator"},showStatusBar:{type:"boolean",default:!0,description:"show status bar",group:"simulator"},showHomeIndicator:{type:"boolean",default:!0,description:"show home indicator",group:"simulator"},alwaysShowLiveWebViews:{type:"boolean",default:!1,description:"always render WebViews as live browser views",group:"simulator"},a11yMode:{type:"enum",default:"delayed",description:"accessibility tree sync mode (off, delayed=100ms, active=30ms)",options:["off","delayed","active"],group:"simulator"},a11yDepth:{type:"enum",default:"deep",description:"accessibility tree structure depth (shallow or deep)",options:["shallow","deep"],group:"simulator"},inspectMode:{type:"boolean",default:!1,description:"inspect mode",group:"simulator"},errorReporting:{type:"boolean",default:!1,description:"send anonymous crash reports",group:"privacy"},agentProvider:{type:"enum",default:"codex",description:"ai agent used by the sootsim agent prompt bar",options:["codex","claude"],group:"agent"},onboardingComplete:{type:"boolean",default:!1,description:"first-run onboarding completed",group:"beta"},betaConsentVersion:{type:"number",default:0,description:"last accepted beta telemetry policy version",group:"beta"},detailedTelemetry:{type:"boolean",default:!0,description:"send detailed usage telemetry (sessions, perf samples)",group:"beta"}};function V(){if(typeof window>"u")return{};let t={};try{let o=new URLSearchParams(window.location.search),a=o.get("device");a&&v.deviceModel.options?.includes(a)&&(t.deviceModel=a),o.get("ssMode")==="1"&&(t.screenshotMode=!0),o.get("filmStage")==="1"&&(t.threeMode=!0,a||(t.deviceModel="iphone-17-air"));let l=Number(o.get("renderDensity"));Number.isFinite(l)&&l>=1&&l<=9&&(t.renderDensity=l),o.get("ssEdit")==="1"&&(t.screenshotCanvasEditing=!0);let w=o.get("colorScheme")??o.get("theme");w&&v.colorScheme.options?.includes(w)&&(t.colorScheme=w);let p=o.get("reduceMotion");p==="1"||p==="true"?t.reduceMotion=!0:(p==="0"||p==="false")&&(t.reduceMotion=!1);let h=o.get("boldText");h==="1"||h==="true"?t.boldText=!0:(h==="0"||h==="false")&&(t.boldText=!1);let I=Number(o.get("fontSize"));Number.isFinite(I)&&M(I)&&(t.fontSize=I);let m=o.get("largerAccessibilitySizes");m==="1"||m==="true"?t.largerAccessibilitySizes=!0:(m==="0"||m==="false")&&(t.largerAccessibilitySizes=!1);let g=o.get("alwaysShowLiveWebViews");g==="1"||g==="true"?t.alwaysShowLiveWebViews=!0:(g==="0"||g==="false")&&(t.alwaysShowLiveWebViews=!1);let f=o.get("showFrame");f==="1"||f==="true"?t.showFrame=!0:(f==="0"||f==="false")&&(t.showFrame=!1);let P=o.get("ambientGlow");D(P)&&(t.ambientGlow=P)}catch{}return t}function ne(){let t={};for(let[o,a]of Object.entries(v))t[o]=a.default;return Object.assign(t,V()),t}export{H as a,x as b,z as c,G as d,K as e,Y as f,X as g,$ as h,L as i,q as j,v as k,V as l,ne as m};
5
+ /*! sootsim v0.1.295 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
@@ -1,3 +1,5 @@
1
- /*! sootsim v0.1.293 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{c as f}from"./chunk-K5JEUI5G.js";import{existsSync as w,mkdirSync as g,readFileSync as h,writeFileSync as S,rmSync as q}from"fs";import{tmpdir as y}from"os";import{dirname as b,join as p}from"path";var m=new Map;function o(e,t){m.set(e,t)}var s=1;function a(){return p(y(),`sootsim-cli-hints-${f()}.json`)}function d(){return p(y(),"sootsim-cli-hints-global.json")}function u(e){if(!w(e))return{version:s,shown:{}};try{let t=JSON.parse(h(e,"utf8"));return t?.version!==s||!t?.shown?{version:s,shown:{}}:t}catch{return{version:s,shown:{}}}}function l(e,t){try{g(b(e),{recursive:!0}),S(e,JSON.stringify(t)+`
1
+ /*! sootsim v0.1.295 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ import{c as f}from"./chunk-K7LQB4IF.js";import{existsSync as w,mkdirSync as g,readFileSync as h,writeFileSync as S,rmSync as q}from"fs";import{tmpdir as y}from"os";import{dirname as b,join as p}from"path";var m=new Map;function o(e,t){m.set(e,t)}var s=1;function a(){return p(y(),`sootsim-cli-hints-${f()}.json`)}function d(){return p(y(),"sootsim-cli-hints-global.json")}function u(e){if(!w(e))return{version:s,shown:{}};try{let t=JSON.parse(h(e,"utf8"));return t?.version!==s||!t?.shown?{version:s,shown:{}}:t}catch{return{version:s,shown:{}}}}function l(e,t){try{g(b(e),{recursive:!0}),S(e,JSON.stringify(t)+`
3
5
  `)}catch{}}function v(){let e=(process.env.SOOTSIM_HINTS||"").toLowerCase();return e==="off"||e==="0"||e==="false"?"off":e==="always"||e==="verbose"?"always":"normal"}function H(e,t){let i=v();if(i==="off")return!1;if(i==="always"||t==="always")return!0;let r=Date.now();if(t==="once-per-identity"){let n=u(a());return n.shown[e]?!1:(n.shown[e]=r,l(a(),n),!0)}if(t==="once-ever"){let n=u(d());return n.shown[e]?!1:(n.shown[e]=r,l(d(),n),!0)}if(typeof t=="object"&&"cooldownMs"in t){let n=u(a()),c=n.shown[e]??0;return r-c<t.cooldownMs?!1:(n.shown[e]=r,l(a(),n),!0)}return!0}function A(e,...t){let i=m.get(e);if(!i)return process.env.SOOTSIM_HINTS_DEBUG&&console.error(` [hints] no hint registered for id "${e}"`),!1;if(!H(e,i.frequency))return!1;let r=i.render(...t);if(r==null)return!1;let n=Array.isArray(r)?r:[r];for(let c of n)console.error(` hint: ${c}`);return!0}o("app-still-loading",{frequency:{cooldownMs:6e4},render:e=>`app may still be loading (${e} nodes). run \`sootsim wait ready\` first.`});o("wait-selector-for-missing-testid",{frequency:"once-per-identity",render:e=>`sootsim wait selector ${e}`});o("prefer-cli-over-eval",{frequency:"once-per-identity",render:e=>e.length?["try the CLI shortcut instead:",...e.map(t=>` ${t}`)]:null});o("describe-use-filters",{frequency:"once-per-identity",render:()=>["describe output is long. narrow it with:"," sootsim describe --only '*Bottom Sheet*'"," sootsim describe --testid-like 'swap-*'"," sootsim describe --subtree <testID>"]});o("describe-filter-context",{frequency:"once-per-identity",render:()=>["filtered describe is search output, not current-route proof.","run `sootsim describe` without filters after navigation; clipped nodes are marked `(clipped:...)`."]});o("subtree-root-not-found",{frequency:"always",render:e=>`no node with testID/id "${e}" \u2014 try \`sootsim find --testid ${e}\` to discover available ids.`});o("clean-uninstall",{frequency:"once-ever",render:()=>["to remove the background daemon and all ~/.sootsim data, run `sootsim daemon uninstall`.","the optional desktop app and its macOS preference plist are separate from the daemon."]});export{A as a};