@ruck-plugins/it-tools 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android-chrome-192x192.png +0 -0
- package/android-chrome-512x512.png +0 -0
- package/apple-touch-icon.png +0 -0
- package/assets/About-3d24c5db.js +1 -0
- package/assets/Alert-94bc8eeb.js +48 -0
- package/assets/Blank-7aaa3138.css +1 -0
- package/assets/Blank-e5d4ac5a.js +1 -0
- package/assets/Button-9402ed37.js +103 -0
- package/assets/Checkbox-cb66f05b.js +105 -0
- package/assets/ColorPicker-d1570289.js +181 -0
- package/assets/Copy-aa880467.js +1 -0
- package/assets/Divider-1a143549.js +42 -0
- package/assets/Form-5afa044a.js +6 -0
- package/assets/FormItem-18450bf0.js +105 -0
- package/assets/FormatTransformer.vue_vue_type_script_setup_true_lang-62b173c1.js +1 -0
- package/assets/Grid-c95ac6a8.js +1 -0
- package/assets/Input-304baede.js +258 -0
- package/assets/InputCopyable.vue_vue_type_script_setup_true_lang-f8def18c.js +1 -0
- package/assets/InputGroup-70edfbd3.js +56 -0
- package/assets/InputGroupLabel-95e6747d.js +29 -0
- package/assets/InputNumber-164670aa.js +7 -0
- package/assets/Remove-0305cd29.js +7 -0
- package/assets/Scrollbar-d11619e0.js +1 -0
- package/assets/Slider-712e01ed.js +158 -0
- package/assets/SpanCopyable.vue_vue_type_script_setup_true_lang-f78211c8.js +1 -0
- package/assets/Statistic-5bf76e73.js +23 -0
- package/assets/Switch-a3478b14.js +102 -0
- package/assets/Table-cd9ff7d0.js +76 -0
- package/assets/Tag-76c06f8d.js +70 -0
- package/assets/TextareaCopyable-a8dad7e2.js +75 -0
- package/assets/TextareaCopyable-e0c396a1.css +1 -0
- package/assets/___vite-browser-external_commonjs-proxy-d22f5c20.js +1 -0
- package/assets/_commonjs-dynamic-modules-302442b1.js +1 -0
- package/assets/abap-b90a1f1e.js +6 -0
- package/assets/apex-7aadd462.js +6 -0
- package/assets/ascii-text-drawer-a9edb471.js +2285 -0
- package/assets/azcli-23a1b956.js +6 -0
- package/assets/base64-6a7151fc.js +1 -0
- package/assets/base64-file-converter-4268e6c2.js +1 -0
- package/assets/base64-file-converter-5ea50f3b.css +1 -0
- package/assets/base64-string-converter-589f021d.js +1 -0
- package/assets/basic-auth-generator-37cad11f.css +1 -0
- package/assets/basic-auth-generator-bdfb1c58.js +1 -0
- package/assets/bat-2c82a72d.js +6 -0
- package/assets/bcrypt-65197846.css +1 -0
- package/assets/bcrypt-ab034048.js +5 -0
- package/assets/benchmark-builder-4d4575bb.js +5 -0
- package/assets/bicep-338bfe58.js +7 -0
- package/assets/bip39-generator-5a73523a.js +8 -0
- package/assets/boolean-c7e7c785.js +1 -0
- package/assets/browser-e933942f.js +8 -0
- package/assets/c-key-value-list.vue_vue_type_script_setup_true_lang-18c0a83d.js +1 -0
- package/assets/cameligo-1c616f6f.js +6 -0
- package/assets/camera-recorder-ed9d6dee.js +1 -0
- package/assets/case-converter-cfa9e2eb.js +1 -0
- package/assets/chmod-calculator-455ac64e.js +1 -0
- package/assets/chmod-calculator-ffe89049.css +1 -0
- package/assets/chronometer-241bfabb.css +1 -0
- package/assets/chronometer-9c01359d.js +1 -0
- package/assets/clojure-9bb82a82.js +6 -0
- package/assets/codicon-8b349ebc.ttf +0 -0
- package/assets/coffee-ec486f98.js +6 -0
- package/assets/color-converter-29caec7b.js +1 -0
- package/assets/color-to-class-b0332f36.js +1 -0
- package/assets/computedRefreshable-c6e973a4.js +1 -0
- package/assets/convert-ae87c221.js +1 -0
- package/assets/cpp-98740ad6.js +6 -0
- package/assets/crontab-generator-8260c5da.css +1 -0
- package/assets/crontab-generator-f23cf7dc.js +8 -0
- package/assets/csharp-d2941385.js +6 -0
- package/assets/csp-aed6305a.js +6 -0
- package/assets/css-a82dd746.js +8 -0
- package/assets/cssMode-5dd2dec6.js +9 -0
- package/assets/cypher-3ffc0570.js +6 -0
- package/assets/dart-68bf5326.js +6 -0
- package/assets/date-time-converter-fadab3da.js +1 -0
- package/assets/defaults-4d6daddf.js +1 -0
- package/assets/demo-wrapper-4d0ee60f.js +1 -0
- package/assets/device-information-8214f0a2.js +1 -0
- package/assets/device-information-8ba000b4.css +1 -0
- package/assets/docker-run-to-docker-compose-converter-d7373897.js +56 -0
- package/assets/dockerfile-c55b64af.js +6 -0
- package/assets/downloadBase64-e611bae8.js +1 -0
- package/assets/ecl-e008be52.js +6 -0
- package/assets/elixir-932a57fd.js +6 -0
- package/assets/email-normalizer-5b25a5bc.js +3 -0
- package/assets/emoji-picker-bf39b72c.js +1 -0
- package/assets/encryption-7e707240.js +1 -0
- package/assets/eta-calculator-06f472f3.js +323 -0
- package/assets/eta-calculator-089582d9.css +1 -0
- package/assets/flow9-d862b93b.js +6 -0
- package/assets/freemarker2-742a84be.js +8 -0
- package/assets/fsharp-f2bb837e.js +6 -0
- package/assets/get-slot-1efb97e5.js +1 -0
- package/assets/git-memo-7be4be4a.js +27 -0
- package/assets/git-memo-8caded2b.css +1 -0
- package/assets/go-b074840c.js +6 -0
- package/assets/graphql-a707cdaa.js +6 -0
- package/assets/handlebars-2b56c30f.js +6 -0
- package/assets/hash-text-999882c4.js +1 -0
- package/assets/hash-text.service-9de4e2c4.js +1 -0
- package/assets/hcl-d4ee186a.js +6 -0
- package/assets/hmac-generator-093872ee.js +1 -0
- package/assets/html-e962b0ce.js +6 -0
- package/assets/html-entities-20010e46.js +1 -0
- package/assets/html-wysiwyg-editor-b5b79779.css +1 -0
- package/assets/html-wysiwyg-editor-dc050e6a.js +143 -0
- package/assets/htmlMode-95ffb1da.js +9 -0
- package/assets/http-status-codes-f542762a.js +1 -0
- package/assets/iban-validator-and-parser-f6ec3d84.js +13 -0
- package/assets/index-01d0fc63.js +1370 -0
- package/assets/index-12c42436.js +22 -0
- package/assets/index-14563ccd.css +1 -0
- package/assets/index-231c3e11.js +14 -0
- package/assets/index-2c6ca995.js +16 -0
- package/assets/index-3aa13386.js +1 -0
- package/assets/index-63220630.js +14 -0
- package/assets/index-8c244bdc.js +1 -0
- package/assets/index-f68143c3.js +11 -0
- package/assets/ini-41c1946f.js +6 -0
- package/assets/integer-base-converter-170a0120.js +1 -0
- package/assets/integer-base-converter-fea045ae.css +1 -0
- package/assets/integer-base-converter.model-834f64a6.js +1 -0
- package/assets/ipv4-address-converter-951dd3a1.js +1 -0
- package/assets/ipv4-address-converter.service-5eca2303.js +1 -0
- package/assets/ipv4-range-expander-77529d33.js +1 -0
- package/assets/ipv4-subnet-calculator-0765b5a3.js +1 -0
- package/assets/ipv6-ula-generator-a227ad1d.js +1 -0
- package/assets/is-browser-fc34c9a6.js +1 -0
- package/assets/java-47f7782f.js +6 -0
- package/assets/javascript-dc831e1c.js +6 -0
- package/assets/json-diff-0c87ccdc.css +1 -0
- package/assets/json-diff-b65e7116.js +1 -0
- package/assets/json-minify-7f8d657a.js +5 -0
- package/assets/json-to-csv-f0a07574.js +2 -0
- package/assets/json-to-toml-13b9d4b1.js +2 -0
- package/assets/json-to-xml-46f59009.js +1 -0
- package/assets/json-to-yaml-cbeb8558.js +1 -0
- package/assets/json-viewer-268bc972.js +1 -0
- package/assets/json-viewer-d387c416.css +1 -0
- package/assets/jsonMode-58ab16e2.js +11 -0
- package/assets/julia-f7e41405.js +6 -0
- package/assets/jwt-parser-2e30b2d6.js +1 -0
- package/assets/jwt-parser-50e53634.css +1 -0
- package/assets/keycode-info-a032e8f4.js +1 -0
- package/assets/kotlin-ae5ef343.js +6 -0
- package/assets/less-1fe8fdbb.js +7 -0
- package/assets/lexon-b30b84ba.js +6 -0
- package/assets/liquid-af26062b.js +6 -0
- package/assets/list-converter-11cbde31.js +3 -0
- package/assets/lorem-ipsum-generator-da85b585.js +5 -0
- package/assets/lua-98fb5662.js +6 -0
- package/assets/m3-bebbe313.js +6 -0
- package/assets/mac-address-generator-234fbe8f.js +2 -0
- package/assets/mac-address-lookup-0694c3ba.js +102348 -0
- package/assets/macAddress-dfb969b0.js +1 -0
- package/assets/markdown-d21a565e.js +6 -0
- package/assets/markdown-to-html-6565adf1.js +16 -0
- package/assets/math-evaluator-286ab429.js +71 -0
- package/assets/mdx-70a3edf4.js +6 -0
- package/assets/meta-tag-generator-4be4cd50.js +53 -0
- package/assets/meta-tag-generator-b150f5ae.css +1 -0
- package/assets/mime-types-b7f86a27.js +1 -0
- package/assets/mips-a6f8cea7.js +6 -0
- package/assets/msdax-b68e245c.js +6 -0
- package/assets/mysql-5b539782.js +6 -0
- package/assets/numeronym-generator-3a497cbe.js +1 -0
- package/assets/objective-c-2b1285e8.js +6 -0
- package/assets/otp-code-generator-and-validator-315dde55.css +1 -0
- package/assets/otp-code-generator-and-validator-6aedd63f.js +166 -0
- package/assets/pascal-4649eefa.js +6 -0
- package/assets/pascaligo-ae9a3940.js +6 -0
- package/assets/password-strength-analyser-0a24e554.js +1 -0
- package/assets/pdf-signature-checker-95d8a436.js +3049 -0
- package/assets/percentage-calculator-9402d8b0.js +1 -0
- package/assets/perl-36ad82fa.js +6 -0
- package/assets/pgsql-e710ca22.js +6 -0
- package/assets/phone-parser-and-formatter-afcb0e67.js +7 -0
- package/assets/php-9f7865da.js +6 -0
- package/assets/pla-54a12d9b.js +6 -0
- package/assets/postiats-7c2e9d70.js +6 -0
- package/assets/powerquery-f1a5c841.js +6 -0
- package/assets/powershell-da6840f5.js +6 -0
- package/assets/prime.worker.min-e367bd53.js +2 -0
- package/assets/protobuf-1aff1783.js +7 -0
- package/assets/public-api-1d5b2fbb.js +134 -0
- package/assets/pug-58d85519.js +6 -0
- package/assets/python-f562a315.js +6 -0
- package/assets/qr-code-generator-ca3ee0d1.js +1 -0
- package/assets/qsharp-3747268d.js +6 -0
- package/assets/queryParams-58db1e7b.js +1 -0
- package/assets/r-3faaa0ed.js +6 -0
- package/assets/random-port-generator-1c387010.css +1 -0
- package/assets/random-port-generator-ad07fddf.js +1 -0
- package/assets/razor-ab3af78d.js +6 -0
- package/assets/redis-e60e99b1.js +6 -0
- package/assets/redshift-9471542a.js +6 -0
- package/assets/regex-memo-677bdef7.css +1 -0
- package/assets/regex-memo-f19e5afd.js +1 -0
- package/assets/regex-tester-3401d417.js +87 -0
- package/assets/restructuredtext-2ed0fd83.js +6 -0
- package/assets/roman-numeral-converter-0e069c84.js +1 -0
- package/assets/roman-numeral-converter-fae8a4be.css +1 -0
- package/assets/rsa-key-pair-generator-90bf1bd4.js +1 -0
- package/assets/ruby-25cf1311.js +6 -0
- package/assets/rust-ed06c9d7.js +6 -0
- package/assets/safelink-decoder-bda49476.js +1 -0
- package/assets/sb-c1c59486.js +6 -0
- package/assets/scala-b8919493.js +6 -0
- package/assets/scheme-03c92c15.js +6 -0
- package/assets/scss-3439df1c.js +8 -0
- package/assets/shell-5561a5b3.js +6 -0
- package/assets/slugify-string-3a9209be.js +1 -0
- package/assets/solidity-d6124224.js +6 -0
- package/assets/sophia-8f79d2a2.js +6 -0
- package/assets/sparql-8602c7d8.js +6 -0
- package/assets/sql-435600dc.js +6 -0
- package/assets/sql-prettify-333609a0.js +21 -0
- package/assets/sql-prettify-e3b0c442.css +0 -0
- package/assets/st-aef311b0.js +6 -0
- package/assets/string-obfuscator-bd8beed1.js +1 -0
- package/assets/svg-placeholder-generator-467d394f.js +6 -0
- package/assets/svg-placeholder-generator-60893440.css +1 -0
- package/assets/swift-9dc68841.js +8 -0
- package/assets/systemverilog-46198f6a.js +6 -0
- package/assets/tcl-cb6e370b.js +6 -0
- package/assets/temperature-converter-d9084f7b.js +1 -0
- package/assets/text-diff-1862df68.css +1 -0
- package/assets/text-diff-4b33871e.js +738 -0
- package/assets/text-statistics-61dbfe91.js +1 -0
- package/assets/text-to-binary-7ba97b8f.js +1 -0
- package/assets/text-to-nato-alphabet-600e4313.js +1 -0
- package/assets/text-to-unicode-abb6c3c7.js +1 -0
- package/assets/token-generator.service-e0fc52bc.js +1 -0
- package/assets/token-generator.tool-412a186d.js +1 -0
- package/assets/token-generator.tool-da0729d3.css +1 -0
- package/assets/toml-esm-9c5f6a1e.js +17 -0
- package/assets/toml-to-json-6024b95e.js +1 -0
- package/assets/toml-to-yaml-cee705ee.js +1 -0
- package/assets/toml.services-387bcfeb.js +1 -0
- package/assets/tsMode-2b8efb49.js +16 -0
- package/assets/twig-2fc36860.js +6 -0
- package/assets/typescript-08d91f25.js +6 -0
- package/assets/ulid-generator-0502ccc9.js +2 -0
- package/assets/url-encoder-db05c372.js +1 -0
- package/assets/url-parser-05963146.css +1 -0
- package/assets/url-parser-e5be6a08.js +1 -0
- package/assets/use-form-item-5820adda.js +1 -0
- package/assets/use-locale-6feb5d00.js +1 -0
- package/assets/useQRCode-9932c610.js +59 -0
- package/assets/user-agent-parser-ecca9baf.js +1 -0
- package/assets/uuid-generator-847e051b.css +1 -0
- package/assets/uuid-generator-85f83e69.js +2 -0
- package/assets/vb-c8fb3e3d.js +6 -0
- package/assets/wgsl-36d9888f.js +303 -0
- package/assets/wifi-qr-code-generator-947e00cf.js +1 -0
- package/assets/workbox-window.prod.es5-a7b12eab.js +2 -0
- package/assets/xml-4047b2d6.js +6 -0
- package/assets/xml-formatter-773be192.js +2 -0
- package/assets/xml-formatter.service-9d7978b3.js +4 -0
- package/assets/xml-to-json-26437f78.js +1 -0
- package/assets/yaml-5e52994c.js +6 -0
- package/assets/yaml-to-json-7b20eabd.js +1 -0
- package/assets/yaml-to-toml-17947e2d.js +2 -0
- package/assets/yaml-viewer-96cfa9ad.js +1 -0
- package/assets/yaml-viewer-dd416632.css +1 -0
- package/banner.png +0 -0
- package/browserconfig.xml +9 -0
- package/favicon-16x16.png +0 -0
- package/favicon-32x32.png +0 -0
- package/favicon.ico +0 -0
- package/humans.txt +4 -0
- package/index.html +54 -0
- package/logo.png +0 -0
- package/manifest.webmanifest +1 -0
- package/mstile-144x144.png +0 -0
- package/mstile-150x150.png +0 -0
- package/mstile-310x150.png +0 -0
- package/mstile-310x310.png +0 -0
- package/mstile-70x70.png +0 -0
- package/package.json +22 -0
- package/plugin.json +1724 -0
- package/robots.txt +2 -0
- package/safari-pinned-tab.svg +6 -0
- package/sw.js +1 -0
- package/workbox-3e8df8c8.js +1 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import{$ as fn,d as pi,L as an,M as di,a0 as un,f as os,O as ln,a1 as cn,a2 as ni,a3 as _n,S as ri,W as gi,p as Dt,q as pn,s as dn,R as gn,r as hi,o as zt,b as Bt,l as ct,w as pt,j as P,z as Lt,m as Qe,t as st,h as ht,c as oi,F as Ze,i as Ke,A as mn,B as yn,Z as wn}from"./index-01d0fc63.js";import{c as xn}from"./_commonjs-dynamic-modules-302442b1.js";import{u as bn}from"./queryParams-58db1e7b.js";import{_ as vn}from"./Checkbox-cb66f05b.js";import{i as Sn}from"./is-browser-fc34c9a6.js";import{g as Tn}from"./get-slot-1efb97e5.js";import{_ as Rn}from"./Table-cd9ff7d0.js";import{_ as An}from"./Divider-1a143549.js";import"./use-form-item-5820adda.js";const Cn=()=>fn,En={name:"Space",self:Cn},Nn=En;let ts;const On=()=>{if(!Sn)return!0;if(ts===void 0){const s=document.createElement("div");s.style.display="flex",s.style.flexDirection="column",s.style.rowGap="1px",s.appendChild(document.createElement("div")),s.appendChild(document.createElement("div")),document.body.appendChild(s);const t=s.scrollHeight===1;return document.body.removeChild(s),ts=t}return ts},kn=Object.assign(Object.assign({},di.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),zn=pi({name:"Space",props:kn,setup(s){const{mergedClsPrefixRef:t,mergedRtlRef:e}=an(s),i=di("Space","-space",void 0,Nn,s,t),n=un("Space",e,t);return{useGap:On(),rtlEnabled:n,mergedClsPrefix:t,margin:os(()=>{const{size:r}=s;if(Array.isArray(r))return{horizontal:r[0],vertical:r[1]};if(typeof r=="number")return{horizontal:r,vertical:r};const{self:{[ln("gap",r)]:o}}=i.value,{row:f,col:l}=cn(o);return{horizontal:ni(l),vertical:ni(f)}})}},render(){const{vertical:s,align:t,inline:e,justify:i,itemStyle:n,margin:r,wrap:o,mergedClsPrefix:f,rtlEnabled:l,useGap:_,wrapItem:u,internalUseGap:m}=this,O=_n(Tn(this));if(!O.length)return null;const L=`${r.horizontal}px`,C=`${r.horizontal/2}px`,A=`${r.vertical}px`,k=`${r.vertical/2}px`,F=O.length-1,X=i.startsWith("space-");return ri("div",{role:"none",class:[`${f}-space`,l&&`${f}-space--rtl`],style:{display:e?"inline-flex":"flex",flexDirection:s?"column":"row",justifyContent:["start","end"].includes(i)?"flex-"+i:i,flexWrap:!o||s?"nowrap":"wrap",marginTop:_||s?"":`-${k}`,marginBottom:_||s?"":`-${k}`,alignItems:t,gap:_?`${r.vertical}px ${r.horizontal}px`:""}},!u&&(_||m)?O:O.map((ot,it)=>ri("div",{role:"none",style:[n,{maxWidth:"100%"},_?"":s?{marginBottom:it!==F?A:""}:l?{marginLeft:X?i==="space-between"&&it===F?"":C:it!==F?L:"",marginRight:X?i==="space-between"&&it===0?"":C:"",paddingTop:k,paddingBottom:k}:{marginRight:X?i==="space-between"&&it===F?"":C:it!==F?L:"",marginLeft:X?i==="space-between"&&it===0?"":C:"",paddingTop:k,paddingBottom:k}]},ot)))}});var xs={exports:{}},mi={},qe={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7},Mt={};const Y=qe,bs=()=>[{type:Y.RANGE,from:48,to:57}],yi=()=>[{type:Y.CHAR,value:95},{type:Y.RANGE,from:97,to:122},{type:Y.RANGE,from:65,to:90}].concat(bs()),wi=()=>[{type:Y.CHAR,value:9},{type:Y.CHAR,value:10},{type:Y.CHAR,value:11},{type:Y.CHAR,value:12},{type:Y.CHAR,value:13},{type:Y.CHAR,value:32},{type:Y.CHAR,value:160},{type:Y.CHAR,value:5760},{type:Y.RANGE,from:8192,to:8202},{type:Y.CHAR,value:8232},{type:Y.CHAR,value:8233},{type:Y.CHAR,value:8239},{type:Y.CHAR,value:8287},{type:Y.CHAR,value:12288},{type:Y.CHAR,value:65279}],Mn=()=>[{type:Y.CHAR,value:10},{type:Y.CHAR,value:13},{type:Y.CHAR,value:8232},{type:Y.CHAR,value:8233}];Mt.words=()=>({type:Y.SET,set:yi(),not:!1});Mt.notWords=()=>({type:Y.SET,set:yi(),not:!0});Mt.ints=()=>({type:Y.SET,set:bs(),not:!1});Mt.notInts=()=>({type:Y.SET,set:bs(),not:!0});Mt.whitespace=()=>({type:Y.SET,set:wi(),not:!1});Mt.notWhitespace=()=>({type:Y.SET,set:wi(),not:!0});Mt.anyChar=()=>({type:Y.SET,set:Mn(),not:!0});(function(s){const t=qe,e=Mt,i="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",n={0:0,t:9,n:10,v:11,f:12,r:13};s.strToChars=function(r){var o=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return r=r.replace(o,function(f,l,_,u,m,O,L,C){if(_)return f;var A=l?8:u?parseInt(u,16):m?parseInt(m,16):O?parseInt(O,8):L?i.indexOf(L):n[C],k=String.fromCharCode(A);return/[[\]{}^$.|?*+()]/.test(k)&&(k="\\"+k),k}),r},s.tokenizeClass=(r,o)=>{for(var f=[],l=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,_,u;(_=l.exec(r))!=null;)if(_[1])f.push(e.words());else if(_[2])f.push(e.ints());else if(_[3])f.push(e.whitespace());else if(_[4])f.push(e.notWords());else if(_[5])f.push(e.notInts());else if(_[6])f.push(e.notWhitespace());else if(_[7])f.push({type:t.RANGE,from:(_[8]||_[9]).charCodeAt(0),to:_[10].charCodeAt(0)});else if(u=_[12])f.push({type:t.CHAR,value:u.charCodeAt(0)});else return[f,l.lastIndex];s.error(o,"Unterminated character class")},s.error=(r,o)=>{throw new SyntaxError("Invalid regular expression: /"+r+"/: "+o)}})(mi);var we={};const Fe=qe;we.wordBoundary=()=>({type:Fe.POSITION,value:"b"});we.nonWordBoundary=()=>({type:Fe.POSITION,value:"B"});we.begin=()=>({type:Fe.POSITION,value:"^"});we.end=()=>({type:Fe.POSITION,value:"$"});const Zt=mi,Tt=qe,Ht=Mt,$e=we;xs.exports=s=>{var t=0,e,i,n={type:Tt.ROOT,stack:[]},r=n,o=n.stack,f=[],l=F=>{Zt.error(s,`Nothing to repeat at column ${F-1}`)},_=Zt.strToChars(s);for(e=_.length;t<e;)switch(i=_[t++],i){case"\\":switch(i=_[t++],i){case"b":o.push($e.wordBoundary());break;case"B":o.push($e.nonWordBoundary());break;case"w":o.push(Ht.words());break;case"W":o.push(Ht.notWords());break;case"d":o.push(Ht.ints());break;case"D":o.push(Ht.notInts());break;case"s":o.push(Ht.whitespace());break;case"S":o.push(Ht.notWhitespace());break;default:/\d/.test(i)?o.push({type:Tt.REFERENCE,value:parseInt(i,10)}):o.push({type:Tt.CHAR,value:i.charCodeAt(0)})}break;case"^":o.push($e.begin());break;case"$":o.push($e.end());break;case"[":var u;_[t]==="^"?(u=!0,t++):u=!1;var m=Zt.tokenizeClass(_.slice(t),s);t+=m[1],o.push({type:Tt.SET,set:m[0],not:u});break;case".":o.push(Ht.anyChar());break;case"(":var O={type:Tt.GROUP,stack:[],remember:!0};i=_[t],i==="?"&&(i=_[t+1],t+=2,i==="="?O.followedBy=!0:i==="!"?O.notFollowedBy=!0:i!==":"&&Zt.error(s,`Invalid group, character '${i}' after '?' at column ${t-1}`),O.remember=!1),o.push(O),f.push(r),r=O,o=O.stack;break;case")":f.length===0&&Zt.error(s,`Unmatched ) at column ${t-1}`),r=f.pop(),o=r.options?r.options[r.options.length-1]:r.stack;break;case"|":r.options||(r.options=[r.stack],delete r.stack);var L=[];r.options.push(L),o=L;break;case"{":var C=/^(\d+)(,(\d+)?)?\}/.exec(_.slice(t)),A,k;C!==null?(o.length===0&&l(t),A=parseInt(C[1],10),k=C[2]?C[3]?parseInt(C[3],10):1/0:A,t+=C[0].length,o.push({type:Tt.REPETITION,min:A,max:k,value:o.pop()})):o.push({type:Tt.CHAR,value:123});break;case"?":o.length===0&&l(t),o.push({type:Tt.REPETITION,min:0,max:1,value:o.pop()});break;case"+":o.length===0&&l(t),o.push({type:Tt.REPETITION,min:1,max:1/0,value:o.pop()});break;case"*":o.length===0&&l(t),o.push({type:Tt.REPETITION,min:0,max:1/0,value:o.pop()});break;default:o.push({type:Tt.CHAR,value:i.charCodeAt(0)})}return f.length!==0&&Zt.error(s,"Unterminated group"),n};xs.exports.types=Tt;var $n=xs.exports;class Et{constructor(t,e){this.low=t,this.high=e,this.length=1+e-t}overlaps(t){return!(this.high<t.low||this.low>t.high)}touches(t){return!(this.high+1<t.low||this.low-1>t.high)}add(t){return new Et(Math.min(this.low,t.low),Math.max(this.high,t.high))}subtract(t){return t.low<=this.low&&t.high>=this.high?[]:t.low>this.low&&t.high<this.high?[new Et(this.low,t.low-1),new Et(t.high+1,this.high)]:t.low<=this.low?[new Et(t.high+1,this.high)]:[new Et(this.low,t.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}let In=class _e{constructor(t,e){this.ranges=[],this.length=0,t!=null&&this.add(t,e)}_update_length(){this.length=this.ranges.reduce((t,e)=>t+e.length,0)}add(t,e){var i=n=>{for(var r=0;r<this.ranges.length&&!n.touches(this.ranges[r]);)r++;for(var o=this.ranges.slice(0,r);r<this.ranges.length&&n.touches(this.ranges[r]);)n=n.add(this.ranges[r]),r++;o.push(n),this.ranges=o.concat(this.ranges.slice(r)),this._update_length()};return t instanceof _e?t.ranges.forEach(i):(e==null&&(e=t),i(new Et(t,e))),this}subtract(t,e){var i=n=>{for(var r=0;r<this.ranges.length&&!n.overlaps(this.ranges[r]);)r++;for(var o=this.ranges.slice(0,r);r<this.ranges.length&&n.overlaps(this.ranges[r]);)o=o.concat(this.ranges[r].subtract(n)),r++;this.ranges=o.concat(this.ranges.slice(r)),this._update_length()};return t instanceof _e?t.ranges.forEach(i):(e==null&&(e=t),i(new Et(t,e))),this}intersect(t,e){var i=[],n=r=>{for(var o=0;o<this.ranges.length&&!r.overlaps(this.ranges[o]);)o++;for(;o<this.ranges.length&&r.overlaps(this.ranges[o]);){var f=Math.max(this.ranges[o].low,r.low),l=Math.min(this.ranges[o].high,r.high);i.push(new Et(f,l)),o++}};return t instanceof _e?t.ranges.forEach(n):(e==null&&(e=t),n(new Et(t,e))),this.ranges=i,this._update_length(),this}index(t){for(var e=0;e<this.ranges.length&&this.ranges[e].length<=t;)t-=this.ranges[e].length,e++;return this.ranges[e].low+t}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new _e(this)}numbers(){return this.ranges.reduce((t,e)=>{for(var i=e.low;i<=e.high;)t.push(i),i++;return t},[])}subranges(){return this.ranges.map(t=>({low:t.low,high:t.high,length:1+t.high-t.low}))}};var jn=In;const Ie=$n,ue=jn,Ut=Ie.types;var Dn=class pe{constructor(t,e){if(this._setDefaults(t),t instanceof RegExp)this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,t=t.source;else if(typeof t=="string")this.ignoreCase=e&&e.indexOf("i")!==-1,this.multiline=e&&e.indexOf("m")!==-1;else throw new Error("Expected a regexp or string");this.tokens=Ie(t)}_setDefaults(t){this.max=t.max!=null?t.max:pe.prototype.max!=null?pe.prototype.max:100,this.defaultRange=t.defaultRange?t.defaultRange:this.defaultRange.clone(),t.randInt&&(this.randInt=t.randInt)}gen(){return this._gen(this.tokens,[])}_gen(t,e){var i,n,r,o,f;switch(t.type){case Ut.ROOT:case Ut.GROUP:if(t.followedBy||t.notFollowedBy)return"";for(t.remember&&t.groupNumber===void 0&&(t.groupNumber=e.push(null)-1),i=t.options?this._randSelect(t.options):t.stack,n="",o=0,f=i.length;o<f;o++)n+=this._gen(i[o],e);return t.remember&&(e[t.groupNumber]=n),n;case Ut.POSITION:return"";case Ut.SET:var l=this._expand(t);return l.length?String.fromCharCode(this._randSelect(l)):"";case Ut.REPETITION:for(r=this.randInt(t.min,t.max===1/0?t.min+this.max:t.max),n="",o=0;o<r;o++)n+=this._gen(t.value,e);return n;case Ut.REFERENCE:return e[t.value-1]||"";case Ut.CHAR:var _=this.ignoreCase&&this._randBool()?this._toOtherCase(t.value):t.value;return String.fromCharCode(_)}}_toOtherCase(t){return t+(97<=t&&t<=122?-32:65<=t&&t<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(t){return t instanceof ue?t.index(this.randInt(0,t.length-1)):t[this.randInt(0,t.length-1)]}_expand(t){if(t.type===Ie.types.CHAR)return new ue(t.value);if(t.type===Ie.types.RANGE)return new ue(t.from,t.to);{let e=new ue;for(let i=0;i<t.set.length;i++){let n=this._expand(t.set[i]);if(e.add(n),this.ignoreCase)for(let r=0;r<n.length;r++){let o=n.index(r),f=this._toOtherCase(o);o!==f&&e.add(f)}}return t.not?this.defaultRange.clone().subtract(e):this.defaultRange.clone().intersect(e)}}randInt(t,e){return t+Math.floor(Math.random()*(1+e-t))}get defaultRange(){return this._range=this._range||new ue(32,126)}set defaultRange(t){this._range=t}static randexp(t,e){var i;return typeof t=="string"&&(t=new RegExp(t,e)),t._randexp===void 0?(i=new pe(t,e),t._randexp=i):(i=t._randexp,i._setDefaults(t)),i.gen()}static sugar(){RegExp.prototype.gen=function(){return pe.randexp(this)}}};const Ln=gi(Dn);var xi={};(function(s){(function(){function t(a,w,c){this.text=a,this.offset=w,this.elements=c}t.prototype.forEach=function(a,w){for(var c=this.elements,y=0,p=c.length;y<p;y++)a.call(w,c[y],y,c)},typeof Symbol<"u"&&Symbol.iterator&&(t.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()});var e=function(a,w,c){t.apply(this,arguments),this.regexp=c[1],this.flags=c[3]};U(e,t);var i=function(a,w,c){t.apply(this,arguments),this.regexp=c[0],this.flags=c[1]};U(i,t);var n=function(a,w,c){t.apply(this,arguments),this.match=c[0],this.alternates=c[1]};U(n,t);var r=function(a,w,c){t.apply(this,arguments),this.match=c[1]};U(r,t);var o=function(a,w,c){t.apply(this,arguments),this.parts=c[1]};U(o,t);var f=function(a,w,c){t.apply(this,arguments),this.content=c[0],this.repeat=c[1]};U(f,t);var l=function(a,w,c){t.apply(this,arguments),this.spec=c[0],this.greedy=c[1]};U(l,t);var _=function(a,w,c){t.apply(this,arguments),this.min=c[1],this.max=c[3]};U(_,t);var u=function(a,w,c){t.apply(this,arguments),this.min=c[1]};U(u,t);var m=function(a,w,c){t.apply(this,arguments),this.exact=c[1]};U(m,t);var O=function(a,w,c){t.apply(this,arguments),this.capture=c[1],this.regexp=c[2]};U(O,t);var L=function(a,w,c){t.apply(this,arguments),this.invert=c[1],this.parts=c[2]};U(L,t);var C=function(a,w,c){t.apply(this,arguments),this.first=c[0],this.charset_range_terminal=c[2],this.last=c[2]};U(C,t);var A=function(a,w,c){t.apply(this,arguments),this.esc=c[1]};U(A,t);var k=function(a,w,c){t.apply(this,arguments),this.code=c[0],this.arg=c[1]};U(k,t);var F=function(a,w,c){t.apply(this,arguments),this.esc=c[1]};U(F,t);var X=function(a,w,c){t.apply(this,arguments),this.code=c[0],this.arg=c[1]};U(X,t);var ot=function(a,w,c){t.apply(this,arguments),this.literal=c[1]};U(ot,t);var it=function(a,w,c){t.apply(this,arguments),this.literal=c[0]};U(it,t);var lt=function(a,w,c){t.apply(this,arguments),this.literal=c[1]};U(lt,t);var vt=function(a,w,c){t.apply(this,arguments),this.literal=c[1]};U(vt,t);var Ot=function(a,w,c){t.apply(this,arguments),this.literal=c[0]};U(Ot,t);var kt=function(a,w,c){t.apply(this,arguments),this.literal=c[1]};U(kt,t);var Q=function(a,w,c){t.apply(this,arguments),this.code=c[0],this.arg=c[1]};U(Q,t);var gt=function(a,w,c){t.apply(this,arguments),this.code=c[0],this.arg=c[1]};U(gt,t);var Ps=function(a,w,c){t.apply(this,arguments),this.code=c[0],this.arg=c[1]};U(Ps,t);var Js=function(a,w,c){t.apply(this,arguments),this.code=c[0],this.arg=c[1]};U(Js,t);var qs=function(a,w,c){t.apply(this,arguments),this.code=c[0],this.arg=c[1]};U(qs,t);var Fs=function(a,w,c){t.apply(this,arguments),this.esc=c[1]};U(Fs,t);var Bs=function(a,w,c){t.apply(this,arguments),this.code=c[0],this.arg=c[1]};U(Bs,t);var h={},Hs={_read_root(){var a=h,w=this._offset;this._cache._root=this._cache._root||{};var c=this._cache._root[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=this._offset,d=new Array(4),b=h,S=null,g=this._offset+1;if(g<=this._inputSize&&(S=this._input.substring(this._offset,g)),S==="/"?(b=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(b=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::root",'"/"'])),b!==h){d[0]=b;var x=h;if(x=this._read_regexp(),x!==h){d[1]=x;var v=h,T=null,E=this._offset+1;if(E<=this._inputSize&&(T=this._input.substring(this._offset,E)),T==="/"?(v=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(v=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::root",'"/"'])),v!==h){d[2]=v;for(var z=h,M=this._offset,R=[],D=null;;){var q=null,$=this._offset+1;if($<=this._inputSize&&(q=this._input.substring(this._offset,$)),q!==null&&/^[yigmu]/.test(q)?(D=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(D=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::root","[yigmu]"])),D!==h)R.push(D);else break}R.length>=0?(z=new t(this._input.substring(M,this._offset),M,R),this._offset=this._offset):z=h,z!==h?d[3]=z:(d=null,this._offset=p)}else d=null,this._offset=p}else d=null,this._offset=p}else d=null,this._offset=p;if(d===null?a=h:(a=new e(this._input.substring(p,this._offset),p,d),this._offset=this._offset),a===h){this._offset=y;var rt=this._offset,tt=new Array(2),ft=h;if(ft=this._read_regexp(),ft!==h){tt[0]=ft;var et=h,nt=this._offset,at=null,At=this._offset+0;At<=this._inputSize&&(at=this._input.substring(this._offset,At)),at===""?(et=new t(this._input.substring(this._offset,this._offset+0),this._offset,[]),this._offset=this._offset+0):(et=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::root",'""'])),et===h&&(et=new t(this._input.substring(nt,nt),nt,[]),this._offset=nt),et!==h?tt[1]=et:(tt=null,this._offset=rt)}else tt=null,this._offset=rt;tt===null?a=h:(a=new i(this._input.substring(rt,this._offset),rt,tt),this._offset=this._offset),a===h&&(this._offset=y)}return a!==h&&Object.assign(a,this._types.Root),this._cache._root[w]=[a,this._offset],a},_read_regexp(){var a=h,w=this._offset;this._cache._regexp=this._cache._regexp||{};var c=this._cache._regexp[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(2),d=h;if(d=this._read_match(),d!==h){p[0]=d;for(var b=h,S=this._offset,g=[],x=null;;){var v=this._offset,T=new Array(2),E=h,z=null,M=this._offset+1;if(M<=this._inputSize&&(z=this._input.substring(this._offset,M)),z==="|"?(E=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(E=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::regexp",'"|"'])),E!==h){T[0]=E;var R=h;R=this._read_match(),R!==h?T[1]=R:(T=null,this._offset=v)}else T=null,this._offset=v;if(T===null?x=h:(x=new r(this._input.substring(v,this._offset),v,T),this._offset=this._offset),x!==h)g.push(x);else break}g.length>=0?(b=new t(this._input.substring(S,this._offset),S,g),this._offset=this._offset):b=h,b!==h?p[1]=b:(p=null,this._offset=y)}else p=null,this._offset=y;return p===null?a=h:(a=new n(this._input.substring(y,this._offset),y,p),this._offset=this._offset),a!==h&&Object.assign(a,this._types.Regexp),this._cache._regexp[w]=[a,this._offset],a},_read_match(){var a=h,w=this._offset;this._cache._match=this._cache._match||{};var c=this._cache._match[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(2),d=h,b=this._offset;if(d=this._read_repeat(),this._offset=b,d===h?(d=new t(this._input.substring(this._offset,this._offset),this._offset,[]),this._offset=this._offset):d=h,d!==h){p[0]=d;for(var S=h,g=this._offset,x=[],v=null;v=this._read_match_fragment(),v!==h;)x.push(v);x.length>=0?(S=new t(this._input.substring(g,this._offset),g,x),this._offset=this._offset):S=h,S!==h?p[1]=S:(p=null,this._offset=y)}else p=null,this._offset=y;return p===null?a=h:(a=new o(this._input.substring(y,this._offset),y,p),this._offset=this._offset),a!==h&&Object.assign(a,this._types.Match),this._cache._match[w]=[a,this._offset],a},_read_match_fragment(){var a=h,w=this._offset;this._cache._match_fragment=this._cache._match_fragment||{};var c=this._cache._match_fragment[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(2),d=h,b=this._offset;if(d=this._read_anchor(),d===h&&(this._offset=b,d=this._read_subexp(),d===h&&(this._offset=b,d=this._read_charset(),d===h&&(this._offset=b,d=this._read_terminal(),d===h&&(this._offset=b)))),d!==h){p[0]=d;var S=h,g=this._offset;S=this._read_repeat(),S===h&&(S=new t(this._input.substring(g,g),g,[]),this._offset=g),S!==h?p[1]=S:(p=null,this._offset=y)}else p=null,this._offset=y;return p===null?a=h:(a=new f(this._input.substring(y,this._offset),y,p),this._offset=this._offset),a!==h&&Object.assign(a,this._types.MatchFragment),this._cache._match_fragment[w]=[a,this._offset],a},_read_repeat(){var a=h,w=this._offset;this._cache._repeat=this._cache._repeat||{};var c=this._cache._repeat[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(2),d=h,b=this._offset;if(d=this._read_repeat_any(),d===h&&(this._offset=b,d=this._read_repeat_required(),d===h&&(this._offset=b,d=this._read_repeat_optional(),d===h&&(this._offset=b,d=this._read_repeat_spec(),d===h&&(this._offset=b)))),d!==h){p[0]=d;var S=h,g=this._offset,x=null,v=this._offset+1;v<=this._inputSize&&(x=this._input.substring(this._offset,v)),x==="?"?(S=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(S=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat",'"?"'])),S===h&&(S=new t(this._input.substring(g,g),g,[]),this._offset=g),S!==h?p[1]=S:(p=null,this._offset=y)}else p=null,this._offset=y;return p===null?a=h:(a=new l(this._input.substring(y,this._offset),y,p),this._offset=this._offset),a!==h&&Object.assign(a,this._types.Repeat),this._cache._repeat[w]=[a,this._offset],a},_read_repeat_any(){var a=h,w=this._offset;this._cache._repeat_any=this._cache._repeat_any||{};var c=this._cache._repeat_any[w];if(c)return this._offset=c[1],c[0];var y=null,p=this._offset+1;return p<=this._inputSize&&(y=this._input.substring(this._offset,p)),y==="*"?(a=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(a=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_any",'"*"'])),a!==h&&Object.assign(a,this._types.RepeatAny),this._cache._repeat_any[w]=[a,this._offset],a},_read_repeat_required(){var a=h,w=this._offset;this._cache._repeat_required=this._cache._repeat_required||{};var c=this._cache._repeat_required[w];if(c)return this._offset=c[1],c[0];var y=null,p=this._offset+1;return p<=this._inputSize&&(y=this._input.substring(this._offset,p)),y==="+"?(a=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(a=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_required",'"+"'])),a!==h&&Object.assign(a,this._types.RepeatRequired),this._cache._repeat_required[w]=[a,this._offset],a},_read_repeat_optional(){var a=h,w=this._offset;this._cache._repeat_optional=this._cache._repeat_optional||{};var c=this._cache._repeat_optional[w];if(c)return this._offset=c[1],c[0];var y=null,p=this._offset+1;return p<=this._inputSize&&(y=this._input.substring(this._offset,p)),y==="?"?(a=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(a=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_optional",'"?"'])),a!==h&&Object.assign(a,this._types.RepeatOptional),this._cache._repeat_optional[w]=[a,this._offset],a},_read_repeat_spec(){var a=h,w=this._offset;this._cache._repeat_spec=this._cache._repeat_spec||{};var c=this._cache._repeat_spec[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=this._offset,d=new Array(5),b=h,S=null,g=this._offset+1;if(g<=this._inputSize&&(S=this._input.substring(this._offset,g)),S==="{"?(b=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(b=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_spec",'"{"'])),b!==h){d[0]=b;for(var x=h,v=this._offset,T=[],E=null;;){var z=null,M=this._offset+1;if(M<=this._inputSize&&(z=this._input.substring(this._offset,M)),z!==null&&/^[0-9]/.test(z)?(E=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(E=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_spec","[0-9]"])),E!==h)T.push(E);else break}if(T.length>=1?(x=new t(this._input.substring(v,this._offset),v,T),this._offset=this._offset):x=h,x!==h){d[1]=x;var R=h,D=null,q=this._offset+1;if(q<=this._inputSize&&(D=this._input.substring(this._offset,q)),D===","?(R=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(R=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_spec",'","'])),R!==h){d[2]=R;for(var $=h,rt=this._offset,tt=[],ft=null;;){var et=null,nt=this._offset+1;if(nt<=this._inputSize&&(et=this._input.substring(this._offset,nt)),et!==null&&/^[0-9]/.test(et)?(ft=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(ft=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_spec","[0-9]"])),ft!==h)tt.push(ft);else break}if(tt.length>=1?($=new t(this._input.substring(rt,this._offset),rt,tt),this._offset=this._offset):$=h,$!==h){d[3]=$;var at=h,At=null,It=this._offset+1;It<=this._inputSize&&(At=this._input.substring(this._offset,It)),At==="}"?(at=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(at=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_spec",'"}"'])),at!==h?d[4]=at:(d=null,this._offset=p)}else d=null,this._offset=p}else d=null,this._offset=p}else d=null,this._offset=p}else d=null,this._offset=p;if(d===null?a=h:(a=new _(this._input.substring(p,this._offset),p,d),this._offset=this._offset),a===h){this._offset=y;var _t=this._offset,St=new Array(3),Ft=h,Gs=null,Ys=this._offset+1;if(Ys<=this._inputSize&&(Gs=this._input.substring(this._offset,Ys)),Gs==="{"?(Ft=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(Ft=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_spec",'"{"'])),Ft!==h){St[0]=Ft;for(var Ce=h,Ws=this._offset,Ye=[],Ee=null;;){var We=null,Vs=this._offset+1;if(Vs<=this._inputSize&&(We=this._input.substring(this._offset,Vs)),We!==null&&/^[0-9]/.test(We)?(Ee=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(Ee=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_spec","[0-9]"])),Ee!==h)Ye.push(Ee);else break}if(Ye.length>=1?(Ce=new t(this._input.substring(Ws,this._offset),Ws,Ye),this._offset=this._offset):Ce=h,Ce!==h){St[1]=Ce;var Ne=h,Xs=null,Qs=this._offset+2;Qs<=this._inputSize&&(Xs=this._input.substring(this._offset,Qs)),Xs===",}"?(Ne=new t(this._input.substring(this._offset,this._offset+2),this._offset,[]),this._offset=this._offset+2):(Ne=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_spec",'",}"'])),Ne!==h?St[2]=Ne:(St=null,this._offset=_t)}else St=null,this._offset=_t}else St=null,this._offset=_t;if(St===null?a=h:(a=new u(this._input.substring(_t,this._offset),_t,St),this._offset=this._offset),a===h){this._offset=y;var ae=this._offset,jt=new Array(3),Oe=h,Zs=null,Ks=this._offset+1;if(Ks<=this._inputSize&&(Zs=this._input.substring(this._offset,Ks)),Zs==="{"?(Oe=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(Oe=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_spec",'"{"'])),Oe!==h){jt[0]=Oe;for(var ke=h,ti=this._offset,Ve=[],ze=null;;){var Xe=null,ei=this._offset+1;if(ei<=this._inputSize&&(Xe=this._input.substring(this._offset,ei)),Xe!==null&&/^[0-9]/.test(Xe)?(ze=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(ze=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_spec","[0-9]"])),ze!==h)Ve.push(ze);else break}if(Ve.length>=1?(ke=new t(this._input.substring(ti,this._offset),ti,Ve),this._offset=this._offset):ke=h,ke!==h){jt[1]=ke;var Me=h,si=null,ii=this._offset+1;ii<=this._inputSize&&(si=this._input.substring(this._offset,ii)),si==="}"?(Me=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(Me=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::repeat_spec",'"}"'])),Me!==h?jt[2]=Me:(jt=null,this._offset=ae)}else jt=null,this._offset=ae}else jt=null,this._offset=ae;jt===null?a=h:(a=new m(this._input.substring(ae,this._offset),ae,jt),this._offset=this._offset),a===h&&(this._offset=y)}}return a!==h&&Object.assign(a,this._types.RepeatSpec),this._cache._repeat_spec[w]=[a,this._offset],a},_read_anchor(){var a=h,w=this._offset;this._cache._anchor=this._cache._anchor||{};var c=this._cache._anchor[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=null,d=this._offset+1;if(d<=this._inputSize&&(p=this._input.substring(this._offset,d)),p==="^"?(a=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(a=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::anchor",'"^"'])),a===h){this._offset=y;var b=null,S=this._offset+1;S<=this._inputSize&&(b=this._input.substring(this._offset,S)),b==="$"?(a=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(a=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::anchor",'"$"'])),a===h&&(this._offset=y)}return a!==h&&Object.assign(a,this._types.Anchor),this._cache._anchor[w]=[a,this._offset],a},_read_subexp(){var a=h,w=this._offset;this._cache._subexp=this._cache._subexp||{};var c=this._cache._subexp[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(4),d=h,b=null,S=this._offset+1;if(S<=this._inputSize&&(b=this._input.substring(this._offset,S)),b==="("?(d=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(d=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::subexp",'"("'])),d!==h){p[0]=d;var g=h,x=this._offset,v=this._offset,T=null,E=this._offset+2;if(E<=this._inputSize&&(T=this._input.substring(this._offset,E)),T==="?:"?(g=new t(this._input.substring(this._offset,this._offset+2),this._offset,[]),this._offset=this._offset+2):(g=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::subexp",'"?:"'])),g===h){this._offset=v;var z=null,M=this._offset+2;if(M<=this._inputSize&&(z=this._input.substring(this._offset,M)),z==="?="?(g=new t(this._input.substring(this._offset,this._offset+2),this._offset,[]),this._offset=this._offset+2):(g=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::subexp",'"?="'])),g===h){this._offset=v;var R=null,D=this._offset+2;D<=this._inputSize&&(R=this._input.substring(this._offset,D)),R==="?!"?(g=new t(this._input.substring(this._offset,this._offset+2),this._offset,[]),this._offset=this._offset+2):(g=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::subexp",'"?!"'])),g===h&&(this._offset=v)}}if(g===h&&(g=new t(this._input.substring(x,x),x,[]),this._offset=x),g!==h){p[1]=g;var q=h;if(q=this._read_regexp(),q!==h){p[2]=q;var $=h,rt=null,tt=this._offset+1;tt<=this._inputSize&&(rt=this._input.substring(this._offset,tt)),rt===")"?($=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):($=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::subexp",'")"'])),$!==h?p[3]=$:(p=null,this._offset=y)}else p=null,this._offset=y}else p=null,this._offset=y}else p=null,this._offset=y;return p===null?a=h:(a=new O(this._input.substring(y,this._offset),y,p),this._offset=this._offset),a!==h&&Object.assign(a,this._types.Subexp),this._cache._subexp[w]=[a,this._offset],a},_read_charset(){var a=h,w=this._offset;this._cache._charset=this._cache._charset||{};var c=this._cache._charset[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(4),d=h,b=null,S=this._offset+1;if(S<=this._inputSize&&(b=this._input.substring(this._offset,S)),b==="["?(d=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(d=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset",'"["'])),d!==h){p[0]=d;var g=h,x=this._offset,v=null,T=this._offset+1;if(T<=this._inputSize&&(v=this._input.substring(this._offset,T)),v==="^"?(g=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(g=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset",'"^"'])),g===h&&(g=new t(this._input.substring(x,x),x,[]),this._offset=x),g!==h){p[1]=g;for(var E=h,z=this._offset,M=[],R=null;;){var D=this._offset;if(R=this._read_charset_range(),R===h&&(this._offset=D,R=this._read_charset_terminal(),R===h&&(this._offset=D)),R!==h)M.push(R);else break}if(M.length>=0?(E=new t(this._input.substring(z,this._offset),z,M),this._offset=this._offset):E=h,E!==h){p[2]=E;var q=h,$=null,rt=this._offset+1;rt<=this._inputSize&&($=this._input.substring(this._offset,rt)),$==="]"?(q=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(q=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset",'"]"'])),q!==h?p[3]=q:(p=null,this._offset=y)}else p=null,this._offset=y}else p=null,this._offset=y}else p=null,this._offset=y;return p===null?a=h:(a=new L(this._input.substring(y,this._offset),y,p),this._offset=this._offset),a!==h&&Object.assign(a,this._types.Charset),this._cache._charset[w]=[a,this._offset],a},_read_charset_range(){var a=h,w=this._offset;this._cache._charset_range=this._cache._charset_range||{};var c=this._cache._charset_range[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(3),d=h;if(d=this._read_charset_range_terminal(),d!==h){p[0]=d;var b=h,S=null,g=this._offset+1;if(g<=this._inputSize&&(S=this._input.substring(this._offset,g)),S==="-"?(b=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(b=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset_range",'"-"'])),b!==h){p[1]=b;var x=h;x=this._read_charset_range_terminal(),x!==h?p[2]=x:(p=null,this._offset=y)}else p=null,this._offset=y}else p=null,this._offset=y;return p===null?a=h:(a=new C(this._input.substring(y,this._offset),y,p),this._offset=this._offset),a!==h&&Object.assign(a,this._types.CharsetRange),this._cache._charset_range[w]=[a,this._offset],a},_read_charset_range_terminal(){var a=h,w=this._offset;this._cache._charset_range_terminal=this._cache._charset_range_terminal||{};var c=this._cache._charset_range_terminal[w];if(c)return this._offset=c[1],c[0];var y=this._offset;return a=this._read_charset_range_escape(),a!==h&&Object.assign(a,this._types.CharsetEscape),a===h&&(this._offset=y,a=this._read_charset_literal(),a!==h&&Object.assign(a,this._types.Literal),a===h&&(this._offset=y)),this._cache._charset_range_terminal[w]=[a,this._offset],a},_read_charset_terminal(){var a=h,w=this._offset;this._cache._charset_terminal=this._cache._charset_terminal||{};var c=this._cache._charset_terminal[w];if(c)return this._offset=c[1],c[0];var y=this._offset;return a=this._read_charset_escape(),a!==h&&Object.assign(a,this._types.CharsetEscape),a===h&&(this._offset=y,a=this._read_charset_literal(),a!==h&&Object.assign(a,this._types.Literal),a===h&&(this._offset=y)),this._cache._charset_terminal[w]=[a,this._offset],a},_read_charset_escape(){var a=h,w=this._offset;this._cache._charset_escape=this._cache._charset_escape||{};var c=this._cache._charset_escape[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(2),d=h,b=null,S=this._offset+1;if(S<=this._inputSize&&(b=this._input.substring(this._offset,S)),b==="\\"?(d=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(d=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset_escape",'"\\\\"'])),d!==h){p[0]=d;var g=h,x=this._offset,v=this._offset,T=new Array(2),E=h,z=null,M=this._offset+1;if(M<=this._inputSize&&(z=this._input.substring(this._offset,M)),z!==null&&/^[bdDfnrsStvwW]/.test(z)?(E=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(E=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset_escape","[bdDfnrsStvwW]"])),E!==h){T[0]=E;var R=h,D=this._offset,q=null,$=this._offset+0;$<=this._inputSize&&(q=this._input.substring(this._offset,$)),q===""?(R=new t(this._input.substring(this._offset,this._offset+0),this._offset,[]),this._offset=this._offset+0):(R=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset_escape",'""'])),R===h&&(R=new t(this._input.substring(D,D),D,[]),this._offset=D),R!==h?T[1]=R:(T=null,this._offset=v)}else T=null,this._offset=v;T===null?g=h:(g=new k(this._input.substring(v,this._offset),v,T),this._offset=this._offset),g===h&&(this._offset=x,g=this._read_control_escape(),g===h&&(this._offset=x,g=this._read_octal_escape(),g===h&&(this._offset=x,g=this._read_hex_escape(),g===h&&(this._offset=x,g=this._read_unicode_escape(),g===h&&(this._offset=x,g=this._read_null_escape(),g===h&&(this._offset=x)))))),g!==h?p[1]=g:(p=null,this._offset=y)}else p=null,this._offset=y;return p===null?a=h:(a=new A(this._input.substring(y,this._offset),y,p),this._offset=this._offset),this._cache._charset_escape[w]=[a,this._offset],a},_read_charset_range_escape(){var a=h,w=this._offset;this._cache._charset_range_escape=this._cache._charset_range_escape||{};var c=this._cache._charset_range_escape[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(2),d=h,b=null,S=this._offset+1;if(S<=this._inputSize&&(b=this._input.substring(this._offset,S)),b==="\\"?(d=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(d=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset_range_escape",'"\\\\"'])),d!==h){p[0]=d;var g=h,x=this._offset,v=this._offset,T=new Array(2),E=h,z=null,M=this._offset+1;if(M<=this._inputSize&&(z=this._input.substring(this._offset,M)),z!==null&&/^[bfnrtv]/.test(z)?(E=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(E=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset_range_escape","[bfnrtv]"])),E!==h){T[0]=E;var R=h,D=this._offset,q=null,$=this._offset+0;$<=this._inputSize&&(q=this._input.substring(this._offset,$)),q===""?(R=new t(this._input.substring(this._offset,this._offset+0),this._offset,[]),this._offset=this._offset+0):(R=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset_range_escape",'""'])),R===h&&(R=new t(this._input.substring(D,D),D,[]),this._offset=D),R!==h?T[1]=R:(T=null,this._offset=v)}else T=null,this._offset=v;T===null?g=h:(g=new X(this._input.substring(v,this._offset),v,T),this._offset=this._offset),g===h&&(this._offset=x,g=this._read_control_escape(),g===h&&(this._offset=x,g=this._read_octal_escape(),g===h&&(this._offset=x,g=this._read_hex_escape(),g===h&&(this._offset=x,g=this._read_unicode_escape(),g===h&&(this._offset=x,g=this._read_null_escape(),g===h&&(this._offset=x)))))),g!==h?p[1]=g:(p=null,this._offset=y)}else p=null,this._offset=y;return p===null?a=h:(a=new F(this._input.substring(y,this._offset),y,p),this._offset=this._offset),this._cache._charset_range_escape[w]=[a,this._offset],a},_read_charset_literal(){var a=h,w=this._offset;this._cache._charset_literal=this._cache._charset_literal||{};var c=this._cache._charset_literal[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=this._offset,d=new Array(2),b=h,S=this._offset,g=null,x=this._offset+0;if(x<=this._inputSize&&(g=this._input.substring(this._offset,x)),g===""?(b=new t(this._input.substring(this._offset,this._offset+0),this._offset,[]),this._offset=this._offset+0):(b=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset_literal",'""'])),b===h&&(b=new t(this._input.substring(S,S),S,[]),this._offset=S),b!==h){d[0]=b;var v=h,T=null,E=this._offset+1;E<=this._inputSize&&(T=this._input.substring(this._offset,E)),T!==null&&/^[^\\\]]/.test(T)?(v=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(v=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset_literal","[^\\\\\\]]"])),v!==h?d[1]=v:(d=null,this._offset=p)}else d=null,this._offset=p;if(d===null?a=h:(a=new ot(this._input.substring(p,this._offset),p,d),this._offset=this._offset),a===h){this._offset=y;var z=this._offset,M=new Array(2),R=h,D=null,q=this._offset+1;if(q<=this._inputSize&&(D=this._input.substring(this._offset,q)),D==="\\"?(R=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(R=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset_literal",'"\\\\"'])),R!==h){M[0]=R;var $=h,rt=this._offset,tt=null,ft=this._offset+1;ft<=this._inputSize&&(tt=this._input.substring(this._offset,ft)),tt==="c"?($=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):($=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset_literal",'"c"'])),this._offset=rt,$!==h?($=new t(this._input.substring(this._offset,this._offset),this._offset,[]),this._offset=this._offset):$=h,$!==h?M[1]=$:(M=null,this._offset=z)}else M=null,this._offset=z;if(M===null?a=h:(a=new it(this._input.substring(z,this._offset),z,M),this._offset=this._offset),a===h){this._offset=y;var et=this._offset,nt=new Array(2),at=h,At=null,It=this._offset+1;if(It<=this._inputSize&&(At=this._input.substring(this._offset,It)),At==="\\"?(at=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(at=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset_literal",'"\\\\"'])),at!==h){nt[0]=at;var _t=h,St=null,Ft=this._offset+1;Ft<=this._inputSize&&(St=this._input.substring(this._offset,Ft)),St!==null&&/^[^bdDfnrsStvwW]/.test(St)?(_t=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(_t=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::charset_literal","[^bdDfnrsStvwW]"])),_t!==h?nt[1]=_t:(nt=null,this._offset=et)}else nt=null,this._offset=et;nt===null?a=h:(a=new lt(this._input.substring(et,this._offset),et,nt),this._offset=this._offset),a===h&&(this._offset=y)}}return this._cache._charset_literal[w]=[a,this._offset],a},_read_terminal(){var a=h,w=this._offset;this._cache._terminal=this._cache._terminal||{};var c=this._cache._terminal[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=null,d=this._offset+1;return d<=this._inputSize&&(p=this._input.substring(this._offset,d)),p==="."?(a=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(a=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::terminal",'"."'])),a!==h&&Object.assign(a,this._types.AnyCharacter),a===h&&(this._offset=y,a=this._read_escape(),a!==h&&Object.assign(a,this._types.Escape),a===h&&(this._offset=y,a=this._read_literal(),a!==h&&Object.assign(a,this._types.Literal),a===h&&(this._offset=y))),this._cache._terminal[w]=[a,this._offset],a},_read_literal(){var a=h,w=this._offset;this._cache._literal=this._cache._literal||{};var c=this._cache._literal[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=this._offset,d=new Array(2),b=h,S=this._offset,g=null,x=this._offset+0;if(x<=this._inputSize&&(g=this._input.substring(this._offset,x)),g===""?(b=new t(this._input.substring(this._offset,this._offset+0),this._offset,[]),this._offset=this._offset+0):(b=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::literal",'""'])),b===h&&(b=new t(this._input.substring(S,S),S,[]),this._offset=S),b!==h){d[0]=b;var v=h,T=null,E=this._offset+1;E<=this._inputSize&&(T=this._input.substring(this._offset,E)),T!==null&&/^[^|\\/.\[\(\)?+*$^]/.test(T)?(v=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(v=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::literal","[^|\\\\/.\\[\\(\\)?+*$^]"])),v!==h?d[1]=v:(d=null,this._offset=p)}else d=null,this._offset=p;if(d===null?a=h:(a=new vt(this._input.substring(p,this._offset),p,d),this._offset=this._offset),a===h){this._offset=y;var z=this._offset,M=new Array(2),R=h,D=null,q=this._offset+1;if(q<=this._inputSize&&(D=this._input.substring(this._offset,q)),D==="\\"?(R=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(R=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::literal",'"\\\\"'])),R!==h){M[0]=R;var $=h,rt=this._offset,tt=null,ft=this._offset+1;ft<=this._inputSize&&(tt=this._input.substring(this._offset,ft)),tt==="c"?($=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):($=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::literal",'"c"'])),this._offset=rt,$!==h?($=new t(this._input.substring(this._offset,this._offset),this._offset,[]),this._offset=this._offset):$=h,$!==h?M[1]=$:(M=null,this._offset=z)}else M=null,this._offset=z;if(M===null?a=h:(a=new Ot(this._input.substring(z,this._offset),z,M),this._offset=this._offset),a===h){this._offset=y;var et=this._offset,nt=new Array(2),at=h,At=null,It=this._offset+1;if(It<=this._inputSize&&(At=this._input.substring(this._offset,It)),At==="\\"?(at=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(at=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::literal",'"\\\\"'])),at!==h){nt[0]=at;var _t=h;this._offset<this._inputSize?(_t=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(_t=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::literal","<any char>"])),_t!==h?nt[1]=_t:(nt=null,this._offset=et)}else nt=null,this._offset=et;nt===null?a=h:(a=new kt(this._input.substring(et,this._offset),et,nt),this._offset=this._offset),a===h&&(this._offset=y)}}return this._cache._literal[w]=[a,this._offset],a},_read_control_escape(){var a=h,w=this._offset;this._cache._control_escape=this._cache._control_escape||{};var c=this._cache._control_escape[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(2),d=h,b=null,S=this._offset+1;if(S<=this._inputSize&&(b=this._input.substring(this._offset,S)),b==="c"?(d=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(d=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::control_escape",'"c"'])),d!==h){p[0]=d;var g=h,x=null,v=this._offset+1;v<=this._inputSize&&(x=this._input.substring(this._offset,v)),x!==null&&/^[a-zA-Z]/.test(x)?(g=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(g=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::control_escape","[a-zA-Z]"])),g!==h?p[1]=g:(p=null,this._offset=y)}else p=null,this._offset=y;return p===null?a=h:(a=new Q(this._input.substring(y,this._offset),y,p),this._offset=this._offset),this._cache._control_escape[w]=[a,this._offset],a},_read_octal_escape(){var a=h,w=this._offset;this._cache._octal_escape=this._cache._octal_escape||{};var c=this._cache._octal_escape[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(2),d=h,b=null,S=this._offset+1;if(S<=this._inputSize&&(b=this._input.substring(this._offset,S)),b==="0"?(d=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(d=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::octal_escape",'"0"'])),d!==h){p[0]=d;for(var g=h,x=this._offset,v=[],T=null;;){var E=null,z=this._offset+1;if(z<=this._inputSize&&(E=this._input.substring(this._offset,z)),E!==null&&/^[0-7]/.test(E)?(T=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(T=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::octal_escape","[0-7]"])),T!==h)v.push(T);else break}v.length>=1?(g=new t(this._input.substring(x,this._offset),x,v),this._offset=this._offset):g=h,g!==h?p[1]=g:(p=null,this._offset=y)}else p=null,this._offset=y;return p===null?a=h:(a=new gt(this._input.substring(y,this._offset),y,p),this._offset=this._offset),this._cache._octal_escape[w]=[a,this._offset],a},_read_hex_escape(){var a=h,w=this._offset;this._cache._hex_escape=this._cache._hex_escape||{};var c=this._cache._hex_escape[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(2),d=h,b=null,S=this._offset+1;if(S<=this._inputSize&&(b=this._input.substring(this._offset,S)),b==="x"?(d=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(d=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::hex_escape",'"x"'])),d!==h){p[0]=d;var g=h,x=this._offset,v=new Array(2),T=h,E=null,z=this._offset+1;if(z<=this._inputSize&&(E=this._input.substring(this._offset,z)),E!==null&&/^[0-9a-fA-F]/.test(E)?(T=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(T=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::hex_escape","[0-9a-fA-F]"])),T!==h){v[0]=T;var M=h,R=null,D=this._offset+1;D<=this._inputSize&&(R=this._input.substring(this._offset,D)),R!==null&&/^[0-9a-fA-F]/.test(R)?(M=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(M=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::hex_escape","[0-9a-fA-F]"])),M!==h?v[1]=M:(v=null,this._offset=x)}else v=null,this._offset=x;v===null?g=h:(g=new t(this._input.substring(x,this._offset),x,v),this._offset=this._offset),g!==h?p[1]=g:(p=null,this._offset=y)}else p=null,this._offset=y;return p===null?a=h:(a=new Ps(this._input.substring(y,this._offset),y,p),this._offset=this._offset),this._cache._hex_escape[w]=[a,this._offset],a},_read_unicode_escape(){var a=h,w=this._offset;this._cache._unicode_escape=this._cache._unicode_escape||{};var c=this._cache._unicode_escape[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(2),d=h,b=null,S=this._offset+1;if(S<=this._inputSize&&(b=this._input.substring(this._offset,S)),b==="u"?(d=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(d=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::unicode_escape",'"u"'])),d!==h){p[0]=d;var g=h,x=this._offset,v=new Array(4),T=h,E=null,z=this._offset+1;if(z<=this._inputSize&&(E=this._input.substring(this._offset,z)),E!==null&&/^[0-9a-fA-F]/.test(E)?(T=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(T=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::unicode_escape","[0-9a-fA-F]"])),T!==h){v[0]=T;var M=h,R=null,D=this._offset+1;if(D<=this._inputSize&&(R=this._input.substring(this._offset,D)),R!==null&&/^[0-9a-fA-F]/.test(R)?(M=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(M=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::unicode_escape","[0-9a-fA-F]"])),M!==h){v[1]=M;var q=h,$=null,rt=this._offset+1;if(rt<=this._inputSize&&($=this._input.substring(this._offset,rt)),$!==null&&/^[0-9a-fA-F]/.test($)?(q=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(q=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::unicode_escape","[0-9a-fA-F]"])),q!==h){v[2]=q;var tt=h,ft=null,et=this._offset+1;et<=this._inputSize&&(ft=this._input.substring(this._offset,et)),ft!==null&&/^[0-9a-fA-F]/.test(ft)?(tt=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(tt=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::unicode_escape","[0-9a-fA-F]"])),tt!==h?v[3]=tt:(v=null,this._offset=x)}else v=null,this._offset=x}else v=null,this._offset=x}else v=null,this._offset=x;v===null?g=h:(g=new t(this._input.substring(x,this._offset),x,v),this._offset=this._offset),g!==h?p[1]=g:(p=null,this._offset=y)}else p=null,this._offset=y;return p===null?a=h:(a=new Js(this._input.substring(y,this._offset),y,p),this._offset=this._offset),this._cache._unicode_escape[w]=[a,this._offset],a},_read_null_escape(){var a=h,w=this._offset;this._cache._null_escape=this._cache._null_escape||{};var c=this._cache._null_escape[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(2),d=h,b=null,S=this._offset+1;if(S<=this._inputSize&&(b=this._input.substring(this._offset,S)),b==="0"?(d=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(d=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::null_escape",'"0"'])),d!==h){p[0]=d;var g=h,x=this._offset,v=null,T=this._offset+0;T<=this._inputSize&&(v=this._input.substring(this._offset,T)),v===""?(g=new t(this._input.substring(this._offset,this._offset+0),this._offset,[]),this._offset=this._offset+0):(g=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::null_escape",'""'])),g===h&&(g=new t(this._input.substring(x,x),x,[]),this._offset=x),g!==h?p[1]=g:(p=null,this._offset=y)}else p=null,this._offset=y;return p===null?a=h:(a=new qs(this._input.substring(y,this._offset),y,p),this._offset=this._offset),this._cache._null_escape[w]=[a,this._offset],a},_read_escape(){var a=h,w=this._offset;this._cache._escape=this._cache._escape||{};var c=this._cache._escape[w];if(c)return this._offset=c[1],c[0];var y=this._offset,p=new Array(2),d=h,b=null,S=this._offset+1;if(S<=this._inputSize&&(b=this._input.substring(this._offset,S)),b==="\\"?(d=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(d=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::escape",'"\\\\"'])),d!==h){p[0]=d;var g=h,x=this._offset,v=this._offset,T=new Array(2),E=h,z=null,M=this._offset+1;if(M<=this._inputSize&&(z=this._input.substring(this._offset,M)),z!==null&&/^[bBdDfnrsStvwW1-9]/.test(z)?(E=new t(this._input.substring(this._offset,this._offset+1),this._offset,[]),this._offset=this._offset+1):(E=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::escape","[bBdDfnrsStvwW1-9]"])),E!==h){T[0]=E;var R=h,D=this._offset,q=null,$=this._offset+0;$<=this._inputSize&&(q=this._input.substring(this._offset,$)),q===""?(R=new t(this._input.substring(this._offset,this._offset+0),this._offset,[]),this._offset=this._offset+0):(R=h,this._offset>this._failure&&(this._failure=this._offset,this._expected=[]),this._offset===this._failure&&this._expected.push(["JavaScriptRegexp::escape",'""'])),R===h&&(R=new t(this._input.substring(D,D),D,[]),this._offset=D),R!==h?T[1]=R:(T=null,this._offset=v)}else T=null,this._offset=v;T===null?g=h:(g=new Bs(this._input.substring(v,this._offset),v,T),this._offset=this._offset),g===h&&(this._offset=x,g=this._read_control_escape(),g===h&&(this._offset=x,g=this._read_octal_escape(),g===h&&(this._offset=x,g=this._read_hex_escape(),g===h&&(this._offset=x,g=this._read_unicode_escape(),g===h&&(this._offset=x,g=this._read_null_escape(),g===h&&(this._offset=x)))))),g!==h?p[1]=g:(p=null,this._offset=y)}else p=null,this._offset=y;return p===null?a=h:(a=new Fs(this._input.substring(y,this._offset),y,p),this._offset=this._offset),this._cache._escape[w]=[a,this._offset],a}},Ae=function(a,w,c){this._input=a,this._inputSize=a.length,this._actions=w,this._types=c,this._offset=0,this._cache={},this._failure=0,this._expected=[]};Ae.prototype.parse=function(){var a=this._read_root();if(a!==h&&this._offset===this._inputSize)return a;throw this._expected.length===0&&(this._failure=this._offset,this._expected.push(["JavaScriptRegexp","<EOF>"])),this.constructor.lastError={offset:this._offset,expected:this._expected},new SyntaxError(hn(this._input,this._failure,this._expected))},Object.assign(Ae.prototype,Hs);function rn(a,w){w=w||{};var c=new Ae(a,w.actions,w.types);return c.parse()}function hn(a,w,c){for(var y=a.split(/\n/g),p=0,d=0;d<=w;)d+=y[p].length+1,p+=1;for(var b=y[p-1],S="Line "+p+`: expected one of:
|
|
2
|
+
|
|
3
|
+
`,g=0;g<c.length;g++)S+=" - "+c[g][1]+" from "+c[g][0]+`
|
|
4
|
+
`;for(var x=p.toString();x.length<6;)x=" "+x;for(S+=`
|
|
5
|
+
`+x+" | "+b+`
|
|
6
|
+
`,d-=b.length+10;d<w;)S+=" ",d+=1;return S+"^"}function U(a,w){function c(){}c.prototype=w.prototype,a.prototype=new c,a.prototype.constructor=a}var Us={Grammar:Hs,Parser:Ae,parse:rn};if(typeof xn=="function")Object.assign(s,Us);else{var on=typeof this>"u"?window:this;on.JavaScriptRegexp=Us}})()})(xi);const Pn=gi(xi),fs={},bi=[];function j(s,t){if(Array.isArray(s)){for(const e of s)j(e,t);return}if(typeof s=="object"){for(const e in s)j(e,s[e]);return}vi(Object.getOwnPropertyNames(t)),fs[s]=Object.assign(fs[s]||{},t)}function mt(s){return fs[s]||{}}function Jn(){return[...new Set(bi)]}function vi(s){bi.push(...s)}function vs(s,t){let e;const i=s.length,n=[];for(e=0;e<i;e++)n.push(t(s[e]));return n}function qn(s,t){let e;const i=s.length,n=[];for(e=0;e<i;e++)t(s[e])&&n.push(s[e]);return n}function es(s){return s%360*Math.PI/180}function Fn(s){return s.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()})}function Si(s){return s.charAt(0).toUpperCase()+s.slice(1)}function he(s,t,e,i){return(t==null||e==null)&&(i=i||s.bbox(),t==null?t=i.width/i.height*e:e==null&&(e=i.height/i.width*t)),{width:t,height:e}}function as(s,t){const e=s.origin;let i=s.ox!=null?s.ox:s.originX!=null?s.originX:"center",n=s.oy!=null?s.oy:s.originY!=null?s.originY:"center";e!=null&&([i,n]=Array.isArray(e)?e:typeof e=="object"?[e.x,e.y]:[e,e]);const r=typeof i=="string",o=typeof n=="string";if(r||o){const{height:f,width:l,x:_,y:u}=t.bbox();r&&(i=i.includes("left")?_:i.includes("right")?_+l:_+l/2),o&&(n=n.includes("top")?u:n.includes("bottom")?u+f:u+f/2)}return[i,n]}const Bn=new Set(["desc","metadata","title"]),us=s=>Bn.has(s.nodeName),Ti=(s,t,e={})=>{const i={...t};for(const n in i)i[n].valueOf()===e[n]&&delete i[n];Object.keys(i).length?s.node.setAttribute("data-svgjs",JSON.stringify(i)):(s.node.removeAttribute("data-svgjs"),s.node.removeAttribute("svgjs:data"))},Ss="http://www.w3.org/2000/svg",Hn="http://www.w3.org/1999/xhtml",ss="http://www.w3.org/2000/xmlns/",xe="http://www.w3.org/1999/xlink",B={window:typeof window>"u"?null:window,document:typeof document>"u"?null:document};function Un(){return B.window}class Ts{}const Vt={},Rs="___SYMBOL___ROOT___";function ne(s,t=Ss){return B.document.createElementNS(t,s)}function dt(s,t=!1){if(s instanceof Ts)return s;if(typeof s=="object")return is(s);if(s==null)return new Vt[Rs];if(typeof s=="string"&&s.charAt(0)!=="<")return is(B.document.querySelector(s));const e=t?B.document.createElement("div"):ne("svg");return e.innerHTML=s,s=is(e.firstChild),e.removeChild(e.firstChild),s}function K(s,t){return t&&(t instanceof B.window.Node||t.ownerDocument&&t instanceof t.ownerDocument.defaultView.Node)?t:ne(s)}function Rt(s){if(!s)return null;if(s.instance instanceof Ts)return s.instance;if(s.nodeName==="#document-fragment")return new Vt.Fragment(s);let t=Si(s.nodeName||"Dom");return t==="LinearGradient"||t==="RadialGradient"?t="Gradient":Vt[t]||(t="Dom"),new Vt[t](s)}let is=Rt;function H(s,t=s.name,e=!1){return Vt[t]=s,e&&(Vt[Rs]=s),vi(Object.getOwnPropertyNames(s.prototype)),s}function Gn(s){return Vt[s]}let Yn=1e3;function Ri(s){return"Svgjs"+Si(s)+Yn++}function Ai(s){for(let t=s.children.length-1;t>=0;t--)Ai(s.children[t]);return s.id&&(s.id=Ri(s.nodeName)),s}function J(s,t){let e,i;for(s=Array.isArray(s)?s:[s],i=s.length-1;i>=0;i--)for(e in t)s[i].prototype[e]=t[e]}function Z(s){return function(...t){const e=t[t.length-1];return e&&e.constructor===Object&&!(e instanceof Array)?s.apply(this,t.slice(0,-1)).attr(e):s.apply(this,t)}}function Wn(){return this.parent().children()}function Vn(){return this.parent().index(this)}function Xn(){return this.siblings()[this.position()+1]}function Qn(){return this.siblings()[this.position()-1]}function Zn(){const s=this.position();return this.parent().add(this.remove(),s+1),this}function Kn(){const s=this.position();return this.parent().add(this.remove(),s?s-1:0),this}function tr(){return this.parent().add(this.remove()),this}function er(){return this.parent().add(this.remove(),0),this}function sr(s){s=dt(s),s.remove();const t=this.position();return this.parent().add(s,t),this}function ir(s){s=dt(s),s.remove();const t=this.position();return this.parent().add(s,t+1),this}function nr(s){return s=dt(s),s.before(this),this}function rr(s){return s=dt(s),s.after(this),this}j("Dom",{siblings:Wn,position:Vn,next:Xn,prev:Qn,forward:Zn,backward:Kn,front:tr,back:er,before:sr,after:ir,insertBefore:nr,insertAfter:rr});const Ci=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hr=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,or=/rgb\((\d+),(\d+),(\d+)\)/,fr=/(#[a-z_][a-z0-9\-_]*)/i,ar=/\)\s*,?\s*/,ur=/\s/g,fi=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,ai=/^rgb\(/,ui=/^(\s+)?$/,li=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,lr=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,$t=/[\s,]+/,As=/[MLHVCSQTAZ]/i;function cr(){const s=this.attr("class");return s==null?[]:s.trim().split($t)}function _r(s){return this.classes().indexOf(s)!==-1}function pr(s){if(!this.hasClass(s)){const t=this.classes();t.push(s),this.attr("class",t.join(" "))}return this}function dr(s){return this.hasClass(s)&&this.attr("class",this.classes().filter(function(t){return t!==s}).join(" ")),this}function gr(s){return this.hasClass(s)?this.removeClass(s):this.addClass(s)}j("Dom",{classes:cr,hasClass:_r,addClass:pr,removeClass:dr,toggleClass:gr});function mr(s,t){const e={};if(arguments.length===0)return this.node.style.cssText.split(/\s*;\s*/).filter(function(i){return!!i.length}).forEach(function(i){const n=i.split(/\s*:\s*/);e[n[0]]=n[1]}),e;if(arguments.length<2){if(Array.isArray(s)){for(const i of s){const n=i;e[i]=this.node.style.getPropertyValue(n)}return e}if(typeof s=="string")return this.node.style.getPropertyValue(s);if(typeof s=="object")for(const i in s)this.node.style.setProperty(i,s[i]==null||ui.test(s[i])?"":s[i])}return arguments.length===2&&this.node.style.setProperty(s,t==null||ui.test(t)?"":t),this}function yr(){return this.css("display","")}function wr(){return this.css("display","none")}function xr(){return this.css("display")!=="none"}j("Dom",{css:mr,show:yr,hide:wr,visible:xr});function br(s,t,e){if(s==null)return this.data(vs(qn(this.node.attributes,i=>i.nodeName.indexOf("data-")===0),i=>i.nodeName.slice(5)));if(s instanceof Array){const i={};for(const n of s)i[n]=this.data(n);return i}else if(typeof s=="object")for(t in s)this.data(t,s[t]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+s))}catch{return this.attr("data-"+s)}else this.attr("data-"+s,t===null?null:e===!0||typeof t=="string"||typeof t=="number"?t:JSON.stringify(t));return this}j("Dom",{data:br});function vr(s,t){if(typeof arguments[0]=="object")for(const e in s)this.remember(e,s[e]);else{if(arguments.length===1)return this.memory()[s];this.memory()[s]=t}return this}function Sr(){if(arguments.length===0)this._memory={};else for(let s=arguments.length-1;s>=0;s--)delete this.memory()[arguments[s]];return this}function Tr(){return this._memory=this._memory||{}}j("Dom",{remember:vr,forget:Sr,memory:Tr});function Rr(s){return s.length===4?["#",s.substring(1,2),s.substring(1,2),s.substring(2,3),s.substring(2,3),s.substring(3,4),s.substring(3,4)].join(""):s}function Ar(s){const t=Math.round(s),i=Math.max(0,Math.min(255,t)).toString(16);return i.length===1?"0"+i:i}function Kt(s,t){for(let e=t.length;e--;)if(s[t[e]]==null)return!1;return!0}function Cr(s,t){const e=Kt(s,"rgb")?{_a:s.r,_b:s.g,_c:s.b,_d:0,space:"rgb"}:Kt(s,"xyz")?{_a:s.x,_b:s.y,_c:s.z,_d:0,space:"xyz"}:Kt(s,"hsl")?{_a:s.h,_b:s.s,_c:s.l,_d:0,space:"hsl"}:Kt(s,"lab")?{_a:s.l,_b:s.a,_c:s.b,_d:0,space:"lab"}:Kt(s,"lch")?{_a:s.l,_b:s.c,_c:s.h,_d:0,space:"lch"}:Kt(s,"cmyk")?{_a:s.c,_b:s.m,_c:s.y,_d:s.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return e.space=t||e.space,e}function Er(s){return s==="lab"||s==="xyz"||s==="lch"}function ns(s,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?s+(t-s)*6*e:e<1/2?t:e<2/3?s+(t-s)*(2/3-e)*6:s}class W{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof W||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&typeof t.r=="number"&&typeof t.g=="number"&&typeof t.b=="number"}static random(t="vibrant",e){const{random:i,round:n,sin:r,PI:o}=Math;if(t==="vibrant"){const f=24*i()+57,l=(83-45)*i()+45,_=360*i();return new W(f,l,_,"lch")}else if(t==="sine"){e=e??i();const f=n(80*r(2*o*e/.5+.01)+150),l=n(50*r(2*o*e/.5+4.6)+200),_=n(100*r(2*o*e/.5+2.3)+150);return new W(f,l,_)}else if(t==="pastel"){const f=8*i()+86,l=(26-9)*i()+9,_=360*i();return new W(f,l,_,"lch")}else if(t==="dark"){const f=10+10*i(),l=(125-75)*i()+86,_=360*i();return new W(f,l,_,"lch")}else if(t==="rgb"){const f=255*i(),l=255*i(),_=255*i();return new W(f,l,_)}else if(t==="lab"){const f=100*i(),l=256*i()-128,_=256*i()-128;return new W(f,l,_,"lab")}else if(t==="grey"){const f=255*i();return new W(f,f,f)}else throw new Error("Unsupported random color mode")}static test(t){return typeof t=="string"&&(fi.test(t)||ai.test(t))}cmyk(){const{_a:t,_b:e,_c:i}=this.rgb(),[n,r,o]=[t,e,i].map(O=>O/255),f=Math.min(1-n,1-r,1-o);if(f===1)return new W(0,0,0,1,"cmyk");const l=(1-n-f)/(1-f),_=(1-r-f)/(1-f),u=(1-o-f)/(1-f);return new W(l,_,u,f,"cmyk")}hsl(){const{_a:t,_b:e,_c:i}=this.rgb(),[n,r,o]=[t,e,i].map(A=>A/255),f=Math.max(n,r,o),l=Math.min(n,r,o),_=(f+l)/2,u=f===l,m=f-l,O=u?0:_>.5?m/(2-f-l):m/(f+l),L=u?0:f===n?((r-o)/m+(r<o?6:0))/6:f===r?((o-n)/m+2)/6:f===o?((n-r)/m+4)/6:0;return new W(360*L,100*O,100*_,"hsl")}init(t=0,e=0,i=0,n=0,r="rgb"){if(t=t||0,this.space)for(const m in this.space)delete this[this.space[m]];if(typeof t=="number")r=typeof n=="string"?n:r,n=typeof n=="string"?0:n,Object.assign(this,{_a:t,_b:e,_c:i,_d:n,space:r});else if(t instanceof Array)this.space=e||(typeof t[3]=="string"?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const m=Cr(t,e);Object.assign(this,m)}else if(typeof t=="string")if(ai.test(t)){const m=t.replace(ur,""),[O,L,C]=or.exec(m).slice(1,4).map(A=>parseInt(A));Object.assign(this,{_a:O,_b:L,_c:C,_d:0,space:"rgb"})}else if(fi.test(t)){const m=A=>parseInt(A,16),[,O,L,C]=hr.exec(Rr(t)).map(m);Object.assign(this,{_a:O,_b:L,_c:C,_d:0,space:"rgb"})}else throw Error("Unsupported string format, can't construct Color");const{_a:o,_b:f,_c:l,_d:_}=this,u=this.space==="rgb"?{r:o,g:f,b:l}:this.space==="xyz"?{x:o,y:f,z:l}:this.space==="hsl"?{h:o,s:f,l}:this.space==="lab"?{l:o,a:f,b:l}:this.space==="lch"?{l:o,c:f,h:l}:this.space==="cmyk"?{c:o,m:f,y:l,k:_}:{};Object.assign(this,u)}lab(){const{x:t,y:e,z:i}=this.xyz(),n=116*e-16,r=500*(t-e),o=200*(e-i);return new W(n,r,o,"lab")}lch(){const{l:t,a:e,b:i}=this.lab(),n=Math.sqrt(e**2+i**2);let r=180*Math.atan2(i,e)/Math.PI;return r<0&&(r*=-1,r=360-r),new W(t,n,r,"lch")}rgb(){if(this.space==="rgb")return this;if(Er(this.space)){let{x:t,y:e,z:i}=this;if(this.space==="lab"||this.space==="lch"){let{l:L,a:C,b:A}=this;if(this.space==="lch"){const{c:vt,h:Ot}=this,kt=Math.PI/180;C=vt*Math.cos(kt*Ot),A=vt*Math.sin(kt*Ot)}const k=(L+16)/116,F=C/500+k,X=k-A/200,ot=16/116,it=.008856,lt=7.787;t=.95047*(F**3>it?F**3:(F-ot)/lt),e=1*(k**3>it?k**3:(k-ot)/lt),i=1.08883*(X**3>it?X**3:(X-ot)/lt)}const n=t*3.2406+e*-1.5372+i*-.4986,r=t*-.9689+e*1.8758+i*.0415,o=t*.0557+e*-.204+i*1.057,f=Math.pow,l=.0031308,_=n>l?1.055*f(n,1/2.4)-.055:12.92*n,u=r>l?1.055*f(r,1/2.4)-.055:12.92*r,m=o>l?1.055*f(o,1/2.4)-.055:12.92*o;return new W(255*_,255*u,255*m)}else if(this.space==="hsl"){let{h:t,s:e,l:i}=this;if(t/=360,e/=100,i/=100,e===0)return i*=255,new W(i,i,i);const n=i<.5?i*(1+e):i+e-i*e,r=2*i-n,o=255*ns(r,n,t+1/3),f=255*ns(r,n,t),l=255*ns(r,n,t-1/3);return new W(o,f,l)}else if(this.space==="cmyk"){const{c:t,m:e,y:i,k:n}=this,r=255*(1-Math.min(1,t*(1-n)+n)),o=255*(1-Math.min(1,e*(1-n)+n)),f=255*(1-Math.min(1,i*(1-n)+n));return new W(r,o,f)}else return this}toArray(){const{_a:t,_b:e,_c:i,_d:n,space:r}=this;return[t,e,i,n,r]}toHex(){const[t,e,i]=this._clamped().map(Ar);return`#${t}${e}${i}`}toRgb(){const[t,e,i]=this._clamped();return`rgb(${t},${e},${i})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:i}=this.rgb(),[n,r,o]=[t,e,i].map(F=>F/255),f=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,l=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,_=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,u=(f*.4124+l*.3576+_*.1805)/.95047,m=(f*.2126+l*.7152+_*.0722)/1,O=(f*.0193+l*.1192+_*.9505)/1.08883,L=u>.008856?Math.pow(u,1/3):7.787*u+16/116,C=m>.008856?Math.pow(m,1/3):7.787*m+16/116,A=O>.008856?Math.pow(O,1/3):7.787*O+16/116;return new W(L,C,A,"xyz")}_clamped(){const{_a:t,_b:e,_c:i}=this.rgb(),{max:n,min:r,round:o}=Math,f=l=>n(0,r(o(l),255));return[t,e,i].map(f)}}class V{constructor(...t){this.init(...t)}clone(){return new V(this)}init(t,e){const i={x:0,y:0},n=Array.isArray(t)?{x:t[0],y:t[1]}:typeof t=="object"?{x:t.x,y:t.y}:{x:t,y:e};return this.x=n.x==null?i.x:n.x,this.y=n.y==null?i.y:n.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){N.isMatrixLike(t)||(t=new N(t));const{x:e,y:i}=this;return this.x=t.a*e+t.c*i+t.e,this.y=t.b*e+t.d*i+t.f,this}}function Nr(s,t){return new V(s,t).transformO(this.screenCTM().inverseO())}function te(s,t,e){return Math.abs(t-s)<(e||1e-6)}class N{constructor(...t){this.init(...t)}static formatTransforms(t){const e=t.flip==="both"||t.flip===!0,i=t.flip&&(e||t.flip==="x")?-1:1,n=t.flip&&(e||t.flip==="y")?-1:1,r=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,o=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,f=t.scale&&t.scale.length?t.scale[0]*i:isFinite(t.scale)?t.scale*i:isFinite(t.scaleX)?t.scaleX*i:i,l=t.scale&&t.scale.length?t.scale[1]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleY)?t.scaleY*n:n,_=t.shear||0,u=t.rotate||t.theta||0,m=new V(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),O=m.x,L=m.y,C=new V(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),A=C.x,k=C.y,F=new V(t.translate||t.tx||t.translateX,t.ty||t.translateY),X=F.x,ot=F.y,it=new V(t.relative||t.rx||t.relativeX,t.ry||t.relativeY),lt=it.x,vt=it.y;return{scaleX:f,scaleY:l,skewX:r,skewY:o,shear:_,theta:u,rx:lt,ry:vt,tx:X,ty:ot,ox:O,oy:L,px:A,py:k}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return t.a!=null||t.b!=null||t.c!=null||t.d!=null||t.e!=null||t.f!=null}static matrixMultiply(t,e,i){const n=t.a*e.a+t.c*e.b,r=t.b*e.a+t.d*e.b,o=t.a*e.c+t.c*e.d,f=t.b*e.c+t.d*e.d,l=t.e+t.a*e.e+t.c*e.f,_=t.f+t.b*e.e+t.d*e.f;return i.a=n,i.b=r,i.c=o,i.d=f,i.e=l,i.f=_,i}around(t,e,i){return this.clone().aroundO(t,e,i)}aroundO(t,e,i){const n=t||0,r=e||0;return this.translateO(-n,-r).lmultiplyO(i).translateO(n,r)}clone(){return new N(this)}decompose(t=0,e=0){const i=this.a,n=this.b,r=this.c,o=this.d,f=this.e,l=this.f,_=i*o-n*r,u=_>0?1:-1,m=u*Math.sqrt(i*i+n*n),O=Math.atan2(u*n,u*i),L=180/Math.PI*O,C=Math.cos(O),A=Math.sin(O),k=(i*r+n*o)/_,F=r*m/(k*i-n)||o*m/(k*n+i),X=f-t+t*C*m+e*(k*C*m-A*F),ot=l-e+t*A*m+e*(k*A*m+C*F);return{scaleX:m,scaleY:F,shear:k,rotate:L,translateX:X,translateY:ot,originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new N(t);return te(this.a,e.a)&&te(this.b,e.b)&&te(this.c,e.c)&&te(this.d,e.d)&&te(this.e,e.e)&&te(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return t==="x"?this.scaleO(-1,1,e,0):t==="y"?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(t){const e=N.fromArray([1,0,0,1,0,0]);return t=t instanceof Nt?t.matrixify():typeof t=="string"?N.fromArray(t.split($t).map(parseFloat)):Array.isArray(t)?N.fromArray(t):typeof t=="object"&&N.isMatrixLike(t)?t:typeof t=="object"?new N().transform(t):arguments.length===6?N.fromArray([].slice.call(arguments)):e,this.a=t.a!=null?t.a:e.a,this.b=t.b!=null?t.b:e.b,this.c=t.c!=null?t.c:e.c,this.d=t.d!=null?t.d:e.d,this.e=t.e!=null?t.e:e.e,this.f=t.f!=null?t.f:e.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,e=this.b,i=this.c,n=this.d,r=this.e,o=this.f,f=t*n-e*i;if(!f)throw new Error("Cannot invert "+this);const l=n/f,_=-e/f,u=-i/f,m=t/f,O=-(l*r+u*o),L=-(_*r+m*o);return this.a=l,this.b=_,this.c=u,this.d=m,this.e=O,this.f=L,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=this,i=t instanceof N?t:new N(t);return N.matrixMultiply(i,e,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=this,i=t instanceof N?t:new N(t);return N.matrixMultiply(e,i,this)}rotate(t,e,i){return this.clone().rotateO(t,e,i)}rotateO(t,e=0,i=0){t=es(t);const n=Math.cos(t),r=Math.sin(t),{a:o,b:f,c:l,d:_,e:u,f:m}=this;return this.a=o*n-f*r,this.b=f*n+o*r,this.c=l*n-_*r,this.d=_*n+l*r,this.e=u*n-m*r+i*r-e*n+e,this.f=m*n+u*r-e*r-i*n+i,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,e=t,i=0,n=0){arguments.length===3&&(n=i,i=e,e=t);const{a:r,b:o,c:f,d:l,e:_,f:u}=this;return this.a=r*t,this.b=o*e,this.c=f*t,this.d=l*e,this.e=_*t-i*t+i,this.f=u*e-n*e+n,this}shear(t,e,i){return this.clone().shearO(t,e,i)}shearO(t,e=0,i=0){const{a:n,b:r,c:o,d:f,e:l,f:_}=this;return this.a=n+r*t,this.c=o+f*t,this.e=l+_*t-i*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t,e=t,i=0,n=0){arguments.length===3&&(n=i,i=e,e=t),t=es(t),e=es(e);const r=Math.tan(t),o=Math.tan(e),{a:f,b:l,c:_,d:u,e:m,f:O}=this;return this.a=f+l*r,this.b=l+f*o,this.c=_+u*r,this.d=u+_*o,this.e=m+O*r-n*r,this.f=O+m*o-i*o,this}skewX(t,e,i){return this.skew(t,0,e,i)}skewY(t,e,i){return this.skew(0,t,e,i)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(N.isMatrixLike(t))return new N(t).multiplyO(this);const e=N.formatTransforms(t),i=this,{x:n,y:r}=new V(e.ox,e.oy).transform(i),o=new N().translateO(e.rx,e.ry).lmultiplyO(i).translateO(-n,-r).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(n,r);if(isFinite(e.px)||isFinite(e.py)){const f=new V(n,r).transform(o),l=isFinite(e.px)?e.px-f.x:0,_=isFinite(e.py)?e.py-f.y:0;o.translateO(l,_)}return o.translateO(e.tx,e.ty),o}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function Or(){return new N(this.node.getCTM())}function kr(){try{if(typeof this.isRoot=="function"&&!this.isRoot()){const s=this.rect(1,1),t=s.node.getScreenCTM();return s.remove(),new N(t)}return new N(this.node.getScreenCTM())}catch{return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new N}}H(N,"Matrix");function Pt(){if(!Pt.nodes){const s=dt().size(2,0);s.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),s.attr("focusable","false"),s.attr("aria-hidden","true");const t=s.path().node;Pt.nodes={svg:s,path:t}}if(!Pt.nodes.svg.node.parentNode){const s=B.document.body||B.document.documentElement;Pt.nodes.svg.addTo(s)}return Pt.nodes}function Ei(s){return!s.width&&!s.height&&!s.x&&!s.y}function zr(s){return s===B.document||(B.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===B.document}).call(B.document.documentElement,s)}class ut{constructor(...t){this.init(...t)}addOffset(){return this.x+=B.window.pageXOffset,this.y+=B.window.pageYOffset,new ut(this)}init(t){const e=[0,0,0,0];return t=typeof t=="string"?t.split($t).map(parseFloat):Array.isArray(t)?t:typeof t=="object"?[t.left!=null?t.left:t.x,t.top!=null?t.top:t.y,t.width,t.height]:arguments.length===4?[].slice.call(arguments):e,this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return Ei(this)}merge(t){const e=Math.min(this.x,t.x),i=Math.min(this.y,t.y),n=Math.max(this.x+this.width,t.x+t.width)-e,r=Math.max(this.y+this.height,t.y+t.height)-i;return new ut(e,i,n,r)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof N||(t=new N(t));let e=1/0,i=-1/0,n=1/0,r=-1/0;return[new V(this.x,this.y),new V(this.x2,this.y),new V(this.x,this.y2),new V(this.x2,this.y2)].forEach(function(f){f=f.transform(t),e=Math.min(e,f.x),i=Math.max(i,f.x),n=Math.min(n,f.y),r=Math.max(r,f.y)}),new ut(e,n,i-e,r-n)}}function Ni(s,t,e){let i;try{if(i=t(s.node),Ei(i)&&!zr(s.node))throw new Error("Element not in the dom")}catch{i=e(s)}return i}function Mr(){const e=Ni(this,n=>n.getBBox(),n=>{try{const r=n.clone().addTo(Pt().svg).show(),o=r.node.getBBox();return r.remove(),o}catch(r){throw new Error(`Getting bbox of element "${n.node.nodeName}" is not possible: ${r.toString()}`)}});return new ut(e)}function $r(s){const i=Ni(this,r=>r.getBoundingClientRect(),r=>{throw new Error(`Getting rbox of element "${r.node.nodeName}" is not possible`)}),n=new ut(i);return s?n.transform(s.screenCTM().inverseO()):n.addOffset()}function Ir(s,t){const e=this.bbox();return s>e.x&&t>e.y&&s<e.x+e.width&&t<e.y+e.height}j({viewbox:{viewbox(s,t,e,i){return s==null?new ut(this.attr("viewBox")):this.attr("viewBox",new ut(s,t,e,i))},zoom(s,t){let{width:e,height:i}=this.attr(["width","height"]);if((!e&&!i||typeof e=="string"||typeof i=="string")&&(e=this.node.clientWidth,i=this.node.clientHeight),!e||!i)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const n=this.viewbox(),r=e/n.width,o=i/n.height,f=Math.min(r,o);if(s==null)return f;let l=f/s;l===1/0&&(l=Number.MAX_SAFE_INTEGER/100),t=t||new V(e/2/r+n.x,i/2/o+n.y);const _=new ut(n).transform(new N({scale:l,origin:t}));return this.viewbox(_)}}});H(ut,"Box");class Xt extends Array{constructor(t=[],...e){if(super(t,...e),typeof t=="number")return this;this.length=0,this.push(...t)}}J([Xt],{each(s,...t){return typeof s=="function"?this.map((e,i,n)=>s.call(e,e,i,n)):this.map(e=>e[s](...t))},toArray(){return Array.prototype.concat.apply([],this)}});const jr=["toArray","constructor","each"];Xt.extend=function(s){s=s.reduce((t,e)=>(jr.includes(e)||e[0]==="_"||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...i){return this.each(e,...i)}),t),{}),J([Xt],s)};function oe(s,t){return new Xt(vs((t||B.document).querySelectorAll(s),function(e){return Rt(e)}))}function Dr(s){return oe(s,this.node)}function Lr(s){return Rt(this.node.querySelector(s))}let Pr=0;const Oi={};function ki(s){let t=s.getEventHolder();return t===B.window&&(t=Oi),t.events||(t.events={}),t.events}function Cs(s){return s.getEventTarget()}function Jr(s){let t=s.getEventHolder();t===B.window&&(t=Oi),t.events&&(t.events={})}function ls(s,t,e,i,n){const r=e.bind(i||s),o=dt(s),f=ki(o),l=Cs(o);t=Array.isArray(t)?t:t.split($t),e._svgjsListenerId||(e._svgjsListenerId=++Pr),t.forEach(function(_){const u=_.split(".")[0],m=_.split(".")[1]||"*";f[u]=f[u]||{},f[u][m]=f[u][m]||{},f[u][m][e._svgjsListenerId]=r,l.addEventListener(u,r,n||!1)})}function se(s,t,e,i){const n=dt(s),r=ki(n),o=Cs(n);typeof e=="function"&&(e=e._svgjsListenerId,!e)||(t=Array.isArray(t)?t:(t||"").split($t),t.forEach(function(f){const l=f&&f.split(".")[0],_=f&&f.split(".")[1];let u,m;if(e)r[l]&&r[l][_||"*"]&&(o.removeEventListener(l,r[l][_||"*"][e],i||!1),delete r[l][_||"*"][e]);else if(l&&_){if(r[l]&&r[l][_]){for(m in r[l][_])se(o,[l,_].join("."),m);delete r[l][_]}}else if(_)for(f in r)for(u in r[f])_===u&&se(o,[f,_].join("."));else if(l){if(r[l]){for(u in r[l])se(o,[l,u].join("."));delete r[l]}}else{for(f in r)se(o,f);Jr(n)}}))}function qr(s,t,e,i){const n=Cs(s);return t instanceof B.window.Event||(t=new B.window.CustomEvent(t,{detail:e,cancelable:!0,...i})),n.dispatchEvent(t),t}class be extends Ts{addEventListener(){}dispatch(t,e,i){return qr(this,t,e,i)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const i=e[t.type];for(const n in i)for(const r in i[n])i[n][r](t);return!t.defaultPrevented}fire(t,e,i){return this.dispatch(t,e,i),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,i){return se(this,t,e,i),this}on(t,e,i,n){return ls(this,t,e,i,n),this}removeEventListener(){}}H(be,"EventTarget");function ci(){}const de={duration:400,ease:">",delay:0},Fr={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class re extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return typeof t=="number"?this:(this.length=0,this.push(...this.parse(t)),this)}parse(t=[]){return t instanceof Array?t:t.trim().split($t).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class I{constructor(...t){this.init(...t)}convert(t){return new I(this.value,t)}divide(t){return t=new I(t),new I(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"",typeof t=="number"?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:typeof t=="string"?(e=t.match(Ci),e&&(this.value=parseFloat(e[1]),e[5]==="%"?this.value/=100:e[5]==="s"&&(this.value*=1e3),this.unit=e[5])):t instanceof I&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new I(t),new I(this-t,this.unit||t.unit)}plus(t){return t=new I(t),new I(this+t,this.unit||t.unit)}times(t){return t=new I(t),new I(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return(this.unit==="%"?~~(this.value*1e8)/1e6:this.unit==="s"?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Br=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),zi=[];function Hr(s){zi.push(s)}function Ur(s,t,e){if(s==null){s={},t=this.node.attributes;for(const i of t)s[i.nodeName]=li.test(i.nodeValue)?parseFloat(i.nodeValue):i.nodeValue;return s}else{if(s instanceof Array)return s.reduce((i,n)=>(i[n]=this.attr(n),i),{});if(typeof s=="object"&&s.constructor===Object)for(t in s)this.attr(t,s[t]);else if(t===null)this.node.removeAttribute(s);else{if(t==null)return t=this.node.getAttribute(s),t==null?Fr[s]:li.test(t)?parseFloat(t):t;t=zi.reduce((i,n)=>n(s,i,this),t),typeof t=="number"?t=new I(t):Br.has(s)&&W.isColor(t)?t=new W(t):t.constructor===Array&&(t=new re(t)),s==="leading"?this.leading&&this.leading(t):typeof e=="string"?this.node.setAttributeNS(e,s,t.toString()):this.node.setAttribute(s,t.toString()),this.rebuild&&(s==="font-size"||s==="x")&&this.rebuild()}}return this}class Jt extends be{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return t=dt(t),t.removeNamespace&&this.node instanceof B.window.SVGElement&&t.removeNamespace(),e==null?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return dt(t).put(this,e)}children(){return new Xt(vs(this.node.children,function(t){return Rt(t)}))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let i=this.node.cloneNode(t);return e&&(i=Ai(i)),new this.constructor(i)}each(t,e){const i=this.children();let n,r;for(n=0,r=i.length;n<r;n++)t.apply(i[n],[n,i]),e&&i[n].each(t,e);return this}element(t,e){return this.put(new Jt(ne(t),e))}first(){return Rt(this.node.firstChild)}get(t){return Rt(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,Hn)}id(t){return typeof t>"u"&&!this.node.id&&(this.node.id=Ri(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return Rt(this.node.lastChild)}matches(t){const e=this.node,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return i&&i.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=Rt(e.node.parentNode),!t)return e;do if(typeof t=="string"?e.matches(t):e instanceof t)return e;while(e=Rt(e.node.parentNode));return e}put(t,e){return t=dt(t),this.add(t,e),t}putIn(t,e){return dt(t).add(this,e)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=dt(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,e=null){const i=10**t,n=this.attr(e);for(const r in n)typeof n[r]=="number"&&(n[r]=Math.round(n[r]*i)/i);return this.attr(n),this}svg(t,e){return this.xml(t,e,Ss)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const i=e.index(this);return e.put(t,i).put(this)}writeDataToDom(){return this.each(function(){this.writeDataToDom()}),this}xml(t,e,i){if(typeof t=="boolean"&&(i=e,e=t,t=null),t==null||typeof t=="function"){e=e??!0,this.writeDataToDom();let f=this;if(t!=null){if(f=Rt(f.node.cloneNode(!0)),e){const l=t(f);if(f=l||f,l===!1)return""}f.each(function(){const l=t(this),_=l||this;l===!1?this.remove():l&&this!==_&&this.replace(_)},!0)}return e?f.node.outerHTML:f.node.innerHTML}e=e??!1;const n=ne("wrapper",i),r=B.document.createDocumentFragment();n.innerHTML=t;for(let f=n.children.length;f--;)r.appendChild(n.firstElementChild);const o=this.parent();return e?this.replace(r)&&o:this.add(r)}}J(Jt,{attr:Ur,find:Dr,findOne:Lr});H(Jt,"Dom");class Nt extends Jt{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return t==null?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return t==null?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new I(t).plus(this.x()))}dy(t=0){return this.y(new I(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e=typeof t=="string";e||(t=dt(t));const i=new Xt;let n=this;for(;(n=n.parent())&&n.node!==B.document&&n.nodeName!=="#document-fragment"&&(i.push(n),!(!e&&n.node===t.node||e&&n.matches(t)));)if(n.node===this.root().node)return null;return i}reference(t){if(t=this.attr(t),!t)return null;const e=(t+"").match(fr);return e?dt(e[1]):null}root(){const t=this.parent(Gn(Rs));return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const i=he(this,t,e);return this.width(new I(i.width)).height(new I(i.height))}width(t){return this.attr("width",t)}writeDataToDom(){return Ti(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}J(Nt,{bbox:Mr,rbox:$r,inside:Ir,point:Nr,ctm:Or,screenCTM:kr});H(Nt,"Element");const le={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(s,t){return t==="color"?s:s+"-"+t}};["fill","stroke"].forEach(function(s){const t={};let e;t[s]=function(i){if(typeof i>"u")return this.attr(s);if(typeof i=="string"||i instanceof W||W.isRgb(i)||i instanceof Nt)this.attr(s,i);else for(e=le[s].length-1;e>=0;e--)i[le[s][e]]!=null&&this.attr(le.prefix(s,le[s][e]),i[le[s][e]]);return this},j(["Element","Runner"],t)});j(["Element","Runner"],{matrix:function(s,t,e,i,n,r){return s==null?new N(this):this.attr("transform",new N(s,t,e,i,n,r))},rotate:function(s,t,e){return this.transform({rotate:s,ox:t,oy:e},!0)},skew:function(s,t,e,i){return arguments.length===1||arguments.length===3?this.transform({skew:s,ox:t,oy:e},!0):this.transform({skew:[s,t],ox:e,oy:i},!0)},shear:function(s,t,e){return this.transform({shear:s,ox:t,oy:e},!0)},scale:function(s,t,e,i){return arguments.length===1||arguments.length===3?this.transform({scale:s,ox:t,oy:e},!0):this.transform({scale:[s,t],ox:e,oy:i},!0)},translate:function(s,t){return this.transform({translate:[s,t]},!0)},relative:function(s,t){return this.transform({relative:[s,t]},!0)},flip:function(s="both",t="center"){return"xybothtrue".indexOf(s)===-1&&(t=s,s="both"),this.transform({flip:s,origin:t},!0)},opacity:function(s){return this.attr("opacity",s)}});j("radius",{radius:function(s,t=s){return(this._element||this).type==="radialGradient"?this.attr("r",new I(s)):this.rx(s).ry(t)}});j("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(s){return new V(this.node.getPointAtLength(s))}});j(["Element","Runner"],{font:function(s,t){if(typeof s=="object"){for(t in s)this.font(t,s[t]);return this}return s==="leading"?this.leading(t):s==="anchor"?this.attr("text-anchor",t):s==="size"||s==="family"||s==="weight"||s==="stretch"||s==="variant"||s==="style"?this.attr("font-"+s,t):this.attr(s,t)}});const Gr=["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce(function(s,t){const e=function(i){return i===null?this.off(t):this.on(t,i),this};return s[t]=e,s},{});j("Element",Gr);function Yr(){return this.attr("transform",null)}function Wr(){return(this.attr("transform")||"").split(ar).slice(0,-1).map(function(t){const e=t.trim().split("(");return[e[0],e[1].split($t).map(function(i){return parseFloat(i)})]}).reverse().reduce(function(t,e){return e[0]==="matrix"?t.lmultiply(N.fromArray(e[1])):t[e[0]].apply(t,e[1])},new N)}function Vr(s,t){if(this===s)return this;if(us(this.node))return this.addTo(s,t);const e=this.screenCTM(),i=s.screenCTM().inverse();return this.addTo(s,t).untransform().transform(i.multiply(e)),this}function Xr(s){return this.toParent(this.root(),s)}function Qr(s,t){if(s==null||typeof s=="string"){const n=new N(this).decompose();return s==null?n:n[s]}N.isMatrixLike(s)||(s={...s,origin:as(s,this)});const e=t===!0?this:t||!1,i=new N(e).transform(s);return this.attr("transform",i)}j("Element",{untransform:Yr,matrixify:Wr,toParent:Vr,toRoot:Xr,transform:Qr});class yt extends Nt{flatten(){return this.each(function(){if(this instanceof yt)return this.flatten().ungroup()}),this}ungroup(t=this.parent(),e=t.index(this)){return e=e===-1?t.children().length:e,this.each(function(i,n){return n[n.length-i-1].toParent(t,e)}),this.remove()}}H(yt,"Container");class Es extends yt{constructor(t,e=t){super(K("defs",t),e)}flatten(){return this}ungroup(){return this}}H(Es,"Defs");class bt extends Nt{}H(bt,"Shape");function Ns(s){return this.attr("rx",s)}function Os(s){return this.attr("ry",s)}function Mi(s){return s==null?this.cx()-this.rx():this.cx(s+this.rx())}function $i(s){return s==null?this.cy()-this.ry():this.cy(s+this.ry())}function Ii(s){return this.attr("cx",s)}function ji(s){return this.attr("cy",s)}function Di(s){return s==null?this.rx()*2:this.rx(new I(s).divide(2))}function Li(s){return s==null?this.ry()*2:this.ry(new I(s).divide(2))}const Zr=Object.freeze(Object.defineProperty({__proto__:null,cx:Ii,cy:ji,height:Li,rx:Ns,ry:Os,width:Di,x:Mi,y:$i},Symbol.toStringTag,{value:"Module"}));class Be extends bt{constructor(t,e=t){super(K("ellipse",t),e)}size(t,e){const i=he(this,t,e);return this.rx(new I(i.width).divide(2)).ry(new I(i.height).divide(2))}}J(Be,Zr);j("Container",{ellipse:Z(function(s=0,t=s){return this.put(new Be).size(s,t).move(0,0)})});H(Be,"Ellipse");class Pi extends Jt{constructor(t=B.document.createDocumentFragment()){super(t)}xml(t,e,i){if(typeof t=="boolean"&&(i=e,e=t,t=null),t==null||typeof t=="function"){const n=new Jt(ne("wrapper",i));return n.add(this.node.cloneNode(!0)),n.xml(!1,i)}return super.xml(t,!1,i)}}H(Pi,"Fragment");function Ji(s,t){return(this._element||this).type==="radialGradient"?this.attr({fx:new I(s),fy:new I(t)}):this.attr({x1:new I(s),y1:new I(t)})}function qi(s,t){return(this._element||this).type==="radialGradient"?this.attr({cx:new I(s),cy:new I(t)}):this.attr({x2:new I(s),y2:new I(t)})}const Kr=Object.freeze(Object.defineProperty({__proto__:null,from:Ji,to:qi},Symbol.toStringTag,{value:"Module"}));class ve extends yt{constructor(t,e){super(K(t+"Gradient",typeof t=="string"?null:t),e)}attr(t,e,i){return t==="transform"&&(t="gradientTransform"),super.attr(t,e,i)}bbox(){return new ut}targets(){return oe("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),typeof t=="function"&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}J(ve,Kr);j({Container:{gradient(...s){return this.defs().gradient(...s)}},Defs:{gradient:Z(function(s,t){return this.put(new ve(s)).update(t)})}});H(ve,"Gradient");class ge extends yt{constructor(t,e=t){super(K("pattern",t),e)}attr(t,e,i){return t==="transform"&&(t="patternTransform"),super.attr(t,e,i)}bbox(){return new ut}targets(){return oe("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),typeof t=="function"&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}j({Container:{pattern(...s){return this.defs().pattern(...s)}},Defs:{pattern:Z(function(s,t,e){return this.put(new ge).update(e).attr({x:0,y:0,width:s,height:t,patternUnits:"userSpaceOnUse"})})}});H(ge,"Pattern");class He extends bt{constructor(t,e=t){super(K("image",t),e)}load(t,e){if(!t)return this;const i=new B.window.Image;return ls(i,"load",function(n){const r=this.parent(ge);this.width()===0&&this.height()===0&&this.size(i.width,i.height),r instanceof ge&&r.width()===0&&r.height()===0&&r.size(this.width(),this.height()),typeof e=="function"&&e.call(this,n)},this),ls(i,"load error",function(){se(i)}),this.attr("href",i.src=t,xe)}}Hr(function(s,t,e){return(s==="fill"||s==="stroke")&&lr.test(t)&&(t=e.root().defs().image(t)),t instanceof He&&(t=e.root().defs().pattern(0,0,i=>{i.add(t)})),t});j({Container:{image:Z(function(s,t){return this.put(new He).size(0,0).load(s,t)})}});H(He,"Image");class qt extends re{bbox(){let t=-1/0,e=-1/0,i=1/0,n=1/0;return this.forEach(function(r){t=Math.max(r[0],t),e=Math.max(r[1],e),i=Math.min(r[0],i),n=Math.min(r[1],n)}),new ut(i,n,t-i,e-n)}move(t,e){const i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+t,this[n][1]+e];return this}parse(t=[0,0]){const e=[];t instanceof Array?t=Array.prototype.concat.apply([],t):t=t.trim().split($t).map(parseFloat),t.length%2!==0&&t.pop();for(let i=0,n=t.length;i<n;i=i+2)e.push([t[i],t[i+1]]);return e}size(t,e){let i;const n=this.bbox();for(i=this.length-1;i>=0;i--)n.width&&(this[i][0]=(this[i][0]-n.x)*t/n.width+n.x),n.height&&(this[i][1]=(this[i][1]-n.y)*e/n.height+n.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let e=0,i=this.length;e<i;e++)t.push(this[e].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){N.isMatrixLike(t)||(t=new N(t));for(let e=this.length;e--;){const[i,n]=this[e];this[e][0]=t.a*i+t.c*n+t.e,this[e][1]=t.b*i+t.d*n+t.f}return this}}const th=qt;function eh(s){return s==null?this.bbox().x:this.move(s,this.bbox().y)}function sh(s){return s==null?this.bbox().y:this.move(this.bbox().x,s)}function ih(s){const t=this.bbox();return s==null?t.width:this.size(s,t.height)}function nh(s){const t=this.bbox();return s==null?t.height:this.size(t.width,s)}const ks=Object.freeze(Object.defineProperty({__proto__:null,MorphArray:th,height:nh,width:ih,x:eh,y:sh},Symbol.toStringTag,{value:"Module"}));class me extends bt{constructor(t,e=t){super(K("line",t),e)}array(){return new qt([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,i,n){return t==null?this.array():(typeof e<"u"?t={x1:t,y1:e,x2:i,y2:n}:t=new qt(t).toLine(),this.attr(t))}size(t,e){const i=he(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}}J(me,ks);j({Container:{line:Z(function(...s){return me.prototype.plot.apply(this.put(new me),s[0]!=null?s:[0,0,0,0])})}});H(me,"Line");class je extends yt{constructor(t,e=t){super(K("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),typeof t=="function"&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}j({Container:{marker(...s){return this.defs().marker(...s)}},Defs:{marker:Z(function(s,t,e){return this.put(new je).size(s,t).ref(s/2,t/2).viewbox(0,0,s,t).attr("orient","auto").update(e)})},marker:{marker(s,t,e,i){let n=["marker"];return s!=="all"&&n.push(s),n=n.join("-"),s=arguments[1]instanceof je?arguments[1]:this.defs().marker(t,e,i),this.attr(n,s)}}});H(je,"Marker");function ie(s,t){return function(e){return e==null?this[s]:(this[s]=e,t&&t.call(this),this)}}const rh={"-":function(s){return s},"<>":function(s){return-Math.cos(s*Math.PI)/2+.5},">":function(s){return Math.sin(s*Math.PI/2)},"<":function(s){return-Math.cos(s*Math.PI/2)+1},bezier:function(s,t,e,i){return function(n){return n<0?s>0?t/s*n:e>0?i/e*n:0:n>1?e<1?(1-i)/(1-e)*n+(i-e)/(1-e):s<1?(1-t)/(1-s)*n+(t-s)/(1-s):1:3*n*(1-n)**2*t+3*n**2*(1-n)*i+n**3}},steps:function(s,t="end"){t=t.split("-").reverse()[0];let e=s;return t==="none"?--e:t==="both"&&++e,(i,n=!1)=>{let r=Math.floor(i*s);const o=i*r%1===0;return(t==="start"||t==="both")&&++r,n&&o&&--r,i>=0&&r<0&&(r=0),i<=1&&r>e&&(r=e),r/e}}};class zs{done(){return!1}}class cs extends zs{constructor(t=de.ease){super(),this.ease=rh[t]||t}step(t,e,i){return typeof t!="number"?i<1?t:e:t+(e-t)*this.ease(i)}}class De extends zs{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,i,n){return this.stepper(t,e,i,n)}}function _i(){const s=(this._duration||500)/1e3,t=this._overshoot||0,e=1e-10,i=Math.PI,n=Math.log(t/100+e),r=-n/Math.sqrt(i*i+n*n),o=3.9/(r*s);this.d=2*r*o,this.k=o*o}class hh extends De{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,i,n){if(typeof t=="string")return t;if(n.done=i===1/0,i===1/0)return e;if(i===0)return t;i>100&&(i=16),i/=1e3;const r=n.velocity||0,o=-this.d*r-this.k*(t-e),f=t+r*i+o*i*i/2;return n.velocity=r+o*i,n.done=Math.abs(e-f)+Math.abs(r)<.002,n.done?e:f}}J(hh,{duration:ie("_duration",_i),overshoot:ie("_overshoot",_i)});class oh extends De{constructor(t=.1,e=.01,i=0,n=1e3){super(),this.p(t).i(e).d(i).windup(n)}step(t,e,i,n){if(typeof t=="string")return t;if(n.done=i===1/0,i===1/0)return e;if(i===0)return t;const r=e-t;let o=(n.integral||0)+r*i;const f=(r-(n.error||0))/i,l=this._windup;return l!==!1&&(o=Math.max(-l,Math.min(o,l))),n.error=r,n.integral=o,n.done=Math.abs(r)<.001,n.done?e:t+(this.P*r+this.I*o+this.D*f)}}J(oh,{windup:ie("_windup"),p:ie("P"),i:ie("I"),d:ie("D")});const fh={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},_s={M:function(s,t,e){return t.x=e.x=s[0],t.y=e.y=s[1],["M",t.x,t.y]},L:function(s,t){return t.x=s[0],t.y=s[1],["L",s[0],s[1]]},H:function(s,t){return t.x=s[0],["H",s[0]]},V:function(s,t){return t.y=s[0],["V",s[0]]},C:function(s,t){return t.x=s[4],t.y=s[5],["C",s[0],s[1],s[2],s[3],s[4],s[5]]},S:function(s,t){return t.x=s[2],t.y=s[3],["S",s[0],s[1],s[2],s[3]]},Q:function(s,t){return t.x=s[2],t.y=s[3],["Q",s[0],s[1],s[2],s[3]]},T:function(s,t){return t.x=s[0],t.y=s[1],["T",s[0],s[1]]},Z:function(s,t,e){return t.x=e.x,t.y=e.y,["Z"]},A:function(s,t){return t.x=s[5],t.y=s[6],["A",s[0],s[1],s[2],s[3],s[4],s[5],s[6]]}},rs="mlhvqtcsaz".split("");for(let s=0,t=rs.length;s<t;++s)_s[rs[s]]=function(e){return function(i,n,r){if(e==="H")i[0]=i[0]+n.x;else if(e==="V")i[0]=i[0]+n.y;else if(e==="A")i[5]=i[5]+n.x,i[6]=i[6]+n.y;else for(let o=0,f=i.length;o<f;++o)i[o]=i[o]+(o%2?n.y:n.x);return _s[e](i,n,r)}}(rs[s].toUpperCase());function ah(s){const t=s.segment[0];return _s[t](s.segment.slice(1),s.p,s.p0)}function ps(s){return s.segment.length&&s.segment.length-1===fh[s.segment[0].toUpperCase()]}function uh(s,t){s.inNumber&&Gt(s,!1);const e=As.test(t);if(e)s.segment=[t];else{const i=s.lastCommand,n=i.toLowerCase(),r=i===n;s.segment=[n==="m"?r?"l":"L":i]}return s.inSegment=!0,s.lastCommand=s.segment[0],e}function Gt(s,t){if(!s.inNumber)throw new Error("Parser Error");s.number&&s.segment.push(parseFloat(s.number)),s.inNumber=t,s.number="",s.pointSeen=!1,s.hasExponent=!1,ps(s)&&ds(s)}function ds(s){s.inSegment=!1,s.absolute&&(s.segment=ah(s)),s.segments.push(s.segment)}function lh(s){if(!s.segment.length)return!1;const t=s.segment[0].toUpperCase()==="A",e=s.segment.length;return t&&(e===4||e===5)}function ch(s){return s.lastToken.toUpperCase()==="E"}const _h=new Set([" ",","," ",`
|
|
7
|
+
`,"\r","\f"]);function ph(s,t=!0){let e=0,i="";const n={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:t,p0:new V,p:new V};for(;n.lastToken=i,i=s.charAt(e++);)if(!(!n.inSegment&&uh(n,i))){if(i==="."){if(n.pointSeen||n.hasExponent){Gt(n,!1),--e;continue}n.inNumber=!0,n.pointSeen=!0,n.number+=i;continue}if(!isNaN(parseInt(i))){if(n.number==="0"||lh(n)){n.inNumber=!0,n.number=i,Gt(n,!0);continue}n.inNumber=!0,n.number+=i;continue}if(_h.has(i)){n.inNumber&&Gt(n,!1);continue}if(i==="-"||i==="+"){if(n.inNumber&&!ch(n)){Gt(n,!1),--e;continue}n.number+=i,n.inNumber=!0;continue}if(i.toUpperCase()==="E"){n.number+=i,n.hasExponent=!0;continue}if(As.test(i)){if(n.inNumber)Gt(n,!1);else if(ps(n))ds(n);else throw new Error("parser Error");--e}}return n.inNumber&&Gt(n,!1),n.inSegment&&ps(n)&&ds(n),n.segments}function dh(s){let t="";for(let e=0,i=s.length;e<i;e++)t+=s[e][0],s[e][1]!=null&&(t+=s[e][1],s[e][2]!=null&&(t+=" ",t+=s[e][2],s[e][3]!=null&&(t+=" ",t+=s[e][3],t+=" ",t+=s[e][4],s[e][5]!=null&&(t+=" ",t+=s[e][5],t+=" ",t+=s[e][6],s[e][7]!=null&&(t+=" ",t+=s[e][7])))));return t+" "}class Qt extends re{bbox(){return Pt().path.setAttribute("d",this.toString()),new ut(Pt.nodes.path.getBBox())}move(t,e){const i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(let n,r=this.length-1;r>=0;r--)n=this[r][0],n==="M"||n==="L"||n==="T"?(this[r][1]+=t,this[r][2]+=e):n==="H"?this[r][1]+=t:n==="V"?this[r][1]+=e:n==="C"||n==="S"||n==="Q"?(this[r][1]+=t,this[r][2]+=e,this[r][3]+=t,this[r][4]+=e,n==="C"&&(this[r][5]+=t,this[r][6]+=e)):n==="A"&&(this[r][6]+=t,this[r][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),ph(t)}size(t,e){const i=this.bbox();let n,r;for(i.width=i.width===0?1:i.width,i.height=i.height===0?1:i.height,n=this.length-1;n>=0;n--)r=this[n][0],r==="M"||r==="L"||r==="T"?(this[n][1]=(this[n][1]-i.x)*t/i.width+i.x,this[n][2]=(this[n][2]-i.y)*e/i.height+i.y):r==="H"?this[n][1]=(this[n][1]-i.x)*t/i.width+i.x:r==="V"?this[n][1]=(this[n][1]-i.y)*e/i.height+i.y:r==="C"||r==="S"||r==="Q"?(this[n][1]=(this[n][1]-i.x)*t/i.width+i.x,this[n][2]=(this[n][2]-i.y)*e/i.height+i.y,this[n][3]=(this[n][3]-i.x)*t/i.width+i.x,this[n][4]=(this[n][4]-i.y)*e/i.height+i.y,r==="C"&&(this[n][5]=(this[n][5]-i.x)*t/i.width+i.x,this[n][6]=(this[n][6]-i.y)*e/i.height+i.y)):r==="A"&&(this[n][1]=this[n][1]*t/i.width,this[n][2]=this[n][2]*e/i.height,this[n][6]=(this[n][6]-i.x)*t/i.width+i.x,this[n][7]=(this[n][7]-i.y)*e/i.height+i.y);return this}toString(){return dh(this)}}const Fi=s=>{const t=typeof s;return t==="number"?I:t==="string"?W.isColor(s)?W:$t.test(s)?As.test(s)?Qt:re:Ci.test(s)?I:gs:Ms.indexOf(s.constructor)>-1?s.constructor:Array.isArray(s)?re:t==="object"?ye:gs};class Yt{constructor(t){this._stepper=t||new cs("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce(function(e,i){return e&&i},!0)}from(t){return t==null?this._from:(this._from=this._set(t),this)}stepper(t){return t==null?this._stepper:(this._stepper=t,this)}to(t){return t==null?this._to:(this._to=this._set(t),this)}type(t){return t==null?this._type:(this._type=t,this)}_set(t){this._type||this.type(Fi(t));let e=new this._type(t);return this._type===W&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===ye&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map(function(i){return i.done=!0,i}),e}}class gs{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class Se{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,Se.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Se.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const gh=(s,t)=>s[0]<t[0]?-1:s[0]>t[0]?1:0;class ye{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let i=0,n=e.length;i<n;++i){if(e[i+1]===t[i+1]){if(e[i+1]===W&&t[i+7]!==e[i+7]){const f=t[i+7],l=new W(this.values.splice(i+3,5))[f]().toArray();this.values.splice(i+3,0,...l)}i+=e[i+2]+2;continue}if(!t[i+1])return this;const r=new t[i+1]().toArray(),o=e[i+2]+3;e.splice(i,o,t[i],t[i+1],t[i+2],...r),i+=e[i+2]+2}return this}init(t){if(this.values=[],Array.isArray(t)){this.values=t.slice();return}t=t||{};const e=[];for(const i in t){const n=Fi(t[i]),r=new n(t[i]).toArray();e.push([i,n,r.length,...r])}return e.sort(gh),this.values=e.reduce((i,n)=>i.concat(n),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const i=e.shift(),n=e.shift(),r=e.shift(),o=e.splice(0,r);t[i]=new n(o)}return t}}const Ms=[gs,Se,ye];function mh(s=[]){Ms.push(...[].concat(s))}function yh(){J(Ms,{to(s){return new Yt().type(this.constructor).from(this.toArray()).to(s)},fromArray(s){return this.init(s),this},toConsumable(){return this.toArray()},morph(s,t,e,i,n){const r=function(o,f){return i.step(o,t[f],e,n[f],n)};return this.fromArray(s.map(r))}})}class fe extends bt{constructor(t,e=t){super(K("path",t),e)}array(){return this._array||(this._array=new Qt(this.attr("d")))}clear(){return delete this._array,this}height(t){return t==null?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return t==null?this.array():this.clear().attr("d",typeof t=="string"?t:this._array=new Qt(t))}size(t,e){const i=he(this,t,e);return this.attr("d",this.array().size(i.width,i.height))}width(t){return t==null?this.bbox().width:this.size(t,this.bbox().height)}x(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)}y(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)}}fe.prototype.MorphArray=Qt;j({Container:{path:Z(function(s){return this.put(new fe).plot(s||new Qt)})}});H(fe,"Path");function wh(){return this._array||(this._array=new qt(this.attr("points")))}function xh(){return delete this._array,this}function bh(s,t){return this.attr("points",this.array().move(s,t))}function vh(s){return s==null?this.array():this.clear().attr("points",typeof s=="string"?s:this._array=new qt(s))}function Sh(s,t){const e=he(this,s,t);return this.attr("points",this.array().size(e.width,e.height))}const Bi=Object.freeze(Object.defineProperty({__proto__:null,array:wh,clear:xh,move:bh,plot:vh,size:Sh},Symbol.toStringTag,{value:"Module"}));class Te extends bt{constructor(t,e=t){super(K("polygon",t),e)}}j({Container:{polygon:Z(function(s){return this.put(new Te).plot(s||new qt)})}});J(Te,ks);J(Te,Bi);H(Te,"Polygon");class Re extends bt{constructor(t,e=t){super(K("polyline",t),e)}}j({Container:{polyline:Z(function(s){return this.put(new Re).plot(s||new qt)})}});J(Re,ks);J(Re,Bi);H(Re,"Polyline");class Ue extends bt{constructor(t,e=t){super(K("rect",t),e)}}J(Ue,{rx:Ns,ry:Os});j({Container:{rect:Z(function(s,t){return this.put(new Ue).size(s,t)})}});H(Ue,"Rect");class hs{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=typeof t.next<"u"?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const G={nextDraw:null,frames:new hs,timeouts:new hs,immediates:new hs,timer:()=>B.window.performance||B.window.Date,transforms:[],frame(s){const t=G.frames.push({run:s});return G.nextDraw===null&&(G.nextDraw=B.window.requestAnimationFrame(G._draw)),t},timeout(s,t){t=t||0;const e=G.timer().now()+t,i=G.timeouts.push({run:s,time:e});return G.nextDraw===null&&(G.nextDraw=B.window.requestAnimationFrame(G._draw)),i},immediate(s){const t=G.immediates.push(s);return G.nextDraw===null&&(G.nextDraw=B.window.requestAnimationFrame(G._draw)),t},cancelFrame(s){s!=null&&G.frames.remove(s)},clearTimeout(s){s!=null&&G.timeouts.remove(s)},cancelImmediate(s){s!=null&&G.immediates.remove(s)},_draw(s){let t=null;const e=G.timeouts.last();for(;(t=G.timeouts.shift())&&(s>=t.time?t.run():G.timeouts.push(t),t!==e););let i=null;const n=G.frames.last();for(;i!==n&&(i=G.frames.shift());)i.run(s);let r=null;for(;r=G.immediates.shift();)r();G.nextDraw=G.timeouts.first()||G.frames.first()?B.window.requestAnimationFrame(G._draw):null}},Th=function(s){const t=s.start,e=s.runner.duration(),i=t+e;return{start:t,duration:e,end:i,runner:s.runner}},Rh=function(){const s=B.window;return(s.performance||s.Date).now()};class Hi extends be{constructor(t=Rh){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map(e=>e.start+e.runner.duration());return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return t==null?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(t==null)return this.speed(-e);const i=Math.abs(e);return this.speed(t?-i:i)}schedule(t,e,i){if(t==null)return this._runners.map(Th);let n=0;const r=this.getEndTime();if(e=e||0,i==null||i==="last"||i==="after")n=r;else if(i==="absolute"||i==="start")n=e,e=0;else if(i==="now")n=this._time;else if(i==="relative"){const l=this.getRunnerInfoById(t.id);l&&(n=l.start+e,e=0)}else if(i==="with-last"){const l=this.getLastRunnerInfo();n=l?l.start:this._time}else throw new Error('Invalid value for the "when" parameter');t.unschedule(),t.timeline(this);const o=t.persist(),f={persist:o===null?this._persist:o,start:n+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(f),this._runners.sort((l,_)=>l.start-_.start),this._runnerIds=this._runners.map(l=>l.runner.id),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return t==null?this._timeSource:(this._timeSource=t,this)}speed(t){return t==null?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return t==null?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0?this:(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null),this)}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return G.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():this._paused?this:(this._nextFrame=G.frame(this._step),this)}_stepFn(t=!1){const e=this._timeSource();let i=e-this._lastSourceTime;t&&(i=0);const n=this._speed*i+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=n,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let o=this._runners.length;o--;){const f=this._runners[o],l=f.runner;this._time-f.start<=0&&l.reset()}let r=!1;for(let o=0,f=this._runners.length;o<f;o++){const l=this._runners[o],_=l.runner;let u=n;const m=this._time-l.start;if(m<=0){r=!0;continue}else m<u&&(u=m);if(!_.active())continue;_.step(u).done?l.persist!==!0&&_.duration()-_.time()+this._time+l.persist<this._time&&(_.unschedule(),--o,--f):r=!0}return r&&!(this._speed<0&&this._time===0)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}j({Element:{timeline:function(s){return s==null?(this._timeline=this._timeline||new Hi,this._timeline):(this._timeline=s,this)}}});class xt extends be{constructor(t){super(),this.id=xt.id++,t=t??de.duration,t=typeof t=="function"?new De(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration=typeof t=="number"&&t,this._isDeclarative=t instanceof De,this._stepper=this._isDeclarative?t:new cs,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new N,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=this._isDeclarative?!0:null}static sanitise(t,e,i){let n=1,r=!1,o=0;return t=t??de.duration,e=e??de.delay,i=i||"last",typeof t=="object"&&!(t instanceof zs)&&(e=t.delay??e,i=t.when??i,r=t.swing||r,n=t.times??n,o=t.wait??o,t=t.duration??de.duration),{duration:t,delay:e,swing:r,times:n,wait:o,when:i}}active(t){return t==null?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,i){const n=xt.sanitise(t,e,i),r=new xt(n.duration);return this._timeline&&r.timeline(this._timeline),this._element&&r.element(this._element),r.loop(n).schedule(n.delay,n.when)}clearTransform(){return this.transforms=new N,this}clearTransformsFromQueue(){(!this.done||!this._timeline||!this._timeline._runnerIds.includes(this.id))&&(this._queue=this._queue.filter(t=>!t.isTransform))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new cs(t),this}element(t){return t==null?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,i){return typeof t=="object"&&(e=t.swing,i=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=i||0,this._times===!0&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(t==null){const o=Math.floor(this._time/e),l=(this._time-o*e)/this._duration;return Math.min(o+l,this._times)}const i=Math.floor(t),n=t%1,r=e*i+this._duration*n;return this.time(r)}persist(t){return t==null?this._persist:(this._persist=t,this)}position(t){const e=this._time,i=this._duration,n=this._wait,r=this._times,o=this._swing,f=this._reverse;let l;if(t==null){const O=function(C){const A=o*Math.floor(C%(2*(n+i))/(n+i)),k=A&&!f||!A&&f,F=Math.pow(-1,k)*(C%(n+i))/i+k;return Math.max(Math.min(F,1),0)},L=r*(n+i)-n;return l=e<=0?Math.round(O(1e-5)):e<L?O(e):Math.round(O(L-1e-5)),l}const _=Math.floor(this.loops()),u=o&&_%2===0;return l=_+(u&&!f||f&&u?t:1-t),this.loops(l)}progress(t){return t==null?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,i,n){return this._queue.push({initialiser:t||ci,runner:e||ci,retarget:i,isTransform:n,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted?this:(this.time(0),this._reseted=!0,this)}reverse(t){return this._reverse=t??!this._reverse,this}schedule(t,e,i){if(t instanceof Hi||(i=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,i),this}step(t){if(!this.enabled)return this;t=t??16,this._time+=t;const e=this.position(),i=this._lastPosition!==e&&this._time>=0;this._lastPosition=e;const n=this.duration(),r=this._lastTime<=0&&this._time>0,o=this._lastTime<n&&this._time>=n;this._lastTime=this._time,r&&this.fire("start",this);const f=this._isDeclarative;this.done=!f&&!o&&this._time>=n,this._reseted=!1;let l=!1;return(i||f)&&(this._initialise(i),this.transforms=new N,l=this._run(f?t:e),this.fire("step",this)),this.done=this.done||l&&f,o&&this.fire("finished",this),this}time(t){if(t==null)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return typeof t>"u"?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(!(!t&&!this._isDeclarative))for(let e=0,i=this._queue.length;e<i;++e){const n=this._queue[e],r=this._isDeclarative||!n.initialised&&t;t=!n.finished,r&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const i=this.timeline();i&&i.play()}}_run(t){let e=!0;for(let i=0,n=this._queue.length;i<n;++i){const r=this._queue[i],o=r.runner.call(this,t);r.finished=r.finished||o===!0,e=e&&r.finished}return e}_tryRetarget(t,e,i){if(this._history[t]){if(!this._history[t].caller.initialised){const r=this._queue.indexOf(this._history[t].caller);return this._queue.splice(r,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,i):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const n=this.timeline();return n&&n.play(),!0}return!1}}xt.id=0;class Le{constructor(t=new N,e=-1,i=!0){this.transforms=t,this.id=e,this.done=i}clearTransformsFromQueue(){}}J([xt,Le],{mergeWith(s){return new Le(s.transforms.lmultiply(this.transforms),s.id)}});const Ui=(s,t)=>s.lmultiplyO(t),Gi=s=>s.transforms;function Ah(){const t=this._transformationRunners.runners.map(Gi).reduce(Ui,new N);this.transform(t),this._transformationRunners.merge(),this._transformationRunners.length()===1&&(this._frameId=null)}class Ch{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new Le).forEach(i=>i.clearTransformsFromQueue()),this}edit(t,e){const i=this.ids.indexOf(t+1);return this.ids.splice(i,1,t+1),this.runners.splice(i,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let e=0;e<this.runners.length;++e){const i=this.runners[e];if(t&&i.done&&t.done&&(!i._timeline||!i._timeline._runnerIds.includes(i.id))&&(!t._timeline||!t._timeline._runnerIds.includes(t.id))){this.remove(i.id);const r=i.mergeWith(t);this.edit(t.id,r),t=r,--e}else t=i}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}j({Element:{animate(s,t,e){const i=xt.sanitise(s,t,e),n=this.timeline();return new xt(i.duration).loop(i).element(this).timeline(n.play()).schedule(i.delay,i.when)},delay(s,t){return this.animate(0,s,t)},_clearTransformRunnersBefore(s){this._transformationRunners.clearBefore(s.id)},_currentTransform(s){return this._transformationRunners.runners.filter(t=>t.id<=s.id).map(Gi).reduce(Ui,new N)},_addRunner(s){this._transformationRunners.add(s),G.cancelImmediate(this._frameId),this._frameId=G.immediate(Ah.bind(this))},_prepareRunner(){this._frameId==null&&(this._transformationRunners=new Ch().add(new Le(new N(this))))}}});const Eh=(s,t)=>s.filter(e=>!t.includes(e));J(xt,{attr(s,t){return this.styleAttr("attr",s,t)},css(s,t){return this.styleAttr("css",s,t)},styleAttr(s,t,e){if(typeof t=="string")return this.styleAttr(s,{[t]:e});let i=t;if(this._tryRetarget(s,i))return this;let n=new Yt(this._stepper).to(i),r=Object.keys(i);return this.queue(function(){n=n.from(this.element()[s](r))},function(o){return this.element()[s](n.at(o).valueOf()),n.done()},function(o){const f=Object.keys(o),l=Eh(f,r);if(l.length){const u=this.element()[s](l),m=new ye(n.from()).valueOf();Object.assign(m,u),n.from(m)}const _=new ye(n.to()).valueOf();Object.assign(_,o),n.to(_),r=f,i=o}),this._rememberMorpher(s,n),this},zoom(s,t){if(this._tryRetarget("zoom",s,t))return this;let e=new Yt(this._stepper).to(new I(s));return this.queue(function(){e=e.from(this.element().zoom())},function(i){return this.element().zoom(e.at(i),t),e.done()},function(i,n){t=n,e.to(i)}),this._rememberMorpher("zoom",e),this},transform(s,t,e){if(t=s.relative||t,this._isDeclarative&&!t&&this._tryRetarget("transform",s))return this;const i=N.isMatrixLike(s);e=s.affine!=null?s.affine:e??!i;const n=new Yt(this._stepper).type(e?Se:N);let r,o,f,l,_;function u(){o=o||this.element(),r=r||as(s,o),_=new N(t?void 0:o),o._addRunner(this),t||o._clearTransformRunnersBefore(this)}function m(L){t||this.clearTransform();const{x:C,y:A}=new V(r).transform(o._currentTransform(this));let k=new N({...s,origin:[C,A]}),F=this._isDeclarative&&f?f:_;if(e){k=k.decompose(C,A),F=F.decompose(C,A);const ot=k.rotate,it=F.rotate,lt=[ot-360,ot,ot+360],vt=lt.map(Q=>Math.abs(Q-it)),Ot=Math.min(...vt),kt=vt.indexOf(Ot);k.rotate=lt[kt]}t&&(i||(k.rotate=s.rotate||0),this._isDeclarative&&l&&(F.rotate=l)),n.from(F),n.to(k);const X=n.at(L);return l=X.rotate,f=new N(X),this.addTransform(f),o._addRunner(this),n.done()}function O(L){(L.origin||"center").toString()!==(s.origin||"center").toString()&&(r=as(L,o)),s={...L,origin:r}}return this.queue(u,m,O,!0),this._isDeclarative&&this._rememberMorpher("transform",n),this},x(s){return this._queueNumber("x",s)},y(s){return this._queueNumber("y",s)},ax(s){return this._queueNumber("ax",s)},ay(s){return this._queueNumber("ay",s)},dx(s=0){return this._queueNumberDelta("x",s)},dy(s=0){return this._queueNumberDelta("y",s)},dmove(s,t){return this.dx(s).dy(t)},_queueNumberDelta(s,t){if(t=new I(t),this._tryRetarget(s,t))return this;const e=new Yt(this._stepper).to(t);let i=null;return this.queue(function(){i=this.element()[s](),e.from(i),e.to(i+t)},function(n){return this.element()[s](e.at(n)),e.done()},function(n){e.to(i+new I(n))}),this._rememberMorpher(s,e),this},_queueObject(s,t){if(this._tryRetarget(s,t))return this;const e=new Yt(this._stepper).to(t);return this.queue(function(){e.from(this.element()[s]())},function(i){return this.element()[s](e.at(i)),e.done()}),this._rememberMorpher(s,e),this},_queueNumber(s,t){return this._queueObject(s,new I(t))},cx(s){return this._queueNumber("cx",s)},cy(s){return this._queueNumber("cy",s)},move(s,t){return this.x(s).y(t)},amove(s,t){return this.ax(s).ay(t)},center(s,t){return this.cx(s).cy(t)},size(s,t){let e;return(!s||!t)&&(e=this._element.bbox()),s||(s=e.width/e.height*t),t||(t=e.height/e.width*s),this.width(s).height(t)},width(s){return this._queueNumber("width",s)},height(s){return this._queueNumber("height",s)},plot(s,t,e,i){if(arguments.length===4)return this.plot([s,t,e,i]);if(this._tryRetarget("plot",s))return this;const n=new Yt(this._stepper).type(this._element.MorphArray).to(s);return this.queue(function(){n.from(this._element.array())},function(r){return this._element.plot(n.at(r)),n.done()}),this._rememberMorpher("plot",n),this},leading(s){return this._queueNumber("leading",s)},viewbox(s,t,e,i){return this._queueObject("viewbox",new ut(s,t,e,i))},update(s){return typeof s!="object"?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(s.opacity!=null&&this.attr("stop-opacity",s.opacity),s.color!=null&&this.attr("stop-color",s.color),s.offset!=null&&this.attr("offset",s.offset),this)}});J(xt,{rx:Ns,ry:Os,from:Ji,to:qi});H(xt,"Runner");class $s extends yt{constructor(t,e=t){super(K("svg",t),e),this.namespace()}defs(){return this.isRoot()?Rt(this.node.querySelector("defs"))||this.put(new Es):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof B.window.SVGElement)&&this.node.parentNode.nodeName!=="#document-fragment"}namespace(){return this.isRoot()?this.attr({xmlns:Ss,version:"1.1"}).attr("xmlns:xlink",xe,ss):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,ss).attr("xmlns:svgjs",null,ss)}root(){return this.isRoot()?this:super.root()}}j({Container:{nested:Z(function(){return this.put(new $s)})}});H($s,"Svg",!0);let Is=class extends yt{constructor(t,e=t){super(K("symbol",t),e)}};j({Container:{symbol:Z(function(){return this.put(new Is)})}});H(Is,"Symbol");function Nh(s){return this._build===!1&&this.clear(),this.node.appendChild(B.document.createTextNode(s)),this}function Oh(){return this.node.getComputedTextLength()}function kh(s,t=this.bbox()){return s==null?t.x:this.attr("x",this.attr("x")+s-t.x)}function zh(s,t=this.bbox()){return s==null?t.y:this.attr("y",this.attr("y")+s-t.y)}function Mh(s,t,e=this.bbox()){return this.x(s,e).y(t,e)}function $h(s,t=this.bbox()){return s==null?t.cx:this.attr("x",this.attr("x")+s-t.cx)}function Ih(s,t=this.bbox()){return s==null?t.cy:this.attr("y",this.attr("y")+s-t.cy)}function jh(s,t,e=this.bbox()){return this.cx(s,e).cy(t,e)}function Dh(s){return this.attr("x",s)}function Lh(s){return this.attr("y",s)}function Ph(s,t){return this.ax(s).ay(t)}function Jh(s){return this._build=!!s,this}const Yi=Object.freeze(Object.defineProperty({__proto__:null,amove:Ph,ax:Dh,ay:Lh,build:Jh,center:jh,cx:$h,cy:Ih,length:Oh,move:Mh,plain:Nh,x:kh,y:zh},Symbol.toStringTag,{value:"Module"}));class Ct extends bt{constructor(t,e=t){super(K("text",t),e),this.dom.leading=this.dom.leading??new I(1.3),this._rebuild=!0,this._build=!1}leading(t){return t==null?this.dom.leading:(this.dom.leading=new I(t),this.rebuild())}rebuild(t){if(typeof t=="boolean"&&(this._rebuild=t),this._rebuild){const e=this;let i=0;const n=this.dom.leading;this.each(function(r){if(us(this.node))return;const o=B.window.getComputedStyle(this.node).getPropertyValue("font-size"),f=n*new I(o);this.dom.newLined&&(this.attr("x",e.attr("x")),this.text()===`
|
|
8
|
+
`?i+=f:(this.attr("dy",r?f+i:0),i=0))}),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new I(t.leading||1.3),this}writeDataToDom(){return Ti(this,this.dom,{leading:1.3}),this}text(t){if(t===void 0){const e=this.node.childNodes;let i=0;t="";for(let n=0,r=e.length;n<r;++n){if(e[n].nodeName==="textPath"||us(e[n])){n===0&&(i=n+1);continue}n!==i&&e[n].nodeType!==3&&Rt(e[n]).dom.newLined===!0&&(t+=`
|
|
9
|
+
`),t+=e[n].textContent}return t}if(this.clear().build(!0),typeof t=="function")t.call(this,this);else{t=(t+"").split(`
|
|
10
|
+
`);for(let e=0,i=t.length;e<i;e++)this.newLine(t[e])}return this.build(!1).rebuild()}}J(Ct,Yi);j({Container:{text:Z(function(s=""){return this.put(new Ct).text(s)}),plain:Z(function(s=""){return this.put(new Ct).plain(s)})}});H(Ct,"Text");class Ge extends bt{constructor(t,e=t){super(K("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof Ct))return this;const e=t.index(this),i=B.window.getComputedStyle(this.node).getPropertyValue("font-size"),n=t.dom.leading*new I(i);return this.dy(e?n:0).attr("x",t.x())}text(t){return t==null?this.node.textContent+(this.dom.newLined?`
|
|
11
|
+
`:""):(typeof t=="function"?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}J(Ge,Yi);j({Tspan:{tspan:Z(function(s=""){const t=new Ge;return this._build||this.clear(),this.put(t).text(s)})},Text:{newLine:function(s=""){return this.tspan(s).newLine()}}});H(Ge,"Tspan");class js extends bt{constructor(t,e=t){super(K("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new I(t).divide(2))}}J(js,{x:Mi,y:$i,cx:Ii,cy:ji,width:Di,height:Li});j({Container:{circle:Z(function(s=0){return this.put(new js).size(s).move(0,0)})}});H(js,"Circle");class ms extends yt{constructor(t,e=t){super(K("clipPath",t),e)}remove(){return this.targets().forEach(function(t){t.unclip()}),super.remove()}targets(){return oe("svg [clip-path*="+this.id()+"]")}}j({Container:{clip:Z(function(){return this.defs().put(new ms)})},Element:{clipper(){return this.reference("clip-path")},clipWith(s){const t=s instanceof ms?s:this.parent().clip().add(s);return this.attr("clip-path","url(#"+t.id()+")")},unclip(){return this.attr("clip-path",null)}}});H(ms,"ClipPath");class Wi extends Nt{constructor(t,e=t){super(K("foreignObject",t),e)}}j({Container:{foreignObject:Z(function(s,t){return this.put(new Wi).size(s,t)})}});H(Wi,"ForeignObject");function qh(s,t){return this.children().forEach(e=>{let i;try{i=e.node instanceof Un().SVGSVGElement?new ut(e.attr(["x","y","width","height"])):e.bbox()}catch{return}const n=new N(e),r=n.translate(s,t).transform(n.inverse()),o=new V(i.x,i.y).transform(r);e.move(o.x,o.y)}),this}function Fh(s){return this.dmove(s,0)}function Bh(s){return this.dmove(0,s)}function Hh(s,t=this.bbox()){return s==null?t.height:this.size(t.width,s,t)}function Uh(s=0,t=0,e=this.bbox()){const i=s-e.x,n=t-e.y;return this.dmove(i,n)}function Gh(s,t,e=this.bbox()){const i=he(this,s,t,e),n=i.width/e.width,r=i.height/e.height;return this.children().forEach(o=>{const f=new V(e).transform(new N(o).inverse());o.scale(n,r,f.x,f.y)}),this}function Yh(s,t=this.bbox()){return s==null?t.width:this.size(s,t.height,t)}function Wh(s,t=this.bbox()){return s==null?t.x:this.move(s,t.y,t)}function Vh(s,t=this.bbox()){return s==null?t.y:this.move(t.x,s,t)}const Vi=Object.freeze(Object.defineProperty({__proto__:null,dmove:qh,dx:Fh,dy:Bh,height:Hh,move:Uh,size:Gh,width:Yh,x:Wh,y:Vh},Symbol.toStringTag,{value:"Module"}));class Ds extends yt{constructor(t,e=t){super(K("g",t),e)}}J(Ds,Vi);j({Container:{group:Z(function(){return this.put(new Ds)})}});H(Ds,"G");class Pe extends yt{constructor(t,e=t){super(K("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,xe)}}J(Pe,Vi);j({Container:{link:Z(function(s){return this.put(new Pe).to(s)})},Element:{unlink(){const s=this.linker();if(!s)return this;const t=s.parent();if(!t)return this.remove();const e=t.index(s);return t.add(this,e),s.remove(),this},linkTo(s){let t=this.linker();return t||(t=new Pe,this.wrap(t)),typeof s=="function"?s.call(t,t):t.to(s),this},linker(){const s=this.parent();return s&&s.node.nodeName.toLowerCase()==="a"?s:null}}});H(Pe,"A");class ys extends yt{constructor(t,e=t){super(K("mask",t),e)}remove(){return this.targets().forEach(function(t){t.unmask()}),super.remove()}targets(){return oe("svg [mask*="+this.id()+"]")}}j({Container:{mask:Z(function(){return this.defs().put(new ys)})},Element:{masker(){return this.reference("mask")},maskWith(s){const t=s instanceof ys?s:this.parent().mask().add(s);return this.attr("mask","url(#"+t.id()+")")},unmask(){return this.attr("mask",null)}}});H(ys,"Mask");class Xi extends Nt{constructor(t,e=t){super(K("stop",t),e)}update(t){return(typeof t=="number"||t instanceof I)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),t.opacity!=null&&this.attr("stop-opacity",t.opacity),t.color!=null&&this.attr("stop-color",t.color),t.offset!=null&&this.attr("offset",new I(t.offset)),this}}j({Gradient:{stop:function(s,t,e){return this.put(new Xi).update(s,t,e)}}});H(Xi,"Stop");function Xh(s,t){if(!s)return"";if(!t)return s;let e=s+"{";for(const i in t)e+=Fn(i)+":"+t[i]+";";return e+="}",e}class ws extends Nt{constructor(t,e=t){super(K("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,i={}){return this.rule("@font-face",{fontFamily:t,src:e,...i})}rule(t,e){return this.addText(Xh(t,e))}}j("Dom",{style(s,t){return this.put(new ws).rule(s,t)},fontface(s,t,e){return this.put(new ws).font(s,t,e)}});H(ws,"Style");class Ls extends Ct{constructor(t,e=t){super(K("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let i=null;return e&&(i=e.plot(t)),t==null?i:this}track(){return this.reference("href")}}j({Container:{textPath:Z(function(s,t){return s instanceof Ct||(s=this.text(s)),s.path(t)})},Text:{path:Z(function(s,t=!0){const e=new Ls;s instanceof fe||(s=this.defs().path(s)),e.attr("href","#"+s,xe);let i;if(t)for(;i=this.node.firstChild;)e.node.appendChild(i);return this.put(e)}),textPath(){return this.findOne("textPath")}},Path:{text:Z(function(s){return s instanceof Ct||(s=new Ct().addTo(this.parent()).text(s)),s.path(this)}),targets(){return oe("svg textPath").filter(s=>(s.attr("href")||"").includes(this.id()))}}});Ls.prototype.MorphArray=Qt;H(Ls,"TextPath");class Qi extends bt{constructor(t,e=t){super(K("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,xe)}}j({Container:{use:Z(function(s,t){return this.put(new Qi).use(s,t)})}});H(Qi,"Use");const Qh=dt;J([$s,Is,He,ge,je],mt("viewbox"));J([me,Re,Te,fe],mt("marker"));J(Ct,mt("Text"));J(fe,mt("Path"));J(Es,mt("Defs"));J([Ct,Ge],mt("Tspan"));J([Ue,Be,ve,xt],mt("radius"));J(be,mt("EventTarget"));J(Jt,mt("Dom"));J(Nt,mt("Element"));J(bt,mt("Shape"));J([yt,Pi],mt("Container"));J(ve,mt("Gradient"));J(xt,mt("Runner"));Xt.extend(Jn());mh([I,W,ut,N,re,qt,Qt,V]);yh();const Zh=`
|
|
12
|
+
svg {
|
|
13
|
+
background-color: #fff;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.root text,
|
|
17
|
+
.root tspan {
|
|
18
|
+
font: 12px Arial;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.root path {
|
|
22
|
+
fill-opacity: 0;
|
|
23
|
+
stroke-width: 2px;
|
|
24
|
+
stroke: #000;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.root circle {
|
|
28
|
+
fill: #6b6659;
|
|
29
|
+
stroke-width: 2px;
|
|
30
|
+
stroke: #000;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.anchor text,
|
|
34
|
+
.any-character text {
|
|
35
|
+
fill: #fff;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.anchor rect,
|
|
39
|
+
.any-character rect {
|
|
40
|
+
fill: #6b6659;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.escape text,
|
|
44
|
+
.charset-escape text,
|
|
45
|
+
.literal text {
|
|
46
|
+
fill: #000;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.escape rect,
|
|
50
|
+
.charset-escape rect {
|
|
51
|
+
fill: #bada55;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.literal rect {
|
|
55
|
+
fill: #dae9e5;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.charset .charset-box {
|
|
59
|
+
fill: #cbcbba;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.subexp .subexp-label tspan,
|
|
63
|
+
.charset .charset-label tspan,
|
|
64
|
+
.match-fragment .repeat-label tspan {
|
|
65
|
+
font-size: 10px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.repeat-label {
|
|
69
|
+
cursor: help;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.subexp .subexp-label tspan,
|
|
73
|
+
.charset .charset-label tspan {
|
|
74
|
+
dominant-baseline: text-after-edge;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.subexp .subexp-box {
|
|
78
|
+
stroke: #bfbfbf;
|
|
79
|
+
stroke-dasharray: 6, 2;
|
|
80
|
+
stroke-width: 2px;
|
|
81
|
+
fill-opacity: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.quote {
|
|
85
|
+
fill: #8c8c8c;
|
|
86
|
+
}
|
|
87
|
+
`.trim();function Zi(s){const t=s.bbox(),e=s.matrix();return t.transform(e)}function Kh(s){return new Promise(t=>{setTimeout(t,s)})}function to(){return Kh(0)}function Wt(s){const t=s;return t.ax==null&&(t.ax=s.x),t.ax2==null&&(t.ax2=s.x2),t.ay==null&&(t.ay=s.cy),t}function Ki(s,t){const e=s.map(n=>({bbox:Wt(n.bbox()),node:n})),i=e.reduce((n,{bbox:r})=>Math.max(n,r.ay),0);e.reduce((n,{node:r,bbox:o})=>(r.translate(n,i-o.ay),n+t+o.width),0)}function tn(s,t){const e=s.map(n=>({bbox:n.bbox(),node:n})),i=e.reduce((n,{bbox:r})=>Math.max(n,r.cx),0);e.reduce((n,{node:r,bbox:o})=>(r.translate(i-o.cx,n),n+t+o.height),0)}var ce=globalThis&&globalThis.__awaiter||function(s,t,e,i){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function f(u){try{_(i.next(u))}catch(m){o(m)}}function l(u){try{_(i.throw(u))}catch(m){o(m)}}function _(u){u.done?r(u.value):n(u.value).then(f,l)}_((i=i.apply(s,t||[])).next())})};class wt{constructor(t,e){this.metadata=t,this.state=e instanceof wt?e.state:e}get type(){return this.metadata.type}get text(){return this.metadata.text}get offset(){return this.metadata.offset}get elements(){return this.metadata.elements}get anchor(){return{}}getAnchor(){return this.proxy?this.proxy.getAnchor():this.anchor}bbox(){const t=Zi(this.container),e=this.getAnchor();return Object.assign(Wt(t),e)}translate(t,e){return this.container.translate(t,e)}defer(t){return ce(this,void 0,void 0,function*(){if(yield to(),this.state.cancelRender)throw new Error("Render cancelled");return t})}render(t){return ce(this,void 0,void 0,function*(){return t&&(this.container=t,this.container.addClass(this.type)),this.proxy?this.proxy.render(this.container):(this.state.inc(),yield this.renderNode(),this.state.dec(),this)})}renderNode(){return ce(this,void 0,void 0,function*(){})}renderLabel(t,e={}){return ce(this,void 0,void 0,function*(){const i=this.container.group().addClass("label"),n=i.rect(),r=this.renderText(i,t);e.className&&i.addClass(e.className),yield this.defer();const o=r.bbox(),f=5;return r.translate(f,o.height/2+2*f),n.attr({width:o.width+2*f,height:o.height+2*f}),e.round&&n.attr({rx:e.round,ry:e.round}),i})}renderLabeledBox(t,e,i=0){return ce(this,void 0,void 0,function*(){const n=this.renderText(this.container,t),r=this.container.rect().attr({rx:3,ry:3});n.addClass(`${this.type}-label`).back(),r.addClass(`${this.type}-box`).back(),yield this.defer();const o=n.bbox(),f=e.bbox(),l=Math.max(f.width+i*2,o.width),_=f.height+i*2;n.translate(0,o.height),r.translate(0,o.height).attr({width:l,height:_}),e.translate(l/2-f.cx,o.height+i)})}renderText(t,e){const i=Array.isArray(e)?e:[e];return t.text(n=>{i.forEach(r=>n.tspan(r))})}}var eo=globalThis&&globalThis.__awaiter||function(s,t,e,i){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function f(u){try{_(i.next(u))}catch(m){o(m)}}function l(u){try{_(i.throw(u))}catch(m){o(m)}}function _(u){u.done?r(u.value):n(u.value).then(f,l)}_((i=i.apply(s,t||[])).next())})};class so extends wt{constructor(){super(...arguments),this.label=this.text==="^"?"Start of line":"End of line"}renderNode(){return eo(this,void 0,void 0,function*(){yield this.renderLabel(this.label,{className:this.type,round:3})})}}var io=globalThis&&globalThis.__awaiter||function(s,t,e,i){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function f(u){try{_(i.next(u))}catch(m){o(m)}}function l(u){try{_(i.throw(u))}catch(m){o(m)}}function _(u){u.done?r(u.value):n(u.value).then(f,l)}_((i=i.apply(s,t||[])).next())})};class no extends wt{constructor(){super(...arguments),this.label="any character"}renderNode(){return io(this,void 0,void 0,function*(){yield this.renderLabel(this.label,{round:3})})}}function ro(s){let t=s.toString(16).toUpperCase();return t.length<2&&(t=`0${t}`),`(0x${t})`}const en={b:["word boundary",-1,!1],B:["non-word boundary",-1,!1],d:["digit",-1,!1],D:["non-digit",-1,!1],f:["form feed",12,!0],n:["line feed",10,!0],r:["carriage return",13,!0],s:["white space",-1,!1],S:["non-white space",-1,!1],t:["tab",9,!0],v:["vertical tab",11,!0],w:["word",-1,!1],W:["non-word",-1,!1],1:["Back reference (group = 1)",-1,!1],2:["Back reference (group = 2)",-1,!1],3:["Back reference (group = 3)",-1,!1],4:["Back reference (group = 4)",-1,!1],5:["Back reference (group = 5)",-1,!1],6:["Back reference (group = 6)",-1,!1],7:["Back reference (group = 7)",-1,!1],8:["Back reference (group = 8)",-1,!1],9:["Back reference (group = 9)",-1,!1],0(s){return s?[`octal: ${s}`,parseInt(s,8),!0]:["null",0,!0]},c(s){return[`ctrl-${s.toUpperCase()}`,s.toUpperCase().charCodeAt(0)-64,!0]},x(s){return[`0x${s.toUpperCase()}`,parseInt(s,16),!1]},u(s){return[`U+${s.toUpperCase()}`,parseInt(s,16),!1]}};function ho(s,t,e){const i=s[t];return typeof i=="function"?i(e):i}var oo=globalThis&&globalThis.__awaiter||function(s,t,e,i){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function f(u){try{_(i.next(u))}catch(m){o(m)}}function l(u){try{_(i.throw(u))}catch(m){o(m)}}function _(u){u.done?r(u.value):n(u.value).then(f,l)}_((i=i.apply(s,t||[])).next())})};class sn extends wt{constructor(t,e){super(t,e),this.mapping=en;const i=t.esc;this.code=i.code.text,this.arg=i.arg.text;const n=ho(this.mapping,this.code,this.arg);this.label=n[0],this.ordinal=n[1],n[2]&&(this.label=`${this.label} ${ro(this.ordinal)}`)}renderNode(){return oo(this,void 0,void 0,function*(){yield this.renderLabel(this.label,{round:3})})}}class fo extends sn{constructor(){super(...arguments),this.mapping=Object.assign(Object.assign({},en),{b:["backspace",8,!0]})}}var ao=globalThis&&globalThis.__awaiter||function(s,t,e,i){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function f(u){try{_(i.next(u))}catch(m){o(m)}}function l(u){try{_(i.throw(u))}catch(m){o(m)}}function _(u){u.done?r(u.value):n(u.value).then(f,l)}_((i=i.apply(s,t||[])).next())})};class Je extends wt{constructor(t,e){super(t,e);const i=t.literal;this.label=i.text,this.order=this.label.charCodeAt(0)}renderNode(){return ao(this,void 0,void 0,function*(){const t=["“",this.label,"”"],i=(yield this.renderLabel(t,{round:3})).find("tspan");i[0].addClass("quote"),i[2].addClass("quote")})}merge(t){this.label+=t.label}}var uo=globalThis&&globalThis.__awaiter||function(s,t,e,i){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function f(u){try{_(i.next(u))}catch(m){o(m)}}function l(u){try{_(i.throw(u))}catch(m){o(m)}}function _(u){u.done?r(u.value):n(u.value).then(f,l)}_((i=i.apply(s,t||[])).next())})};class lo extends wt{constructor(t,e){if(super(t,e),this.first=new Je(t.first,this),this.last=new Je(t.last,this),this.first.order>this.last.order)throw new Error(`Range out of order in character class: ${this.text}`)}renderNode(){return uo(this,void 0,void 0,function*(){const t=[this.first,this.container.text("-"),this.last];yield Promise.all([this.first.render(this.container.group()),this.last.render(this.container.group())]),Ki(t,5)})}}var co=globalThis&&globalThis.__awaiter||function(s,t,e,i){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function f(u){try{_(i.next(u))}catch(m){o(m)}}function l(u){try{_(i.throw(u))}catch(m){o(m)}}function _(u){u.done?r(u.value):n(u.value).then(f,l)}_((i=i.apply(s,t||[])).next())})};class _o extends wt{constructor(t,e){super(t,e);const i=t.parts,n=t.invert;this.label=n.text==="^"?"None of:":"One of:";const r=[],o=[];i.elements.forEach(f=>{const l=`${f.type}:${f.text}`;r.includes(l)||(r.push(l),o.push(f))}),this.parts=o.map(f=>this.createPartNode(f)),this.text.match(/\\c[^a-zA-Z]/)&&this.state.warnings.push(`The character set "${this.text}" contains the \\c escape followed by a character other than A-Z. This can lead to different behavior depending on browser. The representation here is the most common interpretation.`)}get anchor(){const t=this.container.matrix(),e=Zi(this.partContainer);return{ay:new V(0,e.cy).transform(t).y}}createPartNode(t){const e=t.type,i=e==="charset-range"?lo:e==="charset-escape"?fo:e==="literal"?Je:null;if(i)return new i(t,this);throw new Error(`Unknown node type: "${e}"`)}renderNode(){return co(this,void 0,void 0,function*(){this.partContainer=this.container.group(),yield Promise.all(this.parts.map(t=>t.render(this.partContainer.group()))),tn(this.parts,5),yield this.renderLabeledBox(this.label,this.partContainer,5)})}}function ee(s){return s===1?"once":`${s} times`}class po extends wt{constructor(t,e){super(t,e);const i=t.spec,n=t.greedy,{min:r,max:o}=i?i.specific():{min:-1,max:-2};this.greedy=n==null||n.text==="",this.hasSkip=r===0,this.hasLoop=o===-1||o>1,this.min=r,this.max=o}getContentOffset(){return this.hasSkip?{x:15,y:10}:this.hasLoop?{x:10,y:0}:{x:0,y:0}}getLabel(){const t=this.min,e=this.max;if(t===e)return t===0?void 0:ee(t-1);if(t<=1&&e>=2)return`at most ${ee(e-1)}`;if(t>=2)return e===-1?`${t-1}+ times`:`${t-1}…${ee(e-1)}`}getTooltip(){const t=this.min,e=this.max;let i;return t===e?t===0?i=void 0:i=ee(t):t<=1&&e>=2?i=`at most ${ee(e)}`:t>=2&&(e===-1?i=`${t}+ times`:i=`${t}…${ee(e)}`),i&&`repeats ${i} in total`}skipPath(t){const e=[];if(this.hasSkip){const i=Math.max(0,t.ay-t.y-10),n=t.width-10;e.push(`M0,${t.ay}q10,0 10,-10v${-i}q0,-10 10,-10h${n}q10,0 10,10v${i}q0,10 10,10`),this.greedy||e.push(`M10,${t.ay-15}l5,5m-5,-5l-5,5`)}return e}loopPath(t){const e=[];if(this.hasLoop){const i=t.y2-t.ay-10;e.push(`M${t.x},${t.ay}q-10,0 -10,10v${i}q0,10 10,10h${t.width}q10,0 10,-10v${-i}q0,-10 -10,-10`),this.greedy&&e.push(`M${t.x2+10},${t.ay+15}l5,-5m-5,5l-5,-5`)}return e}}var go=globalThis&&globalThis.__awaiter||function(s,t,e,i){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function f(u){try{_(i.next(u))}catch(m){o(m)}}function l(u){try{_(i.throw(u))}catch(m){o(m)}}function _(u){u.done?r(u.value):n(u.value).then(f,l)}_((i=i.apply(s,t||[])).next())})};const mo={"?:":"","?=":"positive lookahead","?!":"negative lookahead"};class yo extends wt{constructor(t,e){super(t,e),this.capture=t.capture,this.regexp=new nn(t.regexp,this),this.capture.text==="?:"&&(this.proxy=this.regexp)}get anchor(){const t=this.regexp.bbox(),e=this.container.matrix(),i=new V(t.ax,t.ay).transform(e),n=new V(t.ax2,t.ay).transform(e);return{ax:i.x,ax2:n.x,ay:i.y}}renderNode(){return go(this,void 0,void 0,function*(){const t=this.label();yield this.regexp.render(this.container.group()),yield this.renderLabeledBox(t,this.regexp,10)})}label(){const t=mo[this.capture.text];return t||(this.state.groupCounter+=1,`group #${this.state.groupCounter}`)}}var wo=globalThis&&globalThis.__awaiter||function(s,t,e,i){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function f(u){try{_(i.next(u))}catch(m){o(m)}}function l(u){try{_(i.throw(u))}catch(m){o(m)}}function _(u){u.done?r(u.value):n(u.value).then(f,l)}_((i=i.apply(s,t||[])).next())})};class xo extends wt{constructor(t,e){super(t,e),this.content=this.createContentNode(),this.repeat=new po(t.repeat,this),!this.repeat.hasLoop&&!this.repeat.hasSkip?(this.canMerge=this.content.type==="literal",this.proxy=this.content):this.canMerge=!1}createContentNode(){const t=this.metadata.content,e=t.type,i=e==="anchor"?so:e==="subexp"?yo:e==="charset"?_o:e==="any-character"?no:e==="escape"?sn:e==="literal"?Je:null;if(i)return new i(t,this);throw new Error(`Unknow match fragment type: "${e}"`)}get anchor(){const t=this.content.bbox(),e=this.container.matrix(),i=new V(t.ax,t.ay).transform(e),n=new V(t.ax2,t.ay).transform(e);return{ax:i.x,ax2:n.x,ay:i.y}}renderNode(){return wo(this,void 0,void 0,function*(){yield this.content.render(this.container.group());const{x:t,y:e}=this.repeat.getContentOffset();this.content.translate(t,e);const i=this.content.bbox(),n=[...this.repeat.skipPath(i),...this.repeat.loopPath(i)];this.container.path(n.join("")).back(),this.renderLoopLabel()})}renderLoopLabel(){const t=this.repeat.getLabel(),e=this.repeat.getTooltip();if(t){const i=this.container.text(t).addClass("repeat-label"),n=i.bbox(),r=this.bbox();if(e){const o=ne("title");this.container.text(e).addTo(o),i.add(o)}i.translate(r.x2-n.width-(this.repeat.hasSkip?5:0),r.y2+n.height)}}}var bo=globalThis&&globalThis.__awaiter||function(s,t,e,i){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function f(u){try{_(i.next(u))}catch(m){o(m)}}function l(u){try{_(i.throw(u))}catch(m){o(m)}}function _(u){u.done?r(u.value):n(u.value).then(f,l)}_((i=i.apply(s,t||[])).next())})};class vo extends wt{constructor(t,e){super(t,e);const i=this.metadata.parts;this.fragments=[];const n=this.fragments;i.elements.forEach(r=>{const o=n[n.length-1],f=new xo(r,this);o&&o.canMerge&&f.canMerge?o.content.merge(f.content):n.push(f)}),n.length===1&&(this.proxy=n[0])}get anchor(){const t=Wt(this.start.bbox()),e=Wt(this.end.bbox()),i=this.container.matrix(),n=new V(t.ax,t.ay).transform(i),r=new V(e.ax2,e.ay).transform(i);return{ax:n.x,ax2:r.x,ay:n.y}}renderNode(){return bo(this,void 0,void 0,function*(){const t=this.fragments.map(e=>e.render(this.container.group()));return t.length===0&&t.push(this.container.group().path("M0,0h10")),Promise.all(t).then(e=>{this.start=e[0],this.end=e[e.length-1],Ki(e,10),this.container.path(this.connectorPaths(e).join("")).back()})})}connectorPaths(t){let e=Wt(t[0].bbox()),i;return t.slice(1).map(n=>{i=Wt(n.bbox());const r=`M${e.ax2},${e.ay}H${i.ax}`;return e=i,r})}}var So=globalThis&&globalThis.__awaiter||function(s,t,e,i){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function f(u){try{_(i.next(u))}catch(m){o(m)}}function l(u){try{_(i.throw(u))}catch(m){o(m)}}function _(u){u.done?r(u.value):n(u.value).then(f,l)}_((i=i.apply(s,t||[])).next())})};class nn extends wt{constructor(t,e){super(t,e);const i=this.metadata.alternates;this.matches=[this.metadata.match].concat(i.elements.map(n=>n.match)).map(n=>new vo(n,this)),this.proxy=i.elements.length===0?this.matches[0]:null}renderNode(){return So(this,void 0,void 0,function*(){const t=this.container.group().addClass(`${this.type}-matches`).translate(20,0),e=this.matches;yield Promise.all(e.map(o=>o.render(t.group()))),tn(e,5);let i=this.bbox();const n=[];e.forEach(o=>n.push(...this.makeCurve(i,o))),n.push(...this.makeSide(i,e[0])),n.push(...this.makeSide(i,e[e.length-1])),this.container.path(n.join("")).back(),i=Wt(t.bbox());const r=e.map(o=>this.makeConnector(i,o));t.path(r.join("")).back()})}makeSide(t,e){const i=e.bbox();if(Math.abs(i.ay-t.cy)>=15){const r=i.ay>t.cy?10:-10,o=i.ay-r;return[`M0,${t.cy}q10,0 10,${r}V${o}`,`M${t.width+40},${t.cy}q-10,0 -10,${r}V${o}`]}}makeCurve(t,e){const i=e.bbox();if(Math.abs(i.ay-t.cy)>=15){const o=i.ay>t.cy?10:-10;return[`M10,${i.ay-o}q0,${o} 10,${o}`,`M${t.width+30},${i.ay-o}q0,${o} -10,${o}`]}const r=i.ay-t.cy;return[`M0,${t.cy}c10,0 10,${r} 20,${r}`,`M${t.width+40},${t.cy}c-10,0 -10,${r} -20,${r}`]}makeConnector(t,e){const i=e.bbox();return`M0,${i.ay}h${i.ax}M${i.ax2},${i.ay}H${t.width}`}}var To=globalThis&&globalThis.__awaiter||function(s,t,e,i){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function f(u){try{_(i.next(u))}catch(m){o(m)}}function l(u){try{_(i.throw(u))}catch(m){o(m)}}function _(u){u.done?r(u.value):n(u.value).then(f,l)}_((i=i.apply(s,t||[])).next())})};const Ro={i:"Ignore Case",g:"Global",m:"Multiline",y:"Sticky",u:"Unicode"};class Ao extends wt{constructor(t,e){super(t,e),this.regexp=new nn(this.metadata.regexp,this)}get flags(){return this.metadata.flags}renderNode(){return To(this,void 0,void 0,function*(){const t=[];this.flags.text.split("").forEach(o=>{t.includes(o)||t.push(o)});const e=t.sort().map(o=>Ro[o]);let i;e.length>0&&(i=this.container.text(`Flags: ${e.join(", ")}`)),yield this.regexp.render(this.container.group()),i?this.regexp.translate(10,i.bbox().height):this.regexp.translate(10,0);const n=this.regexp.bbox(),r=10;this.container.path(`M${n.ax},${n.ay}H0M${n.ax2},${n.ay}H${n.x2+10}`),this.container.circle(10).center(0,n.ay),this.container.circle(10).center(n.x2+r,n.ay)})}}class Co{constructor(t={}){this.groupCounter=0,this.cancelRender=!1,this.warnings=[],this.renderCounter=0,this.maxCounter=0,this.options=t}update(t){if(t>this.renderCounter&&(this.maxCounter=t),this.renderCounter=t,this.maxCounter&&!this.cancelRender){const e=this.options.onChange;if(e){const i=100-Math.round(100*this.renderCounter/this.maxCounter);e({progress:i})}}}inc(){this.update(this.renderCounter+1)}dec(){this.update(this.renderCounter-1)}}const Eo={specific(){return{min:0,max:-1}}},No={specific(){return{min:0,max:1}}},Oo={specific(){return{min:1,max:-1}}},ko={specific(){const s=this.min?+this.min.text:this.exact?+this.exact.text:0,t=this.max?+this.max.text:this.exact?+this.exact.text:-1;if(s>t&&t!==-1)throw new Error(`Numbers out of order: ${this.text}`);return{min:s,max:t}}};function zo(){return{Root:{type:"root"},Regexp:{type:"regexp"},Match:{type:"match"},MatchFragment:{type:"match-fragment"},Repeat:{type:"repeat"},RepeatSpec:ko,RepeatAny:Eo,RepeatOptional:No,RepeatRequired:Oo,Anchor:{type:"anchor"},Subexp:{type:"subexp"},Charset:{type:"charset"},CharsetRange:{type:"charset-range"},CharsetEscape:{type:"charset-escape"},Escape:{type:"escape"},Literal:{type:"literal"},AnyCharacter:{type:"any-character"}}}var Mo=globalThis&&globalThis.__awaiter||function(s,t,e,i){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function f(u){try{_(i.next(u))}catch(m){o(m)}}function l(u){try{_(i.throw(u))}catch(m){o(m)}}function _(u){u.done?r(u.value):n(u.value).then(f,l)}_((i=i.apply(s,t||[])).next())})};function $o(s,t,e={}){return Mo(this,void 0,void 0,function*(){const i=new Co(e),n=zo(),r=typeof s=="string"?s:s.toString(),o=Pn.parse(r,{types:n}),f=new Ao(o,i),l=Qh(t);l.defs().style().add(document.createTextNode(Zh)),yield f.render(l.group());const _=f.bbox();return f.translate(10-_.x,10-_.y),l.size(_.width+20,_.height+20),f})}function Io(s,t,e){let i=-1;const n=new RegExp(s,e),r=[];let o=n.exec(t);for(;o!==null&&!(n.lastIndex===i||o[0]==="");){const f=o.indices,l=[];Object.entries(o).forEach(([u,m])=>{u!=="0"&&u.match(/\d+/)&&l.push({name:u,value:m,start:f[Number(u)][0],end:f[Number(u)][1]})});const _=[];Object.entries(o.groups||{}).forEach(([u,m])=>{_.push({name:u,value:m,start:f.groups[u][0],end:f.groups[u][1]})}),r.push({index:o.index,value:o[0],captures:l,groups:_}),i=n.lastIndex,o=n.exec(t)}return r}const jo={"max-w-600px":""},Do=["title"],Lo=["title"],Po=["title"],Jo=["title"],qo=["title"],Fo=["title"],Bo={scope:"col"},Ho={scope:"col"},Uo={scope:"col"},Go={scope:"col"},Yo={style:{"white-space":"pre-wrap","word-break":"break-all"}},rf=pi({__name:"regex-tester",setup(s){const t=bn({name:"regex",storageName:"regex-tester:regex",defaultValue:""}),e=Dt(""),i=Dt(!0),n=Dt(!1),r=Dt(!1),o=Dt(!0),f=Dt(!0),l=Dt(!1),_=Dt(),{t:u}=pn(),m=dn({source:t,rules:[{message:u("tools.regex-tester.invalidRegex"),validator:C=>{try{return!!new RegExp(C)}catch{return!1}},getErrorMessage:C=>{try{new RegExp(C)}catch(A){return A.message}return""}}]}),O=os(()=>{let C="d";i.value&&(C+="g"),n.value&&(C+="i"),r.value&&(C+="m"),o.value&&(C+="s"),f.value?C+="u":l.value&&(C+="v");try{return Io(t.value,e.value,C)}catch{return[]}}),L=os(()=>{try{return new Ln(new RegExp(t.value.replace(/\(\?\<[^\>]*\>/g,"(?:"))).gen()}catch{return""}});return gn(async()=>{const C=t.value,A=_.value?.shadow_root;if(A){for(;A.lastChild;)A.removeChild(A.lastChild);const k=document.createElementNS("http://www.w3.org/2000/svg","svg");try{await $o(C,k)}catch{}A.appendChild(k)}}),(C,A)=>{const k=mn,F=hi("router-link"),X=vn,ot=zn,it=An,lt=yn,vt=Rn,Ot=wn,kt=hi("shadow-root");return zt(),Bt("div",jo,[ct(lt,{title:P(u)("tools.regex-tester.regex"),"mb-1":""},{default:pt(()=>[ct(k,{value:P(t),"onUpdate:value":A[0]||(A[0]=Q=>Lt(t)?t.value=Q:null),label:P(u)("tools.regex-tester.regexToTest"),placeholder:P(u)("tools.regex-tester.regexPlaceholder"),multiline:"",rows:"3",validation:P(m)},null,8,["value","label","placeholder","validation"]),ct(F,{target:"_blank",to:"/regex-memo","mb-1":"","mt-1":""},{default:pt(()=>[Qe(st(P(u)("tools.regex-tester.seeCheatsheet")),1)]),_:1}),ct(ot,null,{default:pt(()=>[ct(X,{checked:P(i),"onUpdate:checked":A[1]||(A[1]=Q=>Lt(i)?i.value=Q:null)},{default:pt(()=>[ht("span",{title:P(u)("tools.regex-tester.globalSearchTitle")},st(P(u)("tools.regex-tester.globalSearch")),9,Do)]),_:1},8,["checked"]),ct(X,{checked:P(n),"onUpdate:checked":A[2]||(A[2]=Q=>Lt(n)?n.value=Q:null)},{default:pt(()=>[ht("span",{title:P(u)("tools.regex-tester.caseInsensitiveTitle")},st(P(u)("tools.regex-tester.caseInsensitive")),9,Lo)]),_:1},8,["checked"]),ct(X,{checked:P(r),"onUpdate:checked":A[3]||(A[3]=Q=>Lt(r)?r.value=Q:null)},{default:pt(()=>[ht("span",{title:P(u)("tools.regex-tester.multilineTitle")},st(P(u)("tools.regex-tester.multiline")),9,Po)]),_:1},8,["checked"]),ct(X,{checked:P(o),"onUpdate:checked":A[4]||(A[4]=Q=>Lt(o)?o.value=Q:null)},{default:pt(()=>[ht("span",{title:P(u)("tools.regex-tester.singlelineTitle")},st(P(u)("tools.regex-tester.singleline")),9,Jo)]),_:1},8,["checked"]),ct(X,{checked:P(f),"onUpdate:checked":A[5]||(A[5]=Q=>Lt(f)?f.value=Q:null)},{default:pt(()=>[ht("span",{title:P(u)("tools.regex-tester.unicodeTitle")},st(P(u)("tools.regex-tester.unicode")),9,qo)]),_:1},8,["checked"]),ct(X,{checked:P(l),"onUpdate:checked":A[6]||(A[6]=Q=>Lt(l)?l.value=Q:null)},{default:pt(()=>[ht("span",{title:P(u)("tools.regex-tester.unicodeSetsTitle")},st(P(u)("tools.regex-tester.unicodeSets")),9,Fo)]),_:1},8,["checked"])]),_:1}),ct(it),ct(k,{value:P(e),"onUpdate:value":A[7]||(A[7]=Q=>Lt(e)?e.value=Q:null),label:P(u)("tools.regex-tester.textToMatch"),placeholder:P(u)("tools.regex-tester.textPlaceholder"),multiline:"",rows:"5"},null,8,["value","label","placeholder"])]),_:1},8,["title"]),ct(lt,{title:P(u)("tools.regex-tester.matches"),"mb-1":"","mt-3":""},{default:pt(()=>[P(O)?.length>0?(zt(),oi(vt,{key:0},{default:pt(()=>[ht("thead",null,[ht("tr",null,[ht("th",Bo,st(P(u)("tools.regex-tester.indexInText")),1),ht("th",Ho,st(P(u)("tools.regex-tester.value")),1),ht("th",Uo,st(P(u)("tools.regex-tester.captures")),1),ht("th",Go,st(P(u)("tools.regex-tester.groups")),1)])]),ht("tbody",null,[(zt(!0),Bt(Ze,null,Ke(P(O),Q=>(zt(),Bt("tr",{key:Q.index},[ht("td",null,st(Q.index),1),ht("td",null,st(Q.value),1),ht("td",null,[ht("ul",null,[(zt(!0),Bt(Ze,null,Ke(Q.captures,gt=>(zt(),Bt("li",{key:gt.name},' "'+st(gt.name)+'" = '+st(gt.value)+" ["+st(gt.start)+" - "+st(gt.end)+"] ",1))),128))])]),ht("td",null,[ht("ul",null,[(zt(!0),Bt(Ze,null,Ke(Q.groups,gt=>(zt(),Bt("li",{key:gt.name},' "'+st(gt.name)+'" = '+st(gt.value)+" ["+st(gt.start)+" - "+st(gt.end)+"] ",1))),128))])])]))),128))])]),_:1})):(zt(),oi(Ot,{key:1},{default:pt(()=>[Qe(st(P(u)("tools.regex-tester.noMatch")),1)]),_:1}))]),_:1},8,["title"]),ct(lt,{title:P(u)("tools.regex-tester.sampleMatchingText"),"mt-3":""},{default:pt(()=>[ht("pre",Yo,st(P(L)),1)]),_:1},8,["title"]),ct(lt,{title:P(u)("tools.regex-tester.regexDiagram"),style:{"overflow-x":"scroll"},"mt-3":""},{default:pt(()=>[ct(kt,{ref_key:"visualizerSVG",ref:_},{default:pt(()=>[Qe(" ")]),_:1},512)]),_:1},8,["title"])])}}});export{rf as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.43.0(94c055bcbdd49f04a0fa15515e848542a79fb948)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var e={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")}}},n={defaultToken:"",tokenPostfix:".rst",control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],alphanumerics:/[A-Za-z0-9]/,simpleRefNameWithoutBq:/(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@phrase`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,"keyword"],[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,"keyword"],[/([ ]::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],[/(::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],{include:"@tables"},{include:"@explicitMarkupBlocks"},{include:"@inlineMarkup"}],explicitMarkupBlocks:[{include:"@citations"},{include:"@footnotes"},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:"",next:"subsequentLines"},"keyword","",""]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:"",next:"hyperlinks"},"","","string.link","","","string.link"]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:"",next:"subsequentLines"},"","","","string.link"]],[/^(__\s+)(.+)/,["","string.link"]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:"",next:"subsequentLines"},"","string.link","","keyword",""],"@rawBlocks"],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,["","string.link",""]],[/^(\.\.)([ ].*)$/,[{token:"",next:"@comments"},"comment"]]],inlineMarkup:[{include:"@citationsReference"},{include:"@footnotesReference"},[/(@simpleRefName)(_{1,2})/,["string.link",""]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,["","string.link","","string.link","","",""]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/(``)((?:[^`]|\`(?!`))+)(``)/,["","keyword",""]],[/(__\s+)(.+)/,["","keyword"]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,["","keyword","","",""]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,["","","","keyword",""]],[/(`)([^`]+)(`)/,""],[/(_`)(@phrase)(`)/,["","string.link",""]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],citationsReference:[[/(\[)(@citationName)(\]_)/,["","string.link",""]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:"",next:"@subsequentLines"},"string.link",""]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,["","string.link","",""]],[/(\[)(#@simpleRefName?)(\])(_)/,["","string.link","",""]],[/(\[)(\*)(\])(_)/,["","string.link","",""]]],blankLineOfLiteralBlocks:[[/^$/,"","@subsequentLinesOfLiteralBlocks"],[/^.*$/,"","@pop"]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,["keyword",""]],[/^(?!blockLiteralStart)/,"","@popall"]],subsequentLines:[[/^[\s]+.*/,""],[/^(?!\s)/,"","@pop"]],hyperlinks:[[/^[\s]+.*/,"string.link"],[/^(?!\s)/,"","@pop"]],comments:[[/^[\s]+.*/,"comment"],[/^(?!\s)/,"","@pop"]],tables:[[/\+-[+-]+/,"keyword"],[/\+=[+=]+/,"keyword"]]}};export{e as conf,n as language};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as D,q as S,e as k,p as I,f as x,s as A,v as O,y as g,o as h,b as q,l as i,w as c,h as d,cG as E,cH as $,j as e,z as X,t as v,m as M,n as j,B as U,A as z,a as G}from"./index-01d0fc63.js";import{_ as P}from"./InputNumber-164670aa.js";import{_ as H}from"./FormItem-18450bf0.js";import"./use-locale-6feb5d00.js";import"./use-form-item-5820adda.js";import"./Input-304baede.js";import"./Button-9402ed37.js";import"./is-browser-fc34c9a6.js";import"./color-to-class-b0332f36.js";import"./Remove-0305cd29.js";const f=1,b=3999;function F(a){if(a<f||a>b)return"";const t={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1};let r="";for(const o in t)for(;a>=t[o];)r+=o,a-=t[o];return r}const J=/^M{0,3}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$/;function V(a){return J.test(a)}function K(a){if(!V(a))return null;const t={I:1,V:5,X:10,L:50,C:100,D:500,M:1e3};return[...a].reduce((r,o,m,_)=>t[_[m+1]]>t[o]?r-t[o]:r+t[o],0)}const Q={flex:"","items-center":"","justify-between":""},W={class:"result"},Y={flex:"","items-center":"","justify-between":""},Z={class:"result"},tt=D({__name:"roman-numeral-converter",setup(a){const{t}=S(),r=k(),o=I(Number.parseInt(r.query.input||"")||42),m=x(()=>F(o.value)),{attrs:_}=A({source:o,rules:[{validator:s=>s>=f&&s<=b,message:t("tools.roman-numeral-converter.invalidArabic",{min:f.toLocaleString(),max:b.toLocaleString()})}]}),u=I(r.query.input||"XLII"),N=x(()=>K(u.value));O(()=>r.query.input,s=>{if(s){const n=s,p=Number.parseInt(n);Number.isNaN(p)||(o.value=p),u.value=n}});const R=A({source:u,rules:[{validator:s=>V(s),message:t("tools.roman-numeral-converter.invalidRoman")}]}),{copy:w}=g({source:m,text:t("tools.roman-numeral-converter.copiedRoman")}),{copy:L}=g({source:()=>String(N.value),text:t("tools.roman-numeral-converter.copiedArabic")});return(s,n)=>{const p=P,B=H,y=j,C=U,T=z;return h(),q("div",null,[i(C,{title:e(t)("tools.roman-numeral-converter.arabicToRoman")},{default:c(()=>[d("div",Q,[i(B,E($(e(_))),{default:c(()=>[i(p,{value:e(o),"onUpdate:value":n[0]||(n[0]=l=>X(o)?o.value=l:null),min:1,style:{width:"200px"},"show-button":!1},null,8,["value"])]),_:1},16),d("div",W,v(e(m)),1),i(y,{autofocus:"",disabled:e(_).validationStatus==="error",onClick:n[1]||(n[1]=l=>e(w)())},{default:c(()=>[M(v(e(t)("tools.roman-numeral-converter.copy")),1)]),_:1},8,["disabled"])])]),_:1},8,["title"]),i(C,{title:e(t)("tools.roman-numeral-converter.romanToArabic"),"mt-5":""},{default:c(()=>[d("div",Y,[i(T,{value:e(u),"onUpdate:value":n[2]||(n[2]=l=>X(u)?u.value=l:null),style:{width:"200px"},validation:e(R)},null,8,["value","validation"]),d("div",Z,v(e(N)),1),i(y,{disabled:!e(R).isValid,onClick:n[3]||(n[3]=l=>e(L)())},{default:c(()=>[M(v(e(t)("tools.roman-numeral-converter.copy")),1)]),_:1},8,["disabled"])])]),_:1},8,["title"])])}}});const mt=G(tt,[["__scopeId","data-v-ef296eba"]]);export{mt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.result[data-v-ef296eba]{font-size:22px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as k,p as K,q as P,s as x,o as h,b as w,h as o,l as s,w as _,j as t,z as C,av as T,m as V,t as p,F as B,n as A}from"./index-01d0fc63.js";import{l as m}from"./index-12c42436.js";import{T as y}from"./TextareaCopyable-a8dad7e2.js";import{a as N}from"./defaults-4d6daddf.js";import{a as R}from"./computedRefreshable-c6e973a4.js";import{_ as j}from"./InputNumber-164670aa.js";import{_ as D}from"./FormItem-18450bf0.js";import"./___vite-browser-external_commonjs-proxy-d22f5c20.js";import"./Copy-aa880467.js";import"./Scrollbar-d11619e0.js";import"./use-locale-6feb5d00.js";import"./use-form-item-5820adda.js";import"./Input-304baede.js";import"./Button-9402ed37.js";import"./is-browser-fc34c9a6.js";import"./color-to-class-b0332f36.js";import"./Remove-0305cd29.js";const E="/assets/prime.worker.min-e367bd53.js";function F({bits:n=2048}){return new Promise((e,a)=>m.pki.rsa.generateKeyPair({bits:n,workerScript:E},(r,l)=>{if(r){a(r);return}e(l)}))}async function S(n={}){const{privateKey:e,publicKey:a}=await F(n);return{publicKeyPem:m.pki.publicKeyToPem(a),privateKeyPem:m.pki.privateKeyToPem(e)}}const q={style:{flex:"0 0 100%"}},z={"item-style":"flex: 1 1 0",style:{"max-width":"600px"},"mx-auto":"",flex:"","gap-3":""},ae=k({__name:"rsa-key-pair-generator",setup(n){const e=K(2048),a={publicKeyPem:"",privateKeyPem:""},{t:r}=P(),{attrs:l}=x({source:e,rules:[{message:r("tools.rsa-key-pair-generator.invalidBits"),validator:i=>i>=256&&i<=16384&&i%8===0}]}),[u,f]=R(()=>N(()=>S({bits:e.value}),a),a);return(i,c)=>{const d=j,b=D,v=A;return h(),w(B,null,[o("div",q,[o("div",z,[s(b,T({label:t(r)("tools.rsa-key-pair-generator.bitsLabel")},t(l),{"label-placement":"left","label-width":"100"}),{default:_(()=>[s(d,{value:t(e),"onUpdate:value":c[0]||(c[0]=g=>C(e)?e.value=g:null),min:"256",max:"16384",step:"8"},null,8,["value"])]),_:1},16,["label"]),s(v,{onClick:t(f)},{default:_(()=>[V(p(t(r)("tools.rsa-key-pair-generator.refresh")),1)]),_:1},8,["onClick"])])]),o("div",null,[o("h3",null,p(t(r)("tools.rsa-key-pair-generator.publicKey")),1),s(y,{value:t(u).publicKeyPem},null,8,["value"])]),o("div",null,[o("h3",null,p(t(r)("tools.rsa-key-pair-generator.privateKey")),1),s(y,{value:t(u).privateKeyPem},null,8,["value"])])],64)}}});export{ae as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.43.0(94c055bcbdd49f04a0fa15515e848542a79fb948)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#",blockComment:["=begin","=end"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],indentationRules:{increaseIndentPattern:new RegExp(`^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|("|'|/).*\\4)*(#.*)?$`),decreaseIndentPattern:new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")}},t={tokenPostfix:".ruby",keywords:["__LINE__","__ENCODING__","__FILE__","BEGIN","END","alias","and","begin","break","case","class","def","defined?","do","else","elsif","end","ensure","for","false","if","in","module","next","nil","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield"],keywordops:["::","..","...","?",":","=>"],builtins:["require","public","private","include","extend","attr_reader","protected","private_class_method","protected_class_method","new"],declarations:["module","class","def","case","do","begin","for","if","while","until","unless"],linedecls:["def","case","do","begin","for","if","while","until","unless"],operators:["^","&","|","<=>","==","===","!~","=~",">",">=","<","<=","<<",">>","+","-","*","/","%","**","~","+@","-@","[]","[]=","`","+=","-=","*=","**=","/=","^=","%=","<<=",">>=","&=","&&=","||=","|="],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],symbols:/[=><!~?:&|+\-*\/\^%\.]+/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,decpart:/\d(_?\d)*/,decimal:/0|@decpart/,delim:/[^a-zA-Z0-9\s\n\r]/,heredelim:/(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,tokenizer:{root:[[/^(\s*)([a-z_]\w*[!?=]?)/,["white",{cases:{"for|until|while":{token:"keyword.$2",next:"@dodecl.$2"},"@declarations":{token:"keyword.$2",next:"@root.$2"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}]],[/[a-z_]\w*[!?=]?/,{cases:{"if|unless|while|until":{token:"keyword.$0x",next:"@modifier.$0x"},for:{token:"keyword.$2",next:"@dodecl.$2"},"@linedecls":{token:"keyword.$0",next:"@root.$0"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],[/[A-Z][\w]*[!?=]?/,"constructor.identifier"],[/\$[\w]*/,"global.constant"],[/@[\w]*/,"namespace.instance.identifier"],[/@@@[\w]*/,"namespace.class.identifier"],[/<<[-~](@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/[ \t\r\n]+<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/^<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],{include:"@whitespace"},[/"/,{token:"string.d.delim",next:'@dstring.d."'}],[/'/,{token:"string.sq.delim",next:"@sstring.sq"}],[/%([rsqxwW]|Q?)/,{token:"@rematch",next:"pstring"}],[/`/,{token:"string.x.delim",next:"@dstring.x.`"}],[/:(\w|[$@])\w*[!?=]?/,"string.s"],[/:"/,{token:"string.s.delim",next:'@dstring.s."'}],[/:'/,{token:"string.s.delim",next:"@sstring.s"}],[/\/(?=(\\\/|[^\/\n])+\/)/,{token:"regexp.delim",next:"@regexp"}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@keywordops":"keyword","@operators":"operator","@default":""}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/0[dD]@decpart/,"number"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,{cases:{$1:"number.float","@default":"number"}}]],dodecl:[[/^/,{token:"",switchTo:"@root.$S2"}],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},do:{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],modifier:[[/^/,"","@pop"],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},"then|else|elsif|do":{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],sstring:[[/[^\\']+/,"string.$S2"],[/\\\\|\\'|\\$/,"string.$S2.escape"],[/\\./,"string.$S2.invalid"],[/'/,{token:"string.$S2.delim",next:"@pop"}]],dstring:[[/[^\\`"#]+/,"string.$S2"],[/#/,"string.$S2.escape","@interpolated"],[/\\$/,"string.$S2.escape"],[/@escapes/,"string.$S2.escape"],[/\\./,"string.$S2.escape.invalid"],[/[`"]/,{cases:{"$#==$S3":{token:"string.$S2.delim",next:"@pop"},"@default":"string.$S2"}}]],heredoc:[[/^(\s*)(@heredelim)$/,{cases:{"$2==$S2":["string.heredoc",{token:"string.heredoc.delimiter",next:"@pop"}],"@default":["string.heredoc","string.heredoc"]}}],[/.*/,"string.heredoc"]],interpolated:[[/\$\w*/,"global.constant","@pop"],[/@\w*/,"namespace.class.identifier","@pop"],[/@@@\w*/,"namespace.instance.identifier","@pop"],[/[{]/,{token:"string.escape.curly",switchTo:"@interpolated_compound"}],["","","@pop"]],interpolated_compound:[[/[}]/,{token:"string.escape.curly",next:"@pop"}],{include:"@root"}],pregexp:[{include:"@whitespace"},[/[^\(\{\[\\]/,{cases:{"$#==$S3":{token:"regexp.delim",next:"@pop"},"$#==$S2":{token:"regexp.delim",next:"@push"},"~[)}\\]]":"@brackets.regexp.escape.control","~@regexpctl":"regexp.escape.control","@default":"regexp"}}],{include:"@regexcontrol"}],regexp:[{include:"@regexcontrol"},[/[^\\\/]/,"regexp"],["/[ixmp]*",{token:"regexp.delim"},"@pop"]],regexcontrol:[[/(\{)(\d+(?:,\d*)?)(\})/,["@brackets.regexp.escape.control","regexp.escape.control","@brackets.regexp.escape.control"]],[/(\[)(\^?)/,["@brackets.regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?[:=!])/,["@brackets.regexp.escape.control","regexp.escape.control"]],[/\(\?#/,{token:"regexp.escape.control",next:"@regexpcomment"}],[/[()]/,"@brackets.regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/#/,"regexp.escape","@interpolated"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,"@brackets.regexp.escape.control","@pop"]],regexpcomment:[[/[^)]+/,"comment"],[/\)/,{token:"regexp.escape.control",next:"@pop"}]],pstring:[[/%([qws])\(/,{token:"string.$1.delim",switchTo:"@qstring.$1.(.)"}],[/%([qws])\[/,{token:"string.$1.delim",switchTo:"@qstring.$1.[.]"}],[/%([qws])\{/,{token:"string.$1.delim",switchTo:"@qstring.$1.{.}"}],[/%([qws])</,{token:"string.$1.delim",switchTo:"@qstring.$1.<.>"}],[/%([qws])(@delim)/,{token:"string.$1.delim",switchTo:"@qstring.$1.$2.$2"}],[/%r\(/,{token:"regexp.delim",switchTo:"@pregexp.(.)"}],[/%r\[/,{token:"regexp.delim",switchTo:"@pregexp.[.]"}],[/%r\{/,{token:"regexp.delim",switchTo:"@pregexp.{.}"}],[/%r</,{token:"regexp.delim",switchTo:"@pregexp.<.>"}],[/%r(@delim)/,{token:"regexp.delim",switchTo:"@pregexp.$1.$1"}],[/%(x|W|Q?)\(/,{token:"string.$1.delim",switchTo:"@qqstring.$1.(.)"}],[/%(x|W|Q?)\[/,{token:"string.$1.delim",switchTo:"@qqstring.$1.[.]"}],[/%(x|W|Q?)\{/,{token:"string.$1.delim",switchTo:"@qqstring.$1.{.}"}],[/%(x|W|Q?)</,{token:"string.$1.delim",switchTo:"@qqstring.$1.<.>"}],[/%(x|W|Q?)(@delim)/,{token:"string.$1.delim",switchTo:"@qqstring.$1.$2.$2"}],[/%([rqwsxW]|Q?)./,{token:"invalid",next:"@pop"}],[/./,{token:"invalid",next:"@pop"}]],qstring:[[/\\$/,"string.$S2.escape"],[/\\./,"string.$S2.escape"],[/./,{cases:{"$#==$S4":{token:"string.$S2.delim",next:"@pop"},"$#==$S3":{token:"string.$S2.delim",next:"@push"},"@default":"string.$S2"}}]],qqstring:[[/#/,"string.$S2.escape","@interpolated"],{include:"@qstring"}],whitespace:[[/[ \t\r\n]+/,""],[/^\s*=begin\b/,"comment","@comment"],[/#.*$/,"comment"]],comment:[[/[^=]+/,"comment"],[/^\s*=begin\b/,"comment.invalid"],[/^\s*=end\b.*/,"comment","@pop"],[/[=]/,"comment"]]}};export{e as conf,t as language};
|