diff --git a/_app/immutable/assets/0.8746701a.css b/_app/immutable/assets/0.8746701a.css new file mode 100644 index 0000000..1ef00eb --- /dev/null +++ b/_app/immutable/assets/0.8746701a.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Covered+By+Your+Grace&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#edf2f7}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#cbd5e0}input::placeholder,textarea::placeholder{opacity:1;color:#cbd5e0}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-inset-\[4px\]{top:-4px;right:-4px;bottom:-4px;left:-4px}.top-0{top:0}.left-0{left:0}.right-0{right:0}.bottom-0{bottom:0}.flex{display:flex}.table{display:table}.contents{display:contents}.h-4{height:1rem}.h-px{height:1px}.h-full{height:100%}.h-\[24px\]{height:24px}.min-h-screen{min-height:100vh}.w-full{width:100%}.w-8{width:2rem}.w-4{width:1rem}.w-\[54px\]{width:54px}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow-0{flex-grow:0}.basis-\[320px\]{flex-basis:320px}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.rounded-md{border-radius:.375rem}.rounded-full{border-radius:9999px}.border-4{border-width:4px}.border-t{border-top-width:1px}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-blue{--tw-border-opacity: 1;border-color:rgb(0 188 255 / var(--tw-border-opacity))}.border-opacity-5{--tw-border-opacity: .05}.bg-\[\#1B2533\]{--tw-bg-opacity: 1;background-color:rgb(27 37 51 / var(--tw-bg-opacity))}.bg-\[\#151E2C\]{--tw-bg-opacity: 1;background-color:rgb(21 30 44 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(160 174 192 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(237 242 247 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-opacity-5{--tw-bg-opacity: .05}.bg-opacity-50{--tw-bg-opacity: .5}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pb-6{padding-bottom:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-2xl{font-size:1.5rem;line-height:2rem}.font-light{font-weight:300}.leading-tight{line-height:1.25}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-opacity-75{--tw-text-opacity: .75}.text-opacity-70{--tw-text-opacity: .7}.text-opacity-30{--tw-text-opacity: .3}.underline{text-decoration-line:underline}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-blue{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 188 255 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}body{--tw-bg-opacity: 1;background-color:rgb(16 24 38 / var(--tw-bg-opacity))}@media not all and (min-width: 1024px){.max-lg\:basis-\[240px\]{flex-basis:240px}}@media not all and (min-width: 768px){.max-md\:flex-\[300px\]{flex:300px}.max-md\:flex-shrink-0{flex-shrink:0}.max-md\:basis-\[0\]{flex-basis:0}.max-md\:flex-col{flex-direction:column}} diff --git a/_app/immutable/assets/2.f48004e0.css b/_app/immutable/assets/2.f48004e0.css new file mode 100644 index 0000000..523f232 --- /dev/null +++ b/_app/immutable/assets/2.f48004e0.css @@ -0,0 +1 @@ +.result.svelte-1wh6mo4{text-align:center;font-size:.875rem;line-height:1.25rem;font-weight:300;color:rgb(255 255 255 / var(--tw-text-opacity));--tw-text-opacity: .75 }.result__filename.svelte-1wh6mo4{padding-left:.25rem;padding-right:.25rem;text-align:left}.result__size.svelte-1wh6mo4{padding-left:.25rem;padding-right:.25rem;text-align:right}.result__error.svelte-1wh6mo4{padding-left:.25rem;padding-right:.25rem;text-align:center;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.result__rate.svelte-1wh6mo4{padding-left:.25rem;padding-right:.25rem;text-align:left}.result--good.svelte-1wh6mo4{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}.result--bad.svelte-1wh6mo4{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity))}.result--worse.svelte-1wh6mo4{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.input-switch.svelte-g8v6up.svelte-g8v6up{position:relative;height:1rem;width:2rem;cursor:pointer;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(160 174 192 / var(--tw-bg-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.input-switch__control.svelte-g8v6up.svelte-g8v6up{position:absolute;top:0;left:0;height:1rem;width:1rem;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(237 242 247 / var(--tw-bg-opacity));transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.input-switch.input-switch--on.svelte-g8v6up.svelte-g8v6up{--tw-bg-opacity:1;background-color:rgb(0 188 255 / var(--tw-bg-opacity))}.input-switch.input-switch--on.svelte-g8v6up .input-switch__control.svelte-g8v6up{transform:translate(100%)}.card__header.svelte-1allh55{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;border-top-width:1px;border-color:rgb(255 255 255 / var(--tw-border-opacity));--tw-border-opacity: .05;--tw-bg-opacity: 1;background-color:rgb(27 37 51 / var(--tw-bg-opacity));padding:.75rem 1rem}.card__title.svelte-1allh55{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.card__body.svelte-1allh55{--tw-bg-opacity: 1;background-color:rgb(21 30 44 / var(--tw-bg-opacity));padding:1rem 1rem 1.5rem}.input-group.svelte-hk8el4{width:100%}.input-group.svelte-hk8el4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.input-group__label.svelte-hk8el4{font-size:.75rem;line-height:1rem;color:rgb(255 255 255 / var(--tw-text-opacity));--tw-text-opacity: .75 }.input-number.svelte-16knh58{width:100%;border-radius:.375rem;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-bg-opacity: .05;padding:.5rem .75rem;line-height:1.25;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.input-number.svelte-16knh58:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(0 188 255 / var(--tw-ring-opacity)) }.input-select.svelte-m1cv8l{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.375rem;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-bg-opacity: .05;padding:.5rem .75rem;line-height:1.25;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.input-select.svelte-m1cv8l:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(0 188 255 / var(--tw-ring-opacity)) }@property --rotate{syntax:"";initial-value:0deg;inherits:false}.dropzone.svelte-17n85hh{position:relative;padding:2rem;background:#191c29;border-radius:8px}.dropzone.svelte-17n85hh:before{top:-4px;right:-4px;bottom:-4px;left:-4px;content:"";border-radius:12px;position:absolute;z-index:-1;animation:svelte-17n85hh-rotate 5s linear infinite;background-image:linear-gradient(var(--rotate),#dd31d2,#519cff)}.dropzone.svelte-17n85hh:after{position:absolute;content:"";top:0;left:0;right:0;height:100%;z-index:-1;transform:scale(.75);filter:blur(60px);animation:svelte-17n85hh-rotate 5s linear infinite;background-image:linear-gradient(var(--rotate),#dd31d2,#519cff)}@keyframes svelte-17n85hh-rotate{0%{--rotate:0deg}to{--rotate:360deg}} diff --git a/_app/immutable/assets/_layout-3dc7acce.css b/_app/immutable/assets/_layout-3dc7acce.css deleted file mode 100644 index a59a58c..0000000 --- a/_app/immutable/assets/_layout-3dc7acce.css +++ /dev/null @@ -1,856 +0,0 @@ -@import url('https://fonts.googleapis.com/css2?family=Covered+By+Your+Grace&display=swap'); - -/* -! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com -*/ - -/* -1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) -2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) -*/ - -*, -::before, -::after { - box-sizing: border-box; /* 1 */ - border-width: 0; /* 2 */ - border-style: solid; /* 2 */ - border-color: #edf2f7; /* 2 */ -} - -::before, -::after { - --tw-content: ''; -} - -/* -1. Use a consistent sensible line-height in all browsers. -2. Prevent adjustments of font size after orientation changes in iOS. -3. Use a more readable tab size. -4. Use the user's configured `sans` font-family by default. -5. Use the user's configured `sans` font-feature-settings by default. -*/ - -html { - line-height: 1.5; /* 1 */ - -webkit-text-size-adjust: 100%; /* 2 */ - -moz-tab-size: 4; /* 3 */ - -o-tab-size: 4; - tab-size: 4; /* 3 */ - font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */ - font-feature-settings: normal; /* 5 */ -} - -/* -1. Remove the margin in all browsers. -2. Inherit line-height from `html` so users can set them as a class directly on the `html` element. -*/ - -body { - margin: 0; /* 1 */ - line-height: inherit; /* 2 */ -} - -/* -1. Add the correct height in Firefox. -2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) -3. Ensure horizontal rules are visible by default. -*/ - -hr { - height: 0; /* 1 */ - color: inherit; /* 2 */ - border-top-width: 1px; /* 3 */ -} - -/* -Add the correct text decoration in Chrome, Edge, and Safari. -*/ - -abbr:where([title]) { - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; -} - -/* -Remove the default font size and weight for headings. -*/ - -h1, -h2, -h3, -h4, -h5, -h6 { - font-size: inherit; - font-weight: inherit; -} - -/* -Reset links to optimize for opt-in styling instead of opt-out. -*/ - -a { - color: inherit; - text-decoration: inherit; -} - -/* -Add the correct font weight in Edge and Safari. -*/ - -b, -strong { - font-weight: bolder; -} - -/* -1. Use the user's configured `mono` font family by default. -2. Correct the odd `em` font sizing in all browsers. -*/ - -code, -kbd, -samp, -pre { - font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */ - font-size: 1em; /* 2 */ -} - -/* -Add the correct font size in all browsers. -*/ - -small { - font-size: 80%; -} - -/* -Prevent `sub` and `sup` elements from affecting the line height in all browsers. -*/ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - -/* -1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) -2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) -3. Remove gaps between table borders by default. -*/ - -table { - text-indent: 0; /* 1 */ - border-color: inherit; /* 2 */ - border-collapse: collapse; /* 3 */ -} - -/* -1. Change the font styles in all browsers. -2. Remove the margin in Firefox and Safari. -3. Remove default padding in all browsers. -*/ - -button, -input, -optgroup, -select, -textarea { - font-family: inherit; /* 1 */ - font-size: 100%; /* 1 */ - font-weight: inherit; /* 1 */ - line-height: inherit; /* 1 */ - color: inherit; /* 1 */ - margin: 0; /* 2 */ - padding: 0; /* 3 */ -} - -/* -Remove the inheritance of text transform in Edge and Firefox. -*/ - -button, -select { - text-transform: none; -} - -/* -1. Correct the inability to style clickable types in iOS and Safari. -2. Remove default button styles. -*/ - -button, -[type='button'], -[type='reset'], -[type='submit'] { - -webkit-appearance: button; /* 1 */ - background-color: transparent; /* 2 */ - background-image: none; /* 2 */ -} - -/* -Use the modern Firefox focus style for all focusable elements. -*/ - -:-moz-focusring { - outline: auto; -} - -/* -Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737) -*/ - -:-moz-ui-invalid { - box-shadow: none; -} - -/* -Add the correct vertical alignment in Chrome and Firefox. -*/ - -progress { - vertical-align: baseline; -} - -/* -Correct the cursor style of increment and decrement buttons in Safari. -*/ - -::-webkit-inner-spin-button, -::-webkit-outer-spin-button { - height: auto; -} - -/* -1. Correct the odd appearance in Chrome and Safari. -2. Correct the outline style in Safari. -*/ - -[type='search'] { - -webkit-appearance: textfield; /* 1 */ - outline-offset: -2px; /* 2 */ -} - -/* -Remove the inner padding in Chrome and Safari on macOS. -*/ - -::-webkit-search-decoration { - -webkit-appearance: none; -} - -/* -1. Correct the inability to style clickable types in iOS and Safari. -2. Change font properties to `inherit` in Safari. -*/ - -::-webkit-file-upload-button { - -webkit-appearance: button; /* 1 */ - font: inherit; /* 2 */ -} - -/* -Add the correct display in Chrome and Safari. -*/ - -summary { - display: list-item; -} - -/* -Removes the default spacing and border for appropriate elements. -*/ - -blockquote, -dl, -dd, -h1, -h2, -h3, -h4, -h5, -h6, -hr, -figure, -p, -pre { - margin: 0; -} - -fieldset { - margin: 0; - padding: 0; -} - -legend { - padding: 0; -} - -ol, -ul, -menu { - list-style: none; - margin: 0; - padding: 0; -} - -/* -Prevent resizing textareas horizontally by default. -*/ - -textarea { - resize: vertical; -} - -/* -1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300) -2. Set the default placeholder color to the user's configured gray 400 color. -*/ - -input::-moz-placeholder, textarea::-moz-placeholder { - opacity: 1; /* 1 */ - color: #cbd5e0; /* 2 */ -} - -input::placeholder, -textarea::placeholder { - opacity: 1; /* 1 */ - color: #cbd5e0; /* 2 */ -} - -/* -Set the default cursor for buttons. -*/ - -button, -[role="button"] { - cursor: pointer; -} - -/* -Make sure disabled buttons don't get the pointer cursor. -*/ - -:disabled { - cursor: default; -} - -/* -1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14) -2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210) - This can trigger a poorly considered lint error in some tools but is included by design. -*/ - -img, -svg, -video, -canvas, -audio, -iframe, -embed, -object { - display: block; /* 1 */ - vertical-align: middle; /* 2 */ -} - -/* -Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14) -*/ - -img, -video { - max-width: 100%; - height: auto; -} - -/* Make elements with the HTML hidden attribute stay hidden by default */ - -[hidden] { - display: none; -} - -*, ::before, ::after{ - --tw-border-spacing-x: 0; - --tw-border-spacing-y: 0; - --tw-translate-x: 0; - --tw-translate-y: 0; - --tw-rotate: 0; - --tw-skew-x: 0; - --tw-skew-y: 0; - --tw-scale-x: 1; - --tw-scale-y: 1; - --tw-pan-x: ; - --tw-pan-y: ; - --tw-pinch-zoom: ; - --tw-scroll-snap-strictness: proximity; - --tw-ordinal: ; - --tw-slashed-zero: ; - --tw-numeric-figure: ; - --tw-numeric-spacing: ; - --tw-numeric-fraction: ; - --tw-ring-inset: ; - --tw-ring-offset-width: 0px; - --tw-ring-offset-color: #fff; - --tw-ring-color: rgb(59 130 246 / 0.5); - --tw-ring-offset-shadow: 0 0 #0000; - --tw-ring-shadow: 0 0 #0000; - --tw-shadow: 0 0 #0000; - --tw-shadow-colored: 0 0 #0000; - --tw-blur: ; - --tw-brightness: ; - --tw-contrast: ; - --tw-grayscale: ; - --tw-hue-rotate: ; - --tw-invert: ; - --tw-saturate: ; - --tw-sepia: ; - --tw-drop-shadow: ; - --tw-backdrop-blur: ; - --tw-backdrop-brightness: ; - --tw-backdrop-contrast: ; - --tw-backdrop-grayscale: ; - --tw-backdrop-hue-rotate: ; - --tw-backdrop-invert: ; - --tw-backdrop-opacity: ; - --tw-backdrop-saturate: ; - --tw-backdrop-sepia: ; -} - -::backdrop{ - --tw-border-spacing-x: 0; - --tw-border-spacing-y: 0; - --tw-translate-x: 0; - --tw-translate-y: 0; - --tw-rotate: 0; - --tw-skew-x: 0; - --tw-skew-y: 0; - --tw-scale-x: 1; - --tw-scale-y: 1; - --tw-pan-x: ; - --tw-pan-y: ; - --tw-pinch-zoom: ; - --tw-scroll-snap-strictness: proximity; - --tw-ordinal: ; - --tw-slashed-zero: ; - --tw-numeric-figure: ; - --tw-numeric-spacing: ; - --tw-numeric-fraction: ; - --tw-ring-inset: ; - --tw-ring-offset-width: 0px; - --tw-ring-offset-color: #fff; - --tw-ring-color: rgb(59 130 246 / 0.5); - --tw-ring-offset-shadow: 0 0 #0000; - --tw-ring-shadow: 0 0 #0000; - --tw-shadow: 0 0 #0000; - --tw-shadow-colored: 0 0 #0000; - --tw-blur: ; - --tw-brightness: ; - --tw-contrast: ; - --tw-grayscale: ; - --tw-hue-rotate: ; - --tw-invert: ; - --tw-saturate: ; - --tw-sepia: ; - --tw-drop-shadow: ; - --tw-backdrop-blur: ; - --tw-backdrop-brightness: ; - --tw-backdrop-contrast: ; - --tw-backdrop-grayscale: ; - --tw-backdrop-hue-rotate: ; - --tw-backdrop-invert: ; - --tw-backdrop-opacity: ; - --tw-backdrop-saturate: ; - --tw-backdrop-sepia: ; -} - -.static{ - position: static; -} - -.fixed{ - position: fixed; -} - -.absolute{ - position: absolute; -} - -.relative{ - position: relative; -} - -.inset-0{ - top: 0px; - right: 0px; - bottom: 0px; - left: 0px; -} - -.-inset-\[4px\]{ - top: -4px; - right: -4px; - bottom: -4px; - left: -4px; -} - -.top-0{ - top: 0px; -} - -.left-0{ - left: 0px; -} - -.right-0{ - right: 0px; -} - -.bottom-0{ - bottom: 0px; -} - -.flex{ - display: flex; -} - -.table{ - display: table; -} - -.contents{ - display: contents; -} - -.h-4{ - height: 1rem; -} - -.h-px{ - height: 1px; -} - -.h-full{ - height: 100%; -} - -.h-\[24px\]{ - height: 24px; -} - -.min-h-screen{ - min-height: 100vh; -} - -.w-full{ - width: 100%; -} - -.w-8{ - width: 2rem; -} - -.w-4{ - width: 1rem; -} - -.w-\[54px\]{ - width: 54px; -} - -.flex-1{ - flex: 1 1 0%; -} - -.flex-shrink-0{ - flex-shrink: 0; -} - -.shrink{ - flex-shrink: 1; -} - -.flex-grow-0{ - flex-grow: 0; -} - -.basis-\[320px\]{ - flex-basis: 320px; -} - -.transform{ - transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); -} - -.resize{ - resize: both; -} - -.flex-col{ - flex-direction: column; -} - -.items-center{ - align-items: center; -} - -.justify-center{ - justify-content: center; -} - -.justify-between{ - justify-content: space-between; -} - -.gap-x-2{ - -moz-column-gap: 0.5rem; - column-gap: 0.5rem; -} - -.space-y-4 > :not([hidden]) ~ :not([hidden]){ - --tw-space-y-reverse: 0; - margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); - margin-bottom: calc(1rem * var(--tw-space-y-reverse)); -} - -.space-y-3 > :not([hidden]) ~ :not([hidden]){ - --tw-space-y-reverse: 0; - margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); - margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); -} - -.space-y-2 > :not([hidden]) ~ :not([hidden]){ - --tw-space-y-reverse: 0; - margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))); - margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)); -} - -.space-y-1 > :not([hidden]) ~ :not([hidden]){ - --tw-space-y-reverse: 0; - margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse))); - margin-bottom: calc(0.25rem * var(--tw-space-y-reverse)); -} - -.rounded-md{ - border-radius: 0.375rem; -} - -.rounded-full{ - border-radius: 9999px; -} - -.border-4{ - border-width: 4px; -} - -.border-t{ - border-top-width: 1px; -} - -.border-white{ - --tw-border-opacity: 1; - border-color: rgb(255 255 255 / var(--tw-border-opacity)); -} - -.border-blue{ - --tw-border-opacity: 1; - border-color: rgb(0 188 255 / var(--tw-border-opacity)); -} - -.border-opacity-5{ - --tw-border-opacity: 0.05; -} - -.bg-\[\#1B2533\]{ - --tw-bg-opacity: 1; - background-color: rgb(27 37 51 / var(--tw-bg-opacity)); -} - -.bg-\[\#151E2C\]{ - --tw-bg-opacity: 1; - background-color: rgb(21 30 44 / var(--tw-bg-opacity)); -} - -.bg-white{ - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); -} - -.bg-gray-500{ - --tw-bg-opacity: 1; - background-color: rgb(160 174 192 / var(--tw-bg-opacity)); -} - -.bg-gray-200{ - --tw-bg-opacity: 1; - background-color: rgb(237 242 247 / var(--tw-bg-opacity)); -} - -.bg-black{ - --tw-bg-opacity: 1; - background-color: rgb(0 0 0 / var(--tw-bg-opacity)); -} - -.bg-opacity-5{ - --tw-bg-opacity: 0.05; -} - -.bg-opacity-50{ - --tw-bg-opacity: 0.5; -} - -.p-4{ - padding: 1rem; -} - -.px-4{ - padding-left: 1rem; - padding-right: 1rem; -} - -.py-3{ - padding-top: 0.75rem; - padding-bottom: 0.75rem; -} - -.py-2{ - padding-top: 0.5rem; - padding-bottom: 0.5rem; -} - -.px-3{ - padding-left: 0.75rem; - padding-right: 0.75rem; -} - -.pb-6{ - padding-bottom: 1.5rem; -} - -.text-left{ - text-align: left; -} - -.text-center{ - text-align: center; -} - -.text-right{ - text-align: right; -} - -.text-xs{ - font-size: 0.75rem; - line-height: 1rem; -} - -.text-sm{ - font-size: 0.875rem; - line-height: 1.25rem; -} - -.text-2xl{ - font-size: 1.5rem; - line-height: 2rem; -} - -.font-light{ - font-weight: 300; -} - -.leading-tight{ - line-height: 1.25; -} - -.text-white{ - --tw-text-opacity: 1; - color: rgb(255 255 255 / var(--tw-text-opacity)); -} - -.text-red-500{ - --tw-text-opacity: 1; - color: rgb(239 68 68 / var(--tw-text-opacity)); -} - -.text-opacity-75{ - --tw-text-opacity: 0.75; -} - -.text-opacity-70{ - --tw-text-opacity: 0.7; -} - -.text-opacity-30{ - --tw-text-opacity: 0.3; -} - -.underline{ - text-decoration-line: underline; -} - -.outline-none{ - outline: 2px solid transparent; - outline-offset: 2px; -} - -.ring-blue{ - --tw-ring-opacity: 1; - --tw-ring-color: rgb(0 188 255 / var(--tw-ring-opacity)); -} - -.blur{ - --tw-blur: blur(8px); - filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); -} - -.filter{ - filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); -} - -.transition-colors{ - transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - transition-duration: 150ms; -} - -body{ - --tw-bg-opacity: 1; - background-color: rgb(16 24 38 / var(--tw-bg-opacity)); -} - -@media not all and (min-width: 1024px){ - - .max-lg\:basis-\[240px\]{ - flex-basis: 240px; - } -} - -@media not all and (min-width: 768px){ - - .max-md\:flex-\[300px\]{ - flex: 300px; - } - - .max-md\:flex-shrink-0{ - flex-shrink: 0; - } - - .max-md\:basis-\[0\]{ - flex-basis: 0; - } - - .max-md\:flex-col{ - flex-direction: column; - } -} diff --git a/_app/immutable/assets/_layout.f4a5c348.css b/_app/immutable/assets/_layout.f4a5c348.css new file mode 100644 index 0000000..707942d --- /dev/null +++ b/_app/immutable/assets/_layout.f4a5c348.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Covered+By+Your+Grace&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#edf2f7}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#cbd5e0}input::placeholder,textarea::placeholder{opacity:1;color:#cbd5e0}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-inset-\[4px\]{inset:-4px}.top-0{top:0}.left-0{left:0}.right-0{right:0}.bottom-0{bottom:0}.flex{display:flex}.table{display:table}.contents{display:contents}.h-4{height:1rem}.h-px{height:1px}.h-full{height:100%}.h-\[24px\]{height:24px}.min-h-screen{min-height:100vh}.w-full{width:100%}.w-8{width:2rem}.w-4{width:1rem}.w-\[54px\]{width:54px}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow-0{flex-grow:0}.basis-\[320px\]{flex-basis:320px}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.rounded-md{border-radius:.375rem}.rounded-full{border-radius:9999px}.border-4{border-width:4px}.border-t{border-top-width:1px}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-blue{--tw-border-opacity: 1;border-color:rgb(0 188 255 / var(--tw-border-opacity))}.border-opacity-5{--tw-border-opacity: .05}.bg-\[\#1B2533\]{--tw-bg-opacity: 1;background-color:rgb(27 37 51 / var(--tw-bg-opacity))}.bg-\[\#151E2C\]{--tw-bg-opacity: 1;background-color:rgb(21 30 44 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(160 174 192 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(237 242 247 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-opacity-5{--tw-bg-opacity: .05}.bg-opacity-50{--tw-bg-opacity: .5}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pb-6{padding-bottom:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-2xl{font-size:1.5rem;line-height:2rem}.font-light{font-weight:300}.leading-tight{line-height:1.25}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-opacity-75{--tw-text-opacity: .75}.text-opacity-70{--tw-text-opacity: .7}.text-opacity-30{--tw-text-opacity: .3}.underline{text-decoration-line:underline}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-blue{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 188 255 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}body{--tw-bg-opacity: 1;background-color:rgb(16 24 38 / var(--tw-bg-opacity))}@media not all and (min-width: 1024px){.max-lg\:basis-\[240px\]{flex-basis:240px}}@media not all and (min-width: 768px){.max-md\:flex-\[300px\]{flex:300px}.max-md\:flex-shrink-0{flex-shrink:0}.max-md\:basis-\[0\]{flex-basis:0}.max-md\:flex-col{flex-direction:column}} diff --git a/_app/immutable/assets/_page-1cf58d46.css b/_app/immutable/assets/_page-1cf58d46.css deleted file mode 100644 index 129b67f..0000000 --- a/_app/immutable/assets/_page-1cf58d46.css +++ /dev/null @@ -1,19 +0,0 @@ -.result.svelte-1wh6mo4 {text-align: center;font-size: 0.875rem;line-height: 1.25rem;font-weight: 300;color: rgb(255 255 255 / var(--tw-text-opacity));--tw-text-opacity: 0.75 -}.result__filename.svelte-1wh6mo4 {padding-left: 0.25rem;padding-right: 0.25rem;text-align: left -}.result__size.svelte-1wh6mo4 {padding-left: 0.25rem;padding-right: 0.25rem;text-align: right -}.result__error.svelte-1wh6mo4 {padding-left: 0.25rem;padding-right: 0.25rem;text-align: center;--tw-text-opacity: 1;color: rgb(239 68 68 / var(--tw-text-opacity)) -}.result__rate.svelte-1wh6mo4 {padding-left: 0.25rem;padding-right: 0.25rem;text-align: left -}.result--good.svelte-1wh6mo4 {--tw-text-opacity: 1;color: rgb(74 222 128 / var(--tw-text-opacity)) -}.result--bad.svelte-1wh6mo4 {--tw-text-opacity: 1;color: rgb(253 224 71 / var(--tw-text-opacity)) -}.result--worse.svelte-1wh6mo4 {--tw-text-opacity: 1;color: rgb(239 68 68 / var(--tw-text-opacity)) -}.input-switch.svelte-g8v6up.svelte-g8v6up{position:relative;height:1rem;width:2rem;cursor:pointer;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(160 174 192 / var(--tw-bg-opacity));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.input-switch__control.svelte-g8v6up.svelte-g8v6up{position:absolute;top:0px;left:0px;height:1rem;width:1rem;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(237 242 247 / var(--tw-bg-opacity));transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.input-switch.input-switch--on.svelte-g8v6up.svelte-g8v6up{--tw-bg-opacity:1;background-color:rgb(0 188 255 / var(--tw-bg-opacity))}.input-switch.input-switch--on.svelte-g8v6up .input-switch__control.svelte-g8v6up{transform:translateX(100%)}.card__header.svelte-1allh55 {display: flex;-webkit-user-select: none;-moz-user-select: none;user-select: none;align-items: center;justify-content: space-between;border-top-width: 1px;border-color: rgb(255 255 255 / var(--tw-border-opacity));--tw-border-opacity: 0.05;--tw-bg-opacity: 1;background-color: rgb(27 37 51 / var(--tw-bg-opacity));padding-left: 1rem;padding-right: 1rem;padding-top: 0.75rem;padding-bottom: 0.75rem -}.card__title.svelte-1allh55 {font-size: 0.875rem;line-height: 1.25rem;--tw-text-opacity: 1;color: rgb(255 255 255 / var(--tw-text-opacity)) -}.card__body.svelte-1allh55 {--tw-bg-opacity: 1;background-color: rgb(21 30 44 / var(--tw-bg-opacity));padding: 1rem;padding-bottom: 1.5rem -}.input-group.svelte-hk8el4 {width: 100% -}.input-group.svelte-hk8el4 > :not([hidden]) ~ :not([hidden]) {--tw-space-y-reverse: 0;margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom: calc(0.25rem * var(--tw-space-y-reverse)) -}.input-group__label.svelte-hk8el4 {font-size: 0.75rem;line-height: 1rem;color: rgb(255 255 255 / var(--tw-text-opacity));--tw-text-opacity: 0.75 -}.input-number.svelte-16knh58 {width: 100%;border-radius: 0.375rem;background-color: rgb(255 255 255 / var(--tw-bg-opacity));--tw-bg-opacity: 0.05;padding-top: 0.5rem;padding-bottom: 0.5rem;padding-left: 0.75rem;padding-right: 0.75rem;line-height: 1.25;--tw-text-opacity: 1;color: rgb(255 255 255 / var(--tw-text-opacity));outline: 2px solid transparent;outline-offset: 2px -}.input-number.svelte-16knh58:focus {--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(0 188 255 / var(--tw-ring-opacity)) -}.input-select.svelte-m1cv8l {width: 100%;-webkit-appearance: none;-moz-appearance: none;appearance: none;border-radius: 0.375rem;background-color: rgb(255 255 255 / var(--tw-bg-opacity));--tw-bg-opacity: 0.05;padding-top: 0.5rem;padding-bottom: 0.5rem;padding-left: 0.75rem;padding-right: 0.75rem;line-height: 1.25;--tw-text-opacity: 1;color: rgb(255 255 255 / var(--tw-text-opacity));outline: 2px solid transparent;outline-offset: 2px -}.input-select.svelte-m1cv8l:focus {--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(0 188 255 / var(--tw-ring-opacity)) -}@property --rotate{syntax:'';initial-value:0deg;inherits:false}.dropzone.svelte-17n85hh{position:relative;padding:2rem;;background:#191c29;border-radius:8px}.dropzone.svelte-17n85hh::before{top:-4px;right:-4px;bottom:-4px;left:-4px;;content:'';border-radius:12px;position:absolute;z-index:-1;animation:svelte-17n85hh-rotate 5s linear infinite;background-image:linear-gradient(var(--rotate), #dd31d2, #519cff)}.dropzone.svelte-17n85hh::after{position:absolute;content:'';top:0;left:0;right:0;height:100%;z-index:-1;transform:scale(0.75);filter:blur(60px);animation:svelte-17n85hh-rotate 5s linear infinite;background-image:linear-gradient(var(--rotate), #dd31d2, #519cff)}@keyframes svelte-17n85hh-rotate{0%{--rotate:0deg}100%{--rotate:360deg}} \ No newline at end of file diff --git a/_app/immutable/assets/_page.6f78e932.css b/_app/immutable/assets/_page.6f78e932.css new file mode 100644 index 0000000..e63d71e --- /dev/null +++ b/_app/immutable/assets/_page.6f78e932.css @@ -0,0 +1 @@ +.result.svelte-1wh6mo4{text-align:center;font-size:.875rem;line-height:1.25rem;font-weight:300;color:rgb(255 255 255 / var(--tw-text-opacity));--tw-text-opacity: .75 }.result__filename.svelte-1wh6mo4{padding-left:.25rem;padding-right:.25rem;text-align:left}.result__size.svelte-1wh6mo4{padding-left:.25rem;padding-right:.25rem;text-align:right}.result__error.svelte-1wh6mo4{padding-left:.25rem;padding-right:.25rem;text-align:center;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.result__rate.svelte-1wh6mo4{padding-left:.25rem;padding-right:.25rem;text-align:left}.result--good.svelte-1wh6mo4{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}.result--bad.svelte-1wh6mo4{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity))}.result--worse.svelte-1wh6mo4{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.input-switch.svelte-g8v6up.svelte-g8v6up{position:relative;height:1rem;width:2rem;cursor:pointer;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(160 174 192 / var(--tw-bg-opacity));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.input-switch__control.svelte-g8v6up.svelte-g8v6up{position:absolute;top:0;left:0;height:1rem;width:1rem;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(237 242 247 / var(--tw-bg-opacity));transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.input-switch.input-switch--on.svelte-g8v6up.svelte-g8v6up{--tw-bg-opacity:1;background-color:rgb(0 188 255 / var(--tw-bg-opacity))}.input-switch.input-switch--on.svelte-g8v6up .input-switch__control.svelte-g8v6up{transform:translate(100%)}.card__header.svelte-1allh55{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;border-top-width:1px;border-color:rgb(255 255 255 / var(--tw-border-opacity));--tw-border-opacity: .05;--tw-bg-opacity: 1;background-color:rgb(27 37 51 / var(--tw-bg-opacity));padding:.75rem 1rem}.card__title.svelte-1allh55{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.card__body.svelte-1allh55{--tw-bg-opacity: 1;background-color:rgb(21 30 44 / var(--tw-bg-opacity));padding:1rem 1rem 1.5rem}.input-group.svelte-hk8el4{width:100%}.input-group.svelte-hk8el4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.input-group__label.svelte-hk8el4{font-size:.75rem;line-height:1rem;color:rgb(255 255 255 / var(--tw-text-opacity));--tw-text-opacity: .75 }.input-number.svelte-16knh58{width:100%;border-radius:.375rem;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-bg-opacity: .05;padding:.5rem .75rem;line-height:1.25;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.input-number.svelte-16knh58:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(0 188 255 / var(--tw-ring-opacity)) }.input-select.svelte-m1cv8l{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.375rem;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-bg-opacity: .05;padding:.5rem .75rem;line-height:1.25;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.input-select.svelte-m1cv8l:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(0 188 255 / var(--tw-ring-opacity)) }@property --rotate{syntax:"";initial-value:0deg;inherits:false}.dropzone.svelte-17n85hh{position:relative;padding:2rem;background:#191c29;border-radius:8px}.dropzone.svelte-17n85hh:before{inset:-4px;content:"";border-radius:12px;position:absolute;z-index:-1;animation:svelte-17n85hh-rotate 5s linear infinite;background-image:linear-gradient(var(--rotate),#dd31d2,#519cff)}.dropzone.svelte-17n85hh:after{position:absolute;content:"";top:0;left:0;right:0;height:100%;z-index:-1;transform:scale(.75);filter:blur(60px);animation:svelte-17n85hh-rotate 5s linear infinite;background-image:linear-gradient(var(--rotate),#dd31d2,#519cff)}@keyframes svelte-17n85hh-rotate{0%{--rotate:0deg}to{--rotate:360deg}} diff --git a/_app/immutable/assets/logo-ec8219a6.svg b/_app/immutable/assets/logo.ec8219a6.svg similarity index 100% rename from _app/immutable/assets/logo-ec8219a6.svg rename to _app/immutable/assets/logo.ec8219a6.svg diff --git a/_app/immutable/chunks/0-a9e0965b.js b/_app/immutable/chunks/0-a9e0965b.js deleted file mode 100644 index 941900a..0000000 --- a/_app/immutable/chunks/0-a9e0965b.js +++ /dev/null @@ -1,6 +0,0 @@ -import { _ } from "./_layout-9a8b0c19.js"; -import { default as default2 } from "../components/pages/_layout.svelte-44e755b8.js"; -export { - default2 as component, - _ as universal -}; diff --git a/_app/immutable/chunks/1-ffd2f99e.js b/_app/immutable/chunks/1-ffd2f99e.js deleted file mode 100644 index ebc9d97..0000000 --- a/_app/immutable/chunks/1-ffd2f99e.js +++ /dev/null @@ -1,4 +0,0 @@ -import { default as default2 } from "../components/error.svelte-e4b99ac8.js"; -export { - default2 as component -}; diff --git a/_app/immutable/chunks/2-e0ad7b66.js b/_app/immutable/chunks/2-e0ad7b66.js deleted file mode 100644 index f0c91f8..0000000 --- a/_app/immutable/chunks/2-e0ad7b66.js +++ /dev/null @@ -1,6 +0,0 @@ -import { _ } from "./_page-de0ef88a.js"; -import { default as default2 } from "../components/pages/_page.svelte-c8674a26.js"; -export { - default2 as component, - _ as universal -}; diff --git a/_app/immutable/chunks/_commonjsHelpers.725317a4.js b/_app/immutable/chunks/_commonjsHelpers.725317a4.js new file mode 100644 index 0000000..b285ce5 --- /dev/null +++ b/_app/immutable/chunks/_commonjsHelpers.725317a4.js @@ -0,0 +1 @@ +var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{o as c,l as g}; diff --git a/_app/immutable/chunks/_layout-9a8b0c19.js b/_app/immutable/chunks/_layout-9a8b0c19.js deleted file mode 100644 index bbea35e..0000000 --- a/_app/immutable/chunks/_layout-9a8b0c19.js +++ /dev/null @@ -1,9 +0,0 @@ -const prerender = true; -const _layout = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - prerender -}, Symbol.toStringTag, { value: "Module" })); -export { - _layout as _, - prerender as p -}; diff --git a/_app/immutable/chunks/_page-de0ef88a.js b/_app/immutable/chunks/_page-de0ef88a.js deleted file mode 100644 index 11bb079..0000000 --- a/_app/immutable/chunks/_page-de0ef88a.js +++ /dev/null @@ -1,9 +0,0 @@ -const prerender = true; -const _page = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - prerender -}, Symbol.toStringTag, { value: "Module" })); -export { - _page as _, - prerender as p -}; diff --git a/_app/immutable/chunks/file-dialog.min-2f0a7f89.js b/_app/immutable/chunks/file-dialog.min-2f0a7f89.js deleted file mode 100644 index b9ba578..0000000 --- a/_app/immutable/chunks/file-dialog.min-2f0a7f89.js +++ /dev/null @@ -1,60 +0,0 @@ -function _mergeNamespaces(n, m) { - for (var i = 0; i < m.length; i++) { - const e = m[i]; - if (typeof e !== "string" && !Array.isArray(e)) { - for (const k in e) { - if (k !== "default" && !(k in n)) { - const d = Object.getOwnPropertyDescriptor(e, k); - if (d) { - Object.defineProperty(n, k, d.get ? d : { - enumerable: true, - get: () => e[k] - }); - } - } - } - } - } - return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" })); -} -var fileDialog_minExports = {}; -var fileDialog_min$2 = { - get exports() { - return fileDialog_minExports; - }, - set exports(v) { - fileDialog_minExports = v; - } -}; -(function(module, exports) { - var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(a) { - return typeof a; - } : function(a) { - return a && "function" == typeof Symbol && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a; - }; - (function(a) { - var b = function() { - for (var d = arguments.length, c = Array(d), f = 0; f < d; f++) - c[f] = arguments[f]; - var g = document.createElement("input"); - return "object" === _typeof(c[0]) && (true === c[0].multiple && g.setAttribute("multiple", ""), void 0 !== c[0].accept && g.setAttribute("accept", c[0].accept)), g.setAttribute("type", "file"), g.style.display = "none", g.setAttribute("id", "hidden-file"), document.body.appendChild(g), new Promise(function(h) { - g.addEventListener("change", function() { - h(g.files); - var l = c[c.length - 1]; - "function" == typeof l && l(g.files), document.body.removeChild(g); - }); - var j = document.createEvent("MouseEvents"); - j.initMouseEvent("click", true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null), g.dispatchEvent(j); - }); - }; - module.exports && (exports = module.exports = b), exports.fileDialog = b; - })(); -})(fileDialog_min$2, fileDialog_minExports); -const fileDialog_min = fileDialog_minExports; -const fileDialog_min$1 = /* @__PURE__ */ _mergeNamespaces({ - __proto__: null, - default: fileDialog_min -}, [fileDialog_minExports]); -export { - fileDialog_min$1 as f -}; diff --git a/_app/immutable/chunks/file-dialog.min.66982265.js b/_app/immutable/chunks/file-dialog.min.66982265.js new file mode 100644 index 0000000..cbcc502 --- /dev/null +++ b/_app/immutable/chunks/file-dialog.min.66982265.js @@ -0,0 +1 @@ +import{g as m}from"./_commonjsHelpers.725317a4.js";function d(r,l){for(var f=0;fe[o]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var a={exports:{}};(function(r,l){var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};(function(e){var o=function(){for(var i=arguments.length,n=Array(i),u=0;u x; -function assign(tar, src) { - for (const k in src) - tar[k] = src[k]; - return tar; -} -function run(fn) { - return fn(); -} -function blank_object() { - return /* @__PURE__ */ Object.create(null); -} -function run_all(fns) { - fns.forEach(run); -} -function is_function(thing) { - return typeof thing === "function"; -} -function safe_not_equal(a, b) { - return a != a ? b == b : a !== b || (a && typeof a === "object" || typeof a === "function"); -} -let src_url_equal_anchor; -function src_url_equal(element_src, url) { - if (!src_url_equal_anchor) { - src_url_equal_anchor = document.createElement("a"); - } - src_url_equal_anchor.href = url; - return element_src === src_url_equal_anchor.href; -} -function is_empty(obj) { - return Object.keys(obj).length === 0; -} -function subscribe(store, ...callbacks) { - if (store == null) { - return noop; - } - const unsub = store.subscribe(...callbacks); - return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub; -} -function component_subscribe(component, store, callback) { - component.$$.on_destroy.push(subscribe(store, callback)); -} -function create_slot(definition, ctx, $$scope, fn) { - if (definition) { - const slot_ctx = get_slot_context(definition, ctx, $$scope, fn); - return definition[0](slot_ctx); - } -} -function get_slot_context(definition, ctx, $$scope, fn) { - return definition[1] && fn ? assign($$scope.ctx.slice(), definition[1](fn(ctx))) : $$scope.ctx; -} -function get_slot_changes(definition, $$scope, dirty, fn) { - if (definition[2] && fn) { - const lets = definition[2](fn(dirty)); - if ($$scope.dirty === void 0) { - return lets; - } - if (typeof lets === "object") { - const merged = []; - const len = Math.max($$scope.dirty.length, lets.length); - for (let i = 0; i < len; i += 1) { - merged[i] = $$scope.dirty[i] | lets[i]; - } - return merged; - } - return $$scope.dirty | lets; - } - return $$scope.dirty; -} -function update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) { - if (slot_changes) { - const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn); - slot.p(slot_context, slot_changes); - } -} -function get_all_dirty_from_scope($$scope) { - if ($$scope.ctx.length > 32) { - const dirty = []; - const length = $$scope.ctx.length / 32; - for (let i = 0; i < length; i++) { - dirty[i] = -1; - } - return dirty; - } - return -1; -} -const is_client = typeof window !== "undefined"; -let now = is_client ? () => window.performance.now() : () => Date.now(); -let raf = is_client ? (cb) => requestAnimationFrame(cb) : noop; -const tasks = /* @__PURE__ */ new Set(); -function run_tasks(now2) { - tasks.forEach((task) => { - if (!task.c(now2)) { - tasks.delete(task); - task.f(); - } - }); - if (tasks.size !== 0) - raf(run_tasks); -} -function loop(callback) { - let task; - if (tasks.size === 0) - raf(run_tasks); - return { - promise: new Promise((fulfill) => { - tasks.add(task = { c: callback, f: fulfill }); - }), - abort() { - tasks.delete(task); - } - }; -} -let is_hydrating = false; -function start_hydrating() { - is_hydrating = true; -} -function end_hydrating() { - is_hydrating = false; -} -function upper_bound(low, high, key, value) { - while (low < high) { - const mid = low + (high - low >> 1); - if (key(mid) <= value) { - low = mid + 1; - } else { - high = mid; - } - } - return low; -} -function init_hydrate(target) { - if (target.hydrate_init) - return; - target.hydrate_init = true; - let children2 = target.childNodes; - if (target.nodeName === "HEAD") { - const myChildren = []; - for (let i = 0; i < children2.length; i++) { - const node = children2[i]; - if (node.claim_order !== void 0) { - myChildren.push(node); - } - } - children2 = myChildren; - } - const m = new Int32Array(children2.length + 1); - const p = new Int32Array(children2.length); - m[0] = -1; - let longest = 0; - for (let i = 0; i < children2.length; i++) { - const current = children2[i].claim_order; - const seqLen = (longest > 0 && children2[m[longest]].claim_order <= current ? longest + 1 : upper_bound(1, longest, (idx) => children2[m[idx]].claim_order, current)) - 1; - p[i] = m[seqLen] + 1; - const newLen = seqLen + 1; - m[newLen] = i; - longest = Math.max(newLen, longest); - } - const lis = []; - const toMove = []; - let last = children2.length - 1; - for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) { - lis.push(children2[cur - 1]); - for (; last >= cur; last--) { - toMove.push(children2[last]); - } - last--; - } - for (; last >= 0; last--) { - toMove.push(children2[last]); - } - lis.reverse(); - toMove.sort((a, b) => a.claim_order - b.claim_order); - for (let i = 0, j = 0; i < toMove.length; i++) { - while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) { - j++; - } - const anchor = j < lis.length ? lis[j] : null; - target.insertBefore(toMove[i], anchor); - } -} -function append_hydration(target, node) { - if (is_hydrating) { - init_hydrate(target); - if (target.actual_end_child === void 0 || target.actual_end_child !== null && target.actual_end_child.parentNode !== target) { - target.actual_end_child = target.firstChild; - } - while (target.actual_end_child !== null && target.actual_end_child.claim_order === void 0) { - target.actual_end_child = target.actual_end_child.nextSibling; - } - if (node !== target.actual_end_child) { - if (node.claim_order !== void 0 || node.parentNode !== target) { - target.insertBefore(node, target.actual_end_child); - } - } else { - target.actual_end_child = node.nextSibling; - } - } else if (node.parentNode !== target || node.nextSibling !== null) { - target.appendChild(node); - } -} -function insert_hydration(target, node, anchor) { - if (is_hydrating && !anchor) { - append_hydration(target, node); - } else if (node.parentNode !== target || node.nextSibling != anchor) { - target.insertBefore(node, anchor || null); - } -} -function detach(node) { - if (node.parentNode) { - node.parentNode.removeChild(node); - } -} -function destroy_each(iterations, detaching) { - for (let i = 0; i < iterations.length; i += 1) { - if (iterations[i]) - iterations[i].d(detaching); - } -} -function element(name) { - return document.createElement(name); -} -function text(data) { - return document.createTextNode(data); -} -function space() { - return text(" "); -} -function empty() { - return text(""); -} -function listen(node, event, handler, options) { - node.addEventListener(event, handler, options); - return () => node.removeEventListener(event, handler, options); -} -function prevent_default(fn) { - return function(event) { - event.preventDefault(); - return fn.call(this, event); - }; -} -function stop_propagation(fn) { - return function(event) { - event.stopPropagation(); - return fn.call(this, event); - }; -} -function attr(node, attribute, value) { - if (value == null) - node.removeAttribute(attribute); - else if (node.getAttribute(attribute) !== value) - node.setAttribute(attribute, value); -} -function to_number(value) { - return value === "" ? null : +value; -} -function children(element2) { - return Array.from(element2.childNodes); -} -function init_claim_info(nodes) { - if (nodes.claim_info === void 0) { - nodes.claim_info = { last_index: 0, total_claimed: 0 }; - } -} -function claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) { - init_claim_info(nodes); - const resultNode = (() => { - for (let i = nodes.claim_info.last_index; i < nodes.length; i++) { - const node = nodes[i]; - if (predicate(node)) { - const replacement = processNode(node); - if (replacement === void 0) { - nodes.splice(i, 1); - } else { - nodes[i] = replacement; - } - if (!dontUpdateLastIndex) { - nodes.claim_info.last_index = i; - } - return node; - } - } - for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) { - const node = nodes[i]; - if (predicate(node)) { - const replacement = processNode(node); - if (replacement === void 0) { - nodes.splice(i, 1); - } else { - nodes[i] = replacement; - } - if (!dontUpdateLastIndex) { - nodes.claim_info.last_index = i; - } else if (replacement === void 0) { - nodes.claim_info.last_index--; - } - return node; - } - } - return createNode(); - })(); - resultNode.claim_order = nodes.claim_info.total_claimed; - nodes.claim_info.total_claimed += 1; - return resultNode; -} -function claim_element_base(nodes, name, attributes, create_element) { - return claim_node(nodes, (node) => node.nodeName === name, (node) => { - const remove = []; - for (let j = 0; j < node.attributes.length; j++) { - const attribute = node.attributes[j]; - if (!attributes[attribute.name]) { - remove.push(attribute.name); - } - } - remove.forEach((v) => node.removeAttribute(v)); - return void 0; - }, () => create_element(name)); -} -function claim_element(nodes, name, attributes) { - return claim_element_base(nodes, name, attributes, element); -} -function claim_text(nodes, data) { - return claim_node( - nodes, - (node) => node.nodeType === 3, - (node) => { - const dataStr = "" + data; - if (node.data.startsWith(dataStr)) { - if (node.data.length !== dataStr.length) { - return node.splitText(dataStr.length); - } - } else { - node.data = dataStr; - } - }, - () => text(data), - true - // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements - ); -} -function claim_space(nodes) { - return claim_text(nodes, " "); -} -function set_data(text2, data) { - data = "" + data; - if (text2.wholeText !== data) - text2.data = data; -} -function set_input_value(input, value) { - input.value = value == null ? "" : value; -} -function set_style(node, key, value, important) { - if (value === null) { - node.style.removeProperty(key); - } else { - node.style.setProperty(key, value, important ? "important" : ""); - } -} -function select_option(select, value) { - for (let i = 0; i < select.options.length; i += 1) { - const option = select.options[i]; - if (option.__value === value) { - option.selected = true; - return; - } - } - select.selectedIndex = -1; -} -function select_value(select) { - const selected_option = select.querySelector(":checked") || select.options[0]; - return selected_option && selected_option.__value; -} -function toggle_class(element2, name, toggle) { - element2.classList[toggle ? "add" : "remove"](name); -} -function construct_svelte_component(component, props) { - return new component(props); -} -let current_component; -function set_current_component(component) { - current_component = component; -} -function get_current_component() { - if (!current_component) - throw new Error("Function called outside component initialization"); - return current_component; -} -function onMount(fn) { - get_current_component().$$.on_mount.push(fn); -} -function afterUpdate(fn) { - get_current_component().$$.after_update.push(fn); -} -function bubble(component, event) { - const callbacks = component.$$.callbacks[event.type]; - if (callbacks) { - callbacks.slice().forEach((fn) => fn.call(this, event)); - } -} -const dirty_components = []; -const binding_callbacks = []; -const render_callbacks = []; -const flush_callbacks = []; -const resolved_promise = Promise.resolve(); -let update_scheduled = false; -function schedule_update() { - if (!update_scheduled) { - update_scheduled = true; - resolved_promise.then(flush); - } -} -function tick() { - schedule_update(); - return resolved_promise; -} -function add_render_callback(fn) { - render_callbacks.push(fn); -} -function add_flush_callback(fn) { - flush_callbacks.push(fn); -} -const seen_callbacks = /* @__PURE__ */ new Set(); -let flushidx = 0; -function flush() { - if (flushidx !== 0) { - return; - } - const saved_component = current_component; - do { - try { - while (flushidx < dirty_components.length) { - const component = dirty_components[flushidx]; - flushidx++; - set_current_component(component); - update(component.$$); - } - } catch (e) { - dirty_components.length = 0; - flushidx = 0; - throw e; - } - set_current_component(null); - dirty_components.length = 0; - flushidx = 0; - while (binding_callbacks.length) - binding_callbacks.pop()(); - for (let i = 0; i < render_callbacks.length; i += 1) { - const callback = render_callbacks[i]; - if (!seen_callbacks.has(callback)) { - seen_callbacks.add(callback); - callback(); - } - } - render_callbacks.length = 0; - } while (dirty_components.length); - while (flush_callbacks.length) { - flush_callbacks.pop()(); - } - update_scheduled = false; - seen_callbacks.clear(); - set_current_component(saved_component); -} -function update($$) { - if ($$.fragment !== null) { - $$.update(); - run_all($$.before_update); - const dirty = $$.dirty; - $$.dirty = [-1]; - $$.fragment && $$.fragment.p($$.ctx, dirty); - $$.after_update.forEach(add_render_callback); - } -} -const outroing = /* @__PURE__ */ new Set(); -let outros; -function group_outros() { - outros = { - r: 0, - c: [], - p: outros - // parent group - }; -} -function check_outros() { - if (!outros.r) { - run_all(outros.c); - } - outros = outros.p; -} -function transition_in(block, local) { - if (block && block.i) { - outroing.delete(block); - block.i(local); - } -} -function transition_out(block, local, detach2, callback) { - if (block && block.o) { - if (outroing.has(block)) - return; - outroing.add(block); - outros.c.push(() => { - outroing.delete(block); - if (callback) { - if (detach2) - block.d(1); - callback(); - } - }); - block.o(local); - } else if (callback) { - callback(); - } -} -function bind(component, name, callback) { - const index = component.$$.props[name]; - if (index !== void 0) { - component.$$.bound[index] = callback; - callback(component.$$.ctx[index]); - } -} -function create_component(block) { - block && block.c(); -} -function claim_component(block, parent_nodes) { - block && block.l(parent_nodes); -} -function mount_component(component, target, anchor, customElement) { - const { fragment, after_update } = component.$$; - fragment && fragment.m(target, anchor); - if (!customElement) { - add_render_callback(() => { - const new_on_destroy = component.$$.on_mount.map(run).filter(is_function); - if (component.$$.on_destroy) { - component.$$.on_destroy.push(...new_on_destroy); - } else { - run_all(new_on_destroy); - } - component.$$.on_mount = []; - }); - } - after_update.forEach(add_render_callback); -} -function destroy_component(component, detaching) { - const $$ = component.$$; - if ($$.fragment !== null) { - run_all($$.on_destroy); - $$.fragment && $$.fragment.d(detaching); - $$.on_destroy = $$.fragment = null; - $$.ctx = []; - } -} -function make_dirty(component, i) { - if (component.$$.dirty[0] === -1) { - dirty_components.push(component); - schedule_update(); - component.$$.dirty.fill(0); - } - component.$$.dirty[i / 31 | 0] |= 1 << i % 31; -} -function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) { - const parent_component = current_component; - set_current_component(component); - const $$ = component.$$ = { - fragment: null, - ctx: [], - // state - props, - update: noop, - not_equal, - bound: blank_object(), - // lifecycle - on_mount: [], - on_destroy: [], - on_disconnect: [], - before_update: [], - after_update: [], - context: new Map(options.context || (parent_component ? parent_component.$$.context : [])), - // everything else - callbacks: blank_object(), - dirty, - skip_bound: false, - root: options.target || parent_component.$$.root - }; - append_styles && append_styles($$.root); - let ready = false; - $$.ctx = instance ? instance(component, options.props || {}, (i, ret, ...rest) => { - const value = rest.length ? rest[0] : ret; - if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) { - if (!$$.skip_bound && $$.bound[i]) - $$.bound[i](value); - if (ready) - make_dirty(component, i); - } - return ret; - }) : []; - $$.update(); - ready = true; - run_all($$.before_update); - $$.fragment = create_fragment ? create_fragment($$.ctx) : false; - if (options.target) { - if (options.hydrate) { - start_hydrating(); - const nodes = children(options.target); - $$.fragment && $$.fragment.l(nodes); - nodes.forEach(detach); - } else { - $$.fragment && $$.fragment.c(); - } - if (options.intro) - transition_in(component.$$.fragment); - mount_component(component, options.target, options.anchor, options.customElement); - end_hydrating(); - flush(); - } - set_current_component(parent_component); -} -class SvelteComponent { - $destroy() { - destroy_component(this, 1); - this.$destroy = noop; - } - $on(type, callback) { - if (!is_function(callback)) { - return noop; - } - const callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []); - callbacks.push(callback); - return () => { - const index = callbacks.indexOf(callback); - if (index !== -1) - callbacks.splice(index, 1); - }; - } - $set($$props) { - if (this.$$set && !is_empty($$props)) { - this.$$.skip_bound = true; - this.$$set($$props); - this.$$.skip_bound = false; - } - } -} -export { - run_all as $, - destroy_component as A, - tick as B, - noop as C, - create_slot as D, - update_slot_base as E, - get_all_dirty_from_scope as F, - get_slot_changes as G, - append_hydration as H, - component_subscribe as I, - assign as J, - now as K, - loop as L, - identity as M, - toggle_class as N, - listen as O, - bind as P, - add_flush_callback as Q, - set_input_value as R, - SvelteComponent as S, - to_number as T, - add_render_callback as U, - select_option as V, - destroy_each as W, - select_value as X, - src_url_equal as Y, - stop_propagation as Z, - prevent_default as _, - space as a, - bubble as a0, - insert_hydration as b, - claim_space as c, - check_outros as d, - empty as e, - transition_in as f, - group_outros as g, - detach as h, - init as i, - afterUpdate as j, - element as k, - claim_element as l, - children as m, - attr as n, - onMount as o, - set_style as p, - text as q, - claim_text as r, - safe_not_equal as s, - transition_out as t, - set_data as u, - binding_callbacks as v, - construct_svelte_component as w, - create_component as x, - claim_component as y, - mount_component as z -}; diff --git a/_app/immutable/chunks/index-fc865e59.js b/_app/immutable/chunks/index-fc865e59.js deleted file mode 100644 index 8fed06d..0000000 --- a/_app/immutable/chunks/index-fc865e59.js +++ /dev/null @@ -1,46 +0,0 @@ -import { C as noop, s as safe_not_equal } from "./index-31b80213.js"; -const subscriber_queue = []; -function writable(value, start = noop) { - let stop; - const subscribers = /* @__PURE__ */ new Set(); - function set(new_value) { - if (safe_not_equal(value, new_value)) { - value = new_value; - if (stop) { - const run_queue = !subscriber_queue.length; - for (const subscriber of subscribers) { - subscriber[1](); - subscriber_queue.push(subscriber, value); - } - if (run_queue) { - for (let i = 0; i < subscriber_queue.length; i += 2) { - subscriber_queue[i][0](subscriber_queue[i + 1]); - } - subscriber_queue.length = 0; - } - } - } - } - function update(fn) { - set(fn(value)); - } - function subscribe(run, invalidate = noop) { - const subscriber = [run, invalidate]; - subscribers.add(subscriber); - if (subscribers.size === 1) { - stop = start(set) || noop; - } - run(value); - return () => { - subscribers.delete(subscriber); - if (subscribers.size === 0) { - stop(); - stop = null; - } - }; - } - return { set, update, subscribe }; -} -export { - writable as w -}; diff --git a/_app/immutable/chunks/index.18554981.js b/_app/immutable/chunks/index.18554981.js new file mode 100644 index 0000000..a261211 --- /dev/null +++ b/_app/immutable/chunks/index.18554981.js @@ -0,0 +1 @@ +import{H as f,s as l}from"./index.660a2bcd.js";const e=[];function h(n,u=f){let o;const i=new Set;function r(t){if(l(n,t)&&(n=t,o)){const c=!e.length;for(const s of i)s[1](),e.push(s,n);if(c){for(let s=0;s{i.delete(s),i.size===0&&(o(),o=null)}}return{set:r,update:b,subscribe:p}}export{h as w}; diff --git a/_app/immutable/chunks/index.660a2bcd.js b/_app/immutable/chunks/index.660a2bcd.js new file mode 100644 index 0000000..dc21fe1 --- /dev/null +++ b/_app/immutable/chunks/index.660a2bcd.js @@ -0,0 +1 @@ +function y(){}const at=t=>t;function J(t,n){for(const e in n)t[e]=n[e];return t}function L(t){return t()}function M(){return Object.create(null)}function b(t){t.forEach(L)}function T(t){return typeof t=="function"}function ft(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let $;function dt(t,n){return $||($=document.createElement("a")),$.href=n,t===$.href}function K(t){return Object.keys(t).length===0}function Q(t,...n){if(t==null)return y;const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function _t(t,n,e){t.$$.on_destroy.push(Q(n,e))}function ht(t,n,e,i){if(t){const r=z(t,n,e,i);return t[0](r)}}function z(t,n,e,i){return t[1]&&i?J(e.ctx.slice(),t[1](i(n))):e.ctx}function mt(t,n,e,i){if(t[2]&&i){const r=t[2](i(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const s=[],c=Math.max(n.dirty.length,r.length);for(let l=0;l32){const n=[],e=t.ctx.length/32;for(let i=0;iwindow.performance.now():()=>Date.now(),D=B?t=>requestAnimationFrame(t):y;const m=new Set;function O(t){m.forEach(n=>{n.c(t)||(m.delete(n),n.f())}),m.size!==0&&D(O)}function bt(t){let n;return m.size===0&&D(O),{promise:new Promise(e=>{m.add(n={c:t,f:e})}),abort(){m.delete(n)}}}let E=!1;function R(){E=!0}function U(){E=!1}function V(t,n,e,i){for(;t>1);e(r)<=i?t=r+1:n=r}return t}function X(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const o=[];for(let u=0;u0&&n[e[r]].claim_order<=u?r+1:V(1,r,x=>n[e[x]].claim_order,u))-1;i[o]=e[f]+1;const a=f+1;e[a]=o,r=Math.max(a,r)}const s=[],c=[];let l=n.length-1;for(let o=e[r]+1;o!=0;o=i[o-1]){for(s.push(n[o-1]);l>=o;l--)c.push(n[l]);l--}for(;l>=0;l--)c.push(n[l]);s.reverse(),c.sort((o,u)=>o.claim_order-u.claim_order);for(let o=0,u=0;o=s[u].claim_order;)u++;const f=ut.removeEventListener(n,e,i)}function Nt(t){return function(n){return n.preventDefault(),t.call(this,n)}}function St(t){return function(n){return n.stopPropagation(),t.call(this,n)}}function At(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function jt(t){return t===""?null:+t}function nt(t){return Array.from(t.childNodes)}function et(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function F(t,n,e,i,r=!1){et(t);const s=(()=>{for(let c=t.claim_info.last_index;c=0;c--){const l=t[c];if(n(l)){const o=e(l);return o===void 0?t.splice(c,1):t[c]=o,r?o===void 0&&t.claim_info.last_index--:t.claim_info.last_index=c,l}}return i()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function it(t,n,e,i){return F(t,r=>r.nodeName===n,r=>{const s=[];for(let c=0;cr.removeAttribute(c))},()=>i(n))}function kt(t,n,e){return it(t,n,e,tt)}function rt(t,n){return F(t,e=>e.nodeType===3,e=>{const i=""+n;if(e.data.startsWith(i)){if(e.data.length!==i.length)return e.splitText(i.length)}else e.data=i},()=>k(n),!0)}function qt(t){return rt(t," ")}function Ct(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function Mt(t,n){t.value=n??""}function Pt(t,n,e,i){e===null?t.style.removeProperty(n):t.style.setProperty(n,e,i?"important":"")}function Lt(t,n){for(let e=0;ei.call(this,n))}const h=[],P=[],w=[],S=[],H=Promise.resolve();let A=!1;function W(){A||(A=!0,H.then(G))}function It(){return W(),H}function j(t){w.push(t)}function Ht(t){S.push(t)}const N=new Set;let _=0;function G(){if(_!==0)return;const t=g;do{try{for(;_{v.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}else i&&i()}function Kt(t,n,e){const i=t.$$.props[n];i!==void 0&&(t.$$.bound[i]=e,e(t.$$.ctx[i]))}function Qt(t){t&&t.c()}function Rt(t,n){t&&t.l(n)}function ut(t,n,e,i){const{fragment:r,after_update:s}=t.$$;r&&r.m(n,e),i||j(()=>{const c=t.$$.on_mount.map(L).filter(T);t.$$.on_destroy?t.$$.on_destroy.push(...c):b(c),t.$$.on_mount=[]}),s.forEach(j)}function lt(t,n){const e=t.$$;e.fragment!==null&&(b(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function st(t,n){t.$$.dirty[0]===-1&&(h.push(t),W(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const C=q.length?q[0]:x;return u.ctx&&r(u.ctx[a],u.ctx[a]=C)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](C),f&&st(t,a)),x}):[],u.update(),f=!0,b(u.before_update),u.fragment=i?i(u.ctx):!1,n.target){if(n.hydrate){R();const a=nt(n.target);u.fragment&&u.fragment.l(a),a.forEach(Z)}else u.fragment&&u.fragment.c();n.intro&&ot(t.$$.fragment),ut(t,n.target,n.anchor,n.customElement),U(),G()}p(o)}class Vt{$destroy(){lt(this,1),this.$destroy=y}$on(n,e){if(!T(e))return y;const i=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return i.push(e),()=>{const r=i.indexOf(e);r!==-1&&i.splice(r,1)}}$set(n){this.$$set&&!K(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}export{b as $,ut as A,lt as B,ht as C,pt as D,yt as E,mt as F,Y as G,y as H,_t as I,J,gt as K,bt as L,at as M,zt as N,Et as O,Kt as P,Ht as Q,Mt as R,Vt as S,jt as T,j as U,Lt as V,$t as W,Tt as X,dt as Y,St as Z,Nt as _,wt as a,Ft as a0,xt as b,qt as c,Jt as d,vt as e,Gt as f,ot as g,Z as h,Ut as i,Ot as j,tt as k,kt as l,nt as m,At as n,Dt as o,Pt as p,k as q,rt as r,ft as s,It as t,Ct as u,Wt as v,P as w,Bt as x,Qt as y,Rt as z}; diff --git a/_app/immutable/chunks/jszip.min-e4871d4f.js b/_app/immutable/chunks/jszip.min-e4871d4f.js deleted file mode 100644 index 3276cba..0000000 --- a/_app/immutable/chunks/jszip.min-e4871d4f.js +++ /dev/null @@ -1,2683 +0,0 @@ -function _mergeNamespaces(n, m) { - for (var i = 0; i < m.length; i++) { - const e = m[i]; - if (typeof e !== "string" && !Array.isArray(e)) { - for (const k in e) { - if (k !== "default" && !(k in n)) { - const d = Object.getOwnPropertyDescriptor(e, k); - if (d) { - Object.defineProperty(n, k, d.get ? d : { - enumerable: true, - get: () => e[k] - }); - } - } - } - } - } - return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" })); -} -var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; -function commonjsRequire(path) { - throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); -} -var jszip_minExports = {}; -var jszip_min$2 = { - get exports() { - return jszip_minExports; - }, - set exports(v) { - jszip_minExports = v; - } -}; -/*! - -JSZip v3.10.1 - A JavaScript class for generating and reading zip files - - -(c) 2009-2016 Stuart Knightley -Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. - -JSZip uses the library pako released under the MIT license : -https://github.com/nodeca/pako/blob/main/LICENSE -*/ -(function(module, exports) { - !function(e) { - module.exports = e(); - }(function() { - return function s(a, o, h) { - function u(r, e2) { - if (!o[r]) { - if (!a[r]) { - var t = "function" == typeof commonjsRequire && commonjsRequire; - if (!e2 && t) - return t(r, true); - if (l) - return l(r, true); - var n = new Error("Cannot find module '" + r + "'"); - throw n.code = "MODULE_NOT_FOUND", n; - } - var i = o[r] = { exports: {} }; - a[r][0].call(i.exports, function(e3) { - var t2 = a[r][1][e3]; - return u(t2 || e3); - }, i, i.exports, s, a, o, h); - } - return o[r].exports; - } - for (var l = "function" == typeof commonjsRequire && commonjsRequire, e = 0; e < h.length; e++) - u(h[e]); - return u; - }({ 1: [function(e, t, r) { - var d = e("./utils"), c = e("./support"), p = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; - r.encode = function(e2) { - for (var t2, r2, n, i, s, a, o, h = [], u = 0, l = e2.length, f = l, c2 = "string" !== d.getTypeOf(e2); u < e2.length; ) - f = l - u, n = c2 ? (t2 = e2[u++], r2 = u < l ? e2[u++] : 0, u < l ? e2[u++] : 0) : (t2 = e2.charCodeAt(u++), r2 = u < l ? e2.charCodeAt(u++) : 0, u < l ? e2.charCodeAt(u++) : 0), i = t2 >> 2, s = (3 & t2) << 4 | r2 >> 4, a = 1 < f ? (15 & r2) << 2 | n >> 6 : 64, o = 2 < f ? 63 & n : 64, h.push(p.charAt(i) + p.charAt(s) + p.charAt(a) + p.charAt(o)); - return h.join(""); - }, r.decode = function(e2) { - var t2, r2, n, i, s, a, o = 0, h = 0, u = "data:"; - if (e2.substr(0, u.length) === u) - throw new Error("Invalid base64 input, it looks like a data url."); - var l, f = 3 * (e2 = e2.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4; - if (e2.charAt(e2.length - 1) === p.charAt(64) && f--, e2.charAt(e2.length - 2) === p.charAt(64) && f--, f % 1 != 0) - throw new Error("Invalid base64 input, bad content length."); - for (l = c.uint8array ? new Uint8Array(0 | f) : new Array(0 | f); o < e2.length; ) - t2 = p.indexOf(e2.charAt(o++)) << 2 | (i = p.indexOf(e2.charAt(o++))) >> 4, r2 = (15 & i) << 4 | (s = p.indexOf(e2.charAt(o++))) >> 2, n = (3 & s) << 6 | (a = p.indexOf(e2.charAt(o++))), l[h++] = t2, 64 !== s && (l[h++] = r2), 64 !== a && (l[h++] = n); - return l; - }; - }, { "./support": 30, "./utils": 32 }], 2: [function(e, t, r) { - var n = e("./external"), i = e("./stream/DataWorker"), s = e("./stream/Crc32Probe"), a = e("./stream/DataLengthProbe"); - function o(e2, t2, r2, n2, i2) { - this.compressedSize = e2, this.uncompressedSize = t2, this.crc32 = r2, this.compression = n2, this.compressedContent = i2; - } - o.prototype = { getContentWorker: function() { - var e2 = new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")), t2 = this; - return e2.on("end", function() { - if (this.streamInfo.data_length !== t2.uncompressedSize) - throw new Error("Bug : uncompressed data size mismatch"); - }), e2; - }, getCompressedWorker: function() { - return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression); - } }, o.createWorkerFrom = function(e2, t2, r2) { - return e2.pipe(new s()).pipe(new a("uncompressedSize")).pipe(t2.compressWorker(r2)).pipe(new a("compressedSize")).withStreamInfo("compression", t2); - }, t.exports = o; - }, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(e, t, r) { - var n = e("./stream/GenericWorker"); - r.STORE = { magic: "\0\0", compressWorker: function() { - return new n("STORE compression"); - }, uncompressWorker: function() { - return new n("STORE decompression"); - } }, r.DEFLATE = e("./flate"); - }, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(e, t, r) { - var n = e("./utils"); - var o = function() { - for (var e2, t2 = [], r2 = 0; r2 < 256; r2++) { - e2 = r2; - for (var n2 = 0; n2 < 8; n2++) - e2 = 1 & e2 ? 3988292384 ^ e2 >>> 1 : e2 >>> 1; - t2[r2] = e2; - } - return t2; - }(); - t.exports = function(e2, t2) { - return void 0 !== e2 && e2.length ? "string" !== n.getTypeOf(e2) ? function(e3, t3, r2, n2) { - var i = o, s = n2 + r2; - e3 ^= -1; - for (var a = n2; a < s; a++) - e3 = e3 >>> 8 ^ i[255 & (e3 ^ t3[a])]; - return -1 ^ e3; - }(0 | t2, e2, e2.length, 0) : function(e3, t3, r2, n2) { - var i = o, s = n2 + r2; - e3 ^= -1; - for (var a = n2; a < s; a++) - e3 = e3 >>> 8 ^ i[255 & (e3 ^ t3.charCodeAt(a))]; - return -1 ^ e3; - }(0 | t2, e2, e2.length, 0) : 0; - }; - }, { "./utils": 32 }], 5: [function(e, t, r) { - r.base64 = false, r.binary = false, r.dir = false, r.createFolders = true, r.date = null, r.compression = null, r.compressionOptions = null, r.comment = null, r.unixPermissions = null, r.dosPermissions = null; - }, {}], 6: [function(e, t, r) { - var n = null; - n = "undefined" != typeof Promise ? Promise : e("lie"), t.exports = { Promise: n }; - }, { lie: 37 }], 7: [function(e, t, r) { - var n = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Uint32Array, i = e("pako"), s = e("./utils"), a = e("./stream/GenericWorker"), o = n ? "uint8array" : "array"; - function h(e2, t2) { - a.call(this, "FlateWorker/" + e2), this._pako = null, this._pakoAction = e2, this._pakoOptions = t2, this.meta = {}; - } - r.magic = "\b\0", s.inherits(h, a), h.prototype.processChunk = function(e2) { - this.meta = e2.meta, null === this._pako && this._createPako(), this._pako.push(s.transformTo(o, e2.data), false); - }, h.prototype.flush = function() { - a.prototype.flush.call(this), null === this._pako && this._createPako(), this._pako.push([], true); - }, h.prototype.cleanUp = function() { - a.prototype.cleanUp.call(this), this._pako = null; - }, h.prototype._createPako = function() { - this._pako = new i[this._pakoAction]({ raw: true, level: this._pakoOptions.level || -1 }); - var t2 = this; - this._pako.onData = function(e2) { - t2.push({ data: e2, meta: t2.meta }); - }; - }, r.compressWorker = function(e2) { - return new h("Deflate", e2); - }, r.uncompressWorker = function() { - return new h("Inflate", {}); - }; - }, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(e, t, r) { - function A(e2, t2) { - var r2, n2 = ""; - for (r2 = 0; r2 < t2; r2++) - n2 += String.fromCharCode(255 & e2), e2 >>>= 8; - return n2; - } - function n(e2, t2, r2, n2, i2, s2) { - var a, o, h = e2.file, u = e2.compression, l = s2 !== O.utf8encode, f = I.transformTo("string", s2(h.name)), c = I.transformTo("string", O.utf8encode(h.name)), d = h.comment, p = I.transformTo("string", s2(d)), m = I.transformTo("string", O.utf8encode(d)), _ = c.length !== h.name.length, g = m.length !== d.length, b = "", v = "", y = "", w = h.dir, k = h.date, x = { crc32: 0, compressedSize: 0, uncompressedSize: 0 }; - t2 && !r2 || (x.crc32 = e2.crc32, x.compressedSize = e2.compressedSize, x.uncompressedSize = e2.uncompressedSize); - var S = 0; - t2 && (S |= 8), l || !_ && !g || (S |= 2048); - var z = 0, C = 0; - w && (z |= 16), "UNIX" === i2 ? (C = 798, z |= function(e3, t3) { - var r3 = e3; - return e3 || (r3 = t3 ? 16893 : 33204), (65535 & r3) << 16; - }(h.unixPermissions, w)) : (C = 20, z |= function(e3) { - return 63 & (e3 || 0); - }(h.dosPermissions)), a = k.getUTCHours(), a <<= 6, a |= k.getUTCMinutes(), a <<= 5, a |= k.getUTCSeconds() / 2, o = k.getUTCFullYear() - 1980, o <<= 4, o |= k.getUTCMonth() + 1, o <<= 5, o |= k.getUTCDate(), _ && (v = A(1, 1) + A(B(f), 4) + c, b += "up" + A(v.length, 2) + v), g && (y = A(1, 1) + A(B(p), 4) + m, b += "uc" + A(y.length, 2) + y); - var E = ""; - return E += "\n\0", E += A(S, 2), E += u.magic, E += A(a, 2), E += A(o, 2), E += A(x.crc32, 4), E += A(x.compressedSize, 4), E += A(x.uncompressedSize, 4), E += A(f.length, 2), E += A(b.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E + f + b, dirRecord: R.CENTRAL_FILE_HEADER + A(C, 2) + E + A(p.length, 2) + "\0\0\0\0" + A(z, 4) + A(n2, 4) + f + b + p }; - } - var I = e("../utils"), i = e("../stream/GenericWorker"), O = e("../utf8"), B = e("../crc32"), R = e("../signature"); - function s(e2, t2, r2, n2) { - i.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t2, this.zipPlatform = r2, this.encodeFileName = n2, this.streamFiles = e2, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = []; - } - I.inherits(s, i), s.prototype.push = function(e2) { - var t2 = e2.meta.percent || 0, r2 = this.entriesCount, n2 = this._sources.length; - this.accumulate ? this.contentBuffer.push(e2) : (this.bytesWritten += e2.data.length, i.prototype.push.call(this, { data: e2.data, meta: { currentFile: this.currentFile, percent: r2 ? (t2 + 100 * (r2 - n2 - 1)) / r2 : 100 } })); - }, s.prototype.openedSource = function(e2) { - this.currentSourceOffset = this.bytesWritten, this.currentFile = e2.file.name; - var t2 = this.streamFiles && !e2.file.dir; - if (t2) { - var r2 = n(e2, t2, false, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); - this.push({ data: r2.fileRecord, meta: { percent: 0 } }); - } else - this.accumulate = true; - }, s.prototype.closedSource = function(e2) { - this.accumulate = false; - var t2 = this.streamFiles && !e2.file.dir, r2 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); - if (this.dirRecords.push(r2.dirRecord), t2) - this.push({ data: function(e3) { - return R.DATA_DESCRIPTOR + A(e3.crc32, 4) + A(e3.compressedSize, 4) + A(e3.uncompressedSize, 4); - }(e2), meta: { percent: 100 } }); - else - for (this.push({ data: r2.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) - this.push(this.contentBuffer.shift()); - this.currentFile = null; - }, s.prototype.flush = function() { - for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) - this.push({ data: this.dirRecords[t2], meta: { percent: 100 } }); - var r2 = this.bytesWritten - e2, n2 = function(e3, t3, r3, n3, i2) { - var s2 = I.transformTo("string", i2(n3)); - return R.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A(e3, 2) + A(e3, 2) + A(t3, 4) + A(r3, 4) + A(s2.length, 2) + s2; - }(this.dirRecords.length, r2, e2, this.zipComment, this.encodeFileName); - this.push({ data: n2, meta: { percent: 100 } }); - }, s.prototype.prepareNextSource = function() { - this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume(); - }, s.prototype.registerPrevious = function(e2) { - this._sources.push(e2); - var t2 = this; - return e2.on("data", function(e3) { - t2.processChunk(e3); - }), e2.on("end", function() { - t2.closedSource(t2.previous.streamInfo), t2._sources.length ? t2.prepareNextSource() : t2.end(); - }), e2.on("error", function(e3) { - t2.error(e3); - }), this; - }, s.prototype.resume = function() { - return !!i.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), true) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), true)); - }, s.prototype.error = function(e2) { - var t2 = this._sources; - if (!i.prototype.error.call(this, e2)) - return false; - for (var r2 = 0; r2 < t2.length; r2++) - try { - t2[r2].error(e2); - } catch (e3) { - } - return true; - }, s.prototype.lock = function() { - i.prototype.lock.call(this); - for (var e2 = this._sources, t2 = 0; t2 < e2.length; t2++) - e2[t2].lock(); - }, t.exports = s; - }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, t, r) { - var u = e("../compressions"), n = e("./ZipFileWorker"); - r.generateWorker = function(e2, a, t2) { - var o = new n(a.streamFiles, t2, a.platform, a.encodeFileName), h = 0; - try { - e2.forEach(function(e3, t3) { - h++; - var r2 = function(e4, t4) { - var r3 = e4 || t4, n3 = u[r3]; - if (!n3) - throw new Error(r3 + " is not a valid compression method !"); - return n3; - }(t3.options.compression, a.compression), n2 = t3.options.compressionOptions || a.compressionOptions || {}, i = t3.dir, s = t3.date; - t3._compressWorker(r2, n2).withStreamInfo("file", { name: e3, dir: i, date: s, comment: t3.comment || "", unixPermissions: t3.unixPermissions, dosPermissions: t3.dosPermissions }).pipe(o); - }), o.entriesCount = h; - } catch (e3) { - o.error(e3); - } - return o; - }; - }, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(e, t, r) { - function n() { - if (!(this instanceof n)) - return new n(); - if (arguments.length) - throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide."); - this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() { - var e2 = new n(); - for (var t2 in this) - "function" != typeof this[t2] && (e2[t2] = this[t2]); - return e2; - }; - } - (n.prototype = e("./object")).loadAsync = e("./load"), n.support = e("./support"), n.defaults = e("./defaults"), n.version = "3.10.1", n.loadAsync = function(e2, t2) { - return new n().loadAsync(e2, t2); - }, n.external = e("./external"), t.exports = n; - }, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, t, r) { - var u = e("./utils"), i = e("./external"), n = e("./utf8"), s = e("./zipEntries"), a = e("./stream/Crc32Probe"), l = e("./nodejsUtils"); - function f(n2) { - return new i.Promise(function(e2, t2) { - var r2 = n2.decompressed.getContentWorker().pipe(new a()); - r2.on("error", function(e3) { - t2(e3); - }).on("end", function() { - r2.streamInfo.crc32 !== n2.decompressed.crc32 ? t2(new Error("Corrupted zip : CRC32 mismatch")) : e2(); - }).resume(); - }); - } - t.exports = function(e2, o) { - var h = this; - return o = u.extend(o || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: n.utf8decode }), l.isNode && l.isStream(e2) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u.prepareContent("the loaded zip file", e2, true, o.optimizedBinaryString, o.base64).then(function(e3) { - var t2 = new s(o); - return t2.load(e3), t2; - }).then(function(e3) { - var t2 = [i.Promise.resolve(e3)], r2 = e3.files; - if (o.checkCRC32) - for (var n2 = 0; n2 < r2.length; n2++) - t2.push(f(r2[n2])); - return i.Promise.all(t2); - }).then(function(e3) { - for (var t2 = e3.shift(), r2 = t2.files, n2 = 0; n2 < r2.length; n2++) { - var i2 = r2[n2], s2 = i2.fileNameStr, a2 = u.resolve(i2.fileNameStr); - h.file(a2, i2.decompressed, { binary: true, optimizedBinaryString: true, date: i2.date, dir: i2.dir, comment: i2.fileCommentStr.length ? i2.fileCommentStr : null, unixPermissions: i2.unixPermissions, dosPermissions: i2.dosPermissions, createFolders: o.createFolders }), i2.dir || (h.file(a2).unsafeOriginalName = s2); - } - return t2.zipComment.length && (h.comment = t2.zipComment), h; - }); - }; - }, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(e, t, r) { - var n = e("../utils"), i = e("../stream/GenericWorker"); - function s(e2, t2) { - i.call(this, "Nodejs stream input adapter for " + e2), this._upstreamEnded = false, this._bindStream(t2); - } - n.inherits(s, i), s.prototype._bindStream = function(e2) { - var t2 = this; - (this._stream = e2).pause(), e2.on("data", function(e3) { - t2.push({ data: e3, meta: { percent: 0 } }); - }).on("error", function(e3) { - t2.isPaused ? this.generatedError = e3 : t2.error(e3); - }).on("end", function() { - t2.isPaused ? t2._upstreamEnded = true : t2.end(); - }); - }, s.prototype.pause = function() { - return !!i.prototype.pause.call(this) && (this._stream.pause(), true); - }, s.prototype.resume = function() { - return !!i.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), true); - }, t.exports = s; - }, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(e, t, r) { - var i = e("readable-stream").Readable; - function n(e2, t2, r2) { - i.call(this, t2), this._helper = e2; - var n2 = this; - e2.on("data", function(e3, t3) { - n2.push(e3) || n2._helper.pause(), r2 && r2(t3); - }).on("error", function(e3) { - n2.emit("error", e3); - }).on("end", function() { - n2.push(null); - }); - } - e("../utils").inherits(n, i), n.prototype._read = function() { - this._helper.resume(); - }, t.exports = n; - }, { "../utils": 32, "readable-stream": 16 }], 14: [function(e, t, r) { - t.exports = { isNode: "undefined" != typeof Buffer, newBufferFrom: function(e2, t2) { - if (Buffer.from && Buffer.from !== Uint8Array.from) - return Buffer.from(e2, t2); - if ("number" == typeof e2) - throw new Error('The "data" argument must not be a number'); - return new Buffer(e2, t2); - }, allocBuffer: function(e2) { - if (Buffer.alloc) - return Buffer.alloc(e2); - var t2 = new Buffer(e2); - return t2.fill(0), t2; - }, isBuffer: function(e2) { - return Buffer.isBuffer(e2); - }, isStream: function(e2) { - return e2 && "function" == typeof e2.on && "function" == typeof e2.pause && "function" == typeof e2.resume; - } }; - }, {}], 15: [function(e, t, r) { - function s(e2, t2, r2) { - var n2, i2 = u.getTypeOf(t2), s2 = u.extend(r2 || {}, f); - s2.date = s2.date || new Date(), null !== s2.compression && (s2.compression = s2.compression.toUpperCase()), "string" == typeof s2.unixPermissions && (s2.unixPermissions = parseInt(s2.unixPermissions, 8)), s2.unixPermissions && 16384 & s2.unixPermissions && (s2.dir = true), s2.dosPermissions && 16 & s2.dosPermissions && (s2.dir = true), s2.dir && (e2 = g(e2)), s2.createFolders && (n2 = _(e2)) && b.call(this, n2, true); - var a2 = "string" === i2 && false === s2.binary && false === s2.base64; - r2 && void 0 !== r2.binary || (s2.binary = !a2), (t2 instanceof c && 0 === t2.uncompressedSize || s2.dir || !t2 || 0 === t2.length) && (s2.base64 = false, s2.binary = true, t2 = "", s2.compression = "STORE", i2 = "string"); - var o2 = null; - o2 = t2 instanceof c || t2 instanceof l ? t2 : p.isNode && p.isStream(t2) ? new m(e2, t2) : u.prepareContent(e2, t2, s2.binary, s2.optimizedBinaryString, s2.base64); - var h2 = new d(e2, o2, s2); - this.files[e2] = h2; - } - var i = e("./utf8"), u = e("./utils"), l = e("./stream/GenericWorker"), a = e("./stream/StreamHelper"), f = e("./defaults"), c = e("./compressedObject"), d = e("./zipObject"), o = e("./generate"), p = e("./nodejsUtils"), m = e("./nodejs/NodejsStreamInputAdapter"), _ = function(e2) { - "/" === e2.slice(-1) && (e2 = e2.substring(0, e2.length - 1)); - var t2 = e2.lastIndexOf("/"); - return 0 < t2 ? e2.substring(0, t2) : ""; - }, g = function(e2) { - return "/" !== e2.slice(-1) && (e2 += "/"), e2; - }, b = function(e2, t2) { - return t2 = void 0 !== t2 ? t2 : f.createFolders, e2 = g(e2), this.files[e2] || s.call(this, e2, null, { dir: true, createFolders: t2 }), this.files[e2]; - }; - function h(e2) { - return "[object RegExp]" === Object.prototype.toString.call(e2); - } - var n = { load: function() { - throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); - }, forEach: function(e2) { - var t2, r2, n2; - for (t2 in this.files) - n2 = this.files[t2], (r2 = t2.slice(this.root.length, t2.length)) && t2.slice(0, this.root.length) === this.root && e2(r2, n2); - }, filter: function(r2) { - var n2 = []; - return this.forEach(function(e2, t2) { - r2(e2, t2) && n2.push(t2); - }), n2; - }, file: function(e2, t2, r2) { - if (1 !== arguments.length) - return e2 = this.root + e2, s.call(this, e2, t2, r2), this; - if (h(e2)) { - var n2 = e2; - return this.filter(function(e3, t3) { - return !t3.dir && n2.test(e3); - }); - } - var i2 = this.files[this.root + e2]; - return i2 && !i2.dir ? i2 : null; - }, folder: function(r2) { - if (!r2) - return this; - if (h(r2)) - return this.filter(function(e3, t3) { - return t3.dir && r2.test(e3); - }); - var e2 = this.root + r2, t2 = b.call(this, e2), n2 = this.clone(); - return n2.root = t2.name, n2; - }, remove: function(r2) { - r2 = this.root + r2; - var e2 = this.files[r2]; - if (e2 || ("/" !== r2.slice(-1) && (r2 += "/"), e2 = this.files[r2]), e2 && !e2.dir) - delete this.files[r2]; - else - for (var t2 = this.filter(function(e3, t3) { - return t3.name.slice(0, r2.length) === r2; - }), n2 = 0; n2 < t2.length; n2++) - delete this.files[t2[n2].name]; - return this; - }, generate: function() { - throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); - }, generateInternalStream: function(e2) { - var t2, r2 = {}; - try { - if ((r2 = u.extend(e2 || {}, { streamFiles: false, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: i.utf8encode })).type = r2.type.toLowerCase(), r2.compression = r2.compression.toUpperCase(), "binarystring" === r2.type && (r2.type = "string"), !r2.type) - throw new Error("No output type specified."); - u.checkSupport(r2.type), "darwin" !== r2.platform && "freebsd" !== r2.platform && "linux" !== r2.platform && "sunos" !== r2.platform || (r2.platform = "UNIX"), "win32" === r2.platform && (r2.platform = "DOS"); - var n2 = r2.comment || this.comment || ""; - t2 = o.generateWorker(this, r2, n2); - } catch (e3) { - (t2 = new l("error")).error(e3); - } - return new a(t2, r2.type || "string", r2.mimeType); - }, generateAsync: function(e2, t2) { - return this.generateInternalStream(e2).accumulate(t2); - }, generateNodeStream: function(e2, t2) { - return (e2 = e2 || {}).type || (e2.type = "nodebuffer"), this.generateInternalStream(e2).toNodejsStream(t2); - } }; - t.exports = n; - }, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(e, t, r) { - t.exports = e("stream"); - }, { stream: void 0 }], 17: [function(e, t, r) { - var n = e("./DataReader"); - function i(e2) { - n.call(this, e2); - for (var t2 = 0; t2 < this.data.length; t2++) - e2[t2] = 255 & e2[t2]; - } - e("../utils").inherits(i, n), i.prototype.byteAt = function(e2) { - return this.data[this.zero + e2]; - }, i.prototype.lastIndexOfSignature = function(e2) { - for (var t2 = e2.charCodeAt(0), r2 = e2.charCodeAt(1), n2 = e2.charCodeAt(2), i2 = e2.charCodeAt(3), s = this.length - 4; 0 <= s; --s) - if (this.data[s] === t2 && this.data[s + 1] === r2 && this.data[s + 2] === n2 && this.data[s + 3] === i2) - return s - this.zero; - return -1; - }, i.prototype.readAndCheckSignature = function(e2) { - var t2 = e2.charCodeAt(0), r2 = e2.charCodeAt(1), n2 = e2.charCodeAt(2), i2 = e2.charCodeAt(3), s = this.readData(4); - return t2 === s[0] && r2 === s[1] && n2 === s[2] && i2 === s[3]; - }, i.prototype.readData = function(e2) { - if (this.checkOffset(e2), 0 === e2) - return []; - var t2 = this.data.slice(this.zero + this.index, this.zero + this.index + e2); - return this.index += e2, t2; - }, t.exports = i; - }, { "../utils": 32, "./DataReader": 18 }], 18: [function(e, t, r) { - var n = e("../utils"); - function i(e2) { - this.data = e2, this.length = e2.length, this.index = 0, this.zero = 0; - } - i.prototype = { checkOffset: function(e2) { - this.checkIndex(this.index + e2); - }, checkIndex: function(e2) { - if (this.length < this.zero + e2 || e2 < 0) - throw new Error("End of data reached (data length = " + this.length + ", asked index = " + e2 + "). Corrupted zip ?"); - }, setIndex: function(e2) { - this.checkIndex(e2), this.index = e2; - }, skip: function(e2) { - this.setIndex(this.index + e2); - }, byteAt: function() { - }, readInt: function(e2) { - var t2, r2 = 0; - for (this.checkOffset(e2), t2 = this.index + e2 - 1; t2 >= this.index; t2--) - r2 = (r2 << 8) + this.byteAt(t2); - return this.index += e2, r2; - }, readString: function(e2) { - return n.transformTo("string", this.readData(e2)); - }, readData: function() { - }, lastIndexOfSignature: function() { - }, readAndCheckSignature: function() { - }, readDate: function() { - var e2 = this.readInt(4); - return new Date(Date.UTC(1980 + (e2 >> 25 & 127), (e2 >> 21 & 15) - 1, e2 >> 16 & 31, e2 >> 11 & 31, e2 >> 5 & 63, (31 & e2) << 1)); - } }, t.exports = i; - }, { "../utils": 32 }], 19: [function(e, t, r) { - var n = e("./Uint8ArrayReader"); - function i(e2) { - n.call(this, e2); - } - e("../utils").inherits(i, n), i.prototype.readData = function(e2) { - this.checkOffset(e2); - var t2 = this.data.slice(this.zero + this.index, this.zero + this.index + e2); - return this.index += e2, t2; - }, t.exports = i; - }, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(e, t, r) { - var n = e("./DataReader"); - function i(e2) { - n.call(this, e2); - } - e("../utils").inherits(i, n), i.prototype.byteAt = function(e2) { - return this.data.charCodeAt(this.zero + e2); - }, i.prototype.lastIndexOfSignature = function(e2) { - return this.data.lastIndexOf(e2) - this.zero; - }, i.prototype.readAndCheckSignature = function(e2) { - return e2 === this.readData(4); - }, i.prototype.readData = function(e2) { - this.checkOffset(e2); - var t2 = this.data.slice(this.zero + this.index, this.zero + this.index + e2); - return this.index += e2, t2; - }, t.exports = i; - }, { "../utils": 32, "./DataReader": 18 }], 21: [function(e, t, r) { - var n = e("./ArrayReader"); - function i(e2) { - n.call(this, e2); - } - e("../utils").inherits(i, n), i.prototype.readData = function(e2) { - if (this.checkOffset(e2), 0 === e2) - return new Uint8Array(0); - var t2 = this.data.subarray(this.zero + this.index, this.zero + this.index + e2); - return this.index += e2, t2; - }, t.exports = i; - }, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(e, t, r) { - var n = e("../utils"), i = e("../support"), s = e("./ArrayReader"), a = e("./StringReader"), o = e("./NodeBufferReader"), h = e("./Uint8ArrayReader"); - t.exports = function(e2) { - var t2 = n.getTypeOf(e2); - return n.checkSupport(t2), "string" !== t2 || i.uint8array ? "nodebuffer" === t2 ? new o(e2) : i.uint8array ? new h(n.transformTo("uint8array", e2)) : new s(n.transformTo("array", e2)) : new a(e2); - }; - }, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(e, t, r) { - r.LOCAL_FILE_HEADER = "PK", r.CENTRAL_FILE_HEADER = "PK", r.CENTRAL_DIRECTORY_END = "PK", r.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", r.ZIP64_CENTRAL_DIRECTORY_END = "PK", r.DATA_DESCRIPTOR = "PK\x07\b"; - }, {}], 24: [function(e, t, r) { - var n = e("./GenericWorker"), i = e("../utils"); - function s(e2) { - n.call(this, "ConvertWorker to " + e2), this.destType = e2; - } - i.inherits(s, n), s.prototype.processChunk = function(e2) { - this.push({ data: i.transformTo(this.destType, e2.data), meta: e2.meta }); - }, t.exports = s; - }, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(e, t, r) { - var n = e("./GenericWorker"), i = e("../crc32"); - function s() { - n.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0); - } - e("../utils").inherits(s, n), s.prototype.processChunk = function(e2) { - this.streamInfo.crc32 = i(e2.data, this.streamInfo.crc32 || 0), this.push(e2); - }, t.exports = s; - }, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(e, t, r) { - var n = e("../utils"), i = e("./GenericWorker"); - function s(e2) { - i.call(this, "DataLengthProbe for " + e2), this.propName = e2, this.withStreamInfo(e2, 0); - } - n.inherits(s, i), s.prototype.processChunk = function(e2) { - if (e2) { - var t2 = this.streamInfo[this.propName] || 0; - this.streamInfo[this.propName] = t2 + e2.data.length; - } - i.prototype.processChunk.call(this, e2); - }, t.exports = s; - }, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(e, t, r) { - var n = e("../utils"), i = e("./GenericWorker"); - function s(e2) { - i.call(this, "DataWorker"); - var t2 = this; - this.dataIsReady = false, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = false, e2.then(function(e3) { - t2.dataIsReady = true, t2.data = e3, t2.max = e3 && e3.length || 0, t2.type = n.getTypeOf(e3), t2.isPaused || t2._tickAndRepeat(); - }, function(e3) { - t2.error(e3); - }); - } - n.inherits(s, i), s.prototype.cleanUp = function() { - i.prototype.cleanUp.call(this), this.data = null; - }, s.prototype.resume = function() { - return !!i.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = true, n.delay(this._tickAndRepeat, [], this)), true); - }, s.prototype._tickAndRepeat = function() { - this._tickScheduled = false, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (n.delay(this._tickAndRepeat, [], this), this._tickScheduled = true)); - }, s.prototype._tick = function() { - if (this.isPaused || this.isFinished) - return false; - var e2 = null, t2 = Math.min(this.max, this.index + 16384); - if (this.index >= this.max) - return this.end(); - switch (this.type) { - case "string": - e2 = this.data.substring(this.index, t2); - break; - case "uint8array": - e2 = this.data.subarray(this.index, t2); - break; - case "array": - case "nodebuffer": - e2 = this.data.slice(this.index, t2); - } - return this.index = t2, this.push({ data: e2, meta: { percent: this.max ? this.index / this.max * 100 : 0 } }); - }, t.exports = s; - }, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(e, t, r) { - function n(e2) { - this.name = e2 || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = true, this.isFinished = false, this.isLocked = false, this._listeners = { data: [], end: [], error: [] }, this.previous = null; - } - n.prototype = { push: function(e2) { - this.emit("data", e2); - }, end: function() { - if (this.isFinished) - return false; - this.flush(); - try { - this.emit("end"), this.cleanUp(), this.isFinished = true; - } catch (e2) { - this.emit("error", e2); - } - return true; - }, error: function(e2) { - return !this.isFinished && (this.isPaused ? this.generatedError = e2 : (this.isFinished = true, this.emit("error", e2), this.previous && this.previous.error(e2), this.cleanUp()), true); - }, on: function(e2, t2) { - return this._listeners[e2].push(t2), this; - }, cleanUp: function() { - this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = []; - }, emit: function(e2, t2) { - if (this._listeners[e2]) - for (var r2 = 0; r2 < this._listeners[e2].length; r2++) - this._listeners[e2][r2].call(this, t2); - }, pipe: function(e2) { - return e2.registerPrevious(this); - }, registerPrevious: function(e2) { - if (this.isLocked) - throw new Error("The stream '" + this + "' has already been used."); - this.streamInfo = e2.streamInfo, this.mergeStreamInfo(), this.previous = e2; - var t2 = this; - return e2.on("data", function(e3) { - t2.processChunk(e3); - }), e2.on("end", function() { - t2.end(); - }), e2.on("error", function(e3) { - t2.error(e3); - }), this; - }, pause: function() { - return !this.isPaused && !this.isFinished && (this.isPaused = true, this.previous && this.previous.pause(), true); - }, resume: function() { - if (!this.isPaused || this.isFinished) - return false; - var e2 = this.isPaused = false; - return this.generatedError && (this.error(this.generatedError), e2 = true), this.previous && this.previous.resume(), !e2; - }, flush: function() { - }, processChunk: function(e2) { - this.push(e2); - }, withStreamInfo: function(e2, t2) { - return this.extraStreamInfo[e2] = t2, this.mergeStreamInfo(), this; - }, mergeStreamInfo: function() { - for (var e2 in this.extraStreamInfo) - Object.prototype.hasOwnProperty.call(this.extraStreamInfo, e2) && (this.streamInfo[e2] = this.extraStreamInfo[e2]); - }, lock: function() { - if (this.isLocked) - throw new Error("The stream '" + this + "' has already been used."); - this.isLocked = true, this.previous && this.previous.lock(); - }, toString: function() { - var e2 = "Worker " + this.name; - return this.previous ? this.previous + " -> " + e2 : e2; - } }, t.exports = n; - }, {}], 29: [function(e, t, r) { - var h = e("../utils"), i = e("./ConvertWorker"), s = e("./GenericWorker"), u = e("../base64"), n = e("../support"), a = e("../external"), o = null; - if (n.nodestream) - try { - o = e("../nodejs/NodejsStreamOutputAdapter"); - } catch (e2) { - } - function l(e2, o2) { - return new a.Promise(function(t2, r2) { - var n2 = [], i2 = e2._internalType, s2 = e2._outputType, a2 = e2._mimeType; - e2.on("data", function(e3, t3) { - n2.push(e3), o2 && o2(t3); - }).on("error", function(e3) { - n2 = [], r2(e3); - }).on("end", function() { - try { - var e3 = function(e4, t3, r3) { - switch (e4) { - case "blob": - return h.newBlob(h.transformTo("arraybuffer", t3), r3); - case "base64": - return u.encode(t3); - default: - return h.transformTo(e4, t3); - } - }(s2, function(e4, t3) { - var r3, n3 = 0, i3 = null, s3 = 0; - for (r3 = 0; r3 < t3.length; r3++) - s3 += t3[r3].length; - switch (e4) { - case "string": - return t3.join(""); - case "array": - return Array.prototype.concat.apply([], t3); - case "uint8array": - for (i3 = new Uint8Array(s3), r3 = 0; r3 < t3.length; r3++) - i3.set(t3[r3], n3), n3 += t3[r3].length; - return i3; - case "nodebuffer": - return Buffer.concat(t3); - default: - throw new Error("concat : unsupported type '" + e4 + "'"); - } - }(i2, n2), a2); - t2(e3); - } catch (e4) { - r2(e4); - } - n2 = []; - }).resume(); - }); - } - function f(e2, t2, r2) { - var n2 = t2; - switch (t2) { - case "blob": - case "arraybuffer": - n2 = "uint8array"; - break; - case "base64": - n2 = "string"; - } - try { - this._internalType = n2, this._outputType = t2, this._mimeType = r2, h.checkSupport(n2), this._worker = e2.pipe(new i(n2)), e2.lock(); - } catch (e3) { - this._worker = new s("error"), this._worker.error(e3); - } - } - f.prototype = { accumulate: function(e2) { - return l(this, e2); - }, on: function(e2, t2) { - var r2 = this; - return "data" === e2 ? this._worker.on(e2, function(e3) { - t2.call(r2, e3.data, e3.meta); - }) : this._worker.on(e2, function() { - h.delay(t2, arguments, r2); - }), this; - }, resume: function() { - return h.delay(this._worker.resume, [], this._worker), this; - }, pause: function() { - return this._worker.pause(), this; - }, toNodejsStream: function(e2) { - if (h.checkSupport("nodestream"), "nodebuffer" !== this._outputType) - throw new Error(this._outputType + " is not supported by this method"); - return new o(this, { objectMode: "nodebuffer" !== this._outputType }, e2); - } }, t.exports = f; - }, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(e, t, r) { - if (r.base64 = true, r.array = true, r.string = true, r.arraybuffer = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array, r.nodebuffer = "undefined" != typeof Buffer, r.uint8array = "undefined" != typeof Uint8Array, "undefined" == typeof ArrayBuffer) - r.blob = false; - else { - var n = new ArrayBuffer(0); - try { - r.blob = 0 === new Blob([n], { type: "application/zip" }).size; - } catch (e2) { - try { - var i = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)(); - i.append(n), r.blob = 0 === i.getBlob("application/zip").size; - } catch (e3) { - r.blob = false; - } - } - } - try { - r.nodestream = !!e("readable-stream").Readable; - } catch (e2) { - r.nodestream = false; - } - }, { "readable-stream": 16 }], 31: [function(e, t, s) { - for (var o = e("./utils"), h = e("./support"), r = e("./nodejsUtils"), n = e("./stream/GenericWorker"), u = new Array(256), i = 0; i < 256; i++) - u[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1; - u[254] = u[254] = 1; - function a() { - n.call(this, "utf-8 decode"), this.leftOver = null; - } - function l() { - n.call(this, "utf-8 encode"); - } - s.utf8encode = function(e2) { - return h.nodebuffer ? r.newBufferFrom(e2, "utf-8") : function(e3) { - var t2, r2, n2, i2, s2, a2 = e3.length, o2 = 0; - for (i2 = 0; i2 < a2; i2++) - 55296 == (64512 & (r2 = e3.charCodeAt(i2))) && i2 + 1 < a2 && 56320 == (64512 & (n2 = e3.charCodeAt(i2 + 1))) && (r2 = 65536 + (r2 - 55296 << 10) + (n2 - 56320), i2++), o2 += r2 < 128 ? 1 : r2 < 2048 ? 2 : r2 < 65536 ? 3 : 4; - for (t2 = h.uint8array ? new Uint8Array(o2) : new Array(o2), i2 = s2 = 0; s2 < o2; i2++) - 55296 == (64512 & (r2 = e3.charCodeAt(i2))) && i2 + 1 < a2 && 56320 == (64512 & (n2 = e3.charCodeAt(i2 + 1))) && (r2 = 65536 + (r2 - 55296 << 10) + (n2 - 56320), i2++), r2 < 128 ? t2[s2++] = r2 : (r2 < 2048 ? t2[s2++] = 192 | r2 >>> 6 : (r2 < 65536 ? t2[s2++] = 224 | r2 >>> 12 : (t2[s2++] = 240 | r2 >>> 18, t2[s2++] = 128 | r2 >>> 12 & 63), t2[s2++] = 128 | r2 >>> 6 & 63), t2[s2++] = 128 | 63 & r2); - return t2; - }(e2); - }, s.utf8decode = function(e2) { - return h.nodebuffer ? o.transformTo("nodebuffer", e2).toString("utf-8") : function(e3) { - var t2, r2, n2, i2, s2 = e3.length, a2 = new Array(2 * s2); - for (t2 = r2 = 0; t2 < s2; ) - if ((n2 = e3[t2++]) < 128) - a2[r2++] = n2; - else if (4 < (i2 = u[n2])) - a2[r2++] = 65533, t2 += i2 - 1; - else { - for (n2 &= 2 === i2 ? 31 : 3 === i2 ? 15 : 7; 1 < i2 && t2 < s2; ) - n2 = n2 << 6 | 63 & e3[t2++], i2--; - 1 < i2 ? a2[r2++] = 65533 : n2 < 65536 ? a2[r2++] = n2 : (n2 -= 65536, a2[r2++] = 55296 | n2 >> 10 & 1023, a2[r2++] = 56320 | 1023 & n2); - } - return a2.length !== r2 && (a2.subarray ? a2 = a2.subarray(0, r2) : a2.length = r2), o.applyFromCharCode(a2); - }(e2 = o.transformTo(h.uint8array ? "uint8array" : "array", e2)); - }, o.inherits(a, n), a.prototype.processChunk = function(e2) { - var t2 = o.transformTo(h.uint8array ? "uint8array" : "array", e2.data); - if (this.leftOver && this.leftOver.length) { - if (h.uint8array) { - var r2 = t2; - (t2 = new Uint8Array(r2.length + this.leftOver.length)).set(this.leftOver, 0), t2.set(r2, this.leftOver.length); - } else - t2 = this.leftOver.concat(t2); - this.leftOver = null; - } - var n2 = function(e3, t3) { - var r3; - for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), r3 = t3 - 1; 0 <= r3 && 128 == (192 & e3[r3]); ) - r3--; - return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 + u[e3[r3]] > t3 ? r3 : t3; - }(t2), i2 = t2; - n2 !== t2.length && (h.uint8array ? (i2 = t2.subarray(0, n2), this.leftOver = t2.subarray(n2, t2.length)) : (i2 = t2.slice(0, n2), this.leftOver = t2.slice(n2, t2.length))), this.push({ data: s.utf8decode(i2), meta: e2.meta }); - }, a.prototype.flush = function() { - this.leftOver && this.leftOver.length && (this.push({ data: s.utf8decode(this.leftOver), meta: {} }), this.leftOver = null); - }, s.Utf8DecodeWorker = a, o.inherits(l, n), l.prototype.processChunk = function(e2) { - this.push({ data: s.utf8encode(e2.data), meta: e2.meta }); - }, s.Utf8EncodeWorker = l; - }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, t, a) { - var o = e("./support"), h = e("./base64"), r = e("./nodejsUtils"), u = e("./external"); - function n(e2) { - return e2; - } - function l(e2, t2) { - for (var r2 = 0; r2 < e2.length; ++r2) - t2[r2] = 255 & e2.charCodeAt(r2); - return t2; - } - e("setimmediate"), a.newBlob = function(t2, r2) { - a.checkSupport("blob"); - try { - return new Blob([t2], { type: r2 }); - } catch (e2) { - try { - var n2 = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)(); - return n2.append(t2), n2.getBlob(r2); - } catch (e3) { - throw new Error("Bug : can't construct the Blob."); - } - } - }; - var i = { stringifyByChunk: function(e2, t2, r2) { - var n2 = [], i2 = 0, s2 = e2.length; - if (s2 <= r2) - return String.fromCharCode.apply(null, e2); - for (; i2 < s2; ) - "array" === t2 || "nodebuffer" === t2 ? n2.push(String.fromCharCode.apply(null, e2.slice(i2, Math.min(i2 + r2, s2)))) : n2.push(String.fromCharCode.apply(null, e2.subarray(i2, Math.min(i2 + r2, s2)))), i2 += r2; - return n2.join(""); - }, stringifyByChar: function(e2) { - for (var t2 = "", r2 = 0; r2 < e2.length; r2++) - t2 += String.fromCharCode(e2[r2]); - return t2; - }, applyCanBeUsed: { uint8array: function() { - try { - return o.uint8array && 1 === String.fromCharCode.apply(null, new Uint8Array(1)).length; - } catch (e2) { - return false; - } - }(), nodebuffer: function() { - try { - return o.nodebuffer && 1 === String.fromCharCode.apply(null, r.allocBuffer(1)).length; - } catch (e2) { - return false; - } - }() } }; - function s(e2) { - var t2 = 65536, r2 = a.getTypeOf(e2), n2 = true; - if ("uint8array" === r2 ? n2 = i.applyCanBeUsed.uint8array : "nodebuffer" === r2 && (n2 = i.applyCanBeUsed.nodebuffer), n2) - for (; 1 < t2; ) - try { - return i.stringifyByChunk(e2, r2, t2); - } catch (e3) { - t2 = Math.floor(t2 / 2); - } - return i.stringifyByChar(e2); - } - function f(e2, t2) { - for (var r2 = 0; r2 < e2.length; r2++) - t2[r2] = e2[r2]; - return t2; - } - a.applyFromCharCode = s; - var c = {}; - c.string = { string: n, array: function(e2) { - return l(e2, new Array(e2.length)); - }, arraybuffer: function(e2) { - return c.string.uint8array(e2).buffer; - }, uint8array: function(e2) { - return l(e2, new Uint8Array(e2.length)); - }, nodebuffer: function(e2) { - return l(e2, r.allocBuffer(e2.length)); - } }, c.array = { string: s, array: n, arraybuffer: function(e2) { - return new Uint8Array(e2).buffer; - }, uint8array: function(e2) { - return new Uint8Array(e2); - }, nodebuffer: function(e2) { - return r.newBufferFrom(e2); - } }, c.arraybuffer = { string: function(e2) { - return s(new Uint8Array(e2)); - }, array: function(e2) { - return f(new Uint8Array(e2), new Array(e2.byteLength)); - }, arraybuffer: n, uint8array: function(e2) { - return new Uint8Array(e2); - }, nodebuffer: function(e2) { - return r.newBufferFrom(new Uint8Array(e2)); - } }, c.uint8array = { string: s, array: function(e2) { - return f(e2, new Array(e2.length)); - }, arraybuffer: function(e2) { - return e2.buffer; - }, uint8array: n, nodebuffer: function(e2) { - return r.newBufferFrom(e2); - } }, c.nodebuffer = { string: s, array: function(e2) { - return f(e2, new Array(e2.length)); - }, arraybuffer: function(e2) { - return c.nodebuffer.uint8array(e2).buffer; - }, uint8array: function(e2) { - return f(e2, new Uint8Array(e2.length)); - }, nodebuffer: n }, a.transformTo = function(e2, t2) { - if (t2 = t2 || "", !e2) - return t2; - a.checkSupport(e2); - var r2 = a.getTypeOf(t2); - return c[r2][e2](t2); - }, a.resolve = function(e2) { - for (var t2 = e2.split("/"), r2 = [], n2 = 0; n2 < t2.length; n2++) { - var i2 = t2[n2]; - "." === i2 || "" === i2 && 0 !== n2 && n2 !== t2.length - 1 || (".." === i2 ? r2.pop() : r2.push(i2)); - } - return r2.join("/"); - }, a.getTypeOf = function(e2) { - return "string" == typeof e2 ? "string" : "[object Array]" === Object.prototype.toString.call(e2) ? "array" : o.nodebuffer && r.isBuffer(e2) ? "nodebuffer" : o.uint8array && e2 instanceof Uint8Array ? "uint8array" : o.arraybuffer && e2 instanceof ArrayBuffer ? "arraybuffer" : void 0; - }, a.checkSupport = function(e2) { - if (!o[e2.toLowerCase()]) - throw new Error(e2 + " is not supported by this platform"); - }, a.MAX_VALUE_16BITS = 65535, a.MAX_VALUE_32BITS = -1, a.pretty = function(e2) { - var t2, r2, n2 = ""; - for (r2 = 0; r2 < (e2 || "").length; r2++) - n2 += "\\x" + ((t2 = e2.charCodeAt(r2)) < 16 ? "0" : "") + t2.toString(16).toUpperCase(); - return n2; - }, a.delay = function(e2, t2, r2) { - setImmediate(function() { - e2.apply(r2 || null, t2 || []); - }); - }, a.inherits = function(e2, t2) { - function r2() { - } - r2.prototype = t2.prototype, e2.prototype = new r2(); - }, a.extend = function() { - var e2, t2, r2 = {}; - for (e2 = 0; e2 < arguments.length; e2++) - for (t2 in arguments[e2]) - Object.prototype.hasOwnProperty.call(arguments[e2], t2) && void 0 === r2[t2] && (r2[t2] = arguments[e2][t2]); - return r2; - }, a.prepareContent = function(r2, e2, n2, i2, s2) { - return u.Promise.resolve(e2).then(function(n3) { - return o.blob && (n3 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n3))) && "undefined" != typeof FileReader ? new u.Promise(function(t2, r3) { - var e3 = new FileReader(); - e3.onload = function(e4) { - t2(e4.target.result); - }, e3.onerror = function(e4) { - r3(e4.target.error); - }, e3.readAsArrayBuffer(n3); - }) : n3; - }).then(function(e3) { - var t2 = a.getTypeOf(e3); - return t2 ? ("arraybuffer" === t2 ? e3 = a.transformTo("uint8array", e3) : "string" === t2 && (s2 ? e3 = h.decode(e3) : n2 && true !== i2 && (e3 = function(e4) { - return l(e4, o.uint8array ? new Uint8Array(e4.length) : new Array(e4.length)); - }(e3))), e3) : u.Promise.reject(new Error("Can't read the data of '" + r2 + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?")); - }); - }; - }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, t, r) { - var n = e("./reader/readerFor"), i = e("./utils"), s = e("./signature"), a = e("./zipEntry"), o = e("./support"); - function h(e2) { - this.files = [], this.loadOptions = e2; - } - h.prototype = { checkSignature: function(e2) { - if (!this.reader.readAndCheckSignature(e2)) { - this.reader.index -= 4; - var t2 = this.reader.readString(4); - throw new Error("Corrupted zip or bug: unexpected signature (" + i.pretty(t2) + ", expected " + i.pretty(e2) + ")"); - } - }, isSignature: function(e2, t2) { - var r2 = this.reader.index; - this.reader.setIndex(e2); - var n2 = this.reader.readString(4) === t2; - return this.reader.setIndex(r2), n2; - }, readBlockEndOfCentral: function() { - this.diskNumber = this.reader.readInt(2), this.diskWithCentralDirStart = this.reader.readInt(2), this.centralDirRecordsOnThisDisk = this.reader.readInt(2), this.centralDirRecords = this.reader.readInt(2), this.centralDirSize = this.reader.readInt(4), this.centralDirOffset = this.reader.readInt(4), this.zipCommentLength = this.reader.readInt(2); - var e2 = this.reader.readData(this.zipCommentLength), t2 = o.uint8array ? "uint8array" : "array", r2 = i.transformTo(t2, e2); - this.zipComment = this.loadOptions.decodeFileName(r2); - }, readBlockZip64EndOfCentral: function() { - this.zip64EndOfCentralSize = this.reader.readInt(8), this.reader.skip(4), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {}; - for (var e2, t2, r2, n2 = this.zip64EndOfCentralSize - 44; 0 < n2; ) - e2 = this.reader.readInt(2), t2 = this.reader.readInt(4), r2 = this.reader.readData(t2), this.zip64ExtensibleData[e2] = { id: e2, length: t2, value: r2 }; - }, readBlockZip64EndOfCentralLocator: function() { - if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) - throw new Error("Multi-volumes zip are not supported"); - }, readLocalFiles: function() { - var e2, t2; - for (e2 = 0; e2 < this.files.length; e2++) - t2 = this.files[e2], this.reader.setIndex(t2.localHeaderOffset), this.checkSignature(s.LOCAL_FILE_HEADER), t2.readLocalPart(this.reader), t2.handleUTF8(), t2.processAttributes(); - }, readCentralDir: function() { - var e2; - for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER); ) - (e2 = new a({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(e2); - if (this.centralDirRecords !== this.files.length && 0 !== this.centralDirRecords && 0 === this.files.length) - throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length); - }, readEndOfCentral: function() { - var e2 = this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END); - if (e2 < 0) - throw !this.isSignature(0, s.LOCAL_FILE_HEADER) ? new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html") : new Error("Corrupted zip: can't find end of central directory"); - this.reader.setIndex(e2); - var t2 = e2; - if (this.checkSignature(s.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === i.MAX_VALUE_16BITS || this.diskWithCentralDirStart === i.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === i.MAX_VALUE_16BITS || this.centralDirRecords === i.MAX_VALUE_16BITS || this.centralDirSize === i.MAX_VALUE_32BITS || this.centralDirOffset === i.MAX_VALUE_32BITS) { - if (this.zip64 = true, (e2 = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) - throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator"); - if (this.reader.setIndex(e2), this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, s.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) - throw new Error("Corrupted zip: can't find the ZIP64 end of central directory"); - this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral(); - } - var r2 = this.centralDirOffset + this.centralDirSize; - this.zip64 && (r2 += 20, r2 += 12 + this.zip64EndOfCentralSize); - var n2 = t2 - r2; - if (0 < n2) - this.isSignature(t2, s.CENTRAL_FILE_HEADER) || (this.reader.zero = n2); - else if (n2 < 0) - throw new Error("Corrupted zip: missing " + Math.abs(n2) + " bytes."); - }, prepareReader: function(e2) { - this.reader = n(e2); - }, load: function(e2) { - this.prepareReader(e2), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles(); - } }, t.exports = h; - }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, t, r) { - var n = e("./reader/readerFor"), s = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h = e("./compressions"), u = e("./support"); - function l(e2, t2) { - this.options = e2, this.loadOptions = t2; - } - l.prototype = { isEncrypted: function() { - return 1 == (1 & this.bitFlag); - }, useUTF8: function() { - return 2048 == (2048 & this.bitFlag); - }, readLocalPart: function(e2) { - var t2, r2; - if (e2.skip(22), this.fileNameLength = e2.readInt(2), r2 = e2.readInt(2), this.fileName = e2.readData(this.fileNameLength), e2.skip(r2), -1 === this.compressedSize || -1 === this.uncompressedSize) - throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)"); - if (null === (t2 = function(e3) { - for (var t3 in h) - if (Object.prototype.hasOwnProperty.call(h, t3) && h[t3].magic === e3) - return h[t3]; - return null; - }(this.compressionMethod))) - throw new Error("Corrupted zip : compression " + s.pretty(this.compressionMethod) + " unknown (inner file : " + s.transformTo("string", this.fileName) + ")"); - this.decompressed = new i(this.compressedSize, this.uncompressedSize, this.crc32, t2, e2.readData(this.compressedSize)); - }, readCentralPart: function(e2) { - this.versionMadeBy = e2.readInt(2), e2.skip(2), this.bitFlag = e2.readInt(2), this.compressionMethod = e2.readString(2), this.date = e2.readDate(), this.crc32 = e2.readInt(4), this.compressedSize = e2.readInt(4), this.uncompressedSize = e2.readInt(4); - var t2 = e2.readInt(2); - if (this.extraFieldsLength = e2.readInt(2), this.fileCommentLength = e2.readInt(2), this.diskNumberStart = e2.readInt(2), this.internalFileAttributes = e2.readInt(2), this.externalFileAttributes = e2.readInt(4), this.localHeaderOffset = e2.readInt(4), this.isEncrypted()) - throw new Error("Encrypted zip are not supported"); - e2.skip(t2), this.readExtraFields(e2), this.parseZIP64ExtraField(e2), this.fileComment = e2.readData(this.fileCommentLength); - }, processAttributes: function() { - this.unixPermissions = null, this.dosPermissions = null; - var e2 = this.versionMadeBy >> 8; - this.dir = !!(16 & this.externalFileAttributes), 0 == e2 && (this.dosPermissions = 63 & this.externalFileAttributes), 3 == e2 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || "/" !== this.fileNameStr.slice(-1) || (this.dir = true); - }, parseZIP64ExtraField: function() { - if (this.extraFields[1]) { - var e2 = n(this.extraFields[1].value); - this.uncompressedSize === s.MAX_VALUE_32BITS && (this.uncompressedSize = e2.readInt(8)), this.compressedSize === s.MAX_VALUE_32BITS && (this.compressedSize = e2.readInt(8)), this.localHeaderOffset === s.MAX_VALUE_32BITS && (this.localHeaderOffset = e2.readInt(8)), this.diskNumberStart === s.MAX_VALUE_32BITS && (this.diskNumberStart = e2.readInt(4)); - } - }, readExtraFields: function(e2) { - var t2, r2, n2, i2 = e2.index + this.extraFieldsLength; - for (this.extraFields || (this.extraFields = {}); e2.index + 4 < i2; ) - t2 = e2.readInt(2), r2 = e2.readInt(2), n2 = e2.readData(r2), this.extraFields[t2] = { id: t2, length: r2, value: n2 }; - e2.setIndex(i2); - }, handleUTF8: function() { - var e2 = u.uint8array ? "uint8array" : "array"; - if (this.useUTF8()) - this.fileNameStr = o.utf8decode(this.fileName), this.fileCommentStr = o.utf8decode(this.fileComment); - else { - var t2 = this.findExtraFieldUnicodePath(); - if (null !== t2) - this.fileNameStr = t2; - else { - var r2 = s.transformTo(e2, this.fileName); - this.fileNameStr = this.loadOptions.decodeFileName(r2); - } - var n2 = this.findExtraFieldUnicodeComment(); - if (null !== n2) - this.fileCommentStr = n2; - else { - var i2 = s.transformTo(e2, this.fileComment); - this.fileCommentStr = this.loadOptions.decodeFileName(i2); - } - } - }, findExtraFieldUnicodePath: function() { - var e2 = this.extraFields[28789]; - if (e2) { - var t2 = n(e2.value); - return 1 !== t2.readInt(1) ? null : a(this.fileName) !== t2.readInt(4) ? null : o.utf8decode(t2.readData(e2.length - 5)); - } - return null; - }, findExtraFieldUnicodeComment: function() { - var e2 = this.extraFields[25461]; - if (e2) { - var t2 = n(e2.value); - return 1 !== t2.readInt(1) ? null : a(this.fileComment) !== t2.readInt(4) ? null : o.utf8decode(t2.readData(e2.length - 5)); - } - return null; - } }, t.exports = l; - }, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, t, r) { - function n(e2, t2, r2) { - this.name = e2, this.dir = r2.dir, this.date = r2.date, this.comment = r2.comment, this.unixPermissions = r2.unixPermissions, this.dosPermissions = r2.dosPermissions, this._data = t2, this._dataBinary = r2.binary, this.options = { compression: r2.compression, compressionOptions: r2.compressionOptions }; - } - var s = e("./stream/StreamHelper"), i = e("./stream/DataWorker"), a = e("./utf8"), o = e("./compressedObject"), h = e("./stream/GenericWorker"); - n.prototype = { internalStream: function(e2) { - var t2 = null, r2 = "string"; - try { - if (!e2) - throw new Error("No output type specified."); - var n2 = "string" === (r2 = e2.toLowerCase()) || "text" === r2; - "binarystring" !== r2 && "text" !== r2 || (r2 = "string"), t2 = this._decompressWorker(); - var i2 = !this._dataBinary; - i2 && !n2 && (t2 = t2.pipe(new a.Utf8EncodeWorker())), !i2 && n2 && (t2 = t2.pipe(new a.Utf8DecodeWorker())); - } catch (e3) { - (t2 = new h("error")).error(e3); - } - return new s(t2, r2, ""); - }, async: function(e2, t2) { - return this.internalStream(e2).accumulate(t2); - }, nodeStream: function(e2, t2) { - return this.internalStream(e2 || "nodebuffer").toNodejsStream(t2); - }, _compressWorker: function(e2, t2) { - if (this._data instanceof o && this._data.compression.magic === e2.magic) - return this._data.getCompressedWorker(); - var r2 = this._decompressWorker(); - return this._dataBinary || (r2 = r2.pipe(new a.Utf8EncodeWorker())), o.createWorkerFrom(r2, e2, t2); - }, _decompressWorker: function() { - return this._data instanceof o ? this._data.getContentWorker() : this._data instanceof h ? this._data : new i(this._data); - } }; - for (var u = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], l = function() { - throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); - }, f = 0; f < u.length; f++) - n.prototype[u[f]] = l; - t.exports = n; - }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, l, t) { - (function(t2) { - var r, n, e2 = t2.MutationObserver || t2.WebKitMutationObserver; - if (e2) { - var i = 0, s = new e2(u), a = t2.document.createTextNode(""); - s.observe(a, { characterData: true }), r = function() { - a.data = i = ++i % 2; - }; - } else if (t2.setImmediate || void 0 === t2.MessageChannel) - r = "document" in t2 && "onreadystatechange" in t2.document.createElement("script") ? function() { - var e3 = t2.document.createElement("script"); - e3.onreadystatechange = function() { - u(), e3.onreadystatechange = null, e3.parentNode.removeChild(e3), e3 = null; - }, t2.document.documentElement.appendChild(e3); - } : function() { - setTimeout(u, 0); - }; - else { - var o = new t2.MessageChannel(); - o.port1.onmessage = u, r = function() { - o.port2.postMessage(0); - }; - } - var h = []; - function u() { - var e3, t3; - n = true; - for (var r2 = h.length; r2; ) { - for (t3 = h, h = [], e3 = -1; ++e3 < r2; ) - t3[e3](); - r2 = h.length; - } - n = false; - } - l.exports = function(e3) { - 1 !== h.push(e3) || n || r(); - }; - }).call(this, "undefined" != typeof commonjsGlobal ? commonjsGlobal : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}); - }, {}], 37: [function(e, t, r) { - var i = e("immediate"); - function u() { - } - var l = {}, s = ["REJECTED"], a = ["FULFILLED"], n = ["PENDING"]; - function o(e2) { - if ("function" != typeof e2) - throw new TypeError("resolver must be a function"); - this.state = n, this.queue = [], this.outcome = void 0, e2 !== u && d(this, e2); - } - function h(e2, t2, r2) { - this.promise = e2, "function" == typeof t2 && (this.onFulfilled = t2, this.callFulfilled = this.otherCallFulfilled), "function" == typeof r2 && (this.onRejected = r2, this.callRejected = this.otherCallRejected); - } - function f(t2, r2, n2) { - i(function() { - var e2; - try { - e2 = r2(n2); - } catch (e3) { - return l.reject(t2, e3); - } - e2 === t2 ? l.reject(t2, new TypeError("Cannot resolve promise with itself")) : l.resolve(t2, e2); - }); - } - function c(e2) { - var t2 = e2 && e2.then; - if (e2 && ("object" == typeof e2 || "function" == typeof e2) && "function" == typeof t2) - return function() { - t2.apply(e2, arguments); - }; - } - function d(t2, e2) { - var r2 = false; - function n2(e3) { - r2 || (r2 = true, l.reject(t2, e3)); - } - function i2(e3) { - r2 || (r2 = true, l.resolve(t2, e3)); - } - var s2 = p(function() { - e2(i2, n2); - }); - "error" === s2.status && n2(s2.value); - } - function p(e2, t2) { - var r2 = {}; - try { - r2.value = e2(t2), r2.status = "success"; - } catch (e3) { - r2.status = "error", r2.value = e3; - } - return r2; - } - (t.exports = o).prototype.finally = function(t2) { - if ("function" != typeof t2) - return this; - var r2 = this.constructor; - return this.then(function(e2) { - return r2.resolve(t2()).then(function() { - return e2; - }); - }, function(e2) { - return r2.resolve(t2()).then(function() { - throw e2; - }); - }); - }, o.prototype.catch = function(e2) { - return this.then(null, e2); - }, o.prototype.then = function(e2, t2) { - if ("function" != typeof e2 && this.state === a || "function" != typeof t2 && this.state === s) - return this; - var r2 = new this.constructor(u); - this.state !== n ? f(r2, this.state === a ? e2 : t2, this.outcome) : this.queue.push(new h(r2, e2, t2)); - return r2; - }, h.prototype.callFulfilled = function(e2) { - l.resolve(this.promise, e2); - }, h.prototype.otherCallFulfilled = function(e2) { - f(this.promise, this.onFulfilled, e2); - }, h.prototype.callRejected = function(e2) { - l.reject(this.promise, e2); - }, h.prototype.otherCallRejected = function(e2) { - f(this.promise, this.onRejected, e2); - }, l.resolve = function(e2, t2) { - var r2 = p(c, t2); - if ("error" === r2.status) - return l.reject(e2, r2.value); - var n2 = r2.value; - if (n2) - d(e2, n2); - else { - e2.state = a, e2.outcome = t2; - for (var i2 = -1, s2 = e2.queue.length; ++i2 < s2; ) - e2.queue[i2].callFulfilled(t2); - } - return e2; - }, l.reject = function(e2, t2) { - e2.state = s, e2.outcome = t2; - for (var r2 = -1, n2 = e2.queue.length; ++r2 < n2; ) - e2.queue[r2].callRejected(t2); - return e2; - }, o.resolve = function(e2) { - if (e2 instanceof this) - return e2; - return l.resolve(new this(u), e2); - }, o.reject = function(e2) { - var t2 = new this(u); - return l.reject(t2, e2); - }, o.all = function(e2) { - var r2 = this; - if ("[object Array]" !== Object.prototype.toString.call(e2)) - return this.reject(new TypeError("must be an array")); - var n2 = e2.length, i2 = false; - if (!n2) - return this.resolve([]); - var s2 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(u); - for (; ++t2 < n2; ) - h2(e2[t2], t2); - return o2; - function h2(e3, t3) { - r2.resolve(e3).then(function(e4) { - s2[t3] = e4, ++a2 !== n2 || i2 || (i2 = true, l.resolve(o2, s2)); - }, function(e4) { - i2 || (i2 = true, l.reject(o2, e4)); - }); - } - }, o.race = function(e2) { - var t2 = this; - if ("[object Array]" !== Object.prototype.toString.call(e2)) - return this.reject(new TypeError("must be an array")); - var r2 = e2.length, n2 = false; - if (!r2) - return this.resolve([]); - var i2 = -1, s2 = new this(u); - for (; ++i2 < r2; ) - a2 = e2[i2], t2.resolve(a2).then(function(e3) { - n2 || (n2 = true, l.resolve(s2, e3)); - }, function(e3) { - n2 || (n2 = true, l.reject(s2, e3)); - }); - var a2; - return s2; - }; - }, { immediate: 36 }], 38: [function(e, t, r) { - var n = {}; - (0, e("./lib/utils/common").assign)(n, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), t.exports = n; - }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, t, r) { - var a = e("./zlib/deflate"), o = e("./utils/common"), h = e("./utils/strings"), i = e("./zlib/messages"), s = e("./zlib/zstream"), u = Object.prototype.toString, l = 0, f = -1, c = 0, d = 8; - function p(e2) { - if (!(this instanceof p)) - return new p(e2); - this.options = o.assign({ level: f, method: d, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: c, to: "" }, e2 || {}); - var t2 = this.options; - t2.raw && 0 < t2.windowBits ? t2.windowBits = -t2.windowBits : t2.gzip && 0 < t2.windowBits && t2.windowBits < 16 && (t2.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new s(), this.strm.avail_out = 0; - var r2 = a.deflateInit2(this.strm, t2.level, t2.method, t2.windowBits, t2.memLevel, t2.strategy); - if (r2 !== l) - throw new Error(i[r2]); - if (t2.header && a.deflateSetHeader(this.strm, t2.header), t2.dictionary) { - var n2; - if (n2 = "string" == typeof t2.dictionary ? h.string2buf(t2.dictionary) : "[object ArrayBuffer]" === u.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary, (r2 = a.deflateSetDictionary(this.strm, n2)) !== l) - throw new Error(i[r2]); - this._dict_set = true; - } - } - function n(e2, t2) { - var r2 = new p(t2); - if (r2.push(e2, true), r2.err) - throw r2.msg || i[r2.err]; - return r2.result; - } - p.prototype.push = function(e2, t2) { - var r2, n2, i2 = this.strm, s2 = this.options.chunkSize; - if (this.ended) - return false; - n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h.string2buf(e2) : "[object ArrayBuffer]" === u.call(e2) ? i2.input = new Uint8Array(e2) : i2.input = e2, i2.next_in = 0, i2.avail_in = i2.input.length; - do { - if (0 === i2.avail_out && (i2.output = new o.Buf8(s2), i2.next_out = 0, i2.avail_out = s2), 1 !== (r2 = a.deflate(i2, n2)) && r2 !== l) - return this.onEnd(r2), !(this.ended = true); - 0 !== i2.avail_out && (0 !== i2.avail_in || 4 !== n2 && 2 !== n2) || ("string" === this.options.to ? this.onData(h.buf2binstring(o.shrinkBuf(i2.output, i2.next_out))) : this.onData(o.shrinkBuf(i2.output, i2.next_out))); - } while ((0 < i2.avail_in || 0 === i2.avail_out) && 1 !== r2); - return 4 === n2 ? (r2 = a.deflateEnd(this.strm), this.onEnd(r2), this.ended = true, r2 === l) : 2 !== n2 || (this.onEnd(l), !(i2.avail_out = 0)); - }, p.prototype.onData = function(e2) { - this.chunks.push(e2); - }, p.prototype.onEnd = function(e2) { - e2 === l && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = e2, this.msg = this.strm.msg; - }, r.Deflate = p, r.deflate = n, r.deflateRaw = function(e2, t2) { - return (t2 = t2 || {}).raw = true, n(e2, t2); - }, r.gzip = function(e2, t2) { - return (t2 = t2 || {}).gzip = true, n(e2, t2); - }; - }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(e, t, r) { - var c = e("./zlib/inflate"), d = e("./utils/common"), p = e("./utils/strings"), m = e("./zlib/constants"), n = e("./zlib/messages"), i = e("./zlib/zstream"), s = e("./zlib/gzheader"), _ = Object.prototype.toString; - function a(e2) { - if (!(this instanceof a)) - return new a(e2); - this.options = d.assign({ chunkSize: 16384, windowBits: 0, to: "" }, e2 || {}); - var t2 = this.options; - t2.raw && 0 <= t2.windowBits && t2.windowBits < 16 && (t2.windowBits = -t2.windowBits, 0 === t2.windowBits && (t2.windowBits = -15)), !(0 <= t2.windowBits && t2.windowBits < 16) || e2 && e2.windowBits || (t2.windowBits += 32), 15 < t2.windowBits && t2.windowBits < 48 && 0 == (15 & t2.windowBits) && (t2.windowBits |= 15), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new i(), this.strm.avail_out = 0; - var r2 = c.inflateInit2(this.strm, t2.windowBits); - if (r2 !== m.Z_OK) - throw new Error(n[r2]); - this.header = new s(), c.inflateGetHeader(this.strm, this.header); - } - function o(e2, t2) { - var r2 = new a(t2); - if (r2.push(e2, true), r2.err) - throw r2.msg || n[r2.err]; - return r2.result; - } - a.prototype.push = function(e2, t2) { - var r2, n2, i2, s2, a2, o2, h = this.strm, u = this.options.chunkSize, l = this.options.dictionary, f = false; - if (this.ended) - return false; - n2 = t2 === ~~t2 ? t2 : true === t2 ? m.Z_FINISH : m.Z_NO_FLUSH, "string" == typeof e2 ? h.input = p.binstring2buf(e2) : "[object ArrayBuffer]" === _.call(e2) ? h.input = new Uint8Array(e2) : h.input = e2, h.next_in = 0, h.avail_in = h.input.length; - do { - if (0 === h.avail_out && (h.output = new d.Buf8(u), h.next_out = 0, h.avail_out = u), (r2 = c.inflate(h, m.Z_NO_FLUSH)) === m.Z_NEED_DICT && l && (o2 = "string" == typeof l ? p.string2buf(l) : "[object ArrayBuffer]" === _.call(l) ? new Uint8Array(l) : l, r2 = c.inflateSetDictionary(this.strm, o2)), r2 === m.Z_BUF_ERROR && true === f && (r2 = m.Z_OK, f = false), r2 !== m.Z_STREAM_END && r2 !== m.Z_OK) - return this.onEnd(r2), !(this.ended = true); - h.next_out && (0 !== h.avail_out && r2 !== m.Z_STREAM_END && (0 !== h.avail_in || n2 !== m.Z_FINISH && n2 !== m.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i2 = p.utf8border(h.output, h.next_out), s2 = h.next_out - i2, a2 = p.buf2string(h.output, i2), h.next_out = s2, h.avail_out = u - s2, s2 && d.arraySet(h.output, h.output, i2, s2, 0), this.onData(a2)) : this.onData(d.shrinkBuf(h.output, h.next_out)))), 0 === h.avail_in && 0 === h.avail_out && (f = true); - } while ((0 < h.avail_in || 0 === h.avail_out) && r2 !== m.Z_STREAM_END); - return r2 === m.Z_STREAM_END && (n2 = m.Z_FINISH), n2 === m.Z_FINISH ? (r2 = c.inflateEnd(this.strm), this.onEnd(r2), this.ended = true, r2 === m.Z_OK) : n2 !== m.Z_SYNC_FLUSH || (this.onEnd(m.Z_OK), !(h.avail_out = 0)); - }, a.prototype.onData = function(e2) { - this.chunks.push(e2); - }, a.prototype.onEnd = function(e2) { - e2 === m.Z_OK && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = d.flattenChunks(this.chunks)), this.chunks = [], this.err = e2, this.msg = this.strm.msg; - }, r.Inflate = a, r.inflate = o, r.inflateRaw = function(e2, t2) { - return (t2 = t2 || {}).raw = true, o(e2, t2); - }, r.ungzip = o; - }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(e, t, r) { - var n = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array; - r.assign = function(e2) { - for (var t2 = Array.prototype.slice.call(arguments, 1); t2.length; ) { - var r2 = t2.shift(); - if (r2) { - if ("object" != typeof r2) - throw new TypeError(r2 + "must be non-object"); - for (var n2 in r2) - r2.hasOwnProperty(n2) && (e2[n2] = r2[n2]); - } - } - return e2; - }, r.shrinkBuf = function(e2, t2) { - return e2.length === t2 ? e2 : e2.subarray ? e2.subarray(0, t2) : (e2.length = t2, e2); - }; - var i = { arraySet: function(e2, t2, r2, n2, i2) { - if (t2.subarray && e2.subarray) - e2.set(t2.subarray(r2, r2 + n2), i2); - else - for (var s2 = 0; s2 < n2; s2++) - e2[i2 + s2] = t2[r2 + s2]; - }, flattenChunks: function(e2) { - var t2, r2, n2, i2, s2, a; - for (t2 = n2 = 0, r2 = e2.length; t2 < r2; t2++) - n2 += e2[t2].length; - for (a = new Uint8Array(n2), t2 = i2 = 0, r2 = e2.length; t2 < r2; t2++) - s2 = e2[t2], a.set(s2, i2), i2 += s2.length; - return a; - } }, s = { arraySet: function(e2, t2, r2, n2, i2) { - for (var s2 = 0; s2 < n2; s2++) - e2[i2 + s2] = t2[r2 + s2]; - }, flattenChunks: function(e2) { - return [].concat.apply([], e2); - } }; - r.setTyped = function(e2) { - e2 ? (r.Buf8 = Uint8Array, r.Buf16 = Uint16Array, r.Buf32 = Int32Array, r.assign(r, i)) : (r.Buf8 = Array, r.Buf16 = Array, r.Buf32 = Array, r.assign(r, s)); - }, r.setTyped(n); - }, {}], 42: [function(e, t, r) { - var h = e("./common"), i = true, s = true; - try { - String.fromCharCode.apply(null, [0]); - } catch (e2) { - i = false; - } - try { - String.fromCharCode.apply(null, new Uint8Array(1)); - } catch (e2) { - s = false; - } - for (var u = new h.Buf8(256), n = 0; n < 256; n++) - u[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1; - function l(e2, t2) { - if (t2 < 65537 && (e2.subarray && s || !e2.subarray && i)) - return String.fromCharCode.apply(null, h.shrinkBuf(e2, t2)); - for (var r2 = "", n2 = 0; n2 < t2; n2++) - r2 += String.fromCharCode(e2[n2]); - return r2; - } - u[254] = u[254] = 1, r.string2buf = function(e2) { - var t2, r2, n2, i2, s2, a = e2.length, o = 0; - for (i2 = 0; i2 < a; i2++) - 55296 == (64512 & (r2 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r2 = 65536 + (r2 - 55296 << 10) + (n2 - 56320), i2++), o += r2 < 128 ? 1 : r2 < 2048 ? 2 : r2 < 65536 ? 3 : 4; - for (t2 = new h.Buf8(o), i2 = s2 = 0; s2 < o; i2++) - 55296 == (64512 & (r2 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r2 = 65536 + (r2 - 55296 << 10) + (n2 - 56320), i2++), r2 < 128 ? t2[s2++] = r2 : (r2 < 2048 ? t2[s2++] = 192 | r2 >>> 6 : (r2 < 65536 ? t2[s2++] = 224 | r2 >>> 12 : (t2[s2++] = 240 | r2 >>> 18, t2[s2++] = 128 | r2 >>> 12 & 63), t2[s2++] = 128 | r2 >>> 6 & 63), t2[s2++] = 128 | 63 & r2); - return t2; - }, r.buf2binstring = function(e2) { - return l(e2, e2.length); - }, r.binstring2buf = function(e2) { - for (var t2 = new h.Buf8(e2.length), r2 = 0, n2 = t2.length; r2 < n2; r2++) - t2[r2] = e2.charCodeAt(r2); - return t2; - }, r.buf2string = function(e2, t2) { - var r2, n2, i2, s2, a = t2 || e2.length, o = new Array(2 * a); - for (r2 = n2 = 0; r2 < a; ) - if ((i2 = e2[r2++]) < 128) - o[n2++] = i2; - else if (4 < (s2 = u[i2])) - o[n2++] = 65533, r2 += s2 - 1; - else { - for (i2 &= 2 === s2 ? 31 : 3 === s2 ? 15 : 7; 1 < s2 && r2 < a; ) - i2 = i2 << 6 | 63 & e2[r2++], s2--; - 1 < s2 ? o[n2++] = 65533 : i2 < 65536 ? o[n2++] = i2 : (i2 -= 65536, o[n2++] = 55296 | i2 >> 10 & 1023, o[n2++] = 56320 | 1023 & i2); - } - return l(o, n2); - }, r.utf8border = function(e2, t2) { - var r2; - for ((t2 = t2 || e2.length) > e2.length && (t2 = e2.length), r2 = t2 - 1; 0 <= r2 && 128 == (192 & e2[r2]); ) - r2--; - return r2 < 0 ? t2 : 0 === r2 ? t2 : r2 + u[e2[r2]] > t2 ? r2 : t2; - }; - }, { "./common": 41 }], 43: [function(e, t, r) { - t.exports = function(e2, t2, r2, n) { - for (var i = 65535 & e2 | 0, s = e2 >>> 16 & 65535 | 0, a = 0; 0 !== r2; ) { - for (r2 -= a = 2e3 < r2 ? 2e3 : r2; s = s + (i = i + t2[n++] | 0) | 0, --a; ) - ; - i %= 65521, s %= 65521; - } - return i | s << 16 | 0; - }; - }, {}], 44: [function(e, t, r) { - t.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 }; - }, {}], 45: [function(e, t, r) { - var o = function() { - for (var e2, t2 = [], r2 = 0; r2 < 256; r2++) { - e2 = r2; - for (var n = 0; n < 8; n++) - e2 = 1 & e2 ? 3988292384 ^ e2 >>> 1 : e2 >>> 1; - t2[r2] = e2; - } - return t2; - }(); - t.exports = function(e2, t2, r2, n) { - var i = o, s = n + r2; - e2 ^= -1; - for (var a = n; a < s; a++) - e2 = e2 >>> 8 ^ i[255 & (e2 ^ t2[a])]; - return -1 ^ e2; - }; - }, {}], 46: [function(e, t, r) { - var h, c = e("../utils/common"), u = e("./trees"), d = e("./adler32"), p = e("./crc32"), n = e("./messages"), l = 0, f = 4, m = 0, _ = -2, g = -1, b = 4, i = 2, v = 8, y = 9, s = 286, a = 30, o = 19, w = 2 * s + 1, k = 15, x = 3, S = 258, z = S + x + 1, C = 42, E = 113, A = 1, I = 2, O = 3, B = 4; - function R(e2, t2) { - return e2.msg = n[t2], t2; - } - function T(e2) { - return (e2 << 1) - (4 < e2 ? 9 : 0); - } - function D(e2) { - for (var t2 = e2.length; 0 <= --t2; ) - e2[t2] = 0; - } - function F(e2) { - var t2 = e2.state, r2 = t2.pending; - r2 > e2.avail_out && (r2 = e2.avail_out), 0 !== r2 && (c.arraySet(e2.output, t2.pending_buf, t2.pending_out, r2, e2.next_out), e2.next_out += r2, t2.pending_out += r2, e2.total_out += r2, e2.avail_out -= r2, t2.pending -= r2, 0 === t2.pending && (t2.pending_out = 0)); - } - function N(e2, t2) { - u._tr_flush_block(e2, 0 <= e2.block_start ? e2.block_start : -1, e2.strstart - e2.block_start, t2), e2.block_start = e2.strstart, F(e2.strm); - } - function U(e2, t2) { - e2.pending_buf[e2.pending++] = t2; - } - function P(e2, t2) { - e2.pending_buf[e2.pending++] = t2 >>> 8 & 255, e2.pending_buf[e2.pending++] = 255 & t2; - } - function L(e2, t2) { - var r2, n2, i2 = e2.max_chain_length, s2 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h2 = e2.strstart > e2.w_size - z ? e2.strstart - (e2.w_size - z) : 0, u2 = e2.window, l2 = e2.w_mask, f2 = e2.prev, c2 = e2.strstart + S, d2 = u2[s2 + a2 - 1], p2 = u2[s2 + a2]; - e2.prev_length >= e2.good_match && (i2 >>= 2), o2 > e2.lookahead && (o2 = e2.lookahead); - do { - if (u2[(r2 = t2) + a2] === p2 && u2[r2 + a2 - 1] === d2 && u2[r2] === u2[s2] && u2[++r2] === u2[s2 + 1]) { - s2 += 2, r2++; - do { - } while (u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && u2[++s2] === u2[++r2] && s2 < c2); - if (n2 = S - (c2 - s2), s2 = c2 - S, a2 < n2) { - if (e2.match_start = t2, o2 <= (a2 = n2)) - break; - d2 = u2[s2 + a2 - 1], p2 = u2[s2 + a2]; - } - } - } while ((t2 = f2[t2 & l2]) > h2 && 0 != --i2); - return a2 <= e2.lookahead ? a2 : e2.lookahead; - } - function j(e2) { - var t2, r2, n2, i2, s2, a2, o2, h2, u2, l2, f2 = e2.w_size; - do { - if (i2 = e2.window_size - e2.lookahead - e2.strstart, e2.strstart >= f2 + (f2 - z)) { - for (c.arraySet(e2.window, e2.window, f2, f2, 0), e2.match_start -= f2, e2.strstart -= f2, e2.block_start -= f2, t2 = r2 = e2.hash_size; n2 = e2.head[--t2], e2.head[t2] = f2 <= n2 ? n2 - f2 : 0, --r2; ) - ; - for (t2 = r2 = f2; n2 = e2.prev[--t2], e2.prev[t2] = f2 <= n2 ? n2 - f2 : 0, --r2; ) - ; - i2 += f2; - } - if (0 === e2.strm.avail_in) - break; - if (a2 = e2.strm, o2 = e2.window, h2 = e2.strstart + e2.lookahead, u2 = i2, l2 = void 0, l2 = a2.avail_in, u2 < l2 && (l2 = u2), r2 = 0 === l2 ? 0 : (a2.avail_in -= l2, c.arraySet(o2, a2.input, a2.next_in, l2, h2), 1 === a2.state.wrap ? a2.adler = d(a2.adler, o2, l2, h2) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l2, h2)), a2.next_in += l2, a2.total_in += l2, l2), e2.lookahead += r2, e2.lookahead + e2.insert >= x) - for (s2 = e2.strstart - e2.insert, e2.ins_h = e2.window[s2], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s2 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s2 + x - 1]) & e2.hash_mask, e2.prev[s2 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s2, s2++, e2.insert--, !(e2.lookahead + e2.insert < x)); ) - ; - } while (e2.lookahead < z && 0 !== e2.strm.avail_in); - } - function Z(e2, t2) { - for (var r2, n2; ; ) { - if (e2.lookahead < z) { - if (j(e2), e2.lookahead < z && t2 === l) - return A; - if (0 === e2.lookahead) - break; - } - if (r2 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r2 && e2.strstart - r2 <= e2.w_size - z && (e2.match_length = L(e2, r2)), e2.match_length >= x) - if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x) { - for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) - ; - e2.strstart++; - } else - e2.strstart += e2.match_length, e2.match_length = 0, e2.ins_h = e2.window[e2.strstart], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + 1]) & e2.hash_mask; - else - n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++; - if (n2 && (N(e2, false), 0 === e2.strm.avail_out)) - return A; - } - return e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f ? (N(e2, true), 0 === e2.strm.avail_out ? O : B) : e2.last_lit && (N(e2, false), 0 === e2.strm.avail_out) ? A : I; - } - function W(e2, t2) { - for (var r2, n2, i2; ; ) { - if (e2.lookahead < z) { - if (j(e2), e2.lookahead < z && t2 === l) - return A; - if (0 === e2.lookahead) - break; - } - if (r2 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x - 1, 0 !== r2 && e2.prev_length < e2.max_lazy_match && e2.strstart - r2 <= e2.w_size - z && (e2.match_length = L(e2, r2), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x - 1)), e2.prev_length >= x && e2.match_length <= e2.prev_length) { - for (i2 = e2.strstart + e2.lookahead - x, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r2 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) - ; - if (e2.match_available = 0, e2.match_length = x - 1, e2.strstart++, n2 && (N(e2, false), 0 === e2.strm.avail_out)) - return A; - } else if (e2.match_available) { - if ((n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1])) && N(e2, false), e2.strstart++, e2.lookahead--, 0 === e2.strm.avail_out) - return A; - } else - e2.match_available = 1, e2.strstart++, e2.lookahead--; - } - return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f ? (N(e2, true), 0 === e2.strm.avail_out ? O : B) : e2.last_lit && (N(e2, false), 0 === e2.strm.avail_out) ? A : I; - } - function M(e2, t2, r2, n2, i2) { - this.good_length = e2, this.max_lazy = t2, this.nice_length = r2, this.max_chain = n2, this.func = i2; - } - function H() { - this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = v, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new c.Buf16(2 * w), this.dyn_dtree = new c.Buf16(2 * (2 * a + 1)), this.bl_tree = new c.Buf16(2 * (2 * o + 1)), D(this.dyn_ltree), D(this.dyn_dtree), D(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new c.Buf16(k + 1), this.heap = new c.Buf16(2 * s + 1), D(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new c.Buf16(2 * s + 1), D(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0; - } - function G(e2) { - var t2; - return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C : E, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l, u._tr_init(t2), m) : R(e2, _); - } - function K(e2) { - var t2 = G(e2); - return t2 === m && function(e3) { - e3.window_size = 2 * e3.w_size, D(e3.head), e3.max_lazy_match = h[e3.level].max_lazy, e3.good_match = h[e3.level].good_length, e3.nice_match = h[e3.level].nice_length, e3.max_chain_length = h[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x - 1, e3.match_available = 0, e3.ins_h = 0; - }(e2.state), t2; - } - function Y(e2, t2, r2, n2, i2, s2) { - if (!e2) - return _; - var a2 = 1; - if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y < i2 || r2 !== v || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s2 < 0 || b < s2) - return R(e2, _); - 8 === n2 && (n2 = 9); - var o2 = new H(); - return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x - 1) / x), o2.window = new c.Buf8(2 * o2.w_size), o2.head = new c.Buf16(o2.hash_size), o2.prev = new c.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s2, o2.method = r2, K(e2); - } - h = [new M(0, 0, 0, 0, function(e2, t2) { - var r2 = 65535; - for (r2 > e2.pending_buf_size - 5 && (r2 = e2.pending_buf_size - 5); ; ) { - if (e2.lookahead <= 1) { - if (j(e2), 0 === e2.lookahead && t2 === l) - return A; - if (0 === e2.lookahead) - break; - } - e2.strstart += e2.lookahead, e2.lookahead = 0; - var n2 = e2.block_start + r2; - if ((0 === e2.strstart || e2.strstart >= n2) && (e2.lookahead = e2.strstart - n2, e2.strstart = n2, N(e2, false), 0 === e2.strm.avail_out)) - return A; - if (e2.strstart - e2.block_start >= e2.w_size - z && (N(e2, false), 0 === e2.strm.avail_out)) - return A; - } - return e2.insert = 0, t2 === f ? (N(e2, true), 0 === e2.strm.avail_out ? O : B) : (e2.strstart > e2.block_start && (N(e2, false), e2.strm.avail_out), A); - }), new M(4, 4, 8, 4, Z), new M(4, 5, 16, 8, Z), new M(4, 6, 32, 32, Z), new M(4, 4, 16, 16, W), new M(8, 16, 32, 32, W), new M(8, 16, 128, 128, W), new M(8, 32, 128, 256, W), new M(32, 128, 258, 1024, W), new M(32, 258, 258, 4096, W)], r.deflateInit = function(e2, t2) { - return Y(e2, t2, v, 15, 8, 0); - }, r.deflateInit2 = Y, r.deflateReset = K, r.deflateResetKeep = G, r.deflateSetHeader = function(e2, t2) { - return e2 && e2.state ? 2 !== e2.state.wrap ? _ : (e2.state.gzhead = t2, m) : _; - }, r.deflate = function(e2, t2) { - var r2, n2, i2, s2; - if (!e2 || !e2.state || 5 < t2 || t2 < 0) - return e2 ? R(e2, _) : _; - if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f) - return R(e2, 0 === e2.avail_out ? -5 : _); - if (n2.strm = e2, r2 = n2.last_flush, n2.last_flush = t2, n2.status === C) - if (2 === n2.wrap) - e2.adler = 0, U(n2, 31), U(n2, 139), U(n2, 8), n2.gzhead ? (U(n2, (n2.gzhead.text ? 1 : 0) + (n2.gzhead.hcrc ? 2 : 0) + (n2.gzhead.extra ? 4 : 0) + (n2.gzhead.name ? 8 : 0) + (n2.gzhead.comment ? 16 : 0)), U(n2, 255 & n2.gzhead.time), U(n2, n2.gzhead.time >> 8 & 255), U(n2, n2.gzhead.time >> 16 & 255), U(n2, n2.gzhead.time >> 24 & 255), U(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U(n2, 255 & n2.gzhead.os), n2.gzhead.extra && n2.gzhead.extra.length && (U(n2, 255 & n2.gzhead.extra.length), U(n2, n2.gzhead.extra.length >> 8 & 255)), n2.gzhead.hcrc && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending, 0)), n2.gzindex = 0, n2.status = 69) : (U(n2, 0), U(n2, 0), U(n2, 0), U(n2, 0), U(n2, 0), U(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U(n2, 3), n2.status = E); - else { - var a2 = v + (n2.w_bits - 8 << 4) << 8; - a2 |= (2 <= n2.strategy || n2.level < 2 ? 0 : n2.level < 6 ? 1 : 6 === n2.level ? 2 : 3) << 6, 0 !== n2.strstart && (a2 |= 32), a2 += 31 - a2 % 31, n2.status = E, P(n2, a2), 0 !== n2.strstart && (P(n2, e2.adler >>> 16), P(n2, 65535 & e2.adler)), e2.adler = 1; - } - if (69 === n2.status) - if (n2.gzhead.extra) { - for (i2 = n2.pending; n2.gzindex < (65535 & n2.gzhead.extra.length) && (n2.pending !== n2.pending_buf_size || (n2.gzhead.hcrc && n2.pending > i2 && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending - i2, i2)), F(e2), i2 = n2.pending, n2.pending !== n2.pending_buf_size)); ) - U(n2, 255 & n2.gzhead.extra[n2.gzindex]), n2.gzindex++; - n2.gzhead.hcrc && n2.pending > i2 && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending - i2, i2)), n2.gzindex === n2.gzhead.extra.length && (n2.gzindex = 0, n2.status = 73); - } else - n2.status = 73; - if (73 === n2.status) - if (n2.gzhead.name) { - i2 = n2.pending; - do { - if (n2.pending === n2.pending_buf_size && (n2.gzhead.hcrc && n2.pending > i2 && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending - i2, i2)), F(e2), i2 = n2.pending, n2.pending === n2.pending_buf_size)) { - s2 = 1; - break; - } - s2 = n2.gzindex < n2.gzhead.name.length ? 255 & n2.gzhead.name.charCodeAt(n2.gzindex++) : 0, U(n2, s2); - } while (0 !== s2); - n2.gzhead.hcrc && n2.pending > i2 && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending - i2, i2)), 0 === s2 && (n2.gzindex = 0, n2.status = 91); - } else - n2.status = 91; - if (91 === n2.status) - if (n2.gzhead.comment) { - i2 = n2.pending; - do { - if (n2.pending === n2.pending_buf_size && (n2.gzhead.hcrc && n2.pending > i2 && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending - i2, i2)), F(e2), i2 = n2.pending, n2.pending === n2.pending_buf_size)) { - s2 = 1; - break; - } - s2 = n2.gzindex < n2.gzhead.comment.length ? 255 & n2.gzhead.comment.charCodeAt(n2.gzindex++) : 0, U(n2, s2); - } while (0 !== s2); - n2.gzhead.hcrc && n2.pending > i2 && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending - i2, i2)), 0 === s2 && (n2.status = 103); - } else - n2.status = 103; - if (103 === n2.status && (n2.gzhead.hcrc ? (n2.pending + 2 > n2.pending_buf_size && F(e2), n2.pending + 2 <= n2.pending_buf_size && (U(n2, 255 & e2.adler), U(n2, e2.adler >> 8 & 255), e2.adler = 0, n2.status = E)) : n2.status = E), 0 !== n2.pending) { - if (F(e2), 0 === e2.avail_out) - return n2.last_flush = -1, m; - } else if (0 === e2.avail_in && T(t2) <= T(r2) && t2 !== f) - return R(e2, -5); - if (666 === n2.status && 0 !== e2.avail_in) - return R(e2, -5); - if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l && 666 !== n2.status) { - var o2 = 2 === n2.strategy ? function(e3, t3) { - for (var r3; ; ) { - if (0 === e3.lookahead && (j(e3), 0 === e3.lookahead)) { - if (t3 === l) - return A; - break; - } - if (e3.match_length = 0, r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++, r3 && (N(e3, false), 0 === e3.strm.avail_out)) - return A; - } - return e3.insert = 0, t3 === f ? (N(e3, true), 0 === e3.strm.avail_out ? O : B) : e3.last_lit && (N(e3, false), 0 === e3.strm.avail_out) ? A : I; - }(n2, t2) : 3 === n2.strategy ? function(e3, t3) { - for (var r3, n3, i3, s3, a3 = e3.window; ; ) { - if (e3.lookahead <= S) { - if (j(e3), e3.lookahead <= S && t3 === l) - return A; - if (0 === e3.lookahead) - break; - } - if (e3.match_length = 0, e3.lookahead >= x && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) { - s3 = e3.strstart + S; - do { - } while (n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && i3 < s3); - e3.match_length = S - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead); - } - if (e3.match_length >= x ? (r3 = u._tr_tally(e3, 1, e3.match_length - x), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N(e3, false), 0 === e3.strm.avail_out)) - return A; - } - return e3.insert = 0, t3 === f ? (N(e3, true), 0 === e3.strm.avail_out ? O : B) : e3.last_lit && (N(e3, false), 0 === e3.strm.avail_out) ? A : I; - }(n2, t2) : h[n2.level].func(n2, t2); - if (o2 !== O && o2 !== B || (n2.status = 666), o2 === A || o2 === O) - return 0 === e2.avail_out && (n2.last_flush = -1), m; - if (o2 === I && (1 === t2 ? u._tr_align(n2) : 5 !== t2 && (u._tr_stored_block(n2, 0, 0, false), 3 === t2 && (D(n2.head), 0 === n2.lookahead && (n2.strstart = 0, n2.block_start = 0, n2.insert = 0))), F(e2), 0 === e2.avail_out)) - return n2.last_flush = -1, m; - } - return t2 !== f ? m : n2.wrap <= 0 ? 1 : (2 === n2.wrap ? (U(n2, 255 & e2.adler), U(n2, e2.adler >> 8 & 255), U(n2, e2.adler >> 16 & 255), U(n2, e2.adler >> 24 & 255), U(n2, 255 & e2.total_in), U(n2, e2.total_in >> 8 & 255), U(n2, e2.total_in >> 16 & 255), U(n2, e2.total_in >> 24 & 255)) : (P(n2, e2.adler >>> 16), P(n2, 65535 & e2.adler)), F(e2), 0 < n2.wrap && (n2.wrap = -n2.wrap), 0 !== n2.pending ? m : 1); - }, r.deflateEnd = function(e2) { - var t2; - return e2 && e2.state ? (t2 = e2.state.status) !== C && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E && 666 !== t2 ? R(e2, _) : (e2.state = null, t2 === E ? R(e2, -3) : m) : _; - }, r.deflateSetDictionary = function(e2, t2) { - var r2, n2, i2, s2, a2, o2, h2, u2, l2 = t2.length; - if (!e2 || !e2.state) - return _; - if (2 === (s2 = (r2 = e2.state).wrap) || 1 === s2 && r2.status !== C || r2.lookahead) - return _; - for (1 === s2 && (e2.adler = d(e2.adler, t2, l2, 0)), r2.wrap = 0, l2 >= r2.w_size && (0 === s2 && (D(r2.head), r2.strstart = 0, r2.block_start = 0, r2.insert = 0), u2 = new c.Buf8(r2.w_size), c.arraySet(u2, t2, l2 - r2.w_size, r2.w_size, 0), t2 = u2, l2 = r2.w_size), a2 = e2.avail_in, o2 = e2.next_in, h2 = e2.input, e2.avail_in = l2, e2.next_in = 0, e2.input = t2, j(r2); r2.lookahead >= x; ) { - for (n2 = r2.strstart, i2 = r2.lookahead - (x - 1); r2.ins_h = (r2.ins_h << r2.hash_shift ^ r2.window[n2 + x - 1]) & r2.hash_mask, r2.prev[n2 & r2.w_mask] = r2.head[r2.ins_h], r2.head[r2.ins_h] = n2, n2++, --i2; ) - ; - r2.strstart = n2, r2.lookahead = x - 1, j(r2); - } - return r2.strstart += r2.lookahead, r2.block_start = r2.strstart, r2.insert = r2.lookahead, r2.lookahead = 0, r2.match_length = r2.prev_length = x - 1, r2.match_available = 0, e2.next_in = o2, e2.input = h2, e2.avail_in = a2, r2.wrap = s2, m; - }, r.deflateInfo = "pako deflate (from Nodeca project)"; - }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r) { - t.exports = function() { - this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = false; - }; - }, {}], 48: [function(e, t, r) { - t.exports = function(e2, t2) { - var r2, n, i, s, a, o, h, u, l, f, c, d, p, m, _, g, b, v, y, w, k, x, S, z, C; - r2 = e2.state, n = e2.next_in, z = e2.input, i = n + (e2.avail_in - 5), s = e2.next_out, C = e2.output, a = s - (t2 - e2.avail_out), o = s + (e2.avail_out - 257), h = r2.dmax, u = r2.wsize, l = r2.whave, f = r2.wnext, c = r2.window, d = r2.hold, p = r2.bits, m = r2.lencode, _ = r2.distcode, g = (1 << r2.lenbits) - 1, b = (1 << r2.distbits) - 1; - e: - do { - p < 15 && (d += z[n++] << p, p += 8, d += z[n++] << p, p += 8), v = m[d & g]; - t: - for (; ; ) { - if (d >>>= y = v >>> 24, p -= y, 0 === (y = v >>> 16 & 255)) - C[s++] = 65535 & v; - else { - if (!(16 & y)) { - if (0 == (64 & y)) { - v = m[(65535 & v) + (d & (1 << y) - 1)]; - continue t; - } - if (32 & y) { - r2.mode = 12; - break e; - } - e2.msg = "invalid literal/length code", r2.mode = 30; - break e; - } - w = 65535 & v, (y &= 15) && (p < y && (d += z[n++] << p, p += 8), w += d & (1 << y) - 1, d >>>= y, p -= y), p < 15 && (d += z[n++] << p, p += 8, d += z[n++] << p, p += 8), v = _[d & b]; - r: - for (; ; ) { - if (d >>>= y = v >>> 24, p -= y, !(16 & (y = v >>> 16 & 255))) { - if (0 == (64 & y)) { - v = _[(65535 & v) + (d & (1 << y) - 1)]; - continue r; - } - e2.msg = "invalid distance code", r2.mode = 30; - break e; - } - if (k = 65535 & v, p < (y &= 15) && (d += z[n++] << p, (p += 8) < y && (d += z[n++] << p, p += 8)), h < (k += d & (1 << y) - 1)) { - e2.msg = "invalid distance too far back", r2.mode = 30; - break e; - } - if (d >>>= y, p -= y, (y = s - a) < k) { - if (l < (y = k - y) && r2.sane) { - e2.msg = "invalid distance too far back", r2.mode = 30; - break e; - } - if (S = c, (x = 0) === f) { - if (x += u - y, y < w) { - for (w -= y; C[s++] = c[x++], --y; ) - ; - x = s - k, S = C; - } - } else if (f < y) { - if (x += u + f - y, (y -= f) < w) { - for (w -= y; C[s++] = c[x++], --y; ) - ; - if (x = 0, f < w) { - for (w -= y = f; C[s++] = c[x++], --y; ) - ; - x = s - k, S = C; - } - } - } else if (x += f - y, y < w) { - for (w -= y; C[s++] = c[x++], --y; ) - ; - x = s - k, S = C; - } - for (; 2 < w; ) - C[s++] = S[x++], C[s++] = S[x++], C[s++] = S[x++], w -= 3; - w && (C[s++] = S[x++], 1 < w && (C[s++] = S[x++])); - } else { - for (x = s - k; C[s++] = C[x++], C[s++] = C[x++], C[s++] = C[x++], 2 < (w -= 3); ) - ; - w && (C[s++] = C[x++], 1 < w && (C[s++] = C[x++])); - } - break; - } - } - break; - } - } while (n < i && s < o); - n -= w = p >> 3, d &= (1 << (p -= w << 3)) - 1, e2.next_in = n, e2.next_out = s, e2.avail_in = n < i ? i - n + 5 : 5 - (n - i), e2.avail_out = s < o ? o - s + 257 : 257 - (s - o), r2.hold = d, r2.bits = p; - }; - }, {}], 49: [function(e, t, r) { - var I = e("../utils/common"), O = e("./adler32"), B = e("./crc32"), R = e("./inffast"), T = e("./inftrees"), D = 1, F = 2, N = 0, U = -2, P = 1, n = 852, i = 592; - function L(e2) { - return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24); - } - function s() { - this.mode = 0, this.last = false, this.wrap = 0, this.havedict = false, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new I.Buf16(320), this.work = new I.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0; - } - function a(e2) { - var t2; - return e2 && e2.state ? (t2 = e2.state, e2.total_in = e2.total_out = t2.total = 0, e2.msg = "", t2.wrap && (e2.adler = 1 & t2.wrap), t2.mode = P, t2.last = 0, t2.havedict = 0, t2.dmax = 32768, t2.head = null, t2.hold = 0, t2.bits = 0, t2.lencode = t2.lendyn = new I.Buf32(n), t2.distcode = t2.distdyn = new I.Buf32(i), t2.sane = 1, t2.back = -1, N) : U; - } - function o(e2) { - var t2; - return e2 && e2.state ? ((t2 = e2.state).wsize = 0, t2.whave = 0, t2.wnext = 0, a(e2)) : U; - } - function h(e2, t2) { - var r2, n2; - return e2 && e2.state ? (n2 = e2.state, t2 < 0 ? (r2 = 0, t2 = -t2) : (r2 = 1 + (t2 >> 4), t2 < 48 && (t2 &= 15)), t2 && (t2 < 8 || 15 < t2) ? U : (null !== n2.window && n2.wbits !== t2 && (n2.window = null), n2.wrap = r2, n2.wbits = t2, o(e2))) : U; - } - function u(e2, t2) { - var r2, n2; - return e2 ? (n2 = new s(), (e2.state = n2).window = null, (r2 = h(e2, t2)) !== N && (e2.state = null), r2) : U; - } - var l, f, c = true; - function j(e2) { - if (c) { - var t2; - for (l = new I.Buf32(512), f = new I.Buf32(32), t2 = 0; t2 < 144; ) - e2.lens[t2++] = 8; - for (; t2 < 256; ) - e2.lens[t2++] = 9; - for (; t2 < 280; ) - e2.lens[t2++] = 7; - for (; t2 < 288; ) - e2.lens[t2++] = 8; - for (T(D, e2.lens, 0, 288, l, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) - e2.lens[t2++] = 5; - T(F, e2.lens, 0, 32, f, 0, e2.work, { bits: 5 }), c = false; - } - e2.lencode = l, e2.lenbits = 9, e2.distcode = f, e2.distbits = 5; - } - function Z(e2, t2, r2, n2) { - var i2, s2 = e2.state; - return null === s2.window && (s2.wsize = 1 << s2.wbits, s2.wnext = 0, s2.whave = 0, s2.window = new I.Buf8(s2.wsize)), n2 >= s2.wsize ? (I.arraySet(s2.window, t2, r2 - s2.wsize, s2.wsize, 0), s2.wnext = 0, s2.whave = s2.wsize) : (n2 < (i2 = s2.wsize - s2.wnext) && (i2 = n2), I.arraySet(s2.window, t2, r2 - n2, i2, s2.wnext), (n2 -= i2) ? (I.arraySet(s2.window, t2, r2 - n2, n2, 0), s2.wnext = n2, s2.whave = s2.wsize) : (s2.wnext += i2, s2.wnext === s2.wsize && (s2.wnext = 0), s2.whave < s2.wsize && (s2.whave += i2))), 0; - } - r.inflateReset = o, r.inflateReset2 = h, r.inflateResetKeep = a, r.inflateInit = function(e2) { - return u(e2, 15); - }, r.inflateInit2 = u, r.inflate = function(e2, t2) { - var r2, n2, i2, s2, a2, o2, h2, u2, l2, f2, c2, d, p, m, _, g, b, v, y, w, k, x, S, z, C = 0, E = new I.Buf8(4), A = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; - if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) - return U; - 12 === (r2 = e2.state).mode && (r2.mode = 13), a2 = e2.next_out, i2 = e2.output, h2 = e2.avail_out, s2 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r2.hold, l2 = r2.bits, f2 = o2, c2 = h2, x = N; - e: - for (; ; ) - switch (r2.mode) { - case P: - if (0 === r2.wrap) { - r2.mode = 13; - break; - } - for (; l2 < 16; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - if (2 & r2.wrap && 35615 === u2) { - E[r2.check = 0] = 255 & u2, E[1] = u2 >>> 8 & 255, r2.check = B(r2.check, E, 2, 0), l2 = u2 = 0, r2.mode = 2; - break; - } - if (r2.flags = 0, r2.head && (r2.head.done = false), !(1 & r2.wrap) || (((255 & u2) << 8) + (u2 >> 8)) % 31) { - e2.msg = "incorrect header check", r2.mode = 30; - break; - } - if (8 != (15 & u2)) { - e2.msg = "unknown compression method", r2.mode = 30; - break; - } - if (l2 -= 4, k = 8 + (15 & (u2 >>>= 4)), 0 === r2.wbits) - r2.wbits = k; - else if (k > r2.wbits) { - e2.msg = "invalid window size", r2.mode = 30; - break; - } - r2.dmax = 1 << k, e2.adler = r2.check = 1, r2.mode = 512 & u2 ? 10 : 12, l2 = u2 = 0; - break; - case 2: - for (; l2 < 16; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - if (r2.flags = u2, 8 != (255 & r2.flags)) { - e2.msg = "unknown compression method", r2.mode = 30; - break; - } - if (57344 & r2.flags) { - e2.msg = "unknown header flags set", r2.mode = 30; - break; - } - r2.head && (r2.head.text = u2 >> 8 & 1), 512 & r2.flags && (E[0] = 255 & u2, E[1] = u2 >>> 8 & 255, r2.check = B(r2.check, E, 2, 0)), l2 = u2 = 0, r2.mode = 3; - case 3: - for (; l2 < 32; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - r2.head && (r2.head.time = u2), 512 & r2.flags && (E[0] = 255 & u2, E[1] = u2 >>> 8 & 255, E[2] = u2 >>> 16 & 255, E[3] = u2 >>> 24 & 255, r2.check = B(r2.check, E, 4, 0)), l2 = u2 = 0, r2.mode = 4; - case 4: - for (; l2 < 16; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - r2.head && (r2.head.xflags = 255 & u2, r2.head.os = u2 >> 8), 512 & r2.flags && (E[0] = 255 & u2, E[1] = u2 >>> 8 & 255, r2.check = B(r2.check, E, 2, 0)), l2 = u2 = 0, r2.mode = 5; - case 5: - if (1024 & r2.flags) { - for (; l2 < 16; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - r2.length = u2, r2.head && (r2.head.extra_len = u2), 512 & r2.flags && (E[0] = 255 & u2, E[1] = u2 >>> 8 & 255, r2.check = B(r2.check, E, 2, 0)), l2 = u2 = 0; - } else - r2.head && (r2.head.extra = null); - r2.mode = 6; - case 6: - if (1024 & r2.flags && (o2 < (d = r2.length) && (d = o2), d && (r2.head && (k = r2.head.extra_len - r2.length, r2.head.extra || (r2.head.extra = new Array(r2.head.extra_len)), I.arraySet(r2.head.extra, n2, s2, d, k)), 512 & r2.flags && (r2.check = B(r2.check, n2, d, s2)), o2 -= d, s2 += d, r2.length -= d), r2.length)) - break e; - r2.length = 0, r2.mode = 7; - case 7: - if (2048 & r2.flags) { - if (0 === o2) - break e; - for (d = 0; k = n2[s2 + d++], r2.head && k && r2.length < 65536 && (r2.head.name += String.fromCharCode(k)), k && d < o2; ) - ; - if (512 & r2.flags && (r2.check = B(r2.check, n2, d, s2)), o2 -= d, s2 += d, k) - break e; - } else - r2.head && (r2.head.name = null); - r2.length = 0, r2.mode = 8; - case 8: - if (4096 & r2.flags) { - if (0 === o2) - break e; - for (d = 0; k = n2[s2 + d++], r2.head && k && r2.length < 65536 && (r2.head.comment += String.fromCharCode(k)), k && d < o2; ) - ; - if (512 & r2.flags && (r2.check = B(r2.check, n2, d, s2)), o2 -= d, s2 += d, k) - break e; - } else - r2.head && (r2.head.comment = null); - r2.mode = 9; - case 9: - if (512 & r2.flags) { - for (; l2 < 16; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - if (u2 !== (65535 & r2.check)) { - e2.msg = "header crc mismatch", r2.mode = 30; - break; - } - l2 = u2 = 0; - } - r2.head && (r2.head.hcrc = r2.flags >> 9 & 1, r2.head.done = true), e2.adler = r2.check = 0, r2.mode = 12; - break; - case 10: - for (; l2 < 32; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - e2.adler = r2.check = L(u2), l2 = u2 = 0, r2.mode = 11; - case 11: - if (0 === r2.havedict) - return e2.next_out = a2, e2.avail_out = h2, e2.next_in = s2, e2.avail_in = o2, r2.hold = u2, r2.bits = l2, 2; - e2.adler = r2.check = 1, r2.mode = 12; - case 12: - if (5 === t2 || 6 === t2) - break e; - case 13: - if (r2.last) { - u2 >>>= 7 & l2, l2 -= 7 & l2, r2.mode = 27; - break; - } - for (; l2 < 3; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - switch (r2.last = 1 & u2, l2 -= 1, 3 & (u2 >>>= 1)) { - case 0: - r2.mode = 14; - break; - case 1: - if (j(r2), r2.mode = 20, 6 !== t2) - break; - u2 >>>= 2, l2 -= 2; - break e; - case 2: - r2.mode = 17; - break; - case 3: - e2.msg = "invalid block type", r2.mode = 30; - } - u2 >>>= 2, l2 -= 2; - break; - case 14: - for (u2 >>>= 7 & l2, l2 -= 7 & l2; l2 < 32; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - if ((65535 & u2) != (u2 >>> 16 ^ 65535)) { - e2.msg = "invalid stored block lengths", r2.mode = 30; - break; - } - if (r2.length = 65535 & u2, l2 = u2 = 0, r2.mode = 15, 6 === t2) - break e; - case 15: - r2.mode = 16; - case 16: - if (d = r2.length) { - if (o2 < d && (d = o2), h2 < d && (d = h2), 0 === d) - break e; - I.arraySet(i2, n2, s2, d, a2), o2 -= d, s2 += d, h2 -= d, a2 += d, r2.length -= d; - break; - } - r2.mode = 12; - break; - case 17: - for (; l2 < 14; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - if (r2.nlen = 257 + (31 & u2), u2 >>>= 5, l2 -= 5, r2.ndist = 1 + (31 & u2), u2 >>>= 5, l2 -= 5, r2.ncode = 4 + (15 & u2), u2 >>>= 4, l2 -= 4, 286 < r2.nlen || 30 < r2.ndist) { - e2.msg = "too many length or distance symbols", r2.mode = 30; - break; - } - r2.have = 0, r2.mode = 18; - case 18: - for (; r2.have < r2.ncode; ) { - for (; l2 < 3; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - r2.lens[A[r2.have++]] = 7 & u2, u2 >>>= 3, l2 -= 3; - } - for (; r2.have < 19; ) - r2.lens[A[r2.have++]] = 0; - if (r2.lencode = r2.lendyn, r2.lenbits = 7, S = { bits: r2.lenbits }, x = T(0, r2.lens, 0, 19, r2.lencode, 0, r2.work, S), r2.lenbits = S.bits, x) { - e2.msg = "invalid code lengths set", r2.mode = 30; - break; - } - r2.have = 0, r2.mode = 19; - case 19: - for (; r2.have < r2.nlen + r2.ndist; ) { - for (; g = (C = r2.lencode[u2 & (1 << r2.lenbits) - 1]) >>> 16 & 255, b = 65535 & C, !((_ = C >>> 24) <= l2); ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - if (b < 16) - u2 >>>= _, l2 -= _, r2.lens[r2.have++] = b; - else { - if (16 === b) { - for (z = _ + 2; l2 < z; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - if (u2 >>>= _, l2 -= _, 0 === r2.have) { - e2.msg = "invalid bit length repeat", r2.mode = 30; - break; - } - k = r2.lens[r2.have - 1], d = 3 + (3 & u2), u2 >>>= 2, l2 -= 2; - } else if (17 === b) { - for (z = _ + 3; l2 < z; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - l2 -= _, k = 0, d = 3 + (7 & (u2 >>>= _)), u2 >>>= 3, l2 -= 3; - } else { - for (z = _ + 7; l2 < z; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - l2 -= _, k = 0, d = 11 + (127 & (u2 >>>= _)), u2 >>>= 7, l2 -= 7; - } - if (r2.have + d > r2.nlen + r2.ndist) { - e2.msg = "invalid bit length repeat", r2.mode = 30; - break; - } - for (; d--; ) - r2.lens[r2.have++] = k; - } - } - if (30 === r2.mode) - break; - if (0 === r2.lens[256]) { - e2.msg = "invalid code -- missing end-of-block", r2.mode = 30; - break; - } - if (r2.lenbits = 9, S = { bits: r2.lenbits }, x = T(D, r2.lens, 0, r2.nlen, r2.lencode, 0, r2.work, S), r2.lenbits = S.bits, x) { - e2.msg = "invalid literal/lengths set", r2.mode = 30; - break; - } - if (r2.distbits = 6, r2.distcode = r2.distdyn, S = { bits: r2.distbits }, x = T(F, r2.lens, r2.nlen, r2.ndist, r2.distcode, 0, r2.work, S), r2.distbits = S.bits, x) { - e2.msg = "invalid distances set", r2.mode = 30; - break; - } - if (r2.mode = 20, 6 === t2) - break e; - case 20: - r2.mode = 21; - case 21: - if (6 <= o2 && 258 <= h2) { - e2.next_out = a2, e2.avail_out = h2, e2.next_in = s2, e2.avail_in = o2, r2.hold = u2, r2.bits = l2, R(e2, c2), a2 = e2.next_out, i2 = e2.output, h2 = e2.avail_out, s2 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r2.hold, l2 = r2.bits, 12 === r2.mode && (r2.back = -1); - break; - } - for (r2.back = 0; g = (C = r2.lencode[u2 & (1 << r2.lenbits) - 1]) >>> 16 & 255, b = 65535 & C, !((_ = C >>> 24) <= l2); ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - if (g && 0 == (240 & g)) { - for (v = _, y = g, w = b; g = (C = r2.lencode[w + ((u2 & (1 << v + y) - 1) >> v)]) >>> 16 & 255, b = 65535 & C, !(v + (_ = C >>> 24) <= l2); ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - u2 >>>= v, l2 -= v, r2.back += v; - } - if (u2 >>>= _, l2 -= _, r2.back += _, r2.length = b, 0 === g) { - r2.mode = 26; - break; - } - if (32 & g) { - r2.back = -1, r2.mode = 12; - break; - } - if (64 & g) { - e2.msg = "invalid literal/length code", r2.mode = 30; - break; - } - r2.extra = 15 & g, r2.mode = 22; - case 22: - if (r2.extra) { - for (z = r2.extra; l2 < z; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - r2.length += u2 & (1 << r2.extra) - 1, u2 >>>= r2.extra, l2 -= r2.extra, r2.back += r2.extra; - } - r2.was = r2.length, r2.mode = 23; - case 23: - for (; g = (C = r2.distcode[u2 & (1 << r2.distbits) - 1]) >>> 16 & 255, b = 65535 & C, !((_ = C >>> 24) <= l2); ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - if (0 == (240 & g)) { - for (v = _, y = g, w = b; g = (C = r2.distcode[w + ((u2 & (1 << v + y) - 1) >> v)]) >>> 16 & 255, b = 65535 & C, !(v + (_ = C >>> 24) <= l2); ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - u2 >>>= v, l2 -= v, r2.back += v; - } - if (u2 >>>= _, l2 -= _, r2.back += _, 64 & g) { - e2.msg = "invalid distance code", r2.mode = 30; - break; - } - r2.offset = b, r2.extra = 15 & g, r2.mode = 24; - case 24: - if (r2.extra) { - for (z = r2.extra; l2 < z; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - r2.offset += u2 & (1 << r2.extra) - 1, u2 >>>= r2.extra, l2 -= r2.extra, r2.back += r2.extra; - } - if (r2.offset > r2.dmax) { - e2.msg = "invalid distance too far back", r2.mode = 30; - break; - } - r2.mode = 25; - case 25: - if (0 === h2) - break e; - if (d = c2 - h2, r2.offset > d) { - if ((d = r2.offset - d) > r2.whave && r2.sane) { - e2.msg = "invalid distance too far back", r2.mode = 30; - break; - } - p = d > r2.wnext ? (d -= r2.wnext, r2.wsize - d) : r2.wnext - d, d > r2.length && (d = r2.length), m = r2.window; - } else - m = i2, p = a2 - r2.offset, d = r2.length; - for (h2 < d && (d = h2), h2 -= d, r2.length -= d; i2[a2++] = m[p++], --d; ) - ; - 0 === r2.length && (r2.mode = 21); - break; - case 26: - if (0 === h2) - break e; - i2[a2++] = r2.length, h2--, r2.mode = 21; - break; - case 27: - if (r2.wrap) { - for (; l2 < 32; ) { - if (0 === o2) - break e; - o2--, u2 |= n2[s2++] << l2, l2 += 8; - } - if (c2 -= h2, e2.total_out += c2, r2.total += c2, c2 && (e2.adler = r2.check = r2.flags ? B(r2.check, i2, c2, a2 - c2) : O(r2.check, i2, c2, a2 - c2)), c2 = h2, (r2.flags ? u2 : L(u2)) !== r2.check) { - e2.msg = "incorrect data check", r2.mode = 30; - break; - } - l2 = u2 = 0; - } - r2.mode = 28; - case 28: - if (r2.wrap && r2.flags) { - for (; l2 < 32; ) { - if (0 === o2) - break e; - o2--, u2 += n2[s2++] << l2, l2 += 8; - } - if (u2 !== (4294967295 & r2.total)) { - e2.msg = "incorrect length check", r2.mode = 30; - break; - } - l2 = u2 = 0; - } - r2.mode = 29; - case 29: - x = 1; - break e; - case 30: - x = -3; - break e; - case 31: - return -4; - case 32: - default: - return U; - } - return e2.next_out = a2, e2.avail_out = h2, e2.next_in = s2, e2.avail_in = o2, r2.hold = u2, r2.bits = l2, (r2.wsize || c2 !== e2.avail_out && r2.mode < 30 && (r2.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c2 - e2.avail_out) ? (r2.mode = 31, -4) : (f2 -= e2.avail_in, c2 -= e2.avail_out, e2.total_in += f2, e2.total_out += c2, r2.total += c2, r2.wrap && c2 && (e2.adler = r2.check = r2.flags ? B(r2.check, i2, c2, e2.next_out - c2) : O(r2.check, i2, c2, e2.next_out - c2)), e2.data_type = r2.bits + (r2.last ? 64 : 0) + (12 === r2.mode ? 128 : 0) + (20 === r2.mode || 15 === r2.mode ? 256 : 0), (0 == f2 && 0 === c2 || 4 === t2) && x === N && (x = -5), x); - }, r.inflateEnd = function(e2) { - if (!e2 || !e2.state) - return U; - var t2 = e2.state; - return t2.window && (t2.window = null), e2.state = null, N; - }, r.inflateGetHeader = function(e2, t2) { - var r2; - return e2 && e2.state ? 0 == (2 & (r2 = e2.state).wrap) ? U : ((r2.head = t2).done = false, N) : U; - }, r.inflateSetDictionary = function(e2, t2) { - var r2, n2 = t2.length; - return e2 && e2.state ? 0 !== (r2 = e2.state).wrap && 11 !== r2.mode ? U : 11 === r2.mode && O(1, t2, n2, 0) !== r2.check ? -3 : Z(e2, t2, n2, n2) ? (r2.mode = 31, -4) : (r2.havedict = 1, N) : U; - }, r.inflateInfo = "pako inflate (from Nodeca project)"; - }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r) { - var D = e("../utils/common"), F = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], N = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], U = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], P = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64]; - t.exports = function(e2, t2, r2, n, i, s, a, o) { - var h, u, l, f, c, d, p, m, _, g = o.bits, b = 0, v = 0, y = 0, w = 0, k = 0, x = 0, S = 0, z = 0, C = 0, E = 0, A = null, I = 0, O = new D.Buf16(16), B = new D.Buf16(16), R = null, T = 0; - for (b = 0; b <= 15; b++) - O[b] = 0; - for (v = 0; v < n; v++) - O[t2[r2 + v]]++; - for (k = g, w = 15; 1 <= w && 0 === O[w]; w--) - ; - if (w < k && (k = w), 0 === w) - return i[s++] = 20971520, i[s++] = 20971520, o.bits = 1, 0; - for (y = 1; y < w && 0 === O[y]; y++) - ; - for (k < y && (k = y), b = z = 1; b <= 15; b++) - if (z <<= 1, (z -= O[b]) < 0) - return -1; - if (0 < z && (0 === e2 || 1 !== w)) - return -1; - for (B[1] = 0, b = 1; b < 15; b++) - B[b + 1] = B[b] + O[b]; - for (v = 0; v < n; v++) - 0 !== t2[r2 + v] && (a[B[t2[r2 + v]]++] = v); - if (d = 0 === e2 ? (A = R = a, 19) : 1 === e2 ? (A = F, I -= 257, R = N, T -= 257, 256) : (A = U, R = P, -1), b = y, c = s, S = v = E = 0, l = -1, f = (C = 1 << (x = k)) - 1, 1 === e2 && 852 < C || 2 === e2 && 592 < C) - return 1; - for (; ; ) { - for (p = b - S, _ = a[v] < d ? (m = 0, a[v]) : a[v] > d ? (m = R[T + a[v]], A[I + a[v]]) : (m = 96, 0), h = 1 << b - S, y = u = 1 << x; i[c + (E >> S) + (u -= h)] = p << 24 | m << 16 | _ | 0, 0 !== u; ) - ; - for (h = 1 << b - 1; E & h; ) - h >>= 1; - if (0 !== h ? (E &= h - 1, E += h) : E = 0, v++, 0 == --O[b]) { - if (b === w) - break; - b = t2[r2 + a[v]]; - } - if (k < b && (E & f) !== l) { - for (0 === S && (S = k), c += y, z = 1 << (x = b - S); x + S < w && !((z -= O[x + S]) <= 0); ) - x++, z <<= 1; - if (C += 1 << x, 1 === e2 && 852 < C || 2 === e2 && 592 < C) - return 1; - i[l = E & f] = k << 24 | x << 16 | c - s | 0; - } - } - return 0 !== E && (i[c + E] = b - S << 24 | 64 << 16 | 0), o.bits = k, 0; - }; - }, { "../utils/common": 41 }], 51: [function(e, t, r) { - t.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" }; - }, {}], 52: [function(e, t, r) { - var i = e("../utils/common"), o = 0, h = 1; - function n(e2) { - for (var t2 = e2.length; 0 <= --t2; ) - e2[t2] = 0; - } - var s = 0, a = 29, u = 256, l = u + 1 + a, f = 30, c = 19, _ = 2 * l + 1, g = 15, d = 16, p = 7, m = 256, b = 16, v = 17, y = 18, w = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z = new Array(2 * (l + 2)); - n(z); - var C = new Array(2 * f); - n(C); - var E = new Array(512); - n(E); - var A = new Array(256); - n(A); - var I = new Array(a); - n(I); - var O, B, R, T = new Array(f); - function D(e2, t2, r2, n2, i2) { - this.static_tree = e2, this.extra_bits = t2, this.extra_base = r2, this.elems = n2, this.max_length = i2, this.has_stree = e2 && e2.length; - } - function F(e2, t2) { - this.dyn_tree = e2, this.max_code = 0, this.stat_desc = t2; - } - function N(e2) { - return e2 < 256 ? E[e2] : E[256 + (e2 >>> 7)]; - } - function U(e2, t2) { - e2.pending_buf[e2.pending++] = 255 & t2, e2.pending_buf[e2.pending++] = t2 >>> 8 & 255; - } - function P(e2, t2, r2) { - e2.bi_valid > d - r2 ? (e2.bi_buf |= t2 << e2.bi_valid & 65535, U(e2, e2.bi_buf), e2.bi_buf = t2 >> d - e2.bi_valid, e2.bi_valid += r2 - d) : (e2.bi_buf |= t2 << e2.bi_valid & 65535, e2.bi_valid += r2); - } - function L(e2, t2, r2) { - P(e2, r2[2 * t2], r2[2 * t2 + 1]); - } - function j(e2, t2) { - for (var r2 = 0; r2 |= 1 & e2, e2 >>>= 1, r2 <<= 1, 0 < --t2; ) - ; - return r2 >>> 1; - } - function Z(e2, t2, r2) { - var n2, i2, s2 = new Array(g + 1), a2 = 0; - for (n2 = 1; n2 <= g; n2++) - s2[n2] = a2 = a2 + r2[n2 - 1] << 1; - for (i2 = 0; i2 <= t2; i2++) { - var o2 = e2[2 * i2 + 1]; - 0 !== o2 && (e2[2 * i2] = j(s2[o2]++, o2)); - } - } - function W(e2) { - var t2; - for (t2 = 0; t2 < l; t2++) - e2.dyn_ltree[2 * t2] = 0; - for (t2 = 0; t2 < f; t2++) - e2.dyn_dtree[2 * t2] = 0; - for (t2 = 0; t2 < c; t2++) - e2.bl_tree[2 * t2] = 0; - e2.dyn_ltree[2 * m] = 1, e2.opt_len = e2.static_len = 0, e2.last_lit = e2.matches = 0; - } - function M(e2) { - 8 < e2.bi_valid ? U(e2, e2.bi_buf) : 0 < e2.bi_valid && (e2.pending_buf[e2.pending++] = e2.bi_buf), e2.bi_buf = 0, e2.bi_valid = 0; - } - function H(e2, t2, r2, n2) { - var i2 = 2 * t2, s2 = 2 * r2; - return e2[i2] < e2[s2] || e2[i2] === e2[s2] && n2[t2] <= n2[r2]; - } - function G(e2, t2, r2) { - for (var n2 = e2.heap[r2], i2 = r2 << 1; i2 <= e2.heap_len && (i2 < e2.heap_len && H(t2, e2.heap[i2 + 1], e2.heap[i2], e2.depth) && i2++, !H(t2, n2, e2.heap[i2], e2.depth)); ) - e2.heap[r2] = e2.heap[i2], r2 = i2, i2 <<= 1; - e2.heap[r2] = n2; - } - function K(e2, t2, r2) { - var n2, i2, s2, a2, o2 = 0; - if (0 !== e2.last_lit) - for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L(e2, i2, t2) : (L(e2, (s2 = A[i2]) + u + 1, t2), 0 !== (a2 = w[s2]) && P(e2, i2 -= I[s2], a2), L(e2, s2 = N(--n2), r2), 0 !== (a2 = k[s2]) && P(e2, n2 -= T[s2], a2)), o2 < e2.last_lit; ) - ; - L(e2, m, t2); - } - function Y(e2, t2) { - var r2, n2, i2, s2 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h2 = t2.stat_desc.elems, u2 = -1; - for (e2.heap_len = 0, e2.heap_max = _, r2 = 0; r2 < h2; r2++) - 0 !== s2[2 * r2] ? (e2.heap[++e2.heap_len] = u2 = r2, e2.depth[r2] = 0) : s2[2 * r2 + 1] = 0; - for (; e2.heap_len < 2; ) - s2[2 * (i2 = e2.heap[++e2.heap_len] = u2 < 2 ? ++u2 : 0)] = 1, e2.depth[i2] = 0, e2.opt_len--, o2 && (e2.static_len -= a2[2 * i2 + 1]); - for (t2.max_code = u2, r2 = e2.heap_len >> 1; 1 <= r2; r2--) - G(e2, s2, r2); - for (i2 = h2; r2 = e2.heap[1], e2.heap[1] = e2.heap[e2.heap_len--], G(e2, s2, 1), n2 = e2.heap[1], e2.heap[--e2.heap_max] = r2, e2.heap[--e2.heap_max] = n2, s2[2 * i2] = s2[2 * r2] + s2[2 * n2], e2.depth[i2] = (e2.depth[r2] >= e2.depth[n2] ? e2.depth[r2] : e2.depth[n2]) + 1, s2[2 * r2 + 1] = s2[2 * n2 + 1] = i2, e2.heap[1] = i2++, G(e2, s2, 1), 2 <= e2.heap_len; ) - ; - e2.heap[--e2.heap_max] = e2.heap[1], function(e3, t3) { - var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree, u3 = t3.max_code, l2 = t3.stat_desc.static_tree, f2 = t3.stat_desc.has_stree, c2 = t3.stat_desc.extra_bits, d2 = t3.stat_desc.extra_base, p2 = t3.stat_desc.max_length, m2 = 0; - for (s3 = 0; s3 <= g; s3++) - e3.bl_count[s3] = 0; - for (h3[2 * e3.heap[e3.heap_max] + 1] = 0, r3 = e3.heap_max + 1; r3 < _; r3++) - p2 < (s3 = h3[2 * h3[2 * (n3 = e3.heap[r3]) + 1] + 1] + 1) && (s3 = p2, m2++), h3[2 * n3 + 1] = s3, u3 < n3 || (e3.bl_count[s3]++, a3 = 0, d2 <= n3 && (a3 = c2[n3 - d2]), o3 = h3[2 * n3], e3.opt_len += o3 * (s3 + a3), f2 && (e3.static_len += o3 * (l2[2 * n3 + 1] + a3))); - if (0 !== m2) { - do { - for (s3 = p2 - 1; 0 === e3.bl_count[s3]; ) - s3--; - e3.bl_count[s3]--, e3.bl_count[s3 + 1] += 2, e3.bl_count[p2]--, m2 -= 2; - } while (0 < m2); - for (s3 = p2; 0 !== s3; s3--) - for (n3 = e3.bl_count[s3]; 0 !== n3; ) - u3 < (i3 = e3.heap[--r3]) || (h3[2 * i3 + 1] !== s3 && (e3.opt_len += (s3 - h3[2 * i3 + 1]) * h3[2 * i3], h3[2 * i3 + 1] = s3), n3--); - } - }(e2, t2), Z(s2, u2, e2.bl_count); - } - function X(e2, t2, r2) { - var n2, i2, s2 = -1, a2 = t2[1], o2 = 0, h2 = 7, u2 = 4; - for (0 === a2 && (h2 = 138, u2 = 3), t2[2 * (r2 + 1) + 1] = 65535, n2 = 0; n2 <= r2; n2++) - i2 = a2, a2 = t2[2 * (n2 + 1) + 1], ++o2 < h2 && i2 === a2 || (o2 < u2 ? e2.bl_tree[2 * i2] += o2 : 0 !== i2 ? (i2 !== s2 && e2.bl_tree[2 * i2]++, e2.bl_tree[2 * b]++) : o2 <= 10 ? e2.bl_tree[2 * v]++ : e2.bl_tree[2 * y]++, s2 = i2, u2 = (o2 = 0) === a2 ? (h2 = 138, 3) : i2 === a2 ? (h2 = 6, 3) : (h2 = 7, 4)); - } - function V(e2, t2, r2) { - var n2, i2, s2 = -1, a2 = t2[1], o2 = 0, h2 = 7, u2 = 4; - for (0 === a2 && (h2 = 138, u2 = 3), n2 = 0; n2 <= r2; n2++) - if (i2 = a2, a2 = t2[2 * (n2 + 1) + 1], !(++o2 < h2 && i2 === a2)) { - if (o2 < u2) - for (; L(e2, i2, e2.bl_tree), 0 != --o2; ) - ; - else - 0 !== i2 ? (i2 !== s2 && (L(e2, i2, e2.bl_tree), o2--), L(e2, b, e2.bl_tree), P(e2, o2 - 3, 2)) : o2 <= 10 ? (L(e2, v, e2.bl_tree), P(e2, o2 - 3, 3)) : (L(e2, y, e2.bl_tree), P(e2, o2 - 11, 7)); - s2 = i2, u2 = (o2 = 0) === a2 ? (h2 = 138, 3) : i2 === a2 ? (h2 = 6, 3) : (h2 = 7, 4); - } - } - n(T); - var q = false; - function J(e2, t2, r2, n2) { - P(e2, (s << 1) + (n2 ? 1 : 0), 3), function(e3, t3, r3, n3) { - M(e3), n3 && (U(e3, r3), U(e3, ~r3)), i.arraySet(e3.pending_buf, e3.window, t3, r3, e3.pending), e3.pending += r3; - }(e2, t2, r2, true); - } - r._tr_init = function(e2) { - q || (function() { - var e3, t2, r2, n2, i2, s2 = new Array(g + 1); - for (n2 = r2 = 0; n2 < a - 1; n2++) - for (I[n2] = r2, e3 = 0; e3 < 1 << w[n2]; e3++) - A[r2++] = n2; - for (A[r2 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) - for (T[n2] = i2, e3 = 0; e3 < 1 << k[n2]; e3++) - E[i2++] = n2; - for (i2 >>= 7; n2 < f; n2++) - for (T[n2] = i2 << 7, e3 = 0; e3 < 1 << k[n2] - 7; e3++) - E[256 + i2++] = n2; - for (t2 = 0; t2 <= g; t2++) - s2[t2] = 0; - for (e3 = 0; e3 <= 143; ) - z[2 * e3 + 1] = 8, e3++, s2[8]++; - for (; e3 <= 255; ) - z[2 * e3 + 1] = 9, e3++, s2[9]++; - for (; e3 <= 279; ) - z[2 * e3 + 1] = 7, e3++, s2[7]++; - for (; e3 <= 287; ) - z[2 * e3 + 1] = 8, e3++, s2[8]++; - for (Z(z, l + 1, s2), e3 = 0; e3 < f; e3++) - C[2 * e3 + 1] = 5, C[2 * e3] = j(e3, 5); - O = new D(z, w, u + 1, l, g), B = new D(C, k, 0, f, g), R = new D(new Array(0), x, 0, c, p); - }(), q = true), e2.l_desc = new F(e2.dyn_ltree, O), e2.d_desc = new F(e2.dyn_dtree, B), e2.bl_desc = new F(e2.bl_tree, R), e2.bi_buf = 0, e2.bi_valid = 0, W(e2); - }, r._tr_stored_block = J, r._tr_flush_block = function(e2, t2, r2, n2) { - var i2, s2, a2 = 0; - 0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = function(e3) { - var t3, r3 = 4093624447; - for (t3 = 0; t3 <= 31; t3++, r3 >>>= 1) - if (1 & r3 && 0 !== e3.dyn_ltree[2 * t3]) - return o; - if (0 !== e3.dyn_ltree[18] || 0 !== e3.dyn_ltree[20] || 0 !== e3.dyn_ltree[26]) - return h; - for (t3 = 32; t3 < u; t3++) - if (0 !== e3.dyn_ltree[2 * t3]) - return h; - return o; - }(e2)), Y(e2, e2.l_desc), Y(e2, e2.d_desc), a2 = function(e3) { - var t3; - for (X(e3, e3.dyn_ltree, e3.l_desc.max_code), X(e3, e3.dyn_dtree, e3.d_desc.max_code), Y(e3, e3.bl_desc), t3 = c - 1; 3 <= t3 && 0 === e3.bl_tree[2 * S[t3] + 1]; t3--) - ; - return e3.opt_len += 3 * (t3 + 1) + 5 + 5 + 4, t3; - }(e2), i2 = e2.opt_len + 3 + 7 >>> 3, (s2 = e2.static_len + 3 + 7 >>> 3) <= i2 && (i2 = s2)) : i2 = s2 = r2 + 5, r2 + 4 <= i2 && -1 !== t2 ? J(e2, t2, r2, n2) : 4 === e2.strategy || s2 === i2 ? (P(e2, 2 + (n2 ? 1 : 0), 3), K(e2, z, C)) : (P(e2, 4 + (n2 ? 1 : 0), 3), function(e3, t3, r3, n3) { - var i3; - for (P(e3, t3 - 257, 5), P(e3, r3 - 1, 5), P(e3, n3 - 4, 4), i3 = 0; i3 < n3; i3++) - P(e3, e3.bl_tree[2 * S[i3] + 1], 3); - V(e3, e3.dyn_ltree, t3 - 1), V(e3, e3.dyn_dtree, r3 - 1); - }(e2, e2.l_desc.max_code + 1, e2.d_desc.max_code + 1, a2 + 1), K(e2, e2.dyn_ltree, e2.dyn_dtree)), W(e2), n2 && M(e2); - }, r._tr_tally = function(e2, t2, r2) { - return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t2 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t2, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r2, e2.last_lit++, 0 === t2 ? e2.dyn_ltree[2 * r2]++ : (e2.matches++, t2--, e2.dyn_ltree[2 * (A[r2] + u + 1)]++, e2.dyn_dtree[2 * N(t2)]++), e2.last_lit === e2.lit_bufsize - 1; - }, r._tr_align = function(e2) { - P(e2, 2, 3), L(e2, m, z), function(e3) { - 16 === e3.bi_valid ? (U(e3, e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0) : 8 <= e3.bi_valid && (e3.pending_buf[e3.pending++] = 255 & e3.bi_buf, e3.bi_buf >>= 8, e3.bi_valid -= 8); - }(e2); - }; - }, { "../utils/common": 41 }], 53: [function(e, t, r) { - t.exports = function() { - this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0; - }; - }, {}], 54: [function(e, t, r) { - (function(e2) { - !function(r2, n) { - if (!r2.setImmediate) { - var i, s, t2, a, o = 1, h = {}, u = false, l = r2.document, e3 = Object.getPrototypeOf && Object.getPrototypeOf(r2); - e3 = e3 && e3.setTimeout ? e3 : r2, i = "[object process]" === {}.toString.call(r2.process) ? function(e4) { - process.nextTick(function() { - c(e4); - }); - } : function() { - if (r2.postMessage && !r2.importScripts) { - var e4 = true, t3 = r2.onmessage; - return r2.onmessage = function() { - e4 = false; - }, r2.postMessage("", "*"), r2.onmessage = t3, e4; - } - }() ? (a = "setImmediate$" + Math.random() + "$", r2.addEventListener ? r2.addEventListener("message", d, false) : r2.attachEvent("onmessage", d), function(e4) { - r2.postMessage(a + e4, "*"); - }) : r2.MessageChannel ? ((t2 = new MessageChannel()).port1.onmessage = function(e4) { - c(e4.data); - }, function(e4) { - t2.port2.postMessage(e4); - }) : l && "onreadystatechange" in l.createElement("script") ? (s = l.documentElement, function(e4) { - var t3 = l.createElement("script"); - t3.onreadystatechange = function() { - c(e4), t3.onreadystatechange = null, s.removeChild(t3), t3 = null; - }, s.appendChild(t3); - }) : function(e4) { - setTimeout(c, 0, e4); - }, e3.setImmediate = function(e4) { - "function" != typeof e4 && (e4 = new Function("" + e4)); - for (var t3 = new Array(arguments.length - 1), r3 = 0; r3 < t3.length; r3++) - t3[r3] = arguments[r3 + 1]; - var n2 = { callback: e4, args: t3 }; - return h[o] = n2, i(o), o++; - }, e3.clearImmediate = f; - } - function f(e4) { - delete h[e4]; - } - function c(e4) { - if (u) - setTimeout(c, 0, e4); - else { - var t3 = h[e4]; - if (t3) { - u = true; - try { - !function(e5) { - var t4 = e5.callback, r3 = e5.args; - switch (r3.length) { - case 0: - t4(); - break; - case 1: - t4(r3[0]); - break; - case 2: - t4(r3[0], r3[1]); - break; - case 3: - t4(r3[0], r3[1], r3[2]); - break; - default: - t4.apply(n, r3); - } - }(t3); - } finally { - f(e4), u = false; - } - } - } - } - function d(e4) { - e4.source === r2 && "string" == typeof e4.data && 0 === e4.data.indexOf(a) && c(+e4.data.slice(a.length)); - } - }("undefined" == typeof self ? void 0 === e2 ? this : e2 : self); - }).call(this, "undefined" != typeof commonjsGlobal ? commonjsGlobal : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}); - }, {}] }, {}, [10])(10); - }); -})(jszip_min$2); -const jszip_min = jszip_minExports; -const jszip_min$1 = /* @__PURE__ */ _mergeNamespaces({ - __proto__: null, - default: jszip_min -}, [jszip_minExports]); -export { - jszip_min$1 as j -}; diff --git a/_app/immutable/chunks/jszip.min.15bd28ef.js b/_app/immutable/chunks/jszip.min.15bd28ef.js new file mode 100644 index 0000000..6be6c84 --- /dev/null +++ b/_app/immutable/chunks/jszip.min.15bd28ef.js @@ -0,0 +1,12 @@ +import{g as Ot,c as vt}from"./_commonjsHelpers.725317a4.js";function Bt(ct,wt){for(var _=0;_N[w]})}}}return Object.freeze(Object.defineProperty(ct,Symbol.toStringTag,{value:"Module"}))}function yt(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zt={exports:{}};/*! + +JSZip v3.10.1 - A JavaScript class for generating and reading zip files + + +(c) 2009-2016 Stuart Knightley +Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. + +JSZip uses the library pako released under the MIT license : +https://github.com/nodeca/pako/blob/main/LICENSE +*/(function(ct,wt){(function(_){ct.exports=_()})(function(){return function _(N,w,h){function o(g,y){if(!w[g]){if(!N[g]){var p=typeof yt=="function"&&yt;if(!y&&p)return p(g,!0);if(n)return n(g,!0);var b=new Error("Cannot find module '"+g+"'");throw b.code="MODULE_NOT_FOUND",b}var i=w[g]={exports:{}};N[g][0].call(i.exports,function(d){var e=N[g][1][d];return o(e||d)},i,i.exports,_,N,w,h)}return w[g].exports}for(var n=typeof yt=="function"&&yt,u=0;u>2,i=(3&g)<<4|y>>4,d=1>6:64,e=2>4,y=(15&b)<<4|(i=n.indexOf(u.charAt(e++)))>>2,p=(3&i)<<6|(d=n.indexOf(u.charAt(e++))),c[l++]=g,i!==64&&(c[l++]=y),d!==64&&(c[l++]=p);return c}},{"./support":30,"./utils":32}],2:[function(_,N,w){var h=_("./external"),o=_("./stream/DataWorker"),n=_("./stream/Crc32Probe"),u=_("./stream/DataLengthProbe");function g(y,p,b,i,d){this.compressedSize=y,this.uncompressedSize=p,this.crc32=b,this.compression=i,this.compressedContent=d}g.prototype={getContentWorker:function(){var y=new o(h.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),p=this;return y.on("end",function(){if(this.streamInfo.data_length!==p.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new o(h.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},g.createWorkerFrom=function(y,p,b){return y.pipe(new n).pipe(new u("uncompressedSize")).pipe(p.compressWorker(b)).pipe(new u("compressedSize")).withStreamInfo("compression",p)},N.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(_,N,w){var h=_("./stream/GenericWorker");w.STORE={magic:"\0\0",compressWorker:function(){return new h("STORE compression")},uncompressWorker:function(){return new h("STORE decompression")}},w.DEFLATE=_("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(_,N,w){var h=_("./utils"),o=function(){for(var n,u=[],g=0;g<256;g++){n=g;for(var y=0;y<8;y++)n=1&n?3988292384^n>>>1:n>>>1;u[g]=n}return u}();N.exports=function(n,u){return n!==void 0&&n.length?h.getTypeOf(n)!=="string"?function(g,y,p,b){var i=o,d=b+p;g^=-1;for(var e=b;e>>8^i[255&(g^y[e])];return-1^g}(0|u,n,n.length,0):function(g,y,p,b){var i=o,d=b+p;g^=-1;for(var e=b;e>>8^i[255&(g^y.charCodeAt(e))];return-1^g}(0|u,n,n.length,0):0}},{"./utils":32}],5:[function(_,N,w){w.base64=!1,w.binary=!1,w.dir=!1,w.createFolders=!0,w.date=null,w.compression=null,w.compressionOptions=null,w.comment=null,w.unixPermissions=null,w.dosPermissions=null},{}],6:[function(_,N,w){var h=null;h=typeof Promise<"u"?Promise:_("lie"),N.exports={Promise:h}},{lie:37}],7:[function(_,N,w){var h=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=_("pako"),n=_("./utils"),u=_("./stream/GenericWorker"),g=h?"uint8array":"array";function y(p,b){u.call(this,"FlateWorker/"+p),this._pako=null,this._pakoAction=p,this._pakoOptions=b,this.meta={}}w.magic="\b\0",n.inherits(y,u),y.prototype.processChunk=function(p){this.meta=p.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(g,p.data),!1)},y.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var p=this;this._pako.onData=function(b){p.push({data:b,meta:p.meta})}},w.compressWorker=function(p){return new y("Deflate",p)},w.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(_,N,w){function h(i,d){var e,l="";for(e=0;e>>=8;return l}function o(i,d,e,l,a,c){var v,S,x=i.file,D=i.compression,O=c!==g.utf8encode,j=n.transformTo("string",c(x.name)),I=n.transformTo("string",g.utf8encode(x.name)),M=x.comment,V=n.transformTo("string",c(M)),m=n.transformTo("string",g.utf8encode(M)),B=I.length!==x.name.length,r=m.length!==M.length,T="",J="",U="",$=x.dir,L=x.date,q={crc32:0,compressedSize:0,uncompressedSize:0};d&&!e||(q.crc32=i.crc32,q.compressedSize=i.compressedSize,q.uncompressedSize=i.uncompressedSize);var E=0;d&&(E|=8),O||!B&&!r||(E|=2048);var C=0,X=0;$&&(C|=16),a==="UNIX"?(X=798,C|=function(H,nt){var ot=H;return H||(ot=nt?16893:33204),(65535&ot)<<16}(x.unixPermissions,$)):(X=20,C|=function(H){return 63&(H||0)}(x.dosPermissions)),v=L.getUTCHours(),v<<=6,v|=L.getUTCMinutes(),v<<=5,v|=L.getUTCSeconds()/2,S=L.getUTCFullYear()-1980,S<<=4,S|=L.getUTCMonth()+1,S<<=5,S|=L.getUTCDate(),B&&(J=h(1,1)+h(y(j),4)+I,T+="up"+h(J.length,2)+J),r&&(U=h(1,1)+h(y(V),4)+m,T+="uc"+h(U.length,2)+U);var G="";return G+=` +\0`,G+=h(E,2),G+=D.magic,G+=h(v,2),G+=h(S,2),G+=h(q.crc32,4),G+=h(q.compressedSize,4),G+=h(q.uncompressedSize,4),G+=h(j.length,2),G+=h(T.length,2),{fileRecord:p.LOCAL_FILE_HEADER+G+j+T,dirRecord:p.CENTRAL_FILE_HEADER+h(X,2)+G+h(V.length,2)+"\0\0\0\0"+h(C,4)+h(l,4)+j+T+V}}var n=_("../utils"),u=_("../stream/GenericWorker"),g=_("../utf8"),y=_("../crc32"),p=_("../signature");function b(i,d,e,l){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=e,this.encodeFileName=l,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(b,u),b.prototype.push=function(i){var d=i.meta.percent||0,e=this.entriesCount,l=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,u.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:e?(d+100*(e-l-1))/e:100}}))},b.prototype.openedSource=function(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var d=this.streamFiles&&!i.file.dir;if(d){var e=o(i,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:e.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(i){this.accumulate=!1;var d=this.streamFiles&&!i.file.dir,e=o(i,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(e.dirRecord),d)this.push({data:function(l){return p.DATA_DESCRIPTOR+h(l.crc32,4)+h(l.compressedSize,4)+h(l.uncompressedSize,4)}(i),meta:{percent:100}});else for(this.push({data:e.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var i=this.bytesWritten,d=0;d=this.index;u--)g=(g<<8)+this.byteAt(u);return this.index+=n,g},readString:function(n){return h.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},N.exports=o},{"../utils":32}],19:[function(_,N,w){var h=_("./Uint8ArrayReader");function o(n){h.call(this,n)}_("../utils").inherits(o,h),o.prototype.readData=function(n){this.checkOffset(n);var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},N.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(_,N,w){var h=_("./DataReader");function o(n){h.call(this,n)}_("../utils").inherits(o,h),o.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},o.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},o.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},o.prototype.readData=function(n){this.checkOffset(n);var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},N.exports=o},{"../utils":32,"./DataReader":18}],21:[function(_,N,w){var h=_("./ArrayReader");function o(n){h.call(this,n)}_("../utils").inherits(o,h),o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},N.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(_,N,w){var h=_("../utils"),o=_("../support"),n=_("./ArrayReader"),u=_("./StringReader"),g=_("./NodeBufferReader"),y=_("./Uint8ArrayReader");N.exports=function(p){var b=h.getTypeOf(p);return h.checkSupport(b),b!=="string"||o.uint8array?b==="nodebuffer"?new g(p):o.uint8array?new y(h.transformTo("uint8array",p)):new n(h.transformTo("array",p)):new u(p)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(_,N,w){w.LOCAL_FILE_HEADER="PK",w.CENTRAL_FILE_HEADER="PK",w.CENTRAL_DIRECTORY_END="PK",w.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",w.ZIP64_CENTRAL_DIRECTORY_END="PK",w.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(_,N,w){var h=_("./GenericWorker"),o=_("../utils");function n(u){h.call(this,"ConvertWorker to "+u),this.destType=u}o.inherits(n,h),n.prototype.processChunk=function(u){this.push({data:o.transformTo(this.destType,u.data),meta:u.meta})},N.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(_,N,w){var h=_("./GenericWorker"),o=_("../crc32");function n(){h.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}_("../utils").inherits(n,h),n.prototype.processChunk=function(u){this.streamInfo.crc32=o(u.data,this.streamInfo.crc32||0),this.push(u)},N.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(_,N,w){var h=_("../utils"),o=_("./GenericWorker");function n(u){o.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}h.inherits(n,o),n.prototype.processChunk=function(u){if(u){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+u.data.length}o.prototype.processChunk.call(this,u)},N.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(_,N,w){var h=_("../utils"),o=_("./GenericWorker");function n(u){o.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(y){g.dataIsReady=!0,g.data=y,g.max=y&&y.length||0,g.type=h.getTypeOf(y),g.isPaused||g._tickAndRepeat()},function(y){g.error(y)})}h.inherits(n,o),n.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,h.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(h.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,g);break;case"uint8array":u=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":u=this.data.slice(this.index,g)}return this.index=g,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},N.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(_,N,w){function h(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}h.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,n){return this._listeners[o].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,n){if(this._listeners[o])for(var u=0;u "+o:o}},N.exports=h},{}],29:[function(_,N,w){var h=_("../utils"),o=_("./ConvertWorker"),n=_("./GenericWorker"),u=_("../base64"),g=_("../support"),y=_("../external"),p=null;if(g.nodestream)try{p=_("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(d,e){return new y.Promise(function(l,a){var c=[],v=d._internalType,S=d._outputType,x=d._mimeType;d.on("data",function(D,O){c.push(D),e&&e(O)}).on("error",function(D){c=[],a(D)}).on("end",function(){try{var D=function(O,j,I){switch(O){case"blob":return h.newBlob(h.transformTo("arraybuffer",j),I);case"base64":return u.encode(j);default:return h.transformTo(O,j)}}(S,function(O,j){var I,M=0,V=null,m=0;for(I=0;I"u")w.blob=!1;else{var h=new ArrayBuffer(0);try{w.blob=new Blob([h],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(h),w.blob=o.getBlob("application/zip").size===0}catch{w.blob=!1}}}try{w.nodestream=!!_("readable-stream").Readable}catch{w.nodestream=!1}},{"readable-stream":16}],31:[function(_,N,w){for(var h=_("./utils"),o=_("./support"),n=_("./nodejsUtils"),u=_("./stream/GenericWorker"),g=new Array(256),y=0;y<256;y++)g[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;g[254]=g[254]=1;function p(){u.call(this,"utf-8 decode"),this.leftOver=null}function b(){u.call(this,"utf-8 encode")}w.utf8encode=function(i){return o.nodebuffer?n.newBufferFrom(i,"utf-8"):function(d){var e,l,a,c,v,S=d.length,x=0;for(c=0;c>>6:(l<65536?e[v++]=224|l>>>12:(e[v++]=240|l>>>18,e[v++]=128|l>>>12&63),e[v++]=128|l>>>6&63),e[v++]=128|63&l);return e}(i)},w.utf8decode=function(i){return o.nodebuffer?h.transformTo("nodebuffer",i).toString("utf-8"):function(d){var e,l,a,c,v=d.length,S=new Array(2*v);for(e=l=0;e>10&1023,S[l++]=56320|1023&a)}return S.length!==l&&(S.subarray?S=S.subarray(0,l):S.length=l),h.applyFromCharCode(S)}(i=h.transformTo(o.uint8array?"uint8array":"array",i))},h.inherits(p,u),p.prototype.processChunk=function(i){var d=h.transformTo(o.uint8array?"uint8array":"array",i.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var e=d;(d=new Uint8Array(e.length+this.leftOver.length)).set(this.leftOver,0),d.set(e,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var l=function(c,v){var S;for((v=v||c.length)>c.length&&(v=c.length),S=v-1;0<=S&&(192&c[S])==128;)S--;return S<0||S===0?v:S+g[c[S]]>v?S:v}(d),a=d;l!==d.length&&(o.uint8array?(a=d.subarray(0,l),this.leftOver=d.subarray(l,d.length)):(a=d.slice(0,l),this.leftOver=d.slice(l,d.length))),this.push({data:w.utf8decode(a),meta:i.meta})},p.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:w.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},w.Utf8DecodeWorker=p,h.inherits(b,u),b.prototype.processChunk=function(i){this.push({data:w.utf8encode(i.data),meta:i.meta})},w.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(_,N,w){var h=_("./support"),o=_("./base64"),n=_("./nodejsUtils"),u=_("./external");function g(e){return e}function y(e,l){for(var a=0;a>8;this.dir=!!(16&this.externalFileAttributes),i==0&&(this.dosPermissions=63&this.externalFileAttributes),i==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var i=h(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=i.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=i.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=i.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=i.readInt(4))}},readExtraFields:function(i){var d,e,l,a=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index+4>>6:(i<65536?b[l++]=224|i>>>12:(b[l++]=240|i>>>18,b[l++]=128|i>>>12&63),b[l++]=128|i>>>6&63),b[l++]=128|63&i);return b},w.buf2binstring=function(p){return y(p,p.length)},w.binstring2buf=function(p){for(var b=new h.Buf8(p.length),i=0,d=b.length;i>10&1023,c[d++]=56320|1023&e)}return y(c,d)},w.utf8border=function(p,b){var i;for((b=b||p.length)>p.length&&(b=p.length),i=b-1;0<=i&&(192&p[i])==128;)i--;return i<0||i===0?b:i+u[p[i]]>b?i:b}},{"./common":41}],43:[function(_,N,w){N.exports=function(h,o,n,u){for(var g=65535&h|0,y=h>>>16&65535|0,p=0;n!==0;){for(n-=p=2e3>>1:o>>>1;n[u]=o}return n}();N.exports=function(o,n,u,g){var y=h,p=g+u;o^=-1;for(var b=g;b>>8^y[255&(o^n[b])];return-1^o}},{}],46:[function(_,N,w){var h,o=_("../utils/common"),n=_("./trees"),u=_("./adler32"),g=_("./crc32"),y=_("./messages"),p=0,b=4,i=0,d=-2,e=-1,l=4,a=2,c=8,v=9,S=286,x=30,D=19,O=2*S+1,j=15,I=3,M=258,V=M+I+1,m=42,B=113,r=1,T=2,J=3,U=4;function $(t,R){return t.msg=y[R],R}function L(t){return(t<<1)-(4t.avail_out&&(A=t.avail_out),A!==0&&(o.arraySet(t.output,R.pending_buf,R.pending_out,A,t.next_out),t.next_out+=A,R.pending_out+=A,t.total_out+=A,t.avail_out-=A,R.pending-=A,R.pending===0&&(R.pending_out=0))}function C(t,R){n._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,R),t.block_start=t.strstart,E(t.strm)}function X(t,R){t.pending_buf[t.pending++]=R}function G(t,R){t.pending_buf[t.pending++]=R>>>8&255,t.pending_buf[t.pending++]=255&R}function H(t,R){var A,f,s=t.max_chain_length,k=t.strstart,F=t.prev_length,P=t.nice_match,z=t.strstart>t.w_size-V?t.strstart-(t.w_size-V):0,Z=t.window,K=t.w_mask,W=t.prev,Y=t.strstart+M,et=Z[k+F-1],tt=Z[k+F];t.prev_length>=t.good_match&&(s>>=2),P>t.lookahead&&(P=t.lookahead);do if(Z[(A=R)+F]===tt&&Z[A+F-1]===et&&Z[A]===Z[k]&&Z[++A]===Z[k+1]){k+=2,A++;do;while(Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&kz&&--s!=0);return F<=t.lookahead?F:t.lookahead}function nt(t){var R,A,f,s,k,F,P,z,Z,K,W=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=W+(W-V)){for(o.arraySet(t.window,t.window,W,W,0),t.match_start-=W,t.strstart-=W,t.block_start-=W,R=A=t.hash_size;f=t.head[--R],t.head[R]=W<=f?f-W:0,--A;);for(R=A=W;f=t.prev[--R],t.prev[R]=W<=f?f-W:0,--A;);s+=W}if(t.strm.avail_in===0)break;if(F=t.strm,P=t.window,z=t.strstart+t.lookahead,Z=s,K=void 0,K=F.avail_in,Z=I)for(k=t.strstart-t.insert,t.ins_h=t.window[k],t.ins_h=(t.ins_h<=I&&(t.ins_h=(t.ins_h<=I)if(f=n._tr_tally(t,t.strstart-t.match_start,t.match_length-I),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=I){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=I&&(t.ins_h=(t.ins_h<=I&&t.match_length<=t.prev_length){for(s=t.strstart+t.lookahead-I,f=n._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-I),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=s&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(A=t.pending_buf_size-5);;){if(t.lookahead<=1){if(nt(t),t.lookahead===0&&R===p)return r;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var f=t.block_start+A;if((t.strstart===0||t.strstart>=f)&&(t.lookahead=t.strstart-f,t.strstart=f,C(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-V&&(C(t,!1),t.strm.avail_out===0))return r}return t.insert=0,R===b?(C(t,!0),t.strm.avail_out===0?J:U):(t.strstart>t.block_start&&(C(t,!1),t.strm.avail_out),r)}),new rt(4,4,8,4,ot),new rt(4,5,16,8,ot),new rt(4,6,32,32,ot),new rt(4,4,16,16,Q),new rt(8,16,32,32,Q),new rt(8,16,128,128,Q),new rt(8,32,128,256,Q),new rt(32,128,258,1024,Q),new rt(32,258,258,4096,Q)],w.deflateInit=function(t,R){return ut(t,R,c,15,8,0)},w.deflateInit2=ut,w.deflateReset=lt,w.deflateResetKeep=it,w.deflateSetHeader=function(t,R){return t&&t.state?t.state.wrap!==2?d:(t.state.gzhead=R,i):d},w.deflate=function(t,R){var A,f,s,k;if(!t||!t.state||5>8&255),X(f,f.gzhead.time>>16&255),X(f,f.gzhead.time>>24&255),X(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),X(f,255&f.gzhead.os),f.gzhead.extra&&f.gzhead.extra.length&&(X(f,255&f.gzhead.extra.length),X(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(t.adler=g(t.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(X(f,0),X(f,0),X(f,0),X(f,0),X(f,0),X(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),X(f,3),f.status=B);else{var F=c+(f.w_bits-8<<4)<<8;F|=(2<=f.strategy||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6,f.strstart!==0&&(F|=32),F+=31-F%31,f.status=B,G(f,F),f.strstart!==0&&(G(f,t.adler>>>16),G(f,65535&t.adler)),t.adler=1}if(f.status===69)if(f.gzhead.extra){for(s=f.pending;f.gzindex<(65535&f.gzhead.extra.length)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),E(t),s=f.pending,f.pending!==f.pending_buf_size));)X(f,255&f.gzhead.extra[f.gzindex]),f.gzindex++;f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){s=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),E(t),s=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindexs&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),k===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===91)if(f.gzhead.comment){s=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),E(t),s=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindexs&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),k===0&&(f.status=103)}else f.status=103;if(f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&E(t),f.pending+2<=f.pending_buf_size&&(X(f,255&t.adler),X(f,t.adler>>8&255),t.adler=0,f.status=B)):f.status=B),f.pending!==0){if(E(t),t.avail_out===0)return f.last_flush=-1,i}else if(t.avail_in===0&&L(R)<=L(A)&&R!==b)return $(t,-5);if(f.status===666&&t.avail_in!==0)return $(t,-5);if(t.avail_in!==0||f.lookahead!==0||R!==p&&f.status!==666){var P=f.strategy===2?function(z,Z){for(var K;;){if(z.lookahead===0&&(nt(z),z.lookahead===0)){if(Z===p)return r;break}if(z.match_length=0,K=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,K&&(C(z,!1),z.strm.avail_out===0))return r}return z.insert=0,Z===b?(C(z,!0),z.strm.avail_out===0?J:U):z.last_lit&&(C(z,!1),z.strm.avail_out===0)?r:T}(f,R):f.strategy===3?function(z,Z){for(var K,W,Y,et,tt=z.window;;){if(z.lookahead<=M){if(nt(z),z.lookahead<=M&&Z===p)return r;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=I&&0z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=I?(K=n._tr_tally(z,1,z.match_length-I),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(K=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),K&&(C(z,!1),z.strm.avail_out===0))return r}return z.insert=0,Z===b?(C(z,!0),z.strm.avail_out===0?J:U):z.last_lit&&(C(z,!1),z.strm.avail_out===0)?r:T}(f,R):h[f.level].func(f,R);if(P!==J&&P!==U||(f.status=666),P===r||P===J)return t.avail_out===0&&(f.last_flush=-1),i;if(P===T&&(R===1?n._tr_align(f):R!==5&&(n._tr_stored_block(f,0,0,!1),R===3&&(q(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),E(t),t.avail_out===0))return f.last_flush=-1,i}return R!==b?i:f.wrap<=0?1:(f.wrap===2?(X(f,255&t.adler),X(f,t.adler>>8&255),X(f,t.adler>>16&255),X(f,t.adler>>24&255),X(f,255&t.total_in),X(f,t.total_in>>8&255),X(f,t.total_in>>16&255),X(f,t.total_in>>24&255)):(G(f,t.adler>>>16),G(f,65535&t.adler)),E(t),0=A.w_size&&(k===0&&(q(A.head),A.strstart=0,A.block_start=0,A.insert=0),Z=new o.Buf8(A.w_size),o.arraySet(Z,R,K-A.w_size,A.w_size,0),R=Z,K=A.w_size),F=t.avail_in,P=t.next_in,z=t.input,t.avail_in=K,t.next_in=0,t.input=R,nt(A);A.lookahead>=I;){for(f=A.strstart,s=A.lookahead-(I-1);A.ins_h=(A.ins_h<>>=I=j>>>24,v-=I,(I=j>>>16&255)===0)T[y++]=65535&j;else{if(!(16&I)){if(!(64&I)){j=S[(65535&j)+(c&(1<>>=I,v-=I),v<15&&(c+=r[u++]<>>=I=j>>>24,v-=I,!(16&(I=j>>>16&255))){if(!(64&I)){j=x[(65535&j)+(c&(1<>>=I,v-=I,(I=y-p)>3,c&=(1<<(v-=M<<3))-1,h.next_in=u,h.next_out=y,h.avail_in=u>>24&255)+(m>>>8&65280)+((65280&m)<<8)+((255&m)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new h.Buf16(320),this.work=new h.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(m){var B;return m&&m.state?(B=m.state,m.total_in=m.total_out=B.total=0,m.msg="",B.wrap&&(m.adler=1&B.wrap),B.mode=d,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new h.Buf32(e),B.distcode=B.distdyn=new h.Buf32(l),B.sane=1,B.back=-1,b):i}function S(m){var B;return m&&m.state?((B=m.state).wsize=0,B.whave=0,B.wnext=0,v(m)):i}function x(m,B){var r,T;return m&&m.state?(T=m.state,B<0?(r=0,B=-B):(r=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15=U.wsize?(h.arraySet(U.window,B,r-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize):(T<(J=U.wsize-U.wnext)&&(J=T),h.arraySet(U.window,B,r-T,J,U.wnext),(T-=J)?(h.arraySet(U.window,B,r-T,T,0),U.wnext=T,U.whave=U.wsize):(U.wnext+=J,U.wnext===U.wsize&&(U.wnext=0),U.whave>>8&255,r.check=n(r.check,k,2,0),C=E=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&E)<<8)+(E>>8))%31){m.msg="incorrect header check",r.mode=30;break}if((15&E)!=8){m.msg="unknown compression method",r.mode=30;break}if(C-=4,t=8+(15&(E>>>=4)),r.wbits===0)r.wbits=t;else if(t>r.wbits){m.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(k[0]=255&E,k[1]=E>>>8&255,r.check=n(r.check,k,2,0)),C=E=0,r.mode=3;case 3:for(;C<32;){if(L===0)break t;L--,E+=T[U++]<>>8&255,k[2]=E>>>16&255,k[3]=E>>>24&255,r.check=n(r.check,k,4,0)),C=E=0,r.mode=4;case 4:for(;C<16;){if(L===0)break t;L--,E+=T[U++]<>8),512&r.flags&&(k[0]=255&E,k[1]=E>>>8&255,r.check=n(r.check,k,2,0)),C=E=0,r.mode=5;case 5:if(1024&r.flags){for(;C<16;){if(L===0)break t;L--,E+=T[U++]<>>8&255,r.check=n(r.check,k,2,0)),C=E=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(L<(H=r.length)&&(H=L),H&&(r.head&&(t=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),h.arraySet(r.head.extra,T,U,H,t)),512&r.flags&&(r.check=n(r.check,T,H,U)),L-=H,U+=H,r.length-=H),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(L===0)break t;for(H=0;t=T[U+H++],r.head&&t&&r.length<65536&&(r.head.name+=String.fromCharCode(t)),t&&H>9&1,r.head.done=!0),m.adler=r.check=0,r.mode=12;break;case 10:for(;C<32;){if(L===0)break t;L--,E+=T[U++]<>>=7&C,C-=7&C,r.mode=27;break}for(;C<3;){if(L===0)break t;L--,E+=T[U++]<>>=1)){case 0:r.mode=14;break;case 1:if(M(r),r.mode=20,B!==6)break;E>>>=2,C-=2;break t;case 2:r.mode=17;break;case 3:m.msg="invalid block type",r.mode=30}E>>>=2,C-=2;break;case 14:for(E>>>=7&C,C-=7&C;C<32;){if(L===0)break t;L--,E+=T[U++]<>>16^65535)){m.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&E,C=E=0,r.mode=15,B===6)break t;case 15:r.mode=16;case 16:if(H=r.length){if(L>>=5,C-=5,r.ndist=1+(31&E),E>>>=5,C-=5,r.ncode=4+(15&E),E>>>=4,C-=4,286>>=3,C-=3}for(;r.have<19;)r.lens[F[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,A={bits:r.lenbits},R=g(0,r.lens,0,19,r.lencode,0,r.work,A),r.lenbits=A.bits,R){m.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,st=65535&s,!((Q=s>>>24)<=C);){if(L===0)break t;L--,E+=T[U++]<>>=Q,C-=Q,r.lens[r.have++]=st;else{if(st===16){for(f=Q+2;C>>=Q,C-=Q,r.have===0){m.msg="invalid bit length repeat",r.mode=30;break}t=r.lens[r.have-1],H=3+(3&E),E>>>=2,C-=2}else if(st===17){for(f=Q+3;C>>=Q)),E>>>=3,C-=3}else{for(f=Q+7;C>>=Q)),E>>>=7,C-=7}if(r.have+H>r.nlen+r.ndist){m.msg="invalid bit length repeat",r.mode=30;break}for(;H--;)r.lens[r.have++]=t}}if(r.mode===30)break;if(r.lens[256]===0){m.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,A={bits:r.lenbits},R=g(y,r.lens,0,r.nlen,r.lencode,0,r.work,A),r.lenbits=A.bits,R){m.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,A={bits:r.distbits},R=g(p,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A),r.distbits=A.bits,R){m.msg="invalid distances set",r.mode=30;break}if(r.mode=20,B===6)break t;case 20:r.mode=21;case 21:if(6<=L&&258<=q){m.next_out=$,m.avail_out=q,m.next_in=U,m.avail_in=L,r.hold=E,r.bits=C,u(m,G),$=m.next_out,J=m.output,q=m.avail_out,U=m.next_in,T=m.input,L=m.avail_in,E=r.hold,C=r.bits,r.mode===12&&(r.back=-1);break}for(r.back=0;rt=(s=r.lencode[E&(1<>>16&255,st=65535&s,!((Q=s>>>24)<=C);){if(L===0)break t;L--,E+=T[U++]<>it)])>>>16&255,st=65535&s,!(it+(Q=s>>>24)<=C);){if(L===0)break t;L--,E+=T[U++]<>>=it,C-=it,r.back+=it}if(E>>>=Q,C-=Q,r.back+=Q,r.length=st,rt===0){r.mode=26;break}if(32&rt){r.back=-1,r.mode=12;break}if(64&rt){m.msg="invalid literal/length code",r.mode=30;break}r.extra=15&rt,r.mode=22;case 22:if(r.extra){for(f=r.extra;C>>=r.extra,C-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;rt=(s=r.distcode[E&(1<>>16&255,st=65535&s,!((Q=s>>>24)<=C);){if(L===0)break t;L--,E+=T[U++]<>it)])>>>16&255,st=65535&s,!(it+(Q=s>>>24)<=C);){if(L===0)break t;L--,E+=T[U++]<>>=it,C-=it,r.back+=it}if(E>>>=Q,C-=Q,r.back+=Q,64&rt){m.msg="invalid distance code",r.mode=30;break}r.offset=st,r.extra=15&rt,r.mode=24;case 24:if(r.extra){for(f=r.extra;C>>=r.extra,C-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){m.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(q===0)break t;if(H=G-q,r.offset>H){if((H=r.offset-H)>r.whave&&r.sane){m.msg="invalid distance too far back",r.mode=30;break}nt=H>r.wnext?(H-=r.wnext,r.wsize-H):r.wnext-H,H>r.length&&(H=r.length),ot=r.window}else ot=J,nt=$-r.offset,H=r.length;for(qO?(I=nt[ot+l[B]],C[X+l[B]]):(I=96,0),c=1<>$)+(v-=c)]=j<<24|I<<16|M|0,v!==0;);for(c=1<>=1;if(c!==0?(E&=c-1,E+=c):E=0,B++,--G[m]==0){if(m===T)break;m=p[b+l[B]]}if(J>>7)]}function X(s,k){s.pending_buf[s.pending++]=255&k,s.pending_buf[s.pending++]=k>>>8&255}function G(s,k,F){s.bi_valid>a-F?(s.bi_buf|=k<>a-s.bi_valid,s.bi_valid+=F-a):(s.bi_buf|=k<>>=1,F<<=1,0<--k;);return F>>>1}function ot(s,k,F){var P,z,Z=new Array(l+1),K=0;for(P=1;P<=l;P++)Z[P]=K=K+F[P-1]<<1;for(z=0;z<=k;z++){var W=s[2*z+1];W!==0&&(s[2*z]=nt(Z[W]++,W))}}function Q(s){var k;for(k=0;k>1;1<=F;F--)it(s,Z,F);for(z=Y;F=s.heap[1],s.heap[1]=s.heap[s.heap_len--],it(s,Z,1),P=s.heap[1],s.heap[--s.heap_max]=F,s.heap[--s.heap_max]=P,Z[2*z]=Z[2*F]+Z[2*P],s.depth[z]=(s.depth[F]>=s.depth[P]?s.depth[F]:s.depth[P])+1,Z[2*F+1]=Z[2*P+1]=z,s.heap[1]=z++,it(s,Z,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(tt,ht){var pt,ft,mt,at,gt,kt,dt=ht.dyn_tree,xt=ht.max_code,Et=ht.stat_desc.static_tree,At=ht.stat_desc.has_stree,It=ht.stat_desc.extra_bits,St=ht.stat_desc.extra_base,_t=ht.stat_desc.max_length,bt=0;for(at=0;at<=l;at++)tt.bl_count[at]=0;for(dt[2*tt.heap[tt.heap_max]+1]=0,pt=tt.heap_max+1;pt>=7;z>>=1)if(1&et&&W.dyn_ltree[2*Y]!==0)return o;if(W.dyn_ltree[18]!==0||W.dyn_ltree[20]!==0||W.dyn_ltree[26]!==0)return n;for(Y=32;Y>>3,(Z=s.static_len+3+7>>>3)<=z&&(z=Z)):z=Z=F+5,F+4<=z&&k!==-1?f(s,k,F,P):s.strategy===4||Z===z?(G(s,2+(P?1:0),3),lt(s,V,m)):(G(s,4+(P?1:0),3),function(W,Y,et,tt){var ht;for(G(W,Y-257,5),G(W,et-1,5),G(W,tt-4,4),ht=0;ht>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&k,s.pending_buf[s.l_buf+s.last_lit]=255&F,s.last_lit++,k===0?s.dyn_ltree[2*F]++:(s.matches++,k--,s.dyn_ltree[2*(r[F]+p+1)]++,s.dyn_dtree[2*C(k)]++),s.last_lit===s.lit_bufsize-1},w._tr_align=function(s){G(s,2,3),H(s,v,V),function(k){k.bi_valid===16?(X(k,k.bi_buf),k.bi_buf=0,k.bi_valid=0):8<=k.bi_valid&&(k.pending_buf[k.pending++]=255&k.bi_buf,k.bi_buf>>=8,k.bi_valid-=8)}(s)}},{"../utils/common":41}],53:[function(_,N,w){N.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(_,N,w){(function(h){(function(o,n){if(!o.setImmediate){var u,g,y,p,b=1,i={},d=!1,e=o.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(o);l=l&&l.setTimeout?l:o,u={}.toString.call(o.process)==="[object process]"?function(S){process.nextTick(function(){c(S)})}:function(){if(o.postMessage&&!o.importScripts){var S=!0,x=o.onmessage;return o.onmessage=function(){S=!1},o.postMessage("","*"),o.onmessage=x,S}}()?(p="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",v,!1):o.attachEvent("onmessage",v),function(S){o.postMessage(p+S,"*")}):o.MessageChannel?((y=new MessageChannel).port1.onmessage=function(S){c(S.data)},function(S){y.port2.postMessage(S)}):e&&"onreadystatechange"in e.createElement("script")?(g=e.documentElement,function(S){var x=e.createElement("script");x.onreadystatechange=function(){c(S),x.onreadystatechange=null,g.removeChild(x),x=null},g.appendChild(x)}):function(S){setTimeout(c,0,S)},l.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var x=new Array(arguments.length-1),D=0;D"u"?h===void 0?this:h:self)}).call(this,typeof vt<"u"?vt:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(zt);var Ct=zt.exports;const Rt=Ot(Ct),Dt=Bt({__proto__:null,default:Rt},[Ct]);export{Dt as j}; diff --git a/_app/immutable/chunks/preload-helper-f8376bb0.js b/_app/immutable/chunks/preload-helper-f8376bb0.js deleted file mode 100644 index 8632d9b..0000000 --- a/_app/immutable/chunks/preload-helper-f8376bb0.js +++ /dev/null @@ -1,47 +0,0 @@ -const scriptRel = "modulepreload"; -const assetsURL = function(dep, importerUrl) { - return new URL(dep, importerUrl).href; -}; -const seen = {}; -const __vitePreload = function preload(baseModule, deps, importerUrl) { - if (!deps || deps.length === 0) { - return baseModule(); - } - const links = document.getElementsByTagName("link"); - return Promise.all(deps.map((dep) => { - dep = assetsURL(dep, importerUrl); - if (dep in seen) - return; - seen[dep] = true; - const isCss = dep.endsWith(".css"); - const cssSelector = isCss ? '[rel="stylesheet"]' : ""; - const isBaseRelative = !!importerUrl; - if (isBaseRelative) { - for (let i = links.length - 1; i >= 0; i--) { - const link2 = links[i]; - if (link2.href === dep && (!isCss || link2.rel === "stylesheet")) { - return; - } - } - } else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) { - return; - } - const link = document.createElement("link"); - link.rel = isCss ? "stylesheet" : scriptRel; - if (!isCss) { - link.as = "script"; - link.crossOrigin = ""; - } - link.href = dep; - document.head.appendChild(link); - if (isCss) { - return new Promise((res, rej) => { - link.addEventListener("load", res); - link.addEventListener("error", () => rej(new Error(`Unable to preload CSS for ${dep}`))); - }); - } - })).then(() => baseModule()); -}; -export { - __vitePreload as _ -}; diff --git a/_app/immutable/chunks/preload-helper.a4192956.js b/_app/immutable/chunks/preload-helper.a4192956.js new file mode 100644 index 0000000..32dfe70 --- /dev/null +++ b/_app/immutable/chunks/preload-helper.a4192956.js @@ -0,0 +1 @@ +const h="modulepreload",d=function(l,s){return new URL(l,s).href},u={},v=function(s,i,c){if(!i||i.length===0)return s();const a=document.getElementsByTagName("link");return Promise.all(i.map(e=>{if(e=d(e,c),e in u)return;u[e]=!0;const t=e.endsWith(".css"),f=t?'[rel="stylesheet"]':"";if(!!c)for(let r=a.length-1;r>=0;r--){const o=a[r];if(o.href===e&&(!t||o.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${f}`))return;const n=document.createElement("link");if(n.rel=t?"stylesheet":h,t||(n.as="script",n.crossOrigin=""),n.href=e,document.head.appendChild(n),t)return new Promise((r,o)=>{n.addEventListener("load",r),n.addEventListener("error",()=>o(new Error(`Unable to preload CSS for ${e}`)))})})).then(()=>s()).catch(e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e})};export{v as _}; diff --git a/_app/immutable/chunks/singletons-61d560ad.js b/_app/immutable/chunks/singletons-61d560ad.js deleted file mode 100644 index fabf0c4..0000000 --- a/_app/immutable/chunks/singletons-61d560ad.js +++ /dev/null @@ -1,185 +0,0 @@ -import { w as writable } from "./index-fc865e59.js"; -const base = ""; -let assets = base; -function set_assets(path) { - assets = path; -} -let version = ""; -function set_version(value) { - version = value; -} -const SNAPSHOT_KEY = "sveltekit:snapshot"; -const SCROLL_KEY = "sveltekit:scroll"; -const INDEX_KEY = "sveltekit:index"; -const PRELOAD_PRIORITIES = ( - /** @type {const} */ - { - tap: 1, - hover: 2, - viewport: 3, - eager: 4, - off: -1 - } -); -function get_base_uri(doc) { - let baseURI = doc.baseURI; - if (!baseURI) { - const baseTags = doc.getElementsByTagName("base"); - baseURI = baseTags.length ? baseTags[0].href : doc.URL; - } - return baseURI; -} -function scroll_state() { - return { - x: pageXOffset, - y: pageYOffset - }; -} -function link_option(element, name) { - const value = ( - /** @type {ValidLinkOptions | null} */ - element.getAttribute(`data-sveltekit-${name}`) - ); - return value; -} -const levels = { - ...PRELOAD_PRIORITIES, - "": PRELOAD_PRIORITIES.hover -}; -function parent_element(element) { - let parent = element.assignedSlot ?? element.parentNode; - if ((parent == null ? void 0 : parent.nodeType) === 11) - parent = parent.host; - return ( - /** @type {Element} */ - parent - ); -} -function find_anchor(element, target) { - while (element && element !== target) { - if (element.nodeName.toUpperCase() === "A" && element.hasAttribute("href")) { - return ( - /** @type {HTMLAnchorElement | SVGAElement} */ - element - ); - } - element = /** @type {Element} */ - parent_element(element); - } -} -function get_link_info(a, base2) { - let url; - try { - url = new URL(a instanceof SVGAElement ? a.href.baseVal : a.href, document.baseURI); - } catch { - } - const target = a instanceof SVGAElement ? a.target.baseVal : a.target; - const external = !url || !!target || is_external_url(url, base2) || (a.getAttribute("rel") || "").split(/\s+/).includes("external") || a.hasAttribute("download"); - return { url, external, target }; -} -function get_router_options(element) { - let noscroll = null; - let preload_code = null; - let preload_data = null; - let reload = null; - let el = element; - while (el && el !== document.documentElement) { - if (preload_code === null) - preload_code = link_option(el, "preload-code"); - if (preload_data === null) - preload_data = link_option(el, "preload-data"); - if (noscroll === null) - noscroll = link_option(el, "noscroll"); - if (reload === null) - reload = link_option(el, "reload"); - el = /** @type {Element} */ - parent_element(el); - } - return { - preload_code: levels[preload_code ?? "off"], - preload_data: levels[preload_data ?? "off"], - noscroll: noscroll === "off" ? false : noscroll === "" ? true : null, - reload: reload === "off" ? false : reload === "" ? true : null - }; -} -function notifiable_store(value) { - const store = writable(value); - let ready = true; - function notify() { - ready = true; - store.update((val) => val); - } - function set(new_value) { - ready = false; - store.set(new_value); - } - function subscribe(run) { - let old_value; - return store.subscribe((new_value) => { - if (old_value === void 0 || ready && new_value !== old_value) { - run(old_value = new_value); - } - }); - } - return { notify, set, subscribe }; -} -function create_updated_store() { - const { set, subscribe } = writable(false); - let timeout; - async function check() { - clearTimeout(timeout); - const res = await fetch(`${assets}/${"_app/version.json"}`, { - headers: { - pragma: "no-cache", - "cache-control": "no-cache" - } - }); - if (res.ok) { - const data = await res.json(); - const updated = data.version !== version; - if (updated) { - set(true); - clearTimeout(timeout); - } - return updated; - } else { - throw new Error(`Version check failed: ${res.status}`); - } - } - return { - subscribe, - check - }; -} -function is_external_url(url, base2) { - return url.origin !== location.origin || !url.pathname.startsWith(base2); -} -function init(opts) { - opts.client; -} -const stores = { - url: notifiable_store({}), - page: notifiable_store({}), - navigating: writable( - /** @type {import('types').Navigation | null} */ - null - ), - updated: create_updated_store() -}; -export { - INDEX_KEY as I, - PRELOAD_PRIORITIES as P, - SCROLL_KEY as S, - SNAPSHOT_KEY as a, - get_link_info as b, - get_router_options as c, - scroll_state as d, - base as e, - find_anchor as f, - get_base_uri as g, - init as h, - is_external_url as i, - set_assets as j, - set_version as k, - stores as s -}; diff --git a/_app/immutable/chunks/singletons.4f4b311d.js b/_app/immutable/chunks/singletons.4f4b311d.js new file mode 100644 index 0000000..f584cdb --- /dev/null +++ b/_app/immutable/chunks/singletons.4f4b311d.js @@ -0,0 +1 @@ +import{w as u}from"./index.18554981.js";var _;const k=((_=globalThis.__sveltekit_1ikxzv8)==null?void 0:_.base)??"";var g;const m=((g=globalThis.__sveltekit_1ikxzv8)==null?void 0:g.assets)??k,w="1713231812817",T="sveltekit:snapshot",x="sveltekit:scroll",y="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},h=location.origin;function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function b(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function O(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=b(e)}}function U(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!o||A(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===h&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function L(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=b(s);function i(v){switch(v){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function E(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${m}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==w;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function A(e,t){return e.origin!==h||!e.pathname.startsWith(t)}function N(e){e.client}const P={url:p({}),page:p({}),navigating:u(null),updated:E()};export{y as I,f as P,x as S,T as a,U as b,L as c,P as d,k as e,O as f,I as g,N as h,A as i,h as o,S as s}; diff --git a/_app/immutable/components/error.svelte-e4b99ac8.js b/_app/immutable/components/error.svelte-e4b99ac8.js deleted file mode 100644 index c341614..0000000 --- a/_app/immutable/components/error.svelte-e4b99ac8.js +++ /dev/null @@ -1,99 +0,0 @@ -import { S as SvelteComponent, i as init, s as safe_not_equal, k as element, q as text, a as space, l as claim_element, m as children, r as claim_text, h as detach, c as claim_space, b as insert_hydration, H as append_hydration, u as set_data, C as noop, I as component_subscribe } from "../chunks/index-31b80213.js"; -import { s as stores } from "../chunks/singletons-61d560ad.js"; -const getStores = () => { - const stores$1 = stores; - return { - page: { - subscribe: stores$1.page.subscribe - }, - navigating: { - subscribe: stores$1.navigating.subscribe - }, - updated: stores$1.updated - }; -}; -const page = { - /** @param {(value: any) => void} fn */ - subscribe(fn) { - const store = getStores().page; - return store.subscribe(fn); - } -}; -function create_fragment(ctx) { - var _a; - let h1; - let t0_value = ( - /*$page*/ - ctx[0].status + "" - ); - let t0; - let t1; - let p; - let t2_value = ( - /*$page*/ - ((_a = ctx[0].error) == null ? void 0 : _a.message) + "" - ); - let t2; - return { - c() { - h1 = element("h1"); - t0 = text(t0_value); - t1 = space(); - p = element("p"); - t2 = text(t2_value); - }, - l(nodes) { - h1 = claim_element(nodes, "H1", {}); - var h1_nodes = children(h1); - t0 = claim_text(h1_nodes, t0_value); - h1_nodes.forEach(detach); - t1 = claim_space(nodes); - p = claim_element(nodes, "P", {}); - var p_nodes = children(p); - t2 = claim_text(p_nodes, t2_value); - p_nodes.forEach(detach); - }, - m(target, anchor) { - insert_hydration(target, h1, anchor); - append_hydration(h1, t0); - insert_hydration(target, t1, anchor); - insert_hydration(target, p, anchor); - append_hydration(p, t2); - }, - p(ctx2, [dirty]) { - var _a2; - if (dirty & /*$page*/ - 1 && t0_value !== (t0_value = /*$page*/ - ctx2[0].status + "")) - set_data(t0, t0_value); - if (dirty & /*$page*/ - 1 && t2_value !== (t2_value = /*$page*/ - ((_a2 = ctx2[0].error) == null ? void 0 : _a2.message) + "")) - set_data(t2, t2_value); - }, - i: noop, - o: noop, - d(detaching) { - if (detaching) - detach(h1); - if (detaching) - detach(t1); - if (detaching) - detach(p); - } - }; -} -function instance($$self, $$props, $$invalidate) { - let $page; - component_subscribe($$self, page, ($$value) => $$invalidate(0, $page = $$value)); - return [$page]; -} -let Error$1 = class Error extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance, create_fragment, safe_not_equal, {}); - } -}; -export { - Error$1 as default -}; diff --git a/_app/immutable/components/pages/_layout.svelte-44e755b8.js b/_app/immutable/components/pages/_layout.svelte-44e755b8.js deleted file mode 100644 index 609656a..0000000 --- a/_app/immutable/components/pages/_layout.svelte-44e755b8.js +++ /dev/null @@ -1,101 +0,0 @@ -import { S as SvelteComponent, i as init, s as safe_not_equal, D as create_slot, k as element, l as claim_element, m as children, h as detach, n as attr, b as insert_hydration, E as update_slot_base, F as get_all_dirty_from_scope, G as get_slot_changes, f as transition_in, t as transition_out } from "../../chunks/index-31b80213.js"; -const app = ""; -function create_fragment(ctx) { - let div; - let current; - const default_slot_template = ( - /*#slots*/ - ctx[1].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[0], - null - ); - return { - c() { - div = element("div"); - if (default_slot) - default_slot.c(); - this.h(); - }, - l(nodes) { - div = claim_element(nodes, "DIV", { class: true }); - var div_nodes = children(div); - if (default_slot) - default_slot.l(div_nodes); - div_nodes.forEach(detach); - this.h(); - }, - h() { - attr(div, "class", "min-h-screen h-px"); - }, - m(target, anchor) { - insert_hydration(target, div, anchor); - if (default_slot) { - default_slot.m(div, null); - } - current = true; - }, - p(ctx2, [dirty]) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 1)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[0], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[0] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[0], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (detaching) - detach(div); - if (default_slot) - default_slot.d(detaching); - } - }; -} -function instance($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - $$self.$$set = ($$props2) => { - if ("$$scope" in $$props2) - $$invalidate(0, $$scope = $$props2.$$scope); - }; - return [$$scope, slots]; -} -class Layout extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance, create_fragment, safe_not_equal, {}); - } -} -export { - Layout as default -}; diff --git a/_app/immutable/components/pages/_page.svelte-c8674a26.js b/_app/immutable/components/pages/_page.svelte-c8674a26.js deleted file mode 100644 index 23163bd..0000000 --- a/_app/immutable/components/pages/_page.svelte-c8674a26.js +++ /dev/null @@ -1,3188 +0,0 @@ -import { _ as __vitePreload } from "../../chunks/preload-helper-f8376bb0.js"; -import { J as assign, K as now, L as loop, M as identity, S as SvelteComponent, i as init, s as safe_not_equal, k as element, q as text, a as space, l as claim_element, m as children, r as claim_text, h as detach, c as claim_space, n as attr, b as insert_hydration, H as append_hydration, u as set_data, C as noop, e as empty, N as toggle_class, O as listen, f as transition_in, g as group_outros, t as transition_out, d as check_outros, v as binding_callbacks, P as bind, x as create_component, y as claim_component, z as mount_component, Q as add_flush_callback, A as destroy_component, D as create_slot, E as update_slot_base, F as get_all_dirty_from_scope, G as get_slot_changes, R as set_input_value, T as to_number, U as add_render_callback, V as select_option, W as destroy_each, X as select_value, Y as src_url_equal, Z as stop_propagation, _ as prevent_default, I as component_subscribe, o as onMount, $ as run_all, a0 as bubble } from "../../chunks/index-31b80213.js"; -import { w as writable } from "../../chunks/index-fc865e59.js"; -function is_date(obj) { - return Object.prototype.toString.call(obj) === "[object Date]"; -} -function get_interpolator(a, b) { - if (a === b || a !== a) - return () => a; - const type = typeof a; - if (type !== typeof b || Array.isArray(a) !== Array.isArray(b)) { - throw new Error("Cannot interpolate values of different type"); - } - if (Array.isArray(a)) { - const arr = b.map((bi, i) => { - return get_interpolator(a[i], bi); - }); - return (t) => arr.map((fn) => fn(t)); - } - if (type === "object") { - if (!a || !b) - throw new Error("Object cannot be null"); - if (is_date(a) && is_date(b)) { - a = a.getTime(); - b = b.getTime(); - const delta = b - a; - return (t) => new Date(a + t * delta); - } - const keys = Object.keys(b); - const interpolators = {}; - keys.forEach((key) => { - interpolators[key] = get_interpolator(a[key], b[key]); - }); - return (t) => { - const result = {}; - keys.forEach((key) => { - result[key] = interpolators[key](t); - }); - return result; - }; - } - if (type === "number") { - const delta = b - a; - return (t) => a + t * delta; - } - throw new Error(`Cannot interpolate ${type} values`); -} -function tweened(value, defaults = {}) { - const store = writable(value); - let task; - let target_value = value; - function set(new_value, opts) { - if (value == null) { - store.set(value = new_value); - return Promise.resolve(); - } - target_value = new_value; - let previous_task = task; - let started = false; - let { delay = 0, duration = 400, easing = identity, interpolate = get_interpolator } = assign(assign({}, defaults), opts); - if (duration === 0) { - if (previous_task) { - previous_task.abort(); - previous_task = null; - } - store.set(value = target_value); - return Promise.resolve(); - } - const start = now() + delay; - let fn; - task = loop((now2) => { - if (now2 < start) - return true; - if (!started) { - fn = interpolate(value, new_value); - if (typeof duration === "function") - duration = duration(value, new_value); - started = true; - } - if (previous_task) { - previous_task.abort(); - previous_task = null; - } - const elapsed = now2 - start; - if (elapsed > duration) { - store.set(value = new_value); - return false; - } - store.set(value = fn(easing(elapsed / duration))); - return true; - }); - return task.promise; - } - return { - set, - update: (fn, opts) => set(fn(target_value, value), opts), - subscribe: store.subscribe - }; -} -const Result_svelte_svelte_type_style_lang = ""; -function create_else_block$1(ctx) { - let td0; - let t0_value = formatBytes( - /*beforeSize*/ - ctx[2] - ) + ""; - let t0; - let t1; - let td1; - let t2; - let t3; - let td2; - let t4_value = formatBytes( - /*afterSize*/ - ctx[3] - ) + ""; - let t4; - let t5; - let if_block_anchor; - function select_block_type_1(ctx2, dirty) { - if ( - /*rate*/ - ctx2[4] !== null - ) - return create_if_block_1$2; - return create_else_block_1; - } - let current_block_type = select_block_type_1(ctx); - let if_block = current_block_type(ctx); - return { - c() { - td0 = element("td"); - t0 = text(t0_value); - t1 = space(); - td1 = element("td"); - t2 = text("→"); - t3 = space(); - td2 = element("td"); - t4 = text(t4_value); - t5 = space(); - if_block.c(); - if_block_anchor = empty(); - this.h(); - }, - l(nodes) { - td0 = claim_element(nodes, "TD", { class: true }); - var td0_nodes = children(td0); - t0 = claim_text(td0_nodes, t0_value); - td0_nodes.forEach(detach); - t1 = claim_space(nodes); - td1 = claim_element(nodes, "TD", {}); - var td1_nodes = children(td1); - t2 = claim_text(td1_nodes, "→"); - td1_nodes.forEach(detach); - t3 = claim_space(nodes); - td2 = claim_element(nodes, "TD", { class: true }); - var td2_nodes = children(td2); - t4 = claim_text(td2_nodes, t4_value); - td2_nodes.forEach(detach); - t5 = claim_space(nodes); - if_block.l(nodes); - if_block_anchor = empty(); - this.h(); - }, - h() { - attr(td0, "class", "result__size svelte-1wh6mo4"); - attr(td2, "class", "result__size svelte-1wh6mo4"); - }, - m(target, anchor) { - insert_hydration(target, td0, anchor); - append_hydration(td0, t0); - insert_hydration(target, t1, anchor); - insert_hydration(target, td1, anchor); - append_hydration(td1, t2); - insert_hydration(target, t3, anchor); - insert_hydration(target, td2, anchor); - append_hydration(td2, t4); - insert_hydration(target, t5, anchor); - if_block.m(target, anchor); - insert_hydration(target, if_block_anchor, anchor); - }, - p(ctx2, dirty) { - if (dirty & /*beforeSize*/ - 4 && t0_value !== (t0_value = formatBytes( - /*beforeSize*/ - ctx2[2] - ) + "")) - set_data(t0, t0_value); - if (dirty & /*afterSize*/ - 8 && t4_value !== (t4_value = formatBytes( - /*afterSize*/ - ctx2[3] - ) + "")) - set_data(t4, t4_value); - if (current_block_type === (current_block_type = select_block_type_1(ctx2)) && if_block) { - if_block.p(ctx2, dirty); - } else { - if_block.d(1); - if_block = current_block_type(ctx2); - if (if_block) { - if_block.c(); - if_block.m(if_block_anchor.parentNode, if_block_anchor); - } - } - }, - d(detaching) { - if (detaching) - detach(td0); - if (detaching) - detach(t1); - if (detaching) - detach(td1); - if (detaching) - detach(t3); - if (detaching) - detach(td2); - if (detaching) - detach(t5); - if_block.d(detaching); - if (detaching) - detach(if_block_anchor); - } - }; -} -function create_if_block$2(ctx) { - let td; - let t; - return { - c() { - td = element("td"); - t = text( - /*error*/ - ctx[1] - ); - this.h(); - }, - l(nodes) { - td = claim_element(nodes, "TD", { class: true, colspan: true }); - var td_nodes = children(td); - t = claim_text( - td_nodes, - /*error*/ - ctx[1] - ); - td_nodes.forEach(detach); - this.h(); - }, - h() { - attr(td, "class", "result__error svelte-1wh6mo4"); - attr(td, "colspan", "4"); - }, - m(target, anchor) { - insert_hydration(target, td, anchor); - append_hydration(td, t); - }, - p(ctx2, dirty) { - if (dirty & /*error*/ - 2) - set_data( - t, - /*error*/ - ctx2[1] - ); - }, - d(detaching) { - if (detaching) - detach(td); - } - }; -} -function create_else_block_1(ctx) { - let td; - return { - c() { - td = element("td"); - }, - l(nodes) { - td = claim_element(nodes, "TD", {}); - children(td).forEach(detach); - }, - m(target, anchor) { - insert_hydration(target, td, anchor); - }, - p: noop, - d(detaching) { - if (detaching) - detach(td); - } - }; -} -function create_if_block_1$2(ctx) { - let td; - let t0; - let t1_value = ( - /*rate*/ - ctx[4].toFixed(2) + "" - ); - let t1; - let t2; - return { - c() { - td = element("td"); - t0 = text("("); - t1 = text(t1_value); - t2 = text("%)"); - this.h(); - }, - l(nodes) { - td = claim_element(nodes, "TD", { class: true }); - var td_nodes = children(td); - t0 = claim_text(td_nodes, "("); - t1 = claim_text(td_nodes, t1_value); - t2 = claim_text(td_nodes, "%)"); - td_nodes.forEach(detach); - this.h(); - }, - h() { - attr(td, "class", "result__rate svelte-1wh6mo4"); - toggle_class( - td, - "result--good", - /*rate*/ - ctx[4] > 0 - ); - toggle_class( - td, - "result--bad", - /*rate*/ - ctx[4] <= 0 && /*rate*/ - ctx[4] > -0.5 - ); - toggle_class( - td, - "result--worse", - /*rate*/ - ctx[4] <= -0.5 - ); - }, - m(target, anchor) { - insert_hydration(target, td, anchor); - append_hydration(td, t0); - append_hydration(td, t1); - append_hydration(td, t2); - }, - p(ctx2, dirty) { - if (dirty & /*rate*/ - 16 && t1_value !== (t1_value = /*rate*/ - ctx2[4].toFixed(2) + "")) - set_data(t1, t1_value); - if (dirty & /*rate*/ - 16) { - toggle_class( - td, - "result--good", - /*rate*/ - ctx2[4] > 0 - ); - } - if (dirty & /*rate*/ - 16) { - toggle_class( - td, - "result--bad", - /*rate*/ - ctx2[4] <= 0 && /*rate*/ - ctx2[4] > -0.5 - ); - } - if (dirty & /*rate*/ - 16) { - toggle_class( - td, - "result--worse", - /*rate*/ - ctx2[4] <= -0.5 - ); - } - }, - d(detaching) { - if (detaching) - detach(td); - } - }; -} -function create_fragment$6(ctx) { - let tr; - let td; - let t0_value = trimSlash( - /*filename*/ - ctx[0] - ) + ""; - let t0; - let t1; - function select_block_type(ctx2, dirty) { - if ( - /*error*/ - ctx2[1] - ) - return create_if_block$2; - return create_else_block$1; - } - let current_block_type = select_block_type(ctx); - let if_block = current_block_type(ctx); - return { - c() { - tr = element("tr"); - td = element("td"); - t0 = text(t0_value); - t1 = space(); - if_block.c(); - this.h(); - }, - l(nodes) { - tr = claim_element(nodes, "TR", { class: true }); - var tr_nodes = children(tr); - td = claim_element(tr_nodes, "TD", { class: true }); - var td_nodes = children(td); - t0 = claim_text(td_nodes, t0_value); - td_nodes.forEach(detach); - t1 = claim_space(tr_nodes); - if_block.l(tr_nodes); - tr_nodes.forEach(detach); - this.h(); - }, - h() { - attr(td, "class", "result__filename svelte-1wh6mo4"); - attr(tr, "class", "result svelte-1wh6mo4"); - }, - m(target, anchor) { - insert_hydration(target, tr, anchor); - append_hydration(tr, td); - append_hydration(td, t0); - append_hydration(tr, t1); - if_block.m(tr, null); - }, - p(ctx2, [dirty]) { - if (dirty & /*filename*/ - 1 && t0_value !== (t0_value = trimSlash( - /*filename*/ - ctx2[0] - ) + "")) - set_data(t0, t0_value); - if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) { - if_block.p(ctx2, dirty); - } else { - if_block.d(1); - if_block = current_block_type(ctx2); - if (if_block) { - if_block.c(); - if_block.m(tr, null); - } - } - }, - i: noop, - o: noop, - d(detaching) { - if (detaching) - detach(tr); - if_block.d(); - } - }; -} -function formatBytes(size) { - if (size === 0) - return "0 Bytes"; - const k = 1024; - const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]; - const i = Math.floor(Math.log(size) / Math.log(k)); - return parseFloat((size / Math.pow(k, i)).toFixed(2)) + " " + sizes[i]; -} -function trimSlash(filename2) { - return filename2.replace(/^\/+/, ""); -} -function instance$6($$self, $$props, $$invalidate) { - let rate; - let { filename } = $$props; - let { error = null } = $$props; - let { beforeSize } = $$props; - let { afterSize } = $$props; - $$self.$$set = ($$props2) => { - if ("filename" in $$props2) - $$invalidate(0, filename = $$props2.filename); - if ("error" in $$props2) - $$invalidate(1, error = $$props2.error); - if ("beforeSize" in $$props2) - $$invalidate(2, beforeSize = $$props2.beforeSize); - if ("afterSize" in $$props2) - $$invalidate(3, afterSize = $$props2.afterSize); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*beforeSize, afterSize*/ - 12) { - $$invalidate(4, rate = beforeSize === 0 ? null : (1 - afterSize / beforeSize) * 100); - } - }; - return [filename, error, beforeSize, afterSize, rate]; -} -class Result extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance$6, create_fragment$6, safe_not_equal, { - filename: 0, - error: 1, - beforeSize: 2, - afterSize: 3 - }); - } -} -const InputSwitch_svelte_svelte_type_style_lang = ""; -function create_fragment$5(ctx) { - let div1; - let div0; - let mounted; - let dispose; - return { - c() { - div1 = element("div"); - div0 = element("div"); - this.h(); - }, - l(nodes) { - div1 = claim_element(nodes, "DIV", { class: true }); - var div1_nodes = children(div1); - div0 = claim_element(div1_nodes, "DIV", { class: true }); - children(div0).forEach(detach); - div1_nodes.forEach(detach); - this.h(); - }, - h() { - attr(div0, "class", "input-switch__control svelte-g8v6up"); - attr(div1, "class", "input-switch svelte-g8v6up"); - toggle_class( - div1, - "input-switch--on", - /*value*/ - ctx[0] - ); - }, - m(target, anchor) { - insert_hydration(target, div1, anchor); - append_hydration(div1, div0); - if (!mounted) { - dispose = listen( - div1, - "click", - /*onClick*/ - ctx[1] - ); - mounted = true; - } - }, - p(ctx2, [dirty]) { - if (dirty & /*value*/ - 1) { - toggle_class( - div1, - "input-switch--on", - /*value*/ - ctx2[0] - ); - } - }, - i: noop, - o: noop, - d(detaching) { - if (detaching) - detach(div1); - mounted = false; - dispose(); - } - }; -} -function instance$5($$self, $$props, $$invalidate) { - let { value = false } = $$props; - function onClick() { - $$invalidate(0, value = !value); - } - $$self.$$set = ($$props2) => { - if ("value" in $$props2) - $$invalidate(0, value = $$props2.value); - }; - return [value, onClick]; -} -class InputSwitch extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance$5, create_fragment$5, safe_not_equal, { value: 0 }); - } -} -const Card_svelte_svelte_type_style_lang = ""; -function create_if_block_1$1(ctx) { - let inputswitch; - let updating_value; - let current; - function inputswitch_value_binding(value) { - ctx[5](value); - } - let inputswitch_props = {}; - if ( - /*on*/ - ctx[0] !== void 0 - ) { - inputswitch_props.value = /*on*/ - ctx[0]; - } - inputswitch = new InputSwitch({ props: inputswitch_props }); - binding_callbacks.push(() => bind(inputswitch, "value", inputswitch_value_binding)); - return { - c() { - create_component(inputswitch.$$.fragment); - }, - l(nodes) { - claim_component(inputswitch.$$.fragment, nodes); - }, - m(target, anchor) { - mount_component(inputswitch, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const inputswitch_changes = {}; - if (!updating_value && dirty & /*on*/ - 1) { - updating_value = true; - inputswitch_changes.value = /*on*/ - ctx2[0]; - add_flush_callback(() => updating_value = false); - } - inputswitch.$set(inputswitch_changes); - }, - i(local) { - if (current) - return; - transition_in(inputswitch.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(inputswitch.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(inputswitch, detaching); - } - }; -} -function create_if_block$1(ctx) { - let div; - let current; - const default_slot_template = ( - /*#slots*/ - ctx[4].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[3], - null - ); - return { - c() { - div = element("div"); - if (default_slot) - default_slot.c(); - this.h(); - }, - l(nodes) { - div = claim_element(nodes, "DIV", { class: true }); - var div_nodes = children(div); - if (default_slot) - default_slot.l(div_nodes); - div_nodes.forEach(detach); - this.h(); - }, - h() { - attr(div, "class", "card__body svelte-1allh55"); - }, - m(target, anchor) { - insert_hydration(target, div, anchor); - if (default_slot) { - default_slot.m(div, null); - } - current = true; - }, - p(ctx2, dirty) { - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 8)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[3], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[3] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[3], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (detaching) - detach(div); - if (default_slot) - default_slot.d(detaching); - } - }; -} -function create_fragment$4(ctx) { - let div; - let dvi; - let h3; - let t0; - let t1; - let t2; - let current; - let if_block0 = !/*disabled*/ - ctx[1] && create_if_block_1$1(ctx); - let if_block1 = ( - /*on*/ - ctx[0] && create_if_block$1(ctx) - ); - return { - c() { - div = element("div"); - dvi = element("dvi"); - h3 = element("h3"); - t0 = text( - /*title*/ - ctx[2] - ); - t1 = space(); - if (if_block0) - if_block0.c(); - t2 = space(); - if (if_block1) - if_block1.c(); - this.h(); - }, - l(nodes) { - div = claim_element(nodes, "DIV", { class: true }); - var div_nodes = children(div); - dvi = claim_element(div_nodes, "DVI", { class: true }); - var dvi_nodes = children(dvi); - h3 = claim_element(dvi_nodes, "H3", { class: true }); - var h3_nodes = children(h3); - t0 = claim_text( - h3_nodes, - /*title*/ - ctx[2] - ); - h3_nodes.forEach(detach); - t1 = claim_space(dvi_nodes); - if (if_block0) - if_block0.l(dvi_nodes); - dvi_nodes.forEach(detach); - t2 = claim_space(div_nodes); - if (if_block1) - if_block1.l(div_nodes); - div_nodes.forEach(detach); - this.h(); - }, - h() { - attr(h3, "class", "card__title svelte-1allh55"); - attr(dvi, "class", "card__header svelte-1allh55"); - attr(div, "class", "card svelte-1allh55"); - }, - m(target, anchor) { - insert_hydration(target, div, anchor); - append_hydration(div, dvi); - append_hydration(dvi, h3); - append_hydration(h3, t0); - append_hydration(dvi, t1); - if (if_block0) - if_block0.m(dvi, null); - append_hydration(div, t2); - if (if_block1) - if_block1.m(div, null); - current = true; - }, - p(ctx2, [dirty]) { - if (!current || dirty & /*title*/ - 4) - set_data( - t0, - /*title*/ - ctx2[2] - ); - if (!/*disabled*/ - ctx2[1]) { - if (if_block0) { - if_block0.p(ctx2, dirty); - if (dirty & /*disabled*/ - 2) { - transition_in(if_block0, 1); - } - } else { - if_block0 = create_if_block_1$1(ctx2); - if_block0.c(); - transition_in(if_block0, 1); - if_block0.m(dvi, null); - } - } else if (if_block0) { - group_outros(); - transition_out(if_block0, 1, 1, () => { - if_block0 = null; - }); - check_outros(); - } - if ( - /*on*/ - ctx2[0] - ) { - if (if_block1) { - if_block1.p(ctx2, dirty); - if (dirty & /*on*/ - 1) { - transition_in(if_block1, 1); - } - } else { - if_block1 = create_if_block$1(ctx2); - if_block1.c(); - transition_in(if_block1, 1); - if_block1.m(div, null); - } - } else if (if_block1) { - group_outros(); - transition_out(if_block1, 1, 1, () => { - if_block1 = null; - }); - check_outros(); - } - }, - i(local) { - if (current) - return; - transition_in(if_block0); - transition_in(if_block1); - current = true; - }, - o(local) { - transition_out(if_block0); - transition_out(if_block1); - current = false; - }, - d(detaching) { - if (detaching) - detach(div); - if (if_block0) - if_block0.d(); - if (if_block1) - if_block1.d(); - } - }; -} -function instance$4($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - let { disabled = false } = $$props; - let { on = false } = $$props; - let { title } = $$props; - function inputswitch_value_binding(value) { - on = value; - $$invalidate(0, on); - } - $$self.$$set = ($$props2) => { - if ("disabled" in $$props2) - $$invalidate(1, disabled = $$props2.disabled); - if ("on" in $$props2) - $$invalidate(0, on = $$props2.on); - if ("title" in $$props2) - $$invalidate(2, title = $$props2.title); - if ("$$scope" in $$props2) - $$invalidate(3, $$scope = $$props2.$$scope); - }; - return [on, disabled, title, $$scope, slots, inputswitch_value_binding]; -} -class Card extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance$4, create_fragment$4, safe_not_equal, { disabled: 1, on: 0, title: 2 }); - } -} -const InputGroup_svelte_svelte_type_style_lang = ""; -function create_fragment$3(ctx) { - let div1; - let div0; - let t0; - let t1; - let current; - const default_slot_template = ( - /*#slots*/ - ctx[2].default - ); - const default_slot = create_slot( - default_slot_template, - ctx, - /*$$scope*/ - ctx[1], - null - ); - return { - c() { - div1 = element("div"); - div0 = element("div"); - t0 = text( - /*label*/ - ctx[0] - ); - t1 = space(); - if (default_slot) - default_slot.c(); - this.h(); - }, - l(nodes) { - div1 = claim_element(nodes, "DIV", { class: true }); - var div1_nodes = children(div1); - div0 = claim_element(div1_nodes, "DIV", { class: true }); - var div0_nodes = children(div0); - t0 = claim_text( - div0_nodes, - /*label*/ - ctx[0] - ); - div0_nodes.forEach(detach); - t1 = claim_space(div1_nodes); - if (default_slot) - default_slot.l(div1_nodes); - div1_nodes.forEach(detach); - this.h(); - }, - h() { - attr(div0, "class", "input-group__label svelte-hk8el4"); - attr(div1, "class", "input-group svelte-hk8el4"); - }, - m(target, anchor) { - insert_hydration(target, div1, anchor); - append_hydration(div1, div0); - append_hydration(div0, t0); - append_hydration(div1, t1); - if (default_slot) { - default_slot.m(div1, null); - } - current = true; - }, - p(ctx2, [dirty]) { - if (!current || dirty & /*label*/ - 1) - set_data( - t0, - /*label*/ - ctx2[0] - ); - if (default_slot) { - if (default_slot.p && (!current || dirty & /*$$scope*/ - 2)) { - update_slot_base( - default_slot, - default_slot_template, - ctx2, - /*$$scope*/ - ctx2[1], - !current ? get_all_dirty_from_scope( - /*$$scope*/ - ctx2[1] - ) : get_slot_changes( - default_slot_template, - /*$$scope*/ - ctx2[1], - dirty, - null - ), - null - ); - } - } - }, - i(local) { - if (current) - return; - transition_in(default_slot, local); - current = true; - }, - o(local) { - transition_out(default_slot, local); - current = false; - }, - d(detaching) { - if (detaching) - detach(div1); - if (default_slot) - default_slot.d(detaching); - } - }; -} -function instance$3($$self, $$props, $$invalidate) { - let { $$slots: slots = {}, $$scope } = $$props; - let { label } = $$props; - $$self.$$set = ($$props2) => { - if ("label" in $$props2) - $$invalidate(0, label = $$props2.label); - if ("$$scope" in $$props2) - $$invalidate(1, $$scope = $$props2.$$scope); - }; - return [label, $$scope, slots]; -} -class InputGroup extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance$3, create_fragment$3, safe_not_equal, { label: 0 }); - } -} -const InputNumber_svelte_svelte_type_style_lang = ""; -function create_fragment$2(ctx) { - let input; - let mounted; - let dispose; - return { - c() { - input = element("input"); - this.h(); - }, - l(nodes) { - input = claim_element(nodes, "INPUT", { - type: true, - class: true, - min: true, - max: true, - step: true - }); - this.h(); - }, - h() { - attr(input, "type", "number"); - attr(input, "class", "input-number svelte-16knh58"); - attr( - input, - "min", - /*min*/ - ctx[1] - ); - attr( - input, - "max", - /*max*/ - ctx[2] - ); - attr( - input, - "step", - /*step*/ - ctx[3] - ); - }, - m(target, anchor) { - insert_hydration(target, input, anchor); - set_input_value( - input, - /*value*/ - ctx[0] - ); - if (!mounted) { - dispose = listen( - input, - "input", - /*input_input_handler*/ - ctx[4] - ); - mounted = true; - } - }, - p(ctx2, [dirty]) { - if (dirty & /*min*/ - 2) { - attr( - input, - "min", - /*min*/ - ctx2[1] - ); - } - if (dirty & /*max*/ - 4) { - attr( - input, - "max", - /*max*/ - ctx2[2] - ); - } - if (dirty & /*step*/ - 8) { - attr( - input, - "step", - /*step*/ - ctx2[3] - ); - } - if (dirty & /*value*/ - 1 && to_number(input.value) !== /*value*/ - ctx2[0]) { - set_input_value( - input, - /*value*/ - ctx2[0] - ); - } - }, - i: noop, - o: noop, - d(detaching) { - if (detaching) - detach(input); - mounted = false; - dispose(); - } - }; -} -function instance$2($$self, $$props, $$invalidate) { - let { value = null } = $$props; - let { min = null } = $$props; - let { max = null } = $$props; - let { step = null } = $$props; - function setValue(v) { - if (v === null) { - return null; - } - v = Math.min(Math.max(v, min ?? -Infinity), max ?? Infinity); - if (step !== null) { - const offset = min ?? 0; - v = Math.round((v - offset) / step) * step + offset; - } - return v; - } - function input_input_handler() { - value = to_number(this.value); - $$invalidate(0, value); - } - $$self.$$set = ($$props2) => { - if ("value" in $$props2) - $$invalidate(0, value = $$props2.value); - if ("min" in $$props2) - $$invalidate(1, min = $$props2.min); - if ("max" in $$props2) - $$invalidate(2, max = $$props2.max); - if ("step" in $$props2) - $$invalidate(3, step = $$props2.step); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*value*/ - 1) { - $$invalidate(0, value = setValue(value)); - } - }; - return [value, min, max, step, input_input_handler]; -} -class InputNumber extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance$2, create_fragment$2, safe_not_equal, { value: 0, min: 1, max: 2, step: 3 }); - } -} -const InputSelect_svelte_svelte_type_style_lang = ""; -function get_each_context$1(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[4] = list[i]; - return child_ctx; -} -function create_each_block$1(ctx) { - let option; - let t_value = ( - /*option*/ - ctx[4].label + "" - ); - let t; - let option_value_value; - return { - c() { - option = element("option"); - t = text(t_value); - this.h(); - }, - l(nodes) { - option = claim_element(nodes, "OPTION", {}); - var option_nodes = children(option); - t = claim_text(option_nodes, t_value); - option_nodes.forEach(detach); - this.h(); - }, - h() { - option.__value = option_value_value = /*option*/ - ctx[4].value; - option.value = option.__value; - }, - m(target, anchor) { - insert_hydration(target, option, anchor); - append_hydration(option, t); - }, - p(ctx2, dirty) { - if (dirty & /*innerOptions*/ - 2 && t_value !== (t_value = /*option*/ - ctx2[4].label + "")) - set_data(t, t_value); - if (dirty & /*innerOptions*/ - 2 && option_value_value !== (option_value_value = /*option*/ - ctx2[4].value)) { - option.__value = option_value_value; - option.value = option.__value; - } - }, - d(detaching) { - if (detaching) - detach(option); - } - }; -} -function create_fragment$1(ctx) { - let select; - let mounted; - let dispose; - let each_value = ( - /*innerOptions*/ - ctx[1] - ); - let each_blocks = []; - for (let i = 0; i < each_value.length; i += 1) { - each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i)); - } - return { - c() { - select = element("select"); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - this.h(); - }, - l(nodes) { - select = claim_element(nodes, "SELECT", { class: true }); - var select_nodes = children(select); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].l(select_nodes); - } - select_nodes.forEach(detach); - this.h(); - }, - h() { - attr(select, "class", "input-select svelte-m1cv8l"); - if ( - /*value*/ - ctx[0] === void 0 - ) - add_render_callback(() => ( - /*select_change_handler*/ - ctx[3].call(select) - )); - }, - m(target, anchor) { - insert_hydration(target, select, anchor); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].m(select, null); - } - select_option( - select, - /*value*/ - ctx[0] - ); - if (!mounted) { - dispose = listen( - select, - "change", - /*select_change_handler*/ - ctx[3] - ); - mounted = true; - } - }, - p(ctx2, [dirty]) { - if (dirty & /*innerOptions*/ - 2) { - each_value = /*innerOptions*/ - ctx2[1]; - let i; - for (i = 0; i < each_value.length; i += 1) { - const child_ctx = get_each_context$1(ctx2, each_value, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - } else { - each_blocks[i] = create_each_block$1(child_ctx); - each_blocks[i].c(); - each_blocks[i].m(select, null); - } - } - for (; i < each_blocks.length; i += 1) { - each_blocks[i].d(1); - } - each_blocks.length = each_value.length; - } - if (dirty & /*value, innerOptions*/ - 3) { - select_option( - select, - /*value*/ - ctx2[0] - ); - } - }, - i: noop, - o: noop, - d(detaching) { - if (detaching) - detach(select); - destroy_each(each_blocks, detaching); - mounted = false; - dispose(); - } - }; -} -function instance$1($$self, $$props, $$invalidate) { - let innerOptions; - let { value = null } = $$props; - let { options = [] } = $$props; - function select_change_handler() { - value = select_value(this); - $$invalidate(0, value); - $$invalidate(1, innerOptions), $$invalidate(2, options); - } - $$self.$$set = ($$props2) => { - if ("value" in $$props2) - $$invalidate(0, value = $$props2.value); - if ("options" in $$props2) - $$invalidate(2, options = $$props2.options); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*options*/ - 4) { - $$invalidate(1, innerOptions = options.map((option) => { - if (typeof option === "string") { - return { label: option, value: option }; - } - return option; - })); - } - }; - return [value, innerOptions, options, select_change_handler]; -} -class InputSelect extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance$1, create_fragment$1, safe_not_equal, { value: 0, options: 2 }); - } -} -function download(blob, filename) { - const url = URL.createObjectURL(blob); - const a = document.createElement("a"); - document.body.appendChild(a); - a.href = url; - a.download = filename; - a.click(); - setTimeout(() => { - window.URL.revokeObjectURL(url); - document.body.removeChild(a); - }, 0); -} -let vipsPromise = null; -function loadVips() { - const moduleUrl = "/vips/vips-es6.js"; - if (vipsPromise) { - return vipsPromise; - } - vipsPromise = (async () => { - const Vips = await __vitePreload(() => import(moduleUrl), true ? [] : void 0, import.meta.url).then((m) => m.default); - return await Vips(); - })(); - return vipsPromise; -} -function resize(vips, im, size, fit) { - const imageSize = [im.width, im.height]; - const [hshrink, vshrink] = shrink(imageSize, size, fit); - im = im.resize(1 / hshrink, { - vscale: 1 / vshrink, - kernel: "lanczos3" - }); - if (fit === "Contain") { - imageSize[0] = im.width; - imageSize[1] = im.height; - const [left, top] = embed(imageSize, size); - const width = Math.max(imageSize[0], size[0]); - const height = Math.max(imageSize[1], size[1]); - if (!im.hasAlpha()) { - const alphaBand = vips.Image.newMatrix(...imageSize).newFromImage(255).cast(im.format); - im = im.bandjoin(alphaBand); - } - im = im.embed(left, top, width, height, { - extend: "background", - background: Array.from({ length: im.bands }).fill(0) - }); - } else if (fit == "Cover") { - imageSize[0] = im.width; - imageSize[1] = im.height; - const [left, top] = crop(imageSize, size); - const width = Math.min(imageSize[0], size[0]); - const height = Math.min(imageSize[1], size[1]); - im = im.extractArea(left, top, width, height); - } - return im; -} -function shrink([width, height], [targetWidth, targetHeight], fit) { - let hShrink = 1; - let vShrink = 1; - if (targetWidth > 0 && targetHeight > 0) { - hShrink = width / targetWidth; - vShrink = height / targetHeight; - switch (fit) { - case "Cover": - case "Outside": - if (hShrink < vShrink) { - vShrink = hShrink; - } else { - hShrink = vShrink; - } - break; - case "Contain": - case "Inside": - if (hShrink > vShrink) { - vShrink = hShrink; - } else { - hShrink = vShrink; - } - break; - } - } else if (targetWidth > 0) { - hShrink = width / targetWidth; - if (fit !== "Fill") { - vShrink = hShrink; - } - } else if (targetHeight > 0) { - vShrink = height / targetHeight; - if (fit !== "Fill") { - hShrink = vShrink; - } - } - hShrink = Math.min(hShrink, width); - vShrink = Math.min(vShrink, height); - return [hShrink, vShrink]; -} -function crop([width, height], [targetWidth, targetHeight]) { - return [ - ~~((width - targetWidth + 1) / 2), - ~~((height - targetHeight + 1) / 2) - ]; -} -function embed([width, height], [targetWidth, targetHeight]) { - return [ - ~~((targetWidth - width) / 2), - ~~((targetHeight - height) / 2) - ]; -} -const logo = "" + new URL("../../assets/logo-ec8219a6.svg", import.meta.url).href; -function isFileBufferError(result) { - return "error" in result; -} -const isAvailableWebkitGetAsEntry = typeof DataTransferItem !== "undefined" && "webkitGetAsEntry" in DataTransferItem.prototype; -function isDirectoryEntry(entry) { - return entry.isDirectory; -} -function isFileEntry(entry) { - return entry.isFile; -} -async function traverseEntries(entries) { - return Promise.all(entries.map((entry) => { - if (!entry) { - return Promise.resolve([]); - } - if (isDirectoryEntry(entry)) { - return new Promise((resolve) => { - const reader = entry.createReader(); - reader.readEntries((entries2) => { - resolve(traverseEntries(entries2)); - }); - }); - } - if (isFileEntry(entry)) { - return new Promise((resolve) => { - entry.file(async (f) => { - resolve({ - name: entry.fullPath, - type: f.type, - size: f.size, - buffer: await f.arrayBuffer() - }); - }); - }); - } - return Promise.resolve({ - name: entry.fullPath, - error: new Error("Unknown entry type") - }); - })).then((e) => e.flat()); -} -async function dataTransferToBuffers(transfer) { - if (!transfer) { - return []; - } - if (!isAvailableWebkitGetAsEntry) { - return await Promise.all([...transfer.files].map(async (file) => { - try { - const buffer = await file.arrayBuffer(); - return { - name: file.name, - type: file.type, - size: file.size, - buffer - }; - } catch (e) { - return { - name: file.name, - error: e - }; - } - })); - } - return await traverseEntries([...transfer.items].map((item) => item.webkitGetAsEntry())); -} -function svgImageSize(svg) { - var _a, _b; - const width = (_a = svg.match(/width="(\d+)"/)) == null ? void 0 : _a[1]; - const height = (_b = svg.match(/height="(\d+)"/)) == null ? void 0 : _b[1]; - if (!width || !height) { - const match = svg.match(/viewBox="0 0 (\d+) (\d+)"/); - if (match) { - return { width: +match[1], height: +match[2] }; - } - } - return { width: width ? +width : 0, height: height ? +height : 0 }; -} -async function svgToBlob(file) { - const svg = await file.text(); - const { width, height } = svgImageSize(svg); - const url = await new Promise((resolve) => { - const image = new Image(); - const xml = window.btoa(unescape(encodeURIComponent(svg))); - image.src = "data:image/svg+xml;base64," + xml; - image.onload = function() { - const canvas = document.createElement("canvas"); - canvas.width = width ?? 640; - canvas.height = height ?? 480; - const ctx = canvas.getContext("2d"); - if (ctx) { - ctx.drawImage(image, 0, 0, width ?? 640, height ?? 480); - } - resolve(canvas.toDataURL("image/png")); - }; - }); - const parts = url.split(";base64,"); - const raw = window.atob(parts[1]); - const rawLength = raw.length; - const uInt8Array = new Uint8Array(rawLength); - for (let i = 0; i < rawLength; ++i) { - uInt8Array[i] = raw.charCodeAt(i); - } - return new Blob([uInt8Array], { type: "image/png" }); -} -function hasMessage(e) { - return typeof e === "object" && e !== null && "message" in e; -} -function errorToErrorMessage(e) { - if (typeof e === "string") { - return e; - } - if (e instanceof Error) { - return e.message; - } - return "Unknown error"; -} -async function transformFileBuffer(vips, files, options, onProgress) { - if (files.length === 0) { - return []; - } - onProgress(0); - const results = []; - for (const [fileIndex, file] of files.entries()) { - onProgress(fileIndex / files.length); - if (isFileBufferError(file)) { - results.push({ - filename: file.name, - size: 0, - error: errorToErrorMessage(file.error), - blob: null - }); - continue; - } - try { - let input; - if (file.type === "image/svg+xml") { - input = await svgToBlob(new Blob([file.buffer])).then((b) => b.arrayBuffer()); - } else { - input = await file.buffer; - } - let im = vips.Image.newFromBuffer(input, file.name); - if ((options.width || options.height) && options.fit) { - im = resize(vips, im, [options.width ?? 0, options.height ?? 0], options.fit); - } else if (options.scale) { - im = im.resize(options.scale, {}); - } - const buffer = await im.writeToBuffer(".webp", { - Q: ~~options.quality - // to int - }); - const blob = new Blob([buffer], { type: "image/webp" }); - results.push({ - filename: file.name, - size: file.size, - error: null, - blob - }); - } catch (e) { - let errorMessage = null; - if (hasMessage(e) && e.message.includes("unable to load from buffer")) { - errorMessage = "Unsupported image format!"; - } else { - errorMessage = errorToErrorMessage(e); - } - results.push({ - filename: file.name, - size: file.size, - error: errorMessage, - blob: null - }); - } - } - onProgress(1); - return results; -} -const _page_svelte_svelte_type_style_lang = ""; -function get_each_context(ctx, list, i) { - const child_ctx = ctx.slice(); - child_ctx[32] = list[i][0]; - child_ctx[33] = list[i][1]; - child_ctx[34] = list[i][2]; - child_ctx[35] = list[i][3]; - return child_ctx; -} -function create_default_slot_7(ctx) { - let div; - let inputnumber; - let updating_value; - let current; - function inputnumber_value_binding(value) { - ctx[18](value); - } - let inputnumber_props = { max: 100, min: 0, step: 1 }; - if ( - /*inputQuality*/ - ctx[0] !== void 0 - ) { - inputnumber_props.value = /*inputQuality*/ - ctx[0]; - } - inputnumber = new InputNumber({ props: inputnumber_props }); - binding_callbacks.push(() => bind(inputnumber, "value", inputnumber_value_binding)); - return { - c() { - div = element("div"); - create_component(inputnumber.$$.fragment); - this.h(); - }, - l(nodes) { - div = claim_element(nodes, "DIV", { class: true }); - var div_nodes = children(div); - claim_component(inputnumber.$$.fragment, div_nodes); - div_nodes.forEach(detach); - this.h(); - }, - h() { - attr(div, "class", "space-y-4"); - }, - m(target, anchor) { - insert_hydration(target, div, anchor); - mount_component(inputnumber, div, null); - current = true; - }, - p(ctx2, dirty) { - const inputnumber_changes = {}; - if (!updating_value && dirty[0] & /*inputQuality*/ - 1) { - updating_value = true; - inputnumber_changes.value = /*inputQuality*/ - ctx2[0]; - add_flush_callback(() => updating_value = false); - } - inputnumber.$set(inputnumber_changes); - }, - i(local) { - if (current) - return; - transition_in(inputnumber.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(inputnumber.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) - detach(div); - destroy_component(inputnumber); - } - }; -} -function create_default_slot_6(ctx) { - let inputgroup; - let current; - inputgroup = new InputGroup({ - props: { - label: "Quality", - $$slots: { default: [create_default_slot_7] }, - $$scope: { ctx } - } - }); - return { - c() { - create_component(inputgroup.$$.fragment); - }, - l(nodes) { - claim_component(inputgroup.$$.fragment, nodes); - }, - m(target, anchor) { - mount_component(inputgroup, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const inputgroup_changes = {}; - if (dirty[0] & /*inputQuality*/ - 1 | dirty[1] & /*$$scope*/ - 128) { - inputgroup_changes.$$scope = { dirty, ctx: ctx2 }; - } - inputgroup.$set(inputgroup_changes); - }, - i(local) { - if (current) - return; - transition_in(inputgroup.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(inputgroup.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(inputgroup, detaching); - } - }; -} -function create_default_slot_5(ctx) { - let inputnumber; - let updating_value; - let current; - function inputnumber_value_binding_1(value) { - ctx[19](value); - } - let inputnumber_props = { min: 0, step: 1 }; - if ( - /*inputWidth*/ - ctx[2] !== void 0 - ) { - inputnumber_props.value = /*inputWidth*/ - ctx[2]; - } - inputnumber = new InputNumber({ props: inputnumber_props }); - binding_callbacks.push(() => bind(inputnumber, "value", inputnumber_value_binding_1)); - return { - c() { - create_component(inputnumber.$$.fragment); - }, - l(nodes) { - claim_component(inputnumber.$$.fragment, nodes); - }, - m(target, anchor) { - mount_component(inputnumber, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const inputnumber_changes = {}; - if (!updating_value && dirty[0] & /*inputWidth*/ - 4) { - updating_value = true; - inputnumber_changes.value = /*inputWidth*/ - ctx2[2]; - add_flush_callback(() => updating_value = false); - } - inputnumber.$set(inputnumber_changes); - }, - i(local) { - if (current) - return; - transition_in(inputnumber.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(inputnumber.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(inputnumber, detaching); - } - }; -} -function create_default_slot_4(ctx) { - let inputnumber; - let updating_value; - let current; - function inputnumber_value_binding_2(value) { - ctx[20](value); - } - let inputnumber_props = { min: 0, step: 1 }; - if ( - /*inputHeight*/ - ctx[3] !== void 0 - ) { - inputnumber_props.value = /*inputHeight*/ - ctx[3]; - } - inputnumber = new InputNumber({ props: inputnumber_props }); - binding_callbacks.push(() => bind(inputnumber, "value", inputnumber_value_binding_2)); - return { - c() { - create_component(inputnumber.$$.fragment); - }, - l(nodes) { - claim_component(inputnumber.$$.fragment, nodes); - }, - m(target, anchor) { - mount_component(inputnumber, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const inputnumber_changes = {}; - if (!updating_value && dirty[0] & /*inputHeight*/ - 8) { - updating_value = true; - inputnumber_changes.value = /*inputHeight*/ - ctx2[3]; - add_flush_callback(() => updating_value = false); - } - inputnumber.$set(inputnumber_changes); - }, - i(local) { - if (current) - return; - transition_in(inputnumber.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(inputnumber.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(inputnumber, detaching); - } - }; -} -function create_default_slot_3(ctx) { - let inputselect; - let updating_value; - let current; - function inputselect_value_binding(value) { - ctx[21](value); - } - let inputselect_props = { - options: ["Cover", "Contain", "Fill", "Inside", "Outside"] - }; - if ( - /*inputFit*/ - ctx[4] !== void 0 - ) { - inputselect_props.value = /*inputFit*/ - ctx[4]; - } - inputselect = new InputSelect({ props: inputselect_props }); - binding_callbacks.push(() => bind(inputselect, "value", inputselect_value_binding)); - return { - c() { - create_component(inputselect.$$.fragment); - }, - l(nodes) { - claim_component(inputselect.$$.fragment, nodes); - }, - m(target, anchor) { - mount_component(inputselect, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const inputselect_changes = {}; - if (!updating_value && dirty[0] & /*inputFit*/ - 16) { - updating_value = true; - inputselect_changes.value = /*inputFit*/ - ctx2[4]; - add_flush_callback(() => updating_value = false); - } - inputselect.$set(inputselect_changes); - }, - i(local) { - if (current) - return; - transition_in(inputselect.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(inputselect.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(inputselect, detaching); - } - }; -} -function create_default_slot_2(ctx) { - let div; - let inputgroup0; - let t0; - let inputgroup1; - let t1; - let inputgroup2; - let current; - inputgroup0 = new InputGroup({ - props: { - label: "Width", - $$slots: { default: [create_default_slot_5] }, - $$scope: { ctx } - } - }); - inputgroup1 = new InputGroup({ - props: { - label: "Height", - $$slots: { default: [create_default_slot_4] }, - $$scope: { ctx } - } - }); - inputgroup2 = new InputGroup({ - props: { - label: "Fit", - $$slots: { default: [create_default_slot_3] }, - $$scope: { ctx } - } - }); - return { - c() { - div = element("div"); - create_component(inputgroup0.$$.fragment); - t0 = space(); - create_component(inputgroup1.$$.fragment); - t1 = space(); - create_component(inputgroup2.$$.fragment); - this.h(); - }, - l(nodes) { - div = claim_element(nodes, "DIV", { class: true }); - var div_nodes = children(div); - claim_component(inputgroup0.$$.fragment, div_nodes); - t0 = claim_space(div_nodes); - claim_component(inputgroup1.$$.fragment, div_nodes); - t1 = claim_space(div_nodes); - claim_component(inputgroup2.$$.fragment, div_nodes); - div_nodes.forEach(detach); - this.h(); - }, - h() { - attr(div, "class", "space-y-3"); - }, - m(target, anchor) { - insert_hydration(target, div, anchor); - mount_component(inputgroup0, div, null); - append_hydration(div, t0); - mount_component(inputgroup1, div, null); - append_hydration(div, t1); - mount_component(inputgroup2, div, null); - current = true; - }, - p(ctx2, dirty) { - const inputgroup0_changes = {}; - if (dirty[0] & /*inputWidth*/ - 4 | dirty[1] & /*$$scope*/ - 128) { - inputgroup0_changes.$$scope = { dirty, ctx: ctx2 }; - } - inputgroup0.$set(inputgroup0_changes); - const inputgroup1_changes = {}; - if (dirty[0] & /*inputHeight*/ - 8 | dirty[1] & /*$$scope*/ - 128) { - inputgroup1_changes.$$scope = { dirty, ctx: ctx2 }; - } - inputgroup1.$set(inputgroup1_changes); - const inputgroup2_changes = {}; - if (dirty[0] & /*inputFit*/ - 16 | dirty[1] & /*$$scope*/ - 128) { - inputgroup2_changes.$$scope = { dirty, ctx: ctx2 }; - } - inputgroup2.$set(inputgroup2_changes); - }, - i(local) { - if (current) - return; - transition_in(inputgroup0.$$.fragment, local); - transition_in(inputgroup1.$$.fragment, local); - transition_in(inputgroup2.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(inputgroup0.$$.fragment, local); - transition_out(inputgroup1.$$.fragment, local); - transition_out(inputgroup2.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) - detach(div); - destroy_component(inputgroup0); - destroy_component(inputgroup1); - destroy_component(inputgroup2); - } - }; -} -function create_default_slot_1(ctx) { - let inputnumber; - let updating_value; - let current; - function inputnumber_value_binding_3(value) { - ctx[23](value); - } - let inputnumber_props = { min: 0 }; - if ( - /*inputScale*/ - ctx[6] !== void 0 - ) { - inputnumber_props.value = /*inputScale*/ - ctx[6]; - } - inputnumber = new InputNumber({ props: inputnumber_props }); - binding_callbacks.push(() => bind(inputnumber, "value", inputnumber_value_binding_3)); - return { - c() { - create_component(inputnumber.$$.fragment); - }, - l(nodes) { - claim_component(inputnumber.$$.fragment, nodes); - }, - m(target, anchor) { - mount_component(inputnumber, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const inputnumber_changes = {}; - if (!updating_value && dirty[0] & /*inputScale*/ - 64) { - updating_value = true; - inputnumber_changes.value = /*inputScale*/ - ctx2[6]; - add_flush_callback(() => updating_value = false); - } - inputnumber.$set(inputnumber_changes); - }, - i(local) { - if (current) - return; - transition_in(inputnumber.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(inputnumber.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(inputnumber, detaching); - } - }; -} -function create_default_slot(ctx) { - let div; - let inputgroup; - let current; - inputgroup = new InputGroup({ - props: { - label: "Scale", - $$slots: { default: [create_default_slot_1] }, - $$scope: { ctx } - } - }); - return { - c() { - div = element("div"); - create_component(inputgroup.$$.fragment); - this.h(); - }, - l(nodes) { - div = claim_element(nodes, "DIV", { class: true }); - var div_nodes = children(div); - claim_component(inputgroup.$$.fragment, div_nodes); - div_nodes.forEach(detach); - this.h(); - }, - h() { - attr(div, "class", "space-y-2"); - }, - m(target, anchor) { - insert_hydration(target, div, anchor); - mount_component(inputgroup, div, null); - current = true; - }, - p(ctx2, dirty) { - const inputgroup_changes = {}; - if (dirty[0] & /*inputScale*/ - 64 | dirty[1] & /*$$scope*/ - 128) { - inputgroup_changes.$$scope = { dirty, ctx: ctx2 }; - } - inputgroup.$set(inputgroup_changes); - }, - i(local) { - if (current) - return; - transition_in(inputgroup.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(inputgroup.$$.fragment, local); - current = false; - }, - d(detaching) { - if (detaching) - detach(div); - destroy_component(inputgroup); - } - }; -} -function create_else_block(ctx) { - let div5; - let t0; - let div4; - let div2; - let div0; - let t1; - let t2; - let div1; - let button; - let t3; - let t4; - let div3; - let t5; - let current; - let mounted; - let dispose; - let if_block = ( - /*results*/ - ctx[9] && create_if_block_2(ctx) - ); - return { - c() { - div5 = element("div"); - if (if_block) - if_block.c(); - t0 = space(); - div4 = element("div"); - div2 = element("div"); - div0 = element("div"); - t1 = text("Drop your images here!"); - t2 = space(); - div1 = element("div"); - button = element("button"); - t3 = text("or click to upload images"); - t4 = space(); - div3 = element("div"); - t5 = text("Supports JPG, PNG, GIF, TIFF, WEBP, SVG."); - this.h(); - }, - l(nodes) { - div5 = claim_element(nodes, "DIV", { class: true }); - var div5_nodes = children(div5); - if (if_block) - if_block.l(div5_nodes); - t0 = claim_space(div5_nodes); - div4 = claim_element(div5_nodes, "DIV", { class: true }); - var div4_nodes = children(div4); - div2 = claim_element(div4_nodes, "DIV", {}); - var div2_nodes = children(div2); - div0 = claim_element(div2_nodes, "DIV", { class: true }); - var div0_nodes = children(div0); - t1 = claim_text(div0_nodes, "Drop your images here!"); - div0_nodes.forEach(detach); - t2 = claim_space(div2_nodes); - div1 = claim_element(div2_nodes, "DIV", { class: true }); - var div1_nodes = children(div1); - button = claim_element(div1_nodes, "BUTTON", { class: true }); - var button_nodes = children(button); - t3 = claim_text(button_nodes, "or click to upload images"); - button_nodes.forEach(detach); - div1_nodes.forEach(detach); - div2_nodes.forEach(detach); - t4 = claim_space(div4_nodes); - div3 = claim_element(div4_nodes, "DIV", { class: true }); - var div3_nodes = children(div3); - t5 = claim_text(div3_nodes, "Supports JPG, PNG, GIF, TIFF, WEBP, SVG."); - div3_nodes.forEach(detach); - div4_nodes.forEach(detach); - div5_nodes.forEach(detach); - this.h(); - }, - h() { - attr(div0, "class", "text-white text-opacity-75 font-light text-center text-2xl"); - attr(button, "class", "text-white font-light text-sm underline leading-tight"); - attr(div1, "class", "text-center"); - attr(div3, "class", "text-white font-light text-center text-sm text-opacity-70"); - attr(div4, "class", "space-y-3"); - attr(div5, "class", "dropzone space-y-4 svelte-17n85hh"); - }, - m(target, anchor) { - insert_hydration(target, div5, anchor); - if (if_block) - if_block.m(div5, null); - append_hydration(div5, t0); - append_hydration(div5, div4); - append_hydration(div4, div2); - append_hydration(div2, div0); - append_hydration(div0, t1); - append_hydration(div2, t2); - append_hydration(div2, div1); - append_hydration(div1, button); - append_hydration(button, t3); - append_hydration(div4, t4); - append_hydration(div4, div3); - append_hydration(div3, t5); - current = true; - if (!mounted) { - dispose = listen( - button, - "click", - /*onClickUpload*/ - ctx[15] - ); - mounted = true; - } - }, - p(ctx2, dirty) { - if ( - /*results*/ - ctx2[9] - ) { - if (if_block) { - if_block.p(ctx2, dirty); - if (dirty[0] & /*results*/ - 512) { - transition_in(if_block, 1); - } - } else { - if_block = create_if_block_2(ctx2); - if_block.c(); - transition_in(if_block, 1); - if_block.m(div5, t0); - } - } else if (if_block) { - group_outros(); - transition_out(if_block, 1, 1, () => { - if_block = null; - }); - check_outros(); - } - }, - i(local) { - if (current) - return; - transition_in(if_block); - current = true; - }, - o(local) { - transition_out(if_block); - current = false; - }, - d(detaching) { - if (detaching) - detach(div5); - if (if_block) - if_block.d(); - mounted = false; - dispose(); - } - }; -} -function create_if_block_1(ctx) { - let div2; - let div0; - let t0; - let t1; - let div1; - let t2_value = ( - /*$progress*/ - (ctx[10] * 100).toFixed(2) + "" - ); - let t2; - let t3; - return { - c() { - div2 = element("div"); - div0 = element("div"); - t0 = text("Converting..."); - t1 = space(); - div1 = element("div"); - t2 = text(t2_value); - t3 = text("%"); - this.h(); - }, - l(nodes) { - div2 = claim_element(nodes, "DIV", { class: true }); - var div2_nodes = children(div2); - div0 = claim_element(div2_nodes, "DIV", {}); - var div0_nodes = children(div0); - t0 = claim_text(div0_nodes, "Converting..."); - div0_nodes.forEach(detach); - t1 = claim_space(div2_nodes); - div1 = claim_element(div2_nodes, "DIV", { class: true }); - var div1_nodes = children(div1); - t2 = claim_text(div1_nodes, t2_value); - t3 = claim_text(div1_nodes, "%"); - div1_nodes.forEach(detach); - div2_nodes.forEach(detach); - this.h(); - }, - h() { - attr(div1, "class", "text-2xl"); - attr(div2, "class", "text-white font-light text-center"); - }, - m(target, anchor) { - insert_hydration(target, div2, anchor); - append_hydration(div2, div0); - append_hydration(div0, t0); - append_hydration(div2, t1); - append_hydration(div2, div1); - append_hydration(div1, t2); - append_hydration(div1, t3); - }, - p(ctx2, dirty) { - if (dirty[0] & /*$progress*/ - 1024 && t2_value !== (t2_value = /*$progress*/ - (ctx2[10] * 100).toFixed(2) + "")) - set_data(t2, t2_value); - }, - i: noop, - o: noop, - d(detaching) { - if (detaching) - detach(div2); - } - }; -} -function create_if_block_2(ctx) { - let div1; - let div0; - let t0; - let t1; - let table; - let current; - let each_value = ( - /*results*/ - ctx[9] - ); - let each_blocks = []; - for (let i = 0; i < each_value.length; i += 1) { - each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i)); - } - const out = (i) => transition_out(each_blocks[i], 1, 1, () => { - each_blocks[i] = null; - }); - return { - c() { - div1 = element("div"); - div0 = element("div"); - t0 = text("Done!"); - t1 = space(); - table = element("table"); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].c(); - } - this.h(); - }, - l(nodes) { - div1 = claim_element(nodes, "DIV", { class: true }); - var div1_nodes = children(div1); - div0 = claim_element(div1_nodes, "DIV", { class: true }); - var div0_nodes = children(div0); - t0 = claim_text(div0_nodes, "Done!"); - div0_nodes.forEach(detach); - t1 = claim_space(div1_nodes); - table = claim_element(div1_nodes, "TABLE", {}); - var table_nodes = children(table); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].l(table_nodes); - } - table_nodes.forEach(detach); - div1_nodes.forEach(detach); - this.h(); - }, - h() { - attr(div0, "class", "text-white text-center"); - attr(div1, "class", "space-y-1"); - }, - m(target, anchor) { - insert_hydration(target, div1, anchor); - append_hydration(div1, div0); - append_hydration(div0, t0); - append_hydration(div1, t1); - append_hydration(div1, table); - for (let i = 0; i < each_blocks.length; i += 1) { - each_blocks[i].m(table, null); - } - current = true; - }, - p(ctx2, dirty) { - if (dirty[0] & /*results*/ - 512) { - each_value = /*results*/ - ctx2[9]; - let i; - for (i = 0; i < each_value.length; i += 1) { - const child_ctx = get_each_context(ctx2, each_value, i); - if (each_blocks[i]) { - each_blocks[i].p(child_ctx, dirty); - transition_in(each_blocks[i], 1); - } else { - each_blocks[i] = create_each_block(child_ctx); - each_blocks[i].c(); - transition_in(each_blocks[i], 1); - each_blocks[i].m(table, null); - } - } - group_outros(); - for (i = each_value.length; i < each_blocks.length; i += 1) { - out(i); - } - check_outros(); - } - }, - i(local) { - if (current) - return; - for (let i = 0; i < each_value.length; i += 1) { - transition_in(each_blocks[i]); - } - current = true; - }, - o(local) { - each_blocks = each_blocks.filter(Boolean); - for (let i = 0; i < each_blocks.length; i += 1) { - transition_out(each_blocks[i]); - } - current = false; - }, - d(detaching) { - if (detaching) - detach(div1); - destroy_each(each_blocks, detaching); - } - }; -} -function create_each_block(ctx) { - let result; - let current; - result = new Result({ - props: { - filename: ( - /*filename*/ - ctx[32] - ), - error: ( - /*error*/ - ctx[33] - ), - beforeSize: ( - /*beforeSize*/ - ctx[34] - ), - afterSize: ( - /*afterSize*/ - ctx[35] - ) - } - }); - return { - c() { - create_component(result.$$.fragment); - }, - l(nodes) { - claim_component(result.$$.fragment, nodes); - }, - m(target, anchor) { - mount_component(result, target, anchor); - current = true; - }, - p(ctx2, dirty) { - const result_changes = {}; - if (dirty[0] & /*results*/ - 512) - result_changes.filename = /*filename*/ - ctx2[32]; - if (dirty[0] & /*results*/ - 512) - result_changes.error = /*error*/ - ctx2[33]; - if (dirty[0] & /*results*/ - 512) - result_changes.beforeSize = /*beforeSize*/ - ctx2[34]; - if (dirty[0] & /*results*/ - 512) - result_changes.afterSize = /*afterSize*/ - ctx2[35]; - result.$set(result_changes); - }, - i(local) { - if (current) - return; - transition_in(result.$$.fragment, local); - current = true; - }, - o(local) { - transition_out(result.$$.fragment, local); - current = false; - }, - d(detaching) { - destroy_component(result, detaching); - } - }; -} -function create_if_block(ctx) { - let div; - let mounted; - let dispose; - return { - c() { - div = element("div"); - this.h(); - }, - l(nodes) { - div = claim_element(nodes, "DIV", { class: true }); - children(div).forEach(detach); - this.h(); - }, - h() { - attr(div, "class", "fixed inset-0 border-4 border-blue flex items-center justify-center bg-black bg-opacity-50"); - }, - m(target, anchor) { - insert_hydration(target, div, anchor); - if (!mounted) { - dispose = [ - listen(div, "dragover", stop_propagation(prevent_default( - /*dragover_handler*/ - ctx[17] - ))), - listen(div, "dragleave", stop_propagation(prevent_default( - /*onDragLeave*/ - ctx[14] - ))), - listen(div, "drop", stop_propagation(prevent_default( - /*onDrop*/ - ctx[16] - ))) - ]; - mounted = true; - } - }, - p: noop, - d(detaching) { - if (detaching) - detach(div); - mounted = false; - run_all(dispose); - } - }; -} -function create_fragment(ctx) { - let t0; - let div4; - let aside; - let div1; - let div0; - let card0; - let t1; - let card1; - let updating_on; - let t2; - let card2; - let updating_on_1; - let t3; - let main; - let section; - let current_block_type_index; - let if_block0; - let t4; - let footer; - let div3; - let a; - let img; - let img_src_value; - let t5; - let div2; - let t6; - let t7; - let t8; - let if_block1_anchor; - let current; - let mounted; - let dispose; - card0 = new Card({ - props: { - title: "Settings", - on: true, - disabled: true, - $$slots: { default: [create_default_slot_6] }, - $$scope: { ctx } - } - }); - function card1_on_binding(value) { - ctx[22](value); - } - let card1_props = { - title: "Size", - $$slots: { default: [create_default_slot_2] }, - $$scope: { ctx } - }; - if ( - /*onSize*/ - ctx[1] !== void 0 - ) { - card1_props.on = /*onSize*/ - ctx[1]; - } - card1 = new Card({ props: card1_props }); - binding_callbacks.push(() => bind(card1, "on", card1_on_binding)); - function card2_on_binding(value) { - ctx[24](value); - } - let card2_props = { - title: "Scale", - $$slots: { default: [create_default_slot] }, - $$scope: { ctx } - }; - if ( - /*onScale*/ - ctx[5] !== void 0 - ) { - card2_props.on = /*onScale*/ - ctx[5]; - } - card2 = new Card({ props: card2_props }); - binding_callbacks.push(() => bind(card2, "on", card2_on_binding)); - const if_block_creators = [create_if_block_1, create_else_block]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*loading*/ - ctx2[8] - ) - return 0; - return 1; - } - current_block_type_index = select_block_type(ctx); - if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - let if_block1 = ( - /*isDragging*/ - ctx[7] && create_if_block(ctx) - ); - return { - c() { - t0 = space(); - div4 = element("div"); - aside = element("aside"); - div1 = element("div"); - div0 = element("div"); - create_component(card0.$$.fragment); - t1 = space(); - create_component(card1.$$.fragment); - t2 = space(); - create_component(card2.$$.fragment); - t3 = space(); - main = element("main"); - section = element("section"); - if_block0.c(); - t4 = space(); - footer = element("footer"); - div3 = element("div"); - a = element("a"); - img = element("img"); - t5 = space(); - div2 = element("div"); - t6 = text("v"); - t7 = text( - /*version*/ - ctx[11] - ); - t8 = space(); - if (if_block1) - if_block1.c(); - if_block1_anchor = empty(); - this.h(); - }, - l(nodes) { - t0 = claim_space(nodes); - div4 = claim_element(nodes, "DIV", { class: true }); - var div4_nodes = children(div4); - aside = claim_element(div4_nodes, "ASIDE", { class: true }); - var aside_nodes = children(aside); - div1 = claim_element(aside_nodes, "DIV", { class: true }); - var div1_nodes = children(div1); - div0 = claim_element(div1_nodes, "DIV", { class: true }); - var div0_nodes = children(div0); - claim_component(card0.$$.fragment, div0_nodes); - t1 = claim_space(div0_nodes); - claim_component(card1.$$.fragment, div0_nodes); - t2 = claim_space(div0_nodes); - claim_component(card2.$$.fragment, div0_nodes); - div0_nodes.forEach(detach); - div1_nodes.forEach(detach); - aside_nodes.forEach(detach); - t3 = claim_space(div4_nodes); - main = claim_element(div4_nodes, "MAIN", { class: true }); - var main_nodes = children(main); - section = claim_element(main_nodes, "SECTION", { class: true }); - var section_nodes = children(section); - if_block0.l(section_nodes); - section_nodes.forEach(detach); - t4 = claim_space(main_nodes); - footer = claim_element(main_nodes, "FOOTER", { class: true }); - var footer_nodes = children(footer); - div3 = claim_element(footer_nodes, "DIV", { class: true }); - var div3_nodes = children(div3); - a = claim_element(div3_nodes, "A", { href: true, target: true, rel: true }); - var a_nodes = children(a); - img = claim_element(a_nodes, "IMG", { src: true, alt: true, class: true }); - a_nodes.forEach(detach); - t5 = claim_space(div3_nodes); - div2 = claim_element(div3_nodes, "DIV", { class: true }); - var div2_nodes = children(div2); - t6 = claim_text(div2_nodes, "v"); - t7 = claim_text( - div2_nodes, - /*version*/ - ctx[11] - ); - div2_nodes.forEach(detach); - div3_nodes.forEach(detach); - footer_nodes.forEach(detach); - main_nodes.forEach(detach); - div4_nodes.forEach(detach); - t8 = claim_space(nodes); - if (if_block1) - if_block1.l(nodes); - if_block1_anchor = empty(); - this.h(); - }, - h() { - attr(div0, "class", ""); - attr(div1, "class", "flex-1"); - attr(aside, "class", "basis-[320px] flex-grow-0 flex-shrink-0 bg-[#151E2C] flex flex-col max-md:basis-[0] max-lg:basis-[240px]"); - attr(section, "class", "flex-1 flex items-center justify-center"); - if (!src_url_equal(img.src, img_src_value = logo)) - attr(img, "src", img_src_value); - attr(img, "alt", "dist.be"); - attr(img, "class", "w-[54px] h-[24px]"); - attr(a, "href", "https://github.com/distbe"); - attr(a, "target", "_blank"); - attr(a, "rel", "noopener noreferrer"); - attr(div2, "class", "text-sm text-white text-opacity-30"); - attr(div3, "class", "absolute right-0 bottom-0 py-2 px-3 flex items-center gap-x-2"); - attr(footer, "class", "relative"); - attr(main, "class", "flex-1 flex-col flex max-md:flex-[300px] max-md:flex-shrink-0 px-4"); - attr(div4, "class", "flex h-full max-md:flex-col"); - }, - m(target, anchor) { - insert_hydration(target, t0, anchor); - insert_hydration(target, div4, anchor); - append_hydration(div4, aside); - append_hydration(aside, div1); - append_hydration(div1, div0); - mount_component(card0, div0, null); - append_hydration(div0, t1); - mount_component(card1, div0, null); - append_hydration(div0, t2); - mount_component(card2, div0, null); - append_hydration(div4, t3); - append_hydration(div4, main); - append_hydration(main, section); - if_blocks[current_block_type_index].m(section, null); - append_hydration(main, t4); - append_hydration(main, footer); - append_hydration(footer, div3); - append_hydration(div3, a); - append_hydration(a, img); - append_hydration(div3, t5); - append_hydration(div3, div2); - append_hydration(div2, t6); - append_hydration(div2, t7); - insert_hydration(target, t8, anchor); - if (if_block1) - if_block1.m(target, anchor); - insert_hydration(target, if_block1_anchor, anchor); - current = true; - if (!mounted) { - dispose = listen(document.body, "dragenter", stop_propagation(prevent_default( - /*onDragEnter*/ - ctx[13] - ))); - mounted = true; - } - }, - p(ctx2, dirty) { - const card0_changes = {}; - if (dirty[0] & /*inputQuality*/ - 1 | dirty[1] & /*$$scope*/ - 128) { - card0_changes.$$scope = { dirty, ctx: ctx2 }; - } - card0.$set(card0_changes); - const card1_changes = {}; - if (dirty[0] & /*inputFit, inputHeight, inputWidth*/ - 28 | dirty[1] & /*$$scope*/ - 128) { - card1_changes.$$scope = { dirty, ctx: ctx2 }; - } - if (!updating_on && dirty[0] & /*onSize*/ - 2) { - updating_on = true; - card1_changes.on = /*onSize*/ - ctx2[1]; - add_flush_callback(() => updating_on = false); - } - card1.$set(card1_changes); - const card2_changes = {}; - if (dirty[0] & /*inputScale*/ - 64 | dirty[1] & /*$$scope*/ - 128) { - card2_changes.$$scope = { dirty, ctx: ctx2 }; - } - if (!updating_on_1 && dirty[0] & /*onScale*/ - 32) { - updating_on_1 = true; - card2_changes.on = /*onScale*/ - ctx2[5]; - add_flush_callback(() => updating_on_1 = false); - } - card2.$set(card2_changes); - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx2); - if (current_block_type_index === previous_block_index) { - if_blocks[current_block_type_index].p(ctx2, dirty); - } else { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - if_block0 = if_blocks[current_block_type_index]; - if (!if_block0) { - if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block0.c(); - } else { - if_block0.p(ctx2, dirty); - } - transition_in(if_block0, 1); - if_block0.m(section, null); - } - if ( - /*isDragging*/ - ctx2[7] - ) { - if (if_block1) { - if_block1.p(ctx2, dirty); - } else { - if_block1 = create_if_block(ctx2); - if_block1.c(); - if_block1.m(if_block1_anchor.parentNode, if_block1_anchor); - } - } else if (if_block1) { - if_block1.d(1); - if_block1 = null; - } - }, - i(local) { - if (current) - return; - transition_in(card0.$$.fragment, local); - transition_in(card1.$$.fragment, local); - transition_in(card2.$$.fragment, local); - transition_in(if_block0); - current = true; - }, - o(local) { - transition_out(card0.$$.fragment, local); - transition_out(card1.$$.fragment, local); - transition_out(card2.$$.fragment, local); - transition_out(if_block0); - current = false; - }, - d(detaching) { - if (detaching) - detach(t0); - if (detaching) - detach(div4); - destroy_component(card0); - destroy_component(card1); - destroy_component(card2); - if_blocks[current_block_type_index].d(); - if (detaching) - detach(t8); - if (if_block1) - if_block1.d(detaching); - if (detaching) - detach(if_block1_anchor); - mounted = false; - dispose(); - } - }; -} -function instance($$self, $$props, $$invalidate) { - let $progress; - const version = "0.3.3"; - let mounted = false; - let isDragging = false; - let loading = false; - let progress = tweened(0); - component_subscribe($$self, progress, (value) => $$invalidate(10, $progress = value)); - let results = null; - let inputQuality = null; - let onSize = false; - let inputWidth = null; - let inputHeight = null; - let inputFit = "Cover"; - let onScale = false; - let inputScale = 1; - onMount(() => { - const state = localStorage.getItem("state"); - if (state) { - try { - const parsed = JSON.parse(state); - $$invalidate(0, inputQuality = parsed.inputQuality); - $$invalidate(1, onSize = parsed.onSize); - if (parsed.onSize) { - $$invalidate(2, inputWidth = parsed.inputWidth); - $$invalidate(3, inputHeight = parsed.inputHeight); - } - $$invalidate(4, inputFit = parsed.inputFit); - $$invalidate(5, onScale = parsed.onScale); - $$invalidate(6, inputScale = parsed.inputScale); - } catch { - } - } - $$invalidate(0, inputQuality = inputQuality ?? 100); - mounted = true; - }); - function saveState(state) { - if (!mounted) - return; - localStorage.setItem("state", JSON.stringify(state)); - } - function toggledOnSize(onSize2) { - if (!mounted) - return; - if (onSize2 && onScale) { - $$invalidate(5, onScale = false); - } - } - function toggledOnScale(onScale2) { - if (!mounted) - return; - if (onScale2 && onSize) { - $$invalidate(1, onSize = false); - } - } - function onInputSize(width, height) { - if (!mounted) - return; - if ((width || height) && !onSize) { - $$invalidate(1, onSize = true); - toggledOnSize(onSize); - } - } - function onInputScale(scale) { - if (!mounted) - return; - if (scale && !onScale) { - $$invalidate(5, onScale = true); - toggledOnScale(onScale); - } - } - function onDragEnter(e) { - $$invalidate(7, isDragging = true); - } - function onDragLeave(e) { - $$invalidate(7, isDragging = false); - } - async function onClickUpload() { - const fileDialog = await __vitePreload(() => import("../../chunks/file-dialog.min-2f0a7f89.js").then((n) => n.f), true ? [] : void 0, import.meta.url).then((m) => m.default); - const files = await fileDialog({ accept: "image/*", multiple: true }); - if (files.length === 0) { - return; - } - const buffers = await Promise.all([...files].map(async (f) => { - return { - name: f.name, - size: f.size, - type: f.type, - buffer: await f.arrayBuffer() - }; - })); - await transform(buffers); - } - async function onDrop(e) { - $$invalidate(7, isDragging = false); - transform(await dataTransferToBuffers(e.dataTransfer)); - } - async function transform(files) { - if (files.length === 0) { - return; - } - $$invalidate(8, loading = true); - const vips = await loadVips(); - const transformResults = await transformFileBuffer( - vips, - files, - { - quality: inputQuality ?? 100, - width: onSize ? inputWidth : null, - height: onSize ? inputHeight : null, - fit: onSize ? inputFit : null, - scale: onScale ? inputScale : null - }, - (p) => { - progress.set(p); - } - ); - $$invalidate(9, results = transformResults.map((r) => { - var _a; - return [r.filename, r.error, r.size, ((_a = r.blob) == null ? void 0 : _a.size) ?? 0]; - })); - $$invalidate(8, loading = false); - if (transformResults.length === 1 && transformResults[0].blob) { - const basename = transformResults[0].filename.replace(/\.[^/.]+$/, ""); - download(transformResults[0].blob, `${basename}.webp`); - return; - } - const zip = await __vitePreload(() => import("../../chunks/jszip.min-e4871d4f.js").then((n) => n.j), true ? [] : void 0, import.meta.url).then((m) => new m.default()); - const filenames = /* @__PURE__ */ new Set(); - for (const { blob: blob2, filename } of transformResults) { - if (!blob2) { - continue; - } - const basename = filename.replace(/\.[^/.]+$/, ""); - let newFilename = basename; - let i = 1; - while (filenames.has(newFilename)) { - newFilename = `${basename} (${i})`; - i++; - } - filenames.add(newFilename); - zip.file(`${newFilename}.webp`, blob2); - } - if (filenames.size === 0) { - return; - } - const blob = await zip.generateAsync({ type: "blob" }); - download(blob, "images.zip"); - } - function dragover_handler(event) { - bubble.call(this, $$self, event); - } - function inputnumber_value_binding(value) { - inputQuality = value; - $$invalidate(0, inputQuality); - } - function inputnumber_value_binding_1(value) { - inputWidth = value; - $$invalidate(2, inputWidth); - } - function inputnumber_value_binding_2(value) { - inputHeight = value; - $$invalidate(3, inputHeight); - } - function inputselect_value_binding(value) { - inputFit = value; - $$invalidate(4, inputFit); - } - function card1_on_binding(value) { - onSize = value; - $$invalidate(1, onSize); - } - function inputnumber_value_binding_3(value) { - inputScale = value; - $$invalidate(6, inputScale); - } - function card2_on_binding(value) { - onScale = value; - $$invalidate(5, onScale); - } - $$self.$$.update = () => { - if ($$self.$$.dirty[0] & /*onSize*/ - 2) { - toggledOnSize(onSize); - } - if ($$self.$$.dirty[0] & /*inputWidth, inputHeight*/ - 12) { - onInputSize(inputWidth, inputHeight); - } - if ($$self.$$.dirty[0] & /*onScale*/ - 32) { - toggledOnScale(onScale); - } - if ($$self.$$.dirty[0] & /*inputScale*/ - 64) { - onInputScale(inputScale); - } - if ($$self.$$.dirty[0] & /*inputQuality, onSize, inputWidth, inputHeight, inputFit, onScale, inputScale*/ - 127) { - saveState({ - inputQuality, - onSize, - inputWidth, - inputHeight, - inputFit, - onScale, - inputScale - }); - } - }; - return [ - inputQuality, - onSize, - inputWidth, - inputHeight, - inputFit, - onScale, - inputScale, - isDragging, - loading, - results, - $progress, - version, - progress, - onDragEnter, - onDragLeave, - onClickUpload, - onDrop, - dragover_handler, - inputnumber_value_binding, - inputnumber_value_binding_1, - inputnumber_value_binding_2, - inputselect_value_binding, - card1_on_binding, - inputnumber_value_binding_3, - card2_on_binding - ]; -} -class Page extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance, create_fragment, safe_not_equal, {}, null, [-1, -1]); - } -} -export { - Page as default -}; diff --git a/_app/immutable/entry/app.86b317e9.js b/_app/immutable/entry/app.86b317e9.js new file mode 100644 index 0000000..adcec24 --- /dev/null +++ b/_app/immutable/entry/app.86b317e9.js @@ -0,0 +1 @@ +import{_ as D}from"../chunks/preload-helper.a4192956.js";import{S,i as j,s as z,a as B,e as p,c as C,b as w,d,f as N,g as h,h as g,j as M,o as U,k as F,l as G,m as H,n as I,p as m,q as J,r as K,u as Q,v as A,t as W,w as P,x as k,y as v,z as R,A as E,B as y}from"../chunks/index.660a2bcd.js";const ne={};function X(o){let e,n,i;var s=o[1][0];function _(t){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,_(o)),o[12](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&R(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){const c={};if(r&8&&(c.data=t[3]),r&4&&(c.form=t[2]),s!==(s=t[1][0])){if(e){A();const f=e;d(f.$$.fragment,1,0,()=>{y(f,1)}),N()}s?(e=k(s,_(t)),t[12](e),v(e.$$.fragment),h(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(c)},i(t){i||(e&&h(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){o[12](null),t&&g(n),e&&y(e,t)}}}function Y(o){let e,n,i;var s=o[1][0];function _(t){return{props:{data:t[3],$$slots:{default:[Z]},$$scope:{ctx:t}}}}return s&&(e=k(s,_(o)),o[11](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&R(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){const c={};if(r&8&&(c.data=t[3]),r&8215&&(c.$$scope={dirty:r,ctx:t}),s!==(s=t[1][0])){if(e){A();const f=e;d(f.$$.fragment,1,0,()=>{y(f,1)}),N()}s?(e=k(s,_(t)),t[11](e),v(e.$$.fragment),h(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(c)},i(t){i||(e&&h(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){o[11](null),t&&g(n),e&&y(e,t)}}}function Z(o){let e,n,i;var s=o[1][1];function _(t){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,_(o)),o[10](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&R(e.$$.fragment,t),n=p()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){const c={};if(r&16&&(c.data=t[4]),r&4&&(c.form=t[2]),s!==(s=t[1][1])){if(e){A();const f=e;d(f.$$.fragment,1,0,()=>{y(f,1)}),N()}s?(e=k(s,_(t)),t[10](e),v(e.$$.fragment),h(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(c)},i(t){i||(e&&h(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){o[10](null),t&&g(n),e&&y(e,t)}}}function V(o){let e,n=o[6]&&L(o);return{c(){e=F("div"),n&&n.c(),this.h()},l(i){e=G(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=H(e);n&&n.l(s),s.forEach(g),this.h()},h(){I(e,"id","svelte-announcer"),I(e,"aria-live","assertive"),I(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=L(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&g(e),n&&n.d()}}}function L(o){let e;return{c(){e=J(o[7])},l(n){e=K(n,o[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&Q(e,n[7])},d(n){n&&g(e)}}}function $(o){let e,n,i,s,_;const t=[Y,X],r=[];function c(a,u){return a[1][1]?0:1}e=c(o),n=r[e]=t[e](o);let f=o[5]&&V(o);return{c(){n.c(),i=B(),f&&f.c(),s=p()},l(a){n.l(a),i=C(a),f&&f.l(a),s=p()},m(a,u){r[e].m(a,u),w(a,i,u),f&&f.m(a,u),w(a,s,u),_=!0},p(a,[u]){let b=e;e=c(a),e===b?r[e].p(a,u):(A(),d(r[b],1,1,()=>{r[b]=null}),N(),n=r[e],n?n.p(a,u):(n=r[e]=t[e](a),n.c()),h(n,1),n.m(i.parentNode,i)),a[5]?f?f.p(a,u):(f=V(a),f.c(),f.m(s.parentNode,s)):f&&(f.d(1),f=null)},i(a){_||(h(n),_=!0)},o(a){d(n),_=!1},d(a){r[e].d(a),a&&g(i),f&&f.d(a),a&&g(s)}}}function x(o,e,n){let{stores:i}=e,{page:s}=e,{constructors:_}=e,{components:t=[]}=e,{form:r}=e,{data_0:c=null}=e,{data_1:f=null}=e;M(i.page.notify);let a=!1,u=!1,b=null;U(()=>{const l=i.page.subscribe(()=>{a&&(n(6,u=!0),W().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,a=!0),l});function O(l){P[l?"unshift":"push"](()=>{t[1]=l,n(0,t)})}function T(l){P[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}function q(l){P[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}return o.$$set=l=>{"stores"in l&&n(8,i=l.stores),"page"in l&&n(9,s=l.page),"constructors"in l&&n(1,_=l.constructors),"components"in l&&n(0,t=l.components),"form"in l&&n(2,r=l.form),"data_0"in l&&n(3,c=l.data_0),"data_1"in l&&n(4,f=l.data_1)},o.$$.update=()=>{o.$$.dirty&768&&i.page.set(s)},[t,_,r,c,f,a,u,b,i,s,O,T,q]}class ie extends S{constructor(e){super(),j(this,e,x,$,z,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const se=[()=>D(()=>import("../nodes/0.1acbfbf6.js"),["../nodes/0.1acbfbf6.js","../chunks/index.660a2bcd.js","../assets/0.8746701a.css"],import.meta.url),()=>D(()=>import("../nodes/1.e4d762d3.js"),["../nodes/1.e4d762d3.js","../chunks/index.660a2bcd.js","../chunks/singletons.4f4b311d.js","../chunks/index.18554981.js"],import.meta.url),()=>D(()=>import("../nodes/2.b6fa201e.js"),["../nodes/2.b6fa201e.js","../chunks/preload-helper.a4192956.js","../chunks/index.660a2bcd.js","../chunks/index.18554981.js","../assets/2.f48004e0.css"],import.meta.url)],re=[],oe={"/":[2]},ae={handleError:({error:o})=>{console.error(o)}};export{oe as dictionary,ae as hooks,ne as matchers,se as nodes,ie as root,re as server_loads}; diff --git a/_app/immutable/entry/start.8ad1b430.js b/_app/immutable/entry/start.8ad1b430.js new file mode 100644 index 0000000..85f7700 --- /dev/null +++ b/_app/immutable/entry/start.8ad1b430.js @@ -0,0 +1,3 @@ +import{o as me,t as we}from"../chunks/index.660a2bcd.js";import{S as Ge,a as Je,I as M,g as Ce,f as De,b as ye,c as le,s as te,i as _e,d as B,e as q,o as Fe,P as Me,h as Ze}from"../chunks/singletons.4f4b311d.js";function Qe(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function et(t){return t.split("%25").map(decodeURI).join("%25")}function tt(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const nt=["href","pathname","search","searchParams","toString","toJSON"];function at(t,r){const f=new URL(t);for(const i of nt)Object.defineProperty(f,i,{get(){return r(),t[i]},enumerable:!0,configurable:!0});return rt(f),f}function rt(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const ot="/__data.json";function it(t){return t.replace(/\/$/,"")+ot}function st(...t){let r=5381;for(const f of t)if(typeof f=="string"){let i=f.length;for(;i;)r=r*33^f.charCodeAt(--i)}else if(ArrayBuffer.isView(f)){const i=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);let h=i.length;for(;h;)r=r*33^i[--h]}else throw new TypeError("value must be a string or TypedArray");return(r>>>0).toString(36)}const Ke=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ae.delete(Se(t)),Ke(t,r));const ae=new Map;function ct(t){const r=atob(t),f=new Uint8Array(r.length);for(let i=0;i0){const i=Se(t,f),h=ae.get(i);if(h){if(performance.now(){const h=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(i);if(h)return r.push({name:h[1],matcher:h[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const u=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(i);if(u)return r.push({name:u[1],matcher:u[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!i)return;const E=i.split(/\[(.+?)\](?!\])/);return"/"+E.map((g,m)=>{if(m%2){if(g.startsWith("x+"))return ve(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return ve(String.fromCharCode(...g.slice(2).split("-").map(U=>parseInt(U,16))));const d=ut.exec(g);if(!d)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,N,T,R,D]=d;return r.push({name:R,matcher:D,optional:!!N,rest:!!T,chained:T?m===1&&E[0]==="":!1}),T?"(.*?)":N?"([^/]*)?":"([^/]+?)"}return ve(g)}).join("")}).join("")}/?$`),params:r}}function ht(t){return!/^\([^)]+\)$/.test(t)}function pt(t){return t.slice(1).split("/").filter(ht)}function gt(t,r,f){const i={},h=t.slice(1),u=h.filter(l=>l!==void 0);let E=0;for(let l=0;ld).join("/"),E=0),m===void 0){g.rest&&(i[g.name]="");continue}if(!g.matcher||f[g.matcher](m)){i[g.name]=m;const d=r[l+1],N=h[l+1];d&&!d.rest&&d.optional&&N&&g.chained&&(E=0),!d&&!N&&Object.keys(i).length===u.length&&(E=0);continue}if(g.optional&&g.chained){E++;continue}return}if(!E)return i}function ve(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function mt({nodes:t,server_loads:r,dictionary:f,matchers:i}){const h=new Set(r);return Object.entries(f).map(([l,[g,m,d]])=>{const{pattern:N,params:T}=dt(l),R={id:l,exec:D=>{const U=N.exec(D);if(U)return gt(U,T,i)},errors:[1,...d||[]].map(D=>t[D]),layouts:[0,...m||[]].map(E),leaf:u(g)};return R.errors.length=R.layouts.length=Math.max(R.errors.length,R.layouts.length),R});function u(l){const g=l<0;return g&&(l=~l),[g,t[l]]}function E(l){return l===void 0?l:[h.has(l),t[l]]}}function ze(t){try{return JSON.parse(sessionStorage[t])}catch{}}function Ve(t,r){const f=JSON.stringify(r);try{sessionStorage[t]=f}catch{}}const wt=-1,yt=-2,_t=-3,vt=-4,bt=-5,Et=-6;function St(t,r){if(typeof t=="number")return h(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const f=t,i=Array(f.length);function h(u,E=!1){if(u===wt)return;if(u===_t)return NaN;if(u===vt)return 1/0;if(u===bt)return-1/0;if(u===Et)return-0;if(E)throw new Error("Invalid input");if(u in i)return i[u];const l=f[u];if(!l||typeof l!="object")i[u]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const g=l[0],m=r==null?void 0:r[g];if(m)return i[u]=m(h(l[1]));switch(g){case"Date":i[u]=new Date(l[1]);break;case"Set":const d=new Set;i[u]=d;for(let R=1;Rr!=null)}const We=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...We];const Rt=new Set([...We]);[...Rt];async function At(t,r){var f;for(const i in t)if(typeof((f=t[i])==null?void 0:f.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([h,u])=>[h,await u])));return t}class ne{constructor(r,f){this.status=r,typeof f=="string"?this.body={message:f}:f?this.body=f:this.body={message:`Error: ${r}`}}toString(){return JSON.stringify(this.body)}}class qe{constructor(r,f){this.status=r,this.location=f}}class It extends Error{constructor(r){super(),this.status=404,this.message=`Not found: ${r}`}}const Lt="x-sveltekit-invalidated",Pt="x-sveltekit-trailing-slash",J=ze(Ge)??{},ee=ze(Je)??{};function be(t){J[t]=te()}function K(t){return location.href=t.href,new Promise(()=>{})}function Ot(t,r){var je;const f=mt(t),i=t.nodes[0],h=t.nodes[1];i(),h();const u=document.documentElement,E=[],l=[];let g=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let d={branch:[],error:null,url:null},N=!1,T=!1,R=!0,D=!1,U=!1,C=!1,z=!1,V,x=(je=history.state)==null?void 0:je[M];x||(x=Date.now(),history.replaceState({...history.state,[M]:x},"",location.href));const fe=J[x];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let H,W,Y;async function ke(){if(Y=Y||Promise.resolve(),await Y,!Y)return;Y=null;const e=new URL(location.href),s=Z(e,!0);g=null;const n=W={},o=s&&await he(s);if(n===W&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},1,n);o.props.page!==void 0&&(H=o.props.page),V.$set(o.props)}}function Re(e){l.some(s=>s==null?void 0:s.snapshot)&&(ee[e]=l.map(s=>{var n;return(n=s==null?void 0:s.snapshot)==null?void 0:n.capture()}))}function Ae(e){var s;(s=ee[e])==null||s.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Ie(){be(x),Ve(Ge,J),Re(x),Ve(Je,ee)}async function re(e,{noScroll:s=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},p,_){return typeof e=="string"&&(e=new URL(e,Ce(document))),ce({url:e,scroll:s?te():null,keepfocus:o,redirect_count:p,details:{state:a,replaceState:n},nav_token:_,accepted:()=>{c&&(z=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return g={id:e.id,promise:he(e).then(s=>(s.type==="loaded"&&s.state.error&&(g=null),s))},g.promise}async function oe(...e){const n=f.filter(o=>e.some(a=>o.exec(a))).map(o=>Promise.all([...o.layouts,o.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(n)}function Pe(e){var o;d=e.state;const s=document.querySelector("style[data-sveltekit]");s&&s.remove(),H=e.props.page,V=new t.root({target:r,props:{...e.props,stores:B,components:l},hydrate:!0}),Ae(x);const n={from:null,to:{params:d.params,route:{id:((o=d.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(n)),T=!0}async function X({url:e,params:s,branch:n,status:o,error:a,route:c,form:p}){let _="never";for(const y of n)(y==null?void 0:y.slash)!==void 0&&(_=y.slash);e.pathname=Qe(e.pathname,_),e.search=e.search;const b={type:"loaded",state:{url:e,params:s,branch:n,error:a,route:c},props:{constructors:kt(n).map(y=>y.node.component)}};p!==void 0&&(b.props.form=p);let v={},L=!H,A=0;for(let y=0;y(_.route=!0,w[O])}),params:new Proxy(o,{get:(w,O)=>(_.params.add(O),w[O])}),data:(c==null?void 0:c.data)??null,url:at(n,()=>{_.url=!0}),async fetch(w,O){let j;w instanceof Request?(j=w.url,O={body:w.method==="GET"||w.method==="HEAD"?void 0:await w.blob(),cache:w.cache,credentials:w.credentials,headers:w.headers,integrity:w.integrity,keepalive:w.keepalive,method:w.method,mode:w.mode,redirect:w.redirect,referrer:w.referrer,referrerPolicy:w.referrerPolicy,signal:w.signal,...O}):j=w;const F=new URL(j,n);return P(F.href),F.origin===n.origin&&(j=F.href.slice(n.origin.length)),T?ft(j,F.href,O):lt(j,O)},setHeaders:()=>{},depends:P,parent(){return _.parent=!0,s()}};p=await b.universal.load.call(null,y)??null,p=p?await At(p,a.id):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:p,uses:_}:null,data:p??(c==null?void 0:c.data)??null,slash:n.pathname===q||n.pathname===q+"/"?"always":((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Oe(e,s,n,o,a){if(z)return!0;if(!o)return!1;if(o.parent&&e||o.route&&s||o.url&&n)return!0;for(const c of o.params)if(a[c]!==d.params[c])return!0;for(const c of o.dependencies)if(E.some(p=>p(new URL(c))))return!0;return!1}function de(e,s){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?s??null:null}async function he({id:e,invalidating:s,url:n,params:o,route:a}){if((g==null?void 0:g.id)===e)return g.promise;const{errors:c,layouts:p,leaf:_}=a,b=[...p,_];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let v=null;const L=d.url?e!==d.url.pathname+d.url.search:!1,A=d.route?a.id!==d.route.id:!1;let P=!1;const y=b.map((S,I)=>{var G;const k=d.branch[I],$=!!(S!=null&&S[0])&&((k==null?void 0:k.loader)!==S[1]||Oe(P,A,L,(G=k.server)==null?void 0:G.uses,o));return $&&(P=!0),$});if(y.some(Boolean)){try{v=await He(n,y)}catch(S){return ie({status:S instanceof ne?S.status:500,error:await Q(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(v.type==="redirect")return v}const w=v==null?void 0:v.nodes;let O=!1;const j=b.map(async(S,I)=>{var pe;if(!S)return;const k=d.branch[I],$=w==null?void 0:w[I];if((!$||$.type==="skip")&&S[1]===(k==null?void 0:k.loader)&&!Oe(O,A,L,(pe=k.universal)==null?void 0:pe.uses,o))return k;if(O=!0,($==null?void 0:$.type)==="error")throw $;return ue({loader:S[1],url:n,params:o,route:a,parent:async()=>{var Te;const $e={};for(let ge=0;ge{});const F=[];for(let S=0;SPromise.resolve({}),server_data_node:de(c)}),b={node:await h(),loader:h,universal:null,server:null,data:null};return await X({url:n,params:a,branch:[_,b],status:e,error:s,route:null})}function Z(e,s){if(_e(e,q))return;const n=se(e);for(const o of f){const a=o.exec(n);if(a)return{id:e.pathname+e.search,invalidating:s,route:o,params:tt(a),url:e}}}function se(e){return et(e.pathname.slice(q.length)||"/")}function Ue({url:e,type:s,intent:n,delta:o}){let a=!1;const c=Be(d,n,e,s);o!==void 0&&(c.navigation.delta=o);const p={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(_=>_(p)),a?null:c}async function ce({url:e,scroll:s,keepfocus:n,redirect_count:o,details:a,type:c,delta:p,nav_token:_={},accepted:b,blocked:v}){var j,F,S;const L=Z(e,!1),A=Ue({url:e,type:c,delta:p,intent:L});if(!A){v();return}const P=x;b(),U=!0,T&&B.navigating.set(A.navigation),W=_;let y=L&&await he(L);if(!y){if(_e(e,q))return await K(e);y=await Ne(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,W!==_)return A.reject(new Error("navigation was aborted")),!1;if(y.type==="redirect")if(o>=20)y=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(y.location,e).href,{},o+1,_),!1;else((j=y.props.page)==null?void 0:j.status)>=400&&await B.updated.check()&&await K(e);if(E.length=0,z=!1,D=!0,be(P),Re(P),(F=y.props.page)!=null&&F.url&&y.props.page.url.pathname!==e.pathname&&(e.pathname=(S=y.props.page)==null?void 0:S.url.pathname),a){const I=a.replaceState?0:1;if(a.state[M]=x+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let k=x+1;for(;ee[k]||J[k];)delete ee[k],delete J[k],k+=1}}if(g=null,T){d=y.state,y.props.page&&(y.props.page.url=e);const I=(await Promise.all(m.on_navigate.map(k=>k(A.navigation)))).filter(k=>typeof k=="function");if(I.length>0){let k=function(){m.after_navigate=m.after_navigate.filter($=>!I.includes($))};I.push(k),m.after_navigate.push(...I)}V.$set(y.props)}else Pe(y);const{activeElement:w}=document;if(await we(),R){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));s?scrollTo(s.x,s.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==w&&document.activeElement!==document.body;!n&&!O&&Ee(),R=!0,y.props.page&&(H=y.props.page),U=!1,c==="popstate"&&Ae(x),A.fulfil(void 0),m.after_navigate.forEach(I=>I(A.navigation)),B.navigating.set(null),D=!1}async function Ne(e,s,n,o){return e.origin===Fe&&e.pathname===location.pathname&&!N?await ie({status:o,error:n,url:e,route:s}):await K(e)}function Xe(){let e;u.addEventListener("mousemove",c=>{const p=c.target;clearTimeout(e),e=setTimeout(()=>{o(p,2)},20)});function s(c){o(c.composedPath()[0],1)}u.addEventListener("mousedown",s),u.addEventListener("touchstart",s,{passive:!0});const n=new IntersectionObserver(c=>{for(const p of c)p.isIntersecting&&(oe(se(new URL(p.target.href))),n.unobserve(p.target))},{threshold:0});function o(c,p){const _=De(c,u);if(!_)return;const{url:b,external:v,download:L}=ye(_,q);if(v||L)return;const A=le(_);if(!A.reload)if(p<=A.preload_data){const P=Z(b,!1);P&&Le(P)}else p<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of u.querySelectorAll("a")){const{url:p,external:_,download:b}=ye(c,q);if(_||b)continue;const v=le(c);v.reload||(v.preload_code===Me.viewport&&n.observe(c),v.preload_code===Me.eager&&oe(se(p)))}}m.after_navigate.push(a),a()}function Q(e,s){return e instanceof ne?e.body:t.hooks.handleError({error:e,event:s})??{message:s.route.id===null&&e instanceof It?"Not Found":"Internal Error"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const s=m.after_navigate.indexOf(e);m.after_navigate.splice(s,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const s=m.before_navigate.indexOf(e);m.before_navigate.splice(s,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const s=m.on_navigate.indexOf(e);m.on_navigate.splice(s,1)}))},disable_scroll_handling:()=>{(D||!T)&&(R=!1)},goto:(e,s={})=>re(e,s,0),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:s}=new URL(e,location.href);E.push(n=>n.href===s)}return ke()},invalidate_all:()=>(z=!0,ke()),preload_data:async e=>{const s=new URL(e,Ce(document)),n=Z(s,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${s}`);await Le(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const s=new URL(location.href),{branch:n,route:o}=d;if(!o)return;const a=await xe(d.branch.length,n,o.errors);if(a){const c=await X({url:s,params:d.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});d=c.state,V.$set(c.props),we().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...H,form:e.data,status:e.status}}),await we(),V.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var s;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Ie(),!U){const a=Be(d,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(p=>p(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(s=navigator.connection)!=null&&s.saveData||Xe(),u.addEventListener("click",n=>{var P;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const o=De(n.composedPath()[0],u);if(!o)return;const{url:a,external:c,target:p,download:_}=ye(o,q);if(!a)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_self")return;const b=le(o);if(!(o instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||_)return;if(c||b.reload){Ue({url:a,type:"link"})?U=!0:n.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(d.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(C=!0,be(x),e(a),!b.replace_state)return;C=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?te():null,keepfocus:b.keep_focus??!1,redirect_count:0,details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),u.addEventListener("submit",n=>{if(n.defaultPrevented)return;const o=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||o.method)!=="get")return;const p=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(_e(p,q))return;const _=n.target,{keep_focus:b,noscroll:v,reload:L,replace_state:A}=le(_);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(_),y=a==null?void 0:a.getAttribute("name");y&&P.append(y,(a==null?void 0:a.getAttribute("value"))??""),p.search=new URLSearchParams(P).toString(),ce({url:p,scroll:v?te():null,keepfocus:b??!1,redirect_count:0,details:{state:{},replaceState:A??p.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o,a;if(W={},(o=n.state)!=null&&o[M]){if(n.state[M]===x)return;const c=J[n.state[M]],p=new URL(location.href);if(((a=d.url)==null?void 0:a.href.split("#")[0])===location.href.split("#")[0]){e(p),J[x]=te(),x=n.state[M],scrollTo(c.x,c.y);return}const _=n.state[M]-x;await ce({url:p,scroll:c,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{x=n.state[M]},blocked:()=>{history.go(-_)},type:"popstate",delta:_,nav_token:W})}else if(!C){const c=new URL(location.href);e(c)}}),addEventListener("hashchange",()=>{C&&(C=!1,history.replaceState({...history.state,[M]:++x},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&B.navigating.set(null)});function e(n){d.url=n,B.page.set({...H,url:n}),B.page.notify()}},_hydrate:async({status:e=200,error:s,node_ids:n,params:o,route:a,data:c,form:p})=>{N=!0;const _=new URL(location.href);({params:o={},route:a={id:null}}=Z(_,!1)||{});let b;try{const v=n.map(async(P,y)=>{const w=c[y];return w!=null&&w.uses&&(w.uses=Ye(w.uses)),ue({loader:t.nodes[P],url:_,params:o,route:a,parent:async()=>{const O={};for(let j=0;jP===a.id);if(A){const P=A.layouts;for(let y=0;yu?"1":"0").join(""));const i=await Ke(f.href);if((h=i.headers.get("content-type"))!=null&&h.includes("text/html")&&await K(t),!i.ok)throw new ne(i.status,await i.json());return new Promise(async u=>{var N;const E=new Map,l=i.body.getReader(),g=new TextDecoder;function m(T){return St(T,{Promise:R=>new Promise((D,U)=>{E.set(R,{fulfil:D,reject:U})})})}let d="";for(;;){const{done:T,value:R}=await l.read();if(T&&!d)break;for(d+=!R&&d?` +`:g.decode(R);;){const D=d.indexOf(` +`);if(D===-1)break;const U=JSON.parse(d.slice(0,D));if(d=d.slice(D+1),U.type==="redirect")return u(U);if(U.type==="data")(N=U.nodes)==null||N.forEach(C=>{(C==null?void 0:C.type)==="data"&&(C.uses=Ye(C.uses),C.data=m(C.data))}),u(U);else if(U.type==="chunk"){const{id:C,data:z,error:V}=U,x=E.get(C);E.delete(C),V?x.reject(m(V)):x.fulfil(m(z))}}}})}function Ye(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url)}}function Ee(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const r=document.body,f=r.getAttribute("tabindex");r.tabIndex=-1,r.focus({preventScroll:!0,focusVisible:!1}),f!==null?r.setAttribute("tabindex",f):r.removeAttribute("tabindex");const i=getSelection();if(i&&i.type!=="None"){const h=[];for(let u=0;u{if(i.rangeCount===h.length){for(let u=0;u{h=d,u=N});return E.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((g=t.route)==null?void 0:g.id)??null},url:t.url},to:f&&{params:(r==null?void 0:r.params)??null,route:{id:((m=r==null?void 0:r.route)==null?void 0:m.id)??null},url:f},willUnload:!r,type:i,complete:E},fulfil:h,reject:u}}async function Nt(t,r,f){const i=Ot(t,r);Ze({client:i}),f?await i._hydrate(f):i.goto(location.href,{replaceState:!0}),i._start_router()}export{Nt as start}; diff --git a/_app/immutable/modules/pages/_layout.ts-fa3c4266.js b/_app/immutable/modules/pages/_layout.ts-fa3c4266.js deleted file mode 100644 index c636232..0000000 --- a/_app/immutable/modules/pages/_layout.ts-fa3c4266.js +++ /dev/null @@ -1,4 +0,0 @@ -import { p } from "../../chunks/_layout-9a8b0c19.js"; -export { - p as prerender -}; diff --git a/_app/immutable/modules/pages/_page.ts-ed610ca4.js b/_app/immutable/modules/pages/_page.ts-ed610ca4.js deleted file mode 100644 index 71db82d..0000000 --- a/_app/immutable/modules/pages/_page.ts-ed610ca4.js +++ /dev/null @@ -1,4 +0,0 @@ -import { p } from "../../chunks/_page-de0ef88a.js"; -export { - p as prerender -}; diff --git a/_app/immutable/nodes/0.1acbfbf6.js b/_app/immutable/nodes/0.1acbfbf6.js new file mode 100644 index 0000000..68f056b --- /dev/null +++ b/_app/immutable/nodes/0.1acbfbf6.js @@ -0,0 +1 @@ +import{S as i,i as u,s as c,C as _,k as f,l as d,m as p,h as r,n as m,b as h,D as $,E as v,F as g,g as b,d as y}from"../chunks/index.660a2bcd.js";const S=!0,E=Object.freeze(Object.defineProperty({__proto__:null,prerender:S},Symbol.toStringTag,{value:"Module"}));function j(l){let s,a;const o=l[1].default,t=_(o,l,l[0],null);return{c(){s=f("div"),t&&t.c(),this.h()},l(e){s=d(e,"DIV",{class:!0});var n=p(s);t&&t.l(n),n.forEach(r),this.h()},h(){m(s,"class","min-h-screen h-px")},m(e,n){h(e,s,n),t&&t.m(s,null),a=!0},p(e,[n]){t&&t.p&&(!a||n&1)&&$(t,o,e,e[0],a?g(o,e[0],n,null):v(e[0]),null)},i(e){a||(b(t,e),a=!0)},o(e){y(t,e),a=!1},d(e){e&&r(s),t&&t.d(e)}}}function C(l,s,a){let{$$slots:o={},$$scope:t}=s;return l.$$set=e=>{"$$scope"in e&&a(0,t=e.$$scope)},[t,o]}class O extends i{constructor(s){super(),u(this,s,C,j,c,{})}}export{O as component,E as universal}; diff --git a/_app/immutable/nodes/1.e4d762d3.js b/_app/immutable/nodes/1.e4d762d3.js new file mode 100644 index 0000000..362790c --- /dev/null +++ b/_app/immutable/nodes/1.e4d762d3.js @@ -0,0 +1 @@ +import{S,i as q,s as x,k as _,q as f,a as H,l as d,m as g,r as h,h as u,c as k,b as m,G as v,u as $,H as E,I as y}from"../chunks/index.660a2bcd.js";import{d as C}from"../chunks/singletons.4f4b311d.js";const G=()=>{const s=C;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},I={subscribe(s){return G().page.subscribe(s)}};function P(s){var b;let t,r=s[0].status+"",o,n,i,c=((b=s[0].error)==null?void 0:b.message)+"",l;return{c(){t=_("h1"),o=f(r),n=H(),i=_("p"),l=f(c)},l(e){t=d(e,"H1",{});var a=g(t);o=h(a,r),a.forEach(u),n=k(e),i=d(e,"P",{});var p=g(i);l=h(p,c),p.forEach(u)},m(e,a){m(e,t,a),v(t,o),m(e,n,a),m(e,i,a),v(i,l)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&$(o,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&$(l,c)},i:E,o:E,d(e){e&&u(t),e&&u(n),e&&u(i)}}}function j(s,t,r){let o;return y(s,I,n=>r(0,o=n)),[o]}let A=class extends S{constructor(t){super(),q(this,t,j,P,x,{})}};export{A as component}; diff --git a/_app/immutable/nodes/2.b6fa201e.js b/_app/immutable/nodes/2.b6fa201e.js new file mode 100644 index 0000000..1e31180 --- /dev/null +++ b/_app/immutable/nodes/2.b6fa201e.js @@ -0,0 +1 @@ +import{_ as Fe}from"../chunks/preload-helper.a4192956.js";import{J as Me,K as st,L as it,M as at,S as oe,i as ue,s as fe,k as b,q as C,a as F,l as w,m as E,r as O,h as _,c as P,n as v,b as z,G as d,u as Z,H,e as Se,N as ne,O as le,g as S,v as ve,d as V,f as be,w as re,P as se,y as j,z as L,A as N,Q as ie,B as q,C as Xe,D as xe,E as et,F as tt,R as Re,T as nt,U as ot,V as Ge,W as lt,X as ut,Y as ft,Z as Ie,_ as De,I as ct,o as _t,$ as ht,a0 as dt}from"../chunks/index.660a2bcd.js";import{w as pt}from"../chunks/index.18554981.js";const mt=!0,dn=Object.freeze(Object.defineProperty({__proto__:null,prerender:mt},Symbol.toStringTag,{value:"Module"}));function Ue(l){return Object.prototype.toString.call(l)==="[object Date]"}function Pe(l,e){if(l===e||l!==l)return()=>l;const t=typeof l;if(t!==typeof e||Array.isArray(l)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(l)){const r=e.map((i,s)=>Pe(l[s],i));return i=>r.map(s=>s(i))}if(t==="object"){if(!l||!e)throw new Error("Object cannot be null");if(Ue(l)&&Ue(e)){l=l.getTime(),e=e.getTime();const s=e-l;return n=>new Date(l+n*s)}const r=Object.keys(e),i={};return r.forEach(s=>{i[s]=Pe(l[s],e[s])}),s=>{const n={};return r.forEach(o=>{n[o]=i[o](s)}),n}}if(t==="number"){const r=e-l;return i=>l+i*r}throw new Error(`Cannot interpolate ${t} values`)}function gt(l,e={}){const t=pt(l);let r,i=l;function s(n,o){if(l==null)return t.set(l=n),Promise.resolve();i=n;let a=r,u=!1,{delay:f=0,duration:c=400,easing:h=at,interpolate:k=Pe}=Me(Me({},e),o);if(c===0)return a&&(a.abort(),a=null),t.set(l=i),Promise.resolve();const I=st()+f;let $;return r=it(p=>{if(pc?(t.set(l=n),!1):(t.set(l=$(h(g/c))),!0)}),r.promise}return{set:s,update:(n,o)=>s(n(i,l),o),subscribe:t.subscribe}}function vt(l){let e,t=$e(l[2])+"",r,i,s,n,o,a,u=$e(l[3])+"",f,c,h;function k(p,g){return p[4]!==null?Et:wt}let I=k(l),$=I(l);return{c(){e=b("td"),r=C(t),i=F(),s=b("td"),n=C("→"),o=F(),a=b("td"),f=C(u),c=F(),$.c(),h=Se(),this.h()},l(p){e=w(p,"TD",{class:!0});var g=E(e);r=O(g,t),g.forEach(_),i=P(p),s=w(p,"TD",{});var B=E(s);n=O(B,"→"),B.forEach(_),o=P(p),a=w(p,"TD",{class:!0});var T=E(a);f=O(T,u),T.forEach(_),c=P(p),$.l(p),h=Se(),this.h()},h(){v(e,"class","result__size svelte-1wh6mo4"),v(a,"class","result__size svelte-1wh6mo4")},m(p,g){z(p,e,g),d(e,r),z(p,i,g),z(p,s,g),d(s,n),z(p,o,g),z(p,a,g),d(a,f),z(p,c,g),$.m(p,g),z(p,h,g)},p(p,g){g&4&&t!==(t=$e(p[2])+"")&&Z(r,t),g&8&&u!==(u=$e(p[3])+"")&&Z(f,u),I===(I=k(p))&&$?$.p(p,g):($.d(1),$=I(p),$&&($.c(),$.m(h.parentNode,h)))},d(p){p&&_(e),p&&_(i),p&&_(s),p&&_(o),p&&_(a),p&&_(c),$.d(p),p&&_(h)}}}function bt(l){let e,t;return{c(){e=b("td"),t=C(l[1]),this.h()},l(r){e=w(r,"TD",{class:!0,colspan:!0});var i=E(e);t=O(i,l[1]),i.forEach(_),this.h()},h(){v(e,"class","result__error svelte-1wh6mo4"),v(e,"colspan","4")},m(r,i){z(r,e,i),d(e,t)},p(r,i){i&2&&Z(t,r[1])},d(r){r&&_(e)}}}function wt(l){let e;return{c(){e=b("td")},l(t){e=w(t,"TD",{}),E(e).forEach(_)},m(t,r){z(t,e,r)},p:H,d(t){t&&_(e)}}}function Et(l){let e,t,r=l[4].toFixed(2)+"",i,s;return{c(){e=b("td"),t=C("("),i=C(r),s=C("%)"),this.h()},l(n){e=w(n,"TD",{class:!0});var o=E(e);t=O(o,"("),i=O(o,r),s=O(o,"%)"),o.forEach(_),this.h()},h(){v(e,"class","result__rate svelte-1wh6mo4"),ne(e,"result--good",l[4]>0),ne(e,"result--bad",l[4]<=0&&l[4]>-.5),ne(e,"result--worse",l[4]<=-.5)},m(n,o){z(n,e,o),d(e,t),d(e,i),d(e,s)},p(n,o){o&16&&r!==(r=n[4].toFixed(2)+"")&&Z(i,r),o&16&&ne(e,"result--good",n[4]>0),o&16&&ne(e,"result--bad",n[4]<=0&&n[4]>-.5),o&16&&ne(e,"result--worse",n[4]<=-.5)},d(n){n&&_(e)}}}function yt(l){let e,t,r=je(l[0])+"",i,s;function n(u,f){return u[1]?bt:vt}let o=n(l),a=o(l);return{c(){e=b("tr"),t=b("td"),i=C(r),s=F(),a.c(),this.h()},l(u){e=w(u,"TR",{class:!0});var f=E(e);t=w(f,"TD",{class:!0});var c=E(t);i=O(c,r),c.forEach(_),s=P(f),a.l(f),f.forEach(_),this.h()},h(){v(t,"class","result__filename svelte-1wh6mo4"),v(e,"class","result svelte-1wh6mo4")},m(u,f){z(u,e,f),d(e,t),d(t,i),d(e,s),a.m(e,null)},p(u,[f]){f&1&&r!==(r=je(u[0])+"")&&Z(i,r),o===(o=n(u))&&a?a.p(u,f):(a.d(1),a=o(u),a&&(a.c(),a.m(e,null)))},i:H,o:H,d(u){u&&_(e),a.d()}}}function $e(l){if(l===0)return"0 Bytes";const e=1024,t=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],r=Math.floor(Math.log(l)/Math.log(e));return parseFloat((l/Math.pow(e,r)).toFixed(2))+" "+t[r]}function je(l){return l.replace(/^\/+/,"")}function $t(l,e,t){let r,{filename:i}=e,{error:s=null}=e,{beforeSize:n}=e,{afterSize:o}=e;return l.$$set=a=>{"filename"in a&&t(0,i=a.filename),"error"in a&&t(1,s=a.error),"beforeSize"in a&&t(2,n=a.beforeSize),"afterSize"in a&&t(3,o=a.afterSize)},l.$$.update=()=>{l.$$.dirty&12&&t(4,r=n===0?null:(1-o/n)*100)},[i,s,n,o,r]}class kt extends oe{constructor(e){super(),ue(this,e,$t,yt,fe,{filename:0,error:1,beforeSize:2,afterSize:3})}}function It(l){let e,t,r,i;return{c(){e=b("div"),t=b("div"),this.h()},l(s){e=w(s,"DIV",{class:!0});var n=E(e);t=w(n,"DIV",{class:!0}),E(t).forEach(_),n.forEach(_),this.h()},h(){v(t,"class","input-switch__control svelte-g8v6up"),v(e,"class","input-switch svelte-g8v6up"),ne(e,"input-switch--on",l[0])},m(s,n){z(s,e,n),d(e,t),r||(i=le(e,"click",l[1]),r=!0)},p(s,[n]){n&1&&ne(e,"input-switch--on",s[0])},i:H,o:H,d(s){s&&_(e),r=!1,i()}}}function Dt(l,e,t){let{value:r=!1}=e;function i(){t(0,r=!r)}return l.$$set=s=>{"value"in s&&t(0,r=s.value)},[r,i]}class St extends oe{constructor(e){super(),ue(this,e,Dt,It,fe,{value:0})}}function Le(l){let e,t,r;function i(n){l[5](n)}let s={};return l[0]!==void 0&&(s.value=l[0]),e=new St({props:s}),re.push(()=>se(e,"value",i)),{c(){j(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){N(e,n,o),r=!0},p(n,o){const a={};!t&&o&1&&(t=!0,a.value=n[0],ie(()=>t=!1)),e.$set(a)},i(n){r||(S(e.$$.fragment,n),r=!0)},o(n){V(e.$$.fragment,n),r=!1},d(n){q(e,n)}}}function Ne(l){let e,t;const r=l[4].default,i=Xe(r,l,l[3],null);return{c(){e=b("div"),i&&i.c(),this.h()},l(s){e=w(s,"DIV",{class:!0});var n=E(e);i&&i.l(n),n.forEach(_),this.h()},h(){v(e,"class","card__body svelte-1allh55")},m(s,n){z(s,e,n),i&&i.m(e,null),t=!0},p(s,n){i&&i.p&&(!t||n&8)&&xe(i,r,s,s[3],t?tt(r,s[3],n,null):et(s[3]),null)},i(s){t||(S(i,s),t=!0)},o(s){V(i,s),t=!1},d(s){s&&_(e),i&&i.d(s)}}}function zt(l){let e,t,r,i,s,n,o,a=!l[1]&&Le(l),u=l[0]&&Ne(l);return{c(){e=b("div"),t=b("dvi"),r=b("h3"),i=C(l[2]),s=F(),a&&a.c(),n=F(),u&&u.c(),this.h()},l(f){e=w(f,"DIV",{class:!0});var c=E(e);t=w(c,"DVI",{class:!0});var h=E(t);r=w(h,"H3",{class:!0});var k=E(r);i=O(k,l[2]),k.forEach(_),s=P(h),a&&a.l(h),h.forEach(_),n=P(c),u&&u.l(c),c.forEach(_),this.h()},h(){v(r,"class","card__title svelte-1allh55"),v(t,"class","card__header svelte-1allh55"),v(e,"class","card svelte-1allh55")},m(f,c){z(f,e,c),d(e,t),d(t,r),d(r,i),d(t,s),a&&a.m(t,null),d(e,n),u&&u.m(e,null),o=!0},p(f,[c]){(!o||c&4)&&Z(i,f[2]),f[1]?a&&(ve(),V(a,1,1,()=>{a=null}),be()):a?(a.p(f,c),c&2&&S(a,1)):(a=Le(f),a.c(),S(a,1),a.m(t,null)),f[0]?u?(u.p(f,c),c&1&&S(u,1)):(u=Ne(f),u.c(),S(u,1),u.m(e,null)):u&&(ve(),V(u,1,1,()=>{u=null}),be())},i(f){o||(S(a),S(u),o=!0)},o(f){V(a),V(u),o=!1},d(f){f&&_(e),a&&a.d(),u&&u.d()}}}function Vt(l,e,t){let{$$slots:r={},$$scope:i}=e,{disabled:s=!1}=e,{on:n=!1}=e,{title:o}=e;function a(u){n=u,t(0,n)}return l.$$set=u=>{"disabled"in u&&t(1,s=u.disabled),"on"in u&&t(0,n=u.on),"title"in u&&t(2,o=u.title),"$$scope"in u&&t(3,i=u.$$scope)},[n,s,o,i,r,a]}class Be extends oe{constructor(e){super(),ue(this,e,Vt,zt,fe,{disabled:1,on:0,title:2})}}function Tt(l){let e,t,r,i,s;const n=l[2].default,o=Xe(n,l,l[1],null);return{c(){e=b("div"),t=b("div"),r=C(l[0]),i=F(),o&&o.c(),this.h()},l(a){e=w(a,"DIV",{class:!0});var u=E(e);t=w(u,"DIV",{class:!0});var f=E(t);r=O(f,l[0]),f.forEach(_),i=P(u),o&&o.l(u),u.forEach(_),this.h()},h(){v(t,"class","input-group__label svelte-hk8el4"),v(e,"class","input-group svelte-hk8el4")},m(a,u){z(a,e,u),d(e,t),d(t,r),d(e,i),o&&o.m(e,null),s=!0},p(a,[u]){(!s||u&1)&&Z(r,a[0]),o&&o.p&&(!s||u&2)&&xe(o,n,a,a[1],s?tt(n,a[1],u,null):et(a[1]),null)},i(a){s||(S(o,a),s=!0)},o(a){V(o,a),s=!1},d(a){a&&_(e),o&&o.d(a)}}}function Bt(l,e,t){let{$$slots:r={},$$scope:i}=e,{label:s}=e;return l.$$set=n=>{"label"in n&&t(0,s=n.label),"$$scope"in n&&t(1,i=n.$$scope)},[s,i,r]}class ge extends oe{constructor(e){super(),ue(this,e,Bt,Tt,fe,{label:0})}}function Ft(l){let e,t,r;return{c(){e=b("input"),this.h()},l(i){e=w(i,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0}),this.h()},h(){v(e,"type","number"),v(e,"class","input-number svelte-16knh58"),v(e,"min",l[1]),v(e,"max",l[2]),v(e,"step",l[3])},m(i,s){z(i,e,s),Re(e,l[0]),t||(r=le(e,"input",l[4]),t=!0)},p(i,[s]){s&2&&v(e,"min",i[1]),s&4&&v(e,"max",i[2]),s&8&&v(e,"step",i[3]),s&1&&nt(e.value)!==i[0]&&Re(e,i[0])},i:H,o:H,d(i){i&&_(e),t=!1,r()}}}function Pt(l,e,t){let{value:r=null}=e,{min:i=null}=e,{max:s=null}=e,{step:n=null}=e;function o(u){if(u===null)return null;if(u=Math.min(Math.max(u,i??-1/0),s??1/0),n!==null){const f=i??0;u=Math.round((u-f)/n)*n+f}return u}function a(){r=nt(this.value),t(0,r)}return l.$$set=u=>{"value"in u&&t(0,r=u.value),"min"in u&&t(1,i=u.min),"max"in u&&t(2,s=u.max),"step"in u&&t(3,n=u.step)},l.$$.update=()=>{l.$$.dirty&1&&t(0,r=o(r))},[r,i,s,n,a]}class ze extends oe{constructor(e){super(),ue(this,e,Pt,Ft,fe,{value:0,min:1,max:2,step:3})}}function qe(l,e,t){const r=l.slice();return r[4]=e[t],r}function Je(l){let e,t=l[4].label+"",r,i;return{c(){e=b("option"),r=C(t),this.h()},l(s){e=w(s,"OPTION",{});var n=E(e);r=O(n,t),n.forEach(_),this.h()},h(){e.__value=i=l[4].value,e.value=e.__value},m(s,n){z(s,e,n),d(e,r)},p(s,n){n&2&&t!==(t=s[4].label+"")&&Z(r,t),n&2&&i!==(i=s[4].value)&&(e.__value=i,e.value=e.__value)},d(s){s&&_(e)}}}function At(l){let e,t,r,i=l[1],s=[];for(let n=0;nl[3].call(e))},m(n,o){z(n,e,o);for(let a=0;a{"value"in o&&t(0,i=o.value),"options"in o&&t(2,s=o.options)},l.$$.update=()=>{l.$$.dirty&4&&t(1,r=s.map(o=>typeof o=="string"?{label:o,value:o}:o))},[i,r,s,n]}class Ot extends oe{constructor(e){super(),ue(this,e,Ct,At,fe,{value:0,options:2})}}function Qe(l,e){const t=URL.createObjectURL(l),r=document.createElement("a");document.body.appendChild(r),r.href=t,r.download=e,r.click(),setTimeout(()=>{window.URL.revokeObjectURL(t),document.body.removeChild(r)},0)}let ke=null;function Mt(){const l="/vips/vips-es6.js";return ke||(ke=(async()=>await(await Fe(()=>import(l),[],import.meta.url).then(t=>t.default))())(),ke)}function Rt(l,e,t,r){const i=[e.width,e.height],[s,n]=Gt(i,t,r);if(e=e.resize(1/s,{vscale:1/n,kernel:"lanczos3"}),r==="Contain"){i[0]=e.width,i[1]=e.height;const[o,a]=jt(i,t),u=Math.max(i[0],t[0]),f=Math.max(i[1],t[1]);if(!e.hasAlpha()){const c=l.Image.newMatrix(...i).newFromImage(255).cast(e.format);e=e.bandjoin(c)}e=e.embed(o,a,u,f,{extend:"background",background:Array.from({length:e.bands}).fill(0)})}else if(r=="Cover"){i[0]=e.width,i[1]=e.height;const[o,a]=Ut(i,t),u=Math.min(i[0],t[0]),f=Math.min(i[1],t[1]);e=e.extractArea(o,a,u,f)}return e}function Gt([l,e],[t,r],i){let s=1,n=1;if(t>0&&r>0)switch(s=l/t,n=e/r,i){case"Cover":case"Outside":sn?n=s:s=n;break}else t>0?(s=l/t,i!=="Fill"&&(n=s)):r>0&&(n=e/r,i!=="Fill"&&(s=n));return s=Math.min(s,l),n=Math.min(n,e),[s,n]}function Ut([l,e],[t,r]){return[~~((l-t+1)/2),~~((e-r+1)/2)]}function jt([l,e],[t,r]){return[~~((t-l)/2),~~((r-e)/2)]}const Lt=""+new URL("../assets/logo.ec8219a6.svg",import.meta.url).href;function Nt(l){return"error"in l}const qt=typeof DataTransferItem<"u"&&"webkitGetAsEntry"in DataTransferItem.prototype;function Jt(l){return l.isDirectory}function Qt(l){return l.isFile}async function rt(l){return Promise.all(l.map(e=>e?Jt(e)?new Promise(t=>{e.createReader().readEntries(i=>{t(rt(i))})}):Qt(e)?new Promise(t=>{e.file(async r=>{t({name:e.fullPath,type:r.type,size:r.size,buffer:await r.arrayBuffer()})})}):Promise.resolve({name:e.fullPath,error:new Error("Unknown entry type")}):Promise.resolve([]))).then(e=>e.flat())}async function Wt(l){return l?qt?await rt([...l.items].map(e=>e.webkitGetAsEntry())):await Promise.all([...l.files].map(async e=>{try{const t=await e.arrayBuffer();return{name:e.name,type:e.type,size:e.size,buffer:t}}catch(t){return{name:e.name,error:t}}})):[]}function Ht(l){var r,i;const e=(r=l.match(/width="(\d+)"/))==null?void 0:r[1],t=(i=l.match(/height="(\d+)"/))==null?void 0:i[1];if(!e||!t){const s=l.match(/viewBox="0 0 (\d+) (\d+)"/);if(s)return{width:+s[1],height:+s[2]}}return{width:e?+e:0,height:t?+t:0}}async function Kt(l){const e=await l.text(),{width:t,height:r}=Ht(e),s=(await new Promise(u=>{const f=new Image,c=window.btoa(unescape(encodeURIComponent(e)));f.src="data:image/svg+xml;base64,"+c,f.onload=function(){const h=document.createElement("canvas");h.width=t??640,h.height=r??480;const k=h.getContext("2d");k&&k.drawImage(f,0,0,t??640,r??480),u(h.toDataURL("image/png"))}})).split(";base64,"),n=window.atob(s[1]),o=n.length,a=new Uint8Array(o);for(let u=0;uc.arrayBuffer()):o=await n.buffer;let a=l.Image.newFromBuffer(o,n.name);(t.width||t.height)&&t.fit?a=Rt(l,a,[t.width??0,t.height??0],t.fit):t.scale&&(a=a.resize(t.scale,{}));const u=await a.writeToBuffer(".webp",{Q:~~t.quality}),f=new Blob([u],{type:"image/webp"});i.push({filename:n.name,size:n.size,error:null,blob:f})}catch(o){let a=null;Yt(o)&&o.message.includes("unable to load from buffer")?a="Unsupported image format!":a=We(o),i.push({filename:n.name,size:n.size,error:a,blob:null})}}return r(1),i}function He(l,e,t){const r=l.slice();return r[32]=e[t][0],r[33]=e[t][1],r[34]=e[t][2],r[35]=e[t][3],r}function Xt(l){let e,t,r,i;function s(o){l[18](o)}let n={max:100,min:0,step:1};return l[0]!==void 0&&(n.value=l[0]),t=new ze({props:n}),re.push(()=>se(t,"value",s)),{c(){e=b("div"),j(t.$$.fragment),this.h()},l(o){e=w(o,"DIV",{class:!0});var a=E(e);L(t.$$.fragment,a),a.forEach(_),this.h()},h(){v(e,"class","space-y-4")},m(o,a){z(o,e,a),N(t,e,null),i=!0},p(o,a){const u={};!r&&a[0]&1&&(r=!0,u.value=o[0],ie(()=>r=!1)),t.$set(u)},i(o){i||(S(t.$$.fragment,o),i=!0)},o(o){V(t.$$.fragment,o),i=!1},d(o){o&&_(e),q(t)}}}function xt(l){let e,t;return e=new ge({props:{label:"Quality",$$slots:{default:[Xt]},$$scope:{ctx:l}}}),{c(){j(e.$$.fragment)},l(r){L(e.$$.fragment,r)},m(r,i){N(e,r,i),t=!0},p(r,i){const s={};i[0]&1|i[1]&128&&(s.$$scope={dirty:i,ctx:r}),e.$set(s)},i(r){t||(S(e.$$.fragment,r),t=!0)},o(r){V(e.$$.fragment,r),t=!1},d(r){q(e,r)}}}function en(l){let e,t,r;function i(n){l[19](n)}let s={min:0,step:1};return l[2]!==void 0&&(s.value=l[2]),e=new ze({props:s}),re.push(()=>se(e,"value",i)),{c(){j(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){N(e,n,o),r=!0},p(n,o){const a={};!t&&o[0]&4&&(t=!0,a.value=n[2],ie(()=>t=!1)),e.$set(a)},i(n){r||(S(e.$$.fragment,n),r=!0)},o(n){V(e.$$.fragment,n),r=!1},d(n){q(e,n)}}}function tn(l){let e,t,r;function i(n){l[20](n)}let s={min:0,step:1};return l[3]!==void 0&&(s.value=l[3]),e=new ze({props:s}),re.push(()=>se(e,"value",i)),{c(){j(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){N(e,n,o),r=!0},p(n,o){const a={};!t&&o[0]&8&&(t=!0,a.value=n[3],ie(()=>t=!1)),e.$set(a)},i(n){r||(S(e.$$.fragment,n),r=!0)},o(n){V(e.$$.fragment,n),r=!1},d(n){q(e,n)}}}function nn(l){let e,t,r;function i(n){l[21](n)}let s={options:["Cover","Contain","Fill","Inside","Outside"]};return l[4]!==void 0&&(s.value=l[4]),e=new Ot({props:s}),re.push(()=>se(e,"value",i)),{c(){j(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){N(e,n,o),r=!0},p(n,o){const a={};!t&&o[0]&16&&(t=!0,a.value=n[4],ie(()=>t=!1)),e.$set(a)},i(n){r||(S(e.$$.fragment,n),r=!0)},o(n){V(e.$$.fragment,n),r=!1},d(n){q(e,n)}}}function ln(l){let e,t,r,i,s,n,o;return t=new ge({props:{label:"Width",$$slots:{default:[en]},$$scope:{ctx:l}}}),i=new ge({props:{label:"Height",$$slots:{default:[tn]},$$scope:{ctx:l}}}),n=new ge({props:{label:"Fit",$$slots:{default:[nn]},$$scope:{ctx:l}}}),{c(){e=b("div"),j(t.$$.fragment),r=F(),j(i.$$.fragment),s=F(),j(n.$$.fragment),this.h()},l(a){e=w(a,"DIV",{class:!0});var u=E(e);L(t.$$.fragment,u),r=P(u),L(i.$$.fragment,u),s=P(u),L(n.$$.fragment,u),u.forEach(_),this.h()},h(){v(e,"class","space-y-3")},m(a,u){z(a,e,u),N(t,e,null),d(e,r),N(i,e,null),d(e,s),N(n,e,null),o=!0},p(a,u){const f={};u[0]&4|u[1]&128&&(f.$$scope={dirty:u,ctx:a}),t.$set(f);const c={};u[0]&8|u[1]&128&&(c.$$scope={dirty:u,ctx:a}),i.$set(c);const h={};u[0]&16|u[1]&128&&(h.$$scope={dirty:u,ctx:a}),n.$set(h)},i(a){o||(S(t.$$.fragment,a),S(i.$$.fragment,a),S(n.$$.fragment,a),o=!0)},o(a){V(t.$$.fragment,a),V(i.$$.fragment,a),V(n.$$.fragment,a),o=!1},d(a){a&&_(e),q(t),q(i),q(n)}}}function rn(l){let e,t,r;function i(n){l[23](n)}let s={min:0};return l[6]!==void 0&&(s.value=l[6]),e=new ze({props:s}),re.push(()=>se(e,"value",i)),{c(){j(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){N(e,n,o),r=!0},p(n,o){const a={};!t&&o[0]&64&&(t=!0,a.value=n[6],ie(()=>t=!1)),e.$set(a)},i(n){r||(S(e.$$.fragment,n),r=!0)},o(n){V(e.$$.fragment,n),r=!1},d(n){q(e,n)}}}function sn(l){let e,t,r;return t=new ge({props:{label:"Scale",$$slots:{default:[rn]},$$scope:{ctx:l}}}),{c(){e=b("div"),j(t.$$.fragment),this.h()},l(i){e=w(i,"DIV",{class:!0});var s=E(e);L(t.$$.fragment,s),s.forEach(_),this.h()},h(){v(e,"class","space-y-2")},m(i,s){z(i,e,s),N(t,e,null),r=!0},p(i,s){const n={};s[0]&64|s[1]&128&&(n.$$scope={dirty:s,ctx:i}),t.$set(n)},i(i){r||(S(t.$$.fragment,i),r=!0)},o(i){V(t.$$.fragment,i),r=!1},d(i){i&&_(e),q(t)}}}function an(l){let e,t,r,i,s,n,o,a,u,f,c,h,k,I,$,p,g=l[9]&&Ke(l);return{c(){e=b("div"),g&&g.c(),t=F(),r=b("div"),i=b("div"),s=b("div"),n=C("Drop your images here!"),o=F(),a=b("div"),u=b("button"),f=C("or click to upload images"),c=F(),h=b("div"),k=C("Supports JPG, PNG, GIF, TIFF, WEBP, SVG."),this.h()},l(B){e=w(B,"DIV",{class:!0});var T=E(e);g&&g.l(T),t=P(T),r=w(T,"DIV",{class:!0});var G=E(r);i=w(G,"DIV",{});var U=E(i);s=w(U,"DIV",{class:!0});var Q=E(s);n=O(Q,"Drop your images here!"),Q.forEach(_),o=P(U),a=w(U,"DIV",{class:!0});var ae=E(a);u=w(ae,"BUTTON",{class:!0});var X=E(u);f=O(X,"or click to upload images"),X.forEach(_),ae.forEach(_),U.forEach(_),c=P(G),h=w(G,"DIV",{class:!0});var W=E(h);k=O(W,"Supports JPG, PNG, GIF, TIFF, WEBP, SVG."),W.forEach(_),G.forEach(_),T.forEach(_),this.h()},h(){v(s,"class","text-white text-opacity-75 font-light text-center text-2xl"),v(u,"class","text-white font-light text-sm underline leading-tight"),v(a,"class","text-center"),v(h,"class","text-white font-light text-center text-sm text-opacity-70"),v(r,"class","space-y-3"),v(e,"class","dropzone space-y-4 svelte-17n85hh")},m(B,T){z(B,e,T),g&&g.m(e,null),d(e,t),d(e,r),d(r,i),d(i,s),d(s,n),d(i,o),d(i,a),d(a,u),d(u,f),d(r,c),d(r,h),d(h,k),I=!0,$||(p=le(u,"click",l[15]),$=!0)},p(B,T){B[9]?g?(g.p(B,T),T[0]&512&&S(g,1)):(g=Ke(B),g.c(),S(g,1),g.m(e,t)):g&&(ve(),V(g,1,1,()=>{g=null}),be())},i(B){I||(S(g),I=!0)},o(B){V(g),I=!1},d(B){B&&_(e),g&&g.d(),$=!1,p()}}}function on(l){let e,t,r,i,s,n=(l[10]*100).toFixed(2)+"",o,a;return{c(){e=b("div"),t=b("div"),r=C("Converting..."),i=F(),s=b("div"),o=C(n),a=C("%"),this.h()},l(u){e=w(u,"DIV",{class:!0});var f=E(e);t=w(f,"DIV",{});var c=E(t);r=O(c,"Converting..."),c.forEach(_),i=P(f),s=w(f,"DIV",{class:!0});var h=E(s);o=O(h,n),a=O(h,"%"),h.forEach(_),f.forEach(_),this.h()},h(){v(s,"class","text-2xl"),v(e,"class","text-white font-light text-center")},m(u,f){z(u,e,f),d(e,t),d(t,r),d(e,i),d(e,s),d(s,o),d(s,a)},p(u,f){f[0]&1024&&n!==(n=(u[10]*100).toFixed(2)+"")&&Z(o,n)},i:H,o:H,d(u){u&&_(e)}}}function Ke(l){let e,t,r,i,s,n,o=l[9],a=[];for(let f=0;fV(a[f],1,1,()=>{a[f]=null});return{c(){e=b("div"),t=b("div"),r=C("Done!"),i=F(),s=b("table");for(let f=0;fse(a,"on",Ve));function y(m){l[24](m)}let M={title:"Scale",$$slots:{default:[sn]},$$scope:{ctx:l}};l[5]!==void 0&&(M.on=l[5]),c=new Be({props:M}),re.push(()=>se(c,"on",y));const K=[on,an],A=[];function de(m,D){return m[8]?0:1}p=de(l),g=A[p]=K[p](l);let R=l[7]&&Ze(l);return{c(){e=F(),t=b("div"),r=b("aside"),i=b("div"),s=b("div"),j(n.$$.fragment),o=F(),j(a.$$.fragment),f=F(),j(c.$$.fragment),k=F(),I=b("main"),$=b("section"),g.c(),B=F(),T=b("footer"),G=b("div"),U=b("a"),Q=b("img"),X=F(),W=b("div"),ce=C("v"),pe=C(l[11]),_e=F(),R&&R.c(),x=Se(),this.h()},l(m){e=P(m),t=w(m,"DIV",{class:!0});var D=E(t);r=w(D,"ASIDE",{class:!0});var ee=E(r);i=w(ee,"DIV",{class:!0});var Y=E(i);s=w(Y,"DIV",{class:!0});var J=E(s);L(n.$$.fragment,J),o=P(J),L(a.$$.fragment,J),f=P(J),L(c.$$.fragment,J),J.forEach(_),Y.forEach(_),ee.forEach(_),k=P(D),I=w(D,"MAIN",{class:!0});var te=E(I);$=w(te,"SECTION",{class:!0});var Ae=E($);g.l(Ae),Ae.forEach(_),B=P(te),T=w(te,"FOOTER",{class:!0});var Ce=E(T);G=w(Ce,"DIV",{class:!0});var ye=E(G);U=w(ye,"A",{href:!0,target:!0,rel:!0});var Oe=E(U);Q=w(Oe,"IMG",{src:!0,alt:!0,class:!0}),Oe.forEach(_),X=P(ye),W=w(ye,"DIV",{class:!0});var Te=E(W);ce=O(Te,"v"),pe=O(Te,l[11]),Te.forEach(_),ye.forEach(_),Ce.forEach(_),te.forEach(_),D.forEach(_),_e=P(m),R&&R.l(m),x=Se(),this.h()},h(){v(s,"class",""),v(i,"class","flex-1"),v(r,"class","basis-[320px] flex-grow-0 flex-shrink-0 bg-[#151E2C] flex flex-col max-md:basis-[0] max-lg:basis-[240px]"),v($,"class","flex-1 flex items-center justify-center"),ft(Q.src,ae=Lt)||v(Q,"src",ae),v(Q,"alt","dist.be"),v(Q,"class","w-[54px] h-[24px]"),v(U,"href","https://github.com/distbe"),v(U,"target","_blank"),v(U,"rel","noopener noreferrer"),v(W,"class","text-sm text-white text-opacity-30"),v(G,"class","absolute right-0 bottom-0 py-2 px-3 flex items-center gap-x-2"),v(T,"class","relative"),v(I,"class","flex-1 flex-col flex max-md:flex-[300px] max-md:flex-shrink-0 px-4"),v(t,"class","flex h-full max-md:flex-col")},m(m,D){z(m,e,D),z(m,t,D),d(t,r),d(r,i),d(i,s),N(n,s,null),d(s,o),N(a,s,null),d(s,f),N(c,s,null),d(t,k),d(t,I),d(I,$),A[p].m($,null),d(I,B),d(I,T),d(T,G),d(G,U),d(U,Q),d(G,X),d(G,W),d(W,ce),d(W,pe),z(m,_e,D),R&&R.m(m,D),z(m,x,D),he=!0,me||(we=le(document.body,"dragenter",Ie(De(l[13]))),me=!0)},p(m,D){const ee={};D[0]&1|D[1]&128&&(ee.$$scope={dirty:D,ctx:m}),n.$set(ee);const Y={};D[0]&28|D[1]&128&&(Y.$$scope={dirty:D,ctx:m}),!u&&D[0]&2&&(u=!0,Y.on=m[1],ie(()=>u=!1)),a.$set(Y);const J={};D[0]&64|D[1]&128&&(J.$$scope={dirty:D,ctx:m}),!h&&D[0]&32&&(h=!0,J.on=m[5],ie(()=>h=!1)),c.$set(J);let te=p;p=de(m),p===te?A[p].p(m,D):(ve(),V(A[te],1,1,()=>{A[te]=null}),be(),g=A[p],g?g.p(m,D):(g=A[p]=K[p](m),g.c()),S(g,1),g.m($,null)),m[7]?R?R.p(m,D):(R=Ze(m),R.c(),R.m(x.parentNode,x)):R&&(R.d(1),R=null)},i(m){he||(S(n.$$.fragment,m),S(a.$$.fragment,m),S(c.$$.fragment,m),S(g),he=!0)},o(m){V(n.$$.fragment,m),V(a.$$.fragment,m),V(c.$$.fragment,m),V(g),he=!1},d(m){m&&_(e),m&&_(t),q(n),q(a),q(c),A[p].d(),m&&_(_e),R&&R.d(m),m&&_(x),me=!1,we()}}}function fn(l,e,t){let r;const i="0.3.4";let s=!1,n=!1,o=!1,a=gt(0);ct(l,a,y=>t(10,r=y));let u=null,f=null,c=!1,h=null,k=null,I="Cover",$=!1,p=1;_t(()=>{const y=localStorage.getItem("state");if(y)try{const M=JSON.parse(y);t(0,f=M.inputQuality),t(1,c=M.onSize),M.onSize&&(t(2,h=M.inputWidth),t(3,k=M.inputHeight)),t(4,I=M.inputFit),t(5,$=M.onScale),t(6,p=M.inputScale)}catch{}t(0,f=f??100),s=!0});function g(y){s&&localStorage.setItem("state",JSON.stringify(y))}function B(y){s&&y&&$&&t(5,$=!1)}function T(y){s&&y&&c&&t(1,c=!1)}function G(y,M){s&&(y||M)&&!c&&(t(1,c=!0),B(c))}function U(y){s&&y&&!$&&(t(5,$=!0),T($))}function Q(y){t(7,n=!0)}function ae(y){t(7,n=!1)}async function X(){const M=await(await Fe(()=>import("../chunks/file-dialog.min.66982265.js").then(A=>A.f),["../chunks/file-dialog.min.66982265.js","../chunks/_commonjsHelpers.725317a4.js"],import.meta.url).then(A=>A.default))({accept:"image/*",multiple:!0});if(M.length===0)return;const K=await Promise.all([...M].map(async A=>({name:A.name,size:A.size,type:A.type,buffer:await A.arrayBuffer()})));await ce(K)}async function W(y){t(7,n=!1),ce(await Wt(y.dataTransfer))}async function ce(y){if(y.length===0)return;t(8,o=!0);const M=await Mt(),K=await Zt(M,y,{quality:f??100,width:c?h:null,height:c?k:null,fit:c?I:null,scale:$?p:null},m=>{a.set(m)});if(t(9,u=K.map(m=>{var D;return[m.filename,m.error,m.size,((D=m.blob)==null?void 0:D.size)??0]})),t(8,o=!1),K.length===1&&K[0].blob){const m=K[0].filename.replace(/\.[^/.]+$/,"");Qe(K[0].blob,`${m}.webp`);return}const A=await Fe(()=>import("../chunks/jszip.min.15bd28ef.js").then(m=>m.j),["../chunks/jszip.min.15bd28ef.js","../chunks/_commonjsHelpers.725317a4.js"],import.meta.url).then(m=>new m.default),de=new Set;for(const{blob:m,filename:D}of K){if(!m)continue;const ee=D.replace(/\.[^/.]+$/,"");let Y=ee,J=1;for(;de.has(Y);)Y=`${ee} (${J})`,J++;de.add(Y),A.file(`${Y}.webp`,m)}if(de.size===0)return;const R=await A.generateAsync({type:"blob"});Qe(R,"images.zip")}function pe(y){dt.call(this,l,y)}function _e(y){f=y,t(0,f)}function x(y){h=y,t(2,h)}function he(y){k=y,t(3,k)}function me(y){I=y,t(4,I)}function we(y){c=y,t(1,c)}function Ve(y){p=y,t(6,p)}function Ee(y){$=y,t(5,$)}return l.$$.update=()=>{l.$$.dirty[0]&2&&B(c),l.$$.dirty[0]&12&&G(h,k),l.$$.dirty[0]&32&&T($),l.$$.dirty[0]&64&&U(p),l.$$.dirty[0]&127&&g({inputQuality:f,onSize:c,inputWidth:h,inputHeight:k,inputFit:I,onScale:$,inputScale:p})},[f,c,h,k,I,$,p,n,o,u,r,i,a,Q,ae,X,W,pe,_e,x,he,me,we,Ve,Ee]}class pn extends oe{constructor(e){super(),ue(this,e,fn,un,fe,{},null,[-1,-1])}}export{pn as component,dn as universal}; diff --git a/_app/immutable/start-92ddf5b1.js b/_app/immutable/start-92ddf5b1.js deleted file mode 100644 index 63846f9..0000000 --- a/_app/immutable/start-92ddf5b1.js +++ /dev/null @@ -1,2305 +0,0 @@ -import { S as SvelteComponent, i as init, s as safe_not_equal, a as space, e as empty, c as claim_space, b as insert_hydration, g as group_outros, t as transition_out, d as check_outros, f as transition_in, h as detach, j as afterUpdate, o as onMount, k as element, l as claim_element, m as children, n as attr, p as set_style, q as text, r as claim_text, u as set_data, v as binding_callbacks, w as construct_svelte_component, x as create_component, y as claim_component, z as mount_component, A as destroy_component, B as tick } from "./chunks/index-31b80213.js"; -import { S as SCROLL_KEY, a as SNAPSHOT_KEY, I as INDEX_KEY, g as get_base_uri, f as find_anchor, b as get_link_info, c as get_router_options, s as stores, i as is_external_url, d as scroll_state, e as base, P as PRELOAD_PRIORITIES, h as init$1, j as set_assets, k as set_version } from "./chunks/singletons-61d560ad.js"; -import { _ as __vitePreload } from "./chunks/preload-helper-f8376bb0.js"; -function normalize_path(path, trailing_slash) { - if (path === "/" || trailing_slash === "ignore") - return path; - if (trailing_slash === "never") { - return path.endsWith("/") ? path.slice(0, -1) : path; - } else if (trailing_slash === "always" && !path.endsWith("/")) { - return path + "/"; - } - return path; -} -function decode_pathname(pathname) { - return pathname.split("%25").map(decodeURI).join("%25"); -} -function decode_params(params) { - for (const key in params) { - params[key] = decodeURIComponent(params[key]); - } - return params; -} -const tracked_url_properties = ["href", "pathname", "search", "searchParams", "toString", "toJSON"]; -function make_trackable(url, callback) { - const tracked = new URL(url); - for (const property of tracked_url_properties) { - let value = tracked[property]; - Object.defineProperty(tracked, property, { - get() { - callback(); - return value; - }, - enumerable: true, - configurable: true - }); - } - disable_hash(tracked); - return tracked; -} -function disable_hash(url) { - Object.defineProperty(url, "hash", { - get() { - throw new Error( - "Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead" - ); - } - }); -} -const DATA_SUFFIX = "/__data.json"; -function add_data_suffix(pathname) { - return pathname.replace(/\/$/, "") + DATA_SUFFIX; -} -function get(key) { - try { - return JSON.parse(sessionStorage[key]); - } catch { - } -} -function set(key, value) { - const json = JSON.stringify(value); - try { - sessionStorage[key] = json; - } catch { - } -} -function hash(...values) { - let hash2 = 5381; - for (const value of values) { - if (typeof value === "string") { - let i = value.length; - while (i) - hash2 = hash2 * 33 ^ value.charCodeAt(--i); - } else if (ArrayBuffer.isView(value)) { - const buffer = new Uint8Array(value.buffer, value.byteOffset, value.byteLength); - let i = buffer.length; - while (i) - hash2 = hash2 * 33 ^ buffer[--i]; - } else { - throw new TypeError("value must be a string or TypedArray"); - } - } - return (hash2 >>> 0).toString(36); -} -const native_fetch = window.fetch; -{ - window.fetch = (input, init2) => { - const method = input instanceof Request ? input.method : (init2 == null ? void 0 : init2.method) || "GET"; - if (method !== "GET") { - cache.delete(build_selector(input)); - } - return native_fetch(input, init2); - }; -} -const cache = /* @__PURE__ */ new Map(); -function initial_fetch(resource, opts) { - const selector = build_selector(resource, opts); - const script = document.querySelector(selector); - if (script == null ? void 0 : script.textContent) { - const { body, ...init2 } = JSON.parse(script.textContent); - const ttl = script.getAttribute("data-ttl"); - if (ttl) - cache.set(selector, { body, init: init2, ttl: 1e3 * Number(ttl) }); - return Promise.resolve(new Response(body, init2)); - } - return native_fetch(resource, opts); -} -function subsequent_fetch(resource, resolved, opts) { - if (cache.size > 0) { - const selector = build_selector(resource, opts); - const cached = cache.get(selector); - if (cached) { - if (performance.now() < cached.ttl && ["default", "force-cache", "only-if-cached", void 0].includes(opts == null ? void 0 : opts.cache)) { - return new Response(cached.body, cached.init); - } - cache.delete(selector); - } - } - return native_fetch(resolved, opts); -} -function build_selector(resource, opts) { - const url = JSON.stringify(resource instanceof Request ? resource.url : resource); - let selector = `script[data-sveltekit-fetched][data-url=${url}]`; - if ((opts == null ? void 0 : opts.headers) || (opts == null ? void 0 : opts.body)) { - const values = []; - if (opts.headers) { - values.push([...new Headers(opts.headers)].join(",")); - } - if (opts.body && (typeof opts.body === "string" || ArrayBuffer.isView(opts.body))) { - values.push(opts.body); - } - selector += `[data-hash="${hash(...values)}"]`; - } - return selector; -} -const param_pattern = /^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/; -function parse_route_id(id) { - const params = []; - const pattern = id === "/" ? /^\/$/ : new RegExp( - `^${get_route_segments(id).map((segment) => { - const rest_match = /^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(segment); - if (rest_match) { - params.push({ - name: rest_match[1], - matcher: rest_match[2], - optional: false, - rest: true, - chained: true - }); - return "(?:/(.*))?"; - } - const optional_match = /^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(segment); - if (optional_match) { - params.push({ - name: optional_match[1], - matcher: optional_match[2], - optional: true, - rest: false, - chained: true - }); - return "(?:/([^/]+))?"; - } - if (!segment) { - return; - } - const parts = segment.split(/\[(.+?)\](?!\])/); - const result = parts.map((content, i) => { - if (i % 2) { - if (content.startsWith("x+")) { - return escape(String.fromCharCode(parseInt(content.slice(2), 16))); - } - if (content.startsWith("u+")) { - return escape( - String.fromCharCode( - ...content.slice(2).split("-").map((code) => parseInt(code, 16)) - ) - ); - } - const match = param_pattern.exec(content); - if (!match) { - throw new Error( - `Invalid param: ${content}. Params and matcher names can only have underscores and alphanumeric characters.` - ); - } - const [, is_optional, is_rest, name, matcher] = match; - params.push({ - name, - matcher, - optional: !!is_optional, - rest: !!is_rest, - chained: is_rest ? i === 1 && parts[0] === "" : false - }); - return is_rest ? "(.*?)" : is_optional ? "([^/]*)?" : "([^/]+?)"; - } - return escape(content); - }).join(""); - return "/" + result; - }).join("")}/?$` - ); - return { pattern, params }; -} -function affects_path(segment) { - return !/^\([^)]+\)$/.test(segment); -} -function get_route_segments(route) { - return route.slice(1).split("/").filter(affects_path); -} -function exec(match, params, matchers2) { - const result = {}; - const values = match.slice(1); - let buffered = 0; - for (let i = 0; i < params.length; i += 1) { - const param = params[i]; - const value = values[i - buffered]; - if (param.chained && param.rest && buffered) { - result[param.name] = values.slice(i - buffered, i + 1).filter((s) => s).join("/"); - buffered = 0; - continue; - } - if (value === void 0) { - if (param.rest) - result[param.name] = ""; - continue; - } - if (!param.matcher || matchers2[param.matcher](value)) { - result[param.name] = value; - continue; - } - if (param.optional && param.chained) { - buffered++; - continue; - } - return; - } - if (buffered) - return; - return result; -} -function escape(str) { - return str.normalize().replace(/[[\]]/g, "\\$&").replace(/%/g, "%25").replace(/\//g, "%2[Ff]").replace(/\?/g, "%3[Ff]").replace(/#/g, "%23").replace(/[.*+?^${}()|\\]/g, "\\$&"); -} -function parse(nodes2, server_loads2, dictionary2, matchers2) { - const layouts_with_server_load = new Set(server_loads2); - return Object.entries(dictionary2).map(([id, [leaf, layouts, errors]]) => { - const { pattern, params } = parse_route_id(id); - const route = { - id, - /** @param {string} path */ - exec: (path) => { - const match = pattern.exec(path); - if (match) - return exec(match, params, matchers2); - }, - errors: [1, ...errors || []].map((n) => nodes2[n]), - layouts: [0, ...layouts || []].map(create_layout_loader), - leaf: create_leaf_loader(leaf) - }; - route.errors.length = route.layouts.length = Math.max( - route.errors.length, - route.layouts.length - ); - return route; - }); - function create_leaf_loader(id) { - const uses_server_data = id < 0; - if (uses_server_data) - id = ~id; - return [uses_server_data, nodes2[id]]; - } - function create_layout_loader(id) { - return id === void 0 ? id : [layouts_with_server_load.has(id), nodes2[id]]; - } -} -function create_else_block(ctx) { - let switch_instance; - let switch_instance_anchor; - let current; - var switch_value = ( - /*constructors*/ - ctx[1][0] - ); - function switch_props(ctx2) { - let switch_instance_props = { - data: ( - /*data_0*/ - ctx2[3] - ), - form: ( - /*form*/ - ctx2[2] - ) - }; - return { props: switch_instance_props }; - } - if (switch_value) { - switch_instance = construct_svelte_component(switch_value, switch_props(ctx)); - ctx[12](switch_instance); - } - return { - c() { - if (switch_instance) - create_component(switch_instance.$$.fragment); - switch_instance_anchor = empty(); - }, - l(nodes2) { - if (switch_instance) - claim_component(switch_instance.$$.fragment, nodes2); - switch_instance_anchor = empty(); - }, - m(target, anchor) { - if (switch_instance) - mount_component(switch_instance, target, anchor); - insert_hydration(target, switch_instance_anchor, anchor); - current = true; - }, - p(ctx2, dirty) { - const switch_instance_changes = {}; - if (dirty & /*data_0*/ - 8) - switch_instance_changes.data = /*data_0*/ - ctx2[3]; - if (dirty & /*form*/ - 4) - switch_instance_changes.form = /*form*/ - ctx2[2]; - if (switch_value !== (switch_value = /*constructors*/ - ctx2[1][0])) { - if (switch_instance) { - group_outros(); - const old_component = switch_instance; - transition_out(old_component.$$.fragment, 1, 0, () => { - destroy_component(old_component, 1); - }); - check_outros(); - } - if (switch_value) { - switch_instance = construct_svelte_component(switch_value, switch_props(ctx2)); - ctx2[12](switch_instance); - create_component(switch_instance.$$.fragment); - transition_in(switch_instance.$$.fragment, 1); - mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor); - } else { - switch_instance = null; - } - } else if (switch_value) { - switch_instance.$set(switch_instance_changes); - } - }, - i(local) { - if (current) - return; - if (switch_instance) - transition_in(switch_instance.$$.fragment, local); - current = true; - }, - o(local) { - if (switch_instance) - transition_out(switch_instance.$$.fragment, local); - current = false; - }, - d(detaching) { - ctx[12](null); - if (detaching) - detach(switch_instance_anchor); - if (switch_instance) - destroy_component(switch_instance, detaching); - } - }; -} -function create_if_block_2(ctx) { - let switch_instance; - let switch_instance_anchor; - let current; - var switch_value = ( - /*constructors*/ - ctx[1][0] - ); - function switch_props(ctx2) { - let switch_instance_props = { - data: ( - /*data_0*/ - ctx2[3] - ), - $$slots: { default: [create_default_slot] }, - $$scope: { ctx: ctx2 } - }; - return { props: switch_instance_props }; - } - if (switch_value) { - switch_instance = construct_svelte_component(switch_value, switch_props(ctx)); - ctx[11](switch_instance); - } - return { - c() { - if (switch_instance) - create_component(switch_instance.$$.fragment); - switch_instance_anchor = empty(); - }, - l(nodes2) { - if (switch_instance) - claim_component(switch_instance.$$.fragment, nodes2); - switch_instance_anchor = empty(); - }, - m(target, anchor) { - if (switch_instance) - mount_component(switch_instance, target, anchor); - insert_hydration(target, switch_instance_anchor, anchor); - current = true; - }, - p(ctx2, dirty) { - const switch_instance_changes = {}; - if (dirty & /*data_0*/ - 8) - switch_instance_changes.data = /*data_0*/ - ctx2[3]; - if (dirty & /*$$scope, constructors, data_1, form, components*/ - 8215) { - switch_instance_changes.$$scope = { dirty, ctx: ctx2 }; - } - if (switch_value !== (switch_value = /*constructors*/ - ctx2[1][0])) { - if (switch_instance) { - group_outros(); - const old_component = switch_instance; - transition_out(old_component.$$.fragment, 1, 0, () => { - destroy_component(old_component, 1); - }); - check_outros(); - } - if (switch_value) { - switch_instance = construct_svelte_component(switch_value, switch_props(ctx2)); - ctx2[11](switch_instance); - create_component(switch_instance.$$.fragment); - transition_in(switch_instance.$$.fragment, 1); - mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor); - } else { - switch_instance = null; - } - } else if (switch_value) { - switch_instance.$set(switch_instance_changes); - } - }, - i(local) { - if (current) - return; - if (switch_instance) - transition_in(switch_instance.$$.fragment, local); - current = true; - }, - o(local) { - if (switch_instance) - transition_out(switch_instance.$$.fragment, local); - current = false; - }, - d(detaching) { - ctx[11](null); - if (detaching) - detach(switch_instance_anchor); - if (switch_instance) - destroy_component(switch_instance, detaching); - } - }; -} -function create_default_slot(ctx) { - let switch_instance; - let switch_instance_anchor; - let current; - var switch_value = ( - /*constructors*/ - ctx[1][1] - ); - function switch_props(ctx2) { - let switch_instance_props = { - data: ( - /*data_1*/ - ctx2[4] - ), - form: ( - /*form*/ - ctx2[2] - ) - }; - return { props: switch_instance_props }; - } - if (switch_value) { - switch_instance = construct_svelte_component(switch_value, switch_props(ctx)); - ctx[10](switch_instance); - } - return { - c() { - if (switch_instance) - create_component(switch_instance.$$.fragment); - switch_instance_anchor = empty(); - }, - l(nodes2) { - if (switch_instance) - claim_component(switch_instance.$$.fragment, nodes2); - switch_instance_anchor = empty(); - }, - m(target, anchor) { - if (switch_instance) - mount_component(switch_instance, target, anchor); - insert_hydration(target, switch_instance_anchor, anchor); - current = true; - }, - p(ctx2, dirty) { - const switch_instance_changes = {}; - if (dirty & /*data_1*/ - 16) - switch_instance_changes.data = /*data_1*/ - ctx2[4]; - if (dirty & /*form*/ - 4) - switch_instance_changes.form = /*form*/ - ctx2[2]; - if (switch_value !== (switch_value = /*constructors*/ - ctx2[1][1])) { - if (switch_instance) { - group_outros(); - const old_component = switch_instance; - transition_out(old_component.$$.fragment, 1, 0, () => { - destroy_component(old_component, 1); - }); - check_outros(); - } - if (switch_value) { - switch_instance = construct_svelte_component(switch_value, switch_props(ctx2)); - ctx2[10](switch_instance); - create_component(switch_instance.$$.fragment); - transition_in(switch_instance.$$.fragment, 1); - mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor); - } else { - switch_instance = null; - } - } else if (switch_value) { - switch_instance.$set(switch_instance_changes); - } - }, - i(local) { - if (current) - return; - if (switch_instance) - transition_in(switch_instance.$$.fragment, local); - current = true; - }, - o(local) { - if (switch_instance) - transition_out(switch_instance.$$.fragment, local); - current = false; - }, - d(detaching) { - ctx[10](null); - if (detaching) - detach(switch_instance_anchor); - if (switch_instance) - destroy_component(switch_instance, detaching); - } - }; -} -function create_if_block(ctx) { - let div; - let if_block = ( - /*navigated*/ - ctx[6] && create_if_block_1(ctx) - ); - return { - c() { - div = element("div"); - if (if_block) - if_block.c(); - this.h(); - }, - l(nodes2) { - div = claim_element(nodes2, "DIV", { - id: true, - "aria-live": true, - "aria-atomic": true, - style: true - }); - var div_nodes = children(div); - if (if_block) - if_block.l(div_nodes); - div_nodes.forEach(detach); - this.h(); - }, - h() { - attr(div, "id", "svelte-announcer"); - attr(div, "aria-live", "assertive"); - attr(div, "aria-atomic", "true"); - set_style(div, "position", "absolute"); - set_style(div, "left", "0"); - set_style(div, "top", "0"); - set_style(div, "clip", "rect(0 0 0 0)"); - set_style(div, "clip-path", "inset(50%)"); - set_style(div, "overflow", "hidden"); - set_style(div, "white-space", "nowrap"); - set_style(div, "width", "1px"); - set_style(div, "height", "1px"); - }, - m(target, anchor) { - insert_hydration(target, div, anchor); - if (if_block) - if_block.m(div, null); - }, - p(ctx2, dirty) { - if ( - /*navigated*/ - ctx2[6] - ) { - if (if_block) { - if_block.p(ctx2, dirty); - } else { - if_block = create_if_block_1(ctx2); - if_block.c(); - if_block.m(div, null); - } - } else if (if_block) { - if_block.d(1); - if_block = null; - } - }, - d(detaching) { - if (detaching) - detach(div); - if (if_block) - if_block.d(); - } - }; -} -function create_if_block_1(ctx) { - let t; - return { - c() { - t = text( - /*title*/ - ctx[7] - ); - }, - l(nodes2) { - t = claim_text( - nodes2, - /*title*/ - ctx[7] - ); - }, - m(target, anchor) { - insert_hydration(target, t, anchor); - }, - p(ctx2, dirty) { - if (dirty & /*title*/ - 128) - set_data( - t, - /*title*/ - ctx2[7] - ); - }, - d(detaching) { - if (detaching) - detach(t); - } - }; -} -function create_fragment(ctx) { - let current_block_type_index; - let if_block0; - let t; - let if_block1_anchor; - let current; - const if_block_creators = [create_if_block_2, create_else_block]; - const if_blocks = []; - function select_block_type(ctx2, dirty) { - if ( - /*constructors*/ - ctx2[1][1] - ) - return 0; - return 1; - } - current_block_type_index = select_block_type(ctx); - if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx); - let if_block1 = ( - /*mounted*/ - ctx[5] && create_if_block(ctx) - ); - return { - c() { - if_block0.c(); - t = space(); - if (if_block1) - if_block1.c(); - if_block1_anchor = empty(); - }, - l(nodes2) { - if_block0.l(nodes2); - t = claim_space(nodes2); - if (if_block1) - if_block1.l(nodes2); - if_block1_anchor = empty(); - }, - m(target, anchor) { - if_blocks[current_block_type_index].m(target, anchor); - insert_hydration(target, t, anchor); - if (if_block1) - if_block1.m(target, anchor); - insert_hydration(target, if_block1_anchor, anchor); - current = true; - }, - p(ctx2, [dirty]) { - let previous_block_index = current_block_type_index; - current_block_type_index = select_block_type(ctx2); - if (current_block_type_index === previous_block_index) { - if_blocks[current_block_type_index].p(ctx2, dirty); - } else { - group_outros(); - transition_out(if_blocks[previous_block_index], 1, 1, () => { - if_blocks[previous_block_index] = null; - }); - check_outros(); - if_block0 = if_blocks[current_block_type_index]; - if (!if_block0) { - if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2); - if_block0.c(); - } else { - if_block0.p(ctx2, dirty); - } - transition_in(if_block0, 1); - if_block0.m(t.parentNode, t); - } - if ( - /*mounted*/ - ctx2[5] - ) { - if (if_block1) { - if_block1.p(ctx2, dirty); - } else { - if_block1 = create_if_block(ctx2); - if_block1.c(); - if_block1.m(if_block1_anchor.parentNode, if_block1_anchor); - } - } else if (if_block1) { - if_block1.d(1); - if_block1 = null; - } - }, - i(local) { - if (current) - return; - transition_in(if_block0); - current = true; - }, - o(local) { - transition_out(if_block0); - current = false; - }, - d(detaching) { - if_blocks[current_block_type_index].d(detaching); - if (detaching) - detach(t); - if (if_block1) - if_block1.d(detaching); - if (detaching) - detach(if_block1_anchor); - } - }; -} -function instance($$self, $$props, $$invalidate) { - let { stores: stores2 } = $$props; - let { page } = $$props; - let { constructors } = $$props; - let { components = [] } = $$props; - let { form } = $$props; - let { data_0 = null } = $$props; - let { data_1 = null } = $$props; - afterUpdate(stores2.page.notify); - let mounted = false; - let navigated = false; - let title = null; - onMount(() => { - const unsubscribe = stores2.page.subscribe(() => { - if (mounted) { - $$invalidate(6, navigated = true); - $$invalidate(7, title = document.title || "untitled page"); - } - }); - $$invalidate(5, mounted = true); - return unsubscribe; - }); - function switch_instance_binding($$value) { - binding_callbacks[$$value ? "unshift" : "push"](() => { - components[1] = $$value; - $$invalidate(0, components); - }); - } - function switch_instance_binding_1($$value) { - binding_callbacks[$$value ? "unshift" : "push"](() => { - components[0] = $$value; - $$invalidate(0, components); - }); - } - function switch_instance_binding_2($$value) { - binding_callbacks[$$value ? "unshift" : "push"](() => { - components[0] = $$value; - $$invalidate(0, components); - }); - } - $$self.$$set = ($$props2) => { - if ("stores" in $$props2) - $$invalidate(8, stores2 = $$props2.stores); - if ("page" in $$props2) - $$invalidate(9, page = $$props2.page); - if ("constructors" in $$props2) - $$invalidate(1, constructors = $$props2.constructors); - if ("components" in $$props2) - $$invalidate(0, components = $$props2.components); - if ("form" in $$props2) - $$invalidate(2, form = $$props2.form); - if ("data_0" in $$props2) - $$invalidate(3, data_0 = $$props2.data_0); - if ("data_1" in $$props2) - $$invalidate(4, data_1 = $$props2.data_1); - }; - $$self.$$.update = () => { - if ($$self.$$.dirty & /*stores, page*/ - 768) { - stores2.page.set(page); - } - }; - return [ - components, - constructors, - form, - data_0, - data_1, - mounted, - navigated, - title, - stores2, - page, - switch_instance_binding, - switch_instance_binding_1, - switch_instance_binding_2 - ]; -} -class Root extends SvelteComponent { - constructor(options) { - super(); - init(this, options, instance, create_fragment, safe_not_equal, { - stores: 8, - page: 9, - constructors: 1, - components: 0, - form: 2, - data_0: 3, - data_1: 4 - }); - } -} -const matchers = {}; -const nodes = [ - () => __vitePreload(() => import("./chunks/0-a9e0965b.js"), true ? ["./chunks/0-a9e0965b.js","./chunks/_layout-9a8b0c19.js","./components/pages/_layout.svelte-44e755b8.js","./chunks/index-31b80213.js","./assets/_layout-3dc7acce.css"] : void 0, import.meta.url), - () => __vitePreload(() => import("./chunks/1-ffd2f99e.js"), true ? ["./chunks/1-ffd2f99e.js","./components/error.svelte-e4b99ac8.js","./chunks/index-31b80213.js","./chunks/singletons-61d560ad.js","./chunks/index-fc865e59.js"] : void 0, import.meta.url), - () => __vitePreload(() => import("./chunks/2-e0ad7b66.js"), true ? ["./chunks/2-e0ad7b66.js","./chunks/_page-de0ef88a.js","./components/pages/_page.svelte-c8674a26.js","./chunks/preload-helper-f8376bb0.js","./chunks/index-31b80213.js","./chunks/index-fc865e59.js","./assets/_page-1cf58d46.css"] : void 0, import.meta.url) -]; -const server_loads = []; -const dictionary = { - "/": [2] -}; -const hooks = { - handleError: ({ error }) => { - console.error(error); - } -}; -let HttpError = class HttpError2 { - /** - * @param {number} status - * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body - */ - constructor(status, body) { - this.status = status; - if (typeof body === "string") { - this.body = { message: body }; - } else if (body) { - this.body = body; - } else { - this.body = { message: `Error: ${status}` }; - } - } - toString() { - return JSON.stringify(this.body); - } -}; -let Redirect = class Redirect2 { - /** - * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status - * @param {string} location - */ - constructor(status, location2) { - this.status = status; - this.location = location2; - } -}; -async function unwrap_promises(object) { - var _a; - for (const key in object) { - if (typeof ((_a = object[key]) == null ? void 0 : _a.then) === "function") { - return Object.fromEntries( - await Promise.all(Object.entries(object).map(async ([key2, value]) => [key2, await value])) - ); - } - } - return object; -} -Object.getOwnPropertyNames(Object.prototype).sort().join("\0"); -const UNDEFINED = -1; -const HOLE = -2; -const NAN = -3; -const POSITIVE_INFINITY = -4; -const NEGATIVE_INFINITY = -5; -const NEGATIVE_ZERO = -6; -function unflatten(parsed) { - if (typeof parsed === "number") - return hydrate(parsed, true); - if (!Array.isArray(parsed) || parsed.length === 0) { - throw new Error("Invalid input"); - } - const values = ( - /** @type {any[]} */ - parsed - ); - const hydrated = Array(values.length); - function hydrate(index, standalone = false) { - if (index === UNDEFINED) - return void 0; - if (index === NAN) - return NaN; - if (index === POSITIVE_INFINITY) - return Infinity; - if (index === NEGATIVE_INFINITY) - return -Infinity; - if (index === NEGATIVE_ZERO) - return -0; - if (standalone) - throw new Error(`Invalid input`); - if (index in hydrated) - return hydrated[index]; - const value = values[index]; - if (!value || typeof value !== "object") { - hydrated[index] = value; - } else if (Array.isArray(value)) { - if (typeof value[0] === "string") { - const type = value[0]; - switch (type) { - case "Date": - hydrated[index] = new Date(value[1]); - break; - case "Set": - const set2 = /* @__PURE__ */ new Set(); - hydrated[index] = set2; - for (let i = 1; i < value.length; i += 1) { - set2.add(hydrate(value[i])); - } - break; - case "Map": - const map = /* @__PURE__ */ new Map(); - hydrated[index] = map; - for (let i = 1; i < value.length; i += 2) { - map.set(hydrate(value[i]), hydrate(value[i + 1])); - } - break; - case "RegExp": - hydrated[index] = new RegExp(value[1], value[2]); - break; - case "Object": - hydrated[index] = Object(value[1]); - break; - case "BigInt": - hydrated[index] = BigInt(value[1]); - break; - case "null": - const obj = /* @__PURE__ */ Object.create(null); - hydrated[index] = obj; - for (let i = 1; i < value.length; i += 2) { - obj[value[i]] = hydrate(value[i + 1]); - } - break; - } - } else { - const array = new Array(value.length); - hydrated[index] = array; - for (let i = 0; i < value.length; i += 1) { - const n = value[i]; - if (n === HOLE) - continue; - array[i] = hydrate(n); - } - } - } else { - const object = {}; - hydrated[index] = object; - for (const key in value) { - const n = value[key]; - object[key] = hydrate(n); - } - } - return hydrated[index]; - } - return hydrate(0); -} -function compact(arr) { - return arr.filter( - /** @returns {val is NonNullable} */ - (val) => val != null - ); -} -const routes = parse(nodes, server_loads, dictionary, matchers); -const default_layout_loader = nodes[0]; -const default_error_loader = nodes[1]; -default_layout_loader(); -default_error_loader(); -const scroll_positions = get(SCROLL_KEY) ?? {}; -const snapshots = get(SNAPSHOT_KEY) ?? {}; -function update_scroll_positions(index) { - scroll_positions[index] = scroll_state(); -} -function create_client({ target }) { - var _a; - const container = document.documentElement; - const invalidated = []; - const components = []; - let load_cache = null; - const callbacks = { - /** @type {Array<(navigation: import('types').BeforeNavigate) => void>} */ - before_navigate: [], - /** @type {Array<(navigation: import('types').AfterNavigate) => void>} */ - after_navigate: [] - }; - let current = { - branch: [], - error: null, - // @ts-ignore - we need the initial value to be null - url: null - }; - let hydrated = false; - let started = false; - let autoscroll = true; - let updating = false; - let navigating = false; - let hash_navigating = false; - let force_invalidation = false; - let root; - let current_history_index = (_a = history.state) == null ? void 0 : _a[INDEX_KEY]; - if (!current_history_index) { - current_history_index = Date.now(); - history.replaceState( - { ...history.state, [INDEX_KEY]: current_history_index }, - "", - location.href - ); - } - const scroll = scroll_positions[current_history_index]; - if (scroll) { - history.scrollRestoration = "manual"; - scrollTo(scroll.x, scroll.y); - } - let page; - let token; - let pending_invalidate; - async function invalidate() { - pending_invalidate = pending_invalidate || Promise.resolve(); - await pending_invalidate; - pending_invalidate = null; - const url = new URL(location.href); - const intent = get_navigation_intent(url, true); - load_cache = null; - await update(intent, url, []); - } - function capture_snapshot(index) { - if (components.some((c) => c == null ? void 0 : c.snapshot)) { - snapshots[index] = components.map((c) => { - var _a2; - return (_a2 = c == null ? void 0 : c.snapshot) == null ? void 0 : _a2.capture(); - }); - } - } - function restore_snapshot(index) { - var _a2; - (_a2 = snapshots[index]) == null ? void 0 : _a2.forEach((value, i) => { - var _a3, _b; - (_b = (_a3 = components[i]) == null ? void 0 : _a3.snapshot) == null ? void 0 : _b.restore(value); - }); - } - async function goto(url, { - noScroll = false, - replaceState = false, - keepFocus = false, - state = {}, - invalidateAll = false - }, redirect_chain, nav_token) { - if (typeof url === "string") { - url = new URL(url, get_base_uri(document)); - } - return navigate({ - url, - scroll: noScroll ? scroll_state() : null, - keepfocus: keepFocus, - redirect_chain, - details: { - state, - replaceState - }, - nav_token, - accepted: () => { - if (invalidateAll) { - force_invalidation = true; - } - }, - blocked: () => { - }, - type: "goto" - }); - } - async function preload_data(intent) { - load_cache = { - id: intent.id, - promise: load_route(intent).then((result) => { - if (result.type === "loaded" && result.state.error) { - load_cache = null; - } - return result; - }) - }; - return load_cache.promise; - } - async function preload_code(...pathnames) { - const matching = routes.filter((route) => pathnames.some((pathname) => route.exec(pathname))); - const promises = matching.map((r) => { - return Promise.all([...r.layouts, r.leaf].map((load) => load == null ? void 0 : load[1]())); - }); - await Promise.all(promises); - } - async function update(intent, url, redirect_chain, previous_history_index, opts, nav_token = {}, callback) { - var _a2, _b; - token = nav_token; - let navigation_result = intent && await load_route(intent); - if (!navigation_result) { - navigation_result = await server_fallback( - url, - { id: null }, - await handle_error(new Error(`Not found: ${url.pathname}`), { - url, - params: {}, - route: { id: null } - }), - 404 - ); - } - url = (intent == null ? void 0 : intent.url) || url; - if (token !== nav_token) - return false; - if (navigation_result.type === "redirect") { - if (redirect_chain.length > 10 || redirect_chain.includes(url.pathname)) { - navigation_result = await load_root_error_page({ - status: 500, - error: await handle_error(new Error("Redirect loop"), { - url, - params: {}, - route: { id: null } - }), - url, - route: { id: null } - }); - } else { - goto( - new URL(navigation_result.location, url).href, - {}, - [...redirect_chain, url.pathname], - nav_token - ); - return false; - } - } else if ( - /** @type {number} */ - ((_b = (_a2 = navigation_result.props) == null ? void 0 : _a2.page) == null ? void 0 : _b.status) >= 400 - ) { - const updated = await stores.updated.check(); - if (updated) { - await native_navigation(url); - } - } - invalidated.length = 0; - force_invalidation = false; - updating = true; - if (previous_history_index) { - update_scroll_positions(previous_history_index); - capture_snapshot(previous_history_index); - } - if (opts && opts.details) { - const { details } = opts; - const change = details.replaceState ? 0 : 1; - details.state[INDEX_KEY] = current_history_index += change; - history[details.replaceState ? "replaceState" : "pushState"](details.state, "", url); - if (!details.replaceState) { - let i = current_history_index + 1; - while (snapshots[i] || scroll_positions[i]) { - delete snapshots[i]; - delete scroll_positions[i]; - i += 1; - } - } - } - load_cache = null; - if (started) { - current = navigation_result.state; - if (navigation_result.props.page) { - navigation_result.props.page.url = url; - } - root.$set(navigation_result.props); - } else { - initialize(navigation_result); - } - if (opts) { - const { scroll: scroll2, keepfocus } = opts; - const { activeElement } = document; - await tick(); - const changed_focus = ( - // reset focus only if any manual focus management didn't override it - document.activeElement !== activeElement && // also refocus when activeElement is body already because the - // focus event might not have been fired on it yet - document.activeElement !== document.body - ); - if (!keepfocus && !changed_focus) { - await reset_focus(); - } - if (autoscroll) { - const deep_linked = url.hash && document.getElementById(decodeURIComponent(url.hash.slice(1))); - if (scroll2) { - scrollTo(scroll2.x, scroll2.y); - } else if (deep_linked) { - deep_linked.scrollIntoView(); - } else { - scrollTo(0, 0); - } - } - } else { - await tick(); - } - autoscroll = true; - if (navigation_result.props.page) { - page = navigation_result.props.page; - } - if (callback) - callback(); - updating = false; - } - function initialize(result) { - var _a2; - current = result.state; - const style = document.querySelector("style[data-sveltekit]"); - if (style) - style.remove(); - page = /** @type {import('types').Page} */ - result.props.page; - root = new Root({ - target, - props: { ...result.props, stores, components }, - hydrate: true - }); - restore_snapshot(current_history_index); - const navigation = { - from: null, - to: { - params: current.params, - route: { id: ((_a2 = current.route) == null ? void 0 : _a2.id) ?? null }, - url: new URL(location.href) - }, - willUnload: false, - type: "enter" - }; - callbacks.after_navigate.forEach((fn) => fn(navigation)); - started = true; - } - async function get_navigation_result_from_branch({ - url, - params, - branch, - status, - error, - route, - form - }) { - let slash = "never"; - for (const node of branch) { - if ((node == null ? void 0 : node.slash) !== void 0) - slash = node.slash; - } - url.pathname = normalize_path(url.pathname, slash); - url.search = url.search; - const result = { - type: "loaded", - state: { - url, - params, - branch, - error, - route - }, - props: { - // @ts-ignore Somehow it's getting SvelteComponent and SvelteComponentDev mixed up - constructors: compact(branch).map((branch_node) => branch_node.node.component) - } - }; - if (form !== void 0) { - result.props.form = form; - } - let data = {}; - let data_changed = !page; - let p = 0; - for (let i = 0; i < Math.max(branch.length, current.branch.length); i += 1) { - const node = branch[i]; - const prev = current.branch[i]; - if ((node == null ? void 0 : node.data) !== (prev == null ? void 0 : prev.data)) - data_changed = true; - if (!node) - continue; - data = { ...data, ...node.data }; - if (data_changed) { - result.props[`data_${p}`] = data; - } - p += 1; - } - const page_changed = !current.url || url.href !== current.url.href || current.error !== error || form !== void 0 && form !== page.form || data_changed; - if (page_changed) { - result.props.page = { - error, - params, - route: { - id: (route == null ? void 0 : route.id) ?? null - }, - status, - url: new URL(url), - form: form ?? null, - // The whole page store is updated, but this way the object reference stays the same - data: data_changed ? data : page.data - }; - } - return result; - } - async function load_node({ loader, parent, url, params, route, server_data_node }) { - var _a2, _b, _c; - let data = null; - const uses = { - dependencies: /* @__PURE__ */ new Set(), - params: /* @__PURE__ */ new Set(), - parent: false, - route: false, - url: false - }; - const node = await loader(); - if ((_a2 = node.universal) == null ? void 0 : _a2.load) { - let depends = function(...deps) { - for (const dep of deps) { - const { href } = new URL(dep, url); - uses.dependencies.add(href); - } - }; - const load_input = { - route: { - get id() { - uses.route = true; - return route.id; - } - }, - params: new Proxy(params, { - get: (target2, key) => { - uses.params.add( - /** @type {string} */ - key - ); - return target2[ - /** @type {string} */ - key - ]; - } - }), - data: (server_data_node == null ? void 0 : server_data_node.data) ?? null, - url: make_trackable(url, () => { - uses.url = true; - }), - async fetch(resource, init2) { - let requested; - if (resource instanceof Request) { - requested = resource.url; - init2 = { - // the request body must be consumed in memory until browsers - // implement streaming request bodies and/or the body getter - body: resource.method === "GET" || resource.method === "HEAD" ? void 0 : await resource.blob(), - cache: resource.cache, - credentials: resource.credentials, - headers: resource.headers, - integrity: resource.integrity, - keepalive: resource.keepalive, - method: resource.method, - mode: resource.mode, - redirect: resource.redirect, - referrer: resource.referrer, - referrerPolicy: resource.referrerPolicy, - signal: resource.signal, - ...init2 - }; - } else { - requested = resource; - } - const resolved = new URL(requested, url); - depends(resolved.href); - if (resolved.origin === url.origin) { - requested = resolved.href.slice(url.origin.length); - } - return started ? subsequent_fetch(requested, resolved.href, init2) : initial_fetch(requested, init2); - }, - setHeaders: () => { - }, - // noop - depends, - parent() { - uses.parent = true; - return parent(); - } - }; - { - data = await node.universal.load.call(null, load_input) ?? null; - } - data = data ? await unwrap_promises(data) : null; - } - return { - node, - loader, - server: server_data_node, - universal: ((_b = node.universal) == null ? void 0 : _b.load) ? { type: "data", data, uses } : null, - data: data ?? (server_data_node == null ? void 0 : server_data_node.data) ?? null, - slash: ((_c = node.universal) == null ? void 0 : _c.trailingSlash) ?? (server_data_node == null ? void 0 : server_data_node.slash) - }; - } - function has_changed(parent_changed, route_changed, url_changed, uses, params) { - if (force_invalidation) - return true; - if (!uses) - return false; - if (uses.parent && parent_changed) - return true; - if (uses.route && route_changed) - return true; - if (uses.url && url_changed) - return true; - for (const param of uses.params) { - if (params[param] !== current.params[param]) - return true; - } - for (const href of uses.dependencies) { - if (invalidated.some((fn) => fn(new URL(href)))) - return true; - } - return false; - } - function create_data_node(node, previous) { - if ((node == null ? void 0 : node.type) === "data") { - return { - type: "data", - data: node.data, - uses: { - dependencies: new Set(node.uses.dependencies ?? []), - params: new Set(node.uses.params ?? []), - parent: !!node.uses.parent, - route: !!node.uses.route, - url: !!node.uses.url - }, - slash: node.slash - }; - } else if ((node == null ? void 0 : node.type) === "skip") { - return previous ?? null; - } - return null; - } - async function load_route({ id, invalidating, url, params, route }) { - if ((load_cache == null ? void 0 : load_cache.id) === id) { - return load_cache.promise; - } - const { errors, layouts, leaf } = route; - const loaders = [...layouts, leaf]; - errors.forEach((loader) => loader == null ? void 0 : loader().catch(() => { - })); - loaders.forEach((loader) => loader == null ? void 0 : loader[1]().catch(() => { - })); - let server_data = null; - const url_changed = current.url ? id !== current.url.pathname + current.url.search : false; - const route_changed = current.route ? route.id !== current.route.id : false; - let parent_invalid = false; - const invalid_server_nodes = loaders.map((loader, i) => { - var _a2; - const previous = current.branch[i]; - const invalid = !!(loader == null ? void 0 : loader[0]) && ((previous == null ? void 0 : previous.loader) !== loader[1] || has_changed(parent_invalid, route_changed, url_changed, (_a2 = previous.server) == null ? void 0 : _a2.uses, params)); - if (invalid) { - parent_invalid = true; - } - return invalid; - }); - if (invalid_server_nodes.some(Boolean)) { - try { - server_data = await load_data(url, invalid_server_nodes); - } catch (error) { - return load_root_error_page({ - status: error instanceof HttpError ? error.status : 500, - error: await handle_error(error, { url, params, route: { id: route.id } }), - url, - route - }); - } - if (server_data.type === "redirect") { - return server_data; - } - } - const server_data_nodes = server_data == null ? void 0 : server_data.nodes; - let parent_changed = false; - const branch_promises = loaders.map(async (loader, i) => { - var _a2; - if (!loader) - return; - const previous = current.branch[i]; - const server_data_node = server_data_nodes == null ? void 0 : server_data_nodes[i]; - const valid = (!server_data_node || server_data_node.type === "skip") && loader[1] === (previous == null ? void 0 : previous.loader) && !has_changed(parent_changed, route_changed, url_changed, (_a2 = previous.universal) == null ? void 0 : _a2.uses, params); - if (valid) - return previous; - parent_changed = true; - if ((server_data_node == null ? void 0 : server_data_node.type) === "error") { - throw server_data_node; - } - return load_node({ - loader: loader[1], - url, - params, - route, - parent: async () => { - var _a3; - const data = {}; - for (let j = 0; j < i; j += 1) { - Object.assign(data, (_a3 = await branch_promises[j]) == null ? void 0 : _a3.data); - } - return data; - }, - server_data_node: create_data_node( - // server_data_node is undefined if it wasn't reloaded from the server; - // and if current loader uses server data, we want to reuse previous data. - server_data_node === void 0 && loader[0] ? { type: "skip" } : server_data_node ?? null, - loader[0] ? previous == null ? void 0 : previous.server : void 0 - ) - }); - }); - for (const p of branch_promises) - p.catch(() => { - }); - const branch = []; - for (let i = 0; i < loaders.length; i += 1) { - if (loaders[i]) { - try { - branch.push(await branch_promises[i]); - } catch (err) { - if (err instanceof Redirect) { - return { - type: "redirect", - location: err.location - }; - } - let status = 500; - let error; - if (server_data_nodes == null ? void 0 : server_data_nodes.includes( - /** @type {import('types').ServerErrorNode} */ - err - )) { - status = /** @type {import('types').ServerErrorNode} */ - err.status ?? status; - error = /** @type {import('types').ServerErrorNode} */ - err.error; - } else if (err instanceof HttpError) { - status = err.status; - error = err.body; - } else { - const updated = await stores.updated.check(); - if (updated) { - return await native_navigation(url); - } - error = await handle_error(err, { params, url, route: { id: route.id } }); - } - const error_load = await load_nearest_error_page(i, branch, errors); - if (error_load) { - return await get_navigation_result_from_branch({ - url, - params, - branch: branch.slice(0, error_load.idx).concat(error_load.node), - status, - error, - route - }); - } else { - return await server_fallback(url, { id: route.id }, error, status); - } - } - } else { - branch.push(void 0); - } - } - return await get_navigation_result_from_branch({ - url, - params, - branch, - status: 200, - error: null, - route, - // Reset `form` on navigation, but not invalidation - form: invalidating ? void 0 : null - }); - } - async function load_nearest_error_page(i, branch, errors) { - while (i--) { - if (errors[i]) { - let j = i; - while (!branch[j]) - j -= 1; - try { - return { - idx: j + 1, - node: { - node: await /** @type {import('types').CSRPageNodeLoader } */ - errors[i](), - loader: ( - /** @type {import('types').CSRPageNodeLoader } */ - errors[i] - ), - data: {}, - server: null, - universal: null - } - }; - } catch (e) { - continue; - } - } - } - } - async function load_root_error_page({ status, error, url, route }) { - const params = {}; - let server_data_node = null; - const default_layout_has_server_load = server_loads[0] === 0; - if (default_layout_has_server_load) { - try { - const server_data = await load_data(url, [true]); - if (server_data.type !== "data" || server_data.nodes[0] && server_data.nodes[0].type !== "data") { - throw 0; - } - server_data_node = server_data.nodes[0] ?? null; - } catch { - if (url.origin !== location.origin || url.pathname !== location.pathname || hydrated) { - await native_navigation(url); - } - } - } - const root_layout = await load_node({ - loader: default_layout_loader, - url, - params, - route, - parent: () => Promise.resolve({}), - server_data_node: create_data_node(server_data_node) - }); - const root_error = { - node: await default_error_loader(), - loader: default_error_loader, - universal: null, - server: null, - data: null - }; - return await get_navigation_result_from_branch({ - url, - params, - branch: [root_layout, root_error], - status, - error, - route: null - }); - } - function get_navigation_intent(url, invalidating) { - if (is_external_url(url, base)) - return; - const path = get_url_path(url); - for (const route of routes) { - const params = route.exec(path); - if (params) { - const id = url.pathname + url.search; - const intent = { id, invalidating, route, params: decode_params(params), url }; - return intent; - } - } - } - function get_url_path(url) { - return decode_pathname(url.pathname.slice(base.length) || "/"); - } - function before_navigate({ url, type, intent, delta }) { - var _a2, _b; - let should_block = false; - const navigation = { - from: { - params: current.params, - route: { id: ((_a2 = current.route) == null ? void 0 : _a2.id) ?? null }, - url: current.url - }, - to: { - params: (intent == null ? void 0 : intent.params) ?? null, - route: { id: ((_b = intent == null ? void 0 : intent.route) == null ? void 0 : _b.id) ?? null }, - url - }, - willUnload: !intent, - type - }; - if (delta !== void 0) { - navigation.delta = delta; - } - const cancellable = { - ...navigation, - cancel: () => { - should_block = true; - } - }; - if (!navigating) { - callbacks.before_navigate.forEach((fn) => fn(cancellable)); - } - return should_block ? null : navigation; - } - async function navigate({ - url, - scroll: scroll2, - keepfocus, - redirect_chain, - details, - type, - delta, - nav_token, - accepted, - blocked - }) { - const intent = get_navigation_intent(url, false); - const navigation = before_navigate({ url, type, delta, intent }); - if (!navigation) { - blocked(); - return; - } - const previous_history_index = current_history_index; - accepted(); - navigating = true; - if (started) { - stores.navigating.set(navigation); - } - await update( - intent, - url, - redirect_chain, - previous_history_index, - { - scroll: scroll2, - keepfocus, - details - }, - nav_token, - () => { - navigating = false; - callbacks.after_navigate.forEach( - (fn) => fn( - /** @type {import('types').AfterNavigate} */ - navigation - ) - ); - stores.navigating.set(null); - } - ); - } - async function server_fallback(url, route, error, status) { - if (url.origin === location.origin && url.pathname === location.pathname && !hydrated) { - return await load_root_error_page({ - status, - error, - url, - route - }); - } - return await native_navigation(url); - } - function native_navigation(url) { - location.href = url.href; - return new Promise(() => { - }); - } - function setup_preload() { - let mousemove_timeout; - container.addEventListener("mousemove", (event) => { - const target2 = ( - /** @type {Element} */ - event.target - ); - clearTimeout(mousemove_timeout); - mousemove_timeout = setTimeout(() => { - preload(target2, 2); - }, 20); - }); - function tap(event) { - preload( - /** @type {Element} */ - event.composedPath()[0], - 1 - ); - } - container.addEventListener("mousedown", tap); - container.addEventListener("touchstart", tap, { passive: true }); - const observer = new IntersectionObserver( - (entries) => { - for (const entry of entries) { - if (entry.isIntersecting) { - preload_code( - get_url_path(new URL( - /** @type {HTMLAnchorElement} */ - entry.target.href - )) - ); - observer.unobserve(entry.target); - } - } - }, - { threshold: 0 } - ); - function preload(element2, priority) { - const a = find_anchor(element2, container); - if (!a) - return; - const { url, external } = get_link_info(a, base); - if (external) - return; - const options = get_router_options(a); - if (!options.reload) { - if (priority <= options.preload_data) { - const intent = get_navigation_intent( - /** @type {URL} */ - url, - false - ); - if (intent) { - { - preload_data(intent); - } - } - } else if (priority <= options.preload_code) { - preload_code(get_url_path( - /** @type {URL} */ - url - )); - } - } - } - function after_navigate() { - observer.disconnect(); - for (const a of container.querySelectorAll("a")) { - const { url, external } = get_link_info(a, base); - if (external) - continue; - const options = get_router_options(a); - if (options.reload) - continue; - if (options.preload_code === PRELOAD_PRIORITIES.viewport) { - observer.observe(a); - } - if (options.preload_code === PRELOAD_PRIORITIES.eager) { - preload_code(get_url_path( - /** @type {URL} */ - url - )); - } - } - } - callbacks.after_navigate.push(after_navigate); - after_navigate(); - } - return { - after_navigate: (fn) => { - onMount(() => { - callbacks.after_navigate.push(fn); - return () => { - const i = callbacks.after_navigate.indexOf(fn); - callbacks.after_navigate.splice(i, 1); - }; - }); - }, - before_navigate: (fn) => { - onMount(() => { - callbacks.before_navigate.push(fn); - return () => { - const i = callbacks.before_navigate.indexOf(fn); - callbacks.before_navigate.splice(i, 1); - }; - }); - }, - disable_scroll_handling: () => { - if (updating || !started) { - autoscroll = false; - } - }, - goto: (href, opts = {}) => { - return goto(href, opts, []); - }, - invalidate: (resource) => { - if (typeof resource === "function") { - invalidated.push(resource); - } else { - const { href } = new URL(resource, location.href); - invalidated.push((url) => url.href === href); - } - return invalidate(); - }, - invalidateAll: () => { - force_invalidation = true; - return invalidate(); - }, - preload_data: async (href) => { - const url = new URL(href, get_base_uri(document)); - const intent = get_navigation_intent(url, false); - if (!intent) { - throw new Error(`Attempted to preload a URL that does not belong to this app: ${url}`); - } - await preload_data(intent); - }, - preload_code, - apply_action: async (result) => { - if (result.type === "error") { - const url = new URL(location.href); - const { branch, route } = current; - if (!route) - return; - const error_load = await load_nearest_error_page( - current.branch.length, - branch, - route.errors - ); - if (error_load) { - const navigation_result = await get_navigation_result_from_branch({ - url, - params: current.params, - branch: branch.slice(0, error_load.idx).concat(error_load.node), - status: result.status ?? 500, - error: result.error, - route - }); - current = navigation_result.state; - root.$set(navigation_result.props); - tick().then(reset_focus); - } - } else if (result.type === "redirect") { - goto(result.location, { invalidateAll: true }, []); - } else { - const props = { - form: result.data, - page: { ...page, form: result.data, status: result.status } - }; - root.$set(props); - if (result.type === "success") { - tick().then(reset_focus); - } - } - }, - _start_router: () => { - var _a2; - history.scrollRestoration = "manual"; - addEventListener("beforeunload", (e) => { - var _a3; - let should_block = false; - if (!navigating) { - const navigation = { - from: { - params: current.params, - route: { id: ((_a3 = current.route) == null ? void 0 : _a3.id) ?? null }, - url: current.url - }, - to: null, - willUnload: true, - type: "leave", - cancel: () => should_block = true - }; - callbacks.before_navigate.forEach((fn) => fn(navigation)); - } - if (should_block) { - e.preventDefault(); - e.returnValue = ""; - } else { - history.scrollRestoration = "auto"; - } - }); - addEventListener("visibilitychange", () => { - if (document.visibilityState === "hidden") { - update_scroll_positions(current_history_index); - set(SCROLL_KEY, scroll_positions); - capture_snapshot(current_history_index); - set(SNAPSHOT_KEY, snapshots); - } - }); - if (!((_a2 = navigator.connection) == null ? void 0 : _a2.saveData)) { - setup_preload(); - } - container.addEventListener("click", (event) => { - if (event.button || event.which !== 1) - return; - if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) - return; - if (event.defaultPrevented) - return; - const a = find_anchor( - /** @type {Element} */ - event.composedPath()[0], - container - ); - if (!a) - return; - const { url, external, target: target2 } = get_link_info(a, base); - if (!url) - return; - if (target2 === "_parent" || target2 === "_top") { - if (window.parent !== window) - return; - } else if (target2 && target2 !== "_self") { - return; - } - const options = get_router_options(a); - const is_svg_a_element = a instanceof SVGAElement; - if (!is_svg_a_element && url.protocol !== location.protocol && !(url.protocol === "https:" || url.protocol === "http:")) - return; - if (external || options.reload) { - const navigation = before_navigate({ url, type: "link" }); - if (!navigation) { - event.preventDefault(); - } - navigating = true; - return; - } - const [nonhash, hash2] = url.href.split("#"); - if (hash2 !== void 0 && nonhash === location.href.split("#")[0]) { - hash_navigating = true; - update_scroll_positions(current_history_index); - current.url = url; - stores.page.set({ ...page, url }); - stores.page.notify(); - return; - } - navigate({ - url, - scroll: options.noscroll ? scroll_state() : null, - keepfocus: false, - redirect_chain: [], - details: { - state: {}, - replaceState: url.href === location.href - }, - accepted: () => event.preventDefault(), - blocked: () => event.preventDefault(), - type: "link" - }); - }); - container.addEventListener("submit", (event) => { - if (event.defaultPrevented) - return; - const form = ( - /** @type {HTMLFormElement} */ - HTMLFormElement.prototype.cloneNode.call(event.target) - ); - const submitter = ( - /** @type {HTMLButtonElement | HTMLInputElement | null} */ - event.submitter - ); - const method = (submitter == null ? void 0 : submitter.formMethod) || form.method; - if (method !== "get") - return; - const url = new URL( - (submitter == null ? void 0 : submitter.hasAttribute("formaction")) && (submitter == null ? void 0 : submitter.formAction) || form.action - ); - if (is_external_url(url, base)) - return; - const event_form = ( - /** @type {HTMLFormElement} */ - event.target - ); - const { noscroll, reload } = get_router_options(event_form); - if (reload) - return; - event.preventDefault(); - event.stopPropagation(); - const data = new FormData(event_form); - const submitter_name = submitter == null ? void 0 : submitter.getAttribute("name"); - if (submitter_name) { - data.append(submitter_name, (submitter == null ? void 0 : submitter.getAttribute("value")) ?? ""); - } - url.search = new URLSearchParams(data).toString(); - navigate({ - url, - scroll: noscroll ? scroll_state() : null, - keepfocus: false, - redirect_chain: [], - details: { - state: {}, - replaceState: false - }, - nav_token: {}, - accepted: () => { - }, - blocked: () => { - }, - type: "form" - }); - }); - addEventListener("popstate", async (event) => { - var _a3; - if ((_a3 = event.state) == null ? void 0 : _a3[INDEX_KEY]) { - if (event.state[INDEX_KEY] === current_history_index) - return; - const scroll2 = scroll_positions[event.state[INDEX_KEY]]; - if (current.url.href.split("#")[0] === location.href.split("#")[0]) { - scroll_positions[current_history_index] = scroll_state(); - current_history_index = event.state[INDEX_KEY]; - scrollTo(scroll2.x, scroll2.y); - return; - } - const delta = event.state[INDEX_KEY] - current_history_index; - let blocked = false; - await navigate({ - url: new URL(location.href), - scroll: scroll2, - keepfocus: false, - redirect_chain: [], - details: null, - accepted: () => { - current_history_index = event.state[INDEX_KEY]; - }, - blocked: () => { - history.go(-delta); - blocked = true; - }, - type: "popstate", - delta - }); - if (!blocked) { - restore_snapshot(current_history_index); - } - } - }); - addEventListener("hashchange", () => { - if (hash_navigating) { - hash_navigating = false; - history.replaceState( - { ...history.state, [INDEX_KEY]: ++current_history_index }, - "", - location.href - ); - } - }); - for (const link of document.querySelectorAll("link")) { - if (link.rel === "icon") - link.href = link.href; - } - addEventListener("pageshow", (event) => { - if (event.persisted) { - stores.navigating.set(null); - } - }); - }, - _hydrate: async ({ - status = 200, - error, - node_ids, - params, - route, - data: server_data_nodes, - form - }) => { - hydrated = true; - const url = new URL(location.href); - { - ({ params = {}, route = { id: null } } = get_navigation_intent(url, false) || {}); - } - let result; - try { - const branch_promises = node_ids.map(async (n, i) => { - const server_data_node = server_data_nodes[i]; - return load_node({ - loader: nodes[n], - url, - params, - route, - parent: async () => { - const data = {}; - for (let j = 0; j < i; j += 1) { - Object.assign(data, (await branch_promises[j]).data); - } - return data; - }, - server_data_node: create_data_node(server_data_node) - }); - }); - result = await get_navigation_result_from_branch({ - url, - params, - branch: await Promise.all(branch_promises), - status, - error, - form, - route: routes.find(({ id }) => id === route.id) ?? null - }); - } catch (error2) { - if (error2 instanceof Redirect) { - await native_navigation(new URL(error2.location, location.href)); - return; - } - result = await load_root_error_page({ - status: error2 instanceof HttpError ? error2.status : 500, - error: await handle_error(error2, { url, params, route }), - url, - route - }); - } - initialize(result); - } - }; -} -async function load_data(url, invalid) { - var _a; - const data_url = new URL(url); - data_url.pathname = add_data_suffix(url.pathname); - data_url.searchParams.append( - "x-sveltekit-invalidated", - invalid.map((x) => x ? "1" : "").join("_") - ); - const res = await native_fetch(data_url.href); - const data = await res.json(); - if (!res.ok) { - throw new HttpError(res.status, data); - } - (_a = data.nodes) == null ? void 0 : _a.forEach((node) => { - if ((node == null ? void 0 : node.type) === "data") { - node.data = unflatten(node.data); - node.uses = { - dependencies: new Set(node.uses.dependencies ?? []), - params: new Set(node.uses.params ?? []), - parent: !!node.uses.parent, - route: !!node.uses.route, - url: !!node.uses.url - }; - } - }); - return data; -} -function handle_error(error, event) { - if (error instanceof HttpError) { - return error.body; - } - return hooks.handleError({ error, event }) ?? /** @type {any} */ - { message: event.route.id != null ? "Internal Error" : "Not Found" }; -} -function reset_focus() { - const autofocus = document.querySelector("[autofocus]"); - if (autofocus) { - autofocus.focus(); - } else { - const root = document.body; - const tabindex = root.getAttribute("tabindex"); - root.tabIndex = -1; - root.focus({ preventScroll: true }); - if (tabindex !== null) { - root.setAttribute("tabindex", tabindex); - } else { - root.removeAttribute("tabindex"); - } - return new Promise((resolve) => { - setTimeout(() => { - var _a; - resolve((_a = getSelection()) == null ? void 0 : _a.removeAllRanges()); - }); - }); - } -} -async function start({ assets, env, hydrate, target, version }) { - set_assets(assets); - set_version(version); - const client = create_client({ - target - }); - init$1({ client }); - if (hydrate) { - await client._hydrate(hydrate); - } else { - client.goto(location.href, { replaceState: true }); - } - client._start_router(); -} -export { - start -}; diff --git a/_app/version.json b/_app/version.json index 4051e1a..8fe0b7e 100644 --- a/_app/version.json +++ b/_app/version.json @@ -1 +1 @@ -{"version":"1694691069186"} \ No newline at end of file +{"version":"1713231812817"} \ No newline at end of file diff --git a/index.html b/index.html index f185962..a5ad3fe 100644 --- a/index.html +++ b/index.html @@ -50,26 +50,24 @@ - - - - - - - - - - - - - - + + + + + + + + + + +
+
+
dist.be +
v0.3.4
- - + +