diff --git a/asset-manifest.json b/asset-manifest.json index b972dbe..02dabeb 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,20 +1,20 @@ { "files": { - "main.css": "/static/css/main.b2241b4e.css", - "main.js": "/static/js/main.fb1479ce.js", - "static/media/flaticons-fill-bucket-flipped.svg": "/static/media/flaticons-fill-bucket-flipped.06bf323f5ca3e928e73e8c1312801355.svg", - "static/media/file-picture-multiple-importable.svg": "/static/media/file-picture-multiple-importable.4393f4828bdfd0baaf375bc75eb77b4f.svg", - "static/media/document-open-importable.svg": "/static/media/document-open-importable.6c3a0b1ac216ce90b8d13517a8e56749.svg", - "static/media/document-new-importable.svg": "/static/media/document-new-importable.138e383a97e1dcf101ffa0f27b56fc8f.svg", - "static/media/document-new-16px-importable.svg": "/static/media/document-new-16px-importable.2ded795ab32c25bff7a7709872b5df2e.svg", + "main.css": "/static/css/main.df2881b6.css", + "main.js": "/static/js/main.d5788e64.js", + "static/media/flaticons-fill-bucket-flipped.svg": "/static/media/flaticons-fill-bucket-flipped.ae2dda741b94b4136c0332686a680269.svg", + "static/media/file-picture-multiple-importable.svg": "/static/media/file-picture-multiple-importable.21b0c8795c98f734ec49124cbc9a50cc.svg", + "static/media/document-open-importable.svg": "/static/media/document-open-importable.2a12bf7e263aa2c71df52e8f9780a531.svg", + "static/media/document-new-importable.svg": "/static/media/document-new-importable.9f2774407a8ff1b113cf7b76e6500620.svg", + "static/media/document-new-16px-importable.svg": "/static/media/document-new-16px-importable.09af81b74e435a64c078c3d7849c01ae.svg", "index.html": "/index.html", - "static/media/document-save-importable.svg": "/static/media/document-save-importable.ddfaa4d7a821b4518de3ca16e3b8ce54.svg", - "static/media/edit-path-importable.svg": "/static/media/edit-path-importable.44e955ae8b010da788a9b233a684037c.svg", - "main.b2241b4e.css.map": "/static/css/main.b2241b4e.css.map", - "main.fb1479ce.js.map": "/static/js/main.fb1479ce.js.map" + "static/media/document-save-importable.svg": "/static/media/document-save-importable.9b44665c125b88c183ef3b29f4334491.svg", + "static/media/edit-path-importable.svg": "/static/media/edit-path-importable.5a7bd947b245eaeb3a5dea10a90c8d6f.svg", + "main.df2881b6.css.map": "/static/css/main.df2881b6.css.map", + "main.d5788e64.js.map": "/static/js/main.d5788e64.js.map" }, "entrypoints": [ - "static/css/main.b2241b4e.css", - "static/js/main.fb1479ce.js" + "static/css/main.df2881b6.css", + "static/js/main.d5788e64.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 624cae2..706b40c 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Mopaint
\ No newline at end of file +Mopaint
\ No newline at end of file diff --git a/static/css/main.b2241b4e.css b/static/css/main.b2241b4e.css deleted file mode 100644 index 3a1c9e3..0000000 --- a/static/css/main.b2241b4e.css +++ /dev/null @@ -1,2 +0,0 @@ -body{font-family:sans-serif;margin:0;padding:0}.DrawingCanvas{box-shadow:0 0 2px #000;margin:1rem;touch-action:none}.LoadingIndicator{--color-one:#e93a27;--color-two:#d7984b;--size:48px;align-self:center;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite;border-right:4px solid transparent;border-top:4px solid var(--color-one);display:inline-block;margin:auto}.LoadingIndicator,.LoadingIndicator:after{border-radius:50%;box-sizing:border-box;height:var(--size);width:var(--size)}.LoadingIndicator:after{animation:rotation .5s linear infinite reverse;border-bottom:4px solid transparent;border-left:4px solid var(--color-two);content:"";left:0;position:absolute;top:0}button .LoadingIndicator{--size:1em}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.Toolbox{margin:1rem}.Toolbox-tool{background:#d3d3d3;border:none;color:#000;padding:8px}.Toolbox-tool:focus:not([aria-checked]),.Toolbox-tool:hover:not([aria-checked]){background:#cbdbfc;color:#000}.Toolbox-tool:active:not([aria-checked]){background:#d6e4ff;color:#000}.Toolbox-tool[aria-checked]{background:#639bff;color:#fff}.Palette-swatch{height:36px;margin:2px;width:36px}.Colorbox{align-items:center;display:flex;flex-direction:row;margin:1rem}.Colorbox-divider{border-left:1px solid rgba(0,0,0,.5);height:42px;margin:0 8px}.Colorbox-selected-swatch{height:42px;margin:2px;width:42px}.swatch{border:1px solid #fff;border-radius:2px;box-shadow:0 0 0 1px #000;min-width:0!important;transition:border-color 1s ease}[data-color-scheme=dark] .swatch{border-color:hsla(0,0%,100%,.5)}.HistoryEntry{background:transparent;border:0;border-bottom:1px solid hsla(0,0%,75%,.63);color:inherit;flex:0 0 auto;font:inherit;margin-bottom:2px;overflow:hidden;padding:5px;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}[data-color-scheme=dark] .HistoryEntry:active{background:rgba(99,156,255,.13);color:#fff}[data-color-scheme=dark] .HistoryEntry[aria-checked]{background:rgba(99,156,255,.527);color:#fff}.HistoryEntry:active{background:#f0f0f0}.HistoryEntry[aria-checked]{background:#639bff}.HistoryEntry:not(.current):not(.ancestor-of-current){color:gray}.HistoryEntry .ToolPreview,.HistoryEntry .question-mark,.HistoryEntry canvas,.HistoryEntry svg{margin-right:5px;vertical-align:middle}[data-color-scheme=dark] .HistoryEntry .ToolPreview{background:#d3d3d3}.HistoryEntry .question-mark{align-items:center;background:hsla(0,0%,50%,.5);border-radius:50%;color:#fff;display:inline-flex;justify-content:center}.HistoryEntry .question-mark:after{content:"?"}.HistoryView{background:#fff;box-shadow:-1px 0 5px rgba(0,0,0,.5);color:#000;display:flex;flex-direction:column;height:100%;overflow:auto;transition:background .4s ease;-webkit-user-select:none;user-select:none}[data-color-scheme=dark] .HistoryView{background:#000;color:#fff}.Dialog{align-items:center;bottom:0;display:flex;flex-direction:row;justify-content:center;left:0;pointer-events:none;position:fixed;right:0;top:0}.Dialog-box{background:#fff;border-radius:5px;box-shadow:0 1px 6px rgba(0,0,0,.4);color:#000;padding:30px;pointer-events:auto}[data-color-scheme=dark] .Dialog-box{background:#000;color:#fff}.Dialog-buttons{display:flex;flex-direction:row;justify-content:flex-end;margin-top:1em}.Dialog-buttons button{background:hsla(0,0%,50%,.1);border:1px solid hsla(0,0%,75%,.63);border-radius:2px;color:inherit;margin-left:5px;padding:.4em 1.5em}.Dialog-buttons button:focus,.Dialog-buttons button:hover{background:hsla(0,0%,50%,.2)}.Dialog-buttons button:active{background:hsla(0,0%,50%,.3)}.Dialog details{border:1px solid hsla(0,0%,50%,.5);margin:1em 0;max-width:calc(100vw - 2em);width:40em}.Dialog details>summary{background:hsla(0,0%,50%,.1);cursor:default}.Dialog details[open]>summary{border-bottom:1px solid hsla(0,0%,50%,.5)}.Dialog details>.actual-details{max-height:10em;overflow:auto}.Dialog details>.actual-details,.Dialog details>summary{padding:.5em}.Dialog details pre{margin:0}.Warning{background:#ffff64;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.5);color:#000;margin:10px;padding:.7em}#root,body,html{flex-direction:column}#root,.App,body,html{display:flex;height:100%;overflow:hidden}.App{flex-direction:row;transition:background .8s ease}[data-color-scheme=dark] .App{background:#333;color:#fff}.App>main{flex:1 1;overflow:auto}.sidebar{flex-basis:400px;max-width:30vw}.toolbar-button{align-items:center;background:none;border:none;border-radius:50%;display:inline-flex;padding:8px}.toolbar-button:focus,.toolbar-button:hover{background:hsla(0,0%,50%,.4)}.toolbar-button:focus:not([aria-checked]),.toolbar-button:hover:not([aria-checked]){background:#cbdbfc;color:#000;outline:none}.toolbar-button:active:not([aria-checked]){background:#d6e4ff;color:#000}.toolbar-button[aria-checked]{background:#639bff;color:#fff}#documents-options{align-items:center;display:flex;flex-direction:row;padding:0 15px}#documents-options>*{flex:0 0 auto}.document-picker-dialog-documents{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));max-height:500px;max-width:calc(100vw - 150px);overflow:auto;width:1000px}.document-picker-dialog-documents li,.document-picker-dialog-documents li a{align-items:center;display:flex;flex-direction:column}.document-picker-dialog-documents li a{margin-bottom:5px;padding:5px;text-align:center}.document-picker-dialog-documents li a:focus,.document-picker-dialog-documents li a:hover{background:rgba(43,75,253,.1)}.document-thumbnail{align-items:center;display:flex;flex-direction:column;height:100px;justify-content:flex-end;width:100px}.document-picker-dialog-documents li img{border:1px solid hsla(0,0%,50%,.5);border-radius:5px;display:block}:root{--dark-mode-button-padding:0.1em;--sun-yellow:#fd0;--night-light:#ffd;--sky:linear-gradient(180deg,#2929a7 0%,#7c57d8 40%,#17abfa 60%,#adeeff);--moon-shadow:var(--sky)}.dark-mode-button{box-sizing:border-box}.dark-mode-button::selection{background:none}.dark-mode-button{-webkit-tap-highlight-color:transparent;background:linear-gradient(180deg,#2929a7 0,#7c57d8 40%,#17abfa 60%,#adeeff);background:var(--sky);background-size:100% 230%;border:0;border-radius:2em;cursor:pointer;display:block;font-size:20px;height:2em;outline:0;padding:.1em;padding:var(--dark-mode-button-padding);position:relative;transition:background .4s ease;-webkit-user-select:none;user-select:none;width:4em}.dark-mode-button:focus{box-shadow:0 0 0 2px #0084d2}.dark-mode-button .sun-moon,.dark-mode-button .sun-moon .shadow{content:"";display:block;height:1.8em;height:calc(2em - var(--dark-mode-button-padding)*2);position:relative;width:1.8em;width:calc(2em - var(--dark-mode-button-padding)*2)}.dark-mode-button .sun-moon{background:#fd0;background:var(--sun-yellow);border-radius:50%;left:0;overflow:hidden;transition:left .2s ease,background .5s ease}.dark-mode-button .sun-moon .shadow{background:linear-gradient(180deg,#2929a7 0,#7c57d8 40%,#17abfa 60%,#adeeff);background:var(--moon-shadow);background-size:100% 200%;border-radius:50%;bottom:-.5em;height:2.8em;height:calc(3em - var(--dark-mode-button-padding)*2);left:100%;position:absolute;transition:background .4s ease,opacity .2s ease,left .2s ease;width:2.8em;width:calc(3em - var(--dark-mode-button-padding)*2)}.dark-mode-button,.dark-mode-button .sun-moon .shadow{background-position:0 100%}[data-color-scheme=dark] .dark-mode-button .sun-moon{background:#ffd;background:var(--night-light);box-shadow:inset 0 0 1px 0 #231f6b;left:50%}[data-color-scheme=dark] .dark-mode-button,[data-color-scheme=dark] .dark-mode-button .sun-moon .shadow{background-position:0 0}[data-color-scheme=dark] .dark-mode-button .sun-moon .shadow{left:-90%;transition:background .4s ease,opacity .4s ease,left 1s ease}[data-color-scheme=light] .dark-mode-button .sun-moon .shadow{opacity:0}.dark-mode-button .rays{height:2em;left:0;pointer-events:none;position:absolute;top:0;width:2em}.dark-mode-button .rays .ray{background:#fd0;background:var(--sun-yellow);border-radius:.3em;height:.3em;left:50%;position:absolute;top:50%;transition:border-radius .2s ease,width .2s ease,height .2s ease,background .4s ease,-webkit-transform .2s ease;transition:transform .2s ease,border-radius .2s ease,width .2s ease,height .2s ease,background .4s ease;transition:transform .2s ease,border-radius .2s ease,width .2s ease,height .2s ease,background .4s ease,-webkit-transform .2s ease;width:.5em}.dark-mode-button .rays .ray:first-child{-webkit-transform:translate(-50%,-50%) rotate(45deg) translate(1.3em);transform:translate(-50%,-50%) rotate(45deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(2){-webkit-transform:translate(-50%,-50%) rotate(90deg) translate(1.3em);transform:translate(-50%,-50%) rotate(90deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(3){-webkit-transform:translate(-50%,-50%) rotate(135deg) translate(1.3em);transform:translate(-50%,-50%) rotate(135deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(4){-webkit-transform:translate(-50%,-50%) rotate(.5turn) translate(1.3em);transform:translate(-50%,-50%) rotate(.5turn) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(5){-webkit-transform:translate(-50%,-50%) rotate(225deg) translate(1.3em);transform:translate(-50%,-50%) rotate(225deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(6){-webkit-transform:translate(-50%,-50%) rotate(270deg) translate(1.3em);transform:translate(-50%,-50%) rotate(270deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(7){-webkit-transform:translate(-50%,-50%) rotate(315deg) translate(1.3em);transform:translate(-50%,-50%) rotate(315deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(8){-webkit-transform:translate(-50%,-50%) rotate(1turn) translate(1.3em);transform:translate(-50%,-50%) rotate(1turn) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(9){-webkit-transform:translate(-50%,-50%) rotate(405deg) translate(1.3em);transform:translate(-50%,-50%) rotate(405deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(10){-webkit-transform:translate(-50%,-50%) rotate(450deg) translate(1.3em);transform:translate(-50%,-50%) rotate(450deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(11){-webkit-transform:translate(-50%,-50%) rotate(495deg) translate(1.3em);transform:translate(-50%,-50%) rotate(495deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(12){-webkit-transform:translate(-50%,-50%) rotate(540deg) translate(1.3em);transform:translate(-50%,-50%) rotate(540deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(13){-webkit-transform:translate(-50%,-50%) rotate(585deg) translate(1.3em);transform:translate(-50%,-50%) rotate(585deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(14){-webkit-transform:translate(-50%,-50%) rotate(630deg) translate(1.3em);transform:translate(-50%,-50%) rotate(630deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(15){-webkit-transform:translate(-50%,-50%) rotate(675deg) translate(1.3em);transform:translate(-50%,-50%) rotate(675deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(16){-webkit-transform:translate(-50%,-50%) rotate(2turn) translate(1.3em);transform:translate(-50%,-50%) rotate(2turn) translate(1.3em)}[data-color-scheme=dark] .dark-mode-button .rays .ray{background:#ffd;background:var(--night-light);border-radius:.2em;height:.2em;width:.2em}[data-color-scheme=dark] .dark-mode-button .rays .ray:first-child{-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(.236em,-.0872em);transform:translate(-50%,-50%) rotate(0turn) translate(.236em,-.0872em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(2){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(-.056em,.2912em);transform:translate(-50%,-50%) rotate(0turn) translate(-.056em,.2912em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(3){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(.124em,.3352em);transform:translate(-50%,-50%) rotate(0turn) translate(.124em,.3352em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(4){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(.776em,.0448em);transform:translate(-50%,-50%) rotate(0turn) translate(.776em,.0448em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(5){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(-.1em,-.58em);transform:translate(-50%,-50%) rotate(0turn) translate(-.1em,-.58em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(6){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(-.504em,.2208em);transform:translate(-50%,-50%) rotate(0turn) translate(-.504em,.2208em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(7){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(-.436em,.6872em);transform:translate(-50%,-50%) rotate(0turn) translate(-.436em,.6872em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(8){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(.104em,.8192em);transform:translate(-50%,-50%) rotate(0turn) translate(.104em,.8192em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(9){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(-.884em,.6168em);transform:translate(-50%,-50%) rotate(0turn) translate(-.884em,.6168em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(10){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(.6em,.08em);transform:translate(-50%,-50%) rotate(0turn) translate(.6em,.08em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(11){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(.556em,-.7912em);transform:translate(-50%,-50%) rotate(0turn) translate(.556em,-.7912em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(12){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(.984em,-.2368em);transform:translate(-50%,-50%) rotate(0turn) translate(.984em,-.2368em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(13){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(-.116em,-.0168em);transform:translate(-50%,-50%) rotate(0turn) translate(-.116em,-.0168em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(14){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(-.744em,-.1312em);transform:translate(-50%,-50%) rotate(0turn) translate(-.744em,-.1312em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(15){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(-.9em,-.58em);transform:translate(-50%,-50%) rotate(0turn) translate(-.9em,-.58em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(16){-webkit-transform:translate(-50%,-50%) rotate(0turn) translate(-.584em,.3968em);transform:translate(-50%,-50%) rotate(0turn) translate(-.584em,.3968em)} -/*# sourceMappingURL=main.b2241b4e.css.map*/ \ No newline at end of file diff --git a/static/css/main.b2241b4e.css.map b/static/css/main.b2241b4e.css.map deleted file mode 100644 index 9b7a681..0000000 --- a/static/css/main.b2241b4e.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/css/main.b2241b4e.css","mappings":"AAAA,KAGC,sBAAuB,CAFvB,QAAS,CACT,SAED,CCJA,eAEC,uBAAyB,CADzB,WAAY,CAEZ,iBACD,CCFA,kBACC,mBAAoB,CACpB,mBAAoB,CACpB,WAAY,CAEZ,iBAAkB,CAUlB,6CAAsC,CAAtC,qCAAsC,CAFtC,kCAAmC,CADnC,qCAAsC,CADtC,oBAAqB,CALrB,WAUD,CACA,0CAPC,iBAAkB,CAIlB,qBAAsB,CALtB,kBAAmB,CADnB,iBAyBD,CAhBA,wBAYC,8CAAgD,CADhD,mCAAoC,CADpC,sCAAuC,CATvC,UAAW,CAGX,MAAO,CADP,iBAAkB,CAElB,KAWD,CACA,yBACC,UACD,CACA,4BACC,GACC,8BAAuB,CAAvB,sBACD,CACA,GACC,+BAAyB,CAAzB,uBACD,CACD,CAPA,oBACC,GACC,8BAAuB,CAAvB,sBACD,CACA,GACC,+BAAyB,CAAzB,uBACD,CACD,CC9CA,SACC,WACD,CAEA,cAGC,kBAAqB,CAFrB,WAAY,CAGZ,UAAY,CAFZ,WAGD,CACA,gFAEC,kBAAmB,CACnB,UACD,CACA,yCACC,kBAA8B,CAC9B,UACD,CACA,4BACC,kBAAmB,CACnB,UACD,CCtBA,gBAGC,WAAY,CAFZ,UAAW,CACX,UAED,CCJA,UAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CAGnB,WACD,CAEA,kBACC,oCAAyC,CAEzC,WAAY,CADZ,YAED,CAEA,0BAGC,WAAY,CAFZ,UAAW,CACX,UAED,CAIA,QAKC,qBAAuB,CAFvB,iBAAkB,CAClB,yBAA2B,CAH3B,qBAAuB,CAKvB,+BACD,CACA,iCACC,+BACD,CChCA,cAaC,sBAAuB,CARvB,QAAS,CACT,0CAAkD,CAQlD,aAAc,CAbd,aAAc,CAOd,YAAa,CAOb,iBAAkB,CALlB,eAAgB,CAHhB,WAAY,CAEZ,eAAgB,CAGhB,sBAAuB,CADvB,kBAAmB,CATnB,UAcD,CACA,8CACC,+BAAoC,CACpC,UACD,CACA,qDACC,gCAAqC,CACrC,UACD,CACA,qBACC,kBACD,CACA,4BACC,kBACD,CACA,sDACC,UACD,CACA,+FAIC,gBAAiB,CACjB,qBACD,CACA,oDACC,kBACD,CAEA,6BAGC,kBAAmB,CAEnB,4BAAoC,CADpC,iBAAkB,CAElB,UAAY,CALZ,mBAAoB,CACpB,sBAKD,CACA,mCACC,WACD,CCvDA,aAOC,eAAiB,CADjB,oCAAyC,CAEzC,UAAY,CAPZ,YAAa,CACb,qBAAsB,CAEtB,WAAY,CADZ,aAAc,CAMd,8BAAgC,CAJhC,wBAAiB,CAAjB,gBAKD,CACA,sCACC,eAAiB,CACjB,UACD,CCdA,QAUC,kBAAmB,CALnB,QAAS,CAET,YAAa,CACb,kBAAmB,CACnB,sBAAuB,CAPvB,MAAO,CAIP,mBAAoB,CALpB,cAAe,CAGf,OAAQ,CADR,KAQD,CACA,YAGC,eAAiB,CAEjB,iBAAkB,CAClB,mCAAwC,CAFxC,UAAY,CAFZ,YAAa,CADb,mBAMD,CACA,qCACC,eAAiB,CACjB,UACD,CACA,gBAEC,YAAa,CACb,kBAAmB,CACnB,wBAAyB,CACzB,cACD,CACA,uBAEC,4BAAoC,CACpC,mCAA2C,CAE3C,iBAAkB,CAClB,aAAc,CAFd,eAAgB,CAHhB,kBAMD,CACA,0DAEC,4BACD,CACA,8BACC,4BACD,CACA,gBAIC,kCAA0C,CAH1C,YAAa,CAEb,2BAA4B,CAD5B,UAGD,CACA,wBACC,4BAAoC,CAKpC,cACD,CACA,8BACC,yCACD,CACA,gCACC,eAAgB,CAChB,aACD,CACA,wDAEC,YACD,CACA,oBACC,QACD,CCzEA,SACC,kBAA8B,CAI9B,iBAAkB,CAClB,mCAA0C,CAJ1C,UAAY,CAEZ,WAAY,CADZ,YAID,CCPA,gBAMC,qBACD,CACA,qBAHC,YAAa,CAFb,WAAY,CACZ,eAUD,CANA,KAIC,kBAAmB,CACnB,8BACD,CACA,8BACC,eAAgB,CAChB,UACD,CAEA,UAIC,QAAO,CADP,aAID,CAEA,SAEC,gBAAiB,CADjB,cAED,CAIA,gBAEC,kBAAmB,CACnB,eAAgB,CAChB,WAAY,CAEZ,iBAAkB,CALlB,mBAAoB,CAIpB,WAED,CACA,4CAEC,4BACD,CAEA,oFAEC,kBAAmB,CACnB,UAAY,CACZ,YACD,CACA,2CACC,kBAA8B,CAC9B,UACD,CACA,8BACC,kBAAmB,CACnB,UACD,CAEA,mBAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,cACD,CACA,qBACC,aACD,CCxEA,kCAKC,YAAa,CACb,wDAA2D,CAH3D,gBAAiB,CADjB,6BAA8B,CAE9B,aAAc,CAHd,YAMD,CAQA,4EAHC,kBAAmB,CAFnB,YAAa,CACb,qBAWD,CAPA,uCAKC,iBAAkB,CAClB,WAAY,CAFZ,iBAGD,CACA,0FAEC,6BACD,CACA,oBAIC,kBAAmB,CADnB,YAAa,CAEb,qBAAsB,CAHtB,YAAa,CAIb,wBAAyB,CALzB,WAMD,CACA,yCAEC,kCAA0C,CAC1C,iBAAkB,CAFlB,aAGD,CC7BA,MACC,gCAAiC,CACjC,iBAAkB,CAClB,kBAAmB,CAEnB,wEAAqF,CACrF,wBACD,CAEA,kBACC,qBACD,CAIA,6BACC,eACD,CACA,kBAYC,uCAAwC,CAGxC,4EAAsB,CAAtB,qBAAsB,CACtB,yBAA0B,CAf1B,QAAS,CAYT,iBAAkB,CANlB,cAAe,CAJf,aAAc,CAed,cAAe,CAbf,UAAW,CAHX,SAAU,CAYV,YAAwC,CAAxC,uCAAwC,CARxC,iBAAkB,CAWlB,8BAAgC,CAThC,wBAAyB,CAGzB,gBAAiB,CAPjB,SAeD,CACA,wBACC,4BACD,CACA,gEAIC,UAAW,CADX,aAAc,CAGd,YAAuD,CAAvD,oDAAuD,CAJvD,iBAAkB,CAGlB,WAAsD,CAAtD,mDAED,CACA,4BAIC,eAA6B,CAA7B,4BAA6B,CAD7B,iBAAkB,CAFlB,MAAO,CACP,eAAgB,CAGhB,4CACD,CACA,oCAQC,4EAA8B,CAA9B,6BAA8B,CAC9B,yBAA0B,CAP1B,iBAAkB,CAGlB,YAAc,CAEd,YAAuD,CAAvD,oDAAuD,CAHvD,SAAU,CAHV,iBAAkB,CAElB,6DAAmE,CAGnE,WAAsD,CAAtD,mDAID,CACA,sDAEC,0BACD,CACA,qDAIC,eAA8B,CAA9B,6BAA8B,CAC9B,kCAAqC,CAJrC,QACD,CAKA,wGAEC,uBACD,CACA,6DACC,SAAU,CACV,4DACD,CACA,8DACC,SACD,CACA,wBAKC,UAAW,CAHX,MAAO,CAIP,mBAAoB,CALpB,iBAAkB,CAElB,KAAM,CACN,SAGD,CACA,6BAIC,eAA6B,CAA7B,4BAA6B,CAD7B,kBAAoB,CADpB,WAAa,CAIb,QAAS,CADT,iBAAkB,CAElB,OAAQ,CACR,+GAAoH,CAApH,uGAAoH,CAApH,kIAAoH,CAPpH,UAQD,CAQA,yCACC,qEAAsE,CAAtE,6DACD,CACA,0CACC,qEAAqE,CAArE,6DACD,CACA,0CACC,sEAAsE,CAAtE,8DACD,CACA,0CACC,sEAAoE,CAApE,8DACD,CACA,0CACC,sEAAsE,CAAtE,8DACD,CACA,0CACC,sEAAqE,CAArE,8DACD,CACA,0CACC,sEAAsE,CAAtE,8DACD,CACA,0CACC,qEAAkE,CAAlE,6DACD,CACA,0CACC,sEAAsE,CAAtE,8DACD,CACA,2CACC,sEAAqE,CAArE,8DACD,CACA,2CACC,sEAAsE,CAAtE,8DACD,CACA,2CACC,sEAAoE,CAApE,8DACD,CACA,2CACC,sEAAsE,CAAtE,8DACD,CACA,2CACC,sEAAqE,CAArE,8DACD,CACA,2CACC,sEAAsE,CAAtE,8DACD,CACA,2CACC,qEAAkE,CAAlE,6DACD,CACA,sDAIC,eAA8B,CAA9B,6BAA8B,CAD9B,kBAAoB,CADpB,WAAa,CADb,UAID,CACA,kEACC,+EAA4E,CAA5E,uEACD,CACA,mEACC,+EAA4E,CAA5E,uEACD,CACA,mEACC,8EAA2E,CAA3E,sEACD,CACA,mEACC,8EAA2E,CAA3E,sEACD,CACA,mEACC,4EAAyE,CAAzE,oEACD,CACA,mEACC,+EAA4E,CAA5E,uEACD,CACA,mEACC,+EAA4E,CAA5E,uEACD,CACA,mEACC,8EAA2E,CAA3E,sEACD,CACA,mEACC,+EAA4E,CAA5E,uEACD,CACA,oEACC,0EAAuE,CAAvE,kEACD,CACA,oEACC,+EAA4E,CAA5E,uEACD,CACA,oEACC,+EAA4E,CAA5E,uEACD,CACA,oEACC,gFAA6E,CAA7E,wEACD,CACA,oEACC,gFAA6E,CAA7E,wEACD,CACA,oEACC,4EAAyE,CAAzE,oEACD,CACA,oEACC,+EAA4E,CAA5E,uEACD","sources":["index.css","components/DrawingCanvas.css","components/LoadingIndicator.css","components/Toolbox.css","components/Palette.css","components/Colorbox.css","components/HistoryEntry.css","components/HistoryView.css","components/Dialog.css","components/Warning.css","components/App.css","components/DocumentPickerDialog.css","components/DarkModeToggle.css"],"sourcesContent":["body {\n\tmargin: 0;\n\tpadding: 0;\n\tfont-family: sans-serif;\n}\n",".DrawingCanvas {\n\tmargin: 1rem;\n\tbox-shadow: 0 0 2px black;\n\ttouch-action: none;\n}\n\n","/* taken from https://vineethtrv.github.io/loader/ */\n/* I like this one because it looks like a couple koi fish, playful */\n.LoadingIndicator {\n\t--color-one: #e93a27; /* Benigoi */\n\t--color-two: #d7984b; /* Kigoi */\n\t--size: 48px;\n\n\talign-self: center;\n\tmargin: auto;\n\n\twidth: var(--size);\n\theight: var(--size);\n\tborder-radius: 50%;\n\tdisplay: inline-block;\n\tborder-top: 4px solid var(--color-one);\n\tborder-right: 4px solid transparent;\n\tbox-sizing: border-box;\n\tanimation: rotation 1s linear infinite;\n}\n.LoadingIndicator::after {\n\tcontent: \"\";\n\tbox-sizing: border-box;\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\twidth: var(--size);\n\theight: var(--size);\n\tborder-radius: 50%;\n\n\tborder-left: 4px solid var(--color-two);\n\tborder-bottom: 4px solid transparent;\n\tanimation: rotation 0.5s linear infinite reverse;\n\t/* transform: rotate(180deg);\n\tborder-top: 4px solid var(--color-two);\n\tborder-right: 4px solid transparent; */\n}\nbutton .LoadingIndicator {\n\t--size: 1em;\n}\n@keyframes rotation {\n\t0% {\n\t\ttransform: rotate(0deg);\n\t}\n\t100% {\n\t\ttransform: rotate(360deg);\n\t}\n}\n",".Toolbox {\n\tmargin: 1rem;\n}\n\n.Toolbox-tool {\n\tborder: none;\n\tpadding: 8px;\n\tbackground: lightgray;\n\tcolor: black;\n}\n.Toolbox-tool:hover:not([aria-checked]),\n.Toolbox-tool:focus:not([aria-checked]) {\n\tbackground: #cbdbfc;\n\tcolor: black;\n}\n.Toolbox-tool:active:not([aria-checked]) {\n\tbackground: rgb(214, 228, 255);\n\tcolor: black;\n}\n.Toolbox-tool[aria-checked] {\n\tbackground: #639bff;\n\tcolor: white;\n}\n",".Palette-swatch {\n\tmargin: 2px;\n\twidth: 36px;\n\theight: 36px;\n}\n\n/* see .swatch in ColorBox.css */\n",".Colorbox {\n\tdisplay: flex;\n\tflex-direction: row;\n\t/*justify-content: center;*/\n\talign-items: center;\n\tmargin: 1rem;\n}\n\n.Colorbox-divider {\n\tborder-left: 1px solid rgba(0, 0, 0, 0.5);\n\tmargin: 0 8px;\n\theight: 42px;\n}\n\n.Colorbox-selected-swatch {\n\tmargin: 2px;\n\twidth: 42px;\n\theight: 42px;\n}\n\n/* TODO: maybe move to a swatch.css? included by both components that use the class? assuming it won't duplicate the css? */\n/* oh, or use imports (assuming it won't duplicate the css) */\n.swatch {\n\tmin-width: 0 !important;\n\tborder: none;\n\tborder-radius: 2px;\n\tbox-shadow: 0 0 0 1px black;\n\tborder: 1px solid white;\n\ttransition: border-color 1s ease;\n}\n[data-color-scheme=\"dark\"] .swatch {\n\tborder-color: rgba(255, 255, 255, 0.5);\n}\n",".HistoryEntry {\n\tflex: 0 0 auto;\n\twidth: 100%;\n\t/*width: 200px;*/\n\t/*cursor: pointer;*/\n\tborder: 0;\n\tborder-bottom: 1px solid rgba(191, 191, 191, 0.63);\n\tpadding: 5px;\n\tfont: inherit;\n\ttext-align: left;\n\toverflow: hidden;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n\tbackground: transparent;\n\tcolor: inherit;\n\tmargin-bottom: 2px; /* to allow space for a focus ring */\n}\n[data-color-scheme=\"dark\"] .HistoryEntry:active {\n\tbackground: rgba(99, 156, 255, 0.13);\n\tcolor: white;\n}\n[data-color-scheme=\"dark\"] .HistoryEntry[aria-checked] {\n\tbackground: rgba(99, 156, 255, 0.527);\n\tcolor: white;\n}\n.HistoryEntry:active {\n\tbackground: rgb(240, 240, 240);\n}\n.HistoryEntry[aria-checked] {\n\tbackground: rgb(99, 155, 255);\n}\n.HistoryEntry:not(.current):not(.ancestor-of-current) {\n\tcolor: gray;\n}\n.HistoryEntry canvas,\n.HistoryEntry svg,\n.HistoryEntry .question-mark,\n.HistoryEntry .ToolPreview {\n\tmargin-right: 5px;\n\tvertical-align: middle;\n}\n[data-color-scheme=\"dark\"] .HistoryEntry .ToolPreview {\n\tbackground: lightgray; /* for now */\n}\n\n.HistoryEntry .question-mark {\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\talign-items: center;\n\tborder-radius: 50%;\n\tbackground: rgba(128, 128, 128, 0.5);\n\tcolor: white;\n}\n.HistoryEntry .question-mark::after {\n\tcontent: \"?\";\n}\n",".HistoryView {\n\tdisplay: flex;\n\tflex-direction: column;\n\toverflow: auto;\n\theight: 100%;\n\tuser-select: none;\n\tbox-shadow: -1px 0 5px rgba(0, 0, 0, 0.5);\n\tbackground: white;\n\tcolor: black;\n\ttransition: background 0.4s ease; /* it's not that good of a transition because the text color isn't transitioned, so make it relatively quick */\n}\n[data-color-scheme=\"dark\"] .HistoryView {\n\tbackground: black;\n\tcolor: white;\n}\n",".Dialog {\n\tposition: fixed;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tpointer-events: none;\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\talign-items: center;\n}\n.Dialog-box {\n\tpointer-events: auto;\n\tpadding: 30px;\n\tbackground: white;\n\tcolor: black;\n\tborder-radius: 5px;\n\tbox-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);\n}\n[data-color-scheme=\"dark\"] .Dialog-box {\n\tbackground: black;\n\tcolor: white;\n}\n.Dialog-buttons {\n\t/* TODO: friendly buttons */\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: flex-end;\n\tmargin-top: 1em;\n}\n.Dialog-buttons button {\n\tpadding: 0.4em 1.5em;\n\tbackground: rgba(128, 128, 128, 0.1);\n\tborder: 1px solid rgba(191, 191, 191, 0.63);\n\tmargin-left: 5px;\n\tborder-radius: 2px;\n\tcolor: inherit;\n}\n.Dialog-buttons button:hover,\n.Dialog-buttons button:focus {\n\tbackground: rgba(128, 128, 128, 0.2);\n}\n.Dialog-buttons button:active {\n\tbackground: rgba(128, 128, 128, 0.3);\n}\n.Dialog details {\n\tmargin: 1em 0;\n\twidth: 40em;\n\tmax-width: calc(100vw - 2em);\n\tborder: 1px solid rgba(128, 128, 128, 0.5);\n}\n.Dialog details > summary {\n\tbackground: rgba(128, 128, 128, 0.1);\n\t/*cursor: pointer;*/\n\t/* We could do a pointer hand, but then it feels like *everything* should have a pointer hand,\n\tand maybe it should, idk - it can be a useful cue to know when you can click on something -\n\tbut let's just make it *not* show a text selection cursor (over the text) for now */\n\tcursor: default;\n}\n.Dialog details[open] > summary {\n\tborder-bottom: 1px solid rgba(128, 128, 128, 0.5);\n}\n.Dialog details > .actual-details {\n\tmax-height: 10em;\n\toverflow: auto;\n}\n.Dialog details > summary,\n.Dialog details > .actual-details {\n\tpadding: 0.5em;\n}\n.Dialog details pre {\n\tmargin: 0;\n}\n",".Warning {\n\tbackground: rgb(255, 255, 100);\n\tcolor: black;\n\tpadding: 0.7em;\n\tmargin: 10px;\n\tborder-radius: 3px;\n\tbox-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);\n}\n","html,\nbody,\n#root {\n\theight: 100%;\n\toverflow: hidden;\n\tdisplay: flex;\n\tflex-direction: column;\n}\n.App {\n\theight: 100%;\n\toverflow: hidden;\n\tdisplay: flex;\n\tflex-direction: row;\n\ttransition: background 0.8s ease;\n}\n[data-color-scheme=\"dark\"] .App {\n\tbackground: #333;\n\tcolor: white;\n}\n\n.App > main {\n\t/* TODO: make the canvas area be the overflow area instead */\n\t/* make the color and tool palettes compact enough to be on the screen at all times on mobile by collapsing */\n\toverflow: auto;\n\tflex: 1;\n\t/*display: flex;*/\n\t/*flex-direction: column;*/\n}\n\n.sidebar {\n\tmax-width: 30vw;\n\tflex-basis: 400px;\n}\n\n/* TODO: DRY button styling with .Toolbox-tool */\n\n.toolbar-button {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tbackground: none;\n\tborder: none;\n\tpadding: 8px;\n\tborder-radius: 50%;\n}\n.toolbar-button:hover,\n.toolbar-button:focus {\n\tbackground: rgba(128, 128, 128, 0.4);\n}\n\n.toolbar-button:hover:not([aria-checked]),\n.toolbar-button:focus:not([aria-checked]) {\n\tbackground: #cbdbfc;\n\tcolor: black;\n\toutline: none;\n}\n.toolbar-button:active:not([aria-checked]) {\n\tbackground: rgb(214, 228, 255);\n\tcolor: black;\n}\n.toolbar-button[aria-checked] {\n\tbackground: #639bff;\n\tcolor: white;\n}\n\n#documents-options {\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tpadding: 0 15px;\n}\n#documents-options > * {\n\tflex: 0 0 auto;\n}\n",".document-picker-dialog-documents {\n\twidth: 1000px;\n\tmax-width: calc(100vw - 150px);\n\tmax-height: 500px;\n\toverflow: auto;\n\tdisplay: grid;\n\tgrid-template-columns: repeat(auto-fit, minmax(150px, 1fr));\n}\n\n.document-picker-dialog-documents li {\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n}\n\n.document-picker-dialog-documents li a {\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\ttext-align: center;\n\tmargin-bottom: 5px;\n\tpadding: 5px;\n}\n.document-picker-dialog-documents li a:hover,\n.document-picker-dialog-documents li a:focus {\n\tbackground: rgba(43, 75, 253, 0.1);\n}\n.document-thumbnail {\n\twidth: 100px;\n\theight: 100px;\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n}\n.document-picker-dialog-documents li img {\n\tdisplay: block;\n\tborder: 1px solid rgba(128, 128, 128, 0.5);\n\tborder-radius: 5px;\n}\n","/*\nfor SCSS source (outdated now), see:\nhttps://jsfiddle.net/1j01/s3gk4jun\nhttps://codepen.io/1j01/pen/eYdreKy\n\nBased on toggle buttons by @mallendeo https://codepen.io/mallendeo/pen/eLIiG\n\nGradient inspired by https://dribbble.com/shots/3348220-Night-Mode-Toggle#shot-description\n*/\n\n:root {\n\t--dark-mode-button-padding: 0.1em;\n\t--sun-yellow: #fd0;\n\t--night-light: #ffd;\n\t/* to edit this gradient: https://colorzilla.com/gradient-editor/#2929a7+0,7c57d8+40,17abfa+60,adeeff+100 */\n\t--sky: linear-gradient(to bottom, #2929a7 0%, #7c57d8 40%, #17abfa 60%, #adeeff 100%);\n\t--moon-shadow: var(--sky);\n}\n\n.dark-mode-button {\n\tbox-sizing: border-box;\n}\n.dark-mode-button::-moz-selection {\n\tbackground: none;\n}\n.dark-mode-button::selection {\n\tbackground: none;\n}\n.dark-mode-button {\n\tborder: 0;\n\toutline: 0;\n\tdisplay: block;\n\twidth: 4em;\n\theight: 2em;\n\tposition: relative;\n\tcursor: pointer;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n\t-webkit-tap-highlight-color: transparent;\n\tborder-radius: 2em;\n\tpadding: var(--dark-mode-button-padding);\n\tbackground: var(--sky);\n\tbackground-size: 100% 230%;\n\ttransition: background 0.4s ease;\n\tfont-size: 20px;\n}\n.dark-mode-button:focus {\n\tbox-shadow: 0 0 0px 2px #0084d2;\n}\n.dark-mode-button .sun-moon,\n.dark-mode-button .sun-moon .shadow {\n\tposition: relative;\n\tdisplay: block;\n\tcontent: \"\";\n\twidth: calc(2em - var(--dark-mode-button-padding) * 2);\n\theight: calc(2em - var(--dark-mode-button-padding) * 2);\n}\n.dark-mode-button .sun-moon {\n\tleft: 0;\n\toverflow: hidden;\n\tborder-radius: 50%;\n\tbackground: var(--sun-yellow);\n\ttransition: left 0.2s ease, background 0.5s ease;\n}\n.dark-mode-button .sun-moon .shadow {\n\tposition: absolute;\n\tborder-radius: 50%;\n\ttransition: background 0.4s ease, opacity 0.2s ease, left 0.2s ease;\n\tleft: 100%;\n\tbottom: -0.5em;\n\twidth: calc(3em - var(--dark-mode-button-padding) * 2);\n\theight: calc(3em - var(--dark-mode-button-padding) * 2);\n\tbackground: var(--moon-shadow);\n\tbackground-size: 100% 200%;\n}\n.dark-mode-button,\n.dark-mode-button .sun-moon .shadow {\n\tbackground-position: 0 100%;\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .sun-moon {\n\tleft: 50%;\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .sun-moon {\n\tbackground: var(--night-light);\n\tbox-shadow: inset 0 0 1px 0px #231f6b;\n}\n[data-color-scheme=\"dark\"] .dark-mode-button,\n[data-color-scheme=\"dark\"] .dark-mode-button .sun-moon .shadow {\n\tbackground-position: 0 0;\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .sun-moon .shadow {\n\tleft: -90%;\n\ttransition: background 0.4s ease, opacity 0.4s ease, left 1s ease;\n}\n[data-color-scheme=\"light\"] .dark-mode-button .sun-moon .shadow {\n\topacity: 0;\n}\n.dark-mode-button .rays {\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\twidth: 2em;\n\theight: 2em;\n\tpointer-events: none;\n}\n.dark-mode-button .rays .ray {\n\twidth: 0.5em;\n\theight: 0.3em;\n\tborder-radius: 0.3em;\n\tbackground: var(--sun-yellow);\n\tposition: absolute;\n\tleft: 50%;\n\ttop: 50%;\n\ttransition: transform 0.2s ease, border-radius 0.2s ease, width 0.2s ease, height 0.2s ease, background 0.4s ease;\n}\n/* .dark-mode-button:focus .rays .ray {\n\ttransition: transform 0.2s ease, border-radius 0.2s ease, width 0.2s ease, height 0.2s ease, background 0.4s ease, box-shadow 0.2s ease;\n}\n[data-color-scheme=\"light\"] .dark-mode-button:focus .sun-moon,\n[data-color-scheme=\"light\"] .dark-mode-button:focus .rays .ray {\n\tbox-shadow: 0 0 0 2px orange;\n} */\n.dark-mode-button .rays .ray:nth-child(1) {\n\ttransform: translate(-50%, -50%) rotate(0.125turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(2) {\n\ttransform: translate(-50%, -50%) rotate(0.25turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(3) {\n\ttransform: translate(-50%, -50%) rotate(0.375turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(4) {\n\ttransform: translate(-50%, -50%) rotate(0.5turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(5) {\n\ttransform: translate(-50%, -50%) rotate(0.625turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(6) {\n\ttransform: translate(-50%, -50%) rotate(0.75turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(7) {\n\ttransform: translate(-50%, -50%) rotate(0.875turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(8) {\n\ttransform: translate(-50%, -50%) rotate(1turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(9) {\n\ttransform: translate(-50%, -50%) rotate(1.125turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(10) {\n\ttransform: translate(-50%, -50%) rotate(1.25turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(11) {\n\ttransform: translate(-50%, -50%) rotate(1.375turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(12) {\n\ttransform: translate(-50%, -50%) rotate(1.5turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(13) {\n\ttransform: translate(-50%, -50%) rotate(1.625turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(14) {\n\ttransform: translate(-50%, -50%) rotate(1.75turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(15) {\n\ttransform: translate(-50%, -50%) rotate(1.875turn) translate(1.3em, 0);\n}\n.dark-mode-button .rays .ray:nth-child(16) {\n\ttransform: translate(-50%, -50%) rotate(2turn) translate(1.3em, 0);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray {\n\twidth: 0.2em;\n\theight: 0.2em;\n\tborder-radius: 0.2em;\n\tbackground: var(--night-light);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(1) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.236em, -0.0872em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(2) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.056em, 0.2912em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(3) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.124em, 0.3352em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(4) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.776em, 0.0448em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(5) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.1em, -0.58em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(6) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.504em, 0.2208em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(7) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.436em, 0.6872em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(8) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.104em, 0.8192em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(9) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.884em, 0.6168em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(10) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.6em, 0.08em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(11) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.556em, -0.7912em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(12) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.984em, -0.2368em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(13) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.116em, -0.0168em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(14) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.744em, -0.1312em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(15) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.9em, -0.58em);\n}\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(16) {\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.584em, 0.3968em);\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/css/main.df2881b6.css b/static/css/main.df2881b6.css new file mode 100644 index 0000000..a1a2616 --- /dev/null +++ b/static/css/main.df2881b6.css @@ -0,0 +1,2 @@ +#root,body,html{flex-direction:column}#root,.App,body,html{display:flex;height:100%;overflow:hidden}.App{flex-direction:row;transition:background .8s ease}[data-color-scheme=dark] .App{background:#333;color:#fff}.App>main{flex:1 1;overflow:auto}.sidebar{flex-basis:400px;max-width:30vw}.toolbar-button{align-items:center;background:none;border:none;border-radius:50%;display:inline-flex;padding:8px}.toolbar-button:focus,.toolbar-button:hover{background:#80808066}.toolbar-button:focus:not([aria-checked]),.toolbar-button:hover:not([aria-checked]){background:#cbdbfc;color:#000;outline:none}.toolbar-button:active:not([aria-checked]){background:#d6e4ff;color:#000}.toolbar-button[aria-checked]{background:#639bff;color:#fff}#documents-options{align-items:center;display:flex;flex-direction:row;padding:0 15px}#documents-options>*{flex:0 0 auto}.Colorbox{align-items:center;display:flex;flex-direction:row;margin:1rem}.Colorbox-divider{border-left:1px solid #00000080;height:42px;margin:0 8px}.Colorbox-selected-swatch{height:42px;margin:2px;width:42px}.swatch{border:1px solid #fff;border-radius:2px;box-shadow:0 0 0 1px #000;min-width:0!important;transition:border-color 1s ease}[data-color-scheme=dark] .swatch{border-color:#ffffff80}.Palette-swatch{height:36px;margin:2px;width:36px}:root{--dark-mode-button-padding:0.1em;--sun-yellow:#fd0;--night-light:#ffd;--sky:linear-gradient(180deg,#2929a7 0%,#7c57d8 40%,#17abfa 60%,#adeeff);--moon-shadow:var(--sky)}.dark-mode-button{box-sizing:border-box}.dark-mode-button::selection{background:none}.dark-mode-button{-webkit-tap-highlight-color:transparent;background:linear-gradient(180deg,#2929a7 0,#7c57d8 40%,#17abfa 60%,#adeeff);background:var(--sky);background-size:100% 230%;border:0;border-radius:2em;cursor:pointer;display:block;font-size:20px;height:2em;outline:0;padding:.1em;padding:var(--dark-mode-button-padding);position:relative;transition:background .4s ease;-webkit-user-select:none;user-select:none;width:4em}.dark-mode-button:focus{box-shadow:0 0 0 2px #0084d2}.dark-mode-button .sun-moon,.dark-mode-button .sun-moon .shadow{content:"";display:block;height:1.8em;height:calc(2em - var(--dark-mode-button-padding)*2);position:relative;width:1.8em;width:calc(2em - var(--dark-mode-button-padding)*2)}.dark-mode-button .sun-moon{background:#fd0;background:var(--sun-yellow);border-radius:50%;left:0;overflow:hidden;transition:left .2s ease,background .5s ease}.dark-mode-button .sun-moon .shadow{background:linear-gradient(180deg,#2929a7 0,#7c57d8 40%,#17abfa 60%,#adeeff);background:var(--moon-shadow);background-size:100% 200%;border-radius:50%;bottom:-.5em;height:2.8em;height:calc(3em - var(--dark-mode-button-padding)*2);left:100%;position:absolute;transition:background .4s ease,opacity .2s ease,left .2s ease;width:2.8em;width:calc(3em - var(--dark-mode-button-padding)*2)}.dark-mode-button,.dark-mode-button .sun-moon .shadow{background-position:0 100%}[data-color-scheme=dark] .dark-mode-button .sun-moon{background:#ffd;background:var(--night-light);box-shadow:inset 0 0 1px 0 #231f6b;left:50%}[data-color-scheme=dark] .dark-mode-button,[data-color-scheme=dark] .dark-mode-button .sun-moon .shadow{background-position:0 0}[data-color-scheme=dark] .dark-mode-button .sun-moon .shadow{left:-90%;transition:background .4s ease,opacity .4s ease,left 1s ease}[data-color-scheme=light] .dark-mode-button .sun-moon .shadow{opacity:0}.dark-mode-button .rays{height:2em;left:0;pointer-events:none;position:absolute;top:0;width:2em}.dark-mode-button .rays .ray{background:#fd0;background:var(--sun-yellow);border-radius:.3em;height:.3em;left:50%;position:absolute;top:50%;transition:transform .2s ease,border-radius .2s ease,width .2s ease,height .2s ease,background .4s ease;width:.5em}.dark-mode-button .rays .ray:first-child{transform:translate(-50%,-50%) rotate(45deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(2){transform:translate(-50%,-50%) rotate(90deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(3){transform:translate(-50%,-50%) rotate(135deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(4){transform:translate(-50%,-50%) rotate(.5turn) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(5){transform:translate(-50%,-50%) rotate(225deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(6){transform:translate(-50%,-50%) rotate(270deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(7){transform:translate(-50%,-50%) rotate(315deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(8){transform:translate(-50%,-50%) rotate(1turn) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(9){transform:translate(-50%,-50%) rotate(405deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(10){transform:translate(-50%,-50%) rotate(450deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(11){transform:translate(-50%,-50%) rotate(495deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(12){transform:translate(-50%,-50%) rotate(540deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(13){transform:translate(-50%,-50%) rotate(585deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(14){transform:translate(-50%,-50%) rotate(630deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(15){transform:translate(-50%,-50%) rotate(675deg) translate(1.3em)}.dark-mode-button .rays .ray:nth-child(16){transform:translate(-50%,-50%) rotate(2turn) translate(1.3em)}[data-color-scheme=dark] .dark-mode-button .rays .ray{background:#ffd;background:var(--night-light);border-radius:.2em;height:.2em;width:.2em}[data-color-scheme=dark] .dark-mode-button .rays .ray:first-child{transform:translate(-50%,-50%) rotate(0turn) translate(.236em,-.0872em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(2){transform:translate(-50%,-50%) rotate(0turn) translate(-.056em,.2912em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(3){transform:translate(-50%,-50%) rotate(0turn) translate(.124em,.3352em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(4){transform:translate(-50%,-50%) rotate(0turn) translate(.776em,.0448em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(5){transform:translate(-50%,-50%) rotate(0turn) translate(-.1em,-.58em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(6){transform:translate(-50%,-50%) rotate(0turn) translate(-.504em,.2208em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(7){transform:translate(-50%,-50%) rotate(0turn) translate(-.436em,.6872em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(8){transform:translate(-50%,-50%) rotate(0turn) translate(.104em,.8192em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(9){transform:translate(-50%,-50%) rotate(0turn) translate(-.884em,.6168em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(10){transform:translate(-50%,-50%) rotate(0turn) translate(.6em,.08em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(11){transform:translate(-50%,-50%) rotate(0turn) translate(.556em,-.7912em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(12){transform:translate(-50%,-50%) rotate(0turn) translate(.984em,-.2368em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(13){transform:translate(-50%,-50%) rotate(0turn) translate(-.116em,-.0168em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(14){transform:translate(-50%,-50%) rotate(0turn) translate(-.744em,-.1312em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(15){transform:translate(-50%,-50%) rotate(0turn) translate(-.9em,-.58em)}[data-color-scheme=dark] .dark-mode-button .rays .ray:nth-child(16){transform:translate(-50%,-50%) rotate(0turn) translate(-.584em,.3968em)}.Dialog{align-items:center;bottom:0;display:flex;flex-direction:row;justify-content:center;left:0;pointer-events:none;position:fixed;right:0;top:0}.Dialog-box{background:#fff;border-radius:5px;box-shadow:0 1px 6px #0006;color:#000;padding:30px;pointer-events:auto}[data-color-scheme=dark] .Dialog-box{background:#000;color:#fff}.Dialog-buttons{display:flex;flex-direction:row;justify-content:flex-end;margin-top:1em}.Dialog-buttons button{background:#8080801a;border:1px solid #bfbfbfa1;border-radius:2px;color:inherit;margin-left:5px;padding:.4em 1.5em}.Dialog-buttons button:focus,.Dialog-buttons button:hover{background:#80808033}.Dialog-buttons button:active{background:#8080804d}.Dialog details{border:1px solid #80808080;margin:1em 0;max-width:calc(100vw - 2em);width:40em}.Dialog details>summary{background:#8080801a;cursor:default}.Dialog details[open]>summary{border-bottom:1px solid #80808080}.Dialog details>.actual-details{max-height:10em;overflow:auto}.Dialog details>.actual-details,.Dialog details>summary{padding:.5em}.Dialog details pre{margin:0}.document-picker-dialog-documents{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));max-height:500px;max-width:calc(100vw - 150px);overflow:auto;width:1000px}.document-picker-dialog-documents li,.document-picker-dialog-documents li a{align-items:center;display:flex;flex-direction:column}.document-picker-dialog-documents li a{margin-bottom:5px;padding:5px;text-align:center}.document-picker-dialog-documents li a:focus,.document-picker-dialog-documents li a:hover{background:#2b4bfd1a}.document-thumbnail{align-items:center;display:flex;flex-direction:column;height:100px;justify-content:flex-end;width:100px}.document-picker-dialog-documents li img{border:1px solid #80808080;border-radius:5px;display:block}.DrawingCanvas{box-shadow:0 0 2px #000;margin:1rem;touch-action:none}.LoadingIndicator{--color-one:#e93a27;--color-two:#d7984b;--size:48px;align-self:center;animation:rotation 1s linear infinite;border-right:4px solid #0000;border-top:4px solid var(--color-one);display:inline-block;margin:auto}.LoadingIndicator,.LoadingIndicator:after{border-radius:50%;box-sizing:border-box;height:var(--size);width:var(--size)}.LoadingIndicator:after{animation:rotation .5s linear infinite reverse;border-bottom:4px solid #0000;border-left:4px solid var(--color-two);content:"";left:0;position:absolute;top:0}button .LoadingIndicator{--size:1em}@keyframes rotation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.HistoryEntry{background:#0000;border:0;border-bottom:1px solid #bfbfbfa1;color:inherit;flex:0 0 auto;font:inherit;margin-bottom:2px;overflow:hidden;padding:5px;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}[data-color-scheme=dark] .HistoryEntry:active{background:#639cff21;color:#fff}[data-color-scheme=dark] .HistoryEntry[aria-checked]{background:rgba(99,156,255,.527);color:#fff}.HistoryEntry:active{background:#f0f0f0}.HistoryEntry[aria-checked]{background:#639bff}.HistoryEntry:not(.current):not(.ancestor-of-current){color:gray}.HistoryEntry .ToolPreview,.HistoryEntry .question-mark,.HistoryEntry canvas,.HistoryEntry svg{margin-right:5px;vertical-align:middle}[data-color-scheme=dark] .HistoryEntry .ToolPreview{background:#d3d3d3}.HistoryEntry .question-mark{align-items:center;background:#80808080;border-radius:50%;color:#fff;display:inline-flex;justify-content:center}.HistoryEntry .question-mark:after{content:"?"}.HistoryView{background:#fff;box-shadow:-1px 0 5px #00000080;color:#000;display:flex;flex-direction:column;height:100%;overflow:auto;transition:background .4s ease;-webkit-user-select:none;user-select:none}[data-color-scheme=dark] .HistoryView{background:#000;color:#fff}.Toolbox{margin:1rem}.Toolbox-tool{background:#d3d3d3;border:none;color:#000;padding:8px}.Toolbox-tool:focus:not([aria-checked]),.Toolbox-tool:hover:not([aria-checked]){background:#cbdbfc;color:#000}.Toolbox-tool:active:not([aria-checked]){background:#d6e4ff;color:#000}.Toolbox-tool[aria-checked]{background:#639bff;color:#fff}.Warning{background:#ffff64;border-radius:3px;box-shadow:0 1px 3px #00000080;color:#000;margin:10px;padding:.7em}body{font-family:sans-serif;margin:0;padding:0} +/*# sourceMappingURL=main.df2881b6.css.map*/ \ No newline at end of file diff --git a/static/css/main.df2881b6.css.map b/static/css/main.df2881b6.css.map new file mode 100644 index 0000000..aa9ab68 --- /dev/null +++ b/static/css/main.df2881b6.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/main.df2881b6.css","mappings":"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","sources":["components/App.css","components/Colorbox.css","components/Palette.css","components/DarkModeToggle.css","components/Dialog.css","components/DocumentPickerDialog.css","components/DrawingCanvas.css","components/LoadingIndicator.css","components/HistoryEntry.css","components/HistoryView.css","components/Toolbox.css","components/Warning.css","index.css"],"sourcesContent":["html,\r\nbody,\r\n#root {\r\n\theight: 100%;\r\n\toverflow: hidden;\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n}\r\n\r\n.App {\r\n\theight: 100%;\r\n\toverflow: hidden;\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\ttransition: background 0.8s ease;\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .App {\r\n\tbackground: #333;\r\n\tcolor: white;\r\n}\r\n\r\n.App>main {\r\n\t/* TODO: make the canvas area be the overflow area instead */\r\n\t/* make the color and tool palettes compact enough to be on the screen at all times on mobile by collapsing */\r\n\toverflow: auto;\r\n\tflex: 1;\r\n\t/*display: flex;*/\r\n\t/*flex-direction: column;*/\r\n}\r\n\r\n.sidebar {\r\n\tmax-width: 30vw;\r\n\tflex-basis: 400px;\r\n}\r\n\r\n/* TODO: DRY button styling with .Toolbox-tool */\r\n\r\n.toolbar-button {\r\n\tdisplay: inline-flex;\r\n\talign-items: center;\r\n\tbackground: none;\r\n\tborder: none;\r\n\tpadding: 8px;\r\n\tborder-radius: 50%;\r\n}\r\n\r\n.toolbar-button:hover,\r\n.toolbar-button:focus {\r\n\tbackground: rgba(128, 128, 128, 0.4);\r\n}\r\n\r\n.toolbar-button:hover:not([aria-checked]),\r\n.toolbar-button:focus:not([aria-checked]) {\r\n\tbackground: #cbdbfc;\r\n\tcolor: black;\r\n\toutline: none;\r\n}\r\n\r\n.toolbar-button:active:not([aria-checked]) {\r\n\tbackground: rgb(214, 228, 255);\r\n\tcolor: black;\r\n}\r\n\r\n.toolbar-button[aria-checked] {\r\n\tbackground: #639bff;\r\n\tcolor: white;\r\n}\r\n\r\n#documents-options {\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\talign-items: center;\r\n\tpadding: 0 15px;\r\n}\r\n\r\n#documents-options>* {\r\n\tflex: 0 0 auto;\r\n}\r\n",".Colorbox {\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\t/*justify-content: center;*/\r\n\talign-items: center;\r\n\tmargin: 1rem;\r\n}\r\n\r\n.Colorbox-divider {\r\n\tborder-left: 1px solid rgba(0, 0, 0, 0.5);\r\n\tmargin: 0 8px;\r\n\theight: 42px;\r\n}\r\n\r\n.Colorbox-selected-swatch {\r\n\tmargin: 2px;\r\n\twidth: 42px;\r\n\theight: 42px;\r\n}\r\n\r\n/* TODO: maybe move to a swatch.css? included by both components that use the class? assuming it won't duplicate the css? */\r\n/* oh, or use imports (assuming it won't duplicate the css) */\r\n.swatch {\r\n\tmin-width: 0 !important;\r\n\tborder: none;\r\n\tborder-radius: 2px;\r\n\tbox-shadow: 0 0 0 1px black;\r\n\tborder: 1px solid white;\r\n\ttransition: border-color 1s ease;\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .swatch {\r\n\tborder-color: rgba(255, 255, 255, 0.5);\r\n}\r\n",".Palette-swatch {\r\n\tmargin: 2px;\r\n\twidth: 36px;\r\n\theight: 36px;\r\n}\r\n\r\n/* see .swatch in ColorBox.css */\r\n","/*\r\nfor SCSS source (outdated now), see:\r\nhttps://jsfiddle.net/1j01/s3gk4jun\r\nhttps://codepen.io/1j01/pen/eYdreKy\r\n\r\nBased on toggle buttons by @mallendeo https://codepen.io/mallendeo/pen/eLIiG\r\n\r\nGradient inspired by https://dribbble.com/shots/3348220-Night-Mode-Toggle#shot-description\r\n*/\r\n\r\n:root {\r\n\t--dark-mode-button-padding: 0.1em;\r\n\t--sun-yellow: #fd0;\r\n\t--night-light: #ffd;\r\n\t/* to edit this gradient: https://colorzilla.com/gradient-editor/#2929a7+0,7c57d8+40,17abfa+60,adeeff+100 */\r\n\t--sky: linear-gradient(to bottom, #2929a7 0%, #7c57d8 40%, #17abfa 60%, #adeeff 100%);\r\n\t--moon-shadow: var(--sky);\r\n}\r\n\r\n.dark-mode-button {\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n.dark-mode-button::-moz-selection {\r\n\tbackground: none;\r\n}\r\n\r\n.dark-mode-button::selection {\r\n\tbackground: none;\r\n}\r\n\r\n.dark-mode-button {\r\n\tborder: 0;\r\n\toutline: 0;\r\n\tdisplay: block;\r\n\twidth: 4em;\r\n\theight: 2em;\r\n\tposition: relative;\r\n\tcursor: pointer;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n\t-webkit-tap-highlight-color: transparent;\r\n\tborder-radius: 2em;\r\n\tpadding: var(--dark-mode-button-padding);\r\n\tbackground: var(--sky);\r\n\tbackground-size: 100% 230%;\r\n\ttransition: background 0.4s ease;\r\n\tfont-size: 20px;\r\n}\r\n\r\n.dark-mode-button:focus {\r\n\tbox-shadow: 0 0 0px 2px #0084d2;\r\n}\r\n\r\n.dark-mode-button .sun-moon,\r\n.dark-mode-button .sun-moon .shadow {\r\n\tposition: relative;\r\n\tdisplay: block;\r\n\tcontent: \"\";\r\n\twidth: calc(2em - var(--dark-mode-button-padding) * 2);\r\n\theight: calc(2em - var(--dark-mode-button-padding) * 2);\r\n}\r\n\r\n.dark-mode-button .sun-moon {\r\n\tleft: 0;\r\n\toverflow: hidden;\r\n\tborder-radius: 50%;\r\n\tbackground: var(--sun-yellow);\r\n\ttransition: left 0.2s ease, background 0.5s ease;\r\n}\r\n\r\n.dark-mode-button .sun-moon .shadow {\r\n\tposition: absolute;\r\n\tborder-radius: 50%;\r\n\ttransition: background 0.4s ease, opacity 0.2s ease, left 0.2s ease;\r\n\tleft: 100%;\r\n\tbottom: -0.5em;\r\n\twidth: calc(3em - var(--dark-mode-button-padding) * 2);\r\n\theight: calc(3em - var(--dark-mode-button-padding) * 2);\r\n\tbackground: var(--moon-shadow);\r\n\tbackground-size: 100% 200%;\r\n}\r\n\r\n.dark-mode-button,\r\n.dark-mode-button .sun-moon .shadow {\r\n\tbackground-position: 0 100%;\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .sun-moon {\r\n\tleft: 50%;\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .sun-moon {\r\n\tbackground: var(--night-light);\r\n\tbox-shadow: inset 0 0 1px 0px #231f6b;\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button,\r\n[data-color-scheme=\"dark\"] .dark-mode-button .sun-moon .shadow {\r\n\tbackground-position: 0 0;\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .sun-moon .shadow {\r\n\tleft: -90%;\r\n\ttransition: background 0.4s ease, opacity 0.4s ease, left 1s ease;\r\n}\r\n\r\n[data-color-scheme=\"light\"] .dark-mode-button .sun-moon .shadow {\r\n\topacity: 0;\r\n}\r\n\r\n.dark-mode-button .rays {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\twidth: 2em;\r\n\theight: 2em;\r\n\tpointer-events: none;\r\n}\r\n\r\n.dark-mode-button .rays .ray {\r\n\twidth: 0.5em;\r\n\theight: 0.3em;\r\n\tborder-radius: 0.3em;\r\n\tbackground: var(--sun-yellow);\r\n\tposition: absolute;\r\n\tleft: 50%;\r\n\ttop: 50%;\r\n\ttransition: transform 0.2s ease, border-radius 0.2s ease, width 0.2s ease, height 0.2s ease, background 0.4s ease;\r\n}\r\n\r\n/* .dark-mode-button:focus .rays .ray {\r\n\ttransition: transform 0.2s ease, border-radius 0.2s ease, width 0.2s ease, height 0.2s ease, background 0.4s ease, box-shadow 0.2s ease;\r\n}\r\n[data-color-scheme=\"light\"] .dark-mode-button:focus .sun-moon,\r\n[data-color-scheme=\"light\"] .dark-mode-button:focus .rays .ray {\r\n\tbox-shadow: 0 0 0 2px orange;\r\n} */\r\n.dark-mode-button .rays .ray:nth-child(1) {\r\n\ttransform: translate(-50%, -50%) rotate(0.125turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(2) {\r\n\ttransform: translate(-50%, -50%) rotate(0.25turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(3) {\r\n\ttransform: translate(-50%, -50%) rotate(0.375turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(4) {\r\n\ttransform: translate(-50%, -50%) rotate(0.5turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(5) {\r\n\ttransform: translate(-50%, -50%) rotate(0.625turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(6) {\r\n\ttransform: translate(-50%, -50%) rotate(0.75turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(7) {\r\n\ttransform: translate(-50%, -50%) rotate(0.875turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(8) {\r\n\ttransform: translate(-50%, -50%) rotate(1turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(9) {\r\n\ttransform: translate(-50%, -50%) rotate(1.125turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(10) {\r\n\ttransform: translate(-50%, -50%) rotate(1.25turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(11) {\r\n\ttransform: translate(-50%, -50%) rotate(1.375turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(12) {\r\n\ttransform: translate(-50%, -50%) rotate(1.5turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(13) {\r\n\ttransform: translate(-50%, -50%) rotate(1.625turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(14) {\r\n\ttransform: translate(-50%, -50%) rotate(1.75turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(15) {\r\n\ttransform: translate(-50%, -50%) rotate(1.875turn) translate(1.3em, 0);\r\n}\r\n\r\n.dark-mode-button .rays .ray:nth-child(16) {\r\n\ttransform: translate(-50%, -50%) rotate(2turn) translate(1.3em, 0);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray {\r\n\twidth: 0.2em;\r\n\theight: 0.2em;\r\n\tborder-radius: 0.2em;\r\n\tbackground: var(--night-light);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(1) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.236em, -0.0872em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(2) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.056em, 0.2912em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(3) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.124em, 0.3352em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(4) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.776em, 0.0448em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(5) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.1em, -0.58em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(6) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.504em, 0.2208em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(7) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.436em, 0.6872em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(8) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.104em, 0.8192em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(9) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.884em, 0.6168em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(10) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.6em, 0.08em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(11) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.556em, -0.7912em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(12) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(0.984em, -0.2368em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(13) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.116em, -0.0168em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(14) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.744em, -0.1312em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(15) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.9em, -0.58em);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .dark-mode-button .rays .ray:nth-child(16) {\r\n\ttransform: translate(-50%, -50%) rotate(0turn) translate(-0.584em, 0.3968em);\r\n}\r\n",".Dialog {\r\n\tposition: fixed;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\tpointer-events: none;\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n}\r\n\r\n.Dialog-box {\r\n\tpointer-events: auto;\r\n\tpadding: 30px;\r\n\tbackground: white;\r\n\tcolor: black;\r\n\tborder-radius: 5px;\r\n\tbox-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .Dialog-box {\r\n\tbackground: black;\r\n\tcolor: white;\r\n}\r\n\r\n.Dialog-buttons {\r\n\t/* TODO: friendly buttons */\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n\tjustify-content: flex-end;\r\n\tmargin-top: 1em;\r\n}\r\n\r\n.Dialog-buttons button {\r\n\tpadding: 0.4em 1.5em;\r\n\tbackground: rgba(128, 128, 128, 0.1);\r\n\tborder: 1px solid rgba(191, 191, 191, 0.63);\r\n\tmargin-left: 5px;\r\n\tborder-radius: 2px;\r\n\tcolor: inherit;\r\n}\r\n\r\n.Dialog-buttons button:hover,\r\n.Dialog-buttons button:focus {\r\n\tbackground: rgba(128, 128, 128, 0.2);\r\n}\r\n\r\n.Dialog-buttons button:active {\r\n\tbackground: rgba(128, 128, 128, 0.3);\r\n}\r\n\r\n.Dialog details {\r\n\tmargin: 1em 0;\r\n\twidth: 40em;\r\n\tmax-width: calc(100vw - 2em);\r\n\tborder: 1px solid rgba(128, 128, 128, 0.5);\r\n}\r\n\r\n.Dialog details>summary {\r\n\tbackground: rgba(128, 128, 128, 0.1);\r\n\t/*cursor: pointer;*/\r\n\t/* We could do a pointer hand, but then it feels like *everything* should have a pointer hand,\r\n\tand maybe it should, idk - it can be a useful cue to know when you can click on something -\r\n\tbut let's just make it *not* show a text selection cursor (over the text) for now */\r\n\tcursor: default;\r\n}\r\n\r\n.Dialog details[open]>summary {\r\n\tborder-bottom: 1px solid rgba(128, 128, 128, 0.5);\r\n}\r\n\r\n.Dialog details>.actual-details {\r\n\tmax-height: 10em;\r\n\toverflow: auto;\r\n}\r\n\r\n.Dialog details>summary,\r\n.Dialog details>.actual-details {\r\n\tpadding: 0.5em;\r\n}\r\n\r\n.Dialog details pre {\r\n\tmargin: 0;\r\n}\r\n",".document-picker-dialog-documents {\r\n\twidth: 1000px;\r\n\tmax-width: calc(100vw - 150px);\r\n\tmax-height: 500px;\r\n\toverflow: auto;\r\n\tdisplay: grid;\r\n\tgrid-template-columns: repeat(auto-fit, minmax(150px, 1fr));\r\n}\r\n\r\n.document-picker-dialog-documents li {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\talign-items: center;\r\n}\r\n\r\n.document-picker-dialog-documents li a {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\talign-items: center;\r\n\ttext-align: center;\r\n\tmargin-bottom: 5px;\r\n\tpadding: 5px;\r\n}\r\n\r\n.document-picker-dialog-documents li a:hover,\r\n.document-picker-dialog-documents li a:focus {\r\n\tbackground: rgba(43, 75, 253, 0.1);\r\n}\r\n\r\n.document-thumbnail {\r\n\twidth: 100px;\r\n\theight: 100px;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tflex-direction: column;\r\n\tjustify-content: flex-end;\r\n}\r\n\r\n.document-picker-dialog-documents li img {\r\n\tdisplay: block;\r\n\tborder: 1px solid rgba(128, 128, 128, 0.5);\r\n\tborder-radius: 5px;\r\n}\r\n",".DrawingCanvas {\r\n\tmargin: 1rem;\r\n\tbox-shadow: 0 0 2px black;\r\n\ttouch-action: none;\r\n}\r\n","/* taken from https://vineethtrv.github.io/loader/ */\r\n/* I like this one because it looks like a couple koi fish, playful */\r\n.LoadingIndicator {\r\n\t/* Benigoi */\r\n\t--color-one: #e93a27;\r\n\t/* Kigoi */\r\n\t--color-two: #d7984b;\r\n\r\n\t--size: 48px;\r\n\r\n\talign-self: center;\r\n\tmargin: auto;\r\n\r\n\twidth: var(--size);\r\n\theight: var(--size);\r\n\tborder-radius: 50%;\r\n\tdisplay: inline-block;\r\n\tborder-top: 4px solid var(--color-one);\r\n\tborder-right: 4px solid transparent;\r\n\tbox-sizing: border-box;\r\n\tanimation: rotation 1s linear infinite;\r\n}\r\n\r\n.LoadingIndicator::after {\r\n\tcontent: \"\";\r\n\tbox-sizing: border-box;\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\twidth: var(--size);\r\n\theight: var(--size);\r\n\tborder-radius: 50%;\r\n\r\n\tborder-left: 4px solid var(--color-two);\r\n\tborder-bottom: 4px solid transparent;\r\n\tanimation: rotation 0.5s linear infinite reverse;\r\n\t/* transform: rotate(180deg);\r\n\tborder-top: 4px solid var(--color-two);\r\n\tborder-right: 4px solid transparent; */\r\n}\r\n\r\nbutton .LoadingIndicator {\r\n\t--size: 1em;\r\n}\r\n\r\n@keyframes rotation {\r\n\t0% {\r\n\t\ttransform: rotate(0deg);\r\n\t}\r\n\r\n\t100% {\r\n\t\ttransform: rotate(360deg);\r\n\t}\r\n}\r\n",".HistoryEntry {\r\n\tflex: 0 0 auto;\r\n\twidth: 100%;\r\n\t/*width: 200px;*/\r\n\t/*cursor: pointer;*/\r\n\tborder: 0;\r\n\tborder-bottom: 1px solid rgba(191, 191, 191, 0.63);\r\n\tpadding: 5px;\r\n\tfont: inherit;\r\n\ttext-align: left;\r\n\toverflow: hidden;\r\n\twhite-space: nowrap;\r\n\ttext-overflow: ellipsis;\r\n\tbackground: transparent;\r\n\tcolor: inherit;\r\n\t/* to allow space for a focus ring */\r\n\tmargin-bottom: 2px;\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .HistoryEntry:active {\r\n\tbackground: rgba(99, 156, 255, 0.13);\r\n\tcolor: white;\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .HistoryEntry[aria-checked] {\r\n\tbackground: rgba(99, 156, 255, 0.527);\r\n\tcolor: white;\r\n}\r\n\r\n.HistoryEntry:active {\r\n\tbackground: rgb(240, 240, 240);\r\n}\r\n\r\n.HistoryEntry[aria-checked] {\r\n\tbackground: rgb(99, 155, 255);\r\n}\r\n\r\n.HistoryEntry:not(.current):not(.ancestor-of-current) {\r\n\tcolor: gray;\r\n}\r\n\r\n.HistoryEntry canvas,\r\n.HistoryEntry svg,\r\n.HistoryEntry .question-mark,\r\n.HistoryEntry .ToolPreview {\r\n\tmargin-right: 5px;\r\n\tvertical-align: middle;\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .HistoryEntry .ToolPreview {\r\n\t/* for now */\r\n\tbackground: lightgray;\r\n}\r\n\r\n.HistoryEntry .question-mark {\r\n\tdisplay: inline-flex;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\tborder-radius: 50%;\r\n\tbackground: rgba(128, 128, 128, 0.5);\r\n\tcolor: white;\r\n}\r\n\r\n.HistoryEntry .question-mark::after {\r\n\tcontent: \"?\";\r\n}\r\n",".HistoryView {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\toverflow: auto;\r\n\theight: 100%;\r\n\tuser-select: none;\r\n\tbox-shadow: -1px 0 5px rgba(0, 0, 0, 0.5);\r\n\tbackground: white;\r\n\tcolor: black;\r\n\t/* it's not that good of a transition because the text color isn't transitioned, so make it relatively quick */\r\n\ttransition: background 0.4s ease;\r\n}\r\n\r\n[data-color-scheme=\"dark\"] .HistoryView {\r\n\tbackground: black;\r\n\tcolor: white;\r\n}\r\n",".Toolbox {\r\n\tmargin: 1rem;\r\n}\r\n\r\n.Toolbox-tool {\r\n\tborder: none;\r\n\tpadding: 8px;\r\n\tbackground: lightgray;\r\n\tcolor: black;\r\n}\r\n\r\n.Toolbox-tool:hover:not([aria-checked]),\r\n.Toolbox-tool:focus:not([aria-checked]) {\r\n\tbackground: #cbdbfc;\r\n\tcolor: black;\r\n}\r\n\r\n.Toolbox-tool:active:not([aria-checked]) {\r\n\tbackground: rgb(214, 228, 255);\r\n\tcolor: black;\r\n}\r\n\r\n.Toolbox-tool[aria-checked] {\r\n\tbackground: #639bff;\r\n\tcolor: white;\r\n}\r\n",".Warning {\r\n\tbackground: rgb(255, 255, 100);\r\n\tcolor: black;\r\n\tpadding: 0.7em;\r\n\tmargin: 10px;\r\n\tborder-radius: 3px;\r\n\tbox-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);\r\n}\r\n","body {\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tfont-family: sans-serif;\r\n}\r\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/main.d5788e64.js b/static/js/main.d5788e64.js new file mode 100644 index 0000000..df09f10 --- /dev/null +++ b/static/js/main.d5788e64.js @@ -0,0 +1,3 @@ +/*! For license information please see main.d5788e64.js.LICENSE.txt */ +(()=>{var e={288:()=>{let e,t;window.simulateRandomGesture=t=>{let n=document.querySelector("canvas"),r=n.getBoundingClientRect(),o=(e,t)=>{let o=new MouseEvent(e,{view:window,bubbles:!0,cancelable:!0,clientX:r.left+t.x,clientY:r.top+t.y});n.dispatchEvent(o)},i=0,a=Math.random()*r.width,s=Math.random()*r.height,u=[];for(let e=0;e<5;e+=1)u.push({rx:Math.random()*Math.min(r.width,r.height)/2/5,ry:Math.random()*Math.min(r.width,r.height)/2/5,angularFactor:5*Math.random()-Math.random(),angularOffset:5*Math.random()-Math.random()});let l=e=>{let t={x:a,y:s};for(let n=0;n{i+=1,i>50?(o("mouseup",l(i)),t&&t()):(o("mousemove",l(i)),e=setTimeout(c,10))};c()},window.simulateRandomGesturesPeriodically=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,n=()=>{t=setTimeout((()=>{window.simulateRandomGesture(n)}),e)};window.simulateRandomGesture(n)},window.stopSimulatingGestures=()=>{clearTimeout(e),clearTimeout(t)}},771:(e,t,n)=>{e.exports=function(){var e;return function(){function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return o(t[a][1][e]||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,r=l(e),a=r[0],s=r[1],u=new i(f(e,a,s)),c=0,h=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,o=[],i=t;iu?u:s+a));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],2:[function(e,t,n){},{}],3:[function(e,t,n){(function(t){(function(){"use strict";var t=e("base64-js"),r=e("ieee754");n.Buffer=s,n.SlowBuffer=v,n.INSPECT_MAX_BYTES=50;var o=2147483647;function i(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}function a(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=s.prototype,t}function s(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,n)}function u(e,t,n){if("string"===typeof e)return h(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return p(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var o=m(e);if(o)return o;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e,t,n){return l(e),e<=0?a(e):void 0!==t?"string"===typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}function f(e){return l(e),a(e<0?0:0|g(e))}function h(e,t){if("string"===typeof t&&""!==t||(t="utf8"),!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|y(e,t),r=a(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}function d(e){for(var t=e.length<0?0:0|g(e.length),n=a(t),r=0;r=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),s.alloc(+e)}function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(o)return r?-1:V(e).length;t=(""+t).toLowerCase(),o=!0}}function b(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return N(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function w(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:E(e,t,n,r,o);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):E(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function E(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;is&&(n=s-u),i=n;i>=0;i--){for(var f=!0,h=0;ho&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a239?4:l>223?3:l>191?2:1;if(o+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128===(192&(i=e[o+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(u=(15&l)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return A(r)}n.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=i(),s.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!==typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(e,t,n){return u(e,t,n)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(e,t,n){return c(e,t,n)},s.allocUnsafe=function(e){return f(e)},s.allocUnsafeSlow=function(e){return f(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(Q(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);ot&&(e+=" ... "),""},s.prototype.compare=function(e,t,n,r,o){if(Q(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),u=Math.min(i,a),l=this.slice(r,o),c=e.slice(t,n),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return T(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function A(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function U(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,o,i){return t=+t,n>>>=0,i||U(e,t,n,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,n,o,23,4),n+4}function z(e,t,n,o,i){return t=+t,n>>>=0,i||U(e,t,n,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,n,o,52,8),n+8}s.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],o=1,i=0;++i>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),r.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),r.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),r.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),r.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||F(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,r||F(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);F(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);F(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},s.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"===typeof e&&(e&=255);if(t<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function W(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function Y(e){return t.toByteArray(K(e))}function $(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!==e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":1,buffer:3,ieee754:6}],4:[function(t,r,o){(function(t){(function(){var n,i;n="undefined"!=typeof t?t:this,i=function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var t,n=String(e),r=n.length,o=-1,i="",a=n.charCodeAt(0);++o=1&&t<=31||127==t||0==o&&t>=48&&t<=57||1==o&&t>=48&&t<=57&&45==a?"\\"+t.toString(16)+" ":0==o&&1==r&&45==t||!(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)?"\\"+n.charAt(o):n.charAt(o):i+="\ufffd";return i};return e.CSS||(e.CSS={}),e.CSS.escape=t,t},"object"==typeof o?r.exports=i(n):"function"==typeof e&&e.amd?e([],i.bind(n,n)):i(n)}).call(this)}).call(this,"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],5:[function(e,t,n){"use strict";var r,o="object"===typeof Reflect?Reflect:null,i=o&&"function"===typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function a(e){console&&console.warn&&console.warn(e)}r=o&&"function"===typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function u(){u.init.call(this)}t.exports=u,t.exports.once=w,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function h(e,t,n,r){var o,i,s;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"===typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=f(e))>0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a(u)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=d.bind(r);return o.listener=n,r.wrapFn=o,o}function m(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"===typeof o?n?[o.listener||o]:[o]:n?b(o):v(o,o.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"===typeof u)i(u,this,t);else{var l=u.length,c=v(u,l);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():y(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return m(this,e,!0)},u.prototype.rawListeners=function(e){return m(this,e,!1)},u.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},u.prototype.listenerCount=g,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},{}],6:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<>1,c=-7,f=n?o-1:0,h=n?-1:1,d=e[t+f];for(f+=h,i=d&(1<<-c)-1,d>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=l}return(d?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,s,u,l=8*i-o-1,c=(1<>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&s,d+=p,s/=256,o-=8);for(a=a<0;e[n+d]=255&a,d+=p,a/=256,l-=8);e[n+d-p]|=128*m}},{}],7:[function(e,t,n){(function(e){(function(){!function(e){var n=this;t.exports=e(n)}((function(t){"use strict";function n(e,t){return"object"==typeof e&&null!==e&&(e.constructor===t||Object.prototype.toString.call(e)==="[object "+t.name+"]")}function r(e,t){return!t&&n(e,Array)?e:Array.prototype.slice.call(e)}function o(e,t){return void 0!==e?e:t}function i(t,r,a,s){if(i.is(t)){var u=t.slice(r,r+a);return u._littleEndian=o(s,u._littleEndian),u}if(!i.is(this))return new i(t,r,a,s);if(this.buffer=t=i.wrapBuffer(t),this._isArrayBuffer=c.ArrayBuffer&&n(t,ArrayBuffer),this._isPixelData=!1,this._isDataView=c.DataView&&this._isArrayBuffer,this._isNodeBuffer=c.NodeBuffer&&n(t,e),!this._isNodeBuffer&&!this._isArrayBuffer&&!n(t,Array))throw new TypeError("jDataView buffer has an incompatible type");this._littleEndian=!!s;var l="byteLength"in t?t.byteLength:t.length;this.byteOffset=r=o(r,0),this.byteLength=a=o(a,l-r),this._offset=this._bitOffset=0,this._isDataView?this._view=new DataView(t,r,a):this._checkBounds(r,a,l),this._engineAction=this._isDataView?this._dataViewAction:this._isNodeBuffer?this._nodeBufferAction:this._isArrayBuffer?this._arrayBufferAction:this._arrayAction}function a(t){if(c.NodeBuffer)return new e(t,"binary");for(var n=new(c.ArrayBuffer?Uint8Array:Array)(t.length),r=0,o=t.length;o>r;r++)n[r]=255&t.charCodeAt(r);return n}function s(e){return e>=0&&31>e?1<=0){var r=u.fromNumber(e);t=r.lo,n=r.hi}else t=e-(n=Math.floor(e/s(32)))*s(32),n+=s(32);return new l(t,n)};var p=i.prototype={compatibility:c,jDataView:!0,_checkBounds:function(e,t,n){if("number"!=typeof e)throw new TypeError("Offset is not a number.");if("number"!=typeof t)throw new TypeError("Size is not a number.");if(0>t)throw new RangeError("Length is negative.");if(0>e||e+t>o(n,this.byteLength))throw new RangeError("Offsets are out of bounds.")},_action:function(e,t,n,r,i){return this._engineAction(e,t,o(n,this._offset),o(r,this._littleEndian),i)},_dataViewAction:function(e,t,n,r,o){return this._offset=n+d[e],t?this._view["get"+e](n,r):this._view["set"+e](n,o,r)},_arrayBufferAction:function(e,n,r,i,a){var s,u=d[e],l=t[e+"Array"];if(i=o(i,this._littleEndian),1===u||(this.byteOffset+r)%u===0&&i)return s=new l(this.buffer,this.byteOffset+r,1),this._offset=r+u,n?s[0]:s[0]=a;var c=new Uint8Array(n?this.getBytes(u,r,i,!0):u);return s=new l(c.buffer,0,1),n?s[0]:(s[0]=a,void this._setBytes(r,c,i))},_arrayAction:function(e,t,n,r,o){return t?this["_get"+e](n,r):this["_set"+e](n,o,r)},_getBytes:function(e,t,n){n=o(n,this._littleEndian),t=o(t,this._offset),e=o(e,this.byteLength-t),this._checkBounds(t,e),t+=this.byteOffset,this._offset=t-this.byteOffset+e;var i=this._isArrayBuffer?new Uint8Array(this.buffer,t,e):(this.buffer.slice||Array.prototype.slice).call(this.buffer,t,t+e);return n||1>=e?i:r(i).reverse()},getBytes:function(e,t,n,i){var a=this._getBytes(e,t,o(n,!0));return i?r(a):a},_setBytes:function(t,n,i){var a=n.length;if(0!==a){if(i=o(i,this._littleEndian),t=o(t,this._offset),this._checkBounds(t,a),!i&&a>1&&(n=r(n,!0).reverse()),t+=this.byteOffset,this._isArrayBuffer)new Uint8Array(this.buffer,t,a).set(n);else if(this._isNodeBuffer)new e(n).copy(this.buffer,t);else for(var s=0;a>s;s++)this.buffer[t+s]=n[s];this._offset=t-this.byteOffset+a}},setBytes:function(e,t,n){this._setBytes(e,t,o(n,!0))},getString:function(e,t,n){if(this._isNodeBuffer)return t=o(t,this._offset),e=o(e,this.byteLength-t),this._checkBounds(t,e),this._offset=t+e,this.buffer.toString(n||"binary",this.byteOffset+t,this.byteOffset+this._offset);var r=this._getBytes(e,t,!0);if(n="utf8"===n?"utf-8":n||"binary",h&&"binary"!==n)return new h(n).decode(this._isArrayBuffer?r:new Uint8Array(r));var i="";e=r.length;for(var a=0;e>a;a++)i+=String.fromCharCode(r[a]);return"utf-8"===n&&(i=decodeURIComponent(escape(i))),i},setString:function(e,t,n){if(this._isNodeBuffer)return e=o(e,this._offset),this._checkBounds(e,t.length),void(this._offset=e+this.buffer.write(t,this.byteOffset+e,n||"binary"));var r;n="utf8"===n?"utf-8":n||"binary",f&&"binary"!==n?r=new f(n).encode(t):("utf-8"===n&&(t=unescape(encodeURIComponent(t))),r=a(t)),this._setBytes(e,r,!0)},getChar:function(e){return this.getString(1,e)},setChar:function(e,t){this.setString(e,t)},tell:function(){return this._offset},seek:function(e){return this._checkBounds(e,0),this._offset=e},skip:function(e){return this.seek(this._offset+e)},slice:function(e,t,n){function r(e,t){return 0>e?e+t:e}return e=r(e,this.byteLength),t=r(o(t,this.byteLength),this.byteLength),n?new i(this.getBytes(t-e,e,!0,!0),void 0,void 0,this._littleEndian):new i(this.buffer,this.byteOffset+e,t-e,this._littleEndian)},alignBy:function(e){return this._bitOffset=0,1!==o(e,1)?this.skip(e-(this._offset%e||e)):this._offset},_getFloat64:function(e,t){var n=this._getBytes(8,e,t),r=1-2*(n[7]>>7),o=((n[7]<<1&255)<<3|n[6]>>4)-1023,i=(15&n[6])*s(48)+n[5]*s(40)+n[4]*s(32)+n[3]*s(24)+n[2]*s(16)+n[1]*s(8)+n[0];return 1024===o?0!==i?NaN:1/0*r:-1023===o?r*i*s(-1074):r*(1+i*s(-52))*s(o)},_getFloat32:function(e,t){var n=this._getBytes(4,e,t),r=1-2*(n[3]>>7),o=(n[3]<<1&255|n[2]>>7)-127,i=(127&n[2])<<16|n[1]<<8|n[0];return 128===o?0!==i?NaN:1/0*r:-127===o?r*i*s(-149):r*(1+i*s(-23))*s(o)},_get64:function(e,t,n){n=o(n,this._littleEndian),t=o(t,this._offset);for(var r=n?[0,4]:[4,0],i=0;2>i;i++)r[i]=this.getUint32(t+r[i],n);return this._offset=t+8,new e(r[0],r[1])},getInt64:function(e,t){return this._get64(l,e,t)},getUint64:function(e,t){return this._get64(u,e,t)},_getInt32:function(e,t){var n=this._getBytes(4,e,t);return n[3]<<24|n[2]<<16|n[1]<<8|n[0]},_getUint32:function(e,t){return this._getInt32(e,t)>>>0},_getInt16:function(e,t){return this._getUint16(e,t)<<16>>16},_getUint16:function(e,t){var n=this._getBytes(2,e,t);return n[1]<<8|n[0]},_getInt8:function(e){return this._getUint8(e)<<24>>24},_getUint8:function(e){return this._getBytes(1,e)[0]},_getBitRangeData:function(e,t){var n=(o(t,this._offset)<<3)+this._bitOffset,r=n+e,i=n>>>3,a=r+7>>>3,s=this._getBytes(a-i,i,!0),u=0;(this._bitOffset=7&r)&&(this._bitOffset-=8);for(var l=0,c=s.length;c>l;l++)u=u<<8|s[l];return{start:i,bytes:s,wideValue:u}},getSigned:function(e,t){var n=32-e;return this.getUnsigned(e,t)<>n},getUnsigned:function(e,t){var n=this._getBitRangeData(e,t).wideValue>>>-this._bitOffset;return 32>e?n&~(-1<t?1:0,l=~(-1<t&&(t=-t),0===t?(i=0,a=0):isNaN(t)?(i=2*l+1,a=1):1/0===t?(i=2*l+1,a=0):(i=Math.floor(Math.log(t)/Math.LN2))>=c&&l>=i?(a=Math.floor((t*s(-i)-1)*s(n)),i+=l):(a=Math.floor(t/s(c-n)),i=0);for(var f=[];n>=8;)f.push(a%256),a=Math.floor(a/256),n-=8;for(i=i<=8;)f.push(255&i),i>>>=8,r-=8;f.push(u<>>8&255,t>>>16&255,t>>>24],n)},_setUint16:function(e,t,n){this._setBytes(e,[255&t,t>>>8&255],n)},_setUint8:function(e,t){this._setBytes(e,[255&t])},setUnsigned:function(e,t,n){var r=this._getBitRangeData(n,e),o=r.wideValue,i=r.bytes;o&=~(~(-1<n?t&~(-1<=0;a--)i[a]=255&o,o>>>=8;this._setBytes(r.start,i,!0)}},m={Int8:"Int8",Int16:"Int16",Int32:"Int32",Uint8:"UInt8",Uint16:"UInt16",Uint32:"UInt32",Float32:"Float",Float64:"Double"};for(var g in p._nodeBufferAction=function(e,t,n,r,o){this._offset=n+d[e];var i=m[e]+("Int8"===e||"Uint8"===e?"":r?"LE":"BE");return n+=this.byteOffset,t?this.buffer["read"+i](n):this.buffer["write"+i](o,n)},d)!function(e){p["get"+e]=function(t,n){return this._action(e,!0,t,n)},p["set"+e]=function(t,n,r){this._action(e,!1,t,r,n)}}(g);for(var v in p._setInt32=p._setUint32,p._setInt16=p._setUint16,p._setInt8=p._setUint8,p.setSigned=p.setUnsigned,p)"set"===v.slice(0,3)&&function(e){p["write"+e]=function(){Array.prototype.unshift.call(arguments,void 0),this["set"+e].apply(this,arguments)}}(v.slice(3));return i}))}).call(this)}).call(this,e("buffer").Buffer)},{buffer:3}],8:[function(e,t,n){var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function l(e){if(o===clearTimeout)return clearTimeout(e);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{o="function"===typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var c,f=[],h=!1,d=-1;function p(){h&&c&&(h=!1,c.length?f=c.concat(f):d=-1,f.length&&m())}function m(){if(!h){var e=u(p);h=!0;for(var t=f.length;t;){for(c=f,f=[];++d1)for(var n=1;nt)switch(o[i]){case"textNode":I(e);break;case"cdata":N(e,"oncdata",e.cdata),e.cdata="";break;case"script":N(e,"onscript",e.script),e.script="";break;default:A(e,"Max buffer length exceeded: "+o[i])}r=Math.max(r,s)}var u=n.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=u+e.position}function s(e){for(var t=0,n=o.length;t"===e||_(e)}function x(e,t){return e.test(t)}function k(e,t){return!x(e,t)}var T=0;for(var C in n.STATE={BEGIN:T++,BEGIN_WHITESPACE:T++,TEXT:T++,TEXT_ENTITY:T++,OPEN_WAKA:T++,SGML_DECL:T++,SGML_DECL_QUOTED:T++,DOCTYPE:T++,DOCTYPE_QUOTED:T++,DOCTYPE_DTD:T++,DOCTYPE_DTD_QUOTED:T++,COMMENT_STARTING:T++,COMMENT:T++,COMMENT_ENDING:T++,COMMENT_ENDED:T++,CDATA:T++,CDATA_ENDING:T++,CDATA_ENDING_2:T++,PROC_INST:T++,PROC_INST_BODY:T++,PROC_INST_ENDING:T++,OPEN_TAG:T++,OPEN_TAG_SLASH:T++,ATTRIB:T++,ATTRIB_NAME:T++,ATTRIB_NAME_SAW_WHITE:T++,ATTRIB_VALUE:T++,ATTRIB_VALUE_QUOTED:T++,ATTRIB_VALUE_CLOSED:T++,ATTRIB_VALUE_UNQUOTED:T++,ATTRIB_VALUE_ENTITY_Q:T++,ATTRIB_VALUE_ENTITY_U:T++,CLOSE_TAG:T++,CLOSE_TAG_SAW_WHITE:T++,SCRIPT:T++,SCRIPT_ENDING:T++},n.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(n.ENTITIES).forEach((function(e){var t=n.ENTITIES[e],r="number"===typeof t?String.fromCharCode(t):t;n.ENTITIES[e]=r})),n.STATE)n.STATE[n.STATE[C]]=C;function O(e,t,n){e[t]&&e[t](n)}function N(e,t,n){e.textNode&&I(e),O(e,t,n)}function I(e){e.textNode=P(e.opt,e.textNode),e.textNode&&O(e,"ontext",e.textNode),e.textNode=""}function P(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function A(e,t){return I(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,O(e,"onerror",t),e}function D(e){return e.sawRoot&&!e.closedRoot&&R(e,"Unclosed root tag"),e.state!==T.BEGIN&&e.state!==T.BEGIN_WHITESPACE&&e.state!==T.TEXT&&A(e,"Unexpected end"),I(e),e.c="",e.closed=!0,O(e,"onend"),i.call(e,e.strict,e.opt),e}function R(e,t){if("object"!==typeof e||!(e instanceof i))throw new Error("bad call to strictFail");e.strict&&A(e,t)}function L(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,N(e,"onopentagstart",n)}function M(e,t){var n=e.indexOf(":")<0?["",e]:e.split(":"),r=n[0],o=n[1];return t&&"xmlns"===e&&(r="xmlns",o=""),{prefix:r,local:o}}function j(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=M(e.attribName,!0),n=t.prefix,r=t.local;if("xmlns"===n)if("xml"===r&&e.attribValue!==p)R(e,"xml: prefix must be bound to "+p+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==m)R(e,"xmlns: prefix must be bound to "+m+"\nActual: "+e.attribValue);else{var o=e.tag,i=e.tags[e.tags.length-1]||e;o.ns===i.ns&&(o.ns=Object.create(i.ns)),o.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,N(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function F(e,t){if(e.opt.xmlns){var n=e.tag,r=M(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(R(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),n.uri=r.prefix);var o=e.tags[e.tags.length-1]||e;n.ns&&o.ns!==n.ns&&Object.keys(n.ns).forEach((function(t){N(e,"onopennamespace",{prefix:t,uri:n.ns[t]})}));for(var i=0,a=e.attribList.length;i",e.tagName="",void(e.state=T.SCRIPT);N(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());for(var r=n;t--&&e.tags[t].name!==r;)R(e,"Unexpected close tag");if(t<0)return R(e,"Unmatched closing tag: "+e.tagName),e.textNode+="",void(e.state=T.TEXT);e.tagName=n;for(var o=e.tags.length;o-- >t;){var i=e.tag=e.tags.pop();e.tagName=e.tag.name,N(e,"onclosetag",e.tagName);var a={};for(var s in i.ns)a[s]=i.ns[s];var u=e.tags[e.tags.length-1]||e;e.opt.xmlns&&i.ns!==u.ns&&Object.keys(i.ns).forEach((function(t){var n=i.ns[t];N(e,"onclosenamespace",{prefix:t,uri:n})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=T.TEXT}function B(e){var t,n=e.entity,r=n.toLowerCase(),o="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:("#"===(n=r).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),o=(t=parseInt(n,16)).toString(16)):(n=n.slice(1),o=(t=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),isNaN(t)||o.toLowerCase()!==n?(R(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function z(e,t){"<"===t?(e.state=T.OPEN_WAKA,e.startTagPosition=e.position):_(t)||(R(e,"Non-whitespace before first tag."),e.textNode=t,e.state=T.TEXT)}function H(e,t){var n="";return t"===r?(N(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=T.TEXT):E(r)?(t.state=T.SGML_DECL_QUOTED,t.sgmlDecl+=r):t.sgmlDecl+=r;continue;case T.SGML_DECL_QUOTED:r===t.q&&(t.state=T.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case T.DOCTYPE:">"===r?(t.state=T.TEXT,N(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=T.DOCTYPE_DTD:E(r)&&(t.state=T.DOCTYPE_QUOTED,t.q=r));continue;case T.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=T.DOCTYPE);continue;case T.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=T.DOCTYPE:E(r)&&(t.state=T.DOCTYPE_DTD_QUOTED,t.q=r);continue;case T.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=T.DOCTYPE_DTD,t.q="");continue;case T.COMMENT:"-"===r?t.state=T.COMMENT_ENDING:t.comment+=r;continue;case T.COMMENT_ENDING:"-"===r?(t.state=T.COMMENT_ENDED,t.comment=P(t.opt,t.comment),t.comment&&N(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=T.COMMENT);continue;case T.COMMENT_ENDED:">"!==r?(R(t,"Malformed comment"),t.comment+="--"+r,t.state=T.COMMENT):t.state=T.TEXT;continue;case T.CDATA:"]"===r?t.state=T.CDATA_ENDING:t.cdata+=r;continue;case T.CDATA_ENDING:"]"===r?t.state=T.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=T.CDATA);continue;case T.CDATA_ENDING_2:">"===r?(t.cdata&&N(t,"oncdata",t.cdata),N(t,"onclosecdata"),t.cdata="",t.state=T.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=T.CDATA);continue;case T.PROC_INST:"?"===r?t.state=T.PROC_INST_ENDING:_(r)?t.state=T.PROC_INST_BODY:t.procInstName+=r;continue;case T.PROC_INST_BODY:if(!t.procInstBody&&_(r))continue;"?"===r?t.state=T.PROC_INST_ENDING:t.procInstBody+=r;continue;case T.PROC_INST_ENDING:">"===r?(N(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=T.TEXT):(t.procInstBody+="?"+r,t.state=T.PROC_INST_BODY);continue;case T.OPEN_TAG:x(y,r)?t.tagName+=r:(L(t),">"===r?F(t):"/"===r?t.state=T.OPEN_TAG_SLASH:(_(r)||R(t,"Invalid character in tag name"),t.state=T.ATTRIB));continue;case T.OPEN_TAG_SLASH:">"===r?(F(t,!0),U(t)):(R(t,"Forward-slash in opening tag not followed by >"),t.state=T.ATTRIB);continue;case T.ATTRIB:if(_(r))continue;">"===r?F(t):"/"===r?t.state=T.OPEN_TAG_SLASH:x(v,r)?(t.attribName=r,t.attribValue="",t.state=T.ATTRIB_NAME):R(t,"Invalid attribute name");continue;case T.ATTRIB_NAME:"="===r?t.state=T.ATTRIB_VALUE:">"===r?(R(t,"Attribute without value"),t.attribValue=t.attribName,j(t),F(t)):_(r)?t.state=T.ATTRIB_NAME_SAW_WHITE:x(y,r)?t.attribName+=r:R(t,"Invalid attribute name");continue;case T.ATTRIB_NAME_SAW_WHITE:if("="===r)t.state=T.ATTRIB_VALUE;else{if(_(r))continue;R(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",N(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===r?F(t):x(v,r)?(t.attribName=r,t.state=T.ATTRIB_NAME):(R(t,"Invalid attribute name"),t.state=T.ATTRIB)}continue;case T.ATTRIB_VALUE:if(_(r))continue;E(r)?(t.q=r,t.state=T.ATTRIB_VALUE_QUOTED):(R(t,"Unquoted attribute value"),t.state=T.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case T.ATTRIB_VALUE_QUOTED:if(r!==t.q){"&"===r?t.state=T.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}j(t),t.q="",t.state=T.ATTRIB_VALUE_CLOSED;continue;case T.ATTRIB_VALUE_CLOSED:_(r)?t.state=T.ATTRIB:">"===r?F(t):"/"===r?t.state=T.OPEN_TAG_SLASH:x(v,r)?(R(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=T.ATTRIB_NAME):R(t,"Invalid attribute name");continue;case T.ATTRIB_VALUE_UNQUOTED:if(!S(r)){"&"===r?t.state=T.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}j(t),">"===r?F(t):t.state=T.ATTRIB;continue;case T.CLOSE_TAG:if(t.tagName)">"===r?U(t):x(y,r)?t.tagName+=r:t.script?(t.script+=""===r?U(t):R(t,"Invalid characters in closing tag");continue;case T.TEXT_ENTITY:case T.ATTRIB_VALUE_ENTITY_Q:case T.ATTRIB_VALUE_ENTITY_U:var s,u;switch(t.state){case T.TEXT_ENTITY:s=T.TEXT,u="textNode";break;case T.ATTRIB_VALUE_ENTITY_Q:s=T.ATTRIB_VALUE_QUOTED,u="attribValue";break;case T.ATTRIB_VALUE_ENTITY_U:s=T.ATTRIB_VALUE_UNQUOTED,u="attribValue"}";"===r?(t[u]+=B(t),t.entity="",t.state=s):x(t.entity.length?w:b,r)?t.entity+=r:(R(t,"Invalid character in entity name"),t[u]+="&"+t.entity+r,t.entity="",t.state=s);continue;default:throw new Error(t,"Unknown state: "+t.state)}return t.position>=t.bufferCheckPosition&&a(t),t}T=n.STATE,String.fromCodePoint||function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n,r,o=16384,i=[],a=-1,s=arguments.length;if(!s)return"";for(var u="";++a1114111||t(l)!==l)throw RangeError("Invalid code point: "+l);l<=65535?i.push(l):(n=55296+((l-=65536)>>10),r=l%1024+56320,i.push(n,r)),(a+1===s||i.length>o)&&(u+=e.apply(null,i),i.length=0)}return u};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()}("undefined"===typeof n?this.sax={}:n)}).call(this)}).call(this,e("buffer").Buffer)},{buffer:3,stream:11,string_decoder:27}],11:[function(e,t,n){t.exports=o;var r=e("events").EventEmitter;function o(){r.call(this)}e("inherits")(o,r),o.Readable=e("readable-stream/lib/_stream_readable.js"),o.Writable=e("readable-stream/lib/_stream_writable.js"),o.Duplex=e("readable-stream/lib/_stream_duplex.js"),o.Transform=e("readable-stream/lib/_stream_transform.js"),o.PassThrough=e("readable-stream/lib/_stream_passthrough.js"),o.finished=e("readable-stream/lib/internal/streams/end-of-stream.js"),o.pipeline=e("readable-stream/lib/internal/streams/pipeline.js"),o.Stream=o,o.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function l(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",o),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",l),e.on("error",l),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},{events:5,inherits:12,"readable-stream/lib/_stream_duplex.js":14,"readable-stream/lib/_stream_passthrough.js":15,"readable-stream/lib/_stream_readable.js":16,"readable-stream/lib/_stream_transform.js":17,"readable-stream/lib/_stream_writable.js":18,"readable-stream/lib/internal/streams/end-of-stream.js":22,"readable-stream/lib/internal/streams/pipeline.js":24}],12:[function(e,t,n){"function"===typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],13:[function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var o={};function i(e,t,n){function i(e,n,r){return"string"===typeof t?t:t(e,n,r)}n||(n=Error);var a=function(e){function t(t,n,r){return e.call(this,i(t,n,r))||this}return r(t,e),t}(n);a.prototype.name=n.name,a.prototype.code=e,o[e]=a}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function s(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function u(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function l(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,o;if("string"===typeof t&&s(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be",u(e," argument"))o="The ".concat(e," ").concat(r," ").concat(a(t,"type"));else{var i=l(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(i," ").concat(r," ").concat(a(t,"type"))}return o+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=o},{}],14:[function(e,t,n){(function(n){(function(){"use strict";var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=l;var o=e("./_stream_readable"),i=e("./_stream_writable");e("inherits")(l,o);for(var a=r(i.prototype),s=0;s0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=l(t)),r)a.endEmitted?x(e,new S):I(e,a,t,!0);else if(a.ended)x(e,new _);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?I(e,a,t,!1):F(e,a)):I(e,a,t,!1)}else r||(a.reading=!1,F(e,a));return!a.ended&&(a.length=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function R(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=D(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function L(e,t){if(f("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}function M(e){var t=e._readableState;f("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(j,e))}function j(e){var t=e._readableState;f("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,V(e)}function F(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function H(e){f("readable nexttick read 0"),e.read(0)}function K(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(q,e,t))}function q(e,t){f("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),V(e),t.flowing&&!t.reading&&e.read(0)}function V(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function W(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function G(e){var t=e._readableState;f("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(Y,t,e))}function Y(e,t){if(f("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function $(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?G(this):M(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&G(this),null;var r,o=t.needReadable;return f("need readable",o),(0===t.length||t.length-e0?W(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&G(this)),null!==r&&this.emit("data",r),r},O.prototype._read=function(e){x(this,new E("_read()"))},O.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,t);var a=t&&!1===t.end||e===n.stdout||e===n.stderr?v:u;function s(e,t){f("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,h())}function u(){f("onend"),e.end()}o.endEmitted?n.nextTick(a):r.once("end",a),e.on("unpipe",s);var l=B(r);e.on("drain",l);var c=!1;function h(){f("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",v),r.removeListener("data",d),c=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}function d(t){f("ondata");var n=e.write(t);f("dest.write",n),!1===n&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==$(o.pipes,e))&&!c&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function p(t){f("onerror",t),v(),e.removeListener("error",p),0===i(e,"error")&&x(e,t)}function m(){e.removeListener("finish",g),v()}function g(){f("onfinish"),e.removeListener("close",m),v()}function v(){f("unpipe"),r.unpipe(e)}return r.on("data",d),T(e,"error",p),e.once("close",m),e.once("finish",g),e.emit("pipe",r),o.flowing||(f("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,f("on readable",o.length,o.reading),o.length?M(this):o.reading||n.nextTick(H,this))),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(z,this),r},O.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(z,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!e.readableListening,K(this,e)),e.paused=!1,this},O.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",(function(){if(f("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){f("wrapped data"),n.decoder&&(o=n.decoder.write(o)),(!n.objectMode||null!==o&&void 0!==o)&&(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))})),e)void 0===this[o]&&"function"===typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i-1))throw new S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(e,t,n){n(new v("_write()"))},C.prototype._writev=null,C.prototype.end=function(e,t,n){var r=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||K(this,r,n),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),C.prototype.destroy=d.destroy,C.prototype._undestroy=d.undestroy,C.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"../errors":13,"./_stream_duplex":14,"./internal/streams/destroy":21,"./internal/streams/state":25,"./internal/streams/stream":26,_process:8,buffer:3,inherits:12,"util-deprecate":28}],19:[function(e,t,n){(function(n){(function(){"use strict";var r;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=e("./end-of-stream"),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var n=e[h].read();null!==n&&(e[c]=null,e[a]=null,e[s]=null,t(d(n,!1)))}}function m(e){n.nextTick(p,e)}function g(e,t){return function(n,r){e.then((function(){t[l]?n(d(void 0,!0)):t[f](n,r)}),r)}}var v=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((o(r={get stream(){return this[h]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){n.nextTick((function(){e[u]?r(e[u]):t(d(void 0,!0))}))}));var r,o=this[c];if(o)r=new Promise(g(o,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(d(i,!1));r=new Promise(this[f])}return this[c]=r,r}},Symbol.asyncIterator,(function(){return this})),o(r,"return",(function(){var e=this;return new Promise((function(t,n){e[h].destroy(null,(function(e){e?n(e):t(d(void 0,!0))}))}))})),r),v),b=function(e){var t,n=Object.create(y,(o(t={},h,{value:e,writable:!0}),o(t,a,{value:null,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,l,{value:e._readableState.endEmitted,writable:!0}),o(t,f,{value:function(e,t){var r=n[h].read();r?(n[c]=null,n[a]=null,n[s]=null,e(d(r,!1))):(n[a]=e,n[s]=t)},writable:!0}),t));return n[c]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[c]=null,n[a]=null,n[s]=null,t(e)),void(n[u]=e)}var r=n[a];null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[l]=!0})),e.on("readable",m.bind(null,n)),n};t.exports=b}).call(this)}).call(this,e("_process"))},{"./end-of-stream":22,_process:8}],20:[function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t=l.allocUnsafe(e>>>0),n=this.head,r=0;n;)h(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return eo.length?o.length:e;if(i===o.length?r+=o:r+=o.slice(0,e),0===(e-=i)){i===o.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var o=n.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0===(e-=i)){i===o.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(i));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return c(this,o({},t,{depth:0,customInspect:!1}))}}]),e}()},{buffer:3,util:2}],21:[function(e,t,n){(function(e){(function(){"use strict";function n(t,n){var i=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,t)):e.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!n&&t?i._writableState?i._writableState.errorEmitted?e.nextTick(o,i):(i._writableState.errorEmitted=!0,e.nextTick(r,i,t)):e.nextTick(r,i,t):n?(e.nextTick(o,i),n(t)):e.nextTick(o,i)})),this)}function r(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}t.exports={destroy:n,undestroy:i,errorOrDestroy:s}}).call(this)}).call(this,e("_process"))},{_process:8}],22:[function(e,t,n){"use strict";var r=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function o(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o0,(function(e){r||(r=e),e&&i.forEach(f),a||(i.forEach(f),o(r))}))}));return t.reduce(h)}t.exports=p},{"../../../errors":13,"./end-of-stream":22}],25:[function(e,t,n){"use strict";var r=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;function o(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}function i(e,t,n,i){var a=o(t,i,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}t.exports={getHighWaterMark:i}},{"../../../errors":13}],26:[function(e,t,n){t.exports=e("events").EventEmitter},{events:5}],27:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=i(e);if("string"!==typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=y,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function u(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function l(e,t,n){var r=t.length-1;if(r=0?(o>0&&(e.lastNeed=o-1),o):--r=0?(o>0&&(e.lastNeed=o-2),o):--r=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}function c(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}function f(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function h(e,t){var n=l(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t}function p(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}n.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n"}function f(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var a="instructionNameFn"in t?t.instructionNameFn(i,e[i],o,r):i;if("object"===typeof e[i])return r=e,o=a,"";var s=e[i]?e[i]:"";return"instructionFn"in t&&(s=t.instructionFn(s,i,o,r)),""}function h(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,o,r):e)+"--\x3e"}function d(e,t){return t.ignoreCdata?"":"","]]]]>"))+"]]>"}function p(e,t){return t.ignoreDoctype?"":""}function m(e,t){return t.ignoreText?"":(e=(e=(e=""+e).replace(/&/g,"&")).replace(/&/g,"&").replace(//g,">"),"textFn"in t?t.textFn(e,o,r):e)}function g(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(y(e[t.elementsKey],t,n+1)),r=e,o=e.name),i.push(t.spaces&&g(e,t)?"\n"+Array(n+1).join(t.spaces):""),i.push("")):i.push("/>"),i.join("")}function y(e,t,n,r){return e.reduce((function(e,o){var i=u(t,n,r&&!e);switch(o.type){case"element":return e+i+v(o,t,n);case"comment":return e+i+h(o[t.commentKey],t);case"doctype":return e+i+p(o[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?i:"")+d(o[t.cdataKey],t);case"text":return e+(t.indentText?i:"")+m(o[t.textKey],t);case"instruction":var a={};return a[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],e+(t.indentInstruction?i:"")+f(a,t,n)}}),"")}function b(e,t,n){var r;for(r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:default:return!0}return!1}function w(e,t,n,i,a){r=e,o=t;var s="elementNameFn"in n?n.elementNameFn(t,e):t;if("undefined"===typeof e||null===e||""===e)return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+s+">":"<"+s+"/>";var c=[];if(t){if(c.push("<"+s),"object"!==typeof e)return c.push(">"+m(e,n)+""),c.join("");e[n.attributesKey]&&c.push(l(e[n.attributesKey],n,i));var f=b(e,n,!0)||e[n.attributesKey]&&"preserve"===e[n.attributesKey]["xml:space"];if(f||(f="fullTagEmptyElementFn"in n?n.fullTagEmptyElementFn(t,e):n.fullTagEmptyElement),!f)return c.push("/>"),c.join("");c.push(">")}return c.push(_(e,n,i+1,!1)),r=e,o=t,t&&c.push((a?u(n,i,!1):"")+""),c.join("")}function _(e,t,n,r){var o,i,s,l=[];for(i in e)if(e.hasOwnProperty(i))for(s=a(e[i])?e[i]:[e[i]],o=0;o/g,">")),h("text",e))}function v(e){r.ignoreComment||(r.trim&&(e=e.trim()),h("comment",e))}function y(e){var t=o[r.parentKey];r.addParent||delete o[r.parentKey],o=t}function b(e){r.ignoreCdata||(r.trim&&(e=e.trim()),h("cdata",e))}function w(e){r.ignoreDoctype||(e=e.replace(/^ /,""),r.trim&&(e=e.trim()),h("doctype",e))}function _(e){e.note=e}t.exports=function(e,t){var n=l?i.parser(!0,{}):n=new a.Parser("UTF-8"),s={};if(o=s,r=c(t),l?(n.opt={strictEntities:!0},n.onopentag=m,n.ontext=g,n.oncomment=v,n.onclosetag=y,n.onerror=_,n.oncdata=b,n.ondoctype=w,n.onprocessinginstruction=p):(n.on("startElement",m),n.on("text",g),n.on("comment",v),n.on("endElement",y),n.on("error",_)),l)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(s[r.elementsKey]){var u=s[r.elementsKey];delete s[r.elementsKey],s[r.elementsKey]=u,delete s.text}return s}},{"./array-helper":29,"./options-helper":33,sax:10}],35:[function(e,t,n){var r=e("./options-helper"),o=e("./xml2js");function i(e){var t=r.copyOptions(e);return r.ensureSpacesExists(t),t}t.exports=function(e,t){var n,r,a;return n=i(t),r=o(e,n),a="compact"in n&&n.compact?"_parent":"parent",("addParent"in n&&n.addParent?JSON.stringify(r,(function(e,t){return e===a?"_":t}),n.spaces):JSON.stringify(r,null,n.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},{"./options-helper":33,"./xml2js":34}],36:[function(e,t,n){var r,o;o=function(e,t,n){var r,o;return r=t*Math.min(n,1-n),o=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+12*e)%12;return n-r*Math.max(Math.min(o-3,9-o,1),-1)},[o(0),o(8),o(4)].map((function(e){return e}))},r=["red","green","blue","hue","saturation","lightness","value","cyan","magenta","yellow","key","alpha","x","y","z","l","a","b"],t.exports=class{constructor(e){var t,n,i,a,s,u,l,c;for(({red:this.red,green:this.green,blue:this.blue,hue:this.hue,saturation:this.saturation,value:this.value,lightness:this.lightness,cyan:n,magenta:u,yellow:c,key:a,alpha:this.alpha,name:this.name}=e),i=0,s=r.length;i1)throw new TypeError("Color component option ".concat(t," outside range of [0,1]: ").concat(e[t]))}if(l=function(){throw new TypeError("Color constructor must be called with {red,green,blue} or {hue,saturation,value} or {hue,saturation,lightness} or {cyan,magenta,yellow,key} or {x,y,z} or {l,a,b}, ".concat(function(){try{return"got ".concat(JSON.stringify(e))}catch(t){return"got something that couldn't be displayed with JSON.stringify for this error message"}}()))},null!=this.red&&null!=this.green&&null!=this.blue);else if(null!=this.hue&&null!=this.saturation){if(null!=this.value)this.lightness=(2-this.saturation)*this.value/2,this.saturation=this.saturation*this.value/(this.lightness<.5?2*this.lightness:2-2*this.lightness),isNaN(this.saturation)&&(this.saturation=0);else if(null!=this.lightness);else{if(null!=e.brightness)throw new TypeError("{hue, saturation, brightness} not supported. Use {hue, saturation, value} instead for an equivalent color space");l()}[this.red,this.green,this.blue]=o(this.hue,this.saturation,this.lightness)}else{if(null!=n&&null!=u&&null!=c&&null!=a)throw new Error("CMYK color space is not currently supported");if(null!=e.l&&null!=e.a&&null!=e.b)throw new Error("L*a*b* color space is not currently supported");if(null!=e.x&&null!=e.y&&null!=e.z)throw new Error("XYZ color space is not currently supported");l()}}toString(){return null!=this.hue?null!=this.alpha?"hsla(".concat(360*this.hue,", ").concat(100*this.saturation,"%, ").concat(100*this.lightness,"%, ").concat(this.alpha,")"):"hsl(".concat(360*this.hue,", ").concat(100*this.saturation,"%, ").concat(100*this.lightness,"%)"):null!=this.red?null!=this.alpha?"rgba(".concat(255*this.red,", ").concat(255*this.green,", ").concat(255*this.blue,", ").concat(this.alpha,")"):"rgb(".concat(255*this.red,", ").concat(255*this.green,", ").concat(255*this.blue,")"):void 0}static is(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-4;var r,o;return Math.abs(e.red-t.red)1)throw new TypeError("palette.add() component option ".concat(t," outside range of [0,1]: ").concat(e[t]))}return a=e instanceof r?e:new r(e),this.push(a)}}},{"./Color":36}],38:[function(e,t,n){var r,o,i,a,s;s=e("jdataview"),o=e("../Palette"),r=65535,i=Object.freeze({RGB:0,HSB:1,CMYK:2,PANTONE:3,FOCOLTONE:4,TRUMATCH:5,TOYO:6,LAB:7,GRAYSCALE:8,WIDE_CMYK:9,HKS:10,DIC:11,TOTAL_INK:12,MONITOR_RGB:13,DUOTONE:14,OPACITY:15,WEB:16,GRAY_FLOAT:17,RGB_FLOAT:18,OPACITY_FLOAT:19,0:"RGB",1:"HSB",2:"CMYK",3:"PANTONE",4:"FOCOLTONE",5:"TRUMATCH",6:"TOYO",7:"LAB",8:"GRAYSCALE",9:"WIDE_CMYK",10:"HKS",11:"DIC",12:"TOTAL_INK",13:"MONITOR_RGB",14:"DUOTONE",15:"OPACITY",16:"WEB",17:"GRAY_FLOAT",18:"RGB_FLOAT",19:"OPACITY_FLOAT"}),a=function(e,t,n){var r,o,i;for(n&&(t-=1),i="",r=0,o=t;0<=o?ro;0<=o?r++:r--)i+=String.fromCharCode(e.getUint16());return n&&e.getUint16(),i},t.exports.read_adobe_color_swatch=function(e){let{data:t}=e;var n,u,l,c,f,h,d,p,m,g,v,y;if(p=new o,m=function(e){var t,n,o,s,u,l,c;switch(t=y.getUint16(),s=y.getUint16()/r,u=y.getUint16()/r,l=y.getUint16()/r,c=y.getUint16()/r,e?(y.getUint16(),n=y.getUint16(),o=a(y,n,!0)):o=void 0,t){case i.RGB:return p.add({red:s,green:u,blue:l,name:o});case i.HSB:return p.add({hue:s,saturation:u,value:l,name:o});case i.CMYK:case i.WIDE_CMYK:return p.add({cyan:s,magenta:u,yellow:l,key:c,name:o});case i.LAB:return p.add({l:s,a:u,b:l,name:o});case i.GRAYSCALE:return p.add({red:s,green:s,blue:s,name:o})}},n=(y=new s(t)).getUint16(),d=y.getUint16(),1!==n)throw new Error("Not an Adobe Color Swatch file");if(l=4+10*d,y.byteLength<=l){for(f=0,g=d;0<=g?fg;0<=g?f++:f--)m(!1);return p}if(y.seek(l),c=y.getUint16(),u=y.getUint16(),2!==c)throw new Error("Not an Adobe Color Swatch file v2");if(u!==d)throw new Error("Number of colors mismatch between ACO v1 and v2 sections");for(h=0,v=d;0<=v?hv;0<=v?h++:h--)m(!0);return p},t.exports.write_adobe_color_swatch=function(e){var t,n,o,a,u,l,c,f,h,d,p;for(p=function(e,t){var n,o,a,u,l,c,f,h,d,p,m,g;for(p=null!=(m=e.name)?m:e.toString(),o=i.RGB,g=2+2*(l=[e.red,e.green,e.blue,0]).length,t&&(g+=4+2*(p.length+1)),(a=new s(g)).writeUint16(o),c=0,h=l.length;cb;0<=b?m++:m--){switch(d=w.getUint16(),h=w.getUint32(),f=w.tell()+h,d){case i:v=w.getUint16(),g=a(w,v,!0),_.push({name:g});break;case r:_.pop();break;case n:switch(v=w.getUint16(),g=a(w,v,!0),w.getString(4)){case u:y.add({cyan:w.getFloat32(),magenta:w.getFloat32(),yellow:w.getFloat32(),key:w.getFloat32(),name:g});break;case c:y.add({red:w.getFloat32(),green:w.getFloat32(),blue:w.getFloat32(),name:g});break;case l:p=w.getFloat32(),y.add({red:p,green:p,blue:p,name:g})}w.getUint16()}w.seek(f)}return y},t.exports.write_adobe_swatch_exchange=function(e){var t,n,r,o,i,a,u,l,c,f,h,d,p,m,g,v,y,b,w,_,E,S;for(t=1,r="RGB ",n=0,l=[],_=0,d=0,g=e.length;dw;0<=w?v++:v--)switch(h=g(a(E,E.getUint32(),!1)),(c=(c=(c=E.getString(6).trim()).replace(/^0*(\d+)$/,"$1")).replace("X","-"))&&!h&&(b=c.lastIndexOf(p.trim()),h=b>=0?c.slice(0,b):c),n=function(e){if(h.trim()||c.trim())return e.name=d+h+p,y.add(e)},r=function(){throw new Error("Color space #".concat(m," (").concat(i[m],") not supported."))},m){case 0:n({red:E.getUint8()/255,green:E.getUint8()/255,blue:E.getUint8()/255});break;case 1:n({hue:E.getUint8()/255,saturation:E.getUint8()/255,value:E.getUint8()/255});break;case 2:n({cyan:1-E.getUint8()/255,magenta:1-E.getUint8()/255,yellow:1-E.getUint8()/255,key:1-E.getUint8()/255});break;case 3:case 4:case 5:case 6:case 8:case 9:case 10:default:r();break;case 7:n({l:E.getUint8()/255,a:E.getUint8()/255,b:E.getUint8()/255})}return y.name=l,y.description=u,y}},{"../Palette":37,jdataview:7}],39:[function(e,t,n){var r,o;o=e("jdataview"),r=e("../Palette"),t.exports=function(e){let{data:t,fileExt:n}=e;var i,a,s;if(i=new r,768!==(a=(s=new o(t)).byteLength)&&772!==a&&"act"!==n)throw new Error("file size must be 768 or 772 bytes (saw ".concat(s.byteLength,"), OR file extension must be '.act' (saw '.").concat(n,"')"));for(var u=0;u<256;u++)i.add({red:s.getUint8()/255,green:s.getUint8()/255,blue:s.getUint8()/255});return i.numberOfColumns=16,i},t.exports.write=function(e){var t,n,r;for(r=new o(768),t=n=0;n<256;t=++n)r.writeUint8(e[t]?Math.round(255*e[t].red):0),r.writeUint8(e[t]?Math.round(255*e[t].green):0),r.writeUint8(e[t]?Math.round(255*e[t].blue):0);return r.buffer}},{"../Palette":37,jdataview:7}],40:[function(e,t,n){var r,o;o=e("css.escape"),r=e("../Palette"),t.exports=function(e){let{fileContentString:t}=e;var n,o,i,a,s,u,l,c,f,h,d,p,m,g,v,y,b;for(f=0,i=0,s=t.length;i5)throw new Error("looks like a binary file");for(b=[d=new r,p=new r,v=new r,m=new r,g=new r,y=new r],o=function(e){return parseInt(e,16)},t.replace(/\#([0-9A-F]{3}|[0-9A-F]{6}|[0-9A-F]{4}|[0-9A-F]{8})(?![0-9A-F])/gim,(function(e,t){return t.length>4?d.add({red:o(t[0]+t[1])/255,green:o(t[2]+t[3])/255,blue:o(t[4]+t[5])/255,alpha:8===t.length?o(t[6]+t[7])/255:void 0}):p.add({red:o(t[0]+t[0])/255,green:o(t[1]+t[1])/255,blue:o(t[2]+t[2])/255,alpha:4===t.length?o(t[3]+t[3])/255:void 0})})),t.replace(/rgb\(\s*([0-9]*\.?[0-9]+)(%?)\s*(?:,|\s)\s*([0-9]*\.?[0-9]+)(%?)\s*(?:,|\s)\s*([0-9]*\.?[0-9]+)(%?)\s*\)/gim,(function(e,t,n,r,o,i,a){return v.add({red:Number(t)/("%"===n?100:255),green:Number(r)/("%"===o?100:255),blue:Number(i)/("%"===a?100:255)})})),t.replace(/rgba?\(\s*([0-9]*\.?[0-9]+)(%?)\s*(?:,|\s)\s*([0-9]*\.?[0-9]+)(%?)\s*(?:,|\s)\s*([0-9]*\.?[0-9]+)(%?)\s*(?:,|\/)\s*([0-9]*\.?[0-9]+)(%?)\s*\)/gim,(function(e,t,n,r,o,i,a,s,u){return y.add({red:Number(t)/("%"===n?100:255),green:Number(r)/("%"===o?100:255),blue:Number(i)/("%"===a?100:255),alpha:Number(s)/("%"===u?100:1)})})),t.replace(/hsl\(\s*([0-9]*\.?[0-9]+)(deg|rad|turn|)\s*(?:,|\s)\s*([0-9]*\.?[0-9]+)(%?)\s*(?:,|\s)\s*([0-9]*\.?[0-9]+)(%?)\s*\)/gim,(function(e,t,n,r,o,i,a){return m.add({hue:Number(t)/("rad"===n?2*Math.PI:"turn"===n?1:360),saturation:Number(r)/("%"===o?100:1),lightness:Number(i)/("%"===a?100:1)})})),t.replace(/hsla?\(\s*([0-9]*\.?[0-9]+)(deg|rad|turn|)\s*(?:,|\s)\s*([0-9]*\.?[0-9]+)(%?)\s*(?:,|\s)\s*([0-9]*\.?[0-9]+)(%?)\s*(?:,|\/)\s*([0-9]*\.?[0-9]+)(%?)\s*\)/gim,(function(e,t,n,r,o,i,a,s,u){return g.add({hue:Number(t)/("rad"===n?2*Math.PI:"turn"===n?1:360),saturation:Number(r)/("%"===o?100:1),lightness:Number(i)/("%"===a?100:1),alpha:Number(s)/("%"===u?100:1)})})),l=[],a=0,u=b.length;a=l.length&&(l=h);if((c=l.length)<4)throw new Error(["No colors found","Only one color found","Only a couple colors found","Only a few colors found"][c]+" (".concat(c,")"));return l},t.exports.write_css=function(e){return":root {\n\t".concat(e.map((function(e,t){return"--".concat(e.name?o(e.name.replace(/\s/g,"-")):"color-".concat(t+1),": ").concat(e,";")})).join("\n\t"),"\n}")},t.exports.write_styl=function(e){return e.map((function(e,t){return"".concat(e.name?o(e.name.replace(/\s/g,"-")):"color-".concat(t+1)," = ").concat(e,";")})).join("\n")},t.exports.write_less=function(e){return e.map((function(e,t){return"@".concat(e.name?o(e.name.replace(/\s/g,"-")):"color-".concat(t+1),": ").concat(e,";")})).join("\n")},t.exports.write_scss=function(e){return e.map((function(e,t){return"$".concat(e.name?o(e.name.replace(/\s/g,"-")):"color-".concat(t+1),": ").concat(e,";")})).join("\n")},t.exports.write_sass=function(e){return e.map((function(e,t){return"$".concat(e.name?o(e.name.replace(/\s/g,"-")):"color-".concat(t+1),": ").concat(e)})).join("\n")}},{"../Palette":37,"css.escape":4}],41:[function(e,t,n){var r,o;o=e("jdataview"),r=e("../Palette"),t.exports=function(e){let{data:t,fileExt:n}=e;var i,a,s,u,l;if("cs"!==n)throw new Error("ColorSchemer loader is only enabled when file extension is '.cs' (saw '.".concat(n,"' instead)"));for(s=new r,(l=new o(t,0,void 0,!0)).getUint16(),i=a=0,u=l.getUint16();0<=u?au;i=0<=u?++a:--a)l.seek(8+26*i),s.add({red:l.getUint8()/255,green:l.getUint8()/255,blue:l.getUint8()/255});return s}},{"../Palette":37,jdataview:7}],42:[function(e,t,n){var r,o,i;r=e("../Palette"),o=function(e,t){var n,o,i,a,s,u;if((i=e.split(/\r?\n/))[0]!==t)throw new Error("Not a ".concat(t));for(s=new r,o=0;(o+=1){var t,n,r;return({red:r,green:n,blue:t}=e),"".concat([r,n,t].map((e=>"".concat(Math.round(255*e)).padEnd(3," "))).join(" ")," ").concat(e.name||e)})).join("\n"))},t.exports.write=function(e){return i(e,"GIMP Palette")},t.exports.extension="gpl",t.exports.write_gimp_or_kde_rgb_palette=i,t.exports.parse_gimp_or_kde_rgb_palette=o},{"../Palette":37}],43:[function(e,t,n){var r;r=e("../Palette"),t.exports=function(e){let{fileContentString:t}=e;var n,o,i,a,s;if("Palette"!==(i=t.split(/\r?\n/))[0])throw new Error("Not a Homesite palette");if(!i[1].match(/Version [34]\.0/))throw new Error("Unsupported Homesite palette version");for(s=new r,n=0,o=i.length;n2&&(l=a.split(" "),u.add({red:Number(l[0])/255,green:Number(l[1])/255,blue:Number(l[2])/255}));return u},t.exports.write=function(e){return"JASC-PAL\n0100\n".concat(e.length,"\n").concat(e.map((function(e){return"".concat(Math.round(255*e.red)," ").concat(Math.round(255*e.green)," ").concat(Math.round(255*e.blue))})).join("\n"))}},{"../Palette":37}],47:[function(e,t,n){var r,o;o=e("jdataview"),r=e("../Palette"),t.exports=function(e){let{data:t}=e;var n,i,a,s,u,l,c,f,h;if(c=(h=new o(t,0,void 0,!0)).getString(4),h.getUint32(),f=h.getString(4),"RIFF"!==c)throw new Error("RIFF header not found; not a RIFF PAL file");if("PAL "!==f)throw new Error("RIFF header says this isn't a PAL file,\nmore of a sort of ".concat((f+"").trim()," file"));if(n=h.getString(4),h.getUint32(),s=h.getUint16(),i=h.getUint16(),"data"!==n)throw new Error("Data chunk not found (...'".concat(n,"'?)"));if(768!==s)throw new Error("Unsupported PAL file format version: 0x".concat(s.toString(16)));for(u=new r,a=0,l=i;0<=l?al;0<=l?a++:a--)u.add({red:h.getUint8()/255,green:h.getUint8()/255,blue:h.getUint8()/255}),h.getUint8();return u},t.exports.write=function(e){var t,n,r,i,a,s;for(n=4+4*e.length,(i=new o(12+(r=8+n),0,void 0,!0)).writeString("RIFF"),i.writeUint32(r+4),i.writeString("PAL "),i.writeString("data"),i.writeUint32(n),i.writeUint16(768),i.writeUint16(e.length),a=0,s=e.length;a0&&(g.description+="\n"),g.description+=e},set_columns:function(e){return g.numberOfColumns=e,g.geometrySpecifiedByFile=!0},hexcolor:function(e,t){var n;return(n=o("#"+e)).name=t,g.add(n)},rgbcolor:function(e,t,n,r){return g.add({red:e/255,green:t/255,blue:n/255,name:r})},color:function(e){let[t,n,r,o]=e;switch(t){case"RGB":return g.add({red:n[0],green:n[1],blue:n[2],alpha:r,name:o});case"Grayscale":return g.add({red:n[0],green:n[0],blue:n[0],alpha:r,name:o});case"CMYK":return g.add({cyan:n[0],magenta:n[1],yellow:n[2],key:n[3],alpha:r,name:o});case"HSL":return g.add({hue:n[0],saturation:n[1],lightness:n[2],alpha:r,name:o})}}},v=function(e,t){var n,r,o,i,a,s,u;for(n=[],r=0,a=function(){var n,o;if(o="","'"!==(n=e[r])&&'"'!==n)throw new Error("Expected to start parsing string on a quote character");for(r+=1;r declaration)");if(h=new r,!(null!=(p=(d=o.xml2js(t,{compact:!1})).elements)?p.length:void 0))throw new Error("No XML elements found");for(u=0,c=(m=d.elements).length;ui)throw new Error("Can't handle compatibleVersion of ".concat(s,"."));if(!s||s<1.4)for(l=0,f=n.length;l0)for(c=0,h=n.length;c=c.length&&(c=h);if((f=c.length)<4)throw new Error(["No colors found","Only one color found","Only a couple colors found","Only a few colors found"][f]+" (".concat(f,")"));return c.every((function(e){return e.red<=1/255&&e.green<=1/255&&e.blue<=1/255}))&&c.forEach((function(e){return e.red*=255,e.green*=255,e.blue*=255})),c}},{"../Palette":37}],55:[function(e,t,n){var r,o,i;r=e("../Palette"),o=function(e){var t,n,r,o;return n={section:/^\s*\[\s*([^\]]*)\s*\]\s*$/,param:/^\s*([^=]+?)\s*=\s*(.*?)\s*$/,comment:/^\s*;.*$/},o={},t=e.split(/[\r\n]+/),r=null,t.forEach((function(e){var t;n.comment.test(e)||(n.param.test(e)?(t=e.match(n.param),r?o[r][t[1]]=t[2]:o[t[1]]=t[2]):n.section.test(e)?(t=e.match(n.section),o[t[1]]={},r=t[1]):0===e.length&&r&&(r=null))})),o},i=function(e){var t,n,i,a,s,u,l,c,f,h;if(!(t=(h=o(e))["Control Panel\\Colors"]))throw new Error("Invalid theme file, no [Control Panel\\Colors] section");for(u in c=new r,t)if(!u.match(/\W/)&&3===(i=t[u].split(" ")).length){for(a=s=0,l=i.length;s4?{red:r(n[0]+n[1])/255,green:r(n[2]+n[3])/255,blue:r(n[4]+n[5])/255,alpha:8===n.length?r(n[6]+n[7])/255:void 0}:{red:r(n[0]+n[0])/255,green:r(n[1]+n[1])/255,blue:r(n[2]+n[2])/255,alpha:4===n.length?r(n[3]+n[3])/255:void 0}}},{}],57:[function(e,t,n){var r,o,i,a,s,u,l,c,f,h,d,p,m=[].splice;for(a=e("./Palette"),o=e("./Color"),i=class extends Error{constructor(e){var t;super(),this.errors=e,this.message="Some errors were encountered when loading:"+function(){var e,n,r,o;for(o=[],e=0,n=(r=this.errors).length;e-1&&(p[u]=!0);for((a=Object.keys(l)).sort((function(e,t){return(null!=p[t])-(null!=p[e])})),o=[],d=0,h=a.length;d0&&void 0!==arguments[0]?arguments[0]:{};var n,r;return("string"===typeof t||t instanceof String)&&(t={filePath:t}),"undefined"!==typeof File&&null!==File&&t instanceof File&&(t={file:t}),null==t.fileName&&(t.fileName=null!=(n=null!=(r=t.file)?r.name:void 0)?n:t.filePath?e("path").basename(t.filePath):void 0),null==t.fileExt&&(t.fileExt="".concat(t.fileName).split(".").pop()),t.fileExt="".concat(t.fileExt).toLowerCase(),t},(r={Color:o,Palette:a,formats:l}).loadPalette=function(t,n){var r;if(!t)throw new TypeError("parameters required: AnyPalette.loadPalette(options, function callback(error, palette){})");if(!n)throw new TypeError("callback required: AnyPalette.loadPalette(options, function callback(error, palette){})");if((t=h(t)).data)return d(t,n);if(t.file){if(!(t.file instanceof File))throw new TypeError("options.file was passed but it is not a File");return(r=new FileReader).onerror=function(){return n(r.error)},r.onload=function(){return t.data=r.result,d(t,n)},r.readAsArrayBuffer(t.file)}if(null!=t.filePath)return e("fs").readFile(t.filePath,(function(e,r){return e?n(e):(t.data=r,d(t,n))}));throw new TypeError("either options.data or options.file or options.filePath must be passed")},r.writePalette=function(e,t){return null==t&&(t=r.formats.GIMP_PALETTE),t.write(e)},r.uniqueColors=function(e,t){var n,r,i,s,u;for((u=new a).name=this.name,u.description=this.description,m.apply(u,[0,9e9].concat(e.slice(0))),n=0;n{var n;n=function(e){e.version="0.3.0";var t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}(),n="undefined"!==typeof Buffer;function r(e){for(var n=-1,r=0,o=e.length-7;r>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])];for(;r>>8^t[255&(n^e[r++])];return-1^n}e.table=t,e.bstr=function(e){if(e.length>32768&&n)return r(new Buffer(e));for(var o=-1,i=e.length-1,a=0;a>>8,o=t[255&(o^e.charCodeAt(a++))]^o>>>8;return a===i&&(o=o>>>8^t[255&(o^e.charCodeAt(a))]),-1^o},e.buf=function(e){if(e.length>1e4)return r(e);for(var n=-1,o=0,i=e.length-3;o>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])];for(;o>>8^t[255&(n^e[o++])];return-1^n},e.str=function(e){for(var n,r,o=-1,i=0,a=e.length;i>>8^t[255&(o^n)]:n<2048?o=(o=o>>>8^t[255&(o^(192|n>>6&31))])>>>8^t[255&(o^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),r=1023&e.charCodeAt(i++),o=(o=(o=(o=o>>>8^t[255&(o^(240|n>>8&7))])>>>8^t[255&(o^(128|n>>2&63))])>>>8^t[255&(o^(128|r>>6&15|3&n))])>>>8^t[255&(o^(128|63&r))]):o=(o=(o=o>>>8^t[255&(o^(224|n>>12&15))])>>>8^t[255&(o^(128|n>>6&63))])>>>8^t[255&(o^(128|63&n))];return-1^o}},"undefined"===typeof DO_NOT_EXPORT_CRC?n(t):n({})},684:(e,t,n)=>{"use strict";var r=n(46),o=n(325);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var o=0;o>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i{"use strict";var r=n(46),o=n(684),i=n(343),a=n(325),s=r.sum32,u=r.sum32_4,l=r.sum32_5,c=i.ch32,f=i.maj32,h=i.s0_256,d=i.s1_256,p=i.g0_256,m=i.g1_256,g=o.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r{"use strict";var r=n(46).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?a(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},46:(e,t,n)=>{"use strict";var r=n(325),o=n(534);function i(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),o=0;o>6|192,n[r++]=63&a|128):i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(o=0;o>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,a=(i>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,a,s){var u=0,l=t;return u+=(l=l+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,o,i,a,s){return t+r+i+s>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,a,s,u,l){var c=0,f=t;return c+=(f=f+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,o,i,a,s,u,l){return t+r+i+s+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},534:e=>{"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},192:e=>{"use strict";e.exports=e=>!(!e||e.length<8)&&(137===e[0]&&80===e[1]&&78===e[2]&&71===e[3]&&13===e[4]&&10===e[5]&&26===e[6]&&10===e[7])},842:(e,t,n)=>{e.exports=function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){var n=t[a][1][e];return o(n||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a=43)}})).catch((function(){return!1}))}function E(e){return"boolean"===typeof m?l.resolve(m):_(e).then((function(e){return m=e}))}function S(e){var t=g[e.name],n={};n.promise=new l((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function x(e){var t=g[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function k(e,t){var n=g[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function T(e,t){return new l((function(n,r){if(g[e.name]=g[e.name]||M(),e.db){if(!t)return n(e.db);S(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var i=a.open.apply(a,o);t&&(i.onupgradeneeded=function(t){var n=i.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(p)}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),i.onerror=function(e){e.preventDefault(),r(i.error)},i.onsuccess=function(){var t=i.result;t.onversionchange=function(e){e.target.close()},n(t),x(e)}}))}function C(e){return T(e,!1)}function O(e){return T(e,!0)}function N(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.versione.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||n){if(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function I(e){return new l((function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)}))}function P(e){return u([w(atob(e.data))],{type:e.type})}function A(e){return e&&e.__local_forage_encoded_blob}function D(e){var t=this,n=t._initReady().then((function(){var e=g[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return f(n,e,e),n}function R(e){S(e);for(var t=g[e.name],n=t.forages,r=0;r0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return l.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),O(e)})).then((function(){return R(e).then((function(){L(e,t,n,r-1)}))})).catch(n);n(i)}}function M(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function j(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var o=g[n.name];o||(o=M(),g[n.name]=o),o.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=D);var i=[];function a(){return l.resolve()}for(var s=0;s>4,c[u++]=(15&r)<<4|o>>2,c[u++]=(3&o)<<6|63&i;return l}function pe(e){var t,n=new Uint8Array(e),r="";for(t=0;t>2],r+=$[(3&n[t])<<4|n[t+1]>>4],r+=$[(15&n[t+1])<<2|n[t+2]>>6],r+=$[63&n[t+2]];return n.length%3===2?r=r.substring(0,r.length-1)+"=":n.length%3===1&&(r=r.substring(0,r.length-2)+"=="),r}function me(e,t){var n="";if(e&&(n=he.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===he.call(e.buffer))){var r,o=J;e instanceof ArrayBuffer?(r=e,o+=ee):(r=e.buffer,"[object Int8Array]"===n?o+=ne:"[object Uint8Array]"===n?o+=re:"[object Uint8ClampedArray]"===n?o+=oe:"[object Int16Array]"===n?o+=ie:"[object Uint16Array]"===n?o+=se:"[object Int32Array]"===n?o+=ae:"[object Uint32Array]"===n?o+=ue:"[object Float32Array]"===n?o+=le:"[object Float64Array]"===n?o+=ce:t(new Error("Failed to get type for BinaryArray"))),t(o+pe(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n=Q+e.type+"~"+pe(this.result);t(J+te+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(a){console.error("Couldn't convert value into a JSON string: ",e),t(null,a)}}function ge(e){if(e.substring(0,Z)!==J)return JSON.parse(e);var t,n=e.substring(fe),r=e.substring(Z,fe);if(r===te&&X.test(n)){var o=n.match(X);t=o[1],n=n.substring(o[0].length)}var i=de(n);switch(r){case ee:return i;case te:return u([i],{type:t});case ne:return new Int8Array(i);case re:return new Uint8Array(i);case oe:return new Uint8ClampedArray(i);case ie:return new Int16Array(i);case se:return new Uint16Array(i);case ae:return new Int32Array(i);case ue:return new Uint32Array(i);case le:return new Float32Array(i);case ce:return new Float64Array(i);default:throw new Error("Unkown type: "+r)}}var ve={serialize:me,deserialize:ge,stringToBuffer:de,bufferToString:pe};function ye(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function be(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!==typeof e[r]?e[r].toString():e[r];var o=new l((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(o){return r(o)}n.db.transaction((function(o){ye(o,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=ve,o}function we(e,t,n,r,o,i){e.executeSql(n,r,o,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?i(e,a):ye(e,t,(function(){e.executeSql(n,r,o,i)}),i)}),i):i(e,a)}),i)}function _e(e,t){var n=this;e=h(e);var r=new l((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){we(n,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=o.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return c(r,t),r}function Ee(e,t){var n=this,r=new l((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){we(n,o,"SELECT * FROM "+o.storeName,[],(function(n,r){for(var i=r.rows,a=i.length,s=0;s0)return void i(Se.apply(o,[e,s,n,r-1]));a(t)}}))}))})).catch(a)}));return c(i,n),i}function xe(e,t,n){return Se.apply(this,[e,t,n,1])}function ke(e,t){var n=this;e=h(e);var r=new l((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){we(n,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return c(r,t),r}function Te(e){var t=this,n=new l((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){we(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return c(n,e),n}function Ce(e){var t=this,n=new l((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){we(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return c(n,e),n}function Oe(e,t){var n=this,r=new l((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){we(n,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return c(r,t),r}function Ne(e){var t=this,n=new l((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){we(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],o=0;o '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var o=[],i=0;i0}function je(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=Re(e,t._defaultConfig),Me()?(t._dbInfo=n,n.serializer=ve,l.resolve()):l.reject()}function Fe(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return c(n,e),n}function Ue(e,t){var n=this;e=h(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return c(r,t),r}function Be(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,o=r.length,i=localStorage.length,a=1,s=0;s=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):l.reject("Invalid arguments"),c(r,t),r}var Ge={_driver:"localStorageWrapper",_initStorage:je,_support:De(),iterate:Be,getItem:Ue,setItem:Ve,removeItem:qe,clear:Fe,length:Ke,key:ze,keys:He,dropInstance:We},Ye=function(e,t){return e===t||"number"===typeof e&&"number"===typeof t&&isNaN(e)&&isNaN(t)},$e=function(e,t){for(var n=e.length,r=0;r{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},577:e=>{e.exports=function(e){e.data&&e.name&&(e=e.data);for(var t=!0,n="",r="",o=0;o{e.exports=function(e,t){if(e=String(e),t=String(t),!/^[\x00-\xFF]+$/.test(e)||!/^[\x00-\xFF]+$/.test(t))throw new Error("Only Latin-1 characters are permitted in PNG tEXt chunks. You might want to consider base64 encoding and/or zEXt compression");if(e.length>=80)throw new Error('Keyword "'+e+'" is longer than the 79-character limit imposed by the PNG specification');for(var n,r=e.length+t.length+1,o=new Uint8Array(r),i=0,a=0;a{t.encode=n(493),t.decode=n(577)},543:(e,t,n)=>{var r=n(558),o=n(685);e.exports=function(e){var t,n=8,u=n;for(t=0;t{var r=n(685);e.exports=function(e){if(137!==e[0])throw new Error("Invalid .png file header");if(80!==e[1])throw new Error("Invalid .png file header");if(78!==e[2])throw new Error("Invalid .png file header");if(71!==e[3])throw new Error("Invalid .png file header");if(13!==e[4])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(10!==e[5])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(26!==e[6])throw new Error("Invalid .png file header");if(10!==e[7])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");var t=!1,n=[],s=8;for(;s{"use strict";var r=n(791),o=n(296);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n