cross-country 1.2.21 → 1.2.22
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/dist/Color-F6OSRLHC-BbLcUd-T.js +575 -0
- package/dist/{bolt-Bw4E_fgS.js → bolt-BLbYxvOV.js} +6 -5
- package/dist/bundle.css +36 -31
- package/dist/colour-util-Bzfca_cM.js +775 -0
- package/dist/components/atoms/circle/__tests__/circle.test.js +2 -2
- package/dist/components/atoms/column/__tests__/column.test.js +2 -2
- package/dist/components/atoms/index.js +1 -1
- package/dist/components/atoms/list/index.js +4 -0
- package/dist/components/atoms/list/list-item/index.js +4 -0
- package/dist/components/atoms/list/list-item/list-item.js +20 -0
- package/dist/components/atoms/list/list.js +33 -0
- package/dist/components/atoms/radio/index.js +2 -2
- package/dist/components/atoms/radio/radio.js +42 -3
- package/dist/components/atoms/text/animate-number/animate-number.js +1 -1
- package/dist/components/atoms/text/index.js +1 -1
- package/dist/components/atoms/text/input/__stories__/state-machine-fetch-dragons.js +3 -3
- package/dist/components/atoms/text/input/input-text-machine.js +3 -3
- package/dist/components/atoms/text/input/state-machine-text-input.js +1 -1
- package/dist/components/atoms/text/span/__stories__/span-story.js +6 -5
- package/dist/components/index.js +116 -116
- package/dist/components/molecules/autocomplete/autocomplete-machine.js +3 -3
- package/dist/components/molecules/autocomplete/autocomplete.js +1 -1
- package/dist/components/molecules/card/amazon/amazon-card.js +7 -6
- package/dist/components/molecules/card/builder/card-builder-machine/card-builder-machine.js +1 -1
- package/dist/components/molecules/card/builder/card-builder-machine/card-service-events.js +2 -2
- package/dist/components/molecules/card/builder/card-builder-machine/platform-states-amazon.js +1 -1
- package/dist/components/molecules/card/builder/card-builder-machine/platform-states-common.js +1 -1
- package/dist/components/molecules/card/builder/card-builder.js +1 -1
- package/dist/components/molecules/card/builder/card-editor.js +7 -6
- package/dist/components/molecules/card/card.js +6 -5
- package/dist/components/molecules/carousel/carousel.js +6 -5
- package/dist/components/molecules/day-number/day-number.js +6 -5
- package/dist/components/molecules/field/field.js +6 -5
- package/dist/components/molecules/gold-leaf/gold-leaf-view/__tests__/gold-leaf-view.test.js +3 -3
- package/dist/components/molecules/gold-leaf/gold-leaf-view/controls/gold-leaf-view-controls.js +8 -7
- package/dist/components/molecules/gold-leaf/gold-leaf-view/email/gold-leaf-email-view.js +7 -6
- package/dist/components/molecules/gold-leaf/gold-leaf-view/gold-leaf-view.js +7 -6
- package/dist/components/molecules/gold-leaf/gold-leaf-view/index.js +1 -1
- package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-leaf-image.js +7 -6
- package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-card.js +40 -0
- package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-image-card.js +8 -7
- package/dist/components/molecules/gold-leaf/gold-leaf.js +1 -1
- package/dist/components/molecules/header/Header.js +10 -9
- package/dist/components/molecules/hero/hero.js +7 -6
- package/dist/components/molecules/icons/index.js +4 -3
- package/dist/components/molecules/icons/x/x.js +6 -5
- package/dist/components/molecules/index.js +8 -7
- package/dist/components/molecules/key-value-pairs/__tests__/key-value-pairs.js +1 -1
- package/dist/components/molecules/key-value-pairs/key-value-pairs.js +10 -9
- package/dist/components/molecules/keywords/keywords.js +6 -5
- package/dist/components/molecules/loading/__tests__/loading.test.js +1 -1
- package/dist/components/molecules/log-error-boundary/__stories__/log-error-boundary-story.js +1 -1
- package/dist/components/molecules/log-error-boundary/__tests__/log-error-boundary.test.js +2 -2
- package/dist/components/molecules/log-error-boundary/log-error-boundary.js +6 -5
- package/dist/components/molecules/modal/modal.js +6 -5
- package/dist/components/molecules/policies/index.js +4 -3
- package/dist/components/molecules/policies/privacy-policy.js +8 -7
- package/dist/components/molecules/policies/terms-of-use.js +8 -7
- package/dist/components/molecules/quote/quote.js +6 -5
- package/dist/components/molecules/radiogroup/__stories__/radio-group-form-story.js +12 -11
- package/dist/components/molecules/radiogroup/__stories__/radio-group-react-hook-form-story.js +15 -14
- package/dist/components/molecules/radiogroup/radiogroup.js +9 -9
- package/dist/components/molecules/related-articles/related-articles.js +15 -14
- package/dist/components/molecules/search/search.js +6 -5
- package/dist/components/molecules/stagger/stagger.js +6 -5
- package/dist/components/molecules/tile/corners.js +1 -1
- package/dist/components/molecules/tile/index.js +1 -1
- package/dist/components/molecules/tile/tile-interactive.js +5 -4
- package/dist/components/molecules/tile/tile.js +1 -1
- package/dist/components/molecules/time-progress/__tests__/progress.test.js +1 -1
- package/dist/components/molecules/time-progress/pilot/index.js +2 -3
- package/dist/components/molecules/time-progress/progress-over-year.js +6 -5
- package/dist/components/molecules/time-progress/progress.js +6 -5
- package/dist/components/molecules/user/anon-user.js +6 -5
- package/dist/components/molecules/user/user.js +7 -6
- package/dist/components/molecules/venn-diagram/__tests__/venn-diagram.tests.js +2 -2
- package/dist/components/molecules/venn-diagram/venn-diagram-circle.js +6 -5
- package/dist/components/molecules/venn-diagram/venn-diagram.js +6 -5
- package/dist/components/molecules/wallpaper/__tests__/wallpaper.tests.js +2 -2
- package/dist/components/molecules/wallpaper/wallpaper.js +1 -1
- package/dist/components/molecules/wrapper/__stories__/wrapper-children-story.js +6 -5
- package/dist/components/organisms/actors/actor/actor-builder-machine.js +2 -2
- package/dist/components/organisms/actors/actor/actor-builder.js +6 -5
- package/dist/components/organisms/actors/actor/actor.js +5 -4
- package/dist/components/organisms/actors/actor/index.js +1 -1
- package/dist/components/organisms/actors/animal/animal.js +1 -1
- package/dist/components/organisms/actors/monsters/troll/troll-machine.js +2 -2
- package/dist/components/organisms/actors/monsters/troll/troll.js +6 -5
- package/dist/components/organisms/actors/party/cleric/cleric.js +1 -1
- package/dist/components/organisms/actors/party/hunter/hunter.js +1 -1
- package/dist/components/organisms/actors/party/warrior/warrior.js +1 -1
- package/dist/components/organisms/actors/party/wizard/wizard.js +1 -1
- package/dist/components/organisms/actors/wisp/wisp.js +1 -1
- package/dist/components/organisms/ads/ad-card.js +6 -5
- package/dist/components/organisms/animation/animate-actor/animate-actor.js +6 -5
- package/dist/components/organisms/animation/one-day/one-day.js +15 -14
- package/dist/components/organisms/animation/reverse-text-animation/reverse-text-animation.js +6 -5
- package/dist/components/organisms/bento/layouts/five-by-four/bento-five-by-four.js +9 -8
- package/dist/components/organisms/bento/layouts/four-by-four/bento-four-by-four.js +6 -5
- package/dist/components/organisms/bento/layouts/three-by-three/bento-three-by-three.js +6 -5
- package/dist/components/organisms/bento/layouts/two-by-two/bento-two-by-two.js +6 -5
- package/dist/components/organisms/blog/__stories__/blog-story.js +9 -8
- package/dist/components/organisms/blog/blog-post/__stories__/blog-post-story.js +6 -5
- package/dist/components/organisms/blog/blog-post/blog-post-machine/build-listicle-machine.js +1 -1
- package/dist/components/organisms/blog/blog-post/blog-post-machine/delete-listicle-item.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post-machine/load-listicle.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post-machine/manage-listicle-items.js +1 -1
- package/dist/components/organisms/blog/blog-post/blog-post-machine/save-listicle-item.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post-machine/save-listicle.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post-machine/update-listice-item.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post.js +6 -5
- package/dist/components/organisms/blog/blog-post-list.js +12 -11
- package/dist/components/organisms/blog/blog.js +6 -5
- package/dist/components/organisms/branch/branch.js +6 -5
- package/dist/components/organisms/branches/__tests__/branch-list.test.js +6 -4
- package/dist/components/organisms/branches/branch-list.js +61 -39
- package/dist/components/organisms/branches/branches.js +7 -6
- package/dist/components/organisms/calendar/calendar.js +6 -5
- package/dist/components/organisms/charts/chart/__stories__/data-set.js +1 -1
- package/dist/components/organisms/charts/chart/chart-gold-leaf/chart-gold-leaf.js +4 -3
- package/dist/components/organisms/clusters/cluster.js +6 -5
- package/dist/components/organisms/json-map-tile-grid/index.js +1 -1
- package/dist/components/organisms/json-map-tile-grid/json-map-tile-grid.js +6 -4
- package/dist/components/organisms/listicle/__stories__/andor-right-click-story.js +6 -5
- package/dist/components/organisms/listicle/__stories__/listicle-fb-v-canada-story.js +6 -5
- package/dist/components/organisms/listicle/__stories__/listicle-story.js +6 -5
- package/dist/components/organisms/listicle/build-listicle-machine/build-listicle-machine.js +1 -1
- package/dist/components/organisms/listicle/build-listicle-machine/delete-listicle-item.js +2 -2
- package/dist/components/organisms/listicle/build-listicle-machine/load-listicle.js +2 -2
- package/dist/components/organisms/listicle/build-listicle-machine/manage-listicle-items.js +1 -1
- package/dist/components/organisms/listicle/build-listicle-machine/save-listicle-item.js +2 -2
- package/dist/components/organisms/listicle/build-listicle-machine/save-listicle.js +2 -2
- package/dist/components/organisms/listicle/build-listicle-machine/update-listice-item.js +2 -2
- package/dist/components/organisms/listicle/edit-listicle/edit-listicle.js +13 -12
- package/dist/components/organisms/listicle/edit-listicle-item-list/edit-listicle-item-list.js +6 -5
- package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item-input.js +12 -11
- package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item.js +6 -5
- package/dist/components/organisms/listicle/listicle-builder.js +14 -13
- package/dist/components/organisms/listicle/listicle-item-list.js +12 -11
- package/dist/components/organisms/listicle/listicle.js +6 -5
- package/dist/components/organisms/listicle/post-link.js +7 -6
- package/dist/components/organisms/login/__stories__/login-story.js +6 -5
- package/dist/components/organisms/login/login-fetching-transition.js +6 -5
- package/dist/components/organisms/login/login-fields-transition.js +21 -20
- package/dist/components/organisms/login/login-response-transition.js +66 -11
- package/dist/components/organisms/login/login-submit-transition.js +6 -5
- package/dist/components/organisms/login/login-view.js +7 -6
- package/dist/components/organisms/metrics/metrics.js +6 -5
- package/dist/components/organisms/palettes/palettes.js +14 -12
- package/dist/components/organisms/player/player.js +6 -5
- package/dist/components/organisms/registration/password-strength-helper.js +11 -10
- package/dist/components/organisms/registration/post-registration.js +2 -2
- package/dist/components/organisms/registration/registration-form.js +6 -5
- package/dist/components/organisms/registration/registration-machine.js +2 -2
- package/dist/components/organisms/registration/registration-response.js +6 -5
- package/dist/components/organisms/registration/registration.js +7 -6
- package/dist/components/organisms/stage/stage.js +9 -8
- package/dist/components/organisms/survey/__stories__/build-form-story.js +6 -5
- package/dist/components/organisms/survey/build-form-machine.js +2 -2
- package/dist/components/organisms/survey/build-form.js +8 -7
- package/dist/components/organisms/survey/final-form.js +8 -7
- package/dist/components/organisms/survey/question/edit/__stories__/edit-question-story.js +6 -5
- package/dist/components/organisms/survey/question/edit/add-media.js +6 -5
- package/dist/components/organisms/survey/question/edit/add-question/__stories__/add-question-story.js +6 -5
- package/dist/components/organisms/survey/question/edit/add-question/add-question.js +30 -29
- package/dist/components/organisms/survey/question/edit/answer/answer-input.js +6 -5
- package/dist/components/organisms/survey/question/edit/answer-input.js +6 -5
- package/dist/components/organisms/survey/question/edit/edit-multiple-choice.js +6 -5
- package/dist/components/organisms/survey/question/edit/edit-option-list/edit-option-list-machine.js +2 -2
- package/dist/components/organisms/survey/question/edit/edit-option-list/edit-option-list.js +7 -6
- package/dist/components/organisms/survey/question/edit/edit-option-list/option-input.js +6 -5
- package/dist/components/organisms/survey/question/edit/edit-option-list/option.js +7 -6
- package/dist/components/organisms/survey/question/edit/question-answer-input.js +6 -5
- package/dist/components/organisms/survey/question/take/__stories__/multiple-choice-story.js +6 -5
- package/dist/components/organisms/survey/question/take/__stories__/take-answer-date-time-input-story.js +6 -5
- package/dist/components/organisms/survey/question/take/__stories__/take-answer-input-story.js +6 -5
- package/dist/components/organisms/survey/question/take/inputs/input-manager.js +6 -5
- package/dist/components/organisms/survey/question/take/multiple-choice.js +6 -5
- package/dist/components/organisms/survey/question/take/take-answer-input.js +12 -11
- package/dist/components/organisms/tile-grid/__tests__/tile-grid.tests.js +3 -3
- package/dist/components/organisms/tile-grid/grid-row.js +6 -5
- package/dist/components/organisms/tile-grid/index.js +1 -1
- package/dist/components/organisms/tile-grid/island-tile-grid.js +12 -11
- package/dist/components/organisms/tile-grid/tile-grid.js +6 -4
- package/dist/components/organisms/worlds/area-of-effect/__stories__/area-of-affect-story.js +6 -5
- package/dist/components/organisms/worlds/area-of-effect/area-of-affect.js +31 -29
- package/dist/components/organisms/worlds/island/__stories__/island-story.js +18 -16
- package/dist/components/organisms/worlds/island/__stories__/island-util.js +25 -23
- package/dist/components/pages/home/headwinds/header/headwinds-header.js +6 -5
- package/dist/components/pages/home/headwinds/headwinds-footer.js +6 -5
- package/dist/components/pages/home/headwinds/headwinds-hero.js +6 -5
- package/dist/components/pages/home/headwinds/headwinds-sidequest.js +35 -34
- package/dist/components/pages/home/headwinds/home.js +9 -8
- package/dist/components/pages/index.js +6 -5
- package/dist/components/pages/profile/headwinds/headwinds-profile.js +21 -20
- package/dist/components/pages/profile/index.js +4 -3
- package/dist/components/templates/articles/article/article.js +6 -5
- package/dist/components/templates/home/headwinds/headwinds-home-hero.js +6 -5
- package/dist/components/templates/home/headwinds/headwinds-home.js +6 -5
- package/dist/components/templates/home/home.js +10 -9
- package/dist/fp-util-DZLSTUg5.js +8 -0
- package/dist/gold-leaf-view-CgRraK2i.js +183 -0
- package/dist/gold-leaf-view.module-p3mWnO60.js +17 -0
- package/dist/headline-DzDFQZ3e.js +11 -0
- package/dist/image-find-util-DMX6BcO-.js +1036 -0
- package/dist/index-BTF1caLu.js +2529 -0
- package/dist/{index-COQaJqs5.js → index-OdyFkztm.js} +3670 -2660
- package/dist/{index-DsigmIMS.js → index-_cvPLH70.js} +1 -1
- package/dist/index.esm-DGm91C_6.js +944 -0
- package/dist/index.js +143 -140
- package/dist/lib/components/atoms/list/index.d.ts +2 -0
- package/dist/lib/components/atoms/list/list-item/index.d.ts +2 -0
- package/dist/lib/components/atoms/list/list-item/list-item.d.ts +10 -0
- package/dist/lib/components/atoms/list/list.d.ts +12 -0
- package/dist/lib/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-card.d.ts +4 -0
- package/dist/lib/components/organisms/branch/branch.d.ts +3 -1
- package/dist/lib/components/organisms/branches/__stories__/branches.stories.d.ts +7 -0
- package/dist/lib/components/organisms/branches/branch-list.d.ts +4 -1
- package/dist/lib/models/TreeModel.d.ts +12 -0
- package/dist/lib/models/index.d.ts +1 -0
- package/dist/lib/utils/golds/feed-util.d.ts +17 -0
- package/dist/lib/utils/index.d.ts +5 -0
- package/dist/list.module-pjS_KHqp.js +10 -0
- package/dist/{log-2a4cc478.esm-HFv7vQ7j.js → log-2a4cc478.esm-BdzQp5f-.js} +15 -15
- package/dist/{log-error-boundary-story-BF8rmHhr.js → log-error-boundary-story-CcyM__Yt.js} +6541 -7185
- package/dist/{magic-string.es-VsGWiGpd.js → magic-string.es-QkQE39Zh.js} +11 -6
- package/dist/{radio-BTUtRmLM.js → mobile-detect-CWVWWCSg.js} +12 -51
- package/dist/models/TreeModel.js +12 -0
- package/dist/models/index.js +3 -2
- package/dist/{react-spring_web.modern-nSq5Xzxb.js → react-spring_web.modern-ClBJWBW2.js} +281 -273
- package/dist/{react.esm-BEaxtOYu.js → react.esm-BpVcViTQ.js} +2197 -2181
- package/dist/string-util-D7tmqJRS.js +35 -0
- package/dist/table-data-BnRZ5F7y.js +16 -0
- package/dist/utils/golds/feed-util.js +240 -0
- package/dist/utils/index.js +12 -0
- package/dist/{vi.YFlodzP_-CjWVzrI3.js → vi.YFlodzP_-C3qjkUdf.js} +2 -2
- package/dist/{xstate-actors.esm-Ba6reXm_.js → xstate-actors.esm-CcLF5JHw.js} +1 -1
- package/dist/{xstate-react.esm-Ct8KIFgA.js → xstate-react.esm-DWdE0_Ay.js} +1 -1
- package/dist/{xstate.esm-Bo02HSs2.js → xstate.esm-COAqQ2fq.js} +11 -11
- package/package.json +4 -2
- package/dist/Color-ERTF36HU-DRLqcX19.js +0 -358
- package/dist/_getTag-CqbPZ7Cl.js +0 -449
- package/dist/components/organisms/branches/__stories__/branches-story.js +0 -6
- package/dist/components/organisms/branches/branch-list.types.js +0 -1
- package/dist/feed-util-CZfVh6cR.js +0 -244
- package/dist/fp-util-4N0NK_eU.js +0 -8
- package/dist/gold-leaf-view-BAGw5McJ.js +0 -117
- package/dist/gold-leaf-view.module-BTNjKEeW.js +0 -17
- package/dist/headline-DuHL8hAt.js +0 -11
- package/dist/image-find-util-Cl2ZJHfC.js +0 -41
- package/dist/index-BsYJgl86.js +0 -3853
- package/dist/index-Cdg9lY68.js +0 -542
- package/dist/index.esm-BrPDxyfz.js +0 -933
- package/dist/lib/components/organisms/branches/__stories__/branches-story.d.ts +0 -2
- package/dist/lib/components/organisms/branches/branch-list.types.d.ts +0 -5
- package/dist/list-BkQjCFcb.js +0 -14
- package/dist/list-item-DyDjznkQ.js +0 -8
- package/dist/login-response-transition-Dws0eBbH.js +0 -123
- package/dist/table-data-PGM-_ef9.js +0 -16
|
@@ -0,0 +1,575 @@
|
|
|
1
|
+
import { _ as ge, P as E, t as re, r as be, x as ve, Q as me, U as pe, V as ye, W as B } from "./log-error-boundary-story-CcyM__Yt.js";
|
|
2
|
+
import v, { useRef as M, useMemo as F, useEffect as O, useCallback as z, useState as j, useLayoutEffect as xe } from "react";
|
|
3
|
+
var we = B({ "../../node_modules/color-name/index.js"(n, l) {
|
|
4
|
+
l.exports = { aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], aqua: [0, 255, 255], aquamarine: [127, 255, 212], azure: [240, 255, 255], beige: [245, 245, 220], bisque: [255, 228, 196], black: [0, 0, 0], blanchedalmond: [255, 235, 205], blue: [0, 0, 255], blueviolet: [138, 43, 226], brown: [165, 42, 42], burlywood: [222, 184, 135], cadetblue: [95, 158, 160], chartreuse: [127, 255, 0], chocolate: [210, 105, 30], coral: [255, 127, 80], cornflowerblue: [100, 149, 237], cornsilk: [255, 248, 220], crimson: [220, 20, 60], cyan: [0, 255, 255], darkblue: [0, 0, 139], darkcyan: [0, 139, 139], darkgoldenrod: [184, 134, 11], darkgray: [169, 169, 169], darkgreen: [0, 100, 0], darkgrey: [169, 169, 169], darkkhaki: [189, 183, 107], darkmagenta: [139, 0, 139], darkolivegreen: [85, 107, 47], darkorange: [255, 140, 0], darkorchid: [153, 50, 204], darkred: [139, 0, 0], darksalmon: [233, 150, 122], darkseagreen: [143, 188, 143], darkslateblue: [72, 61, 139], darkslategray: [47, 79, 79], darkslategrey: [47, 79, 79], darkturquoise: [0, 206, 209], darkviolet: [148, 0, 211], deeppink: [255, 20, 147], deepskyblue: [0, 191, 255], dimgray: [105, 105, 105], dimgrey: [105, 105, 105], dodgerblue: [30, 144, 255], firebrick: [178, 34, 34], floralwhite: [255, 250, 240], forestgreen: [34, 139, 34], fuchsia: [255, 0, 255], gainsboro: [220, 220, 220], ghostwhite: [248, 248, 255], gold: [255, 215, 0], goldenrod: [218, 165, 32], gray: [128, 128, 128], green: [0, 128, 0], greenyellow: [173, 255, 47], grey: [128, 128, 128], honeydew: [240, 255, 240], hotpink: [255, 105, 180], indianred: [205, 92, 92], indigo: [75, 0, 130], ivory: [255, 255, 240], khaki: [240, 230, 140], lavender: [230, 230, 250], lavenderblush: [255, 240, 245], lawngreen: [124, 252, 0], lemonchiffon: [255, 250, 205], lightblue: [173, 216, 230], lightcoral: [240, 128, 128], lightcyan: [224, 255, 255], lightgoldenrodyellow: [250, 250, 210], lightgray: [211, 211, 211], lightgreen: [144, 238, 144], lightgrey: [211, 211, 211], lightpink: [255, 182, 193], lightsalmon: [255, 160, 122], lightseagreen: [32, 178, 170], lightskyblue: [135, 206, 250], lightslategray: [119, 136, 153], lightslategrey: [119, 136, 153], lightsteelblue: [176, 196, 222], lightyellow: [255, 255, 224], lime: [0, 255, 0], limegreen: [50, 205, 50], linen: [250, 240, 230], magenta: [255, 0, 255], maroon: [128, 0, 0], mediumaquamarine: [102, 205, 170], mediumblue: [0, 0, 205], mediumorchid: [186, 85, 211], mediumpurple: [147, 112, 219], mediumseagreen: [60, 179, 113], mediumslateblue: [123, 104, 238], mediumspringgreen: [0, 250, 154], mediumturquoise: [72, 209, 204], mediumvioletred: [199, 21, 133], midnightblue: [25, 25, 112], mintcream: [245, 255, 250], mistyrose: [255, 228, 225], moccasin: [255, 228, 181], navajowhite: [255, 222, 173], navy: [0, 0, 128], oldlace: [253, 245, 230], olive: [128, 128, 0], olivedrab: [107, 142, 35], orange: [255, 165, 0], orangered: [255, 69, 0], orchid: [218, 112, 214], palegoldenrod: [238, 232, 170], palegreen: [152, 251, 152], paleturquoise: [175, 238, 238], palevioletred: [219, 112, 147], papayawhip: [255, 239, 213], peachpuff: [255, 218, 185], peru: [205, 133, 63], pink: [255, 192, 203], plum: [221, 160, 221], powderblue: [176, 224, 230], purple: [128, 0, 128], rebeccapurple: [102, 51, 153], red: [255, 0, 0], rosybrown: [188, 143, 143], royalblue: [65, 105, 225], saddlebrown: [139, 69, 19], salmon: [250, 128, 114], sandybrown: [244, 164, 96], seagreen: [46, 139, 87], seashell: [255, 245, 238], sienna: [160, 82, 45], silver: [192, 192, 192], skyblue: [135, 206, 235], slateblue: [106, 90, 205], slategray: [112, 128, 144], slategrey: [112, 128, 144], snow: [255, 250, 250], springgreen: [0, 255, 127], steelblue: [70, 130, 180], tan: [210, 180, 140], teal: [0, 128, 128], thistle: [216, 191, 216], tomato: [255, 99, 71], turquoise: [64, 224, 208], violet: [238, 130, 238], wheat: [245, 222, 179], white: [255, 255, 255], whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] };
|
|
5
|
+
} }), te = B({ "../../node_modules/color-convert/conversions.js"(n, l) {
|
|
6
|
+
var c = we(), h = {};
|
|
7
|
+
for (let e of Object.keys(c)) h[c[e]] = e;
|
|
8
|
+
var u = { rgb: { channels: 3, labels: "rgb" }, hsl: { channels: 3, labels: "hsl" }, hsv: { channels: 3, labels: "hsv" }, hwb: { channels: 3, labels: "hwb" }, cmyk: { channels: 4, labels: "cmyk" }, xyz: { channels: 3, labels: "xyz" }, lab: { channels: 3, labels: "lab" }, lch: { channels: 3, labels: "lch" }, hex: { channels: 1, labels: ["hex"] }, keyword: { channels: 1, labels: ["keyword"] }, ansi16: { channels: 1, labels: ["ansi16"] }, ansi256: { channels: 1, labels: ["ansi256"] }, hcg: { channels: 3, labels: ["h", "c", "g"] }, apple: { channels: 3, labels: ["r16", "g16", "b16"] }, gray: { channels: 1, labels: ["gray"] } };
|
|
9
|
+
l.exports = u;
|
|
10
|
+
for (let e of Object.keys(u)) {
|
|
11
|
+
if (!("channels" in u[e])) throw new Error("missing channels property: " + e);
|
|
12
|
+
if (!("labels" in u[e])) throw new Error("missing channel labels property: " + e);
|
|
13
|
+
if (u[e].labels.length !== u[e].channels) throw new Error("channel and label counts mismatch: " + e);
|
|
14
|
+
let { channels: t, labels: r } = u[e];
|
|
15
|
+
delete u[e].channels, delete u[e].labels, Object.defineProperty(u[e], "channels", { value: t }), Object.defineProperty(u[e], "labels", { value: r });
|
|
16
|
+
}
|
|
17
|
+
u.rgb.hsl = function(e) {
|
|
18
|
+
let t = e[0] / 255, r = e[1] / 255, a = e[2] / 255, o = Math.min(t, r, a), i = Math.max(t, r, a), s = i - o, f, g;
|
|
19
|
+
i === o ? f = 0 : t === i ? f = (r - a) / s : r === i ? f = 2 + (a - t) / s : a === i && (f = 4 + (t - r) / s), f = Math.min(f * 60, 360), f < 0 && (f += 360);
|
|
20
|
+
let b = (o + i) / 2;
|
|
21
|
+
return i === o ? g = 0 : b <= 0.5 ? g = s / (i + o) : g = s / (2 - i - o), [f, g * 100, b * 100];
|
|
22
|
+
}, u.rgb.hsv = function(e) {
|
|
23
|
+
let t, r, a, o, i, s = e[0] / 255, f = e[1] / 255, g = e[2] / 255, b = Math.max(s, f, g), p = b - Math.min(s, f, g), m = function(x) {
|
|
24
|
+
return (b - x) / 6 / p + 1 / 2;
|
|
25
|
+
};
|
|
26
|
+
return p === 0 ? (o = 0, i = 0) : (i = p / b, t = m(s), r = m(f), a = m(g), s === b ? o = a - r : f === b ? o = 1 / 3 + t - a : g === b && (o = 2 / 3 + r - t), o < 0 ? o += 1 : o > 1 && (o -= 1)), [o * 360, i * 100, b * 100];
|
|
27
|
+
}, u.rgb.hwb = function(e) {
|
|
28
|
+
let t = e[0], r = e[1], a = e[2], o = u.rgb.hsl(e)[0], i = 1 / 255 * Math.min(t, Math.min(r, a));
|
|
29
|
+
return a = 1 - 1 / 255 * Math.max(t, Math.max(r, a)), [o, i * 100, a * 100];
|
|
30
|
+
}, u.rgb.cmyk = function(e) {
|
|
31
|
+
let t = e[0] / 255, r = e[1] / 255, a = e[2] / 255, o = Math.min(1 - t, 1 - r, 1 - a), i = (1 - t - o) / (1 - o) || 0, s = (1 - r - o) / (1 - o) || 0, f = (1 - a - o) / (1 - o) || 0;
|
|
32
|
+
return [i * 100, s * 100, f * 100, o * 100];
|
|
33
|
+
};
|
|
34
|
+
function d(e, t) {
|
|
35
|
+
return (e[0] - t[0]) ** 2 + (e[1] - t[1]) ** 2 + (e[2] - t[2]) ** 2;
|
|
36
|
+
}
|
|
37
|
+
u.rgb.keyword = function(e) {
|
|
38
|
+
let t = h[e];
|
|
39
|
+
if (t) return t;
|
|
40
|
+
let r = 1 / 0, a;
|
|
41
|
+
for (let o of Object.keys(c)) {
|
|
42
|
+
let i = c[o], s = d(e, i);
|
|
43
|
+
s < r && (r = s, a = o);
|
|
44
|
+
}
|
|
45
|
+
return a;
|
|
46
|
+
}, u.keyword.rgb = function(e) {
|
|
47
|
+
return c[e];
|
|
48
|
+
}, u.rgb.xyz = function(e) {
|
|
49
|
+
let t = e[0] / 255, r = e[1] / 255, a = e[2] / 255;
|
|
50
|
+
t = t > 0.04045 ? ((t + 0.055) / 1.055) ** 2.4 : t / 12.92, r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92, a = a > 0.04045 ? ((a + 0.055) / 1.055) ** 2.4 : a / 12.92;
|
|
51
|
+
let o = t * 0.4124 + r * 0.3576 + a * 0.1805, i = t * 0.2126 + r * 0.7152 + a * 0.0722, s = t * 0.0193 + r * 0.1192 + a * 0.9505;
|
|
52
|
+
return [o * 100, i * 100, s * 100];
|
|
53
|
+
}, u.rgb.lab = function(e) {
|
|
54
|
+
let t = u.rgb.xyz(e), r = t[0], a = t[1], o = t[2];
|
|
55
|
+
r /= 95.047, a /= 100, o /= 108.883, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116, a = a > 8856e-6 ? a ** (1 / 3) : 7.787 * a + 16 / 116, o = o > 8856e-6 ? o ** (1 / 3) : 7.787 * o + 16 / 116;
|
|
56
|
+
let i = 116 * a - 16, s = 500 * (r - a), f = 200 * (a - o);
|
|
57
|
+
return [i, s, f];
|
|
58
|
+
}, u.hsl.rgb = function(e) {
|
|
59
|
+
let t = e[0] / 360, r = e[1] / 100, a = e[2] / 100, o, i, s;
|
|
60
|
+
if (r === 0) return s = a * 255, [s, s, s];
|
|
61
|
+
a < 0.5 ? o = a * (1 + r) : o = a + r - a * r;
|
|
62
|
+
let f = 2 * a - o, g = [0, 0, 0];
|
|
63
|
+
for (let b = 0; b < 3; b++) i = t + 1 / 3 * -(b - 1), i < 0 && i++, i > 1 && i--, 6 * i < 1 ? s = f + (o - f) * 6 * i : 2 * i < 1 ? s = o : 3 * i < 2 ? s = f + (o - f) * (2 / 3 - i) * 6 : s = f, g[b] = s * 255;
|
|
64
|
+
return g;
|
|
65
|
+
}, u.hsl.hsv = function(e) {
|
|
66
|
+
let t = e[0], r = e[1] / 100, a = e[2] / 100, o = r, i = Math.max(a, 0.01);
|
|
67
|
+
a *= 2, r *= a <= 1 ? a : 2 - a, o *= i <= 1 ? i : 2 - i;
|
|
68
|
+
let s = (a + r) / 2, f = a === 0 ? 2 * o / (i + o) : 2 * r / (a + r);
|
|
69
|
+
return [t, f * 100, s * 100];
|
|
70
|
+
}, u.hsv.rgb = function(e) {
|
|
71
|
+
let t = e[0] / 60, r = e[1] / 100, a = e[2] / 100, o = Math.floor(t) % 6, i = t - Math.floor(t), s = 255 * a * (1 - r), f = 255 * a * (1 - r * i), g = 255 * a * (1 - r * (1 - i));
|
|
72
|
+
switch (a *= 255, o) {
|
|
73
|
+
case 0:
|
|
74
|
+
return [a, g, s];
|
|
75
|
+
case 1:
|
|
76
|
+
return [f, a, s];
|
|
77
|
+
case 2:
|
|
78
|
+
return [s, a, g];
|
|
79
|
+
case 3:
|
|
80
|
+
return [s, f, a];
|
|
81
|
+
case 4:
|
|
82
|
+
return [g, s, a];
|
|
83
|
+
case 5:
|
|
84
|
+
return [a, s, f];
|
|
85
|
+
}
|
|
86
|
+
}, u.hsv.hsl = function(e) {
|
|
87
|
+
let t = e[0], r = e[1] / 100, a = e[2] / 100, o = Math.max(a, 0.01), i, s;
|
|
88
|
+
s = (2 - r) * a;
|
|
89
|
+
let f = (2 - r) * o;
|
|
90
|
+
return i = r * o, i /= f <= 1 ? f : 2 - f, i = i || 0, s /= 2, [t, i * 100, s * 100];
|
|
91
|
+
}, u.hwb.rgb = function(e) {
|
|
92
|
+
let t = e[0] / 360, r = e[1] / 100, a = e[2] / 100, o = r + a, i;
|
|
93
|
+
o > 1 && (r /= o, a /= o);
|
|
94
|
+
let s = Math.floor(6 * t), f = 1 - a;
|
|
95
|
+
i = 6 * t - s, s & 1 && (i = 1 - i);
|
|
96
|
+
let g = r + i * (f - r), b, p, m;
|
|
97
|
+
switch (s) {
|
|
98
|
+
default:
|
|
99
|
+
case 6:
|
|
100
|
+
case 0:
|
|
101
|
+
b = f, p = g, m = r;
|
|
102
|
+
break;
|
|
103
|
+
case 1:
|
|
104
|
+
b = g, p = f, m = r;
|
|
105
|
+
break;
|
|
106
|
+
case 2:
|
|
107
|
+
b = r, p = f, m = g;
|
|
108
|
+
break;
|
|
109
|
+
case 3:
|
|
110
|
+
b = r, p = g, m = f;
|
|
111
|
+
break;
|
|
112
|
+
case 4:
|
|
113
|
+
b = g, p = r, m = f;
|
|
114
|
+
break;
|
|
115
|
+
case 5:
|
|
116
|
+
b = f, p = r, m = g;
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
return [b * 255, p * 255, m * 255];
|
|
120
|
+
}, u.cmyk.rgb = function(e) {
|
|
121
|
+
let t = e[0] / 100, r = e[1] / 100, a = e[2] / 100, o = e[3] / 100, i = 1 - Math.min(1, t * (1 - o) + o), s = 1 - Math.min(1, r * (1 - o) + o), f = 1 - Math.min(1, a * (1 - o) + o);
|
|
122
|
+
return [i * 255, s * 255, f * 255];
|
|
123
|
+
}, u.xyz.rgb = function(e) {
|
|
124
|
+
let t = e[0] / 100, r = e[1] / 100, a = e[2] / 100, o, i, s;
|
|
125
|
+
return o = t * 3.2406 + r * -1.5372 + a * -0.4986, i = t * -0.9689 + r * 1.8758 + a * 0.0415, s = t * 0.0557 + r * -0.204 + a * 1.057, o = o > 31308e-7 ? 1.055 * o ** (1 / 2.4) - 0.055 : o * 12.92, i = i > 31308e-7 ? 1.055 * i ** (1 / 2.4) - 0.055 : i * 12.92, s = s > 31308e-7 ? 1.055 * s ** (1 / 2.4) - 0.055 : s * 12.92, o = Math.min(Math.max(0, o), 1), i = Math.min(Math.max(0, i), 1), s = Math.min(Math.max(0, s), 1), [o * 255, i * 255, s * 255];
|
|
126
|
+
}, u.xyz.lab = function(e) {
|
|
127
|
+
let t = e[0], r = e[1], a = e[2];
|
|
128
|
+
t /= 95.047, r /= 100, a /= 108.883, t = t > 8856e-6 ? t ** (1 / 3) : 7.787 * t + 16 / 116, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116, a = a > 8856e-6 ? a ** (1 / 3) : 7.787 * a + 16 / 116;
|
|
129
|
+
let o = 116 * r - 16, i = 500 * (t - r), s = 200 * (r - a);
|
|
130
|
+
return [o, i, s];
|
|
131
|
+
}, u.lab.xyz = function(e) {
|
|
132
|
+
let t = e[0], r = e[1], a = e[2], o, i, s;
|
|
133
|
+
i = (t + 16) / 116, o = r / 500 + i, s = i - a / 200;
|
|
134
|
+
let f = i ** 3, g = o ** 3, b = s ** 3;
|
|
135
|
+
return i = f > 8856e-6 ? f : (i - 16 / 116) / 7.787, o = g > 8856e-6 ? g : (o - 16 / 116) / 7.787, s = b > 8856e-6 ? b : (s - 16 / 116) / 7.787, o *= 95.047, i *= 100, s *= 108.883, [o, i, s];
|
|
136
|
+
}, u.lab.lch = function(e) {
|
|
137
|
+
let t = e[0], r = e[1], a = e[2], o;
|
|
138
|
+
o = Math.atan2(a, r) * 360 / 2 / Math.PI, o < 0 && (o += 360);
|
|
139
|
+
let i = Math.sqrt(r * r + a * a);
|
|
140
|
+
return [t, i, o];
|
|
141
|
+
}, u.lch.lab = function(e) {
|
|
142
|
+
let t = e[0], r = e[1], a = e[2] / 360 * 2 * Math.PI, o = r * Math.cos(a), i = r * Math.sin(a);
|
|
143
|
+
return [t, o, i];
|
|
144
|
+
}, u.rgb.ansi16 = function(e, t = null) {
|
|
145
|
+
let [r, a, o] = e, i = t === null ? u.rgb.hsv(e)[2] : t;
|
|
146
|
+
if (i = Math.round(i / 50), i === 0) return 30;
|
|
147
|
+
let s = 30 + (Math.round(o / 255) << 2 | Math.round(a / 255) << 1 | Math.round(r / 255));
|
|
148
|
+
return i === 2 && (s += 60), s;
|
|
149
|
+
}, u.hsv.ansi16 = function(e) {
|
|
150
|
+
return u.rgb.ansi16(u.hsv.rgb(e), e[2]);
|
|
151
|
+
}, u.rgb.ansi256 = function(e) {
|
|
152
|
+
let t = e[0], r = e[1], a = e[2];
|
|
153
|
+
return t === r && r === a ? t < 8 ? 16 : t > 248 ? 231 : Math.round((t - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(t / 255 * 5) + 6 * Math.round(r / 255 * 5) + Math.round(a / 255 * 5);
|
|
154
|
+
}, u.ansi16.rgb = function(e) {
|
|
155
|
+
let t = e % 10;
|
|
156
|
+
if (t === 0 || t === 7) return e > 50 && (t += 3.5), t = t / 10.5 * 255, [t, t, t];
|
|
157
|
+
let r = (~~(e > 50) + 1) * 0.5, a = (t & 1) * r * 255, o = (t >> 1 & 1) * r * 255, i = (t >> 2 & 1) * r * 255;
|
|
158
|
+
return [a, o, i];
|
|
159
|
+
}, u.ansi256.rgb = function(e) {
|
|
160
|
+
if (e >= 232) {
|
|
161
|
+
let i = (e - 232) * 10 + 8;
|
|
162
|
+
return [i, i, i];
|
|
163
|
+
}
|
|
164
|
+
e -= 16;
|
|
165
|
+
let t, r = Math.floor(e / 36) / 5 * 255, a = Math.floor((t = e % 36) / 6) / 5 * 255, o = t % 6 / 5 * 255;
|
|
166
|
+
return [r, a, o];
|
|
167
|
+
}, u.rgb.hex = function(e) {
|
|
168
|
+
let t = (((Math.round(e[0]) & 255) << 16) + ((Math.round(e[1]) & 255) << 8) + (Math.round(e[2]) & 255)).toString(16).toUpperCase();
|
|
169
|
+
return "000000".substring(t.length) + t;
|
|
170
|
+
}, u.hex.rgb = function(e) {
|
|
171
|
+
let t = e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
|
172
|
+
if (!t) return [0, 0, 0];
|
|
173
|
+
let r = t[0];
|
|
174
|
+
t[0].length === 3 && (r = r.split("").map((f) => f + f).join(""));
|
|
175
|
+
let a = parseInt(r, 16), o = a >> 16 & 255, i = a >> 8 & 255, s = a & 255;
|
|
176
|
+
return [o, i, s];
|
|
177
|
+
}, u.rgb.hcg = function(e) {
|
|
178
|
+
let t = e[0] / 255, r = e[1] / 255, a = e[2] / 255, o = Math.max(Math.max(t, r), a), i = Math.min(Math.min(t, r), a), s = o - i, f, g;
|
|
179
|
+
return s < 1 ? f = i / (1 - s) : f = 0, s <= 0 ? g = 0 : o === t ? g = (r - a) / s % 6 : o === r ? g = 2 + (a - t) / s : g = 4 + (t - r) / s, g /= 6, g %= 1, [g * 360, s * 100, f * 100];
|
|
180
|
+
}, u.hsl.hcg = function(e) {
|
|
181
|
+
let t = e[1] / 100, r = e[2] / 100, a = r < 0.5 ? 2 * t * r : 2 * t * (1 - r), o = 0;
|
|
182
|
+
return a < 1 && (o = (r - 0.5 * a) / (1 - a)), [e[0], a * 100, o * 100];
|
|
183
|
+
}, u.hsv.hcg = function(e) {
|
|
184
|
+
let t = e[1] / 100, r = e[2] / 100, a = t * r, o = 0;
|
|
185
|
+
return a < 1 && (o = (r - a) / (1 - a)), [e[0], a * 100, o * 100];
|
|
186
|
+
}, u.hcg.rgb = function(e) {
|
|
187
|
+
let t = e[0] / 360, r = e[1] / 100, a = e[2] / 100;
|
|
188
|
+
if (r === 0) return [a * 255, a * 255, a * 255];
|
|
189
|
+
let o = [0, 0, 0], i = t % 1 * 6, s = i % 1, f = 1 - s, g = 0;
|
|
190
|
+
switch (Math.floor(i)) {
|
|
191
|
+
case 0:
|
|
192
|
+
o[0] = 1, o[1] = s, o[2] = 0;
|
|
193
|
+
break;
|
|
194
|
+
case 1:
|
|
195
|
+
o[0] = f, o[1] = 1, o[2] = 0;
|
|
196
|
+
break;
|
|
197
|
+
case 2:
|
|
198
|
+
o[0] = 0, o[1] = 1, o[2] = s;
|
|
199
|
+
break;
|
|
200
|
+
case 3:
|
|
201
|
+
o[0] = 0, o[1] = f, o[2] = 1;
|
|
202
|
+
break;
|
|
203
|
+
case 4:
|
|
204
|
+
o[0] = s, o[1] = 0, o[2] = 1;
|
|
205
|
+
break;
|
|
206
|
+
default:
|
|
207
|
+
o[0] = 1, o[1] = 0, o[2] = f;
|
|
208
|
+
}
|
|
209
|
+
return g = (1 - r) * a, [(r * o[0] + g) * 255, (r * o[1] + g) * 255, (r * o[2] + g) * 255];
|
|
210
|
+
}, u.hcg.hsv = function(e) {
|
|
211
|
+
let t = e[1] / 100, r = e[2] / 100, a = t + r * (1 - t), o = 0;
|
|
212
|
+
return a > 0 && (o = t / a), [e[0], o * 100, a * 100];
|
|
213
|
+
}, u.hcg.hsl = function(e) {
|
|
214
|
+
let t = e[1] / 100, r = e[2] / 100 * (1 - t) + 0.5 * t, a = 0;
|
|
215
|
+
return r > 0 && r < 0.5 ? a = t / (2 * r) : r >= 0.5 && r < 1 && (a = t / (2 * (1 - r))), [e[0], a * 100, r * 100];
|
|
216
|
+
}, u.hcg.hwb = function(e) {
|
|
217
|
+
let t = e[1] / 100, r = e[2] / 100, a = t + r * (1 - t);
|
|
218
|
+
return [e[0], (a - t) * 100, (1 - a) * 100];
|
|
219
|
+
}, u.hwb.hcg = function(e) {
|
|
220
|
+
let t = e[1] / 100, r = 1 - e[2] / 100, a = r - t, o = 0;
|
|
221
|
+
return a < 1 && (o = (r - a) / (1 - a)), [e[0], a * 100, o * 100];
|
|
222
|
+
}, u.apple.rgb = function(e) {
|
|
223
|
+
return [e[0] / 65535 * 255, e[1] / 65535 * 255, e[2] / 65535 * 255];
|
|
224
|
+
}, u.rgb.apple = function(e) {
|
|
225
|
+
return [e[0] / 255 * 65535, e[1] / 255 * 65535, e[2] / 255 * 65535];
|
|
226
|
+
}, u.gray.rgb = function(e) {
|
|
227
|
+
return [e[0] / 100 * 255, e[0] / 100 * 255, e[0] / 100 * 255];
|
|
228
|
+
}, u.gray.hsl = function(e) {
|
|
229
|
+
return [0, 0, e[0]];
|
|
230
|
+
}, u.gray.hsv = u.gray.hsl, u.gray.hwb = function(e) {
|
|
231
|
+
return [0, 100, e[0]];
|
|
232
|
+
}, u.gray.cmyk = function(e) {
|
|
233
|
+
return [0, 0, 0, e[0]];
|
|
234
|
+
}, u.gray.lab = function(e) {
|
|
235
|
+
return [e[0], 0, 0];
|
|
236
|
+
}, u.gray.hex = function(e) {
|
|
237
|
+
let t = Math.round(e[0] / 100 * 255) & 255, r = ((t << 16) + (t << 8) + t).toString(16).toUpperCase();
|
|
238
|
+
return "000000".substring(r.length) + r;
|
|
239
|
+
}, u.rgb.gray = function(e) {
|
|
240
|
+
return [(e[0] + e[1] + e[2]) / 3 / 255 * 100];
|
|
241
|
+
};
|
|
242
|
+
} }), _e = B({ "../../node_modules/color-convert/route.js"(n, l) {
|
|
243
|
+
var c = te();
|
|
244
|
+
function h() {
|
|
245
|
+
let t = {}, r = Object.keys(c);
|
|
246
|
+
for (let a = r.length, o = 0; o < a; o++) t[r[o]] = { distance: -1, parent: null };
|
|
247
|
+
return t;
|
|
248
|
+
}
|
|
249
|
+
function u(t) {
|
|
250
|
+
let r = h(), a = [t];
|
|
251
|
+
for (r[t].distance = 0; a.length; ) {
|
|
252
|
+
let o = a.pop(), i = Object.keys(c[o]);
|
|
253
|
+
for (let s = i.length, f = 0; f < s; f++) {
|
|
254
|
+
let g = i[f], b = r[g];
|
|
255
|
+
b.distance === -1 && (b.distance = r[o].distance + 1, b.parent = o, a.unshift(g));
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return r;
|
|
259
|
+
}
|
|
260
|
+
function d(t, r) {
|
|
261
|
+
return function(a) {
|
|
262
|
+
return r(t(a));
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
function e(t, r) {
|
|
266
|
+
let a = [r[t].parent, t], o = c[r[t].parent][t], i = r[t].parent;
|
|
267
|
+
for (; r[i].parent; ) a.unshift(r[i].parent), o = d(c[r[i].parent][i], o), i = r[i].parent;
|
|
268
|
+
return o.conversion = a, o;
|
|
269
|
+
}
|
|
270
|
+
l.exports = function(t) {
|
|
271
|
+
let r = u(t), a = {}, o = Object.keys(r);
|
|
272
|
+
for (let i = o.length, s = 0; s < i; s++) {
|
|
273
|
+
let f = o[s];
|
|
274
|
+
r[f].parent !== null && (a[f] = e(f, r));
|
|
275
|
+
}
|
|
276
|
+
return a;
|
|
277
|
+
};
|
|
278
|
+
} }), ke = B({ "../../node_modules/color-convert/index.js"(n, l) {
|
|
279
|
+
var c = te(), h = _e(), u = {}, d = Object.keys(c);
|
|
280
|
+
function e(r) {
|
|
281
|
+
let a = function(...o) {
|
|
282
|
+
let i = o[0];
|
|
283
|
+
return i == null ? i : (i.length > 1 && (o = i), r(o));
|
|
284
|
+
};
|
|
285
|
+
return "conversion" in r && (a.conversion = r.conversion), a;
|
|
286
|
+
}
|
|
287
|
+
function t(r) {
|
|
288
|
+
let a = function(...o) {
|
|
289
|
+
let i = o[0];
|
|
290
|
+
if (i == null) return i;
|
|
291
|
+
i.length > 1 && (o = i);
|
|
292
|
+
let s = r(o);
|
|
293
|
+
if (typeof s == "object") for (let f = s.length, g = 0; g < f; g++) s[g] = Math.round(s[g]);
|
|
294
|
+
return s;
|
|
295
|
+
};
|
|
296
|
+
return "conversion" in r && (a.conversion = r.conversion), a;
|
|
297
|
+
}
|
|
298
|
+
d.forEach((r) => {
|
|
299
|
+
u[r] = {}, Object.defineProperty(u[r], "channels", { value: c[r].channels }), Object.defineProperty(u[r], "labels", { value: c[r].labels });
|
|
300
|
+
let a = h(r);
|
|
301
|
+
Object.keys(a).forEach((o) => {
|
|
302
|
+
let i = a[o];
|
|
303
|
+
u[r][o] = t(i), u[r][o].raw = e(i);
|
|
304
|
+
});
|
|
305
|
+
}), l.exports = u;
|
|
306
|
+
} }), _ = ge(ke());
|
|
307
|
+
function C() {
|
|
308
|
+
return (C = Object.assign || function(n) {
|
|
309
|
+
for (var l = 1; l < arguments.length; l++) {
|
|
310
|
+
var c = arguments[l];
|
|
311
|
+
for (var h in c) Object.prototype.hasOwnProperty.call(c, h) && (n[h] = c[h]);
|
|
312
|
+
}
|
|
313
|
+
return n;
|
|
314
|
+
}).apply(this, arguments);
|
|
315
|
+
}
|
|
316
|
+
function W(n, l) {
|
|
317
|
+
if (n == null) return {};
|
|
318
|
+
var c, h, u = {}, d = Object.keys(n);
|
|
319
|
+
for (h = 0; h < d.length; h++) l.indexOf(c = d[h]) >= 0 || (u[c] = n[c]);
|
|
320
|
+
return u;
|
|
321
|
+
}
|
|
322
|
+
function K(n) {
|
|
323
|
+
var l = M(n), c = M(function(h) {
|
|
324
|
+
l.current && l.current(h);
|
|
325
|
+
});
|
|
326
|
+
return l.current = n, c.current;
|
|
327
|
+
}
|
|
328
|
+
var N = function(n, l, c) {
|
|
329
|
+
return l === void 0 && (l = 0), c === void 0 && (c = 1), n > c ? c : n < l ? l : n;
|
|
330
|
+
}, S = function(n) {
|
|
331
|
+
return "touches" in n;
|
|
332
|
+
}, V = function(n) {
|
|
333
|
+
return n && n.ownerDocument.defaultView || self;
|
|
334
|
+
}, Y = function(n, l, c) {
|
|
335
|
+
var h = n.getBoundingClientRect(), u = S(l) ? function(d, e) {
|
|
336
|
+
for (var t = 0; t < d.length; t++) if (d[t].identifier === e) return d[t];
|
|
337
|
+
return d[0];
|
|
338
|
+
}(l.touches, c) : l;
|
|
339
|
+
return { left: N((u.pageX - (h.left + V(n).pageXOffset)) / h.width), top: N((u.pageY - (h.top + V(n).pageYOffset)) / h.height) };
|
|
340
|
+
}, J = function(n) {
|
|
341
|
+
!S(n) && n.preventDefault();
|
|
342
|
+
}, A = v.memo(function(n) {
|
|
343
|
+
var l = n.onMove, c = n.onKey, h = W(n, ["onMove", "onKey"]), u = M(null), d = K(l), e = K(c), t = M(null), r = M(!1), a = F(function() {
|
|
344
|
+
var f = function(p) {
|
|
345
|
+
J(p), (S(p) ? p.touches.length > 0 : p.buttons > 0) && u.current ? d(Y(u.current, p, t.current)) : b(!1);
|
|
346
|
+
}, g = function() {
|
|
347
|
+
return b(!1);
|
|
348
|
+
};
|
|
349
|
+
function b(p) {
|
|
350
|
+
var m = r.current, x = V(u.current), k = p ? x.addEventListener : x.removeEventListener;
|
|
351
|
+
k(m ? "touchmove" : "mousemove", f), k(m ? "touchend" : "mouseup", g);
|
|
352
|
+
}
|
|
353
|
+
return [function(p) {
|
|
354
|
+
var m = p.nativeEvent, x = u.current;
|
|
355
|
+
if (x && (J(m), !function(w, X) {
|
|
356
|
+
return X && !S(w);
|
|
357
|
+
}(m, r.current) && x)) {
|
|
358
|
+
if (S(m)) {
|
|
359
|
+
r.current = !0;
|
|
360
|
+
var k = m.changedTouches || [];
|
|
361
|
+
k.length && (t.current = k[0].identifier);
|
|
362
|
+
}
|
|
363
|
+
x.focus(), d(Y(x, m, t.current)), b(!0);
|
|
364
|
+
}
|
|
365
|
+
}, function(p) {
|
|
366
|
+
var m = p.which || p.keyCode;
|
|
367
|
+
m < 37 || m > 40 || (p.preventDefault(), e({ left: m === 39 ? 0.05 : m === 37 ? -0.05 : 0, top: m === 40 ? 0.05 : m === 38 ? -0.05 : 0 }));
|
|
368
|
+
}, b];
|
|
369
|
+
}, [e, d]), o = a[0], i = a[1], s = a[2];
|
|
370
|
+
return O(function() {
|
|
371
|
+
return s;
|
|
372
|
+
}, [s]), v.createElement("div", C({}, h, { onTouchStart: o, onMouseDown: o, className: "react-colorful__interactive", ref: u, onKeyDown: i, tabIndex: 0, role: "slider" }));
|
|
373
|
+
}), I = function(n) {
|
|
374
|
+
return n.filter(Boolean).join(" ");
|
|
375
|
+
}, U = function(n) {
|
|
376
|
+
var l = n.color, c = n.left, h = n.top, u = h === void 0 ? 0.5 : h, d = I(["react-colorful__pointer", n.className]);
|
|
377
|
+
return v.createElement("div", { className: d, style: { top: 100 * u + "%", left: 100 * c + "%" } }, v.createElement("div", { className: "react-colorful__pointer-fill", style: { backgroundColor: l } }));
|
|
378
|
+
}, y = function(n, l, c) {
|
|
379
|
+
return l === void 0 && (l = 0), c === void 0 && (c = Math.pow(10, l)), Math.round(c * n) / c;
|
|
380
|
+
}, Me = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Ee = function(n) {
|
|
381
|
+
return oe(D(n));
|
|
382
|
+
}, D = function(n) {
|
|
383
|
+
return n[0] === "#" && (n = n.substring(1)), n.length < 6 ? { r: parseInt(n[0] + n[0], 16), g: parseInt(n[1] + n[1], 16), b: parseInt(n[2] + n[2], 16), a: n.length === 4 ? y(parseInt(n[3] + n[3], 16) / 255, 2) : 1 } : { r: parseInt(n.substring(0, 2), 16), g: parseInt(n.substring(2, 4), 16), b: parseInt(n.substring(4, 6), 16), a: n.length === 8 ? y(parseInt(n.substring(6, 8), 16) / 255, 2) : 1 };
|
|
384
|
+
}, Ce = function(n, l) {
|
|
385
|
+
return l === void 0 && (l = "deg"), Number(n) * (Me[l] || 1);
|
|
386
|
+
}, $e = function(n) {
|
|
387
|
+
var l = /hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);
|
|
388
|
+
return l ? Oe({ h: Ce(l[1], l[2]), s: Number(l[3]), l: Number(l[4]), a: l[5] === void 0 ? 1 : Number(l[5]) / (l[6] ? 100 : 1) }) : { h: 0, s: 0, v: 0, a: 1 };
|
|
389
|
+
}, Oe = function(n) {
|
|
390
|
+
var l = n.s, c = n.l;
|
|
391
|
+
return { h: n.h, s: (l *= (c < 50 ? c : 100 - c) / 100) > 0 ? 2 * l / (c + l) * 100 : 0, v: c + l, a: n.a };
|
|
392
|
+
}, Ne = function(n) {
|
|
393
|
+
return Se(ae(n));
|
|
394
|
+
}, ne = function(n) {
|
|
395
|
+
var l = n.s, c = n.v, h = n.a, u = (200 - l) * c / 100;
|
|
396
|
+
return { h: y(n.h), s: y(u > 0 && u < 200 ? l * c / 100 / (u <= 100 ? u : 200 - u) * 100 : 0), l: y(u / 2), a: y(h, 2) };
|
|
397
|
+
}, G = function(n) {
|
|
398
|
+
var l = ne(n);
|
|
399
|
+
return "hsl(" + l.h + ", " + l.s + "%, " + l.l + "%)";
|
|
400
|
+
}, R = function(n) {
|
|
401
|
+
var l = ne(n);
|
|
402
|
+
return "hsla(" + l.h + ", " + l.s + "%, " + l.l + "%, " + l.a + ")";
|
|
403
|
+
}, ae = function(n) {
|
|
404
|
+
var l = n.h, c = n.s, h = n.v, u = n.a;
|
|
405
|
+
l = l / 360 * 6, c /= 100, h /= 100;
|
|
406
|
+
var d = Math.floor(l), e = h * (1 - c), t = h * (1 - (l - d) * c), r = h * (1 - (1 - l + d) * c), a = d % 6;
|
|
407
|
+
return { r: y(255 * [h, t, e, e, r, h][a]), g: y(255 * [r, h, h, t, e, e][a]), b: y(255 * [e, e, r, h, h, t][a]), a: y(u, 2) };
|
|
408
|
+
}, je = function(n) {
|
|
409
|
+
var l = /rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);
|
|
410
|
+
return l ? oe({ r: Number(l[1]) / (l[2] ? 100 / 255 : 1), g: Number(l[3]) / (l[4] ? 100 / 255 : 1), b: Number(l[5]) / (l[6] ? 100 / 255 : 1), a: l[7] === void 0 ? 1 : Number(l[7]) / (l[8] ? 100 : 1) }) : { h: 0, s: 0, v: 0, a: 1 };
|
|
411
|
+
}, H = function(n) {
|
|
412
|
+
var l = n.toString(16);
|
|
413
|
+
return l.length < 2 ? "0" + l : l;
|
|
414
|
+
}, Se = function(n) {
|
|
415
|
+
var l = n.r, c = n.g, h = n.b, u = n.a, d = u < 1 ? H(y(255 * u)) : "";
|
|
416
|
+
return "#" + H(l) + H(c) + H(h) + d;
|
|
417
|
+
}, oe = function(n) {
|
|
418
|
+
var l = n.r, c = n.g, h = n.b, u = n.a, d = Math.max(l, c, h), e = d - Math.min(l, c, h), t = e ? d === l ? (c - h) / e : d === c ? 2 + (h - l) / e : 4 + (l - c) / e : 0;
|
|
419
|
+
return { h: y(60 * (t < 0 ? t + 6 : t)), s: y(d ? e / d * 100 : 0), v: y(d / 255 * 100), a: u };
|
|
420
|
+
}, le = v.memo(function(n) {
|
|
421
|
+
var l = n.hue, c = n.onChange, h = I(["react-colorful__hue", n.className]);
|
|
422
|
+
return v.createElement("div", { className: h }, v.createElement(A, { onMove: function(u) {
|
|
423
|
+
c({ h: 360 * u.left });
|
|
424
|
+
}, onKey: function(u) {
|
|
425
|
+
c({ h: N(l + 360 * u.left, 0, 360) });
|
|
426
|
+
}, "aria-label": "Hue", "aria-valuenow": y(l), "aria-valuemax": "360", "aria-valuemin": "0" }, v.createElement(U, { className: "react-colorful__hue-pointer", left: l / 360, color: G({ h: l, s: 100, v: 100, a: 1 }) })));
|
|
427
|
+
}), ie = v.memo(function(n) {
|
|
428
|
+
var l = n.hsva, c = n.onChange, h = { backgroundColor: G({ h: l.h, s: 100, v: 100, a: 1 }) };
|
|
429
|
+
return v.createElement("div", { className: "react-colorful__saturation", style: h }, v.createElement(A, { onMove: function(u) {
|
|
430
|
+
c({ s: 100 * u.left, v: 100 - 100 * u.top });
|
|
431
|
+
}, onKey: function(u) {
|
|
432
|
+
c({ s: N(l.s + 100 * u.left, 0, 100), v: N(l.v - 100 * u.top, 0, 100) });
|
|
433
|
+
}, "aria-label": "Color", "aria-valuetext": "Saturation " + y(l.s) + "%, Brightness " + y(l.v) + "%" }, v.createElement(U, { className: "react-colorful__saturation-pointer", top: 1 - l.v / 100, left: l.s / 100, color: G(l) })));
|
|
434
|
+
}), ue = function(n, l) {
|
|
435
|
+
if (n === l) return !0;
|
|
436
|
+
for (var c in n) if (n[c] !== l[c]) return !1;
|
|
437
|
+
return !0;
|
|
438
|
+
}, se = function(n, l) {
|
|
439
|
+
return n.replace(/\s/g, "") === l.replace(/\s/g, "");
|
|
440
|
+
}, ze = function(n, l) {
|
|
441
|
+
return n.toLowerCase() === l.toLowerCase() || ue(D(n), D(l));
|
|
442
|
+
};
|
|
443
|
+
function ce(n, l, c) {
|
|
444
|
+
var h = K(c), u = j(function() {
|
|
445
|
+
return n.toHsva(l);
|
|
446
|
+
}), d = u[0], e = u[1], t = M({ color: l, hsva: d });
|
|
447
|
+
O(function() {
|
|
448
|
+
if (!n.equal(l, t.current.color)) {
|
|
449
|
+
var a = n.toHsva(l);
|
|
450
|
+
t.current = { hsva: a, color: l }, e(a);
|
|
451
|
+
}
|
|
452
|
+
}, [l, n]), O(function() {
|
|
453
|
+
var a;
|
|
454
|
+
ue(d, t.current.hsva) || n.equal(a = n.fromHsva(d), t.current.color) || (t.current = { hsva: d, color: a }, h(a));
|
|
455
|
+
}, [d, n, h]);
|
|
456
|
+
var r = z(function(a) {
|
|
457
|
+
e(function(o) {
|
|
458
|
+
return Object.assign({}, o, a);
|
|
459
|
+
});
|
|
460
|
+
}, []);
|
|
461
|
+
return [d, r];
|
|
462
|
+
}
|
|
463
|
+
var Ie = typeof window < "u" ? xe : O, He = function() {
|
|
464
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
|
|
465
|
+
}, Q = /* @__PURE__ */ new Map(), he = function(n) {
|
|
466
|
+
Ie(function() {
|
|
467
|
+
var l = n.current ? n.current.ownerDocument : document;
|
|
468
|
+
if (l !== void 0 && !Q.has(l)) {
|
|
469
|
+
var c = l.createElement("style");
|
|
470
|
+
c.innerHTML = `.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`, Q.set(l, c);
|
|
471
|
+
var h = He();
|
|
472
|
+
h && c.setAttribute("nonce", h), l.head.appendChild(c);
|
|
473
|
+
}
|
|
474
|
+
}, []);
|
|
475
|
+
}, qe = function(n) {
|
|
476
|
+
var l = n.className, c = n.colorModel, h = n.color, u = h === void 0 ? c.defaultColor : h, d = n.onChange, e = W(n, ["className", "colorModel", "color", "onChange"]), t = M(null);
|
|
477
|
+
he(t);
|
|
478
|
+
var r = ce(c, u, d), a = r[0], o = r[1], i = I(["react-colorful", l]);
|
|
479
|
+
return v.createElement("div", C({}, e, { ref: t, className: i }), v.createElement(ie, { hsva: a, onChange: o }), v.createElement(le, { hue: a.h, onChange: o, className: "react-colorful__last-control" }));
|
|
480
|
+
}, Pe = { defaultColor: "000", toHsva: Ee, fromHsva: function(n) {
|
|
481
|
+
return Ne({ h: n.h, s: n.s, v: n.v, a: 1 });
|
|
482
|
+
}, equal: ze }, Re = function(n) {
|
|
483
|
+
return v.createElement(qe, C({}, n, { colorModel: Pe }));
|
|
484
|
+
}, Le = function(n) {
|
|
485
|
+
var l = n.className, c = n.hsva, h = n.onChange, u = { backgroundImage: "linear-gradient(90deg, " + R(Object.assign({}, c, { a: 0 })) + ", " + R(Object.assign({}, c, { a: 1 })) + ")" }, d = I(["react-colorful__alpha", l]), e = y(100 * c.a);
|
|
486
|
+
return v.createElement("div", { className: d }, v.createElement("div", { className: "react-colorful__alpha-gradient", style: u }), v.createElement(A, { onMove: function(t) {
|
|
487
|
+
h({ a: t.left });
|
|
488
|
+
}, onKey: function(t) {
|
|
489
|
+
h({ a: N(c.a + t.left) });
|
|
490
|
+
}, "aria-label": "Alpha", "aria-valuetext": e + "%", "aria-valuenow": e, "aria-valuemin": "0", "aria-valuemax": "100" }, v.createElement(U, { className: "react-colorful__alpha-pointer", left: c.a, color: R(c) })));
|
|
491
|
+
}, fe = function(n) {
|
|
492
|
+
var l = n.className, c = n.colorModel, h = n.color, u = h === void 0 ? c.defaultColor : h, d = n.onChange, e = W(n, ["className", "colorModel", "color", "onChange"]), t = M(null);
|
|
493
|
+
he(t);
|
|
494
|
+
var r = ce(c, u, d), a = r[0], o = r[1], i = I(["react-colorful", l]);
|
|
495
|
+
return v.createElement("div", C({}, e, { ref: t, className: i }), v.createElement(ie, { hsva: a, onChange: o }), v.createElement(le, { hue: a.h, onChange: o }), v.createElement(Le, { hsva: a, onChange: o, className: "react-colorful__last-control" }));
|
|
496
|
+
}, Be = { defaultColor: "hsla(0, 0%, 0%, 1)", toHsva: $e, fromHsva: R, equal: se }, Xe = function(n) {
|
|
497
|
+
return v.createElement(fe, C({}, n, { colorModel: Be }));
|
|
498
|
+
}, Ke = { defaultColor: "rgba(0, 0, 0, 1)", toHsva: je, fromHsva: function(n) {
|
|
499
|
+
var l = ae(n);
|
|
500
|
+
return "rgba(" + l.r + ", " + l.g + ", " + l.b + ", " + l.a + ")";
|
|
501
|
+
}, equal: se }, Ve = function(n) {
|
|
502
|
+
return v.createElement(fe, C({}, n, { colorModel: Ke }));
|
|
503
|
+
}, De = E.div({ position: "relative", maxWidth: 250, '&[aria-readonly="true"]': { opacity: 0.5 } }), Ge = E(re)({ position: "absolute", zIndex: 1, top: 4, left: 4, "[aria-readonly=true] &": { cursor: "not-allowed" } }), Te = E.div({ width: 200, margin: 5, ".react-colorful__saturation": { borderRadius: "4px 4px 0 0" }, ".react-colorful__hue": { boxShadow: "inset 0 0 0 1px rgb(0 0 0 / 5%)" }, ".react-colorful__last-control": { borderRadius: "0 0 4px 4px" } }), Fe = E(be)(({ theme: n }) => ({ fontFamily: n.typography.fonts.base })), We = E.div({ display: "grid", gridTemplateColumns: "repeat(9, 16px)", gap: 6, padding: 3, marginTop: 5, width: 200 }), Ae = E.div(({ theme: n, active: l }) => ({ width: 16, height: 16, boxShadow: l ? `${n.appBorderColor} 0 0 0 1px inset, ${n.textMutedColor}50 0 0 0 4px` : `${n.appBorderColor} 0 0 0 1px inset`, borderRadius: n.appBorderRadius })), Ue = `url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')`, Z = ({ value: n, style: l, ...c }) => {
|
|
504
|
+
let h = `linear-gradient(${n}, ${n}), ${Ue}, linear-gradient(#fff, #fff)`;
|
|
505
|
+
return v.createElement(Ae, { ...c, style: { ...l, backgroundImage: h } });
|
|
506
|
+
}, Ye = E(ve.Input)(({ theme: n, readOnly: l }) => ({ width: "100%", paddingLeft: 30, paddingRight: 30, boxSizing: "border-box", fontFamily: n.typography.fonts.base })), Je = E(me)(({ theme: n }) => ({ position: "absolute", zIndex: 1, top: 6, right: 7, width: 20, height: 20, padding: 4, boxSizing: "border-box", cursor: "pointer", color: n.input.color })), de = ((n) => (n.RGB = "rgb", n.HSL = "hsl", n.HEX = "hex", n))(de || {}), q = Object.values(de), Qe = /\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/, Ze = /^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i, er = /^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i, T = /^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i, rr = /^\s*#?([0-9a-f]{3})\s*$/i, tr = { hex: Re, rgb: Ve, hsl: Xe }, P = { hex: "transparent", rgb: "rgba(0, 0, 0, 0)", hsl: "hsla(0, 0%, 0%, 0)" }, ee = (n) => {
|
|
507
|
+
let l = n == null ? void 0 : n.match(Qe);
|
|
508
|
+
if (!l) return [0, 0, 0, 1];
|
|
509
|
+
let [, c, h, u, d = 1] = l;
|
|
510
|
+
return [c, h, u, d].map(Number);
|
|
511
|
+
}, $ = (n) => {
|
|
512
|
+
if (!n) return;
|
|
513
|
+
let l = !0;
|
|
514
|
+
if (Ze.test(n)) {
|
|
515
|
+
let [e, t, r, a] = ee(n), [o, i, s] = _.default.rgb.hsl([e, t, r]) || [0, 0, 0];
|
|
516
|
+
return { valid: l, value: n, keyword: _.default.rgb.keyword([e, t, r]), colorSpace: "rgb", rgb: n, hsl: `hsla(${o}, ${i}%, ${s}%, ${a})`, hex: `#${_.default.rgb.hex([e, t, r]).toLowerCase()}` };
|
|
517
|
+
}
|
|
518
|
+
if (er.test(n)) {
|
|
519
|
+
let [e, t, r, a] = ee(n), [o, i, s] = _.default.hsl.rgb([e, t, r]) || [0, 0, 0];
|
|
520
|
+
return { valid: l, value: n, keyword: _.default.hsl.keyword([e, t, r]), colorSpace: "hsl", rgb: `rgba(${o}, ${i}, ${s}, ${a})`, hsl: n, hex: `#${_.default.hsl.hex([e, t, r]).toLowerCase()}` };
|
|
521
|
+
}
|
|
522
|
+
let c = n.replace("#", ""), h = _.default.keyword.rgb(c) || _.default.hex.rgb(c), u = _.default.rgb.hsl(h), d = n;
|
|
523
|
+
if (/[^#a-f0-9]/i.test(n) ? d = c : T.test(n) && (d = `#${c}`), d.startsWith("#")) l = T.test(d);
|
|
524
|
+
else try {
|
|
525
|
+
_.default.keyword.hex(d);
|
|
526
|
+
} catch {
|
|
527
|
+
l = !1;
|
|
528
|
+
}
|
|
529
|
+
return { valid: l, value: d, keyword: _.default.rgb.keyword(h), colorSpace: "hex", rgb: `rgba(${h[0]}, ${h[1]}, ${h[2]}, 1)`, hsl: `hsla(${u[0]}, ${u[1]}%, ${u[2]}%, 1)`, hex: d };
|
|
530
|
+
}, nr = (n, l, c) => {
|
|
531
|
+
if (!n || !(l != null && l.valid)) return P[c];
|
|
532
|
+
if (c !== "hex") return (l == null ? void 0 : l[c]) || P[c];
|
|
533
|
+
if (!l.hex.startsWith("#")) try {
|
|
534
|
+
return `#${_.default.keyword.hex(l.hex)}`;
|
|
535
|
+
} catch {
|
|
536
|
+
return P.hex;
|
|
537
|
+
}
|
|
538
|
+
let h = l.hex.match(rr);
|
|
539
|
+
if (!h) return T.test(l.hex) ? l.hex : P.hex;
|
|
540
|
+
let [u, d, e] = h[1].split("");
|
|
541
|
+
return `#${u}${u}${d}${d}${e}${e}`;
|
|
542
|
+
}, ar = (n, l) => {
|
|
543
|
+
let [c, h] = j(n || ""), [u, d] = j(() => $(c)), [e, t] = j((u == null ? void 0 : u.colorSpace) || "hex");
|
|
544
|
+
O(() => {
|
|
545
|
+
let i = n || "", s = $(i);
|
|
546
|
+
h(i), d(s), t((s == null ? void 0 : s.colorSpace) || "hex");
|
|
547
|
+
}, [n]);
|
|
548
|
+
let r = F(() => nr(c, u, e).toLowerCase(), [c, u, e]), a = z((i) => {
|
|
549
|
+
let s = $(i), f = (s == null ? void 0 : s.value) || i || "";
|
|
550
|
+
h(f), f === "" && (d(void 0), l(void 0)), s && (d(s), t(s.colorSpace), l(s.value));
|
|
551
|
+
}, [l]), o = z(() => {
|
|
552
|
+
let i = q.indexOf(e) + 1;
|
|
553
|
+
i >= q.length && (i = 0), t(q[i]);
|
|
554
|
+
let s = (u == null ? void 0 : u[q[i]]) || "";
|
|
555
|
+
h(s), l(s);
|
|
556
|
+
}, [u, e, l]);
|
|
557
|
+
return { value: c, realValue: r, updateValue: a, color: u, colorSpace: e, cycleColorSpace: o };
|
|
558
|
+
}, L = (n) => n.replace(/\s*/, "").toLowerCase(), or = (n, l, c) => {
|
|
559
|
+
let [h, u] = j(l != null && l.valid ? [l] : []);
|
|
560
|
+
O(() => {
|
|
561
|
+
l === void 0 && u([]);
|
|
562
|
+
}, [l]);
|
|
563
|
+
let d = F(() => (n || []).map((t) => typeof t == "string" ? $(t) : t.title ? { ...$(t.color), keyword: t.title } : $(t.color)).concat(h).filter(Boolean).slice(-27), [n, h]), e = z((t) => {
|
|
564
|
+
t != null && t.valid && (d.some((r) => L(r[c]) === L(t[c])) || u((r) => r.concat(t)));
|
|
565
|
+
}, [c, d]);
|
|
566
|
+
return { presets: d, addPreset: e };
|
|
567
|
+
}, lr = ({ name: n, value: l, onChange: c, onFocus: h, onBlur: u, presetColors: d, startOpen: e = !1, argType: t }) => {
|
|
568
|
+
var k;
|
|
569
|
+
let r = z(pe(c, 200), [c]), { value: a, realValue: o, updateValue: i, color: s, colorSpace: f, cycleColorSpace: g } = ar(l, r), { presets: b, addPreset: p } = or(d, s, f), m = tr[f], x = !!((k = t == null ? void 0 : t.table) != null && k.readonly);
|
|
570
|
+
return v.createElement(De, { "aria-readonly": x }, v.createElement(Ge, { startOpen: e, trigger: x ? [null] : void 0, closeOnOutsideClick: !0, onVisibleChange: () => p(s), tooltip: v.createElement(Te, null, v.createElement(m, { color: o === "transparent" ? "#000000" : o, onChange: i, onFocus: h, onBlur: u }), b.length > 0 && v.createElement(We, null, b.map((w, X) => v.createElement(re, { key: `${w.value}-${X}`, hasChrome: !1, tooltip: v.createElement(Fe, { note: w.keyword || w.value }) }, v.createElement(Z, { value: w[f], active: s && L(w[f]) === L(s[f]), onClick: () => i(w.value) }))))) }, v.createElement(Z, { value: o, style: { margin: 4 } })), v.createElement(Ye, { id: ye(n), value: a, onChange: (w) => i(w.target.value), onFocus: (w) => w.target.select(), readOnly: x, placeholder: "Choose color..." }), a ? v.createElement(Je, { onClick: g }) : null);
|
|
571
|
+
}, sr = lr;
|
|
572
|
+
export {
|
|
573
|
+
lr as ColorControl,
|
|
574
|
+
sr as default
|
|
575
|
+
};
|
|
@@ -3,11 +3,12 @@ import "react";
|
|
|
3
3
|
import "./components/atoms/column/column.js";
|
|
4
4
|
import "./components/atoms/row/row.js";
|
|
5
5
|
import o from "./components/atoms/image/image.js";
|
|
6
|
-
import "./react-spring_web.modern-
|
|
6
|
+
import "./react-spring_web.modern-ClBJWBW2.js";
|
|
7
7
|
import "./components/atoms/group/group.js";
|
|
8
8
|
import "./components/molecules/wrapper/wrapper.js";
|
|
9
9
|
import "./components/molecules/wallpaper/wallpaper.js";
|
|
10
|
-
import "./index-
|
|
10
|
+
import "./index-BTF1caLu.js";
|
|
11
|
+
import "./models/PortholeBranchModel.js";
|
|
11
12
|
import "./models/ActorModel.js";
|
|
12
13
|
import "./models/BookModel.js";
|
|
13
14
|
import "./models/ChapterModel.js";
|
|
@@ -18,19 +19,19 @@ import "./models/LeafModel.js";
|
|
|
18
19
|
import "./models/LevelModel.js";
|
|
19
20
|
import "./models/NeutralModel.js";
|
|
20
21
|
import "./models/NPCModel.js";
|
|
21
|
-
import "./models/PortholeBranchModel.js";
|
|
22
22
|
import "./models/SettingsModel.js";
|
|
23
23
|
import "./models/ShieldModel.js";
|
|
24
24
|
import "./models/TileModel.js";
|
|
25
25
|
import "./models/UserModel.js";
|
|
26
26
|
import "./models/WeaponModel.js";
|
|
27
27
|
import "./models/WorldModel.js";
|
|
28
|
+
import "./models/TreeModel.js";
|
|
28
29
|
import "./components/organisms/registration/registration-machine.js";
|
|
29
30
|
import "./transform-DGclBZTD.js";
|
|
30
31
|
import "./components/organisms/survey/question/edit/edit-option-list/edit-option-list-machine.js";
|
|
31
32
|
import "./index.esm-DI2C2CaF.js";
|
|
32
33
|
import "./react-masonry-css.module-CJ43viV7.js";
|
|
33
|
-
const i = "data:image/svg+xml,%3csvg%20width='220'%20height='404'%20viewBox='0%200%20220%20404'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M158%200H44L0%20168H82L24%20404L220%20104H112L158%200Z'%20fill='%23E3D597'/%3e%3c/svg%3e",
|
|
34
|
+
const i = "data:image/svg+xml,%3csvg%20width='220'%20height='404'%20viewBox='0%200%20220%20404'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M158%200H44L0%20168H82L24%20404L220%20104H112L158%200Z'%20fill='%23E3D597'/%3e%3c/svg%3e", F = () => /* @__PURE__ */ t(o, { a11y: "lightening bolt", url: i, width: 30, height: 30 });
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
+
F as B
|
|
36
37
|
};
|