@pie-players/pie-section-player 1.0.0-beta.0 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -3
- package/dist/browser/assets/{evaluation-worker-0xRDVTJx.js → evaluation-worker-B336Lsun.js} +48398 -46681
- package/dist/browser/chunks/calculator-element-271c142f.js +4 -4
- package/dist/browser/chunks/dist-41b39e7f.js +1 -1
- package/dist/browser/chunks/dist-ca9b9622.js +1 -1
- package/dist/browser/chunks/math-rendering-ready-9a0fd90a.js +1 -1
- package/dist/browser/chunks/mathjax-BKrHE4xs-3ca05bf6.js +1 -1
- package/dist/browser/chunks/{runtime-YFqnU6ic-d5c0cb49.js → runtime-BCz9m_IT-7b48a036.js} +305 -292
- package/dist/browser/chunks/tool-annotation-toolbar-997438b4.js +5 -5
- package/dist/browser/chunks/tool-answer-eliminator-35483abd.js +5 -5
- package/dist/browser/chunks/tool-color-scheme-b7de5cdf.js +5 -5
- package/dist/browser/chunks/tool-dictionary-cecff3b4.js +3 -3
- package/dist/browser/chunks/tool-graph-cb0338e8.js +4 -4
- package/dist/browser/chunks/tool-line-reader-f8ef3c6a.js +3 -3
- package/dist/browser/chunks/tool-periodic-table-43b133b8.js +4 -4
- package/dist/browser/chunks/tool-picture-dictionary-33721e91.js +3 -3
- package/dist/browser/chunks/tool-protractor-23f77028.js +6 -6
- package/dist/browser/chunks/tool-ruler-1d9a03a6.js +6 -6
- package/dist/browser/chunks/tool-tts-inline-98c2ce7a.js +4 -4
- package/dist/browser/chunks/versioned-tag-54a76be9.js +1 -1
- package/dist/browser/pie-section-player.js +57 -44
- package/dist/components/shared/card-title.d.ts +18 -0
- package/dist/contracts/card-title-formatters.d.ts +8 -1
- package/dist/pie-section-player.js +10123 -9887
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as He}from"./defineProperty-a20a667d.js";import{t as ca}from"./attribute-coercion-b93b482c.js";import{a as la,r as ua}from"./tool-host-contract-fae1c415.js";import{t as da}from"./focus-trap-44913bf3.js";import{i as fa}from"./provider-4c704118.js";import{t as pa}from"./ToolCoordinator-0a6c4088.js";var ha={"--pie-answer-eliminator-strike-color":"optional","--pie-background":"required","--pie-background-dark":"required","--pie-black":"required","--pie-blue-grey-100":"required","--pie-blue-grey-300":"required","--pie-blue-grey-600":"required","--pie-blue-grey-900":"required","--pie-border":"required","--pie-border-dark":"required","--pie-border-gray":"required","--pie-border-light":"required","--pie-button-active-bg":"required","--pie-button-background-color":"excluded","--pie-button-bg":"required","--pie-button-border":"required","--pie-button-color":"required","--pie-button-focus-outline":"required","--pie-button-hover-background-color":"excluded","--pie-button-hover-bg":"required","--pie-button-hover-border":"required","--pie-button-hover-color":"required","--pie-calculator-series-1":"optional","--pie-calculator-series-2":"optional","--pie-calculator-series-3":"optional","--pie-calculator-series-4":"optional","--pie-calculator-series-5":"optional","--pie-calculator-series-6":"optional","--pie-content-styles":"excluded","--pie-content-emphasis":"required","--pie-correct":"required","--pie-correct-icon":"required","--pie-correct-secondary":"required","--pie-correct-tertiary":"required","--pie-disabled":"required","--pie-disabled-secondary":"required","--pie-disabled-text":"required","--pie-dropdown-background":"required","--pie-surface":"required","--pie-faded-primary":"required","--pie-fixed-hue-collapse":"required","--pie-focus-checked":"required","--pie-focus-checked-border":"required","--pie-focus-outline":"excluded","--pie-focus-ring-color":"excluded","--pie-focus-unchecked":"required","--pie-focus-unchecked-border":"required","--pie-font-scale":"excluded","--pie-incorrect":"required","--pie-incorrect-icon":"required","--pie-incorrect-secondary":"required","--pie-missing":"required","--pie-missing-icon":"required","--pie-passage-header-background":"optional","--pie-primary":"required","--pie-primary-dark":"required","--pie-primary-light":"required","--pie-scrollbar-thumb":"excluded","--pie-scrollbar-thumb-hover":"excluded","--pie-scrollbar-track":"excluded","--pie-secondary":"required","--pie-secondary-background":"required","--pie-secondary-dark":"required","--pie-secondary-light":"required","--pie-section-player-card-header-background":"optional","--pie-section-player-card-header-background-dark":"optional","--pie-section-player-card-header-radius":"excluded","--pie-section-player-card-radius":"excluded","--pie-section-player-item-media-aspect-ratio":"excluded","--pie-section-player-item-media-min-height":"excluded","--pie-section-player-item-media-max-height":"excluded","--pie-section-player-layout-max-width":"excluded","--pie-section-player-tab-active-background":"optional","--pie-section-player-tab-active-color":"optional","--pie-section-player-tab-background":"optional","--pie-section-player-tab-color":"optional","--pie-section-player-tab-gap":"excluded","--pie-section-player-tab-padding-block":"excluded","--pie-section-player-tab-track-padding":"excluded","--pie-section-player-tab-track-radius":"excluded","--pie-section-player-tab-zoom-comp":"excluded","--pie-tertiary":"required","--pie-tertiary-light":"required","--pie-text":"required","--pie-annotation-underline":"required","--pie-annotation-underline-dark":"required","--pie-tool-annotation-toolbar-border":"required","--pie-tool-line-reader-control-color":"excluded","--pie-tool-line-reader-frame-color":"excluded","--pie-tool-line-reader-frame-opacity":"excluded","--pie-tool-trigger-active-background":"optional","--pie-tool-trigger-active-border-color":"optional","--pie-tool-trigger-active-color":"optional","--pie-toolbar-tools-row-height":"excluded","--pie-tts-controls-row-height":"excluded","--pie-tts-line-highlight":"excluded","--pie-tts-sentence-highlight":"excluded","--pie-tts-word-highlight":"excluded","--pie-tts-word-shadow":"excluded","--pie-tts-word-underline":"excluded","--pie-white":"required"};function dr(e){if(e&&typeof e=="object"&&!Object.isFrozen(e)){for(const r of Object.values(e))dr(r);Object.freeze(e)}return e}var jo={"--pie-text":"black","--pie-disabled":"grey","--pie-disabled-secondary":"#ababab","--pie-disabled-text":"#666666","--pie-correct":"#208537","--pie-correct-secondary":"#e8f5e9","--pie-correct-tertiary":"#087d38","--pie-correct-icon":"#087d38","--pie-incorrect":"#a65f00","--pie-content-emphasis":"#b00000","--pie-incorrect-secondary":"#ffebee","--pie-incorrect-icon":"#bf0d00","--pie-missing":"#d32f2f","--pie-missing-icon":"#6a78a1","--pie-primary":"#3f51b5","--pie-primary-light":"#9fa8da","--pie-primary-dark":"#283593","--pie-faded-primary":"#dcdafb","--pie-secondary":"#f50057","--pie-secondary-light":"#f48fb1","--pie-secondary-dark":"#880e4f","--pie-tertiary":"#146eb3","--pie-tertiary-light":"#d0e2f0","--pie-background":"#ffffff","--pie-background-dark":"#ecedf1","--pie-secondary-background":"rgba(241, 241, 241, 1)","--pie-dropdown-background":"#e0e1e6","--pie-surface":"#ecedf1","--pie-border":"#8f8f8f","--pie-border-light":"#d1d1d1","--pie-border-dark":"#646464","--pie-border-gray":"#7e8494","--pie-black":"#000000","--pie-white":"#ffffff","--pie-focus-checked":"#bbdefb","--pie-focus-checked-border":"#1565c0","--pie-focus-unchecked":"#e0e0e0","--pie-focus-unchecked-border":"#757575","--pie-blue-grey-100":"#f3f5f7","--pie-blue-grey-300":"#81848f","--pie-blue-grey-600":"#7e8494","--pie-blue-grey-900":"#152452","--pie-font-scale":"1","--pie-button-bg":"#ffffff","--pie-button-border":"#8f8f8f","--pie-button-color":"#374151","--pie-button-hover-bg":"#f9fafb","--pie-button-hover-border":"#8b919c","--pie-button-hover-color":"#111827","--pie-button-active-bg":"#f3f4f6","--pie-button-focus-outline":"#3b82f6","--pie-fixed-hue-collapse":"0%"},ba={"--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#9c89ec","--pie-tool-annotation-toolbar-border":"#5c5c5c"},va={"--pie-text":"#ffffff","--pie-disabled":"#999999","--pie-disabled-secondary":"#777777","--pie-disabled-text":"#808080","--pie-correct":"#00ff00","--pie-correct-secondary":"#003300","--pie-correct-tertiary":"#00cc00","--pie-correct-icon":"#00ff00","--pie-incorrect":"#ff3333","--pie-content-emphasis":"#ff6666","--pie-incorrect-secondary":"#330000","--pie-incorrect-icon":"#ff0000","--pie-missing":"#ff6666","--pie-missing-icon":"#6666ff","--pie-primary":"#ffff00","--pie-primary-light":"#ffff99","--pie-primary-dark":"#cccc00","--pie-faded-primary":"#666600","--pie-secondary":"#ff00ff","--pie-secondary-light":"#ff99ff","--pie-secondary-dark":"#cc00cc","--pie-tertiary":"#00ffff","--pie-tertiary-light":"#99ffff","--pie-background":"#000000","--pie-background-dark":"#1a1a1a","--pie-secondary-background":"#222222","--pie-dropdown-background":"#2a2a2a","--pie-surface":"#2a2a2a","--pie-border":"#ffffff","--pie-border-light":"#cccccc","--pie-border-dark":"#ffffff","--pie-border-gray":"#aaaaaa","--pie-black":"#ffffff","--pie-white":"#000000","--pie-focus-checked":"#ffff00","--pie-focus-checked-border":"#ffff00","--pie-focus-unchecked":"#666666","--pie-focus-unchecked-border":"#ffffff","--pie-blue-grey-100":"#2a2a2a","--pie-blue-grey-300":"#686868","--pie-blue-grey-600":"#999999","--pie-blue-grey-900":"#ffffff","--pie-font-scale":"1","--pie-button-bg":"#1f2937","--pie-button-border":"#535e6d","--pie-button-color":"#f9fafb","--pie-button-hover-bg":"#374151","--pie-button-hover-border":"#6b7280","--pie-button-hover-color":"#ffffff","--pie-button-active-bg":"#4b5563","--pie-button-focus-outline":"#93c5fd","--pie-fixed-hue-collapse":"0%"},ma={"--pie-annotation-underline":"#9c89ec","--pie-annotation-underline-dark":"#9c89ec","--pie-tool-annotation-toolbar-border":"#949494"},ga=dr({light:{...jo,...ba},dark:{...va,...ma}}),Lo=dr([{id:"black-on-white",name:"Black on White",description:"High contrast for readability",variables:{"--pie-text":"#000000","--pie-disabled":"#666666","--pie-disabled-secondary":"#888888","--pie-disabled-text":"#666666","--pie-correct":"#006600","--pie-correct-secondary":"#ccffcc","--pie-correct-tertiary":"#008800","--pie-correct-icon":"#004400","--pie-incorrect":"#cc0000","--pie-content-emphasis":"#cc0000","--pie-incorrect-secondary":"#ffcccc","--pie-incorrect-icon":"#990000","--pie-missing":"#cc0000","--pie-missing-icon":"#000099","--pie-primary":"#0000cc","--pie-primary-light":"#6666ff","--pie-primary-dark":"#000088","--pie-faded-primary":"#ccccff","--pie-secondary":"#cc0066","--pie-secondary-light":"#ff99cc","--pie-secondary-dark":"#990044","--pie-tertiary":"#006699","--pie-tertiary-light":"#99ccff","--pie-background":"#ffffff","--pie-background-dark":"#f5f5f5","--pie-secondary-background":"#eeeeee","--pie-dropdown-background":"#e0e0e0","--pie-surface":"#e0e0e0","--pie-border":"#000000","--pie-border-light":"#666666","--pie-border-dark":"#000000","--pie-border-gray":"#555555","--pie-black":"#000000","--pie-white":"#ffffff","--pie-focus-checked":"#0066ff","--pie-focus-checked-border":"#0000cc","--pie-focus-unchecked":"#cccccc","--pie-focus-unchecked-border":"#000000","--pie-blue-grey-100":"#f5f5f5","--pie-blue-grey-300":"#848484","--pie-blue-grey-600":"#666666","--pie-blue-grey-900":"#000000","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#4221d5","--pie-button-bg":"#ffffff","--pie-button-border":"#666666","--pie-button-color":"#000000","--pie-button-hover-bg":"#f5f5f5","--pie-button-hover-border":"#000000","--pie-button-hover-color":"#000000","--pie-button-active-bg":"#eeeeee","--pie-button-focus-outline":"#0000cc","--pie-fixed-hue-collapse":"100%"}},{id:"white-on-black",name:"White on Black",description:"Inverse high contrast",variables:{"--pie-text":"#ffffff","--pie-disabled":"#999999","--pie-disabled-secondary":"#777777","--pie-disabled-text":"#808080","--pie-correct":"#00ff00","--pie-correct-secondary":"#003300","--pie-correct-tertiary":"#00cc00","--pie-correct-icon":"#00ff00","--pie-incorrect":"#ff3333","--pie-content-emphasis":"#ff3333","--pie-incorrect-secondary":"#330000","--pie-incorrect-icon":"#ff0000","--pie-missing":"#ff6666","--pie-missing-icon":"#6666ff","--pie-primary":"#ffff00","--pie-primary-light":"#ffff99","--pie-primary-dark":"#cccc00","--pie-faded-primary":"#666600","--pie-secondary":"#ff00ff","--pie-secondary-light":"#ff99ff","--pie-secondary-dark":"#cc00cc","--pie-tertiary":"#00ffff","--pie-tertiary-light":"#99ffff","--pie-background":"#000000","--pie-background-dark":"#1a1a1a","--pie-secondary-background":"#222222","--pie-dropdown-background":"#2a2a2a","--pie-surface":"#2a2a2a","--pie-border":"#ffffff","--pie-border-light":"#cccccc","--pie-border-dark":"#ffffff","--pie-border-gray":"#aaaaaa","--pie-black":"#ffffff","--pie-white":"#000000","--pie-focus-checked":"#ffff00","--pie-focus-checked-border":"#ffff00","--pie-focus-unchecked":"#666666","--pie-focus-unchecked-border":"#ffffff","--pie-blue-grey-100":"#2a2a2a","--pie-blue-grey-300":"#686868","--pie-blue-grey-600":"#999999","--pie-blue-grey-900":"#ffffff","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#9c89ec","--pie-annotation-underline-dark":"#9c89ec","--pie-button-bg":"#000000","--pie-button-border":"#cccccc","--pie-button-color":"#ffffff","--pie-button-hover-bg":"#1a1a1a","--pie-button-hover-border":"#ffffff","--pie-button-hover-color":"#ffffff","--pie-button-active-bg":"#222222","--pie-button-focus-outline":"#ffff00","--pie-fixed-hue-collapse":"100%"}},{id:"rose-on-green",name:"Rose on Green",description:"Color blind friendly (protanopia/deuteranopia)",variables:{"--pie-text":"#3d0022","--pie-disabled":"#996677","--pie-disabled-secondary":"#bb8899","--pie-disabled-text":"#6f595e","--pie-correct":"#004400","--pie-correct-secondary":"#aaffaa","--pie-correct-tertiary":"#006600","--pie-correct-icon":"#003300","--pie-incorrect":"#aa0044","--pie-content-emphasis":"#aa0044","--pie-incorrect-secondary":"#ffccdd","--pie-incorrect-icon":"#880033","--pie-missing":"#aa0044","--pie-missing-icon":"#440044","--pie-primary":"#660044","--pie-primary-light":"#cc6699","--pie-primary-dark":"#440033","--pie-faded-primary":"#ddbbcc","--pie-secondary":"#880055","--pie-secondary-light":"#dd99bb","--pie-secondary-dark":"#550033","--pie-tertiary":"#770044","--pie-tertiary-light":"#dd99bb","--pie-background":"#ccffcc","--pie-background-dark":"#aaeedd","--pie-secondary-background":"#99ddbb","--pie-dropdown-background":"#88cc99","--pie-surface":"#88cc99","--pie-border":"#3d0022","--pie-border-light":"#663344","--pie-border-dark":"#220011","--pie-border-gray":"#664455","--pie-black":"#3d0022","--pie-white":"#ccffcc","--pie-focus-checked":"#880055","--pie-focus-checked-border":"#660044","--pie-focus-unchecked":"#aaddbb","--pie-focus-unchecked-border":"#3d0022","--pie-blue-grey-100":"#ccffdd","--pie-blue-grey-300":"#529475","--pie-blue-grey-600":"#668877","--pie-blue-grey-900":"#3d0022","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#4221d5","--pie-button-bg":"#ccffcc","--pie-button-border":"#663344","--pie-button-color":"#3d0022","--pie-button-hover-bg":"#aaeedd","--pie-button-hover-border":"#3d0022","--pie-button-hover-color":"#3d0022","--pie-button-active-bg":"#99ddbb","--pie-button-focus-outline":"#660044","--pie-fixed-hue-collapse":"100%"}},{id:"yellow-on-blue",name:"Yellow on Blue",description:"Strong contrast scheme",variables:{"--pie-text":"#ffff00","--pie-disabled":"#9999aa","--pie-disabled-secondary":"#aaaacc","--pie-disabled-text":"#999929","--pie-correct":"#00ff00","--pie-correct-secondary":"#003333","--pie-correct-tertiary":"#00cc00","--pie-correct-icon":"#00ff00","--pie-incorrect":"#ff6666","--pie-content-emphasis":"#ff6666","--pie-incorrect-secondary":"#331111","--pie-incorrect-icon":"#ff3333","--pie-missing":"#ff6666","--pie-missing-icon":"#99ff99","--pie-primary":"#ffff66","--pie-primary-light":"#ffffaa","--pie-primary-dark":"#cccc00","--pie-faded-primary":"#666633","--pie-secondary":"#ffaa00","--pie-secondary-light":"#ffcc66","--pie-secondary-dark":"#cc8800","--pie-tertiary":"#ffee00","--pie-tertiary-light":"#ffff99","--pie-background":"#000066","--pie-background-dark":"#000055","--pie-secondary-background":"#000044","--pie-dropdown-background":"#000033","--pie-surface":"#000033","--pie-border":"#ffff00","--pie-border-light":"#aaaa66","--pie-border-dark":"#cccc00","--pie-border-gray":"#8888aa","--pie-black":"#ffff00","--pie-white":"#000066","--pie-focus-checked":"#ffff00","--pie-focus-checked-border":"#cccc00","--pie-focus-unchecked":"#333366","--pie-focus-unchecked-border":"#ffff00","--pie-blue-grey-100":"#000055","--pie-blue-grey-300":"#6064ad","--pie-blue-grey-600":"#6666aa","--pie-blue-grey-900":"#ffff00","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#9c89ec","--pie-annotation-underline-dark":"#9c89ec","--pie-button-bg":"#000066","--pie-button-border":"#aaaa66","--pie-button-color":"#ffff00","--pie-button-hover-bg":"#000055","--pie-button-hover-border":"#ffff00","--pie-button-hover-color":"#ffff00","--pie-button-active-bg":"#000044","--pie-button-focus-outline":"#ffff66","--pie-fixed-hue-collapse":"100%"}},{id:"black-on-rose",name:"Black on Rose",description:"Warm tinted background",variables:{"--pie-text":"#000000","--pie-disabled":"#666666","--pie-disabled-secondary":"#888888","--pie-disabled-text":"#665258","--pie-correct":"#006600","--pie-correct-secondary":"#ccffcc","--pie-correct-tertiary":"#007000","--pie-correct-icon":"#004400","--pie-incorrect":"#990000","--pie-content-emphasis":"#990000","--pie-incorrect-secondary":"#ffdddd","--pie-incorrect-icon":"#770000","--pie-missing":"#990000","--pie-missing-icon":"#000099","--pie-primary":"#880044","--pie-primary-light":"#dd6699","--pie-primary-dark":"#550033","--pie-faded-primary":"#ffccdd","--pie-secondary":"#aa0055","--pie-secondary-light":"#ff99cc","--pie-secondary-dark":"#770033","--pie-tertiary":"#990044","--pie-tertiary-light":"#ffaacc","--pie-background":"#ffccdd","--pie-background-dark":"#ffb3cc","--pie-secondary-background":"#ff99bb","--pie-dropdown-background":"#ff88aa","--pie-surface":"#ff88aa","--pie-border":"#000000","--pie-border-light":"#555555","--pie-border-dark":"#000000","--pie-border-gray":"#444444","--pie-black":"#000000","--pie-white":"#ffccdd","--pie-focus-checked":"#880044","--pie-focus-checked-border":"#550033","--pie-focus-unchecked":"#ffddee","--pie-focus-unchecked-border":"#000000","--pie-blue-grey-100":"#ffeef5","--pie-blue-grey-300":"#a8637b","--pie-blue-grey-600":"#cc6688","--pie-blue-grey-900":"#000000","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#4221d5","--pie-button-bg":"#ffccdd","--pie-button-border":"#555555","--pie-button-color":"#000000","--pie-button-hover-bg":"#ffb3cc","--pie-button-hover-border":"#000000","--pie-button-hover-color":"#000000","--pie-button-active-bg":"#ff99bb","--pie-button-focus-outline":"#880044","--pie-fixed-hue-collapse":"100%"}},{id:"light-gray-on-dark-gray",name:"Light Gray on Dark Gray",description:"Reduced brightness for light sensitivity",variables:{"--pie-text":"#e0e0e0","--pie-disabled":"#999999","--pie-disabled-secondary":"#888888","--pie-disabled-text":"#a3a3a3","--pie-correct":"#00cc00","--pie-correct-secondary":"#003300","--pie-correct-tertiary":"#00bb00","--pie-correct-icon":"#00ff00","--pie-incorrect":"#ff6a6a","--pie-content-emphasis":"#ff6a6a","--pie-incorrect-secondary":"#331111","--pie-incorrect-icon":"#ff0000","--pie-missing":"#ff6a6a","--pie-missing-icon":"#6868ff","--pie-primary":"#aaaaaa","--pie-primary-light":"#cccccc","--pie-primary-dark":"#888888","--pie-faded-primary":"#555555","--pie-secondary":"#bbbbbb","--pie-secondary-light":"#dddddd","--pie-secondary-dark":"#999999","--pie-tertiary":"#cccccc","--pie-tertiary-light":"#eeeeee","--pie-background":"#333333","--pie-background-dark":"#2a2a2a","--pie-secondary-background":"#222222","--pie-dropdown-background":"#1a1a1a","--pie-surface":"#1a1a1a","--pie-border":"#e0e0e0","--pie-border-light":"#cccccc","--pie-border-dark":"#ffffff","--pie-border-gray":"#aaaaaa","--pie-black":"#e0e0e0","--pie-white":"#333333","--pie-focus-checked":"#cccccc","--pie-focus-checked-border":"#aaaaaa","--pie-focus-unchecked":"#555555","--pie-focus-unchecked-border":"#e0e0e0","--pie-blue-grey-100":"#2a2a2a","--pie-blue-grey-300":"#626262","--pie-blue-grey-600":"#999999","--pie-blue-grey-900":"#e0e0e0","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#9c89ec","--pie-annotation-underline-dark":"#9c89ec","--pie-button-bg":"#333333","--pie-button-border":"#cccccc","--pie-button-color":"#e0e0e0","--pie-button-hover-bg":"#2a2a2a","--pie-button-hover-border":"#ffffff","--pie-button-hover-color":"#e0e0e0","--pie-button-active-bg":"#222222","--pie-button-focus-outline":"#aaaaaa","--pie-fixed-hue-collapse":"100%"}},{id:"grey-on-light-grey",name:"Grey on Light Grey",description:"Low-glare neutral palette",variables:{"--pie-text":"#4a4a4a","--pie-disabled":"#757575","--pie-disabled-secondary":"#8f8f8f","--pie-disabled-text":"#626262","--pie-correct":"#145c1e","--pie-correct-secondary":"#dde9de","--pie-correct-tertiary":"#1a7526","--pie-correct-icon":"#0e3f15","--pie-incorrect":"#8c1c1c","--pie-content-emphasis":"#8c1c1c","--pie-incorrect-secondary":"#eddcdc","--pie-incorrect-icon":"#6f1616","--pie-missing":"#8c1c1c","--pie-missing-icon":"#33406b","--pie-primary":"#3d3d3d","--pie-primary-light":"#6f6f6f","--pie-primary-dark":"#2b2b2b","--pie-faded-primary":"#dcdcdc","--pie-secondary":"#4a4a4a","--pie-secondary-light":"#8f8f8f","--pie-secondary-dark":"#2b2b2b","--pie-tertiary":"#3d3d3d","--pie-tertiary-light":"#c4c4c4","--pie-background":"#ebebeb","--pie-background-dark":"#dcdcdc","--pie-secondary-background":"#d0d0d0","--pie-dropdown-background":"#c4c4c4","--pie-surface":"#c4c4c4","--pie-border":"#4a4a4a","--pie-border-light":"#7a7a7a","--pie-border-dark":"#2b2b2b","--pie-border-gray":"#6f6f6f","--pie-black":"#4a4a4a","--pie-white":"#ebebeb","--pie-focus-checked":"#6f6f6f","--pie-focus-checked-border":"#3d3d3d","--pie-focus-unchecked":"#e0e0e0","--pie-focus-unchecked-border":"#4a4a4a","--pie-blue-grey-100":"#f0f0f0","--pie-blue-grey-300":"#bbbbbb","--pie-blue-grey-600":"#6f6f6f","--pie-blue-grey-900":"#2b2b2b","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#4221d5","--pie-button-bg":"#ebebeb","--pie-button-border":"#7a7a7a","--pie-button-color":"#4a4a4a","--pie-button-hover-bg":"#dcdcdc","--pie-button-hover-border":"#4a4a4a","--pie-button-hover-color":"#4a4a4a","--pie-button-active-bg":"#d0d0d0","--pie-button-focus-outline":"#3d3d3d","--pie-fixed-hue-collapse":"100%"}},{id:"purple-on-light-green",name:"Purple on Light Green",description:"Color blind friendly, low-glare background",variables:{"--pie-text":"#8e2464","--pie-disabled":"#5f7266","--pie-disabled-secondary":"#7c8f83","--pie-disabled-text":"#94386f","--pie-correct":"#14591f","--pie-correct-secondary":"#d8ecdc","--pie-correct-tertiary":"#1a7328","--pie-correct-icon":"#0e3d16","--pie-incorrect":"#8c1c1c","--pie-content-emphasis":"#8c1c1c","--pie-incorrect-secondary":"#f0dcdc","--pie-incorrect-icon":"#6f1616","--pie-missing":"#8c1c1c","--pie-missing-icon":"#33406b","--pie-primary":"#6d1a4c","--pie-primary-light":"#b3608e","--pie-primary-dark":"#4f1237","--pie-faded-primary":"#b8dcc3","--pie-secondary":"#a02b72","--pie-secondary-light":"#c76d9d","--pie-secondary-dark":"#6d1a4c","--pie-tertiary":"#8e2464","--pie-tertiary-light":"#e2c6d5","--pie-background":"#cce8d4","--pie-background-dark":"#b8dcc3","--pie-secondary-background":"#a6d0b2","--pie-dropdown-background":"#94c4a1","--pie-surface":"#a6d0b2","--pie-border":"#8e2464","--pie-border-light":"#a85a86","--pie-border-dark":"#4f1237","--pie-border-gray":"#5f7266","--pie-black":"#8e2464","--pie-white":"#cce8d4","--pie-focus-checked":"#8e2464","--pie-focus-checked-border":"#6d1a4c","--pie-focus-unchecked":"#dcefe2","--pie-focus-unchecked-border":"#8e2464","--pie-blue-grey-100":"#e2f2e7","--pie-blue-grey-300":"#a3cdaf","--pie-blue-grey-600":"#5f7266","--pie-blue-grey-900":"#4f1237","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#4221d5","--pie-button-bg":"#cce8d4","--pie-button-border":"#a85a86","--pie-button-color":"#8e2464","--pie-button-hover-bg":"#b8dcc3","--pie-button-hover-border":"#8e2464","--pie-button-hover-color":"#8e2464","--pie-button-active-bg":"#a6d0b2","--pie-button-focus-outline":"#6d1a4c","--pie-fixed-hue-collapse":"100%"}},{id:"black-on-violet",name:"Black on Violet",description:"Cool tinted background",variables:{"--pie-text":"#000000","--pie-disabled":"#5c5c5c","--pie-disabled-secondary":"#7a7a7a","--pie-disabled-text":"#4a3b4e","--pie-correct":"#0d4f16","--pie-correct-secondary":"#e0cfe6","--pie-correct-tertiary":"#0f4d17","--pie-correct-icon":"#093a0f","--pie-incorrect":"#7d1414","--pie-content-emphasis":"#7d1414","--pie-incorrect-secondary":"#eccfd0","--pie-incorrect-icon":"#5c0f0f","--pie-missing":"#7d1414","--pie-missing-icon":"#2b2b6b","--pie-primary":"#4a1259","--pie-primary-light":"#8e4fa1","--pie-primary-dark":"#330d3f","--pie-faded-primary":"#c795d3","--pie-secondary":"#6d1a7d","--pie-secondary-light":"#a95cb8","--pie-secondary-dark":"#4a1259","--pie-tertiary":"#4a1259","--pie-tertiary-light":"#e2cbe8","--pie-background":"#d4a9de","--pie-background-dark":"#c795d3","--pie-secondary-background":"#b982c8","--pie-dropdown-background":"#ac70bd","--pie-surface":"#ac70bd","--pie-border":"#000000","--pie-border-light":"#4a4a4a","--pie-border-dark":"#000000","--pie-border-gray":"#4a4a4a","--pie-black":"#000000","--pie-white":"#d4a9de","--pie-focus-checked":"#4a1259","--pie-focus-checked-border":"#330d3f","--pie-focus-unchecked":"#e2cbe8","--pie-focus-unchecked-border":"#000000","--pie-blue-grey-100":"#ece0f0","--pie-blue-grey-300":"#94649f","--pie-blue-grey-600":"#6d5c73","--pie-blue-grey-900":"#000000","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#4221d5","--pie-button-bg":"#d4a9de","--pie-button-border":"#4a4a4a","--pie-button-color":"#000000","--pie-button-hover-bg":"#c795d3","--pie-button-hover-border":"#000000","--pie-button-hover-color":"#000000","--pie-button-active-bg":"#b982c8","--pie-button-focus-outline":"#4a1259","--pie-fixed-hue-collapse":"100%"}},{id:"yellow-on-navy",name:"Yellow on Navy",description:"Strong contrast on a softened dark blue",variables:{"--pie-text":"#ffff55","--pie-disabled":"#9aa4bd","--pie-disabled-secondary":"#7d88a3","--pie-disabled-text":"#d6dc60","--pie-correct":"#7fe08a","--pie-correct-secondary":"#1d3a24","--pie-correct-tertiary":"#a0dda9","--pie-correct-icon":"#a8f0b0","--pie-incorrect":"#ffbebe","--pie-content-emphasis":"#ffbebe","--pie-incorrect-secondary":"#3d1d1d","--pie-incorrect-icon":"#ffb3b3","--pie-missing":"#ffbebe","--pie-missing-icon":"#b3c2ff","--pie-primary":"#ffff99","--pie-primary-light":"#ffffc2","--pie-primary-dark":"#e0e04a","--pie-faded-primary":"#2b4576","--pie-secondary":"#ffd95c","--pie-secondary-light":"#ffeaa0","--pie-secondary-dark":"#e0bb3d","--pie-tertiary":"#ffff99","--pie-tertiary-light":"#ffffcc","--pie-background":"#33508a","--pie-background-dark":"#2b4576","--pie-secondary-background":"#243a63","--pie-dropdown-background":"#1d2f50","--pie-surface":"#1d2f50","--pie-border":"#ffff55","--pie-border-light":"#c2c266","--pie-border-dark":"#e0e04a","--pie-border-gray":"#9aa4bd","--pie-black":"#ffff55","--pie-white":"#33508a","--pie-focus-checked":"#ffff55","--pie-focus-checked-border":"#e0e04a","--pie-focus-unchecked":"#243a63","--pie-focus-unchecked-border":"#ffff55","--pie-blue-grey-100":"#2b4576","--pie-blue-grey-300":"#5070af","--pie-blue-grey-600":"#9aa4bd","--pie-blue-grey-900":"#ffff55","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"var(--pie-primary)","--pie-annotation-underline-dark":"var(--pie-primary)","--pie-button-bg":"#33508a","--pie-button-border":"#c2c266","--pie-button-color":"#ffff55","--pie-button-hover-bg":"#2b4576","--pie-button-hover-border":"#ffff55","--pie-button-hover-color":"#ffff55","--pie-button-active-bg":"#243a63","--pie-button-focus-outline":"#ffff99","--pie-fixed-hue-collapse":"100%"}}]),ya=new Map(Lo.map(e=>[e.id,e])),ka=dr({id:"default",name:"Default",description:"Standard PIE colors",kind:"default",preview:qi(jo)}),ol=Object.freeze(Object.entries(ha).filter(([,e])=>e==="required").map(([e])=>e).sort()),wa=dr([{foreground:"--pie-text",background:"--pie-background",minimum:4.5,role:"ordinary text"},{foreground:"--pie-text",background:"--pie-background-dark",minimum:4.5,role:"recessed surface text"},{foreground:"--pie-text",background:"--pie-surface",minimum:4.5,role:"raised surface text"},{foreground:"--pie-button-color",background:"--pie-surface",minimum:4.5,role:"raised surface control text"},{foreground:"--pie-button-focus-outline",background:"--pie-surface",minimum:3,role:"raised surface control focus indicator"},{foreground:"--pie-tertiary",background:"--pie-background",minimum:4.5,role:"link text"},{foreground:"--pie-correct",background:"--pie-background",minimum:4.5,role:"correct feedback text"},{foreground:"--pie-correct-tertiary",background:"--pie-background",minimum:4.5,role:"correct feedback text"},{foreground:"--pie-incorrect",background:"--pie-background",minimum:4.5,role:"incorrect feedback text"},{foreground:"--pie-missing",background:"--pie-background",minimum:4.5,role:"missing-response text"},{foreground:"--pie-correct-icon",background:"--pie-background",minimum:3,role:"correct feedback icon"},{foreground:"--pie-incorrect-icon",background:"--pie-background",minimum:3,role:"incorrect feedback icon"},{foreground:"--pie-text",background:"--pie-incorrect-secondary",minimum:4.5,role:"incorrect feedback surface text"},{foreground:"--pie-missing-icon",background:"--pie-background",minimum:3,role:"missing-response icon"},{foreground:"--pie-text",background:"--pie-blue-grey-300",minimum:4.5,role:"selectable hover text"},{foreground:"--pie-border",background:"--pie-background",minimum:3,role:"control boundary"},{foreground:"--pie-focus-checked-border",background:"--pie-background",minimum:3,role:"checked-control focus boundary"},{foreground:"--pie-focus-unchecked-border",background:"--pie-background",minimum:3,role:"unchecked-control focus boundary"},{foreground:"--pie-button-color",background:"--pie-button-bg",minimum:4.5,role:"button text"},{foreground:"--pie-button-color",background:"--pie-button-active-bg",minimum:4.5,role:"active button text"},{foreground:"--pie-button-border",background:"--pie-background",minimum:3,role:"button boundary"},{foreground:"--pie-button-hover-color",background:"--pie-button-hover-bg",minimum:4.5,role:"hovered button text"},{foreground:"--pie-button-hover-border",background:"--pie-background",minimum:3,role:"hovered button boundary"},{foreground:"--pie-button-focus-outline",background:"--pie-background",minimum:3,role:"button focus indicator"},{foreground:"--pie-button-focus-outline",background:"--pie-button-bg",minimum:3,role:"button focus indicator against its control"},{foreground:"--pie-button-focus-outline",background:"--pie-button-hover-bg",minimum:3,role:"hovered button focus indicator"},{foreground:"--pie-button-focus-outline",background:"--pie-button-active-bg",minimum:3,role:"active button focus indicator"},{foreground:"--pie-annotation-underline",background:"--pie-background",minimum:3,role:"annotation underline"},{foreground:"--pie-tool-annotation-toolbar-border",background:"--pie-background",minimum:3,role:"annotation toolbar boundary"}]);function di(e){const r=e.trim().toLowerCase();if(r==="black")return{r:0,g:0,b:0};if(r==="white")return{r:255,g:255,b:255};const t=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(r);if(t){const n=t[1].length===3?[...t[1]].map(c=>c.repeat(2)).join(""):t[1],a=Number.parseInt(n,16);return{r:a>>16&255,g:a>>8&255,b:a&255}}const i=/^rgba?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)(?:\s*,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(r);if(!i||i[4]!==void 0&&Number.parseFloat(i[4])!==1)return null;const o=i.slice(1,4).map(Number);return o.some(n=>n<0||n>255)?null:{r:o[0],g:o[1],b:o[2]}}function Ft(e){const r=e/255;return r<=.04045?r/12.92:((r+.055)/1.055)**2.4}function ro(e){return .2126*Ft(e.r)+.7152*Ft(e.g)+.0722*Ft(e.b)}function fi(e,r){const t=ro(e),i=ro(r);return(Math.max(t,i)+.05)/(Math.min(t,i)+.05)}function _t(e,r,t=new Set){if(t.has(r))return;t.add(r);const i=e[r]?.trim();if(!i)return;const o=/^var\(\s*(--pie-[a-z0-9-]+)\s*\)$/i.exec(i);return o?_t(e,o[1],t):i}function _a(e){const r=_t(e,"--pie-background"),t=r?di(r):null;return t?fi({r:255,g:255,b:255},t)>fi({r:0,g:0,b:0},t)?"dark":"light":null}function xa(e,r,t){const i=[];for(const o of wa){if(t&&!t.has(o.foreground)&&!t.has(o.background))continue;const n=_t(e,o.foreground),a=_t(e,o.background),c=n?di(n):null,l=a?di(a):null;if(!c||!l){i.push({code:"contrast-unmeasurable",severity:"warning",message:`Could not measure ${o.role} contrast for ${o.foreground} against ${o.background}.`,schemeId:r,token:o.foreground});continue}const u=fi(c,l);u<o.minimum&&i.push({code:"contrast-too-low",severity:"warning",message:`${o.role} contrast is ${u.toFixed(2)}:1; ${o.minimum}:1 is required.`,schemeId:r,token:o.foreground})}return Object.freeze(i)}function pi(e){return ga[e]}function No(){return Lo}function $a(e){return ya.get(e)}function Sa(){return ka}function qi(e){return dr({bg:e["--pie-background"]??e["--pie-secondary-background"]??"#ffffff",text:e["--pie-text"]??"#000000",primary:e["--pie-primary"]??"#3f51b5"})}function Do(e){return dr({id:e.id,name:e.name,description:e.description,kind:"built-in",preview:qi(e.variables)})}function Ea(e){return e==="light"||e==="dark"||e==="auto"}function Ta(e){return e==="self"||e==="document"}function xt(e){if(!e||typeof e!="object")return{};const r={};for(const[t,i]of Object.entries(e))if(t.startsWith("--pie-"))if(typeof i=="string"){const o=i.trim();o&&(r[t]=o)}else typeof i=="number"&&(r[t]=String(i));return r}var zo=new Map,to=new Set,io=new Set,nl=new Set(No().map(e=>e.id)),Ma=0,Ca=new Set(`aliceblue antiquewhite aqua aquamarine azure beige bisque black
|
|
1
|
+
import{t as He}from"./defineProperty-a20a667d.js";import{t as la}from"./attribute-coercion-b93b482c.js";import{a as ua,r as da}from"./tool-host-contract-fae1c415.js";import{t as fa}from"./focus-trap-44913bf3.js";import{i as pa}from"./provider-4c704118.js";import{t as ha}from"./ToolCoordinator-0a6c4088.js";var ba={"--pie-answer-eliminator-strike-color":"optional","--pie-background":"required","--pie-background-dark":"required","--pie-black":"required","--pie-blue-grey-100":"required","--pie-blue-grey-300":"required","--pie-blue-grey-600":"required","--pie-blue-grey-900":"required","--pie-border":"required","--pie-border-dark":"required","--pie-border-gray":"required","--pie-border-light":"required","--pie-button-active-bg":"required","--pie-button-background-color":"excluded","--pie-button-bg":"required","--pie-button-border":"required","--pie-button-color":"required","--pie-button-focus-outline":"required","--pie-button-hover-background-color":"excluded","--pie-button-hover-bg":"required","--pie-button-hover-border":"required","--pie-button-hover-color":"required","--pie-calculator-series-1":"optional","--pie-calculator-series-2":"optional","--pie-calculator-series-3":"optional","--pie-calculator-series-4":"optional","--pie-calculator-series-5":"optional","--pie-calculator-series-6":"optional","--pie-content-styles":"excluded","--pie-content-emphasis":"required","--pie-correct":"required","--pie-correct-icon":"required","--pie-correct-secondary":"required","--pie-correct-tertiary":"required","--pie-disabled":"required","--pie-disabled-secondary":"required","--pie-disabled-text":"required","--pie-dropdown-background":"required","--pie-surface":"required","--pie-faded-primary":"required","--pie-fixed-hue-collapse":"required","--pie-focus-checked":"required","--pie-focus-checked-border":"required","--pie-focus-outline":"excluded","--pie-focus-ring-color":"excluded","--pie-focus-unchecked":"required","--pie-focus-unchecked-border":"required","--pie-font-scale":"excluded","--pie-incorrect":"required","--pie-incorrect-icon":"required","--pie-incorrect-secondary":"required","--pie-missing":"required","--pie-missing-icon":"required","--pie-passage-header-background":"optional","--pie-primary":"required","--pie-primary-dark":"required","--pie-primary-light":"required","--pie-scrollbar-thumb":"excluded","--pie-scrollbar-thumb-hover":"excluded","--pie-scrollbar-track":"excluded","--pie-secondary":"required","--pie-secondary-background":"required","--pie-secondary-dark":"required","--pie-secondary-light":"required","--pie-section-player-card-header-background":"optional","--pie-section-player-card-header-background-dark":"optional","--pie-section-player-card-header-radius":"excluded","--pie-section-player-card-radius":"excluded","--pie-section-player-item-media-aspect-ratio":"excluded","--pie-section-player-item-media-min-height":"excluded","--pie-section-player-item-media-max-height":"excluded","--pie-section-player-layout-max-width":"excluded","--pie-section-player-tab-active-background":"optional","--pie-section-player-tab-active-color":"optional","--pie-section-player-tab-background":"optional","--pie-section-player-tab-color":"optional","--pie-section-player-tab-gap":"excluded","--pie-section-player-tab-padding-block":"excluded","--pie-section-player-tab-track-padding":"excluded","--pie-section-player-tab-track-radius":"excluded","--pie-section-player-tab-zoom-comp":"excluded","--pie-tertiary":"required","--pie-tertiary-light":"required","--pie-text":"required","--pie-annotation-underline":"required","--pie-annotation-underline-dark":"required","--pie-tool-annotation-toolbar-border":"required","--pie-tool-line-reader-control-color":"excluded","--pie-tool-line-reader-frame-color":"excluded","--pie-tool-line-reader-frame-opacity":"excluded","--pie-tool-trigger-active-background":"optional","--pie-tool-trigger-active-border-color":"optional","--pie-tool-trigger-active-color":"optional","--pie-toolbar-tools-row-height":"excluded","--pie-tts-controls-row-height":"excluded","--pie-tts-line-highlight":"excluded","--pie-tts-sentence-highlight":"excluded","--pie-tts-word-highlight":"excluded","--pie-tts-word-shadow":"excluded","--pie-tts-word-underline":"excluded","--pie-white":"required"};function pr(e){if(e&&typeof e=="object"&&!Object.isFrozen(e)){for(const r of Object.values(e))pr(r);Object.freeze(e)}return e}var Do={"--pie-text":"black","--pie-disabled":"grey","--pie-disabled-secondary":"#ababab","--pie-disabled-text":"#666666","--pie-correct":"#208537","--pie-correct-secondary":"#e8f5e9","--pie-correct-tertiary":"#087d38","--pie-correct-icon":"#087d38","--pie-incorrect":"#a65f00","--pie-content-emphasis":"#b00000","--pie-incorrect-secondary":"#ffebee","--pie-incorrect-icon":"#bf0d00","--pie-missing":"#d32f2f","--pie-missing-icon":"#6a78a1","--pie-primary":"#3f51b5","--pie-primary-light":"#9fa8da","--pie-primary-dark":"#283593","--pie-faded-primary":"#dcdafb","--pie-secondary":"#f50057","--pie-secondary-light":"#f48fb1","--pie-secondary-dark":"#880e4f","--pie-tertiary":"#146eb3","--pie-tertiary-light":"#d0e2f0","--pie-background":"#ffffff","--pie-background-dark":"#ecedf1","--pie-secondary-background":"rgba(241, 241, 241, 1)","--pie-dropdown-background":"#e0e1e6","--pie-surface":"#ecedf1","--pie-border":"#8f8f8f","--pie-border-light":"#d1d1d1","--pie-border-dark":"#646464","--pie-border-gray":"#7e8494","--pie-black":"#000000","--pie-white":"#ffffff","--pie-focus-checked":"#bbdefb","--pie-focus-checked-border":"#1565c0","--pie-focus-unchecked":"#e0e0e0","--pie-focus-unchecked-border":"#757575","--pie-blue-grey-100":"#f3f5f7","--pie-blue-grey-300":"#81848f","--pie-blue-grey-600":"#7e8494","--pie-blue-grey-900":"#152452","--pie-font-scale":"1","--pie-button-bg":"#ffffff","--pie-button-border":"#8f8f8f","--pie-button-color":"#374151","--pie-button-hover-bg":"#f9fafb","--pie-button-hover-border":"#8b919c","--pie-button-hover-color":"#111827","--pie-button-active-bg":"#f3f4f6","--pie-button-focus-outline":"#3b82f6","--pie-fixed-hue-collapse":"0%"},va={"--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#9c89ec","--pie-tool-annotation-toolbar-border":"#5c5c5c"},ma={"--pie-text":"#ffffff","--pie-disabled":"#999999","--pie-disabled-secondary":"#777777","--pie-disabled-text":"#808080","--pie-correct":"#00ff00","--pie-correct-secondary":"#003300","--pie-correct-tertiary":"#00cc00","--pie-correct-icon":"#00ff00","--pie-incorrect":"#ff3333","--pie-content-emphasis":"#ff6666","--pie-incorrect-secondary":"#330000","--pie-incorrect-icon":"#ff0000","--pie-missing":"#ff6666","--pie-missing-icon":"#6666ff","--pie-primary":"#ffff00","--pie-primary-light":"#ffff99","--pie-primary-dark":"#cccc00","--pie-faded-primary":"#666600","--pie-secondary":"#ff00ff","--pie-secondary-light":"#ff99ff","--pie-secondary-dark":"#cc00cc","--pie-tertiary":"#00ffff","--pie-tertiary-light":"#99ffff","--pie-background":"#000000","--pie-background-dark":"#1a1a1a","--pie-secondary-background":"#222222","--pie-dropdown-background":"#2a2a2a","--pie-surface":"#2a2a2a","--pie-border":"#ffffff","--pie-border-light":"#cccccc","--pie-border-dark":"#ffffff","--pie-border-gray":"#aaaaaa","--pie-black":"#ffffff","--pie-white":"#000000","--pie-focus-checked":"#ffff00","--pie-focus-checked-border":"#ffff00","--pie-focus-unchecked":"#666666","--pie-focus-unchecked-border":"#ffffff","--pie-blue-grey-100":"#2a2a2a","--pie-blue-grey-300":"#686868","--pie-blue-grey-600":"#999999","--pie-blue-grey-900":"#ffffff","--pie-font-scale":"1","--pie-button-bg":"#1f2937","--pie-button-border":"#535e6d","--pie-button-color":"#f9fafb","--pie-button-hover-bg":"#374151","--pie-button-hover-border":"#6b7280","--pie-button-hover-color":"#ffffff","--pie-button-active-bg":"#4b5563","--pie-button-focus-outline":"#93c5fd","--pie-fixed-hue-collapse":"0%"},ga={"--pie-annotation-underline":"#9c89ec","--pie-annotation-underline-dark":"#9c89ec","--pie-tool-annotation-toolbar-border":"#949494"},ya=pr({light:{...Do,...va},dark:{...ma,...ga}}),Lo=pr([{id:"black-on-white",name:"Black on White",description:"High contrast for readability",variables:{"--pie-text":"#000000","--pie-disabled":"#666666","--pie-disabled-secondary":"#888888","--pie-disabled-text":"#666666","--pie-correct":"#006600","--pie-correct-secondary":"#ccffcc","--pie-correct-tertiary":"#008800","--pie-correct-icon":"#004400","--pie-incorrect":"#cc0000","--pie-content-emphasis":"#cc0000","--pie-incorrect-secondary":"#ffcccc","--pie-incorrect-icon":"#990000","--pie-missing":"#cc0000","--pie-missing-icon":"#000099","--pie-primary":"#0000cc","--pie-primary-light":"#6666ff","--pie-primary-dark":"#000088","--pie-faded-primary":"#ccccff","--pie-secondary":"#cc0066","--pie-secondary-light":"#ff99cc","--pie-secondary-dark":"#990044","--pie-tertiary":"#006699","--pie-tertiary-light":"#99ccff","--pie-background":"#ffffff","--pie-background-dark":"#f5f5f5","--pie-secondary-background":"#eeeeee","--pie-dropdown-background":"#e0e0e0","--pie-surface":"#e0e0e0","--pie-border":"#000000","--pie-border-light":"#666666","--pie-border-dark":"#000000","--pie-border-gray":"#555555","--pie-black":"#000000","--pie-white":"#ffffff","--pie-focus-checked":"#0066ff","--pie-focus-checked-border":"#0000cc","--pie-focus-unchecked":"#cccccc","--pie-focus-unchecked-border":"#000000","--pie-blue-grey-100":"#f5f5f5","--pie-blue-grey-300":"#848484","--pie-blue-grey-600":"#666666","--pie-blue-grey-900":"#000000","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#4221d5","--pie-button-bg":"#ffffff","--pie-button-border":"#666666","--pie-button-color":"#000000","--pie-button-hover-bg":"#f5f5f5","--pie-button-hover-border":"#000000","--pie-button-hover-color":"#000000","--pie-button-active-bg":"#eeeeee","--pie-button-focus-outline":"#0000cc","--pie-fixed-hue-collapse":"100%"}},{id:"white-on-black",name:"White on Black",description:"Inverse high contrast",variables:{"--pie-text":"#ffffff","--pie-disabled":"#999999","--pie-disabled-secondary":"#777777","--pie-disabled-text":"#808080","--pie-correct":"#00ff00","--pie-correct-secondary":"#003300","--pie-correct-tertiary":"#00cc00","--pie-correct-icon":"#00ff00","--pie-incorrect":"#ff3333","--pie-content-emphasis":"#ff3333","--pie-incorrect-secondary":"#330000","--pie-incorrect-icon":"#ff0000","--pie-missing":"#ff6666","--pie-missing-icon":"#6666ff","--pie-primary":"#ffff00","--pie-primary-light":"#ffff99","--pie-primary-dark":"#cccc00","--pie-faded-primary":"#666600","--pie-secondary":"#ff00ff","--pie-secondary-light":"#ff99ff","--pie-secondary-dark":"#cc00cc","--pie-tertiary":"#00ffff","--pie-tertiary-light":"#99ffff","--pie-background":"#000000","--pie-background-dark":"#1a1a1a","--pie-secondary-background":"#222222","--pie-dropdown-background":"#2a2a2a","--pie-surface":"#2a2a2a","--pie-border":"#ffffff","--pie-border-light":"#cccccc","--pie-border-dark":"#ffffff","--pie-border-gray":"#aaaaaa","--pie-black":"#ffffff","--pie-white":"#000000","--pie-focus-checked":"#ffff00","--pie-focus-checked-border":"#ffff00","--pie-focus-unchecked":"#666666","--pie-focus-unchecked-border":"#ffffff","--pie-blue-grey-100":"#2a2a2a","--pie-blue-grey-300":"#686868","--pie-blue-grey-600":"#999999","--pie-blue-grey-900":"#ffffff","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#9c89ec","--pie-annotation-underline-dark":"#9c89ec","--pie-button-bg":"#000000","--pie-button-border":"#cccccc","--pie-button-color":"#ffffff","--pie-button-hover-bg":"#1a1a1a","--pie-button-hover-border":"#ffffff","--pie-button-hover-color":"#ffffff","--pie-button-active-bg":"#222222","--pie-button-focus-outline":"#ffff00","--pie-fixed-hue-collapse":"100%"}},{id:"rose-on-green",name:"Rose on Green",description:"Color blind friendly (protanopia/deuteranopia)",variables:{"--pie-text":"#3d0022","--pie-disabled":"#996677","--pie-disabled-secondary":"#bb8899","--pie-disabled-text":"#6f595e","--pie-correct":"#004400","--pie-correct-secondary":"#aaffaa","--pie-correct-tertiary":"#006600","--pie-correct-icon":"#003300","--pie-incorrect":"#aa0044","--pie-content-emphasis":"#aa0044","--pie-incorrect-secondary":"#ffccdd","--pie-incorrect-icon":"#880033","--pie-missing":"#aa0044","--pie-missing-icon":"#440044","--pie-primary":"#660044","--pie-primary-light":"#cc6699","--pie-primary-dark":"#440033","--pie-faded-primary":"#ddbbcc","--pie-secondary":"#880055","--pie-secondary-light":"#dd99bb","--pie-secondary-dark":"#550033","--pie-tertiary":"#770044","--pie-tertiary-light":"#dd99bb","--pie-background":"#ccffcc","--pie-background-dark":"#aaeedd","--pie-secondary-background":"#99ddbb","--pie-dropdown-background":"#88cc99","--pie-surface":"#88cc99","--pie-border":"#3d0022","--pie-border-light":"#663344","--pie-border-dark":"#220011","--pie-border-gray":"#664455","--pie-black":"#3d0022","--pie-white":"#ccffcc","--pie-focus-checked":"#880055","--pie-focus-checked-border":"#660044","--pie-focus-unchecked":"#aaddbb","--pie-focus-unchecked-border":"#3d0022","--pie-blue-grey-100":"#ccffdd","--pie-blue-grey-300":"#529475","--pie-blue-grey-600":"#668877","--pie-blue-grey-900":"#3d0022","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#4221d5","--pie-button-bg":"#ccffcc","--pie-button-border":"#663344","--pie-button-color":"#3d0022","--pie-button-hover-bg":"#aaeedd","--pie-button-hover-border":"#3d0022","--pie-button-hover-color":"#3d0022","--pie-button-active-bg":"#99ddbb","--pie-button-focus-outline":"#660044","--pie-fixed-hue-collapse":"100%"}},{id:"yellow-on-blue",name:"Yellow on Blue",description:"Strong contrast scheme",variables:{"--pie-text":"#ffff00","--pie-disabled":"#9999aa","--pie-disabled-secondary":"#aaaacc","--pie-disabled-text":"#999929","--pie-correct":"#00ff00","--pie-correct-secondary":"#003333","--pie-correct-tertiary":"#00cc00","--pie-correct-icon":"#00ff00","--pie-incorrect":"#ff6666","--pie-content-emphasis":"#ff6666","--pie-incorrect-secondary":"#331111","--pie-incorrect-icon":"#ff3333","--pie-missing":"#ff6666","--pie-missing-icon":"#99ff99","--pie-primary":"#ffff66","--pie-primary-light":"#ffffaa","--pie-primary-dark":"#cccc00","--pie-faded-primary":"#666633","--pie-secondary":"#ffaa00","--pie-secondary-light":"#ffcc66","--pie-secondary-dark":"#cc8800","--pie-tertiary":"#ffee00","--pie-tertiary-light":"#ffff99","--pie-background":"#000066","--pie-background-dark":"#000055","--pie-secondary-background":"#000044","--pie-dropdown-background":"#000033","--pie-surface":"#000033","--pie-border":"#ffff00","--pie-border-light":"#aaaa66","--pie-border-dark":"#cccc00","--pie-border-gray":"#8888aa","--pie-black":"#ffff00","--pie-white":"#000066","--pie-focus-checked":"#ffff00","--pie-focus-checked-border":"#cccc00","--pie-focus-unchecked":"#333366","--pie-focus-unchecked-border":"#ffff00","--pie-blue-grey-100":"#000055","--pie-blue-grey-300":"#6064ad","--pie-blue-grey-600":"#6666aa","--pie-blue-grey-900":"#ffff00","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#9c89ec","--pie-annotation-underline-dark":"#9c89ec","--pie-button-bg":"#000066","--pie-button-border":"#aaaa66","--pie-button-color":"#ffff00","--pie-button-hover-bg":"#000055","--pie-button-hover-border":"#ffff00","--pie-button-hover-color":"#ffff00","--pie-button-active-bg":"#000044","--pie-button-focus-outline":"#ffff66","--pie-fixed-hue-collapse":"100%"}},{id:"black-on-rose",name:"Black on Rose",description:"Warm tinted background",variables:{"--pie-text":"#000000","--pie-disabled":"#666666","--pie-disabled-secondary":"#888888","--pie-disabled-text":"#665258","--pie-correct":"#006600","--pie-correct-secondary":"#ccffcc","--pie-correct-tertiary":"#007000","--pie-correct-icon":"#004400","--pie-incorrect":"#990000","--pie-content-emphasis":"#990000","--pie-incorrect-secondary":"#ffdddd","--pie-incorrect-icon":"#770000","--pie-missing":"#990000","--pie-missing-icon":"#000099","--pie-primary":"#880044","--pie-primary-light":"#dd6699","--pie-primary-dark":"#550033","--pie-faded-primary":"#ffccdd","--pie-secondary":"#aa0055","--pie-secondary-light":"#ff99cc","--pie-secondary-dark":"#770033","--pie-tertiary":"#990044","--pie-tertiary-light":"#ffaacc","--pie-background":"#ffccdd","--pie-background-dark":"#ffb3cc","--pie-secondary-background":"#ff99bb","--pie-dropdown-background":"#ff88aa","--pie-surface":"#ff88aa","--pie-border":"#000000","--pie-border-light":"#555555","--pie-border-dark":"#000000","--pie-border-gray":"#444444","--pie-black":"#000000","--pie-white":"#ffccdd","--pie-focus-checked":"#880044","--pie-focus-checked-border":"#550033","--pie-focus-unchecked":"#ffddee","--pie-focus-unchecked-border":"#000000","--pie-blue-grey-100":"#ffeef5","--pie-blue-grey-300":"#a8637b","--pie-blue-grey-600":"#cc6688","--pie-blue-grey-900":"#000000","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#4221d5","--pie-button-bg":"#ffccdd","--pie-button-border":"#555555","--pie-button-color":"#000000","--pie-button-hover-bg":"#ffb3cc","--pie-button-hover-border":"#000000","--pie-button-hover-color":"#000000","--pie-button-active-bg":"#ff99bb","--pie-button-focus-outline":"#880044","--pie-fixed-hue-collapse":"100%"}},{id:"light-gray-on-dark-gray",name:"Light Gray on Dark Gray",description:"Reduced brightness for light sensitivity",variables:{"--pie-text":"#e0e0e0","--pie-disabled":"#999999","--pie-disabled-secondary":"#888888","--pie-disabled-text":"#a3a3a3","--pie-correct":"#00cc00","--pie-correct-secondary":"#003300","--pie-correct-tertiary":"#00bb00","--pie-correct-icon":"#00ff00","--pie-incorrect":"#ff6a6a","--pie-content-emphasis":"#ff6a6a","--pie-incorrect-secondary":"#331111","--pie-incorrect-icon":"#ff0000","--pie-missing":"#ff6a6a","--pie-missing-icon":"#6868ff","--pie-primary":"#aaaaaa","--pie-primary-light":"#cccccc","--pie-primary-dark":"#888888","--pie-faded-primary":"#555555","--pie-secondary":"#bbbbbb","--pie-secondary-light":"#dddddd","--pie-secondary-dark":"#999999","--pie-tertiary":"#cccccc","--pie-tertiary-light":"#eeeeee","--pie-background":"#333333","--pie-background-dark":"#2a2a2a","--pie-secondary-background":"#222222","--pie-dropdown-background":"#1a1a1a","--pie-surface":"#1a1a1a","--pie-border":"#e0e0e0","--pie-border-light":"#cccccc","--pie-border-dark":"#ffffff","--pie-border-gray":"#aaaaaa","--pie-black":"#e0e0e0","--pie-white":"#333333","--pie-focus-checked":"#cccccc","--pie-focus-checked-border":"#aaaaaa","--pie-focus-unchecked":"#555555","--pie-focus-unchecked-border":"#e0e0e0","--pie-blue-grey-100":"#2a2a2a","--pie-blue-grey-300":"#626262","--pie-blue-grey-600":"#999999","--pie-blue-grey-900":"#e0e0e0","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#9c89ec","--pie-annotation-underline-dark":"#9c89ec","--pie-button-bg":"#333333","--pie-button-border":"#cccccc","--pie-button-color":"#e0e0e0","--pie-button-hover-bg":"#2a2a2a","--pie-button-hover-border":"#ffffff","--pie-button-hover-color":"#e0e0e0","--pie-button-active-bg":"#222222","--pie-button-focus-outline":"#aaaaaa","--pie-fixed-hue-collapse":"100%"}},{id:"grey-on-light-grey",name:"Grey on Light Grey",description:"Low-glare neutral palette",variables:{"--pie-text":"#4a4a4a","--pie-disabled":"#757575","--pie-disabled-secondary":"#8f8f8f","--pie-disabled-text":"#626262","--pie-correct":"#145c1e","--pie-correct-secondary":"#dde9de","--pie-correct-tertiary":"#1a7526","--pie-correct-icon":"#0e3f15","--pie-incorrect":"#8c1c1c","--pie-content-emphasis":"#8c1c1c","--pie-incorrect-secondary":"#eddcdc","--pie-incorrect-icon":"#6f1616","--pie-missing":"#8c1c1c","--pie-missing-icon":"#33406b","--pie-primary":"#3d3d3d","--pie-primary-light":"#6f6f6f","--pie-primary-dark":"#2b2b2b","--pie-faded-primary":"#dcdcdc","--pie-secondary":"#4a4a4a","--pie-secondary-light":"#8f8f8f","--pie-secondary-dark":"#2b2b2b","--pie-tertiary":"#3d3d3d","--pie-tertiary-light":"#c4c4c4","--pie-background":"#ebebeb","--pie-background-dark":"#dcdcdc","--pie-secondary-background":"#d0d0d0","--pie-dropdown-background":"#c4c4c4","--pie-surface":"#c4c4c4","--pie-border":"#4a4a4a","--pie-border-light":"#7a7a7a","--pie-border-dark":"#2b2b2b","--pie-border-gray":"#6f6f6f","--pie-black":"#4a4a4a","--pie-white":"#ebebeb","--pie-focus-checked":"#6f6f6f","--pie-focus-checked-border":"#3d3d3d","--pie-focus-unchecked":"#e0e0e0","--pie-focus-unchecked-border":"#4a4a4a","--pie-blue-grey-100":"#f0f0f0","--pie-blue-grey-300":"#bbbbbb","--pie-blue-grey-600":"#6f6f6f","--pie-blue-grey-900":"#2b2b2b","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#4221d5","--pie-button-bg":"#ebebeb","--pie-button-border":"#7a7a7a","--pie-button-color":"#4a4a4a","--pie-button-hover-bg":"#dcdcdc","--pie-button-hover-border":"#4a4a4a","--pie-button-hover-color":"#4a4a4a","--pie-button-active-bg":"#d0d0d0","--pie-button-focus-outline":"#3d3d3d","--pie-fixed-hue-collapse":"100%"}},{id:"purple-on-light-green",name:"Purple on Light Green",description:"Color blind friendly, low-glare background",variables:{"--pie-text":"#8e2464","--pie-disabled":"#5f7266","--pie-disabled-secondary":"#7c8f83","--pie-disabled-text":"#94386f","--pie-correct":"#14591f","--pie-correct-secondary":"#d8ecdc","--pie-correct-tertiary":"#1a7328","--pie-correct-icon":"#0e3d16","--pie-incorrect":"#8c1c1c","--pie-content-emphasis":"#8c1c1c","--pie-incorrect-secondary":"#f0dcdc","--pie-incorrect-icon":"#6f1616","--pie-missing":"#8c1c1c","--pie-missing-icon":"#33406b","--pie-primary":"#6d1a4c","--pie-primary-light":"#b3608e","--pie-primary-dark":"#4f1237","--pie-faded-primary":"#b8dcc3","--pie-secondary":"#a02b72","--pie-secondary-light":"#c76d9d","--pie-secondary-dark":"#6d1a4c","--pie-tertiary":"#8e2464","--pie-tertiary-light":"#e2c6d5","--pie-background":"#cce8d4","--pie-background-dark":"#b8dcc3","--pie-secondary-background":"#a6d0b2","--pie-dropdown-background":"#94c4a1","--pie-surface":"#a6d0b2","--pie-border":"#8e2464","--pie-border-light":"#a85a86","--pie-border-dark":"#4f1237","--pie-border-gray":"#5f7266","--pie-black":"#8e2464","--pie-white":"#cce8d4","--pie-focus-checked":"#8e2464","--pie-focus-checked-border":"#6d1a4c","--pie-focus-unchecked":"#dcefe2","--pie-focus-unchecked-border":"#8e2464","--pie-blue-grey-100":"#e2f2e7","--pie-blue-grey-300":"#a3cdaf","--pie-blue-grey-600":"#5f7266","--pie-blue-grey-900":"#4f1237","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#4221d5","--pie-button-bg":"#cce8d4","--pie-button-border":"#a85a86","--pie-button-color":"#8e2464","--pie-button-hover-bg":"#b8dcc3","--pie-button-hover-border":"#8e2464","--pie-button-hover-color":"#8e2464","--pie-button-active-bg":"#a6d0b2","--pie-button-focus-outline":"#6d1a4c","--pie-fixed-hue-collapse":"100%"}},{id:"black-on-violet",name:"Black on Violet",description:"Cool tinted background",variables:{"--pie-text":"#000000","--pie-disabled":"#5c5c5c","--pie-disabled-secondary":"#7a7a7a","--pie-disabled-text":"#4a3b4e","--pie-correct":"#0d4f16","--pie-correct-secondary":"#e0cfe6","--pie-correct-tertiary":"#0f4d17","--pie-correct-icon":"#093a0f","--pie-incorrect":"#7d1414","--pie-content-emphasis":"#7d1414","--pie-incorrect-secondary":"#eccfd0","--pie-incorrect-icon":"#5c0f0f","--pie-missing":"#7d1414","--pie-missing-icon":"#2b2b6b","--pie-primary":"#4a1259","--pie-primary-light":"#8e4fa1","--pie-primary-dark":"#330d3f","--pie-faded-primary":"#c795d3","--pie-secondary":"#6d1a7d","--pie-secondary-light":"#a95cb8","--pie-secondary-dark":"#4a1259","--pie-tertiary":"#4a1259","--pie-tertiary-light":"#e2cbe8","--pie-background":"#d4a9de","--pie-background-dark":"#c795d3","--pie-secondary-background":"#b982c8","--pie-dropdown-background":"#ac70bd","--pie-surface":"#ac70bd","--pie-border":"#000000","--pie-border-light":"#4a4a4a","--pie-border-dark":"#000000","--pie-border-gray":"#4a4a4a","--pie-black":"#000000","--pie-white":"#d4a9de","--pie-focus-checked":"#4a1259","--pie-focus-checked-border":"#330d3f","--pie-focus-unchecked":"#e2cbe8","--pie-focus-unchecked-border":"#000000","--pie-blue-grey-100":"#ece0f0","--pie-blue-grey-300":"#94649f","--pie-blue-grey-600":"#6d5c73","--pie-blue-grey-900":"#000000","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"#4221d5","--pie-annotation-underline-dark":"#4221d5","--pie-button-bg":"#d4a9de","--pie-button-border":"#4a4a4a","--pie-button-color":"#000000","--pie-button-hover-bg":"#c795d3","--pie-button-hover-border":"#000000","--pie-button-hover-color":"#000000","--pie-button-active-bg":"#b982c8","--pie-button-focus-outline":"#4a1259","--pie-fixed-hue-collapse":"100%"}},{id:"yellow-on-navy",name:"Yellow on Navy",description:"Strong contrast on a softened dark blue",variables:{"--pie-text":"#ffff55","--pie-disabled":"#9aa4bd","--pie-disabled-secondary":"#7d88a3","--pie-disabled-text":"#d6dc60","--pie-correct":"#7fe08a","--pie-correct-secondary":"#1d3a24","--pie-correct-tertiary":"#a0dda9","--pie-correct-icon":"#a8f0b0","--pie-incorrect":"#ffbebe","--pie-content-emphasis":"#ffbebe","--pie-incorrect-secondary":"#3d1d1d","--pie-incorrect-icon":"#ffb3b3","--pie-missing":"#ffbebe","--pie-missing-icon":"#b3c2ff","--pie-primary":"#ffff99","--pie-primary-light":"#ffffc2","--pie-primary-dark":"#e0e04a","--pie-faded-primary":"#2b4576","--pie-secondary":"#ffd95c","--pie-secondary-light":"#ffeaa0","--pie-secondary-dark":"#e0bb3d","--pie-tertiary":"#ffff99","--pie-tertiary-light":"#ffffcc","--pie-background":"#33508a","--pie-background-dark":"#2b4576","--pie-secondary-background":"#243a63","--pie-dropdown-background":"#1d2f50","--pie-surface":"#1d2f50","--pie-border":"#ffff55","--pie-border-light":"#c2c266","--pie-border-dark":"#e0e04a","--pie-border-gray":"#9aa4bd","--pie-black":"#ffff55","--pie-white":"#33508a","--pie-focus-checked":"#ffff55","--pie-focus-checked-border":"#e0e04a","--pie-focus-unchecked":"#243a63","--pie-focus-unchecked-border":"#ffff55","--pie-blue-grey-100":"#2b4576","--pie-blue-grey-300":"#5070af","--pie-blue-grey-600":"#9aa4bd","--pie-blue-grey-900":"#ffff55","--pie-tool-annotation-toolbar-border":"var(--pie-border)","--pie-annotation-underline":"var(--pie-primary)","--pie-annotation-underline-dark":"var(--pie-primary)","--pie-button-bg":"#33508a","--pie-button-border":"#c2c266","--pie-button-color":"#ffff55","--pie-button-hover-bg":"#2b4576","--pie-button-hover-border":"#ffff55","--pie-button-hover-color":"#ffff55","--pie-button-active-bg":"#243a63","--pie-button-focus-outline":"#ffff99","--pie-fixed-hue-collapse":"100%"}}]),ka=new Map(Lo.map(e=>[e.id,e])),wa=pr({id:"default",name:"Default",description:"Standard PIE colors",kind:"default",preview:qi(Do)}),ol=Object.freeze(Object.entries(ba).filter(([,e])=>e==="required").map(([e])=>e).sort()),_a=pr([{foreground:"--pie-text",background:"--pie-background",minimum:4.5,role:"ordinary text"},{foreground:"--pie-text",background:"--pie-background-dark",minimum:4.5,role:"recessed surface text"},{foreground:"--pie-text",background:"--pie-surface",minimum:4.5,role:"raised surface text"},{foreground:"--pie-button-color",background:"--pie-surface",minimum:4.5,role:"raised surface control text"},{foreground:"--pie-button-focus-outline",background:"--pie-surface",minimum:3,role:"raised surface control focus indicator"},{foreground:"--pie-tertiary",background:"--pie-background",minimum:4.5,role:"link text"},{foreground:"--pie-correct",background:"--pie-background",minimum:4.5,role:"correct feedback text"},{foreground:"--pie-correct-tertiary",background:"--pie-background",minimum:4.5,role:"correct feedback text"},{foreground:"--pie-incorrect",background:"--pie-background",minimum:4.5,role:"incorrect feedback text"},{foreground:"--pie-missing",background:"--pie-background",minimum:4.5,role:"missing-response text"},{foreground:"--pie-correct-icon",background:"--pie-background",minimum:3,role:"correct feedback icon"},{foreground:"--pie-incorrect-icon",background:"--pie-background",minimum:3,role:"incorrect feedback icon"},{foreground:"--pie-text",background:"--pie-incorrect-secondary",minimum:4.5,role:"incorrect feedback surface text"},{foreground:"--pie-missing-icon",background:"--pie-background",minimum:3,role:"missing-response icon"},{foreground:"--pie-text",background:"--pie-blue-grey-300",minimum:4.5,role:"selectable hover text"},{foreground:"--pie-border",background:"--pie-background",minimum:3,role:"control boundary"},{foreground:"--pie-focus-checked-border",background:"--pie-background",minimum:3,role:"checked-control focus boundary"},{foreground:"--pie-focus-unchecked-border",background:"--pie-background",minimum:3,role:"unchecked-control focus boundary"},{foreground:"--pie-button-color",background:"--pie-button-bg",minimum:4.5,role:"button text"},{foreground:"--pie-button-color",background:"--pie-button-active-bg",minimum:4.5,role:"active button text"},{foreground:"--pie-button-border",background:"--pie-background",minimum:3,role:"button boundary"},{foreground:"--pie-button-hover-color",background:"--pie-button-hover-bg",minimum:4.5,role:"hovered button text"},{foreground:"--pie-button-hover-border",background:"--pie-background",minimum:3,role:"hovered button boundary"},{foreground:"--pie-button-focus-outline",background:"--pie-background",minimum:3,role:"button focus indicator"},{foreground:"--pie-button-focus-outline",background:"--pie-button-bg",minimum:3,role:"button focus indicator against its control"},{foreground:"--pie-button-focus-outline",background:"--pie-button-hover-bg",minimum:3,role:"hovered button focus indicator"},{foreground:"--pie-button-focus-outline",background:"--pie-button-active-bg",minimum:3,role:"active button focus indicator"},{foreground:"--pie-annotation-underline",background:"--pie-background",minimum:3,role:"annotation underline"},{foreground:"--pie-tool-annotation-toolbar-border",background:"--pie-background",minimum:3,role:"annotation toolbar boundary"}]);function hi(e){const r=e.trim().toLowerCase();if(r==="black")return{r:0,g:0,b:0};if(r==="white")return{r:255,g:255,b:255};const t=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(r);if(t){const n=t[1].length===3?[...t[1]].map(c=>c.repeat(2)).join(""):t[1],a=Number.parseInt(n,16);return{r:a>>16&255,g:a>>8&255,b:a&255}}const i=/^rgba?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)(?:\s*,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(r);if(!i||i[4]!==void 0&&Number.parseFloat(i[4])!==1)return null;const o=i.slice(1,4).map(Number);return o.some(n=>n<0||n>255)?null:{r:o[0],g:o[1],b:o[2]}}function Jt(e){const r=e/255;return r<=.04045?r/12.92:((r+.055)/1.055)**2.4}function io(e){return .2126*Jt(e.r)+.7152*Jt(e.g)+.0722*Jt(e.b)}function bi(e,r){const t=io(e),i=io(r);return(Math.max(t,i)+.05)/(Math.min(t,i)+.05)}function xt(e,r,t=new Set){if(t.has(r))return;t.add(r);const i=e[r]?.trim();if(!i)return;const o=/^var\(\s*(--pie-[a-z0-9-]+)\s*\)$/i.exec(i);return o?xt(e,o[1],t):i}function xa(e){const r=xt(e,"--pie-background"),t=r?hi(r):null;return t?bi({r:255,g:255,b:255},t)>bi({r:0,g:0,b:0},t)?"dark":"light":null}function $a(e,r,t){const i=[];for(const o of _a){if(t&&!t.has(o.foreground)&&!t.has(o.background))continue;const n=xt(e,o.foreground),a=xt(e,o.background),c=n?hi(n):null,l=a?hi(a):null;if(!c||!l){i.push({code:"contrast-unmeasurable",severity:"warning",message:`Could not measure ${o.role} contrast for ${o.foreground} against ${o.background}.`,schemeId:r,token:o.foreground});continue}const u=bi(c,l);u<o.minimum&&i.push({code:"contrast-too-low",severity:"warning",message:`${o.role} contrast is ${u.toFixed(2)}:1; ${o.minimum}:1 is required.`,schemeId:r,token:o.foreground})}return Object.freeze(i)}function vi(e){return ya[e]}function No(){return Lo}function Sa(e){return ka.get(e)}function Ea(){return wa}function qi(e){return pr({bg:e["--pie-background"]??e["--pie-secondary-background"]??"#ffffff",text:e["--pie-text"]??"#000000",primary:e["--pie-primary"]??"#3f51b5"})}function zo(e){return pr({id:e.id,name:e.name,description:e.description,kind:"built-in",preview:qi(e.variables)})}function Ta(e){return e==="light"||e==="dark"||e==="auto"}function Ma(e){return e==="self"||e==="document"}function $t(e){if(!e||typeof e!="object")return{};const r={};for(const[t,i]of Object.entries(e))if(t.startsWith("--pie-"))if(typeof i=="string"){const o=i.trim();o&&(r[t]=o)}else typeof i=="number"&&(r[t]=String(i));return r}var Ho=new Map,oo=new Set,no=new Set,nl=new Set(No().map(e=>e.id)),Aa=0,Ca=new Set(`aliceblue antiquewhite aqua aquamarine azure beige bisque black
|
|
2
2
|
blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse
|
|
3
3
|
chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan
|
|
4
4
|
darkgoldenrod darkgray darkgreen darkgrey darkkhaki darkmagenta
|
|
@@ -18,9 +18,9 @@ import{t as He}from"./defineProperty-a20a667d.js";import{t as ca}from"./attribut
|
|
|
18
18
|
peru pink plum powderblue purple rebeccapurple red rosybrown royalblue
|
|
19
19
|
saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue
|
|
20
20
|
slateblue slategray slategrey snow springgreen steelblue tan teal thistle
|
|
21
|
-
tomato turquoise violet wheat white whitesmoke yellow yellowgreen`.split(/\s+/)),Lt=String.raw`[+-]?(?:\d+|\d*\.\d+)(?:e[+-]?\d+)?`,Qt=new RegExp(`^${Lt}$`,"i"),Lr=new RegExp(`^${Lt}%$`,"i"),We=new RegExp(`^${Lt}%?$`,"i"),oo=new RegExp(`^${Lt}(?:deg|grad|rad|turn)?$`,"i"),Ho=/[ \t\n\f\r]+/,Aa=new Set(["srgb","srgb-linear","display-p3","a98-rgb","prophoto-rgb","rec2020","xyz","xyz-d50","xyz-d65"]);function Oa(e){return Object.freeze({...e})}function Pa(e){return Object.freeze(e.map(r=>Object.freeze({...r})))}function $t(e){return e.replace(/^[ \t\n\f\r]+|[ \t\n\f\r]+$/g,"")}function qa(e){for(let r=0;r<e.length;r+=1)if(e.charCodeAt(r)>127)return!1;return!0}function gr(e,r,t=!1){if(e.includes("/"))return!1;const i=e.includes(",");if(i&&!t)return!1;const o=(i?e.split(","):$t(e).split(Ho)).map($t);return o.length===r.length&&o.every((n,a)=>n.length>0&&r[a]?.test(n))}function no(e){if(!e||!qa(e))return!1;const r=$t(e).toLowerCase();if(!r)return!1;if(/^#[\da-f]{3}$/i.test(r)||/^#[\da-f]{6}$/i.test(r)||Ca.has(r))return!0;const t=/^([a-z-]+)\(([^()]*)\)$/.exec(r);if(!t)return!1;const[,i,o]=t;if(!i||o===void 0)return!1;switch(i){case"rgb":return o.includes(",")?gr(o,[Qt,Qt,Qt],!0)||gr(o,[Lr,Lr,Lr],!0):gr(o,[We,We,We]);case"hsl":case"hwb":return gr(o,[oo,Lr,Lr],i==="hsl");case"lab":case"oklab":return gr(o,[We,We,We]);case"lch":case"oklch":return gr(o,[We,We,oo]);case"color":{if(o.includes(",")||o.includes("/"))return!1;const[n,...a]=$t(o).split(Ho);return!!(n&&Aa.has(n)&&a.length===3&&a.every(c=>We.test(c)))}default:return!1}}function Vo(e){const r={...pi("light"),...e.variables},t=r["--pie-background"];no(t)||(r["--pie-background"]="#ffffff");for(const i of["--pie-text","--pie-primary"])no(r[i])||(r[i]=pi("light")[i]);return Object.freeze({id:e.id,name:e.name,description:e.description,kind:"custom",preview:qi(r)})}function Ia(){return Object.freeze({generation:Ma,schemes:Object.freeze([Sa(),...No().map(Do),...Array.from(zo.values(),Vo)])})}var Bo=Ia();function Ko(e){const r=[e.code,e.schemeId??"",e.token??"",e.message].join("|");io.has(r)||(io.add(r),console.warn(`[pie-theme] ${e.message}`))}function Ra(e){const r=e?.trim();return r&&r!=="default"?r:"default"}function Wa(e){if(!e||typeof e!="object")return{};const r={};for(const[t,i]of Object.entries(e))t.startsWith("--")&&(typeof i=="string"&&i.trim()?r[t]=i.trim():typeof i=="number"&&Number.isFinite(i)&&(r[t]=String(i)));return r}function ja(){return Bo}function Uo(e){to.add(e);try{e(Bo)}catch{Ko({code:"observer-error",severity:"warning",message:"A color-scheme observer threw while receiving an update."})}let r=!0;return()=>{r&&(r=!1,to.delete(e))}}function La(e={}){const r=e.baseTheme==="dark"?"dark":"light",t=Ra(e.requestedScheme),i=xt(e.providerVariables),o=Wa(e.variables),n={...pi(r),...i},a=new Set;let c=null,l="default";const u=[];if(t!=="default"){const p=$a(t),b=zo.get(t);if(p){Object.assign(n,p.variables);for(const h of Object.keys(p.variables))a.add(h);c=Do(p),l="built-in"}else if(b){n["--pie-fixed-hue-collapse"]="100%",Object.assign(n,b.variables);for(const h of Object.keys(b.variables))a.add(h);c=Vo(b),l="custom"}else l="unavailable",u.push({code:"unknown-scheme",severity:"warning",message:`Requested color scheme "${t}" is unavailable; the base theme and provider remain active.`,schemeId:t})}Object.assign(n,o);for(const p of Object.keys(o))a.add(p);a.size>0&&u.push(...xa(n,t==="default"?void 0:t,a));for(const p of u)Ko(p);const f=l==="built-in"||l==="custom"?_a(n):null;return Object.freeze({baseTheme:r,requestedScheme:t,resolvedScheme:c,status:l,variables:Oa(n),colorScheme:f,diagnostics:Pa(u)})}var Na=4.5;var ao=5;function Yt(e){const r=e/255;return r<=.03928?r/12.92:((r+.055)/1.055)**2.4}function so(e){return .2126*Yt(e.r)+.7152*Yt(e.g)+.0722*Yt(e.b)}function Er(e,r){const t=so(e),i=so(r);return(Math.max(t,i)+.05)/(Math.min(t,i)+.05)}function hi(e,r,t){return`color-mix(in srgb, ${e} ${t}%, ${r})`}function Da(){if(typeof document>"u")return null;const e=document.createElement("canvas");e.width=1,e.height=1;const r=e.getContext?.("2d",{willReadFrequently:!0});return r?t=>{const i=t.trim();if(!i)return null;try{r.fillStyle="#000000",r.fillStyle=i;const o=r.fillStyle;if(r.fillStyle="#ffffff",r.fillStyle=i,r.fillStyle!==o)return null;r.clearRect(0,0,1,1),r.fillRect(0,0,1,1);const n=r.getImageData(0,0,1,1).data;return{r:n[0],g:n[1],b:n[2],a:n[3]/255}}catch{return null}}:null}function co(e){const{hue:r,text:t,background:i,measure:o}=e;if(!r)return;if(!t)return r;const n=e.minimum??4.5,a=e.unmeasuredHueWeight??30,c=()=>hi(r,t,a);if(!o||!i)return c();const l=o(i),u=o(r);if(!l||!u||l.a<1||u.a<1)return c();if(Er(u,l)>=n)return r;for(let f=95;f>=ao;f-=ao){const p=hi(r,t,f),b=o(p);if(!b)return c();if(Er(b,l)>=n)return p}return t}var lo=1;function za(e){const{fill:r,text:t,background:i,measure:o}=e;if(!r)return;if(!t||!i||!o)return r;const n=e.minimum??3,a=e.textMinimum??4.5,c=o(i),l=o(t),u=o(r);if(!c||!l||!u||c.a<1||l.a<1||u.a<1||Er(u,c)>=n||Er(l,u)<a)return r;let f=r;for(let p=99;p>=lo;p-=lo){const b=hi(r,t,p),h=o(b);if(!h||Er(l,h)<a)return f;if(f=b,Er(h,c)>=n)return b}return f}var Ha={base100:"--color-base-100",base200:"--color-base-200",base300:"--color-base-300",baseContent:"--color-base-content",primary:"--color-primary",secondary:"--color-secondary",accent:"--color-accent",neutral:"--color-neutral",neutralContent:"--color-neutral-content",success:"--color-success",error:"--color-error",warning:"--color-warning"},Ve=(e,r)=>({token:e,kind:"legible",from:r,minimum:Na,fallbackWeight:30}),yr=(e,r)=>({token:e,kind:"legible",from:r,minimum:3,fallbackWeight:35}),R=(e,r)=>({token:e,kind:"direct",from:r}),be=(e,r,t,i)=>({token:e,kind:"mix",from:r,towards:t,weight:i}),Va=[R("--pie-background","base100"),R("--pie-background-dark","base200"),R("--pie-secondary-background","base200"),R("--pie-dropdown-background","base300"),be("--pie-surface","base300","base100",70),R("--pie-text","baseContent"),R("--pie-primary","primary"),be("--pie-primary-light","primary","base100",60),be("--pie-primary-dark","primary","baseContent",75),be("--pie-faded-primary","primary","base100",20),R("--pie-secondary","secondary"),be("--pie-secondary-light","secondary","base100",60),be("--pie-secondary-dark","secondary","baseContent",75),R("--pie-tertiary","accent"),be("--pie-tertiary-light","accent","base100",60),yr("--pie-border","base300"),R("--pie-border-light","base200"),yr("--pie-border-dark","neutral"),yr("--pie-border-gray","base300"),Ve("--pie-correct","success"),be("--pie-correct-secondary","success","base100",20),Ve("--pie-correct-tertiary","success"),Ve("--pie-correct-icon","success"),Ve("--pie-content-emphasis","error"),Ve("--pie-incorrect","error"),be("--pie-incorrect-secondary","error","base100",20),Ve("--pie-incorrect-icon","error"),Ve("--pie-missing","warning"),Ve("--pie-missing-icon","warning"),R("--pie-disabled","base300"),R("--pie-disabled-secondary","base200"),be("--pie-focus-checked","primary","base100",20),R("--pie-focus-checked-border","primary"),R("--pie-focus-unchecked","base200"),R("--pie-focus-unchecked-border","base300"),R("--pie-blue-grey-100","base100"),{token:"--pie-blue-grey-300",kind:"state-fill",from:"base200"},R("--pie-blue-grey-600","base300"),R("--pie-blue-grey-900","baseContent"),R("--pie-black","neutralContent"),R("--pie-white","base100"),R("--pie-button-bg","base100"),yr("--pie-button-border","base300"),R("--pie-button-color","baseContent"),R("--pie-button-hover-bg","base200"),yr("--pie-button-hover-border","base300"),R("--pie-button-hover-color","baseContent"),be("--pie-button-active-bg","base300","base100",70),yr("--pie-button-focus-outline","primary")];function Ba(e){const{read:r,measure:t}=e,i={};for(const o of Va){const n=r(o.from);if(!n)continue;let a;if(o.kind==="direct")a=n;else if(o.kind==="mix"){const c=r(o.towards);a=c?`color-mix(in srgb, ${n} ${o.weight}%, ${c})`:void 0}else o.kind==="state-fill"?a=za({fill:n,text:r("baseContent"),background:r("base100"),measure:t}):(a=co({hue:n,text:r("baseContent"),background:r("base100"),measure:t,minimum:o.minimum,unmeasuredHueWeight:o.fallbackWeight}),o.token==="--pie-button-focus-outline"&&t&&i["--pie-surface"]&&(a=co({hue:a,text:r("baseContent"),background:i["--pie-surface"],measure:t,minimum:o.minimum,unmeasuredHueWeight:o.fallbackWeight})));a&&(i[o.token]=a)}return i}var uo;(uo=globalThis).PIE_THEME_PROVIDERS??(uo.PIE_THEME_PROVIDERS={adapters:new Map,observers:new Set});var St=globalThis.PIE_THEME_PROVIDERS.adapters,fo=globalThis.PIE_THEME_PROVIDERS.observers;function gt(e){const r=e.trim();return r||void 0}var Jt;function Ka(){return Jt===void 0&&(Jt=Da()),Jt}function Ua(e){return xt(Ba({read:r=>gt(e.getPropertyValue(Ha[r])),measure:Ka()}))}var Xt={id:"daisyui",canRead(e){const r=getComputedStyle(e);return!!(gt(r.getPropertyValue("--color-base-100"))||gt(r.getPropertyValue("--color-base-content"))||gt(r.getPropertyValue("--color-primary")))},read(e){return Ua(getComputedStyle(e))}};St.has(Xt.id)||St.set(Xt.id,Xt);function Ga(e){fo.add(e);let r=!0;return()=>{r&&(r=!1,fo.delete(e))}}function Fa(e){const r=e.provider?.trim()||"auto";if(r==="none")return{};const t=o=>{if(r!=="auto"){const n=St.get(r);return!n||!n.canRead(o)?{}:xt(n.read(o))}for(const n of St.values())if(n.canRead(o))return xt(n.read(o));return{}},i=t(e.target);return Object.keys(i).length>0?i:typeof document<"u"&&e.target!==document.documentElement?t(document.documentElement):{}}var po="(prefers-color-scheme: dark)",Qa=typeof HTMLElement>"u"?class{}:HTMLElement;function Ya(e,r){if(!customElements.get(e))try{customElements.define(e,r)}catch(t){if(!(t instanceof DOMException&&t.name==="NotSupportedError")||!customElements.get(e))throw t}}function bi(e){if(!e)return{};if(typeof e=="string")try{return bi(JSON.parse(e))}catch{return{}}if(typeof e!="object")return{};const r={};for(const[t,i]of Object.entries(e))t.startsWith("--")&&(typeof i=="string"&&i.trim()?r[t]=i.trim():typeof i=="number"&&Number.isFinite(i)&&(r[t]=String(i)));return r}function Ii(e,r,t){r?e.style.setProperty("color-scheme",r):t?e.style.setProperty("color-scheme",t.value,t.priority):e.style.removeProperty("color-scheme")}var Je=new Map,Fe=null,Ri=new Set;function Ja(e,r){Fe??(Fe={dataTheme:e.getAttribute("data-theme"),dataColorScheme:e.getAttribute("data-color-scheme"),colorScheme:e.style.getPropertyValue("color-scheme")?{value:e.style.getPropertyValue("color-scheme"),priority:e.style.getPropertyPriority("color-scheme")}:null,variables:new Map});for(const t of r){if(Fe.variables.has(t))continue;const i=e.style.getPropertyValue(t);Fe.variables.set(t,i?{value:i,priority:e.style.getPropertyPriority(t)}:null)}}function Go(e){for(const t of Ri)e.style.removeProperty(t);const r=Fe;if(r)for(const[t,i]of r.variables)i?e.style.setProperty(t,i.value,i.priority):e.style.removeProperty(t)}function ho(e,r){Ja(e,Object.keys(r.variables)),Go(e),e.setAttribute("data-theme",r.dataTheme),r.dataColorScheme?e.setAttribute("data-color-scheme",r.dataColorScheme):e.removeAttribute("data-color-scheme"),Ii(e,r.colorScheme,Fe?.colorScheme??null);for(const[t,i]of Object.entries(r.variables))e.style.setProperty(t,i);Ri=new Set(Object.keys(r.variables))}function Xa(e){const r=Fe;r&&(r.dataTheme===null?e.removeAttribute("data-theme"):e.setAttribute("data-theme",r.dataTheme),r.dataColorScheme===null?e.removeAttribute("data-color-scheme"):e.setAttribute("data-color-scheme",r.dataColorScheme),Ii(e,null,r.colorScheme),Go(e),Fe=null,Ri.clear())}var Za=class extends Qa{constructor(...e){super(...e),He(this,"mediaQuery",null),He(this,"onMediaChange",()=>this.applyTheme()),He(this,"previousKeys",new Set),He(this,"previousTarget",null),He(this,"variablesOverride",{}),He(this,"promoteDocumentOwnership",!1),He(this,"stopObservingSchemes",null),He(this,"stopObservingProviders",null)}static get observedAttributes(){return["theme","scope","provider","scheme","variables"]}get theme(){const e=this.getAttribute("theme");return Ea(e)?e:"light"}set theme(e){this.setAttribute("theme",e)}get scope(){const e=this.getAttribute("scope");return Ta(e)?e:"self"}set scope(e){this.setAttribute("scope",e)}get variables(){return{...this.variablesOverride}}set variables(e){this.variablesOverride=bi(e),this.setAttribute("variables",JSON.stringify(this.variablesOverride))}get provider(){return this.getAttribute("provider")?.trim()||"auto"}set provider(e){this.setAttribute("provider",e||"auto")}get scheme(){return this.getAttribute("scheme")?.trim()||"default"}set scheme(e){this.setAttribute("scheme",e||"default")}connectedCallback(){this.style.display||(this.style.display="contents"),this.setupAutoThemeListener(),this.stopObservingProviders??(this.stopObservingProviders=Ga(()=>this.applyTheme())),this.stopObservingSchemes??(this.stopObservingSchemes=Uo(()=>this.applyTheme()))}disconnectedCallback(){this.mediaQuery&&this.mediaQuery.removeEventListener("change",this.onMediaChange),this.mediaQuery=null,this.stopObservingSchemes?.(),this.stopObservingSchemes=null,this.stopObservingProviders?.(),this.stopObservingProviders=null,this.clearPreviousTarget()}attributeChangedCallback(e,r,t){r!==t&&(e==="variables"&&(this.variablesOverride=bi(t)),e==="theme"&&this.setupAutoThemeListener(),this.promoteDocumentOwnership=!0,this.applyTheme())}getTarget(){return this.scope==="document"?document.documentElement:this}applyTheme(){if(!this.isConnected||typeof document>"u"||typeof window>"u")return;const{effectiveTheme:e,dataTheme:r}=this.resolveThemeState(),t=this.getTarget();this.previousTarget&&this.previousTarget!==t&&this.clearPreviousTarget();const i=this.scheme==="default"?null:this.scheme,o=this.resolveProviderVariablesForState(t,r,i),n=La({baseTheme:e,providerVariables:o,requestedScheme:this.scheme,variables:this.variablesOverride}),a=Object.freeze({dataTheme:r,dataColorScheme:i,colorScheme:n.colorScheme,variables:n.variables});if(this.scope==="document")this.promoteDocumentOwnership&&Je.has(this)&&Je.delete(this),Je.set(this,a),this.promoteDocumentOwnership=!1,[...Je.entries()].at(-1)?.[0]===this&&ho(t,a);else{t.setAttribute("data-theme",r),a.dataColorScheme?t.setAttribute("data-color-scheme",a.dataColorScheme):t.removeAttribute("data-color-scheme"),Ii(t,a.colorScheme,null),this.clearPreviousKeys(t);for(const[c,l]of Object.entries(n.variables))t.style.setProperty(c,l)}this.previousTarget=t,this.previousKeys=new Set(Object.keys(n.variables))}resolveProviderVariablesForState(e,r,t){const i=(a,c)=>{c===null?e.removeAttribute(a):e.setAttribute(a,c)},o=e.getAttribute("data-theme"),n=e.getAttribute("data-color-scheme");i("data-theme",r),i("data-color-scheme",t);try{return Fa({target:e,provider:this.provider})}finally{i("data-theme",o),i("data-color-scheme",n)}}resolveThemeState(){const e=this.getAttribute("theme")?.trim();if(e==="auto"){const r=window.matchMedia(po).matches?"dark":"light";return{effectiveTheme:r,dataTheme:r}}return e==="dark"||e==="light"?{effectiveTheme:e,dataTheme:e}:e?{effectiveTheme:"light",dataTheme:e}:{effectiveTheme:"light",dataTheme:"light"}}clearPreviousTarget(){if(!this.previousTarget)return;const e=this.previousTarget;if(e===document.documentElement&&Je.has(this)){Je.delete(this);const r=[...Je.values()].at(-1);r?ho(e,r):Xa(e)}else this.clearPreviousKeys(e),e.removeAttribute("data-theme"),e.removeAttribute("data-color-scheme"),e.style.removeProperty("color-scheme");this.previousTarget=null,this.previousKeys.clear()}clearPreviousKeys(e){for(const r of this.previousKeys)e.style.removeProperty(r)}setupAutoThemeListener(){typeof window>"u"||(this.mediaQuery&&(this.mediaQuery.removeEventListener("change",this.onMediaChange),this.mediaQuery=null),this.isConnected&&this.getAttribute("theme")?.trim()==="auto"&&(this.mediaQuery=window.matchMedia(po),this.mediaQuery.addEventListener("change",this.onMediaChange)))}};function es(e="pie-theme"){typeof customElements>"u"||Ya(e,Za)}var rs="pie-color-scheme";function Fo(e){if(typeof document>"u")return null;let r=e instanceof Element?e:null;for(;r;){const t=r.closest("pie-theme");if(t)return t;const i=r.getRootNode();r=i instanceof ShadowRoot?i.host:null}return document.querySelector('pie-theme[scope="document"]')||document.querySelector("pie-theme")}function ts(e,r={}){if(typeof document>"u")return;const t=(e||"default").trim()||"default",i=Fo(r.from);if(i)i.getAttribute("scheme")!==t&&i.setAttribute("scheme",t);else{const o=document.documentElement;t==="default"?o.removeAttribute("data-color-scheme"):o.setAttribute("data-color-scheme",t)}if(r.persistenceKey!==null)try{if(typeof localStorage>"u")return;localStorage.setItem(r.persistenceKey??rs,t)}catch{}}es();if(typeof window<"u"){var bo,vo;((bo=(vo=window).__svelte??(vo.__svelte={})).v??(bo.v=new Set)).add("5")}var Ar={},z=Symbol("uninitialized"),Qo=Array.isArray,is=Array.prototype.indexOf,vi=Array.prototype.includes,Nt=Array.from,Et=Object.keys,Yr=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,os=Object.getOwnPropertyDescriptors,ns=Object.prototype,as=Array.prototype,Yo=Object.getPrototypeOf,mo=Object.isExtensible,ss=()=>{};function cs(e){for(var r=0;r<e.length;r++)e[r]()}function Jo(){var e,r;return{promise:new Promise((t,i)=>{e=t,r=i}),resolve:e,reject:r}}function Jr(e){"@babel/helpers - typeof";return Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jr(e)}function ls(e,r){if(Jr(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(Jr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function us(e){var r=ls(e,"string");return Jr(r)=="symbol"?r:r+""}function I(e,r,t){return(r=us(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ue=1024,xe=2048,fr=4096,Wi=8192,ds=16384,ji=32768,go=1<<25,Li=65536,Wr=1<<19,fs=1<<20,Ur=1<<25,yo=1<<21,ps=1<<22,Tt=1<<23,Gr=Symbol("$state"),Xo=Symbol("component"),Zo=Symbol("legacy props"),hs=Symbol(""),mi=Symbol("attributes"),gi=Symbol("class"),yi=Symbol("style"),yt=Symbol("text"),tt=new class extends Error{constructor(...e){super(...e),I(this,"name","StaleReactionError"),I(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},bs=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function vs(){console.warn("https://svelte.dev/e/derived_inert")}function Dt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ms(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var C=!1;function Le(e){C=e}var A;function Q(e){if(e===null)throw Dt(),Ar;return A=e}function zt(){return Q(Ie(A))}function J(e){if(C){if(Ie(A)!==null)throw Dt(),Ar;A=e}}function en(e=1){if(C){for(var r=e,t=A;r--;)t=Ie(t);A=t}}function Mt(e=!0){for(var r=0,t=A;;){if(t.nodeType===8){var i=t.data;if(i==="]"){if(r===0)return t;r-=1}else(i==="["||i==="[!"||i[0]==="["&&!isNaN(Number(i.slice(1))))&&(r+=1)}var o=Ie(t);e&&t.remove(),t=o}}function rn(e){if(!e||e.nodeType!==8)throw Dt(),Ar;return e.data}function tn(e){return e===this.v}function gs(e,r){return e!=e?r==r:e!==r||e!==null&&typeof e=="object"||typeof e=="function"}function on(e){return!gs(e,this.v)}function ys(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ks(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ws(e,r,t){throw new Error("https://svelte.dev/e/each_key_duplicate")}function _s(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function $s(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ss(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Es(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ts(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ms(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Cs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function As(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Os(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var Ht=!1,it=!1,W=null;function Or(e){W=e}function nn(e,r=!1,t){W={p:W,i:!1,c:null,e:null,s:e,x:null,r:S,l:it&&!r?{s:null,u:null,$:[]}:null}}function an(e){var r=W,t=r.e;if(t!==null){r.e=null;for(var i of t)Tn(i)}return e!==void 0&&(r.x=e),r.i=!0,W=r.p,Ni(e)}function Ni(e={}){return Yr(e,Xo,{value:!0}),e}function ot(){return!it||W!==null&&W.l===null}var or=[];function sn(){var e=or;or=[],cs(e)}function Ye(e){if(or.length===0&&!Fr){var r=or;queueMicrotask(()=>{r===or&&sn()})}or.push(e)}function Ps(){for(;or.length>0;)sn()}var qs=~(xe|fr|ue);function N(e,r){e.f=e.f&qs|r}function Di(e){(e.f&512)!==0||e.deps===null?N(e,ue):N(e,fr)}function cn(e,r,t){(e.f&2048)!==0?r.add(e):e.f&4096&&t.add(e),N(e,ue)}function Vt(e){var r=T,t=S;fe(null),qe(null);try{return e()}finally{fe(r),qe(t)}}function Is(e,r,t,i){const o=ot()?Xr:zi;var n=e.filter(h=>!h.settled),a=r.map(o);if(t.length===0&&n.length===0){i(a);return}var c=S,l=Rs(),u=n.length===1?n[0].promise:n.length>1?Promise.all(n.map(h=>h.promise)):null;function f(h){if((c.f&16384)===0){l();try{i([...a,...h])}catch(g){Pe(g,c)}Ct()}}var p=ln();if(t.length===0){u.then(()=>f([])).finally(p);return}function b(){Promise.all(t.map(h=>Ws(h))).then(f).catch(h=>Pe(h,c)).finally(p)}u?u.then(()=>{l(),b(),Ct()}):b()}function Rs(){var e=S,r=T,t=W,i=$;return function(o=!0){qe(e),fe(r),Or(t),o&&!(e.f&16384)&&(i?.activate(),i?.apply())}}function Ct(e=!0){qe(null),fe(null),Or(null),e&&$?.deactivate()}function ln(){var e=S,r=e.b,t=$,i=!!r?.is_rendered();return r?.update_pending_count(1,t),t.increment(i,e),()=>{r?.update_pending_count(-1,t),t.decrement(i,e)}}function Xr(e){var r=2|xe;return S!==null&&(S.f|=Wr),{ctx:W,deps:null,effects:null,equals:tn,f:r,fn:e,reactions:null,rv:0,v:z,wv:0,parent:S,ac:null}}var Vr=Symbol("obsolete");function Ws(e,r,t){let i=S;i===null&&ks();var o=void 0,n=ur(z),a=!T,c=new Set;return Zs(()=>{var l=S,u=Jo();o=u.promise;try{Promise.resolve(e()).then(u.resolve,h=>{h!==tt&&u.reject(h)}).finally(Ct)}catch(h){u.reject(h),Ct()}var f=$;if(a){if((l.f&32768)!==0)var p=ln();if(i.b?.is_rendered())f.async_deriveds.get(l)?.reject(Vr);else for(const h of c.values())h.reject(Vr);c.add(u),f.async_deriveds.set(l,u)}const b=(h,g=void 0)=>{p?.(),c.delete(u),g!==Vr&&(f.activate(),g?(n.f|=Tt,qr(n,g)):(n.f&8388608&&(n.f^=Tt),qr(n,h)),f.deactivate())};u.promise.then(b,h=>b(null,h||"unknown"))}),Ys(()=>{for(const l of c)l.reject(Vr)}),new Promise(l=>{function u(f){function p(){f===o?l(n):u(o)}f.then(p,p)}u(o)})}function Xe(e){const r=Xr(e);return qn(r),r}function zi(e){const r=Xr(e);return r.equals=on,r}function js(e){var r=e.effects;if(r!==null){e.effects=null;for(var t=0;t<r.length;t+=1)Y(r[t])}}function Hi(e){var r,t=S,i=e.parent;if(!ze&&i!==null&&e.v!==z&&(i.f&24576)!==0)return vs(),e.v;qe(i);try{js(e),r=jn(e)}finally{qe(t)}return r}function un(e){var r=Hi(e);if(!e.equals(r)&&(e.wv=Rn(),(!$?.is_fork||e.deps===null)&&($!==null?($.capture(e,r,!0),wi?.capture(e,r,!0)):e.v=r,e.deps===null))){N(e,ue);return}ze||(G!==null?(Ki()||$?.is_fork)&&G.set(e,r):Di(e))}function Ls(e){if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&(r.teardown?.(),r.ac!==null&&Vt(()=>{r.ac.abort(tt),r.ac=null}),r.fn!==null&&(r.teardown=ss),et(r,0),Fi(r))}function dn(e){if(e.effects!==null)for(const r of e.effects)r.teardown&&r.fn!==null&&Ir(r)}function fn(e,r){if(r.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Vi(e,r){fn(e,r),r.add(e)}function w(e,r,t){fn(e,r),r.set(e,t)}function x(e,r,t){if(typeof e=="function"?e===r:e.has(r))return arguments.length<3?r:t;throw new TypeError("Private element is not present on this object")}function k(e,r,t){return e.set(x(e,r),t),t}function s(e,r){return e.get(x(e,r))}var pn,ki=null,_r=null,$=null,wi=null,G=null,_i=null,Fr=!1,Zt=!1,Zr=null,At=null,hn=0,Ns=1,xi=new WeakMap,sr=new WeakMap,Tr=new WeakMap,Ot=new WeakMap,ut=new WeakMap,xr=new WeakMap,rr=new WeakMap,Br=new WeakMap,Ce=new WeakMap,ko=new WeakMap,Pr=new WeakMap,Ne=new WeakMap,Ge=new WeakMap,ei=new WeakMap,dt=new WeakMap,D=new WeakSet,pr=class bn{constructor(){Vi(this,D),I(this,"id",Ns++),w(this,xi,!1),I(this,"linked",!0),w(this,sr,null),w(this,Tr,null),I(this,"async_deriveds",new Map),I(this,"current",new Map),I(this,"previous",new Map),w(this,Ot,new Set),w(this,ut,new Set),w(this,xr,0),w(this,rr,new Map),w(this,Br,null),w(this,Ce,[]),w(this,ko,[]),w(this,Pr,new Set),w(this,Ne,new Set),w(this,Ge,new Map),w(this,ei,new Set),I(this,"is_fork",!1),w(this,dt,!1),_r===null?ki=_r=this:(k(Tr,_r,this),k(sr,this,_r)),_r=this}skip_effect(r){s(Ge,this).has(r)||s(Ge,this).set(r,{d:[],m:[]}),s(ei,this).delete(r)}unskip_effect(r,t=i=>this.schedule(i)){var i=s(Ge,this).get(r);if(i){s(Ge,this).delete(r);for(var o of i.d)N(o,xe),t(o);for(o of i.m)N(o,fr),t(o)}s(ei,this).add(r)}capture(r,t,i=!1){r.v!==z&&!this.previous.has(r)&&this.previous.set(r,r.v),!(r.f&8388608)&&(this.current.set(r,[t,i]),G?.set(r,t)),this.is_fork||(r.v=t)}activate(){$=this}deactivate(){$=null,G=null}flush(){try{Zt=!0,$=this,x(D,this,Pt).call(this)}finally{hn=0,_i=null,Zr=null,At=null,Zt=!1,$=null,G=null,Oe.clear()}}discard(){for(const r of s(ut,this))r(this);s(ut,this).clear();for(const r of this.async_deriveds.values())r.reject(Vr);x(D,this,qt).call(this),s(Br,this)?.resolve()}register_created_effect(r){s(ko,this).push(r)}increment(r,t){if(k(xr,this,s(xr,this)+1),r){let i=s(rr,this).get(t)??0;s(rr,this).set(t,i+1)}}decrement(r,t){if(k(xr,this,s(xr,this)-1),r){let i=s(rr,this).get(t)??0;i===1?s(rr,this).delete(t):s(rr,this).set(t,i-1)}s(dt,this)||(k(dt,this,!0),Ye(()=>{k(dt,this,!1),this.linked&&this.flush()}))}transfer_effects(r,t){for(const i of r)s(Pr,this).add(i);for(const i of t)s(Ne,this).add(i);r.clear(),t.clear()}oncommit(r){s(Ot,this).add(r)}ondiscard(r){s(ut,this).add(r)}settled(){return(s(Br,this)??k(Br,this,Jo())).promise}static ensure(){if($===null){const r=$=new bn;!Zt&&!Fr&&Ye(()=>{s(xi,r)||r.flush()})}return $}apply(){if(!Ht||!this.is_fork&&s(sr,this)===null&&s(Tr,this)===null){G=null;return}G=new Map;for(const[t,[i]]of this.current)G.set(t,i);for(let t=ki;t!==null;t=s(Tr,t))if(!(t===this||t.is_fork)){var r=!1;if(t.id<this.id){for(const[i,[,o]]of t.current)if(!o&&this.current.has(i)){r=!0;break}}if(!r)for(const[i,o]of t.previous)G.has(i)||G.set(i,o)}}schedule(r){if(_i=r,r.b?.is_pending&&(r.f&16777228)!==0&&(r.f&32768)===0){r.b.defer_effect(r);return}s(Ce,this).push(r)}};pn=pr;function wo(){if(this.is_fork)return!0;for(const t of s(rr,this).keys()){for(var e=t,r=!1;e.parent!==null;){if(s(Ge,this).has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1}function Ds(){var e=[];for(const o of s(Ce,this))if(!((o.f&16384)!==0||(o.f&6144)===0)){for(var r=o,t=!1;r.parent!==null;){r=r.parent;var i=r.f;if((i&96)!==0){if((i&1024)===0){t=!0;break}r.f^=ue}}t||e.push(r)}return k(Ce,this,[]),e}function Pt(){k(xi,this,!0);for(const a of s(Pr,this))s(Ne,this).delete(a),N(a,xe),this.schedule(a);for(const a of s(Ne,this))N(a,fr),this.schedule(a);this.apply();for(var e=Zr=[],r=[],t=At=[];s(Ce,this).length>0;){hn++>1e3&&(x(D,this,qt).call(this),Bs());for(const a of x(D,this,Ds).call(this))try{x(D,this,zs).call(this,a,e,r)}catch(c){throw gn(a),x(D,this,wo).call(this)||this.discard(),c}}if($=null,t.length>0){var i=pn.ensure();for(const a of t)i.schedule(a)}if(Zr=null,At=null,x(D,this,wo).call(this)){x(D,this,ft).call(this,r),x(D,this,ft).call(this,e);for(const[a,c]of s(Ge,this))mn(a,c);t.length>0&&x(D,$,Pt).call($);return}const o=x(D,this,Hs).call(this);if(o){x(D,this,ft).call(this,r),x(D,this,ft).call(this,e),x(D,o,Vs).call(o,this);return}s(Pr,this).clear(),s(Ne,this).clear();for(const a of s(Ot,this))a(this);s(Ot,this).clear(),wi=this,_o(r),_o(e),wi=null,s(Br,this)?.resolve();var n=$;if(s(xr,this)===0&&(s(Ce,this).length===0||n!==null)&&x(D,this,qt).call(this),s(Ce,this).length>0)if(n!==null){for(const a of s(Ce,this))s(Ce,n).push(a);k(Ce,this,[])}else n=this;n!==null&&(Oe.clear(),x(D,n,Pt).call(n))}function zs(e,r,t){e.f^=ue;for(var i=e.first;i!==null;){var o=i.f,n=(o&96)!==0;if(!(n&&(o&1024)!==0||(o&8192)!==0||s(Ge,this).has(i))&&i.fn!==null){n?i.f^=ue:(o&4)!==0?r.push(i):Ht&&(o&16777224)!==0?t.push(i):nt(i)&&(o&16&&s(Ne,this).add(i),Ir(i));var a=i.first;if(a!==null){i=a;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}function Hs(){for(var e=s(sr,this);e!==null;){if(!e.is_fork){for(const[r,[,t]]of this.current)if(e.current.has(r)&&!t)return e}e=s(sr,e)}return null}function Vs(e){for(const[t,i]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,i);for(const[t,i]of e.async_deriveds){const o=this.async_deriveds.get(t);o&&i.promise.then(o.resolve).catch(o.reject)}e.async_deriveds.clear(),this.transfer_effects(s(Pr,e),s(Ne,e));const r=t=>{var i=t.reactions;if(i!==null&&!((t.f&2)!==0&&(t.f&6144)===0))for(const a of i){var o=a.f;if((o&2)!==0)r(a);else{var n=a;o&4194320&&!this.async_deriveds.has(n)&&(s(Ne,this).delete(n),N(n,xe),this.schedule(n))}}};for(const t of this.current.keys())r(t);this.oncommit(()=>e.discard()),x(D,e,qt).call(e),$=this,x(D,this,Pt).call(this)}function ft(e){for(var r=0;r<e.length;r+=1)cn(e[r],s(Pr,this),s(Ne,this))}function qt(){if(this.linked){var e=s(sr,this),r=s(Tr,this);e===null?ki=r:k(Tr,e,r),r===null?_r=e:k(sr,r,e),this.linked=!1}}function $i(e){var r=Fr;Fr=!0;try{var t;for(e&&($!==null&&!$.is_fork&&$.flush(),t=e());;){if(Ps(),$===null)return t;$.flush()}}finally{Fr=r}}function Bs(){try{Ss()}catch(e){Pe(e,_i)}}var Me=null;function _o(e){var r=e.length;if(r!==0){for(var t=0;t<r;){var i=e[t++];if((i.f&24576)===0&&nt(i)&&(Me=new Set,Ir(i),i.deps===null&&i.first===null&&i.nodes===null&&i.teardown===null&&i.ac===null&&An(i),Me?.size>0)){Oe.clear();for(const o of Me){if((o.f&24576)!==0)continue;const n=[o];let a=o.parent;for(;a!==null;)Me.has(a)&&(Me.delete(a),n.push(a)),a=a.parent;for(let c=n.length-1;c>=0;c--){const l=n[c];!(l.f&24576)&&Ir(l)}}Me.clear()}}Me=null}}function vn(e){$.schedule(e)}function mn(e,r){if(!((e.f&32)!==0&&(e.f&1024)!==0)){(e.f&2048)!==0?r.d.push(e):e.f&4096&&r.m.push(e),N(e,ue);for(var t=e.first;t!==null;)mn(t,r),t=t.next}}function gn(e){N(e,ue);for(var r=e.first;r!==null;)gn(r),r=r.next}var It=new Set,Oe=new Map,yn=!1;function ur(e,r){return{f:0,v:e,reactions:null,equals:tn,rv:0,wv:0}}function F(e,r){const t=ur(e,r);return qn(t),t}function kn(e,r=!1,t=!0){const i=ur(e);if(r||(i.equals=on),it&&t&&W!==null&&W.l!==null){var o;((o=W.l).s??(o.s=[])).push(i)}return i}function j(e,r,t=!1){return T!==null&&(!ge||T.f&131072)&&ot()&&T.f&4325394&&(ke===null||!ke.has(e))&&As(),qr(e,t?Mr(r):r,At)}var ir=null,Si=0;function qr(e,r,t=null){if(!e.equals(r)){ze?Oe.set(e,r):Oe.has(e)||Oe.set(e,e.v);var i=pr.ensure();if(i.capture(e,r),(e.f&2)!==0){const o=e;e.f&2048&&Hi(o),G===null&&Di(o)}e.wv=Rn(),ir=null,Si=0,wn(e,xe,t),ir=null,ot()&&S!==null&&S.f&1024&&!(S.f&96)&&(le===null?ic([e]):le.push(e)),!i.is_fork&&It.size>0&&!yn&&Ks()}return r}function Ks(){yn=!1;for(const e of It){e.f&1024&&N(e,fr);let r;try{r=nt(e)}catch{r=!0}r&&Ir(e)}It.clear()}function Qr(e){j(e,e.v+1)}function wn(e,r,t){var i=e.reactions;if(i!==null){var o=ot(),n=i.length;if(Si+=n,Si>1e5&&ir===null&&(ir=new Set),ir!==null){if(ir.has(e))return;ir.add(e)}for(var a=0;a<n;a++){var c=i[a],l=c.f;if(!(!o&&c===S)){var u=(l&xe)===0;if(u&&N(c,r),(l&131072)!==0)It.add(c);else if((l&2)!==0){var f=c;G?.delete(f),wn(f,fr,t)}else if(u){var p=c;l&16&&Me!==null&&Me.add(p),t!==null?t.push(p):vn(p)}}}}}function Mr(e){if(typeof e!="object"||e===null||Gr in e||Xo in e)return e;const r=Yo(e);if(r!==ns&&r!==as)return e;var t=new Map,i=Qo(e),o=F(0),n=null,a=cr,c=l=>{if(cr===a)return l();var u=T,f=cr;fe(null),So(a);var p=l();return fe(u),So(f),p};return i&&t.set("length",F(e.length,n)),new Proxy(e,{defineProperty(l,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Ms();var p=t.get(u);return p===void 0?c(()=>{var b=F(f.value,n);return t.set(u,b),b}):j(p,f.value,!0),!0},deleteProperty(l,u){var f=t.get(u);if(f===void 0){if(u in l){const p=c(()=>F(z,n));t.set(u,p),Qr(o)}}else j(f,z),Qr(o);return!0},get(l,u,f){if(u===Gr)return e;var p=t.get(u),b=u in l;if(p===void 0&&(!b||ar(l,u)?.writable)&&(p=c(()=>F(Mr(b?l[u]:z),n)),t.set(u,p)),p!==void 0){var h=d(p);return h===z?void 0:h}return Reflect.get(l,u,f)},getOwnPropertyDescriptor(l,u){this.has?.(l,u);var f=Reflect.getOwnPropertyDescriptor(l,u),p=t.get(u);if(p!==void 0){var b=d(p);if(b===z)return;if(f&&"value"in f)f.value=b;else return{enumerable:!0,configurable:!0,value:b,writable:!0}}return f},has(l,u){if(u===Gr)return!0;var f=t.get(u),p=f!==void 0&&f.v!==z||Reflect.has(l,u);return(f!==void 0||S!==null&&(!p||ar(l,u)?.writable))&&(f===void 0&&(f=c(()=>F(p?Mr(l[u]):z,n)),t.set(u,f)),d(f)===z)?!1:p},set(l,u,f,p){var b=t.get(u),h=u in l;if(i&&u==="length")for(var g=f;g<b.v;g+=1){var y=t.get(g+"");y!==void 0?j(y,z):g in l&&(y=c(()=>F(z,n)),t.set(g+"",y))}if(b===void 0)(!h||ar(l,u)?.writable)&&(b=c(()=>F(void 0,n)),j(b,Mr(f)),t.set(u,b));else{h=b.v!==z;var v=c(()=>Mr(f));j(b,v)}var m=Reflect.getOwnPropertyDescriptor(l,u);if(m?.set&&m.set.call(p,f),!h){if(i&&typeof u=="string"){var P=t.get("length"),O=Number(u);Number.isInteger(O)&&O>=P.v&&j(P,O+1)}Qr(o)}return!0},ownKeys(l){d(o);var u=Reflect.ownKeys(l).filter(b=>{var h=t.get(b);return h===void 0||h.v!==z});for(var[f,p]of t)p.v!==z&&!(f in l)&&u.push(f);return u},setPrototypeOf(){Cs()}})}var xo,_n,xn,$n;function Ei(){if(xo===void 0){xo=window,_n=/Firefox/.test(navigator.userAgent);var e=Element.prototype,r=Node.prototype,t=Text.prototype;xn=ar(r,"firstChild").get,$n=ar(r,"nextSibling").get,mo(e)&&(e[gi]=void 0,e[mi]=null,e[yi]=void 0,e.__e=void 0),mo(t)&&(t[yt]=void 0)}}function ne(e=""){return document.createTextNode(e)}function ie(e){return xn.call(e)}function Ie(e){return $n.call(e)}function re(e,r){if(!C)return ie(e);var t=ie(A);if(t===null)t=A.appendChild(ne());else if(r&&t.nodeType!==3){var i=ne();return t?.before(i),Q(i),i}return r&&Bt(t),Q(t),t}function Us(e,r=!1){if(!C){var t=ie(e);return t instanceof Comment&&t.data===""?Ie(t):t}if(r){if(A?.nodeType!==3){var i=ne();return A?.before(i),Q(i),i}Bt(A)}return A}function Nr(e,r=!1){if(!C)return ie(e);var t=re(e,r);return J(e),t}function ve(e,r=1,t=!1){let i=C?A:e;for(var o;r--;)o=i,i=Ie(i);if(!C)return i;if(t){if(i?.nodeType!==3){var n=ne();return i===null?o?.after(n):i.before(n),Q(n),n}Bt(i)}return Q(i),i}function Sn(e){e.textContent=""}function En(){return!Ht||Me!==null?!1:(S.f&ji)!==0}function Bi(e,r,t){return r==null||r==="http://www.w3.org/1999/xhtml"?t?document.createElement(e,{is:t}):document.createElement(e):t?document.createElementNS(r,e,{is:t}):document.createElementNS(r,e)}function Bt(e){if(e.nodeValue.length<65536)return;let r=e.nextSibling;for(;r!==null&&r.nodeType===3;)r.remove(),e.nodeValue+=r.nodeValue,r=e.nextSibling}function Gs(e){var r=S;if(r===null)return T.f|=Tt,e;if((r.f&32768)===0&&(r.f&4)===0)throw e;Pe(e,r)}function Pe(e,r){if(!(r!==null&&(r.f&16384)!==0)){for(;r!==null;){if((r.f&128)!==0&&(r.f&33570816)===0){if((r.f&32768)===0)throw e;try{r.b.error(e);return}catch(t){e=t}}r=r.parent}throw e}}function Fs(e){S===null&&(T===null&&$s(e),xs()),ze&&_s(e)}function Qs(e,r){var t=r.last;t===null?r.last=r.first=e:(t.next=e,e.prev=t,r.last=e)}function Re(e,r){var t=S;t!==null&&t.f&8192&&(e|=Wi);var i={ctx:W,deps:null,nodes:null,f:e|xe|512,first:null,fn:r,last:null,next:null,parent:t,b:t&&t.b,prev:null,teardown:null,wv:0,ac:null};$?.register_created_effect(i);var o=i;if((e&4)!==0)Zr!==null?Zr.push(i):pr.ensure().schedule(i);else if(r!==null){try{Ir(i)}catch(a){throw Y(i),a}o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&!(o.f&524288)&&(o=o.first,e&16&&e&65536&&o!==null&&(o.f|=Li))}if(o!==null&&(o.parent=t,t!==null&&Qs(o,t),T!==null&&(T.f&2)!==0&&(e&64)===0)){var n=T;(n.effects??(n.effects=[])).push(o)}return i}function Ki(){return T!==null&&!ge}function Ys(e){const r=Re(8,null);return N(r,ue),r.teardown=e,r}function tr(e){Fs("$effect");var r=S.f;if(!T&&(r&32)!==0&&W!==null&&!W.i){var t=W;(t.e??(t.e=[])).push(e)}else return Tn(e)}function Tn(e){return Re(4|fs,e)}function Js(e){pr.ensure();const r=Re(64|Wr,e);return()=>{Y(r)}}function Xs(e){pr.ensure();const r=Re(64|Wr,e);return(t={})=>new Promise(i=>{t.outro?hr(r,()=>{Y(r),i(void 0)}):(Y(r),i(void 0))})}function Mn(e){return Re(4,e)}function Zs(e){return Re(ps|Wr,e)}function Ui(e,r=0){return Re(8|r,e)}function pt(e,r=[],t=[],i=[]){Is(i,r,t,o=>{Re(8,()=>{e(...o.map(d))})})}function Gi(e,r=0){return Re(16|r,e)}function de(e){return Re(32|Wr,e)}function Cn(e){var r=e.teardown;if(r!==null){const t=ze,i=T;$o(!0),fe(null);try{r.call(null)}catch(o){Pe(o,e.parent)}finally{$o(t),fe(i)}}}function Fi(e,r=!1){var t=e.first;for(e.first=e.last=null;t!==null;){const o=t.ac;o!==null&&Vt(()=>{o.abort(tt)});var i=t.next;(t.f&64)!==0?t.parent=null:Y(t,r),t=i}}function ec(e){for(var r=e.first;r!==null;){var t=r.next;!(r.f&32)&&Y(r),r=t}}function Y(e,r=!0){var t=!1;(r||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(rc(e.nodes.start,e.nodes.end),t=!0),e.f|=go,Fi(e,r&&!t),et(e,0);var i=e.nodes&&e.nodes.t;if(i!==null)for(const n of i)n.stop();Cn(e),e.f^=go,e.f|=ds;var o=e.parent;o!==null&&o.first!==null&&An(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function rc(e,r){for(;e!==null;){var t=e===r?null:Ie(e);e.remove(),e=t}}function An(e){var r=e.parent,t=e.prev,i=e.next;t!==null&&(t.next=i),i!==null&&(i.prev=t),r!==null&&(r.first===e&&(r.first=i),r.last===e&&(r.last=t))}function hr(e,r,t=!0){var i=[];e.f|=256,On(e,i,!0);var o=()=>{t&&Y(e),r&&r()},n=i.length;if(n>0){var a=()=>--n||o();for(var c of i)c.out(a)}else o()}function On(e,r,t){if((e.f&8192)===0){e.f^=Wi;var i=e.nodes&&e.nodes.t;if(i!==null)for(const c of i)(c.is_global||t)&&r.push(c);for(var o=e.first;o!==null;){var n=o.next;if((o.f&64)===0){var a=(o.f&65536)!==0||(o.f&32)!==0&&(e.f&16)!==0;On(o,r,a?t:!1)}o=n}}}function Rt(e){e.f&=-257,Pn(e,!0)}function Pn(e,r){if((e.f&256)===0&&(e.f&8192)!==0){e.f^=Wi,!(e.f&1024)&&(N(e,xe),pr.ensure().schedule(e));for(var t=e.first;t!==null;){var i=t.next,o=(t.f&65536)!==0||(t.f&32)!==0;Pn(t,o?r:!1),t=i}var n=e.nodes&&e.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&a.in()}}function Qi(e,r){if(e.nodes)for(var t=e.nodes.start,i=e.nodes.end;t!==null;){var o=t===i?null:Ie(t);r.append(t),t=o}}var tc=null,kt=!1,ze=!1;function $o(e){ze=e}var T=null,ge=!1;function fe(e){T=e}var S=null;function qe(e){S=e}var ke=null;function qn(e){T!==null&&(T.f&2097152||T.f&2)&&(ke??(ke=new Set)).add(e)}var X=null,te=0,le=null;function ic(e){le=e}var In=1,nr=0,cr=nr;function So(e){cr=e}function Rn(){return++In}function nt(e){var r=e.f;if((r&2048)!==0)return!0;if((r&4096)!==0){for(var t=e.deps,i=t.length,o=0;o<i;o++){var n=t[o];if(nt(n)&&un(n),n.wv>e.wv)return!0}r&512&&G===null&&N(e,ue)}return!1}function Wn(e,r,t=!0){var i=e.reactions;if(i!==null&&!(!Ht&&ke!==null&&ke.has(e)))for(var o=0;o<i.length;o++){var n=i[o];(n.f&2)!==0?Wn(n,r,!1):r===n&&(t?N(n,xe):n.f&1024&&N(n,fr),vn(n))}}function jn(e){var r=X,t=te,i=le,o=T,n=ke,a=W,c=ge,l=cr,u=e.f;X=null,te=0,le=null,T=(u&96)===0?e:null,ke=null,Or(e.ctx),ge=!1,cr=++nr,e.ac!==null&&(Vt(()=>{e.ac.abort(tt)}),e.ac=null);try{e.f|=yo;var f=e.fn,p=f();e.f|=ji;var b=Eo(e);if(ot()&&le!==null&&!ge&&b!==null&&(e.f&6146)===0)for(var h=0;h<le.length;h++)Wn(le[h],e);if(o!==null&&o!==e){if(nr++,o.deps!==null)for(let g=0;g<t;g+=1)o.deps[g].rv=nr;if(r!==null)for(const g of r)g.rv=nr;le!==null&&(i===null?i=le:i.push(...le))}return e.f&8388608&&(e.f^=Tt),p}catch(g){return Eo(e),Gs(g)}finally{e.f^=yo,X=r,te=t,le=i,T=o,ke=n,Or(a),ge=c,cr=l}}function Eo(e){var r=e.deps,t=$?.is_fork;if(X!==null){var i;if(t||et(e,te),r!==null&&te>0)for(r.length=te+X.length,i=0;i<X.length;i++)r[te+i]=X[i];else e.deps=r=X;if(Ki()&&(e.f&512)!==0)for(i=te;i<r.length;i++){var o;((o=r[i]).reactions??(o.reactions=[])).push(e)}}else!t&&r!==null&&te<r.length&&(et(e,te),r.length=te);return r}function oc(e,r){let t=r.reactions;if(t!==null){var i=is.call(t,e);if(i!==-1){var o=t.length-1;o===0?t=r.reactions=null:(t[i]=t[o],t.pop())}}if(t===null&&(r.f&2)!==0&&(X===null||!vi.call(X,r))){var n=r;n.f&512&&(n.f^=512),n.v!==z&&Di(n),n.ac!==null&&Vt(()=>{n.ac.abort(tt),n.ac=null,N(n,xe)}),Ls(n),et(n,0)}}function et(e,r){var t=e.deps;if(t!==null)for(var i=r;i<t.length;i++)oc(e,t[i])}function Ir(e){var r=e.f;if((r&16384)===0){N(e,ue);var t=S,i=kt;S=e,kt=(r&96)===0;try{(r&16777232)!==0?ec(e):Fi(e),Cn(e);var o=jn(e);e.teardown=typeof o=="function"?o:null,e.wv=In}finally{kt=i,S=t}}}function d(e){var r=(e.f&2)!==0;if(tc?.add(e),T!==null&&!ge&&!(S!==null&&(S.f&16384)!==0)&&(ke===null||!ke.has(e))){var t=T.deps;if((T.f&2097152)!==0)e.rv<nr&&(e.rv=nr,X===null&&t!==null&&t[te]===e?te++:X===null?X=[e]:X.push(e));else{var i;(i=T).deps??(i.deps=[]),vi.call(T.deps,e)||T.deps.push(e);var o=e.reactions;o===null?e.reactions=[T]:vi.call(o,T)||o.push(T)}}if(ze&&Oe.has(e))return Oe.get(e);if(r){var n=e;if(ze){var a=n.v;return(!(n.f&1024)&&n.reactions!==null||Nn(n))&&(a=Hi(n)),Oe.set(n,a),a}var c=(n.f&512)===0&&!ge&&T!==null&&(kt||(T.f&512)!==0),l=(n.f&ji)===0;nt(n)&&(c&&(n.f|=512),un(n)),c&&!l&&(dn(n),Ln(n))}if(G?.has(e))return G.get(e);if((e.f&8388608)!==0)throw e.v;return e.v}function Ln(e){if(e.f|=512,e.deps!==null)for(const r of e.deps)(r.reactions??(r.reactions=[])).push(e),r.f&2&&!(r.f&512)&&(dn(r),Ln(r))}function Nn(e){if(e.v===z)return!0;if(e.deps===null)return!1;for(const r of e.deps)if(Oe.has(r)||(r.f&2)!==0&&Nn(r))return!0;return!1}function Rr(e){var r=ge;try{return ge=!0,e()}finally{ge=r}}var Cr=Symbol("events"),Dn=new Set,Ti=new Set;function ri(e,r,t){(r[Cr]??(r[Cr]={}))[e]=t}function nc(e){for(var r=0;r<e.length;r++)Dn.add(e[r]);for(var t of Ti)t(e)}var ti=null,ii=!1;function To(e){var r=this,t=r.ownerDocument,i=e.type,o=e.composedPath?.()||[],n=o[0]||e.target;ti=e,ii||(ii=!0,setTimeout(()=>{ii=!1,ti=null}));var a=0,c=ti===e&&e[Cr];if(c){var l=o.indexOf(c);if(l!==-1&&(r===document||r===window)){e[Cr]=r;return}var u=o.indexOf(r);if(u===-1)return;l<=u&&(a=l)}if(n=o[a]||e.target,n!==r){Yr(e,"currentTarget",{configurable:!0,get(){return n||t}});var f=T,p=S;fe(null),qe(null);try{for(var b,h=[];n!==null&&n!==r;){try{var g=n[Cr]?.[i];g!=null&&(!n.disabled||e.target===n)&&g.call(n,e)}catch(y){b?h.push(y):b=y}if(e.cancelBubble)break;a++,n=a<o.length?o[a]:null}if(b){for(let y of h)queueMicrotask(()=>{throw y});throw b}}finally{e[Cr]=r,delete e.currentTarget,fe(f),qe(p)}}}var ac=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function sc(e){return ac?.createHTML(e)??e}function zn(e){var r=Bi("template");return r.innerHTML=sc(e.replaceAll("<!>","<!---->")),r.content}function De(e,r){var t=S;t.nodes===null&&(t.nodes={start:e,end:r,a:null,t:null})}function at(e,r){var t=(r&1)!==0,i=(r&2)!==0,o,n=!e.startsWith("<!>");return()=>{if(C)return De(A,null),A;o===void 0&&(o=zn(n?e:"<!>"+e),t||(o=ie(o)));var a=i||_n?document.importNode(o,!0):o.cloneNode(!0);if(t){var c=ie(a),l=a.lastChild;De(c,l)}else De(a,a);return a}}function cc(e,r,t="svg"){var i=!e.startsWith("<!>"),o=(r&1)!==0,n=`<${t}>${i?e:"<!>"+e}</${t}>`,a;return()=>{if(C)return De(A,null),A;if(!a){var c=ie(zn(n));if(o)for(a=document.createDocumentFragment();ie(c);)a.appendChild(ie(c));else a=ie(c)}var l=a.cloneNode(!0);if(o){var u=ie(l),f=l.lastChild;De(u,f)}else De(l,l);return l}}function lc(e,r){return cc(e,r,"svg")}function uc(e=""){if(!C){var r=ne(e+"");return De(r,r),r}var t=A;return t.nodeType!==3?(t.before(t=ne()),Q(t)):Bt(t),De(t,t),t}function Ue(e,r){if(C){var t=S;(!(t.f&32768)||t.nodes.end===null)&&(t.nodes.end=A),zt();return}e!==null&&e.before(r)}var dc=["touchstart","touchmove"];function fc(e){return dc.includes(e)}function pc(e){let r=0,t=ur(0),i;return()=>{Ki()&&(d(t),Ui(()=>(r===0&&(i=Rr(()=>e(()=>Qr(t)))),r+=1,()=>{Ye(()=>{r-=1,r===0&&(i?.(),i=void 0,Qr(t))})})))}}var hc=Li|Wr;function bc(e,r,t,i){new vc(e,r,t,i)}var we=new WeakMap,Mi=new WeakMap,Ae=new WeakMap,rt=new WeakMap,oe=new WeakMap,_e=new WeakMap,ae=new WeakMap,ye=new WeakMap,Qe=new WeakMap,$r=new WeakMap,lr=new WeakMap,ht=new WeakMap,Ci=new WeakMap,Ai=new WeakMap,Ze=new WeakMap,Mo=new WeakMap,H=new WeakSet,vc=class{constructor(e,r,t,i){Vi(this,H),I(this,"parent",void 0),I(this,"is_pending",!1),I(this,"transform_error",void 0),w(this,we,void 0),w(this,Mi,C?A:null),w(this,Ae,void 0),w(this,rt,void 0),w(this,oe,void 0),w(this,_e,null),w(this,ae,null),w(this,ye,null),w(this,Qe,null),w(this,$r,0),w(this,lr,0),w(this,ht,!1),w(this,Ci,new Set),w(this,Ai,new Set),w(this,Ze,null),w(this,Mo,pc(()=>(k(Ze,this,ur(s($r,this))),()=>{k(Ze,this,null)}))),k(we,this,e),k(Ae,this,r),k(rt,this,o=>{var n=S;n.b=this,n.f|=128,t(o)}),this.parent=S.b,this.transform_error=i??this.parent?.transform_error??(o=>o),k(oe,this,Gi(()=>{if(C){const o=s(Mi,this);zt();const n=o.data==="[!";if(o.data.startsWith("[?")){const a=JSON.parse(o.data.slice(2));x(H,this,gc).call(this,a)}else n?x(H,this,yc).call(this):x(H,this,mc).call(this)}else x(H,this,Vn).call(this)},hc)),C&&k(we,this,A)}defer_effect(e){cn(e,s(Ci,this),s(Ai,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(Ae,this).pending}update_pending_count(e,r){x(H,this,Bn).call(this,e,r),k($r,this,s($r,this)+e),s(Ze,this)&&!s(ht,this)&&(k(ht,this,!0),Ye(()=>{k(ht,this,!1),s(Ze,this)&&qr(s(Ze,this),s($r,this))}))}get_effect_pending(){return s(Mo,this).call(this),d(s(Ze,this))}error(e){if(!s(Ae,this).onerror&&!s(Ae,this).failed)throw e;$?.is_fork?(s(_e,this)&&$.skip_effect(s(_e,this)),s(ae,this)&&$.skip_effect(s(ae,this)),s(ye,this)&&$.skip_effect(s(ye,this)),$.oncommit(()=>{x(H,this,Co).call(this,e)})):x(H,this,Co).call(this,e)}};function mc(){try{k(_e,this,de(()=>s(rt,this).call(this,s(we,this))))}catch(e){this.error(e)}}function gc(e){const r=s(Ae,this).failed,{reset:t,invoke_onerror:i}=x(H,this,Hn).call(this,e);Ye(i),r&&k(ye,this,de(()=>{r(s(we,this),()=>e,()=>t)}))}function Hn(e){var r=!1,t=!1;const i=()=>{if(r){ms();return}r=!0,t&&Os(),s(ye,this)!==null&&hr(s(ye,this),()=>{k(ye,this,null)}),x(H,this,Yi).call(this,()=>{x(H,this,Vn).call(this)})};return{reset:i,invoke_onerror:()=>{try{t=!0,s(Ae,this).onerror?.(e,i),t=!1}catch(o){Pe(o,s(oe,this)&&s(oe,this).parent)}}}}function yc(){const e=s(Ae,this).pending;e&&(this.is_pending=!0,k(ae,this,de(()=>e(s(we,this)))),Ye(()=>{var r=k(Qe,this,document.createDocumentFragment()),t=ne(),i=!1;if(r.append(t),k(_e,this,x(H,this,Yi).call(this,()=>{try{return de(()=>s(rt,this).call(this,t))}catch(o){try{this.error(o),i=!0}catch(n){Pe(n,s(oe,this).parent)}return null}})),s(_e,this)===null){k(Qe,this,null),i&&x(H,this,Wt).call(this,$);return}s(lr,this)===0&&(s(we,this).before(r),k(Qe,this,null),hr(s(ae,this),()=>{k(ae,this,null)}),x(H,this,Wt).call(this,$))}))}function Vn(){try{if(this.is_pending=this.has_pending_snippet(),k(lr,this,0),k($r,this,0),k(_e,this,de(()=>{s(rt,this).call(this,s(we,this))})),s(lr,this)>0){var e=k(Qe,this,document.createDocumentFragment());Qi(s(_e,this),e);const r=s(Ae,this).pending;k(ae,this,de(()=>r(s(we,this))))}else x(H,this,Wt).call(this,$)}catch(r){this.error(r)}}function Wt(e){this.is_pending=!1,e.transfer_effects(s(Ci,this),s(Ai,this))}function Yi(e){var r=S,t=T,i=W;qe(s(oe,this)),fe(s(oe,this)),Or(s(oe,this).ctx);try{return pr.ensure(),e()}finally{qe(r),fe(t),Or(i)}}function Bn(e,r){if(!this.has_pending_snippet()){if(this.parent){var t;x(H,t=this.parent,Bn).call(t,e,r)}return}k(lr,this,s(lr,this)+e),s(lr,this)===0&&(x(H,this,Wt).call(this,r),s(ae,this)&&hr(s(ae,this),()=>{k(ae,this,null)}),s(Qe,this)&&(s(we,this).before(s(Qe,this)),k(Qe,this,null)))}function Co(e){s(_e,this)&&(Y(s(_e,this)),k(_e,this,null)),s(ae,this)&&(Y(s(ae,this)),k(ae,this,null)),s(ye,this)&&(Y(s(ye,this)),k(ye,this,null)),C&&(Q(s(Mi,this)),en(),Q(Mt()));let r=s(Ae,this).failed;const t=i=>{const{reset:o,invoke_onerror:n}=x(H,this,Hn).call(this,i);n(),r&&k(ye,this,x(H,this,Yi).call(this,()=>{try{return de(()=>{var a=S;a.b=this,a.f|=128,r(s(we,this),()=>i,()=>o)})}catch(a){return Pe(a,s(oe,this).parent),null}}))};Ye(()=>{var i;try{i=this.transform_error(e)}catch(o){Pe(o,s(oe,this)&&s(oe,this).parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(t,o=>Pe(o,s(oe,this)&&s(oe,this).parent)):t(i)})}function kr(e,r){var t=r==null?"":typeof r=="object"?`${r}`:r;t!==(e[yt]??(e[yt]=e.nodeValue))&&(e[yt]=t,e.nodeValue=`${t}`)}function Kn(e,r){return Un(e,r)}function kc(e,r){Ei(),r.intro=r.intro??!1;const t=r.target,i=C,o=A;try{for(var n=ie(t);n&&(n.nodeType!==8||n.data!=="[");)n=Ie(n);if(!n)throw Ar;Le(!0),Q(n);const a=Un(e,{...r,anchor:n});return Le(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
22
|
-
`).some(c=>c.startsWith("https://svelte.dev/e/")))throw a;return a!==
|
|
23
|
-
\r\f \v\uFEFF`];function Ac(e,r,t){var i=e==null?"":""+e;if(r&&(i=i?i+" "+r:r),t){for(var o of Object.keys(t))if(t[o])i=i?i+" "+o:o;else if(i.length)for(var n=o.length,a=0;(a=i.indexOf(o,a))>=0;){var c=a+n;(a===0||Oo.includes(i[a-1]))&&(c===i.length||Oo.includes(i[c]))?i=(a===0?"":i.substring(0,a))+i.substring(c+1):a=c}}return i===""?null:i}function Po(e,r=!1){var t=r?" !important;":";",i="";for(var o of Object.keys(e)){var n=e[o];n!=null&&n!==""&&(i+=" "+o+": "+n+t)}return i}function ai(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Oc(e,r){if(r){var t="",i,o;if(Array.isArray(r)?(i=r[0],o=r[1]):i=r,e){e=String(e).replaceAll(/\/\*.*?\*\//g,"").trim();var n=!1,a=0,c=!1,l=[];i&&l.push(...Object.keys(i).map(ai)),o&&l.push(...Object.keys(o).map(ai));var u=0,f=-1;const y=e.length;for(var p=0;p<y;p++){var b=e[p];if(c?b==="/"&&e[p-1]==="*"&&(c=!1):n?n===b&&(n=!1):b==="/"&&e[p+1]==="*"?c=!0:b==='"'||b==="'"?n=b:b==="("?a++:b===")"&&a--,!c&&n===!1&&a===0){if(b===":"&&f===-1)f=p;else if(b===";"||p===y-1){if(f!==-1){var h=ai(e.substring(u,f).trim());if(!l.includes(h)){b!==";"&&p++;var g=e.substring(u,p).trim();t+=" "+g+";"}}u=p+1,f=-1}}}}return i&&(t+=Po(i)),o&&(t+=Po(o,!0)),t=t.trim(),t===""?null:t}return e==null?null:String(e)}function qo(e,r,t,i,o,n){var a=e[gi];if(C||a!==t||a===void 0){var c=Ac(t,i,n);(!C||c!==e.getAttribute("class"))&&(c==null?e.removeAttribute("class"):r?e.className=c:e.setAttribute("class",c)),e[gi]=t}else if(n&&o!==n)for(var l in n){var u=!!n[l];(o==null||u!==!!o[l])&&e.classList.toggle(l,u)}return n}function si(e,r={},t,i){for(var o in t){var n=t[o];r[o]!==n&&(t[o]==null?e.style.removeProperty(o):e.style.setProperty(o,n,i))}}function wr(e,r,t,i){var o=e[yi];if(C||o!==r){var n=Oc(r,i);(!C||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e[yi]=r}else i&&(Array.isArray(i)?(si(e,t?.[0],i[0]),si(e,t?.[1],i[1],"important")):si(e,t,i));return i}var Pc=Symbol("is custom element"),qc=Symbol("is html"),Ic=bs?"link":"LINK";function Ee(e,r,t,i){var o=Rc(e);C&&(o[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===Ic)||o[r]!==(o[r]=t)&&(r==="loading"&&(e[hs]=t),t==null?e.removeAttribute(r):typeof t!="string"&&Wc(e).has(r)?e[r]=t:e.setAttribute(r,t))}function Rc(e){return e[mi]??(e[mi]={[Pc]:e.nodeName.includes("-"),[qc]:e.namespaceURI==="http://www.w3.org/1999/xhtml"})}var Io=new Map;function Wc(e){var r=e.getAttribute("is")||e.nodeName,t=Io.get(r);if(t)return t;Io.set(r,t=new Set);for(var i,o=e,n=Element.prototype;n!==o;){i=os(o);for(var a in i)i[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&t.add(a);o=Yo(o)}return t}var Gn,Sr=new WeakMap,jt=new WeakMap,ci=new WeakMap,Ro=new WeakSet,Fn=class{constructor(e){Vi(this,Ro),w(this,Sr,new WeakMap),w(this,jt,void 0),w(this,ci,void 0),k(ci,this,e)}observe(e,r){var t=s(Sr,this).get(e)||new Set;return t.add(r),s(Sr,this).set(e,t),x(Ro,this,jc).call(this).observe(e,s(ci,this)),()=>{var i=s(Sr,this).get(e);i.delete(r),i.size===0&&(s(Sr,this).delete(e),s(jt,this).unobserve(e))}}};Gn=Fn;function jc(){return s(jt,this)??k(jt,this,new ResizeObserver(e=>{for(var r of e){Gn.entries.set(r.target,r);for(var t of s(Sr,this).get(r.target)||[])t(r)}}))}I(Fn,"entries",new WeakMap);function li(e,r){return e===r||e?.[Gr]===r}function ui(e=Ni(),r,t,i){var o=W.r,n=S;return Mn(()=>{var a,c;return Ui(()=>{a=c,c=i?.()||[],Rr(()=>{li(t(...c),e)||(r(e,...c),a&&li(t(...a),e)&&r(null,...a))})}),()=>{let l=n;for(;l!==o&&l.parent!==null&&l.parent.f&33554432;)l=l.parent;const u=()=>{c&&li(t(...c),e)&&r(null,...c)},f=l.teardown;l.teardown=()=>{u(),f?.()}}}),e}var mt=!1;function Lc(e){var r=mt;try{return mt=!1,[e(),mt]}finally{mt=r}}function Wo(e,r,t,i){var o=!it||(t&2)!==0,n=(t&8)!==0,a=(t&16)!==0,c=i,l=!0,u=void 0,f=()=>a&&o?(u??(u=Xr(i)),d(u)):(l&&(l=!1,c=a?Rr(i):i),c);let p;if(n){var b=Gr in e||Zo in e;p=ar(e,r)?.set??(b&&r in e?E=>e[r]=E:void 0)}var h,g=!1;n?[h,g]=Lc(()=>e[r]):h=e[r],h===void 0&&i!==void 0&&(h=f(),p&&(o&&Ts(r),p(h)));var y;if(o?y=()=>{var E=e[r];return E===void 0?f():(l=!0,E)}:y=()=>{var E=e[r];return E!==void 0&&(c=void 0),E===void 0?c:E},o&&(t&4)===0)return y;if(p){var v=e.$$legacy;return(function(E,Z){return arguments.length>0?((!o||!Z||v||g)&&p(Z?y():E),E):y()})}var m=!1,P=((t&1)!==0?Xr:zi)(()=>(m=!1,y()));n&&d(P);var O=S;return(function(E,Z){if(arguments.length>0){const K=Z?d(P):o&&n?Mr(E):E;return j(P,K),m=!0,c!==void 0&&(c=K),E}return ze&&m||(O.f&16384)!==0?P.v:d(P)})}function Nc(e){return new Dc(e)}var er=new WeakMap,Te=new WeakMap,Dc=class{constructor(e){w(this,er,void 0),w(this,Te,void 0);var r=new Map,t=(o,n)=>{var a=kn(n,!1,!1);return r.set(o,a),a};const i=new Proxy({...e.props||{},$$events:{}},{get(o,n){return d(r.get(n)??t(n,Reflect.get(o,n)))},has(o,n){return n===Zo?!0:(d(r.get(n)??t(n,Reflect.get(o,n))),Reflect.has(o,n))},set(o,n,a){return j(r.get(n)??t(n,a),a),Reflect.set(o,n,a)}});k(Te,this,(e.hydrate?kc:Kn)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError})),(!e?.props?.$$host||e.sync===!1)&&$i(),k(er,this,i.$$events);for(const o of Object.keys(s(Te,this)))o==="$set"||o==="$destroy"||o==="$on"||Yr(this,o,{get(){return s(Te,this)[o]},set(n){s(Te,this)[o]=n},enumerable:!0});s(Te,this).$set=o=>{Object.assign(i,o)},s(Te,this).$destroy=()=>{wc(s(Te,this))}}$set(e){s(Te,this).$set(e)}$on(e,r){s(er,this)[e]=s(er,this)[e]||[];const t=(...i)=>r.call(this,...i);return s(er,this)[e].push(t),()=>{s(er,this)[e]=s(er,this)[e].filter(i=>i!==t)}}$destroy(){s(Te,this).$destroy()}},Qn;typeof HTMLElement=="function"&&(Qn=class extends HTMLElement{constructor(e,r,t){super(),I(this,"$$ctor",void 0),I(this,"$$s",void 0),I(this,"$$c",void 0),I(this,"$$cn",!1),I(this,"$$d",{}),I(this,"$$r",!1),I(this,"$$p_d",{}),I(this,"$$l",{}),I(this,"$$l_u",new Map),I(this,"$$me",void 0),I(this,"$$shadowRoot",null),this.$$ctor=e,this.$$s=r,t&&(this.$$shadowRoot=this.attachShadow(t))}addEventListener(e,r,t){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const i=this.$$c.$on(e,r);this.$$l_u.set(r,i)}super.addEventListener(e,r,t)}removeEventListener(e,r,t){if(super.removeEventListener(e,r,t),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(i){return o=>{const n=Bi("slot");i!=="default"&&(n.name=i),Ue(o,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},t=zc(this);for(const i of this.$$s)i in t&&(i==="default"&&!this.$$d.children?(this.$$d.children=e(i),r.default=!0):r[i]=e(i));for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=wt(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Nc({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Js(()=>{Ui(()=>{this.$$r=!0;for(const i of Et(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const o=wt(i,this.$$d[i],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,o)}this.$$r=!1})});for(const i in this.$$l)for(const o of this.$$l[i]){const n=this.$$c.$on(i,o);this.$$l_u.set(o,n)}this.$$l={}}}attributeChangedCallback(e,r,t){this.$$r||(e=this.$$g_p(e),this.$$d[e]=wt(e,t,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Et(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function wt(e,r,t,i){const o=t[e]?.type;if(r=o==="Boolean"&&typeof r!="boolean"?r!=null:r,!i||!t[e])return r;if(i==="toAttribute")switch(o){case"Object":case"Array":return r==null?null:JSON.stringify(r);case"Boolean":return r?"":null;case"Number":return r??null;default:return r}else switch(o){case"Object":case"Array":return r&&JSON.parse(r);case"Boolean":return r;case"Number":return r!=null?+r:r;default:return r}}function zc(e){const r={};return e.childNodes.forEach(t=>{r[t.slot||"default"]=!0}),r}function Hc(e,r,t,i,o,n){let a=class extends Qn{constructor(){super(e,t,o),this.$$p_d=r}static get observedAttributes(){return Et(r).map(c=>(r[c].attribute||c).toLowerCase())}};return Et(r).forEach(c=>{Yr(a.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(l){l=wt(c,l,r),this.$$d[c]=l;var u=this.$$c;u&&(ar(u,c)?.get?u[c]=l:u.$set({[c]:l}))}})}),i.forEach(c=>{Yr(a.prototype,c,{get(){return this.$$c?.[c]}})}),n&&(a=n(a)),e.element=a,a}var Vc=at('<div class="pie-tool-color-scheme__current svelte-1k3xgut"><div class="pie-tool-color-scheme__preview svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-bg svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-text svelte-1k3xgut">A</div> <div class="pie-tool-color-scheme__preview-primary svelte-1k3xgut"></div></div></div> <div class="pie-tool-color-scheme__current-info svelte-1k3xgut"><div class="pie-tool-color-scheme__current-name svelte-1k3xgut"> </div> <div class="pie-tool-color-scheme__current-description svelte-1k3xgut"> </div></div> <svg class="pie-tool-color-scheme__dropdown-arrow svelte-1k3xgut" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M7,10L12,15L17,10H7Z"></path></svg></div>'),Bc=lc('<svg xmlns="http://www.w3.org/2000/svg" class="pie-tool-color-scheme__check svelte-1k3xgut" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"></polyline></svg>'),Kc=at('<button type="button" role="menuitem"><div class="pie-tool-color-scheme__preview svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-bg svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-text svelte-1k3xgut">A</div> <div class="pie-tool-color-scheme__preview-primary svelte-1k3xgut"></div></div></div> <div class="pie-tool-color-scheme__info svelte-1k3xgut"><div class="pie-tool-color-scheme__name svelte-1k3xgut"> </div> <div class="pie-tool-color-scheme__description svelte-1k3xgut"> </div></div> <!></button>'),Uc=at('<div id="pie-tool-color-scheme-menu" class="pie-tool-color-scheme__dropdown svelte-1k3xgut" role="menu"></div>'),Gc=at('<div class="pie-tool-color-scheme svelte-1k3xgut" role="dialog" tabindex="-1"><div class="pie-tool-color-scheme__content svelte-1k3xgut"><p class="pie-tool-color-scheme__description svelte-1k3xgut"> </p> <button type="button" class="pie-tool-color-scheme__dropdown-trigger svelte-1k3xgut" aria-haspopup="menu" aria-controls="pie-tool-color-scheme-menu"><!></button> <p id="pie-tool-color-scheme-status" role="status" aria-live="polite"><!></p> <!></div></div>'),Fc=at('<div style="display: none;" aria-hidden="true"></div> <!>',1),Qc={hash:"svelte-1k3xgut",code:`.pie-tool-color-scheme.svelte-1k3xgut {position:relative;width:100%;height:100%;min-height:0;background-color:var(--pie-background, white);display:flex;flex-direction:column;}.pie-tool-color-scheme__content.svelte-1k3xgut {padding:1rem;position:relative;display:flex;flex-direction:column;gap:1rem;min-height:0;overflow:auto;}.pie-tool-color-scheme__description.svelte-1k3xgut {margin:0 0 1rem 0;color:var(--pie-text, black);font-size:0.875rem;}.pie-tool-color-scheme__dropdown-trigger.svelte-1k3xgut {width:100%;padding:0.75rem;border:2px solid var(--pie-button-border, #767676);border-radius:0.5rem;background-color:var(--pie-button-bg, white);color:var(--pie-button-color, black);cursor:pointer;transition:all 0.15s ease;}.pie-tool-color-scheme__dropdown-trigger.svelte-1k3xgut:hover {border-color:var(--pie-button-hover-border, #767676);background-color:var(--pie-button-hover-bg, #f0f0f0);color:var(--pie-button-hover-color, black);}.pie-tool-color-scheme__current.svelte-1k3xgut {display:flex;align-items:center;gap:0.75rem;}.pie-tool-color-scheme__current-info.svelte-1k3xgut {flex:1;text-align:left;}.pie-tool-color-scheme__current-name.svelte-1k3xgut {font-size:0.875rem;font-weight:600;color:inherit;}.pie-tool-color-scheme__current-description.svelte-1k3xgut {font-size:0.75rem;color:inherit;}.pie-tool-color-scheme__status.svelte-1k3xgut {margin:0;padding:0.75rem;border:2px solid var(--pie-button-border, #767676);border-radius:0.5rem;background-color:var(--pie-button-bg, #f0f0f0);color:var(--pie-button-color, #000000);font-size:0.875rem;line-height:1.4;}.pie-tool-color-scheme__status--empty.svelte-1k3xgut {display:block;width:0;height:0;padding:0;margin:0;overflow:hidden;border:0;}.pie-tool-color-scheme__dropdown-arrow.svelte-1k3xgut {width:1.5rem;height:1.5rem;flex-shrink:0;}.pie-tool-color-scheme__dropdown.svelte-1k3xgut {position:relative;width:100%;max-height:24rem;background-color:var(--pie-background, white);border:2px solid var(--pie-border, #ccc);border-radius:0.5rem;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);overflow-y:auto;overflow-x:hidden;margin-top:0.5rem;}.pie-tool-color-scheme__option.svelte-1k3xgut {display:flex;align-items:center;gap:0.75rem;width:100%;padding:0.75rem 1rem;border:none;background-color:transparent;color:var(--pie-text, black);cursor:pointer;text-align:left;transition:background-color 0.15s ease;}.pie-tool-color-scheme__option.svelte-1k3xgut:hover {background-color:var(--pie-button-hover-bg, rgba(0, 0, 0, 0.05));color:var(--pie-button-hover-color, black);}.pie-tool-color-scheme__option--active.svelte-1k3xgut {background-color:var(--pie-button-active-bg, #f3f4f6);color:var(--pie-button-color, var(--pie-text, #374151));}.pie-tool-color-scheme__option.svelte-1k3xgut:disabled {outline:2px dashed var(--pie-button-border, #767676);outline-offset:-2px;background-color:var(--pie-button-bg, #f0f0f0);color:var(--pie-button-color, #000000);cursor:not-allowed;}.pie-tool-color-scheme__preview.svelte-1k3xgut {flex-shrink:0;width:2.5rem;height:2.5rem;border:2px solid var(--pie-border, #ccc);border-radius:0.25rem;overflow:hidden;}.pie-tool-color-scheme__preview-bg.svelte-1k3xgut {width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;background-color:#ffffff;}.pie-tool-color-scheme__preview-text.svelte-1k3xgut {font-weight:700;font-size:1.25rem;color:#000000;}.pie-tool-color-scheme__preview-primary.svelte-1k3xgut {position:absolute;bottom:0;right:0;width:0.75rem;height:0.75rem;border-radius:50%;background-color:#3f51b5;}.pie-tool-color-scheme__info.svelte-1k3xgut {flex:1;}.pie-tool-color-scheme__name.svelte-1k3xgut {font-size:0.875rem;font-weight:600;color:inherit;line-height:1.25;}.pie-tool-color-scheme__info.svelte-1k3xgut .pie-tool-color-scheme__description:where(.svelte-1k3xgut) {font-size:0.75rem;color:inherit;}.pie-tool-color-scheme__check.svelte-1k3xgut {flex-shrink:0;width:1rem;height:1rem;color:currentColor;}
|
|
21
|
+
tomato turquoise violet wheat white whitesmoke yellow yellowgreen`.split(/\s+/)),zt=String.raw`[+-]?(?:\d+|\d*\.\d+)(?:e[+-]?\d+)?`,Xt=new RegExp(`^${zt}$`,"i"),Nr=new RegExp(`^${zt}%$`,"i"),We=new RegExp(`^${zt}%?$`,"i"),ao=new RegExp(`^${zt}(?:deg|grad|rad|turn)?$`,"i"),Vo=/[ \t\n\f\r]+/,Pa=new Set(["srgb","srgb-linear","display-p3","a98-rgb","prophoto-rgb","rec2020","xyz","xyz-d50","xyz-d65"]);function Oa(e){return Object.freeze({...e})}function Ia(e){return Object.freeze(e.map(r=>Object.freeze({...r})))}function St(e){return e.replace(/^[ \t\n\f\r]+|[ \t\n\f\r]+$/g,"")}function qa(e){for(let r=0;r<e.length;r+=1)if(e.charCodeAt(r)>127)return!1;return!0}function kr(e,r,t=!1){if(e.includes("/"))return!1;const i=e.includes(",");if(i&&!t)return!1;const o=(i?e.split(","):St(e).split(Vo)).map(St);return o.length===r.length&&o.every((n,a)=>n.length>0&&r[a]?.test(n))}function so(e){if(!e||!qa(e))return!1;const r=St(e).toLowerCase();if(!r)return!1;if(/^#[\da-f]{3}$/i.test(r)||/^#[\da-f]{6}$/i.test(r)||Ca.has(r))return!0;const t=/^([a-z-]+)\(([^()]*)\)$/.exec(r);if(!t)return!1;const[,i,o]=t;if(!i||o===void 0)return!1;switch(i){case"rgb":return o.includes(",")?kr(o,[Xt,Xt,Xt],!0)||kr(o,[Nr,Nr,Nr],!0):kr(o,[We,We,We]);case"hsl":case"hwb":return kr(o,[ao,Nr,Nr],i==="hsl");case"lab":case"oklab":return kr(o,[We,We,We]);case"lch":case"oklch":return kr(o,[We,We,ao]);case"color":{if(o.includes(",")||o.includes("/"))return!1;const[n,...a]=St(o).split(Vo);return!!(n&&Pa.has(n)&&a.length===3&&a.every(c=>We.test(c)))}default:return!1}}function Bo(e){const r={...vi("light"),...e.variables},t=r["--pie-background"];so(t)||(r["--pie-background"]="#ffffff");for(const i of["--pie-text","--pie-primary"])so(r[i])||(r[i]=vi("light")[i]);return Object.freeze({id:e.id,name:e.name,description:e.description,kind:"custom",preview:qi(r)})}function Ra(){return Object.freeze({generation:Aa,schemes:Object.freeze([Ea(),...No().map(zo),...Array.from(Ho.values(),Bo)])})}var Ko=Ra();function Uo(e){const r=[e.code,e.schemeId??"",e.token??"",e.message].join("|");no.has(r)||(no.add(r),console.warn(`[pie-theme] ${e.message}`))}function Wa(e){const r=e?.trim();return r&&r!=="default"?r:"default"}function ja(e){if(!e||typeof e!="object")return{};const r={};for(const[t,i]of Object.entries(e))t.startsWith("--")&&(typeof i=="string"&&i.trim()?r[t]=i.trim():typeof i=="number"&&Number.isFinite(i)&&(r[t]=String(i)));return r}function Da(){return Ko}function Go(e){oo.add(e);try{e(Ko)}catch{Uo({code:"observer-error",severity:"warning",message:"A color-scheme observer threw while receiving an update."})}let r=!0;return()=>{r&&(r=!1,oo.delete(e))}}function La(e={}){const r=e.baseTheme==="dark"?"dark":"light",t=Wa(e.requestedScheme),i=$t(e.providerVariables),o=ja(e.variables),n={...vi(r),...i},a=new Set;let c=null,l="default";const u=[];if(t!=="default"){const p=Sa(t),h=Ho.get(t);if(p){Object.assign(n,p.variables);for(const b of Object.keys(p.variables))a.add(b);c=zo(p),l="built-in"}else if(h){n["--pie-fixed-hue-collapse"]="100%",Object.assign(n,h.variables);for(const b of Object.keys(h.variables))a.add(b);c=Bo(h),l="custom"}else l="unavailable",u.push({code:"unknown-scheme",severity:"warning",message:`Requested color scheme "${t}" is unavailable; the base theme and provider remain active.`,schemeId:t})}Object.assign(n,o);for(const p of Object.keys(o))a.add(p);a.size>0&&u.push(...$a(n,t==="default"?void 0:t,a));for(const p of u)Uo(p);const f=l==="built-in"||l==="custom"?xa(n):null;return Object.freeze({baseTheme:r,requestedScheme:t,resolvedScheme:c,status:l,variables:Oa(n),colorScheme:f,diagnostics:Ia(u)})}var Na=4.5;var co=5;function Zt(e){const r=e/255;return r<=.03928?r/12.92:((r+.055)/1.055)**2.4}function lo(e){return .2126*Zt(e.r)+.7152*Zt(e.g)+.0722*Zt(e.b)}function Mr(e,r){const t=lo(e),i=lo(r);return(Math.max(t,i)+.05)/(Math.min(t,i)+.05)}function mi(e,r,t){return`color-mix(in srgb, ${e} ${t}%, ${r})`}function za(){if(typeof document>"u")return null;const e=document.createElement("canvas");e.width=1,e.height=1;const r=e.getContext?.("2d",{willReadFrequently:!0});return r?t=>{const i=t.trim();if(!i)return null;try{r.fillStyle="#000000",r.fillStyle=i;const o=r.fillStyle;if(r.fillStyle="#ffffff",r.fillStyle=i,r.fillStyle!==o)return null;r.clearRect(0,0,1,1),r.fillRect(0,0,1,1);const n=r.getImageData(0,0,1,1).data;return{r:n[0],g:n[1],b:n[2],a:n[3]/255}}catch{return null}}:null}function uo(e){const{hue:r,text:t,background:i,measure:o}=e;if(!r)return;if(!t)return r;const n=e.minimum??4.5,a=e.unmeasuredHueWeight??30,c=()=>mi(r,t,a);if(!o||!i)return c();const l=o(i),u=o(r);if(!l||!u||l.a<1||u.a<1)return c();if(Mr(u,l)>=n)return r;for(let f=95;f>=co;f-=co){const p=mi(r,t,f),h=o(p);if(!h)return c();if(Mr(h,l)>=n)return p}return t}var fo=1;function Ha(e){const{fill:r,text:t,background:i,measure:o}=e;if(!r)return;if(!t||!i||!o)return r;const n=e.minimum??3,a=e.textMinimum??4.5,c=o(i),l=o(t),u=o(r);if(!c||!l||!u||c.a<1||l.a<1||u.a<1||Mr(u,c)>=n||Mr(l,u)<a)return r;let f=r;for(let p=99;p>=fo;p-=fo){const h=mi(r,t,p),b=o(h);if(!b||Mr(l,b)<a)return f;if(f=h,Mr(b,c)>=n)return h}return f}var Va={base100:"--color-base-100",base200:"--color-base-200",base300:"--color-base-300",baseContent:"--color-base-content",primary:"--color-primary",secondary:"--color-secondary",accent:"--color-accent",neutral:"--color-neutral",neutralContent:"--color-neutral-content",success:"--color-success",error:"--color-error",warning:"--color-warning"},Ve=(e,r)=>({token:e,kind:"legible",from:r,minimum:Na,fallbackWeight:30}),wr=(e,r)=>({token:e,kind:"legible",from:r,minimum:3,fallbackWeight:35}),W=(e,r)=>({token:e,kind:"direct",from:r}),be=(e,r,t,i)=>({token:e,kind:"mix",from:r,towards:t,weight:i}),Ba=[W("--pie-background","base100"),W("--pie-background-dark","base200"),W("--pie-secondary-background","base200"),W("--pie-dropdown-background","base300"),be("--pie-surface","base300","base100",70),W("--pie-text","baseContent"),W("--pie-primary","primary"),be("--pie-primary-light","primary","base100",60),be("--pie-primary-dark","primary","baseContent",75),be("--pie-faded-primary","primary","base100",20),W("--pie-secondary","secondary"),be("--pie-secondary-light","secondary","base100",60),be("--pie-secondary-dark","secondary","baseContent",75),W("--pie-tertiary","accent"),be("--pie-tertiary-light","accent","base100",60),wr("--pie-border","base300"),W("--pie-border-light","base200"),wr("--pie-border-dark","neutral"),wr("--pie-border-gray","base300"),Ve("--pie-correct","success"),be("--pie-correct-secondary","success","base100",20),Ve("--pie-correct-tertiary","success"),Ve("--pie-correct-icon","success"),Ve("--pie-content-emphasis","error"),Ve("--pie-incorrect","error"),be("--pie-incorrect-secondary","error","base100",20),Ve("--pie-incorrect-icon","error"),Ve("--pie-missing","warning"),Ve("--pie-missing-icon","warning"),W("--pie-disabled","base300"),W("--pie-disabled-secondary","base200"),be("--pie-focus-checked","primary","base100",20),W("--pie-focus-checked-border","primary"),W("--pie-focus-unchecked","base200"),W("--pie-focus-unchecked-border","base300"),W("--pie-blue-grey-100","base100"),{token:"--pie-blue-grey-300",kind:"state-fill",from:"base200"},W("--pie-blue-grey-600","base300"),W("--pie-blue-grey-900","baseContent"),W("--pie-black","neutralContent"),W("--pie-white","base100"),W("--pie-button-bg","base100"),wr("--pie-button-border","base300"),W("--pie-button-color","baseContent"),W("--pie-button-hover-bg","base200"),wr("--pie-button-hover-border","base300"),W("--pie-button-hover-color","baseContent"),be("--pie-button-active-bg","base300","base100",70),wr("--pie-button-focus-outline","primary")];function Ka(e){const{read:r,measure:t}=e,i={};for(const o of Ba){const n=r(o.from);if(!n)continue;let a;if(o.kind==="direct")a=n;else if(o.kind==="mix"){const c=r(o.towards);a=c?`color-mix(in srgb, ${n} ${o.weight}%, ${c})`:void 0}else o.kind==="state-fill"?a=Ha({fill:n,text:r("baseContent"),background:r("base100"),measure:t}):(a=uo({hue:n,text:r("baseContent"),background:r("base100"),measure:t,minimum:o.minimum,unmeasuredHueWeight:o.fallbackWeight}),o.token==="--pie-button-focus-outline"&&t&&i["--pie-surface"]&&(a=uo({hue:a,text:r("baseContent"),background:i["--pie-surface"],measure:t,minimum:o.minimum,unmeasuredHueWeight:o.fallbackWeight})));a&&(i[o.token]=a)}return i}var po;(po=globalThis).PIE_THEME_PROVIDERS??(po.PIE_THEME_PROVIDERS={adapters:new Map,observers:new Set});var Et=globalThis.PIE_THEME_PROVIDERS.adapters,ho=globalThis.PIE_THEME_PROVIDERS.observers;function kt(e){const r=e.trim();return r||void 0}var ei;function Ua(){return ei===void 0&&(ei=za()),ei}function Ga(e){return $t(Ka({read:r=>kt(e.getPropertyValue(Va[r])),measure:Ua()}))}var ri={id:"daisyui",canRead(e){const r=getComputedStyle(e);return!!(kt(r.getPropertyValue("--color-base-100"))||kt(r.getPropertyValue("--color-base-content"))||kt(r.getPropertyValue("--color-primary")))},read(e){return Ga(getComputedStyle(e))}};Et.has(ri.id)||Et.set(ri.id,ri);function Fa(e){ho.add(e);let r=!0;return()=>{r&&(r=!1,ho.delete(e))}}function Qa(e){const r=e.provider?.trim()||"auto";if(r==="none")return{};const t=o=>{if(r!=="auto"){const n=Et.get(r);return!n||!n.canRead(o)?{}:$t(n.read(o))}for(const n of Et.values())if(n.canRead(o))return $t(n.read(o));return{}},i=t(e.target);return Object.keys(i).length>0?i:typeof document<"u"&&e.target!==document.documentElement?t(document.documentElement):{}}var bo="(prefers-color-scheme: dark)",Ya=typeof HTMLElement>"u"?class{}:HTMLElement;function Ja(e,r){if(!customElements.get(e))try{customElements.define(e,r)}catch(t){if(!(t instanceof DOMException&&t.name==="NotSupportedError")||!customElements.get(e))throw t}}function gi(e){if(!e)return{};if(typeof e=="string")try{return gi(JSON.parse(e))}catch{return{}}if(typeof e!="object")return{};const r={};for(const[t,i]of Object.entries(e))t.startsWith("--")&&(typeof i=="string"&&i.trim()?r[t]=i.trim():typeof i=="number"&&Number.isFinite(i)&&(r[t]=String(i)));return r}function Ri(e,r,t){r?e.style.setProperty("color-scheme",r):t?e.style.setProperty("color-scheme",t.value,t.priority):e.style.removeProperty("color-scheme")}var Xe=new Map,Fe=null,Wi=new Set;function Xa(e,r){Fe??(Fe={dataTheme:e.getAttribute("data-theme"),dataColorScheme:e.getAttribute("data-color-scheme"),colorScheme:e.style.getPropertyValue("color-scheme")?{value:e.style.getPropertyValue("color-scheme"),priority:e.style.getPropertyPriority("color-scheme")}:null,variables:new Map});for(const t of r){if(Fe.variables.has(t))continue;const i=e.style.getPropertyValue(t);Fe.variables.set(t,i?{value:i,priority:e.style.getPropertyPriority(t)}:null)}}function Fo(e){for(const t of Wi)e.style.removeProperty(t);const r=Fe;if(r)for(const[t,i]of r.variables)i?e.style.setProperty(t,i.value,i.priority):e.style.removeProperty(t)}function vo(e,r){Xa(e,Object.keys(r.variables)),Fo(e),e.setAttribute("data-theme",r.dataTheme),r.dataColorScheme?e.setAttribute("data-color-scheme",r.dataColorScheme):e.removeAttribute("data-color-scheme"),Ri(e,r.colorScheme,Fe?.colorScheme??null);for(const[t,i]of Object.entries(r.variables))e.style.setProperty(t,i);Wi=new Set(Object.keys(r.variables))}function Za(e){const r=Fe;r&&(r.dataTheme===null?e.removeAttribute("data-theme"):e.setAttribute("data-theme",r.dataTheme),r.dataColorScheme===null?e.removeAttribute("data-color-scheme"):e.setAttribute("data-color-scheme",r.dataColorScheme),Ri(e,null,r.colorScheme),Fo(e),Fe=null,Wi.clear())}var es=class extends Ya{constructor(...e){super(...e),He(this,"mediaQuery",null),He(this,"onMediaChange",()=>this.applyTheme()),He(this,"previousKeys",new Set),He(this,"previousTarget",null),He(this,"variablesOverride",{}),He(this,"promoteDocumentOwnership",!1),He(this,"stopObservingSchemes",null),He(this,"stopObservingProviders",null)}static get observedAttributes(){return["theme","scope","provider","scheme","variables"]}get theme(){const e=this.getAttribute("theme");return Ta(e)?e:"light"}set theme(e){this.setAttribute("theme",e)}get scope(){const e=this.getAttribute("scope");return Ma(e)?e:"self"}set scope(e){this.setAttribute("scope",e)}get variables(){return{...this.variablesOverride}}set variables(e){this.variablesOverride=gi(e),this.setAttribute("variables",JSON.stringify(this.variablesOverride))}get provider(){return this.getAttribute("provider")?.trim()||"auto"}set provider(e){this.setAttribute("provider",e||"auto")}get scheme(){return this.getAttribute("scheme")?.trim()||"default"}set scheme(e){this.setAttribute("scheme",e||"default")}connectedCallback(){this.style.display||(this.style.display="contents"),this.setupAutoThemeListener(),this.stopObservingProviders??(this.stopObservingProviders=Fa(()=>this.applyTheme())),this.stopObservingSchemes??(this.stopObservingSchemes=Go(()=>this.applyTheme()))}disconnectedCallback(){this.mediaQuery&&this.mediaQuery.removeEventListener("change",this.onMediaChange),this.mediaQuery=null,this.stopObservingSchemes?.(),this.stopObservingSchemes=null,this.stopObservingProviders?.(),this.stopObservingProviders=null,this.clearPreviousTarget()}attributeChangedCallback(e,r,t){r!==t&&(e==="variables"&&(this.variablesOverride=gi(t)),e==="theme"&&this.setupAutoThemeListener(),this.promoteDocumentOwnership=!0,this.applyTheme())}getTarget(){return this.scope==="document"?document.documentElement:this}applyTheme(){if(!this.isConnected||typeof document>"u"||typeof window>"u")return;const{effectiveTheme:e,dataTheme:r}=this.resolveThemeState(),t=this.getTarget();this.previousTarget&&this.previousTarget!==t&&this.clearPreviousTarget();const i=this.scheme==="default"?null:this.scheme,o=this.resolveProviderVariablesForState(t,r,i),n=La({baseTheme:e,providerVariables:o,requestedScheme:this.scheme,variables:this.variablesOverride}),a=Object.freeze({dataTheme:r,dataColorScheme:i,colorScheme:n.colorScheme,variables:n.variables});if(this.scope==="document")this.promoteDocumentOwnership&&Xe.has(this)&&Xe.delete(this),Xe.set(this,a),this.promoteDocumentOwnership=!1,[...Xe.entries()].at(-1)?.[0]===this&&vo(t,a);else{t.setAttribute("data-theme",r),a.dataColorScheme?t.setAttribute("data-color-scheme",a.dataColorScheme):t.removeAttribute("data-color-scheme"),Ri(t,a.colorScheme,null),this.clearPreviousKeys(t);for(const[c,l]of Object.entries(n.variables))t.style.setProperty(c,l)}this.previousTarget=t,this.previousKeys=new Set(Object.keys(n.variables))}resolveProviderVariablesForState(e,r,t){const i=(a,c)=>{c===null?e.removeAttribute(a):e.setAttribute(a,c)},o=e.getAttribute("data-theme"),n=e.getAttribute("data-color-scheme");i("data-theme",r),i("data-color-scheme",t);try{return Qa({target:e,provider:this.provider})}finally{i("data-theme",o),i("data-color-scheme",n)}}resolveThemeState(){const e=this.getAttribute("theme")?.trim();if(e==="auto"){const r=window.matchMedia(bo).matches?"dark":"light";return{effectiveTheme:r,dataTheme:r}}return e==="dark"||e==="light"?{effectiveTheme:e,dataTheme:e}:e?{effectiveTheme:"light",dataTheme:e}:{effectiveTheme:"light",dataTheme:"light"}}clearPreviousTarget(){if(!this.previousTarget)return;const e=this.previousTarget;if(e===document.documentElement&&Xe.has(this)){Xe.delete(this);const r=[...Xe.values()].at(-1);r?vo(e,r):Za(e)}else this.clearPreviousKeys(e),e.removeAttribute("data-theme"),e.removeAttribute("data-color-scheme"),e.style.removeProperty("color-scheme");this.previousTarget=null,this.previousKeys.clear()}clearPreviousKeys(e){for(const r of this.previousKeys)e.style.removeProperty(r)}setupAutoThemeListener(){typeof window>"u"||(this.mediaQuery&&(this.mediaQuery.removeEventListener("change",this.onMediaChange),this.mediaQuery=null),this.isConnected&&this.getAttribute("theme")?.trim()==="auto"&&(this.mediaQuery=window.matchMedia(bo),this.mediaQuery.addEventListener("change",this.onMediaChange)))}};function rs(e="pie-theme"){typeof customElements>"u"||Ja(e,es)}var ts="pie-color-scheme";function Qo(e){if(typeof document>"u")return null;let r=e instanceof Element?e:null;for(;r;){const t=r.closest("pie-theme");if(t)return t;const i=r.getRootNode();r=i instanceof ShadowRoot?i.host:null}return document.querySelector('pie-theme[scope="document"]')||document.querySelector("pie-theme")}function is(e,r={}){if(typeof document>"u")return;const t=(e||"default").trim()||"default",i=Qo(r.from);if(i)i.getAttribute("scheme")!==t&&i.setAttribute("scheme",t);else{const o=document.documentElement;t==="default"?o.removeAttribute("data-color-scheme"):o.setAttribute("data-color-scheme",t)}if(r.persistenceKey!==null)try{if(typeof localStorage>"u")return;localStorage.setItem(r.persistenceKey??ts,t)}catch{}}rs();if(typeof window<"u"){var mo,go;((mo=(go=window).__svelte??(go.__svelte={})).v??(mo.v=new Set)).add("5")}var Ye={},H=Symbol("uninitialized"),Yo=Array.isArray,os=Array.prototype.indexOf,Tt=Array.prototype.includes,Ht=Array.from,Mt=Object.keys,Xr=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,ns=Object.getOwnPropertyDescriptors,as=Object.prototype,ss=Array.prototype,Jo=Object.getPrototypeOf,yo=Object.isExtensible,cs=()=>{};function ls(e){for(var r=0;r<e.length;r++)e[r]()}function Xo(){var e,r;return{promise:new Promise((t,i)=>{e=t,r=i}),resolve:e,reject:r}}function Zr(e){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zr(e)}function us(e,r){if(Zr(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(Zr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function ds(e){var r=us(e,"string");return Zr(r)=="symbol"?r:r+""}function R(e,r,t){return(r=ds(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ue=1024,xe=2048,hr=4096,ji=8192,Zo=16384,Di=32768,yi=1<<25,Li=65536,Dr=1<<19,fs=1<<20,Fr=1<<25,ko=1<<21,ps=1<<22,At=1<<23,Qr=Symbol("$state"),en=Symbol("component"),rn=Symbol("legacy props"),hs=Symbol(""),ki=Symbol("attributes"),wi=Symbol("class"),_i=Symbol("style"),wt=Symbol("text"),ot=new class extends Error{constructor(...e){super(...e),R(this,"name","StaleReactionError"),R(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},bs=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function vs(){console.warn("https://svelte.dev/e/derived_inert")}function Vt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ms(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var A=!1;function De(e){A=e}var C;function Q(e){if(e===null)throw Vt(),Ye;return C=e}function Bt(){return Q(qe(C))}function J(e){if(A){if(qe(C)!==null)throw Vt(),Ye;C=e}}function tn(e=1){if(A){for(var r=e,t=C;r--;)t=qe(t);C=t}}function Ct(e=!0){for(var r=0,t=C;;){if(t.nodeType===8){var i=t.data;if(i==="]"){if(r===0)return t;r-=1}else(i==="["||i==="[!"||i[0]==="["&&!isNaN(Number(i.slice(1))))&&(r+=1)}var o=qe(t);e&&t.remove(),t=o}}function Ni(e){if(!e||e.nodeType!==8)throw Vt(),Ye;return e.data}function on(e){return e===this.v}function gs(e,r){return e!=e?r==r:e!==r||e!==null&&typeof e=="object"||typeof e=="function"}function nn(e){return!gs(e,this.v)}function ys(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ks(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ws(e,r,t){throw new Error("https://svelte.dev/e/each_key_duplicate")}function _s(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function $s(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ss(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Es(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ts(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ms(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function As(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Cs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ps(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var Kt=!1,nt=!1,j=null;function Ir(e){j=e}function an(e,r=!1,t){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:$,l:nt&&!r?{s:null,u:null,$:[]}:null}}function sn(e){var r=j,t=r.e;if(t!==null){r.e=null;for(var i of t)Mn(i)}return e!==void 0&&(r.x=e),r.i=!0,j=r.p,zi(e)}function zi(e={}){return Xr(e,en,{value:!0}),e}function at(){return!nt||j!==null&&j.l===null}var nr=[];function cn(){var e=nr;nr=[],ls(e)}function Je(e){if(nr.length===0&&!Yr){var r=nr;queueMicrotask(()=>{r===nr&&cn()})}nr.push(e)}function Os(){for(;nr.length>0;)cn()}var Is=~(xe|hr|ue);function N(e,r){e.f=e.f&Is|r}function Hi(e){(e.f&512)!==0||e.deps===null?N(e,ue):N(e,hr)}function ln(e,r,t){(e.f&2048)!==0?r.add(e):e.f&4096&&t.add(e),N(e,ue)}function Ut(e){var r=E,t=$;fe(null),Ie(null);try{return e()}finally{fe(r),Ie(t)}}function qs(e,r,t,i){const o=at()?et:Vi;var n=e.filter(b=>!b.settled),a=r.map(o);if(t.length===0&&n.length===0){i(a);return}var c=$,l=Rs(),u=n.length===1?n[0].promise:n.length>1?Promise.all(n.map(b=>b.promise)):null;function f(b){if((c.f&16384)===0){l();try{i([...a,...b])}catch(g){Oe(g,c)}Pt()}}var p=un();if(t.length===0){u.then(()=>f([])).finally(p);return}function h(){Promise.all(t.map(b=>Ws(b))).then(f).catch(b=>Oe(b,c)).finally(p)}u?u.then(()=>{if((c.f&16384)!==0){p();return}l(),h(),Pt()}):h()}function Rs(){var e=$,r=E,t=j,i=T;return function(o=!0){Ie(e),fe(r),Ir(t),o&&!(e.f&16384)&&(i?.activate(),i?.apply())}}function Pt(e=!0){Ie(null),fe(null),Ir(null),e&&T?.deactivate()}function un(){var e=$,r=e.b,t=T,i=!!r?.is_rendered();return r?.update_pending_count(1,t),t.increment(i,e),()=>{r?.update_pending_count(-1,t),t.decrement(i,e)}}function et(e){var r=2|xe;return $!==null&&($.f|=Dr),{ctx:j,deps:null,effects:null,equals:on,f:r,fn:e,reactions:null,rv:0,v:H,wv:0,parent:$,ac:null}}var Kr=Symbol("obsolete");function Ws(e,r,t){let i=$;i===null&&ks();var o=void 0,n=fr(H),a=!E,c=new Set;return Zs(()=>{var l=$,u=Xo();o=u.promise;try{Promise.resolve(e()).then(u.resolve,b=>{b!==ot&&u.reject(b)}).finally(Pt)}catch(b){u.reject(b),Pt()}var f=T;if(a){if((l.f&32768)!==0)var p=un();if(i.b?.is_rendered())f.async_deriveds.get(l)?.reject(Kr);else for(const b of c.values())b.reject(Kr);c.add(u),f.async_deriveds.set(l,u)}const h=(b,g=void 0)=>{p?.(),c.delete(u),g!==Kr&&(f.activate(),g?(n.f|=At,Rr(n,g)):(n.f&8388608&&(n.f^=At),Rr(n,b)),f.deactivate())};u.promise.then(h,b=>h(null,b||"unknown"))}),Ys(()=>{for(const l of c)l.reject(Kr)}),new Promise(l=>{function u(f){function p(){f===o?l(n):u(o)}f.then(p,p)}u(o)})}function Ze(e){const r=et(e);return qn(r),r}function Vi(e){const r=et(e);return r.equals=nn,r}function js(e){var r=e.effects;if(r!==null){e.effects=null;for(var t=0;t<r.length;t+=1)Y(r[t])}}function Bi(e){var r,t=$,i=e.parent;if(!ze&&i!==null&&e.v!==H&&(i.f&24576)!==0)return vs(),e.v;Ie(i);try{js(e),r=Dn(e)}finally{Ie(t)}return r}function dn(e){var r=Bi(e);if(!e.equals(r)&&(e.wv=Wn(),(!T?.is_fork||e.deps===null)&&(T!==null?(T.capture(e,r,!0),Or?.capture(e,r,!0)):e.v=r,e.deps===null))){N(e,ue);return}ze||(G!==null?(Gi()||T?.is_fork)&&G.set(e,r):Hi(e))}function Ds(e){if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&(r.teardown?.(),r.ac!==null&&Ut(()=>{r.ac.abort(ot),r.ac=null}),r.fn!==null&&(r.teardown=cs),tt(r,0),Yi(r))}function fn(e){if(e.effects!==null)for(const r of e.effects)r.teardown&&r.fn!==null&&Wr(r)}function pn(e,r){if(r.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ki(e,r){pn(e,r),r.add(e)}function _(e,r,t){pn(e,r),r.set(e,t)}function w(e,r,t){if(typeof e=="function"?e===r:e.has(r))return arguments.length<3?r:t;throw new TypeError("Private element is not present on this object")}function k(e,r,t){return e.set(w(e,r),t),t}function s(e,r){return e.get(w(e,r))}var hn,xi=null,$r=null,T=null,Or=null,G=null,$i=null,Yr=!1,ti=!1,rt=null,Ot=null,bn=0,Ls=1,Si=new WeakMap,cr=new WeakMap,Ar=new WeakMap,It=new WeakMap,ft=new WeakMap,Sr=new WeakMap,tr=new WeakMap,Ur=new WeakMap,Ae=new WeakMap,wo=new WeakMap,qr=new WeakMap,Le=new WeakMap,Ge=new WeakMap,ii=new WeakMap,pt=new WeakMap,z=new WeakSet,br=class vn{constructor(){Ki(this,z),R(this,"id",Ls++),_(this,Si,!1),R(this,"linked",!0),_(this,cr,null),_(this,Ar,null),R(this,"async_deriveds",new Map),R(this,"current",new Map),R(this,"previous",new Map),_(this,It,new Set),_(this,ft,new Set),_(this,Sr,0),_(this,tr,new Map),_(this,Ur,null),_(this,Ae,[]),_(this,wo,[]),_(this,qr,new Set),_(this,Le,new Set),_(this,Ge,new Map),_(this,ii,new Set),R(this,"is_fork",!1),_(this,pt,!1),$r===null?xi=$r=this:(k(Ar,$r,this),k(cr,this,$r)),$r=this}skip_effect(r){s(Ge,this).has(r)||s(Ge,this).set(r,{d:[],m:[]}),s(ii,this).delete(r)}unskip_effect(r,t=i=>this.schedule(i)){var i=s(Ge,this).get(r);if(i){s(Ge,this).delete(r);for(var o of i.d)N(o,xe),t(o);for(o of i.m)N(o,hr),t(o)}s(ii,this).add(r)}capture(r,t,i=!1){r.v!==H&&!this.previous.has(r)&&this.previous.set(r,r.v),!(r.f&8388608)&&(this.current.set(r,[t,i]),G?.set(r,t)),this.is_fork||(r.v=t)}activate(){T=this}deactivate(){T=null,G=null}flush(){try{ti=!0,T=this,w(z,this,qt).call(this)}finally{bn=0,$i=null,rt=null,Ot=null,ti=!1,T=null,G=null,Pe.clear()}}discard(){for(const r of s(ft,this))r(this);s(ft,this).clear();for(const r of this.async_deriveds.values())r.reject(Kr);w(z,this,Rt).call(this),s(Ur,this)?.resolve()}register_created_effect(r){s(wo,this).push(r)}increment(r,t){if(k(Sr,this,s(Sr,this)+1),r){let i=s(tr,this).get(t)??0;s(tr,this).set(t,i+1)}}decrement(r,t){if(k(Sr,this,s(Sr,this)-1),r){let i=s(tr,this).get(t)??0;i===1?s(tr,this).delete(t):s(tr,this).set(t,i-1)}s(pt,this)||(k(pt,this,!0),Je(()=>{k(pt,this,!1),this.linked&&this.flush()}))}transfer_effects(r,t){for(const i of r)s(qr,this).add(i);for(const i of t)s(Le,this).add(i);r.clear(),t.clear()}oncommit(r){s(It,this).add(r)}ondiscard(r){s(ft,this).add(r)}settled(){return(s(Ur,this)??k(Ur,this,Xo())).promise}static ensure(){if(T===null){const r=T=new vn;!ti&&!Yr&&Je(()=>{s(Si,r)||r.flush()})}return T}apply(){if(!Kt||!this.is_fork&&s(cr,this)===null&&s(Ar,this)===null){G=null;return}G=new Map;for(const[t,[i]]of this.current)G.set(t,i);for(let t=xi;t!==null;t=s(Ar,t))if(!(t===this||t.is_fork)){var r=!1;if(t.id<this.id){for(const[i,[,o]]of t.current)if(!o&&this.current.has(i)){r=!0;break}}if(!r)for(const[i,o]of t.previous)G.has(i)||G.set(i,o)}}schedule(r){if($i=r,r.b?.is_pending&&(r.f&16777228)!==0&&(r.f&32768)===0){r.b.defer_effect(r);return}s(Ae,this).push(r)}};hn=br;function _o(){if(this.is_fork)return!0;for(const t of s(tr,this).keys()){for(var e=t,r=!1;e.parent!==null;){if(s(Ge,this).has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1}function Ns(){var e=[];for(const o of s(Ae,this))if(!((o.f&16384)!==0||(o.f&6144)===0)){for(var r=o,t=!1;r.parent!==null;){r=r.parent;var i=r.f;if((i&96)!==0){if((i&1024)===0){t=!0;break}r.f^=ue}}t||e.push(r)}return k(Ae,this,[]),e}function qt(){k(Si,this,!0);for(const a of s(qr,this))s(Le,this).delete(a),N(a,xe),this.schedule(a);for(const a of s(Le,this))N(a,hr),this.schedule(a);this.apply();for(var e=rt=[],r=[],t=Ot=[];s(Ae,this).length>0;){bn++>1e3&&(w(z,this,Rt).call(this),Bs());for(const a of w(z,this,Ns).call(this))try{w(z,this,zs).call(this,a,e,r)}catch(c){throw yn(a),w(z,this,_o).call(this)||this.discard(),c}}if(T=null,t.length>0){var i=hn.ensure();for(const a of t)i.schedule(a)}if(rt=null,Ot=null,w(z,this,_o).call(this)){w(z,this,ht).call(this,r),w(z,this,ht).call(this,e);for(const[a,c]of s(Ge,this))gn(a,c);t.length>0&&w(z,T,qt).call(T);return}const o=w(z,this,Hs).call(this);if(o){w(z,this,ht).call(this,r),w(z,this,ht).call(this,e),w(z,o,Vs).call(o,this);return}s(qr,this).clear(),s(Le,this).clear();for(const a of s(It,this))a(this);s(It,this).clear(),Or=this,xo(r),xo(e),Or=null,s(Ur,this)?.resolve();var n=T;if(s(Sr,this)===0&&(s(Ae,this).length===0||n!==null)&&w(z,this,Rt).call(this),s(Ae,this).length>0)if(n!==null){for(const a of s(Ae,this))s(Ae,n).push(a);k(Ae,this,[])}else n=this;n!==null&&(Pe.clear(),w(z,n,qt).call(n))}function zs(e,r,t){e.f^=ue;for(var i=e.first;i!==null;){var o=i.f,n=(o&96)!==0;if(!(n&&(o&1024)!==0||(o&8192)!==0||s(Ge,this).has(i))&&i.fn!==null){n?i.f^=ue:(o&4)!==0?r.push(i):Kt&&(o&16777224)!==0?t.push(i):st(i)&&(o&16&&s(Le,this).add(i),Wr(i));var a=i.first;if(a!==null){i=a;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}function Hs(){for(var e=s(cr,this);e!==null;){if(!e.is_fork){for(const[r,[,t]]of this.current)if(e.current.has(r)&&!t)return e}e=s(cr,e)}return null}function Vs(e){for(const[t,i]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,i);for(const[t,i]of e.async_deriveds){const o=this.async_deriveds.get(t);o&&i.promise.then(o.resolve).catch(o.reject)}e.async_deriveds.clear(),this.transfer_effects(s(qr,e),s(Le,e));const r=t=>{var i=t.reactions;if(i!==null&&!((t.f&2)!==0&&(t.f&6144)===0))for(const a of i){var o=a.f;if((o&2)!==0)r(a);else{var n=a;o&4194320&&!this.async_deriveds.has(n)&&(s(Le,this).delete(n),N(n,xe),this.schedule(n))}}};for(const t of this.current.keys())r(t);this.oncommit(()=>e.discard()),w(z,e,Rt).call(e),T=this,w(z,this,qt).call(this)}function ht(e){for(var r=0;r<e.length;r+=1)ln(e[r],s(qr,this),s(Le,this))}function Rt(){if(this.linked){var e=s(cr,this),r=s(Ar,this);e===null?xi=r:k(Ar,e,r),r===null?$r=e:k(cr,r,e),this.linked=!1}}function Wt(e){var r=Yr,t=Or;Or=null,Yr=!0;try{var i;for(e&&(Wt(),i=e());;){if(Os(),T===null)return i;T.flush()}}finally{Yr=r,Or=t}}function Bs(){try{Ss()}catch(e){Oe(e,$i)}}var Me=null;function xo(e){var r=e.length;if(r!==0){for(var t=0;t<r;){var i=e[t++];if((i.f&24576)===0&&st(i)&&(Me=new Set,Wr(i),i.deps===null&&i.first===null&&i.nodes===null&&i.teardown===null&&i.ac===null&&Pn(i),Me?.size>0)){Pe.clear();for(const o of Me){if((o.f&24576)!==0)continue;const n=[o];let a=o.parent;for(;a!==null;)Me.has(a)&&(Me.delete(a),n.push(a)),a=a.parent;for(let c=n.length-1;c>=0;c--){const l=n[c];!(l.f&24576)&&Wr(l)}}Me.clear()}}Me=null}}function mn(e){T.schedule(e)}function gn(e,r){if(!((e.f&32)!==0&&(e.f&1024)!==0)){(e.f&2048)!==0?r.d.push(e):e.f&4096&&r.m.push(e),N(e,ue);for(var t=e.first;t!==null;)gn(t,r),t=t.next}}function yn(e){N(e,ue);for(var r=e.first;r!==null;)yn(r),r=r.next}var jt=new Set,Pe=new Map,kn=!1;function fr(e,r){return{f:0,v:e,reactions:null,equals:on,rv:0,wv:0}}function F(e,r){const t=fr(e,r);return qn(t),t}function wn(e,r=!1,t=!0){const i=fr(e);if(r||(i.equals=nn),nt&&t&&j!==null&&j.l!==null){var o;((o=j.l).s??(o.s=[])).push(i)}return i}function D(e,r,t=!1){return E!==null&&(!ge||E.f&131072)&&at()&&E.f&4325394&&(ke===null||!ke.has(e))&&Cs(),Rr(e,t?Cr(r):r,Ot)}var or=null,Ei=0;function Rr(e,r,t=null){if(!e.equals(r)){ze?Pe.set(e,r):Pe.has(e)||Pe.set(e,e.v);var i=br.ensure();if(i.capture(e,r),(e.f&2)!==0){const o=e;e.f&2048&&Bi(o),G===null&&Hi(o)}e.wv=Wn(),or=null,Ei=0,_n(e,xe,t),or=null,at()&&$!==null&&$.f&1024&&!($.f&96)&&(le===null?ic([e]):le.push(e)),!i.is_fork&&jt.size>0&&!kn&&Ks()}return r}function Ks(){kn=!1;for(const e of jt){e.f&1024&&N(e,hr);let r;try{r=st(e)}catch{r=!0}r&&Wr(e)}jt.clear()}function Jr(e){D(e,e.v+1)}function _n(e,r,t){var i=e.reactions;if(i!==null){var o=at(),n=i.length;if(Ei+=n,Ei>1e5&&or===null&&(or=new Set),or!==null){if(or.has(e))return;or.add(e)}for(var a=0;a<n;a++){var c=i[a],l=c.f;if(!(!o&&c===$)){var u=(l&xe)===0;if(u&&N(c,r),(l&131072)!==0)jt.add(c);else if((l&2)!==0){var f=c;G?.delete(f),_n(f,hr,t)}else if(u){var p=c;l&16&&Me!==null&&Me.add(p),t!==null?t.push(p):mn(p)}}}}}function Cr(e){if(typeof e!="object"||e===null||Qr in e||en in e)return e;const r=Jo(e);if(r!==as&&r!==ss)return e;var t=new Map,i=Yo(e),o=F(0),n=null,a=lr,c=l=>{if(lr===a)return l();var u=E,f=lr;fe(null),Eo(a);var p=l();return fe(u),Eo(f),p};return i&&t.set("length",F(e.length,n)),new Proxy(e,{defineProperty(l,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Ms();var p=t.get(u);return p===void 0?c(()=>{var h=F(f.value,n);return t.set(u,h),h}):D(p,f.value,!0),!0},deleteProperty(l,u){var f=t.get(u);if(f===void 0){if(u in l){const p=c(()=>F(H,n));t.set(u,p),Jr(o)}}else D(f,H),Jr(o);return!0},get(l,u,f){if(u===Qr)return e;var p=t.get(u),h=u in l;if(p===void 0&&(!h||sr(l,u)?.writable)&&(p=c(()=>F(Cr(h?l[u]:H),n)),t.set(u,p)),p!==void 0){var b=d(p);return b===H?void 0:b}return Reflect.get(l,u,f)},getOwnPropertyDescriptor(l,u){this.has?.(l,u);var f=Reflect.getOwnPropertyDescriptor(l,u),p=t.get(u);if(p!==void 0){var h=d(p);if(h===H)return;if(f&&"value"in f)f.value=h;else return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(l,u){if(u===Qr)return!0;var f=t.get(u),p=f!==void 0&&f.v!==H||Reflect.has(l,u);return(f!==void 0||$!==null&&(!p||sr(l,u)?.writable))&&(f===void 0&&(f=c(()=>F(p?Cr(l[u]):H,n)),t.set(u,f)),d(f)===H)?!1:p},set(l,u,f,p){var h=t.get(u),b=u in l;if(i&&u==="length")for(var g=f;g<h.v;g+=1){var m=t.get(g+"");m!==void 0?D(m,H):g in l&&(m=c(()=>F(H,n)),t.set(g+"",m))}if(h===void 0)(!b||sr(l,u)?.writable)&&(h=c(()=>F(void 0,n)),D(h,Cr(f)),t.set(u,h));else{b=h.v!==H;var v=c(()=>Cr(f));D(h,v)}var y=Reflect.getOwnPropertyDescriptor(l,u);if(y?.set&&y.set.call(p,f),!b){if(i&&typeof u=="string"){var O=t.get("length"),P=Number(u);Number.isInteger(P)&&P>=O.v&&D(O,P+1)}Jr(o)}return!0},ownKeys(l){d(o);var u=Reflect.ownKeys(l).filter(h=>{var b=t.get(h);return b===void 0||b.v!==H});for(var[f,p]of t)p.v!==H&&!(f in l)&&u.push(f);return u},setPrototypeOf(){As()}})}var $o,xn,$n,Sn;function Ti(){if($o===void 0){$o=window,xn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,r=Node.prototype,t=Text.prototype;$n=sr(r,"firstChild").get,Sn=sr(r,"nextSibling").get,yo(e)&&(e[wi]=void 0,e[ki]=null,e[_i]=void 0,e.__e=void 0),yo(t)&&(t[wt]=void 0)}}function ne(e=""){return document.createTextNode(e)}function oe(e){return $n.call(e)}function qe(e){return Sn.call(e)}function te(e,r){if(!A)return oe(e);var t=oe(C);if(t===null)t=C.appendChild(ne());else if(r&&t.nodeType!==3){var i=ne();return t?.before(i),Q(i),i}return r&&Gt(t),Q(t),t}function Us(e,r=!1){if(!A){var t=oe(e);return t instanceof Comment&&t.data===""?qe(t):t}if(r){if(C?.nodeType!==3){var i=ne();return C?.before(i),Q(i),i}Gt(C)}return C}function zr(e,r=!1){if(!A)return oe(e);var t=te(e,r);return J(e),t}function ve(e,r=1,t=!1){let i=A?C:e;for(var o;r--;)o=i,i=qe(i);if(!A)return i;if(t){if(i?.nodeType!==3){var n=ne();return i===null?o?.after(n):i.before(n),Q(n),n}Gt(i)}return Q(i),i}function En(e){e.textContent=""}function Tn(){return!Kt||Me!==null?!1:($.f&Di)!==0}function Ui(e,r,t){return r==null||r==="http://www.w3.org/1999/xhtml"?t?document.createElement(e,{is:t}):document.createElement(e):t?document.createElementNS(r,e,{is:t}):document.createElementNS(r,e)}function Gt(e){if(e.nodeValue.length<65536)return;let r=e.nextSibling;for(;r!==null&&r.nodeType===3;)r.remove(),e.nodeValue+=r.nodeValue,r=e.nextSibling}function Gs(e){var r=$;if(r===null)return E.f|=At,e;if((r.f&32768)===0&&(r.f&4)===0)throw e;Oe(e,r)}function Oe(e,r){if(e===Ye)throw e;if(!(r!==null&&(r.f&16384)!==0)){for(;r!==null;){if((r.f&128)!==0&&(r.f&33570816)===0){if((r.f&32768)===0)throw e;try{r.b.error(e);return}catch(t){e=t}}r=r.parent}throw e}}function Fs(e){$===null&&(E===null&&$s(e),xs()),ze&&_s(e)}function Qs(e,r){var t=r.last;t===null?r.last=r.first=e:(t.next=e,e.prev=t,r.last=e)}function Re(e,r){var t=$;t!==null&&t.f&8192&&(e|=ji);var i={ctx:j,deps:null,nodes:null,f:e|xe|512,first:null,fn:r,last:null,next:null,parent:t,b:t&&t.b,prev:null,teardown:null,wv:0,ac:null};T?.register_created_effect(i);var o=i;if((e&4)!==0)rt!==null?rt.push(i):br.ensure().schedule(i);else if(r!==null){try{Wr(i)}catch(a){throw Y(i),a}o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&!(o.f&524288)&&(o=o.first,e&16&&e&65536&&o!==null&&(o.f|=Li))}if(o!==null&&(o.parent=t,t!==null&&Qs(o,t),E!==null&&(E.f&2)!==0&&(e&64)===0)){var n=E;(n.effects??(n.effects=[])).push(o)}return i}function Gi(){return E!==null&&!ge}function Ys(e){const r=Re(8,null);return N(r,ue),r.teardown=e,r}function ir(e){Fs("$effect");var r=$.f;if(!E&&(r&32)!==0&&j!==null&&!j.i){var t=j;(t.e??(t.e=[])).push(e)}else return Mn(e)}function Mn(e){return Re(4|fs,e)}function Js(e){br.ensure();const r=Re(64|Dr,e);return()=>{Y(r)}}function Xs(e){br.ensure();const r=Re(64|Dr,e);return(t={})=>new Promise(i=>{t.outro?vr(r,()=>{Y(r),i(void 0)}):(Y(r),i(void 0))})}function An(e){return Re(4,e)}function Zs(e){return Re(ps|Dr,e)}function Fi(e,r=0){return Re(8|r,e)}function bt(e,r=[],t=[],i=[]){qs(i,r,t,o=>{Re(8,()=>{e(...o.map(d))})})}function Qi(e,r=0){return Re(16|r,e)}function de(e){return Re(32|Dr,e)}function Cn(e){var r=e.teardown;if(r!==null){const t=ze,i=E;So(!0),fe(null);try{r.call(null)}catch(o){Oe(o,e.parent)}finally{So(t),fe(i)}}}function Yi(e,r=!1){var t=e.first;for(e.first=e.last=null;t!==null;){const o=t.ac;o!==null&&Ut(()=>{o.abort(ot)});var i=t.next;(t.f&64)!==0?t.parent=null:Y(t,r),t=i}}function ec(e){for(var r=e.first;r!==null;){var t=r.next;!(r.f&32)&&Y(r),r=t}}function Y(e,r=!0){var t=!1;(r||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(rc(e.nodes.start,e.nodes.end),t=!0),e.f|=yi,Yi(e,r&&!t),tt(e,0);var i=e.nodes&&e.nodes.t;if(i!==null)for(const n of i)n.stop();Cn(e),e.f^=yi,e.f|=Zo;var o=e.parent;o!==null&&o.first!==null&&Pn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function rc(e,r){for(;e!==null;){var t=e===r?null:qe(e);e.remove(),e=t}}function Pn(e){var r=e.parent,t=e.prev,i=e.next;t!==null&&(t.next=i),i!==null&&(i.prev=t),r!==null&&(r.first===e&&(r.first=i),r.last===e&&(r.last=t))}function vr(e,r,t=!0){var i=[];e.f|=256,On(e,i,!0);var o=()=>{t&&Y(e),r&&r()},n=i.length;if(n>0){var a=()=>--n||o();for(var c of i)c.out(a)}else o()}function On(e,r,t){if((e.f&8192)===0){e.f^=ji;var i=e.nodes&&e.nodes.t;if(i!==null)for(const c of i)(c.is_global||t)&&r.push(c);for(var o=e.first;o!==null;){var n=o.next;if((o.f&64)===0){var a=(o.f&65536)!==0||(o.f&32)!==0&&(e.f&16)!==0;On(o,r,a?t:!1)}o=n}}}function Dt(e){e.f&=-257,In(e,!0)}function In(e,r){if((e.f&256)===0&&(e.f&8192)!==0){e.f^=ji,!(e.f&1024)&&(N(e,xe),br.ensure().schedule(e));for(var t=e.first;t!==null;){var i=t.next,o=(t.f&65536)!==0||(t.f&32)!==0;In(t,o?r:!1),t=i}var n=e.nodes&&e.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&a.in()}}function Ji(e,r){if(e.nodes)for(var t=e.nodes.start,i=e.nodes.end;t!==null;){var o=t===i?null:qe(t);r.append(t),t=o}}var tc=null,ze=!1;function So(e){ze=e}var E=null,ge=!1;function fe(e){E=e}var $=null;function Ie(e){$=e}var ke=null;function qn(e){E!==null&&(E.f&2097152||E.f&2)&&(ke??(ke=new Set)).add(e)}var X=null,ie=0,le=null;function ic(e){le=e}var Rn=1,ar=0,lr=ar;function Eo(e){lr=e}function Wn(){return++Rn}function st(e){var r=e.f;if((r&2048)!==0)return!0;if((r&4096)!==0){for(var t=e.deps,i=t.length,o=0;o<i;o++){var n=t[o];if(st(n)&&dn(n),n.wv>e.wv)return!0}r&512&&G===null&&N(e,ue)}return!1}function jn(e,r,t=!0){var i=e.reactions;if(i!==null&&!(!Kt&&ke!==null&&ke.has(e)))for(var o=0;o<i.length;o++){var n=i[o];(n.f&2)!==0?jn(n,r,!1):r===n&&(t?N(n,xe):n.f&1024&&N(n,hr),mn(n))}}function Dn(e){var r=X,t=ie,i=le,o=E,n=ke,a=j,c=ge,l=lr,u=e.f;X=null,ie=0,le=null,E=(u&96)===0?e:null,ke=null,Ir(e.ctx),ge=!1,lr=++ar,e.ac!==null&&(Ut(()=>{e.ac.abort(ot)}),e.ac=null);try{e.f|=ko;var f=e.fn,p=f();e.f|=Di;var h=To(e);if(at()&&le!==null&&!ge&&h!==null&&(e.f&6146)===0)for(var b=0;b<le.length;b++)jn(le[b],e);if(o!==null&&o!==e){if(ar++,o.deps!==null)for(let g=0;g<t;g+=1)o.deps[g].rv=ar;if(r!==null)for(const g of r)g.rv=ar;le!==null&&(i===null?i=le:i.push(...le))}return e.f&8388608&&(e.f^=At),p}catch(g){return To(e),Gs(g)}finally{e.f^=ko,X=r,ie=t,le=i,E=o,ke=n,Ir(a),ge=c,lr=l}}function To(e){var r=e.deps,t=T?.is_fork;if(X!==null){var i;if(t||tt(e,ie),r!==null&&ie>0)for(r.length=ie+X.length,i=0;i<X.length;i++)r[ie+i]=X[i];else e.deps=r=X;if(Gi()&&(e.f&512)!==0)for(i=ie;i<r.length;i++){var o;((o=r[i]).reactions??(o.reactions=[])).push(e)}}else!t&&r!==null&&ie<r.length&&(tt(e,ie),r.length=ie);return r}function oc(e,r){let t=r.reactions;if(t!==null){var i=os.call(t,e);if(i!==-1){var o=t.length-1;o===0?t=r.reactions=null:(t[i]=t[o],t.pop())}}if(t===null&&(r.f&2)!==0&&(X===null||!Tt.call(X,r))){var n=r;n.f&512&&(n.f^=512),n.v!==H&&Hi(n),n.ac!==null&&Ut(()=>{n.ac.abort(ot),n.ac=null,N(n,xe)}),Ds(n),tt(n,0)}}function tt(e,r){var t=e.deps;if(t!==null)for(var i=r;i<t.length;i++)oc(e,t[i])}function Wr(e){var r=e.f;if((r&16384)===0){N(e,ue);var t=$;$=e;try{(r&16777232)!==0?ec(e):Yi(e),Cn(e);var i=Dn(e);e.teardown=typeof i=="function"?i:null,e.wv=Rn}finally{$=t}}}function d(e){var r=(e.f&2)!==0;if(tc?.add(e),E!==null&&!ge&&!($!==null&&($.f&16384)!==0)&&(ke===null||!ke.has(e))){var t=E.deps;if((E.f&2097152)!==0)e.rv<ar&&(e.rv=ar,X===null&&t!==null&&t[ie]===e?ie++:X===null?X=[e]:X.push(e));else{var i;(i=E).deps??(i.deps=[]),Tt.call(E.deps,e)||E.deps.push(e);var o=e.reactions;o===null?e.reactions=[E]:Tt.call(o,E)||o.push(E)}}if(ze&&Pe.has(e))return Pe.get(e);if(r){var n=e;if(ze){var a=n.v;return(!(n.f&1024)&&n.reactions!==null||Nn(n))&&(a=Bi(n)),Pe.set(n,a),a}var c=(n.f&512)===0&&!ge&&E!==null&&(E.f&512)!==0,l=(n.f&Di)===0;st(n)&&(c&&(n.f|=512),dn(n)),c&&!l&&(fn(n),Ln(n))}if(G?.has(e))return G.get(e);if((e.f&8388608)!==0)throw e.v;return e.v}function Ln(e){if(e.f|=512,e.deps!==null)for(const t of e.deps){var r=t.reactions;r===null?t.reactions=[e]:Tt.call(r,e)||r.push(e),t.f&2&&!(t.f&512)&&(fn(t),Ln(t))}}function Nn(e){if(e.v===H)return!0;if(e.deps===null)return!1;for(const r of e.deps)if(Pe.has(r)||(r.f&2)!==0&&Nn(r))return!0;return!1}function jr(e){var r=ge;try{return ge=!0,e()}finally{ge=r}}var Pr=Symbol("events"),zn=new Set,Mi=new Set;function oi(e,r,t){(r[Pr]??(r[Pr]={}))[e]=t}function nc(e){for(var r=0;r<e.length;r++)zn.add(e[r]);for(var t of Mi)t(e)}var ni=null,ai=!1;function Mo(e){var r=this,t=r.ownerDocument,i=e.type,o=e.composedPath?.()||[],n=o[0]||e.target;ni=e,ai||(ai=!0,setTimeout(()=>{ai=!1,ni=null}));var a=0,c=ni===e&&e[Pr];if(c){var l=o.indexOf(c);if(l!==-1&&(r===document||r===window)){e[Pr]=r;return}var u=o.indexOf(r);if(u===-1)return;l<=u&&(a=l)}if(n=o[a]||e.target,n!==r){Xr(e,"currentTarget",{configurable:!0,get(){return n||t}});var f=E,p=$;fe(null),Ie(null);try{for(var h,b=[];n!==null&&n!==r;){try{var g=n[Pr]?.[i];g!=null&&(!n.disabled||e.target===n)&&g.call(n,e)}catch(m){h?b.push(m):h=m}if(e.cancelBubble)break;a++,n=a<o.length?o[a]:null}if(h){for(let m of b)queueMicrotask(()=>{throw m});throw h}}finally{e[Pr]=r,delete e.currentTarget,fe(f),Ie(p)}}}var ac=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function sc(e){return ac?.createHTML(e)??e}function Hn(e){var r=Ui("template");return r.innerHTML=sc(e.replaceAll("<!>","<!---->")),r.content}function Ne(e,r){var t=$;t.nodes===null&&(t.nodes={start:e,end:r,a:null,t:null})}function ct(e,r){var t=(r&1)!==0,i=(r&2)!==0,o,n=!e.startsWith("<!>");return()=>{if(A)return Ne(C,null),C;o===void 0&&(o=Hn(n?e:"<!>"+e),t||(o=oe(o)));var a=i||xn?document.importNode(o,!0):o.cloneNode(!0);if(t){var c=oe(a),l=a.lastChild;Ne(c,l)}else Ne(a,a);return a}}function cc(e,r,t="svg"){var i=!e.startsWith("<!>"),o=(r&1)!==0,n=`<${t}>${i?e:"<!>"+e}</${t}>`,a;return()=>{if(A)return Ne(C,null),C;if(!a){var c=oe(Hn(n));if(o)for(a=document.createDocumentFragment();oe(c);)a.appendChild(oe(c));else a=oe(c)}var l=a.cloneNode(!0);if(o){var u=oe(l),f=l.lastChild;Ne(u,f)}else Ne(l,l);return l}}function lc(e,r){return cc(e,r,"svg")}function uc(e=""){if(!A){var r=ne(e+"");return Ne(r,r),r}var t=C;return t.nodeType!==3?(t.before(t=ne()),Q(t)):Gt(t),Ne(t,t),t}function Ue(e,r){if(A){var t=$;(!(t.f&32768)||t.nodes.end===null)&&(t.nodes.end=C),Bt();return}e!==null&&e.before(r)}var dc=["touchstart","touchmove"];function fc(e){return dc.includes(e)}function pc(e){let r=0,t=fr(0),i;return()=>{Gi()&&(d(t),Fi(()=>(r===0&&(i=jr(()=>e(()=>Jr(t)))),r+=1,()=>{Je(()=>{r-=1,r===0&&(i?.(),i=void 0,Jr(t))})})))}}var hc=Li|Dr;function bc(e,r,t,i){new vc(e,r,t,i)}var we=new WeakMap,Ai=new WeakMap,Ce=new WeakMap,it=new WeakMap,Z=new WeakMap,_e=new WeakMap,ae=new WeakMap,ye=new WeakMap,Qe=new WeakMap,Er=new WeakMap,ur=new WeakMap,vt=new WeakMap,Ci=new WeakMap,Pi=new WeakMap,er=new WeakMap,Ao=new WeakMap,I=new WeakSet,vc=class{constructor(e,r,t,i){Ki(this,I),R(this,"parent",void 0),R(this,"is_pending",!1),R(this,"transform_error",void 0),_(this,we,void 0),_(this,Ai,A?C:null),_(this,Ce,void 0),_(this,it,void 0),_(this,Z,void 0),_(this,_e,null),_(this,ae,null),_(this,ye,null),_(this,Qe,null),_(this,Er,0),_(this,ur,0),_(this,vt,!1),_(this,Ci,new Set),_(this,Pi,new Set),_(this,er,null),_(this,Ao,pc(()=>(k(er,this,fr(s(Er,this))),()=>{k(er,this,null)}))),k(we,this,e),k(Ce,this,r),k(it,this,o=>{var n=$;n.b=this,n.f|=128,t(o)}),this.parent=$.b,this.transform_error=i??this.parent?.transform_error??(o=>o),k(Z,this,Qi(()=>{if(A){const o=Ni(s(Ai,this));Bt();const n=o==="[!";if(o.startsWith("[?")){const a=JSON.parse(o.slice(2));w(I,this,gc).call(this,a)}else n?w(I,this,yc).call(this):w(I,this,mc).call(this)}else w(I,this,Bn).call(this)},hc)),A&&k(we,this,C)}defer_effect(e){ln(e,s(Ci,this),s(Pi,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(Ce,this).pending}update_pending_count(e,r){w(I,this,Kn).call(this,e,r),k(Er,this,s(Er,this)+e),s(er,this)&&!s(vt,this)&&(k(vt,this,!0),Je(()=>{k(vt,this,!1),s(er,this)&&Rr(s(er,this),s(Er,this))}))}get_effect_pending(){return s(Ao,this).call(this),d(s(er,this))}error(e){if(e===Ye||!s(Ce,this).onerror&&!s(Ce,this).failed)throw e;T?.is_fork?(s(_e,this)&&T.skip_effect(s(_e,this)),s(ae,this)&&T.skip_effect(s(ae,this)),s(ye,this)&&T.skip_effect(s(ye,this)),T.oncommit(()=>{w(I,this,dr).call(this)||w(I,this,Co).call(this,e)})):w(I,this,Co).call(this,e)}};function mc(){try{k(_e,this,de(()=>s(it,this).call(this,s(we,this))))}catch(e){this.error(e)}}function gc(e){const r=s(Ce,this).failed,{reset:t,invoke_onerror:i}=w(I,this,Vn).call(this,e);Je(i),r&&k(ye,this,de(()=>{r(s(we,this),()=>e,()=>t)}))}function Vn(e){var r=!1,t=!1;const i=()=>{if(!w(I,this,dr).call(this)){if(r){ms();return}r=!0,t&&Ps(),s(ye,this)!==null&&vr(s(ye,this),()=>{k(ye,this,null)}),w(I,this,Xi).call(this,()=>{w(I,this,Bn).call(this)})}};return{reset:i,invoke_onerror:()=>{if(!w(I,this,dr).call(this))try{t=!0,s(Ce,this).onerror?.(e,i),t=!1}catch(o){Oe(o,s(Z,this)&&s(Z,this).parent)}}}}function dr(){return(s(Z,this).f&(Zo|yi))!==0}function yc(){const e=s(Ce,this).pending;e&&(this.is_pending=!0,k(ae,this,de(()=>e(s(we,this)))),Je(()=>{if(!w(I,this,dr).call(this)){var r=k(Qe,this,document.createDocumentFragment()),t=ne(),i=!1;if(r.append(t),k(_e,this,w(I,this,Xi).call(this,()=>{try{return de(()=>s(it,this).call(this,t))}catch(o){try{this.error(o),i=!0}catch(n){Oe(n,s(Z,this).parent)}return null}})),s(_e,this)===null){k(Qe,this,null),i&&w(I,this,Lt).call(this,T);return}s(ur,this)===0&&(s(we,this).before(r),k(Qe,this,null),vr(s(ae,this),()=>{k(ae,this,null)}),w(I,this,Lt).call(this,T))}}))}function Bn(){try{if(this.is_pending=this.has_pending_snippet(),k(ur,this,0),k(Er,this,0),k(_e,this,de(()=>{s(it,this).call(this,s(we,this))})),s(ur,this)>0){var e=k(Qe,this,document.createDocumentFragment());Ji(s(_e,this),e);const r=s(Ce,this).pending;k(ae,this,de(()=>r(s(we,this))))}else w(I,this,Lt).call(this,T)}catch(r){this.error(r)}}function Lt(e){this.is_pending=!1,e.transfer_effects(s(Ci,this),s(Pi,this))}function Xi(e){var r=$,t=E,i=j;Ie(s(Z,this)),fe(s(Z,this)),Ir(s(Z,this).ctx);try{return br.ensure(),e()}finally{Ie(r),fe(t),Ir(i)}}function Kn(e,r){if(!this.has_pending_snippet()){if(this.parent){var t;w(I,t=this.parent,Kn).call(t,e,r)}return}k(ur,this,s(ur,this)+e),s(ur,this)===0&&(w(I,this,Lt).call(this,r),s(ae,this)&&vr(s(ae,this),()=>{k(ae,this,null)}),s(Qe,this)&&(s(we,this).before(s(Qe,this)),k(Qe,this,null)))}function Co(e){s(_e,this)&&(Y(s(_e,this)),k(_e,this,null)),s(ae,this)&&(Y(s(ae,this)),k(ae,this,null)),s(ye,this)&&(Y(s(ye,this)),k(ye,this,null)),A&&(Q(s(Ai,this)),tn(),Q(Ct()));let r=s(Ce,this).failed;const t=i=>{if(w(I,this,dr).call(this))return;const{reset:o,invoke_onerror:n}=w(I,this,Vn).call(this,i);n(),r&&!w(I,this,dr).call(this)&&k(ye,this,w(I,this,Xi).call(this,()=>{try{return de(()=>{var a=$;a.b=this,a.f|=128,r(s(we,this),()=>i,()=>o)})}catch(a){return Oe(a,s(Z,this).parent),null}}))};Je(()=>{if(!w(I,this,dr).call(this)){var i;try{i=this.transform_error(e)}catch(o){Oe(o,s(Z,this)&&s(Z,this).parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(t,o=>Oe(o,s(Z,this)&&s(Z,this).parent)):t(i)}})}function _r(e,r){var t=r==null?"":typeof r=="object"?`${r}`:r;t!==(e[wt]??(e[wt]=e.nodeValue))&&(e[wt]=t,e.nodeValue=`${t}`)}function Un(e,r){return Gn(e,r)}function kc(e,r){Ti(),r.intro=r.intro??!1;const t=r.target,i=A,o=C;try{for(var n=oe(t);n&&(n.nodeType!==8||n.data!=="[");)n=qe(n);if(!n)throw Ye;De(!0),Q(n);const a=Gn(e,{...r,anchor:n});return De(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
22
|
+
`).some(c=>c.startsWith("https://svelte.dev/e/")))throw a;return a!==Ye&&console.warn("Failed to hydrate: ",a),r.recover===!1&&Es(),Ti(),En(t),De(!1),Un(e,r)}finally{De(i),Q(o)}}var mt=new Map;function Gn(e,{target:r,anchor:t,props:i={},events:o,context:n,intro:a=!0,transformError:c}){Ti();var l=void 0,u=Xs(()=>{var f=t??r.appendChild(ne());bc(f,{pending:()=>{}},b=>{an({});var g=j;if(n&&(g.c=n),o&&(i.$$events=o),A&&Ne(b,null),l=e(b,i)||zi(),A&&($.nodes.end=C,C===null||C.nodeType!==8||C.data!=="]"))throw Vt(),Ye;sn()},c);var p=new Set,h=b=>{for(var g=0;g<b.length;g++){var m=b[g];if(!p.has(m)){p.add(m);var v=fc(m);for(const P of[r,document]){var y=mt.get(P);y===void 0&&(y=new Map,mt.set(P,y));var O=y.get(m);O===void 0?(P.addEventListener(m,Mo,{passive:v}),y.set(m,1)):y.set(m,O+1)}}}};return h(Ht(zn)),Mi.add(h),()=>{for(var b of p)for(const v of[r,document]){var g=mt.get(v),m=g.get(b);--m==0?(v.removeEventListener(b,Mo),g.delete(b),g.size===0&&mt.delete(v)):g.set(b,m)}Mi.delete(h),f!==t&&f.parentNode?.removeChild(f)}});return Oi.set(l,u),l}var Oi=new WeakMap;function wc(e,r){const t=Oi.get(e);return t?(Oi.delete(e),t(r)):Promise.resolve()}var je=new WeakMap,Be=new WeakMap,me=new WeakMap,Hr=new WeakMap,si=new WeakMap,ci=new WeakMap,Po=new WeakMap,_c=class{constructor(e,r=!0){R(this,"anchor",void 0),_(this,je,new Map),_(this,Be,new Map),_(this,me,new Map),_(this,Hr,new Set),_(this,si,!0),_(this,ci,t=>{if(s(je,this).has(t)){var i=s(je,this).get(t),o=s(Be,this).get(i);if(o)Dt(o),s(Hr,this).delete(i);else{var n=s(me,this).get(i);n&&(Dt(n.effect),s(Be,this).set(i,n.effect),s(me,this).delete(i),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),o=n.effect)}for(const[a,c]of s(je,this)){if(s(je,this).delete(a),a===t)break;const l=s(me,this).get(c);l&&(Y(l.effect),s(me,this).delete(c))}for(const[a,c]of s(Be,this)){if(a===i||s(Hr,this).has(a))continue;const l=()=>{if(Array.from(s(je,this).values()).includes(a)){var u=document.createDocumentFragment();Ji(c,u),u.append(ne()),s(me,this).set(a,{effect:c,fragment:u})}else Y(c);s(Hr,this).delete(a),s(Be,this).delete(a)};s(si,this)||!o?(s(Hr,this).add(a),vr(c,l,!1)):l()}}}),_(this,Po,t=>{s(je,this).delete(t);const i=Array.from(s(je,this).values());for(const[o,n]of s(me,this))i.includes(o)||(Y(n.effect),s(me,this).delete(o))}),this.anchor=e,k(si,this,r)}ensure(e,r){var t=T,i=Tn();if(r&&!s(Be,this).has(e)&&!s(me,this).has(e))if(i){var o=document.createDocumentFragment(),n=ne();o.append(n),s(me,this).set(e,{effect:de(()=>r(n)),fragment:o})}else s(Be,this).set(e,de(()=>r(this.anchor)));if(s(je,this).set(t,e),i){for(const[a,c]of s(Be,this))a===e?t.unskip_effect(c):t.skip_effect(c);for(const[a,c]of s(me,this))a===e?t.unskip_effect(c.effect):t.skip_effect(c.effect);t.oncommit(s(ci,this)),t.ondiscard(s(Po,this))}else A&&(this.anchor=C),s(ci,this).call(this,t)}};function xc(e){j===null&&ys("onMount"),nt&&j.l!==null?$c(j).m.push(e):ir(()=>{const r=jr(e);if(typeof r=="function")return r})}function $c(e){var r=e.l;return r.u??(r.u={a:[],b:[],m:[]})}function Vr(e,r,t=!1){var i;A&&(i=C,Bt());var o=new _c(e),n=t?Li:0;function a(c,l){if(A){var u=Ni(i);if(c!==parseInt(u.substring(1))){var f=Ct();Q(f),o.anchor=f,De(!1),o.ensure(c,l),De(!0);return}}o.ensure(c,l)}Qi(()=>{var c=!1;r((l,u=0)=>{c=!0,a(u,l)}),c||a(-1,null)},n)}function Sc(e,r,t){for(var i=[],o=r.length,n,a=r.length,c=0;c<o;c++){let p=r[c];vr(p,()=>{if(n){if(n.pending.delete(p),n.done.add(p),n.pending.size===0){var h=e.outrogroups;Ii(e,Ht(n.done)),h.delete(n),h.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var l=i.length===0&&t!==null&&e.pending.size===0;if(l){var u=t,f=u.parentNode;En(f),f.append(u),e.items.clear()}Ii(e,r,!l)}else n={pending:new Set(r),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(n)}function Ii(e,r,t=!0){var i;if(e.pending.size>0){i=new Set;for(const a of e.pending.values())for(const c of a)i.add(e.items.get(c).e)}for(var o=0;o<r.length;o++){var n=r[o];i?.has(n)?(n.f|=Fr,Ji(n,document.createDocumentFragment())):Y(r[o],t)}}var gt;function Ec(e,r,t,i,o,n=null){var a=e,c=new Map;if((r&4)!==0){var l=e;a=A?Q(oe(l)):l.appendChild(ne())}A&&Bt();var u=null,f=Vi(()=>{var v=t();return Yo(v)?v:v==null?[]:Ht(v)}),p=new Map,h=!0;function b(v){if((m.effect.f&16384)===0){m.pending.delete(v);var y=d(f);m.fallback=u,Tc(m,y,a,r,i),u!==null&&(y.length===0?(u.f&33554432)===0?Dt(u):(u.f^=Fr,Gr(u,null,a)):vr(u,()=>{u=null}))}}function g(v){m.pending.delete(v)}var m={effect:Qi(()=>{var v=d(f),y=v.length;let O=!1;A&&Ni(a)==="[!"!=(y===0)&&(a=Ct(),Q(a),De(!1),O=!0);for(var P=new Set,S=T,ee=Tn(),K=0;K<y;K+=1){A&&C.nodeType===8&&C.data==="]"&&(a=C,O=!0,De(!1));var se=v[K],q=i(se,K),re=h?null:c.get(q);re?(re.v&&Rr(re.v,se),re.i&&Rr(re.i,K),ee&&S.unskip_effect(re.e)):(re=Mc(c,h?a:gt??(gt=ne()),se,q,K,o,r,t),h||(re.e.f|=Fr),c.set(q,re)),P.add(q)}if(y===0&&n&&!u&&(h?u=de(()=>n(a)):(u=de(()=>n(gt??(gt=ne()))),u.f|=Fr)),y>P.size&&ws("","",""),A&&y>0&&Q(Ct()),!h)if(p.set(S,P),ee){for(const[$e,Ft]of c)P.has($e)||S.skip_effect(Ft.e);S.oncommit(b),S.ondiscard(g)}else b(S);O&&De(!0),d(f)}),flags:r,items:c,pending:p,outrogroups:null,fallback:u};h=!1,A&&(a=C)}function Br(e){for(;e!==null&&(e.f&32)===0;)e=e.next;return e}function Tc(e,r,t,i,o){var n=(i&8)!==0,a=r.length,c=e.items,l=Br(e.effect.first),u,f=null,p,h=[],b=[],g,m,v,y;if(n)for(y=0;y<a;y+=1)g=r[y],m=o(g,y),v=c.get(m).e,!(v.f&33554432)&&(v.nodes?.a?.measure(),(p??(p=new Set)).add(v));for(y=0;y<a;y+=1){if(g=r[y],m=o(g,y),v=c.get(m).e,e.outrogroups!==null)for(const $e of e.outrogroups)$e.pending.delete(v),$e.done.delete(v);if(v.f&8192&&(Dt(v),n&&(v.nodes?.a?.unfix(),(p??(p=new Set)).delete(v))),(v.f&33554432)!==0)if(v.f^=Fr,v===l)Gr(v,null,t);else{var O=f?f.next:l;v===e.effect.last&&(e.effect.last=v.prev),v.prev&&(v.prev.next=v.next),v.next&&(v.next.prev=v.prev),Ke(e,f,v),Ke(e,v,O),Gr(v,O,t),f=v,h=[],b=[],l=Br(f.next);continue}if(v!==l){if(u!==void 0&&u.has(v)){if(h.length<b.length){var P=b[0],S;f=P.prev;var ee=h[0],K=h[h.length-1];for(S=0;S<h.length;S+=1)Gr(h[S],P,t);for(S=0;S<b.length;S+=1)u.delete(b[S]);Ke(e,ee.prev,K.next),Ke(e,f,ee),Ke(e,K,P),l=P,f=K,y-=1,h=[],b=[]}else u.delete(v),Gr(v,l,t),Ke(e,v.prev,v.next),Ke(e,v,f===null?e.effect.first:f.next),Ke(e,f,v),f=v;continue}for(h=[],b=[];l!==null&&l!==v;)(u??(u=new Set)).add(l),b.push(l),l=Br(l.next);if(l===null)continue}!(v.f&33554432)&&h.push(v),f=v,l=Br(v.next)}if(e.outrogroups!==null){for(const $e of e.outrogroups)$e.pending.size===0&&(Ii(e,Ht($e.done)),e.outrogroups?.delete($e));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var se=[];if(u!==void 0)for(v of u)!(v.f&8192)&&se.push(v);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&se.push(l),l=Br(l.next);var q=se.length;if(q>0){var re=(i&4)!==0&&a===0?t:null;if(n){for(y=0;y<q;y+=1)se[y].nodes?.a?.measure();for(y=0;y<q;y+=1)se[y].nodes?.a?.fix()}Sc(e,se,re)}}n&&Je(()=>{if(p!==void 0)for(v of p)v.nodes?.a?.apply()})}function Mc(e,r,t,i,o,n,a,c){var l=(a&1)!==0?(a&16)===0?wn(t,!1,!1):fr(t):null,u=(a&2)!==0?fr(o):null;return{v:l,i:u,e:de(()=>(n(r,l??t,u??o,c),()=>{e.delete(i)}))}}function Gr(e,r,t){if(e.nodes)for(var i=e.nodes.start,o=e.nodes.end,n=r&&(r.f&33554432)===0?r.nodes.start:t;i!==null;){var a=qe(i);if(n.before(i),i===o)return;i=a}}function Ke(e,r,t){r===null?e.effect.first=t:r.next=t,t===null?e.effect.last=r:t.prev=r}function Ac(e,r){An(()=>{e=$?.parent?.nodes?.start??e;var t=e.getRootNode(),i=t.host?t:t.head??t.ownerDocument.head;if(!i.querySelector("#"+r.hash)){const o=Ui("style");o.id=r.hash,o.textContent=r.code,i.appendChild(o)}})}var Oo=[...`
|
|
23
|
+
\r\f \v\uFEFF`];function Cc(e,r,t){var i=e==null?"":""+e;if(r&&(i=i?i+" "+r:r),t){for(var o of Object.keys(t))if(t[o])i=i?i+" "+o:o;else if(i.length)for(var n=o.length,a=0;(a=i.indexOf(o,a))>=0;){var c=a+n;(a===0||Oo.includes(i[a-1]))&&(c===i.length||Oo.includes(i[c]))?i=(a===0?"":i.substring(0,a))+i.substring(c+1):a=c}}return i===""?null:i}function Io(e,r=!1){var t=r?" !important;":";",i="";for(var o of Object.keys(e)){var n=e[o];n!=null&&n!==""&&(i+=" "+o+": "+n+t)}return i}function li(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Pc(e,r){if(r){var t="",i,o;if(Array.isArray(r)?(i=r[0],o=r[1]):i=r,e){e=String(e).replaceAll(/\/\*.*?\*\//g,"").trim();var n=!1,a=0,c=!1,l=[];i&&l.push(...Object.keys(i).map(li)),o&&l.push(...Object.keys(o).map(li));var u=0,f=-1;const m=e.length;for(var p=0;p<m;p++){var h=e[p];if(c?h==="/"&&e[p-1]==="*"&&(c=!1):n?n===h&&(n=!1):h==="/"&&e[p+1]==="*"?c=!0:h==='"'||h==="'"?n=h:h==="("?a++:h===")"&&a--,!c&&n===!1&&a===0){if(h===":"&&f===-1)f=p;else if(h===";"||p===m-1){if(f!==-1){var b=li(e.substring(u,f).trim());if(!l.includes(b)){h!==";"&&p++;var g=e.substring(u,p).trim();t+=" "+g+";"}}u=p+1,f=-1}}}}return i&&(t+=Io(i)),o&&(t+=Io(o,!0)),t=t.trim(),t===""?null:t}return e==null?null:String(e)}function qo(e,r,t,i,o,n){var a=e[wi];if(A||a!==t||a===void 0){var c=Cc(t,i,n);(!A||c!==e.getAttribute("class"))&&(c==null?e.removeAttribute("class"):r?e.className=c:e.setAttribute("class",c)),e[wi]=t}else if(n&&o!==n)for(var l in n){var u=!!n[l];(o==null||u!==!!o[l])&&e.classList.toggle(l,u)}return n}function ui(e,r={},t,i){for(var o in t){var n=t[o];r[o]!==n&&(t[o]==null?e.style.removeProperty(o):e.style.setProperty(o,n,i))}}function xr(e,r,t,i){var o=e[_i];if(A||o!==r){var n=Pc(r,i);(!A||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e[_i]=r}else i&&(Array.isArray(i)?(ui(e,t?.[0],i[0]),ui(e,t?.[1],i[1],"important")):ui(e,t,i));return i}var Oc=Symbol("is custom element"),Ic=Symbol("is html"),qc=bs?"link":"LINK";function Ee(e,r,t,i){var o=Rc(e);A&&(o[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===qc)||o[r]!==(o[r]=t)&&(r==="loading"&&(e[hs]=t),t==null?e.removeAttribute(r):typeof t!="string"&&Wc(e).has(r)?e[r]=t:e.setAttribute(r,t))}function Rc(e){return e[ki]??(e[ki]={[Oc]:e.nodeName.includes("-"),[Ic]:e.namespaceURI==="http://www.w3.org/1999/xhtml"})}var Ro=new Map;function Wc(e){var r=e.getAttribute("is")||e.nodeName,t=Ro.get(r);if(t)return t;Ro.set(r,t=new Set);for(var i,o=e,n=Element.prototype;n!==o;){i=ns(o);for(var a in i)i[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&t.add(a);o=Jo(o)}return t}var Fn,Tr=new WeakMap,Nt=new WeakMap,di=new WeakMap,Wo=new WeakSet,Qn=class{constructor(e){Ki(this,Wo),_(this,Tr,new WeakMap),_(this,Nt,void 0),_(this,di,void 0),k(di,this,e)}observe(e,r){var t=s(Tr,this).get(e)||new Set;return t.add(r),s(Tr,this).set(e,t),w(Wo,this,jc).call(this).observe(e,s(di,this)),()=>{var i=s(Tr,this).get(e);i.delete(r),i.size===0&&(s(Tr,this).delete(e),s(Nt,this).unobserve(e))}}};Fn=Qn;function jc(){return s(Nt,this)??k(Nt,this,new ResizeObserver(e=>{for(var r of e){Fn.entries.set(r.target,r);for(var t of s(Tr,this).get(r.target)||[])t(r)}}))}R(Qn,"entries",new WeakMap);function fi(e,r){return e===r||e?.[Qr]===r}function pi(e=zi(),r,t,i){var o=j.r,n=$;return An(()=>{var a,c;return Fi(()=>{a=c,c=i?.()||[],jr(()=>{fi(t(...c),e)||(r(e,...c),a&&fi(t(...a),e)&&r(null,...a))})}),()=>{let l=n;for(;l!==o&&l.parent!==null&&l.parent.f&33554432;)l=l.parent;const u=()=>{c&&fi(t(...c),e)&&r(null,...c)},f=l.teardown;l.teardown=()=>{u(),f?.()}}}),e}var yt=!1;function Dc(e){var r=yt;try{return yt=!1,[e(),yt]}finally{yt=r}}function jo(e,r,t,i){var o=!nt||(t&2)!==0,n=(t&8)!==0,a=(t&16)!==0,c=i,l=!0,u=void 0,f=()=>a&&o?(u??(u=et(i)),d(u)):(l&&(l=!1,c=a?jr(i):i),c);let p;if(n){var h=Qr in e||rn in e;p=sr(e,r)?.set??(h&&r in e?S=>e[r]=S:void 0)}var b,g=!1;n?[b,g]=Dc(()=>e[r]):b=e[r],b===void 0&&i!==void 0&&(b=f(),p&&(o&&Ts(r),p(b)));var m;if(o?m=()=>{var S=e[r];return S===void 0?f():(l=!0,S)}:m=()=>{var S=e[r];return S!==void 0&&(c=void 0),S===void 0?c:S},o&&(t&4)===0)return m;if(p){var v=e.$$legacy;return(function(S,ee){return arguments.length>0?((!o||!ee||v||g)&&p(ee?m():S),S):m()})}var y=!1,O=((t&1)!==0?et:Vi)(()=>(y=!1,m()));n&&d(O);var P=$;return(function(S,ee){if(arguments.length>0){const K=ee?d(O):o&&n?Cr(S):S;return D(O,K),y=!0,c!==void 0&&(c=K),S}return ze&&y||(P.f&16384)!==0?O.v:d(O)})}function Lc(e){return new Nc(e)}var rr=new WeakMap,Te=new WeakMap,Nc=class{constructor(e){_(this,rr,void 0),_(this,Te,void 0);var r=new Map,t=(o,n)=>{var a=wn(n,!1,!1);return r.set(o,a),a};const i=new Proxy({...e.props||{},$$events:{}},{get(o,n){return d(r.get(n)??t(n,Reflect.get(o,n)))},has(o,n){return n===rn?!0:(d(r.get(n)??t(n,Reflect.get(o,n))),Reflect.has(o,n))},set(o,n,a){return D(r.get(n)??t(n,a),a),Reflect.set(o,n,a)}});k(Te,this,(e.hydrate?kc:Un)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError})),(!e?.props?.$$host||e.sync===!1)&&Wt(),k(rr,this,i.$$events);for(const o of Object.keys(s(Te,this)))o==="$set"||o==="$destroy"||o==="$on"||Xr(this,o,{get(){return s(Te,this)[o]},set(n){s(Te,this)[o]=n},enumerable:!0});s(Te,this).$set=o=>{Object.assign(i,o)},s(Te,this).$destroy=()=>{wc(s(Te,this))}}$set(e){s(Te,this).$set(e)}$on(e,r){s(rr,this)[e]=s(rr,this)[e]||[];const t=(...i)=>r.call(this,...i);return s(rr,this)[e].push(t),()=>{s(rr,this)[e]=s(rr,this)[e].filter(i=>i!==t)}}$destroy(){s(Te,this).$destroy()}},Yn;typeof HTMLElement=="function"&&(Yn=class extends HTMLElement{constructor(e,r,t){super(),R(this,"$$ctor",void 0),R(this,"$$s",void 0),R(this,"$$c",void 0),R(this,"$$cn",!1),R(this,"$$d",{}),R(this,"$$r",!1),R(this,"$$p_d",{}),R(this,"$$l",{}),R(this,"$$l_u",new Map),R(this,"$$me",void 0),R(this,"$$shadowRoot",null),this.$$ctor=e,this.$$s=r,t&&(this.$$shadowRoot=this.attachShadow(t))}addEventListener(e,r,t){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const i=this.$$c.$on(e,r);this.$$l_u.set(r,i)}super.addEventListener(e,r,t)}removeEventListener(e,r,t){if(super.removeEventListener(e,r,t),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(i){return o=>{const n=Ui("slot");i!=="default"&&(n.name=i),Ue(o,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},t=zc(this);for(const i of this.$$s)i in t&&(i==="default"&&!this.$$d.children?(this.$$d.children=e(i),r.default=!0):r[i]=e(i));for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=_t(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Lc({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Js(()=>{Fi(()=>{this.$$r=!0;for(const i of Mt(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const o=_t(i,this.$$d[i],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,o)}this.$$r=!1})});for(const i in this.$$l)for(const o of this.$$l[i]){const n=this.$$c.$on(i,o);this.$$l_u.set(o,n)}this.$$l={}}}attributeChangedCallback(e,r,t){this.$$r||(e=this.$$g_p(e),this.$$d[e]=_t(e,t,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Mt(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function _t(e,r,t,i){const o=t[e]?.type;if(r=o==="Boolean"&&typeof r!="boolean"?r!=null:r,!i||!t[e])return r;if(i==="toAttribute")switch(o){case"Object":case"Array":return r==null?null:JSON.stringify(r);case"Boolean":return r?"":null;case"Number":return r??null;default:return r}else switch(o){case"Object":case"Array":return r&&JSON.parse(r);case"Boolean":return r;case"Number":return r!=null?+r:r;default:return r}}function zc(e){const r={};return e.childNodes.forEach(t=>{r[t.slot||"default"]=!0}),r}function Hc(e,r,t,i,o,n){let a=class extends Yn{constructor(){super(e,t,o),this.$$p_d=r}static get observedAttributes(){return Mt(r).map(c=>(r[c].attribute||c).toLowerCase())}};return Mt(r).forEach(c=>{Xr(a.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(l){l=_t(c,l,r),this.$$d[c]=l;var u=this.$$c;u&&(sr(u,c)?.get?u[c]=l:u.$set({[c]:l}))}})}),i.forEach(c=>{Xr(a.prototype,c,{get(){return this.$$c?.[c]}})}),n&&(a=n(a)),e.element=a,a}var Vc=ct('<div class="pie-tool-color-scheme__current svelte-1k3xgut"><div class="pie-tool-color-scheme__preview svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-bg svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-text svelte-1k3xgut">A</div> <div class="pie-tool-color-scheme__preview-primary svelte-1k3xgut"></div></div></div> <div class="pie-tool-color-scheme__current-info svelte-1k3xgut"><div class="pie-tool-color-scheme__current-name svelte-1k3xgut"> </div> <div class="pie-tool-color-scheme__current-description svelte-1k3xgut"> </div></div> <svg class="pie-tool-color-scheme__dropdown-arrow svelte-1k3xgut" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M7,10L12,15L17,10H7Z"></path></svg></div>'),Bc=lc('<svg xmlns="http://www.w3.org/2000/svg" class="pie-tool-color-scheme__check svelte-1k3xgut" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"></polyline></svg>'),Kc=ct('<button type="button" role="menuitem"><div class="pie-tool-color-scheme__preview svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-bg svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-text svelte-1k3xgut">A</div> <div class="pie-tool-color-scheme__preview-primary svelte-1k3xgut"></div></div></div> <div class="pie-tool-color-scheme__info svelte-1k3xgut"><div class="pie-tool-color-scheme__name svelte-1k3xgut"> </div> <div class="pie-tool-color-scheme__description svelte-1k3xgut"> </div></div> <!></button>'),Uc=ct('<div id="pie-tool-color-scheme-menu" class="pie-tool-color-scheme__dropdown svelte-1k3xgut" role="menu"></div>'),Gc=ct('<div class="pie-tool-color-scheme svelte-1k3xgut" role="dialog" tabindex="-1"><div class="pie-tool-color-scheme__content svelte-1k3xgut"><p class="pie-tool-color-scheme__description svelte-1k3xgut"> </p> <button type="button" class="pie-tool-color-scheme__dropdown-trigger svelte-1k3xgut" aria-haspopup="menu" aria-controls="pie-tool-color-scheme-menu"><!></button> <p id="pie-tool-color-scheme-status" role="status" aria-live="polite"><!></p> <!></div></div>'),Fc=ct('<div style="display: none;" aria-hidden="true"></div> <!>',1),Qc={hash:"svelte-1k3xgut",code:`.pie-tool-color-scheme.svelte-1k3xgut {position:relative;width:100%;height:100%;min-height:0;background-color:var(--pie-background, white);display:flex;flex-direction:column;}.pie-tool-color-scheme__content.svelte-1k3xgut {padding:1rem;position:relative;display:flex;flex-direction:column;gap:1rem;min-height:0;overflow:auto;}.pie-tool-color-scheme__description.svelte-1k3xgut {margin:0 0 1rem 0;color:var(--pie-text, black);font-size:0.875rem;}.pie-tool-color-scheme__dropdown-trigger.svelte-1k3xgut {width:100%;padding:0.75rem;border:2px solid var(--pie-button-border, #767676);border-radius:0.5rem;background-color:var(--pie-button-bg, white);color:var(--pie-button-color, black);cursor:pointer;transition:all 0.15s ease;}.pie-tool-color-scheme__dropdown-trigger.svelte-1k3xgut:hover {border-color:var(--pie-button-hover-border, #767676);background-color:var(--pie-button-hover-bg, #f0f0f0);color:var(--pie-button-hover-color, black);}.pie-tool-color-scheme__current.svelte-1k3xgut {display:flex;align-items:center;gap:0.75rem;}.pie-tool-color-scheme__current-info.svelte-1k3xgut {flex:1;text-align:left;}.pie-tool-color-scheme__current-name.svelte-1k3xgut {font-size:0.875rem;font-weight:600;color:inherit;}.pie-tool-color-scheme__current-description.svelte-1k3xgut {font-size:0.75rem;color:inherit;}.pie-tool-color-scheme__status.svelte-1k3xgut {margin:0;padding:0.75rem;border:2px solid var(--pie-button-border, #767676);border-radius:0.5rem;background-color:var(--pie-button-bg, #f0f0f0);color:var(--pie-button-color, #000000);font-size:0.875rem;line-height:1.4;}.pie-tool-color-scheme__status--empty.svelte-1k3xgut {display:block;width:0;height:0;padding:0;margin:0;overflow:hidden;border:0;}.pie-tool-color-scheme__dropdown-arrow.svelte-1k3xgut {width:1.5rem;height:1.5rem;flex-shrink:0;}.pie-tool-color-scheme__dropdown.svelte-1k3xgut {position:relative;width:100%;max-height:24rem;background-color:var(--pie-background, white);border:2px solid var(--pie-border, #ccc);border-radius:0.5rem;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);overflow-y:auto;overflow-x:hidden;margin-top:0.5rem;}.pie-tool-color-scheme__option.svelte-1k3xgut {display:flex;align-items:center;gap:0.75rem;width:100%;padding:0.75rem 1rem;border:none;background-color:transparent;color:var(--pie-text, black);cursor:pointer;text-align:left;transition:background-color 0.15s ease;}.pie-tool-color-scheme__option.svelte-1k3xgut:hover {background-color:var(--pie-button-hover-bg, rgba(0, 0, 0, 0.05));color:var(--pie-button-hover-color, black);}.pie-tool-color-scheme__option--active.svelte-1k3xgut {background-color:var(--pie-button-active-bg, #f3f4f6);color:var(--pie-button-color, var(--pie-text, #374151));}.pie-tool-color-scheme__option.svelte-1k3xgut:disabled {outline:2px dashed var(--pie-button-border, #767676);outline-offset:-2px;background-color:var(--pie-button-bg, #f0f0f0);color:var(--pie-button-color, #000000);cursor:not-allowed;}.pie-tool-color-scheme__preview.svelte-1k3xgut {flex-shrink:0;width:2.5rem;height:2.5rem;border:2px solid var(--pie-border, #ccc);border-radius:0.25rem;overflow:hidden;}.pie-tool-color-scheme__preview-bg.svelte-1k3xgut {width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;background-color:#ffffff;}.pie-tool-color-scheme__preview-text.svelte-1k3xgut {font-weight:700;font-size:1.25rem;color:#000000;}.pie-tool-color-scheme__preview-primary.svelte-1k3xgut {position:absolute;bottom:0;right:0;width:0.75rem;height:0.75rem;border-radius:50%;background-color:#3f51b5;}.pie-tool-color-scheme__info.svelte-1k3xgut {flex:1;}.pie-tool-color-scheme__name.svelte-1k3xgut {font-size:0.875rem;font-weight:600;color:inherit;line-height:1.25;}.pie-tool-color-scheme__info.svelte-1k3xgut .pie-tool-color-scheme__description:where(.svelte-1k3xgut) {font-size:0.75rem;color:inherit;}.pie-tool-color-scheme__check.svelte-1k3xgut {flex-shrink:0;width:1rem;height:1rem;color:currentColor;}
|
|
24
24
|
|
|
25
25
|
/* Keyboard focus styling */.pie-tool-color-scheme__dropdown-trigger.svelte-1k3xgut:focus-visible,
|
|
26
|
-
.pie-tool-color-scheme__option.svelte-1k3xgut:focus-visible {outline:2px solid var(--pie-button-focus-outline, #3b82f6);outline-offset:-2px;}`};function Yc(e,r){
|
|
26
|
+
.pie-tool-color-scheme__option.svelte-1k3xgut:focus-visible {outline:2px solid var(--pie-button-focus-outline, #3b82f6);outline-offset:-2px;}`};function Yc(e,r){an(r,!0),Ac(e,Qc);const t=typeof window<"u";let i=jo(r,"visible",7,!1),o=jo(r,"toolId",7,"theme"),n=F(void 0),a=F(void 0),c=F(void 0),l=F(null);const u=Ze(()=>d(l)?.toolCoordinator),f=ua("Theme",ha.MODAL);ir(()=>{if(d(n))return da(d(n),x=>{D(l,x,!0)})});function p(){return Qo(d(n))}function h(){return p()?.getAttribute("scheme")?.trim()||"default"}const b=Ze(()=>d(l)?.elementToolStateStore??null),g=Ze(()=>{const x=d(l)?.assessmentId,M=d(l)?.sectionId;return!d(b)||!x||!M?null:d(b).getGlobalElementId({assessmentId:x,sectionId:M,attemptId:d(l)?.attemptId??"",itemId:"",elementId:""})}),m=Ze(()=>pa(d(l)));let v=F(Da());const y=Ze(()=>d(v).schemes.map(x=>({...x,description:x.description||"",available:!0})));let O=F("default"),P=F(!1),S=null;function ee(x){t&&is(x,{from:d(n),persistenceKey:null})}function K(x){D(O,x,!0),D(P,!1),ee(x),d(b)&&d(g)&&d(b).setState(d(g),o(),x),d(u)?.hideTool(o())}function se(){D(P,!d(P))}const q=Ze(()=>{const x=d(y).find(B=>B.id===d(O));if(x)return x;const M=d(y).find(B=>B.id==="default")||d(y)[0];return M?{id:d(O),name:d(m).t("tools.theme.unavailableName",{id:d(O)}),description:d(m).t("tools.theme.unavailableDescription"),kind:"unavailable",preview:M.preview,available:!1}:null}),re=Ze(()=>d(q)&&!d(q).available?[d(q),...d(y)]:d(y));function $e(x){if(x.key==="Escape")d(P)&&(x.preventDefault(),x.stopPropagation(),D(P,!1),queueMicrotask(()=>d(c)?.focus()));else if(d(P)&&(x.key==="ArrowDown"||x.key==="ArrowUp")){x.preventDefault();const M=d(a)?.querySelectorAll(".pie-tool-color-scheme__option:not([disabled])");if(!M||M.length===0)return;const B=Array.from(M).findIndex(mr=>mr===x.composedPath()[0]);let pe;x.key==="ArrowDown"?pe=B===-1?0:(B+1)%M.length:pe=B===-1?M.length-1:(B-1+M.length)%M.length,M[pe]?.focus()}}ir(()=>{if(!t)return;const x=d(g),M=x?d(b)?.getState(x,o()):void 0;jr(()=>{typeof M=="string"&&M?(D(O,M,!0),h()!==M&&ee(M)):D(O,h(),!0)})}),ir(()=>{i()&&jr(()=>D(O,h(),!0))}),ir(()=>f.sync(d(u),o())),ir(()=>{d(u)&&d(a)&&o()&&d(u).updateToolElement(o(),d(a))}),ir(()=>{!i()&&S?(S(),S=null):i()&&d(a)&&!S&&(S=fa(d(a)))}),xc(()=>{const x=Go(B=>{const pe=d(a)?.getRootNode(),mr=(pe instanceof ShadowRoot?pe.activeElement?.closest(".pie-tool-color-scheme__option"):null)?.getAttribute("data-scheme-id");D(v,B),mr&&!B.schemes.some(Se=>Se.id===mr)&&queueMicrotask(()=>d(c)?.focus())});function M(B){if(!d(P))return;const pe=B.composedPath();(!d(a)||!pe.includes(d(a)))&&D(P,!1)}return document.addEventListener("click",M),()=>{x(),document.removeEventListener("click",M),f.release()}});var Ft={get visible(){return i()},set visible(x=!1){i(x),Wt()},get toolId(){return o()},set toolId(x="theme"){o(x),Wt()}},Zi=Fc(),eo=Us(Zi);pi(eo,x=>D(n,x),()=>d(n));var Jn=ve(eo,2),Xn=x=>{var M=Gc(),B=te(M),pe=te(B),mr=zr(pe,!0),Se=ve(pe,2),Zn=te(Se),ea=V=>{var ce=Vc(),he=te(ce),L=te(he),U=te(L),ut=ve(U,2);J(L),J(he);var gr=ve(he,2),yr=te(gr),dt=zr(yr,!0),Qt=zr(ve(yr,2),!0);J(gr),tn(2),J(ce),bt(()=>{xr(L,`background-color: ${d(q).preview.bg??""}`),xr(U,`color: ${d(q).preview.text??""}`),xr(ut,`background-color: ${d(q).preview.primary??""}`),_r(dt,d(q).name),_r(Qt,d(q).description)}),Ue(V,ce)};Vr(Zn,V=>{d(q)&&V(ea)}),J(Se),pi(Se,V=>D(c,V),()=>d(c));var lt=ve(Se,2);let ro;var ra=te(lt),ta=V=>{var ce=uc();bt(he=>_r(ce,he),[()=>d(m).t("tools.theme.unavailableStatus")]),Ue(V,ce)};Vr(ra,V=>{d(q)&&!d(q).available&&V(ta)}),J(lt);var ia=ve(lt,2),oa=V=>{var ce=Uc();Ec(ce,21,()=>d(re),he=>he.id,(he,L)=>{var U=Kc();let ut;var gr=te(U),yr=te(gr),dt=te(yr),Qt=ve(dt,2);J(yr),J(gr);var Yt=ve(gr,2),to=te(Yt),na=zr(to,!0),aa=zr(ve(to,2),!0);J(Yt);var sa=ve(Yt,2),ca=Lr=>{Ue(Lr,Bc())};Vr(sa,Lr=>{d(O)===d(L).id&&Lr(ca)}),J(U),bt(Lr=>{ut=qo(U,1,"pie-tool-color-scheme__option svelte-1k3xgut",null,ut,{"pie-tool-color-scheme__option--active":d(O)===d(L).id}),Ee(U,"aria-label",Lr),Ee(U,"aria-current",d(O)===d(L).id),Ee(U,"aria-disabled",!d(L).available),U.disabled=!d(L).available,Ee(U,"data-scheme-id",d(L).id),xr(yr,`background-color: ${d(L).preview.bg??""}`),xr(dt,`color: ${d(L).preview.text??""}`),xr(Qt,`background-color: ${d(L).preview.primary??""}`),_r(na,d(L).name),_r(aa,d(L).description)},[()=>d(L).available?d(L).name:d(m).t("tools.theme.optionUnavailableA11y",{name:d(L).name})]),oi("click",U,()=>K(d(L).id)),Ue(he,U)}),J(ce),Ue(V,ce)};Vr(ia,V=>{d(P)&&V(oa)}),J(B),J(M),pi(M,V=>D(a,V),()=>d(a)),bt((V,ce,he,L,U)=>{Ee(M,"lang",V),Ee(M,"dir",ce),Ee(M,"aria-label",he),_r(mr,L),Ee(Se,"aria-label",U),Ee(Se,"aria-expanded",d(P)),Ee(Se,"aria-describedby",d(q)&&!d(q).available?"pie-tool-color-scheme-status":void 0),ro=qo(lt,1,"pie-tool-color-scheme__status svelte-1k3xgut",null,ro,{"pie-tool-color-scheme__status--empty":d(q)?.available!==!1}),M.dir=M.dir},[()=>d(m).getLocale(),()=>d(m).getDirection?.()??"ltr",()=>d(m).t("tools.theme.selectorA11y"),()=>d(m).t("tools.theme.hint"),()=>d(q)?d(m).t("tools.theme.selectCurrentA11y",{name:d(q).name}):d(m).t("tools.theme.selectA11y")]),oi("keydown",M,$e),oi("click",Se,se),Ue(x,M)};return Vr(Jn,x=>{i()&&x(Xn)}),Ue(e,Zi),sn(Ft)}nc(["keydown","click"]);Jc("pie-tool-theme",Hc(Yc,{visible:{attribute:"visible",type:"Boolean"},toolId:{attribute:"tool-id",type:"String"}},[],[],{mode:"open"},la));function Jc(e,r){customElements.get(e)||customElements.define(e,r)}export{Yc as default};
|