@ncino/web-components 8.0.0-preview.9 → 8.0.1

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.
Files changed (477) hide show
  1. package/LICENSE.md +1 -0
  2. package/README.md +1 -1
  3. package/dist/_virtual/axe.js +1 -1
  4. package/dist/_virtual/index_html.js +1 -1
  5. package/dist/_virtual/index_react.js +1 -1
  6. package/dist/components/accordion/gator/base/accordion.gator.js +47 -28
  7. package/dist/components/accordion/gator/group/accordion-group.gator.js +2 -2
  8. package/dist/components/alert/gator/base/alert.gator.js +3 -3
  9. package/dist/components/alert/gator/subtitle/alert-subtitle.gator.js +2 -2
  10. package/dist/components/alert/gator/title/alert-title.gator.js +2 -2
  11. package/dist/components/avatar/gator/avatar.gator.js +5 -5
  12. package/dist/components/badge/gator/badge.gator.js +2 -2
  13. package/dist/components/banner/gator/banner.gator.js +6 -6
  14. package/dist/components/boolean/boolean.gator.js +5 -5
  15. package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +1 -1
  16. package/dist/components/button/gator/button.gator.js +1 -1
  17. package/dist/components/button-card/gator/button-card.gator.js +1 -1
  18. package/dist/components/button-group/gator/button-group.gator.js +1 -1
  19. package/dist/components/card/card.js +1 -1
  20. package/dist/components/card/gator/base/card.gator.js +1 -1
  21. package/dist/components/checkbox/checkbox.gator.js +8 -5
  22. package/dist/components/display-card/gator/display-card.gator.js +8 -10
  23. package/dist/components/divider/gator/divider.gator.js +2 -2
  24. package/dist/components/guided-nav/gator/guided-nav/guided-nav.gator.js +5 -3
  25. package/dist/components/guided-nav/gator/guided-nav-step/guided-nav-step.gator.js +23 -14
  26. package/dist/components/guided-nav/gator/guided-nav-substep/guided-nav-substep.gator.js +9 -7
  27. package/dist/components/headline-card/gator/headline-card.gator.js +3 -3
  28. package/dist/components/icon/gator/icon.gator.js +3 -3
  29. package/dist/components/icon/gator/index.js +1 -1
  30. package/dist/components/icon/gator/templates/brain.js +8 -0
  31. package/dist/components/icon/gator/templates/document-ai.js +11 -0
  32. package/dist/components/icon/gator/templates/flags/flag-kh-cambodia.js +280 -80
  33. package/dist/components/icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js +7 -7
  34. package/dist/components/icon/gator/templates/flags/flag-ru-russian-federation.js +26 -19
  35. package/dist/components/icon/gator/templates/flags/flag-sa-sudi-arabia.js +28 -11
  36. package/dist/components/icon/gator/templates/flags/flag-sv-el-slvador.js +36 -24
  37. package/dist/components/icon/gator/templates/index.js +1 -1
  38. package/dist/components/icon/gator/templates/number-0.js +8 -0
  39. package/dist/components/icon/gator/templates/number-10.js +11 -0
  40. package/dist/components/icon/gator/templates/number-4.js +8 -0
  41. package/dist/components/icon/gator/templates/number-5.js +8 -0
  42. package/dist/components/icon/gator/templates/number-6.js +8 -0
  43. package/dist/components/icon/gator/templates/number-7.js +8 -0
  44. package/dist/components/icon/gator/templates/number-8.js +8 -0
  45. package/dist/components/icon/gator/templates/number-9.js +8 -0
  46. package/dist/components/icon/gator/templates/robot.js +17 -0
  47. package/dist/components/icon-button/gator/icon-button.gator.js +3 -3
  48. package/dist/components/icon-button/icon-button.js +1 -1
  49. package/dist/components/illustration/gator/illustration.gator.js +4 -4
  50. package/dist/components/illustration/gator/templates/add-note.js +1 -1
  51. package/dist/components/illustration/gator/templates/address.js +3 -3
  52. package/dist/components/illustration/gator/templates/appointment-confirmed.js +3 -3
  53. package/dist/components/illustration/gator/templates/assets.js +1 -1
  54. package/dist/components/illustration/gator/templates/auto-money.js +3 -3
  55. package/dist/components/illustration/gator/templates/balloons.js +3 -3
  56. package/dist/components/illustration/gator/templates/bank-account.js +1 -1
  57. package/dist/components/illustration/gator/templates/brief-case.js +1 -1
  58. package/dist/components/illustration/gator/templates/calendar-home.js +3 -3
  59. package/dist/components/illustration/gator/templates/change-data.js +3 -3
  60. package/dist/components/illustration/gator/templates/check-with-pencil.js +3 -3
  61. package/dist/components/illustration/gator/templates/co-borrower.js +1 -1
  62. package/dist/components/illustration/gator/templates/co-borrowers-incomplete.js +1 -1
  63. package/dist/components/illustration/gator/templates/co-borrowers.js +1 -1
  64. package/dist/components/illustration/gator/templates/connectivity.js +1 -1
  65. package/dist/components/illustration/gator/templates/contact-search.js +1 -1
  66. package/dist/components/illustration/gator/templates/conversation-multiple.js +3 -3
  67. package/dist/components/illustration/gator/templates/credit-card.js +3 -3
  68. package/dist/components/illustration/gator/templates/crop-background.js +1 -1
  69. package/dist/components/illustration/gator/templates/crop-page.js +3 -3
  70. package/dist/components/illustration/gator/templates/declarations-legal.js +3 -3
  71. package/dist/components/illustration/gator/templates/deliver.js +1 -1
  72. package/dist/components/illustration/gator/templates/demographic-info.js +3 -3
  73. package/dist/components/illustration/gator/templates/document-add.js +1 -1
  74. package/dist/components/illustration/gator/templates/document-signature.js +1 -1
  75. package/dist/components/illustration/gator/templates/download-app.js +1 -1
  76. package/dist/components/illustration/gator/templates/empty-box.js +1 -1
  77. package/dist/components/illustration/gator/templates/home-search.js +3 -3
  78. package/dist/components/illustration/gator/templates/house-5.js +3 -3
  79. package/dist/components/illustration/gator/templates/house-6.js +3 -3
  80. package/dist/components/illustration/gator/templates/house-fireworks.js +1 -1
  81. package/dist/components/illustration/gator/templates/house-under-construction.js +3 -3
  82. package/dist/components/illustration/gator/templates/house-with-shield.js +3 -3
  83. package/dist/components/illustration/gator/templates/inquiry.js +1 -1
  84. package/dist/components/illustration/gator/templates/locked.js +1 -1
  85. package/dist/components/illustration/gator/templates/make-an-offer.js +1 -1
  86. package/dist/components/illustration/gator/templates/network-error.js +1 -1
  87. package/dist/components/illustration/gator/templates/page-1.js +1 -1
  88. package/dist/components/illustration/gator/templates/page-2.js +1 -1
  89. package/dist/components/illustration/gator/templates/page-3.js +1 -1
  90. package/dist/components/illustration/gator/templates/paper-3.js +3 -3
  91. package/dist/components/illustration/gator/templates/paper-7.js +3 -3
  92. package/dist/components/illustration/gator/templates/person-2.js +3 -3
  93. package/dist/components/illustration/gator/templates/personal-info.js +3 -3
  94. package/dist/components/illustration/gator/templates/price-search.js +3 -3
  95. package/dist/components/illustration/gator/templates/quick-links.js +1 -1
  96. package/dist/components/illustration/gator/templates/register.js +3 -3
  97. package/dist/components/illustration/gator/templates/schedule-home-tour.js +1 -1
  98. package/dist/components/illustration/gator/templates/social-security.js +1 -1
  99. package/dist/components/illustration/gator/templates/start-conversation.js +3 -3
  100. package/dist/components/illustration/gator/templates/status-no-x.js +1 -1
  101. package/dist/components/illustration/gator/templates/status.js +3 -3
  102. package/dist/components/illustration/gator/templates/success.js +3 -3
  103. package/dist/components/illustration/gator/templates/talkluments.js +1 -1
  104. package/dist/components/illustration/gator/templates/thumbs-down-man.js +1 -1
  105. package/dist/components/illustration/gator/templates/transfer.js +1 -1
  106. package/dist/components/illustration/gator/templates/unsecured-line-of-credit.js +3 -3
  107. package/dist/components/illustration/gator/templates/upload-cloud.js +1 -1
  108. package/dist/components/image-card/gator/image-card.gator.js +41 -0
  109. package/dist/components/image-card/image-card.js +1 -0
  110. package/dist/components/image-card/index.js +1 -0
  111. package/dist/components/input/base/input-base.gator.js +12 -8
  112. package/dist/components/input/gator/dropdown/input-dropdown.gator.js +20 -17
  113. package/dist/components/input/gator/help-text/help-text.gator.js +4 -4
  114. package/dist/components/input/gator/input-currency/input-currency.gator.js +2 -2
  115. package/dist/components/input/gator/input-date/input-date.gator.js +14 -17
  116. package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js +12 -9
  117. package/dist/components/input/gator/input-file/input-file.gator.js +7 -9
  118. package/dist/components/input/gator/input-label/input-label.gator.js +4 -4
  119. package/dist/components/input/gator/input-masked/input-masked.gator.js +1 -1
  120. package/dist/components/input/gator/input-phone/input-phone.gator.js +2 -2
  121. package/dist/components/input/gator/input-search/input-search.gator.js +6 -6
  122. package/dist/components/input/gator/input-text/input-text.gator.js +1 -1
  123. package/dist/components/input/gator/input-textarea/input-textarea.gator.js +4 -4
  124. package/dist/components/input/gator/input-time/input-time.gator.js +4 -4
  125. package/dist/components/input-rich-text/ckeditor-config.js +1 -1
  126. package/dist/components/input-rich-text/input-rich-text.slds.js +3 -3
  127. package/dist/components/list/gator/list/list.gator.js +5 -5
  128. package/dist/components/list/gator/list-item/list-item.gator.js +19 -19
  129. package/dist/components/loading-spinner/gator/loading-spinner.gator.js +2 -2
  130. package/dist/components/menu/base/gator/menu.gator.js +3 -3
  131. package/dist/components/modal/gator/modal.gator.js +6 -6
  132. package/dist/components/page-header/gator/page-header.gator.js +4 -4
  133. package/dist/components/panel/gator/panel.gator.js +14 -14
  134. package/dist/components/panel/gator/panel.storybook-test.js +1 -1
  135. package/dist/components/popover/gator/popover.gator.js +5 -5
  136. package/dist/components/progress-ring/gator/progress-ring.gator.js +4 -4
  137. package/dist/components/progress-stepper/base/progress-stepper.gator.js +19 -0
  138. package/dist/components/progress-stepper/stepper-item/stepper-item.gator.js +42 -0
  139. package/dist/components/radio/radio.gator.js +5 -5
  140. package/dist/components/radio-group/radio-group.gator.js +16 -13
  141. package/dist/components/selection-box/selection-box.gator.js +6 -9
  142. package/dist/components/skeleton-loader/gator/skeleton-loader.gator.js +1 -1
  143. package/dist/components/skip-link/gator/base/skip-link.gator.js +11 -9
  144. package/dist/components/switch/gator/switch.gator.js +20 -7
  145. package/dist/components/switch/switch.js +1 -1
  146. package/dist/components/table/gator/table-bulk-controls/table-bulk-controls.gator.js +1 -1
  147. package/dist/components/table/gator/table-pagination/table-pagination.gator.js +1 -1
  148. package/dist/components/table/gator/table.gator.js +6 -6
  149. package/dist/components/tabs/gator/tabset/tabset.gator.js +6 -6
  150. package/dist/components/text-detail/gator/text-detail.gator.js +27 -24
  151. package/dist/components/text-link/gator/text-link.gator.js +16 -6
  152. package/dist/components/text-link/text-link.js +1 -1
  153. package/dist/components/toast/gator/subtitle/toast-subtitle.gator.js +2 -2
  154. package/dist/components/toast/gator/title/toast-title.gator.js +2 -2
  155. package/dist/components/tooltip/gator/tooltip.gator.js +2 -2
  156. package/dist/components/tooltip/tooltip.js +1 -1
  157. package/dist/design-tokens.source.json +1 -0
  158. package/dist/generated/locale-codes.d.js +1 -0
  159. package/dist/generated/locale-codes.js +1 -0
  160. package/dist/generated/locales/es-419.d.js +1 -0
  161. package/dist/generated/locales/es-419.js +10 -0
  162. package/dist/generated/locales/fr-CA.d.js +1 -0
  163. package/dist/generated/locales/fr-CA.js +10 -0
  164. package/dist/generated/locales/zh-Hans.d.js +1 -0
  165. package/dist/generated/locales/zh-Hans.js +11 -0
  166. package/dist/index.data.js +1 -1
  167. package/dist/index.gator.js +1 -1
  168. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-alignment@46.1.0 → @ckeditor_ckeditor5-alignment@46.1.1}/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +1 -1
  169. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autoformat@46.1.0 → @ckeditor_ckeditor5-autoformat@46.1.1}/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +1 -1
  170. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autosave@46.1.0 → @ckeditor_ckeditor5-autosave@46.1.1}/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +1 -1
  171. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-basic-styles@46.1.0 → @ckeditor_ckeditor5-basic-styles@46.1.1}/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +1 -1
  172. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-block-quote@46.1.0 → @ckeditor_ckeditor5-block-quote@46.1.1}/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +1 -1
  173. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-clipboard@46.1.0 → @ckeditor_ckeditor5-clipboard@46.1.1}/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +1 -1
  174. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-cloud-services@46.1.0 → @ckeditor_ckeditor5-cloud-services@46.1.1}/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +1 -1
  175. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-code-block@46.1.0 → @ckeditor_ckeditor5-code-block@46.1.1}/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +1 -1
  176. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-core@46.1.0 → @ckeditor_ckeditor5-core@46.1.1}/node_modules/@ckeditor/ckeditor5-core/dist/index.js +1 -1
  177. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-editor-classic@46.1.0 → @ckeditor_ckeditor5-editor-classic@46.1.1}/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +1 -1
  178. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-engine@46.1.0 → @ckeditor_ckeditor5-engine@46.1.1}/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +1 -1
  179. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-enter@46.1.0 → @ckeditor_ckeditor5-enter@46.1.1}/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +1 -1
  180. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-essentials@46.1.0 → @ckeditor_ckeditor5-essentials@46.1.1}/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +1 -1
  181. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-find-and-replace@46.1.0 → @ckeditor_ckeditor5-find-and-replace@46.1.1}/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +1 -1
  182. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-font@46.1.0 → @ckeditor_ckeditor5-font@46.1.1}/node_modules/@ckeditor/ckeditor5-font/dist/index.js +1 -1
  183. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-heading@46.1.0 → @ckeditor_ckeditor5-heading@46.1.1}/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +1 -1
  184. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-highlight@46.1.0 → @ckeditor_ckeditor5-highlight@46.1.1}/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +1 -1
  185. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-horizontal-line@46.1.0 → @ckeditor_ckeditor5-horizontal-line@46.1.1}/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +1 -1
  186. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-embed@46.1.0 → @ckeditor_ckeditor5-html-embed@46.1.1}/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +1 -1
  187. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-support@46.1.0 → @ckeditor_ckeditor5-html-support@46.1.1}/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +1 -1
  188. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-image@46.1.0 → @ckeditor_ckeditor5-image@46.1.1}/node_modules/@ckeditor/ckeditor5-image/dist/index.js +1 -1
  189. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-indent@46.1.0 → @ckeditor_ckeditor5-indent@46.1.1}/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +1 -1
  190. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-language@46.1.0 → @ckeditor_ckeditor5-language@46.1.1}/node_modules/@ckeditor/ckeditor5-language/dist/index.js +1 -1
  191. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-link@46.1.0 → @ckeditor_ckeditor5-link@46.1.1}/node_modules/@ckeditor/ckeditor5-link/dist/index.js +1 -1
  192. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-list@46.1.0 → @ckeditor_ckeditor5-list@46.1.1}/node_modules/@ckeditor/ckeditor5-list/dist/index.js +1 -1
  193. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-markdown-gfm@46.1.0 → @ckeditor_ckeditor5-markdown-gfm@46.1.1}/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +1 -1
  194. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-media-embed@46.1.0 → @ckeditor_ckeditor5-media-embed@46.1.1}/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +1 -1
  195. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-mention@46.1.0 → @ckeditor_ckeditor5-mention@46.1.1}/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +1 -1
  196. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-page-break@46.1.0 → @ckeditor_ckeditor5-page-break@46.1.1}/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +1 -1
  197. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paragraph@46.1.0 → @ckeditor_ckeditor5-paragraph@46.1.1}/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +1 -1
  198. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paste-from-office@46.1.0 → @ckeditor_ckeditor5-paste-from-office@46.1.1}/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +1 -1
  199. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-remove-format@46.1.0 → @ckeditor_ckeditor5-remove-format@46.1.1}/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +1 -1
  200. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-select-all@46.1.0 → @ckeditor_ckeditor5-select-all@46.1.1}/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +1 -1
  201. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-show-blocks@46.1.0 → @ckeditor_ckeditor5-show-blocks@46.1.1}/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +1 -1
  202. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-source-editing@46.1.0 → @ckeditor_ckeditor5-source-editing@46.1.1}/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +1 -1
  203. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-special-characters@46.1.0 → @ckeditor_ckeditor5-special-characters@46.1.1}/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +1 -1
  204. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-style@46.1.0 → @ckeditor_ckeditor5-style@46.1.1}/node_modules/@ckeditor/ckeditor5-style/dist/index.js +1 -1
  205. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-table@46.1.0 → @ckeditor_ckeditor5-table@46.1.1}/node_modules/@ckeditor/ckeditor5-table/dist/index.js +1 -1
  206. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-typing@46.1.0 → @ckeditor_ckeditor5-typing@46.1.1}/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +1 -1
  207. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-ui@46.1.0 → @ckeditor_ckeditor5-ui@46.1.1}/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +1 -1
  208. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-undo@46.1.0 → @ckeditor_ckeditor5-undo@46.1.1}/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +1 -1
  209. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-upload@46.1.0 → @ckeditor_ckeditor5-upload@46.1.1}/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +1 -1
  210. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-utils@46.1.0 → @ckeditor_ckeditor5-utils@46.1.1}/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +1 -1
  211. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-widget@46.1.0 → @ckeditor_ckeditor5-widget@46.1.1}/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1 -1
  212. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/connect/helpers.js +1 -0
  213. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/html/external.js +1 -0
  214. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/html/index_html.js +1 -0
  215. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/react/external.js +1 -0
  216. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/react/index_react.js +1 -0
  217. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/package.json.js +1 -0
  218. package/dist/node_modules/.pnpm/axe-core@4.11.0/node_modules/axe-core/axe.js +30 -0
  219. package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/conversions.js +1 -1
  220. package/dist/node_modules/.pnpm/color-string@2.0.1/node_modules/color-string/index.js +1 -1
  221. package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/PhoneNumber.js +1 -1
  222. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/format.js +1 -0
  223. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +1 -0
  224. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +1 -0
  225. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +1 -0
  226. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +1 -0
  227. package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +1 -1
  228. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/isPossible.js +1 -0
  229. package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/metadata.js +1 -1
  230. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/parse.js +1 -0
  231. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +2 -0
  232. package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  233. package/dist/node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react.production.js +9 -0
  234. package/dist/node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js +1 -0
  235. package/dist/node_modules/.pnpm/{storybook@9.1.5_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.1_typescript@5.9_72cffe61c3938b770feb5ac395c7392a → storybook@9.1.13_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.10.0_typescript@5.9.3___lkgkjokudzf76cn2onqpg4zpmy}/node_modules/storybook/dist/test/index.js +117 -117
  236. package/dist/node_modules/.pnpm/{string_decoder@1.1.1 → string_decoder@1.3.0}/node_modules/string_decoder/lib/string_decoder.js +1 -1
  237. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/util.js +1 -1
  238. package/dist/packages/web-components/src/components/accordion/gator/base/accordion.gator.scss.js +1 -1
  239. package/dist/packages/web-components/src/components/alert/gator/base/alert.gator.scss.js +1 -1
  240. package/dist/packages/web-components/src/components/alert/gator/subtitle/alert-subtitle.gator.scss.js +1 -1
  241. package/dist/packages/web-components/src/components/alert/gator/title/alert-title.gator.scss.js +1 -1
  242. package/dist/packages/web-components/src/components/avatar/gator/avatar.gator.scss.js +1 -1
  243. package/dist/packages/web-components/src/components/badge/gator/badge.gator.scss.js +1 -1
  244. package/dist/packages/web-components/src/components/banner/gator/banner.gator.scss.js +1 -1
  245. package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
  246. package/dist/packages/web-components/src/components/button-card/gator/button-card.gator.scss.js +1 -1
  247. package/dist/packages/web-components/src/components/card/gator/base/card.gator.scss.js +1 -1
  248. package/dist/packages/web-components/src/components/card/gator/content/card-content.gator.scss.js +1 -1
  249. package/dist/packages/web-components/src/components/card/gator/footer/card-footer.gator.scss.js +1 -1
  250. package/dist/packages/web-components/src/components/card/gator/header/card-header.gator.scss.js +1 -1
  251. package/dist/packages/web-components/src/components/checkbox/checkbox.gator.scss.js +1 -1
  252. package/dist/packages/web-components/src/components/checkbox-group/checkbox-group.gator.scss.js +1 -1
  253. package/dist/packages/web-components/src/components/chip/gator/chip.gator.scss.js +1 -1
  254. package/dist/packages/web-components/src/components/date-picker/base/gator/datepicker.gator.scss.js +1 -1
  255. package/dist/packages/web-components/src/components/date-picker/year-month-selector/year-month-selector.gator.scss.js +1 -1
  256. package/dist/packages/web-components/src/components/display-card/gator/display-card.gator.scss.js +1 -1
  257. package/dist/packages/web-components/src/components/divider/gator/divider.gator.scss.js +1 -1
  258. package/dist/packages/web-components/src/components/fab/gator/fab.gator.scss.js +1 -1
  259. package/dist/packages/web-components/src/components/guided-nav/gator/guided-nav-step/guided-nav-step.gator.scss.js +1 -1
  260. package/dist/packages/web-components/src/components/guided-nav/gator/guided-nav-substep/guided-nav-substep.gator.scss.js +1 -1
  261. package/dist/packages/web-components/src/components/headline-card/gator/headline-card.gator.scss.js +1 -1
  262. package/dist/packages/web-components/src/components/icon/gator/icon.gator.scss.js +1 -1
  263. package/dist/packages/web-components/src/components/icon-button/gator/icon-button.gator.scss.js +1 -1
  264. package/dist/packages/web-components/src/components/illustration/gator/illustration.gator.scss.js +1 -1
  265. package/dist/packages/web-components/src/components/image-card/gator/image-card.gator.scss.js +1 -0
  266. package/dist/packages/web-components/src/components/input/gator/dropdown/input-dropdown.gator.scss.js +1 -1
  267. package/dist/packages/web-components/src/components/input/gator/help-text/help-text.gator.scss.js +1 -1
  268. package/dist/packages/web-components/src/components/input/gator/input-date/input-date.gator.scss.js +1 -1
  269. package/dist/packages/web-components/src/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.scss.js +1 -1
  270. package/dist/packages/web-components/src/components/input/gator/input-file/input-file.gator.scss.js +1 -1
  271. package/dist/packages/web-components/src/components/input/gator/input-label/input-label.gator.scss.js +1 -1
  272. package/dist/packages/web-components/src/components/input/gator/input-phone/input-phone.gator.scss.js +1 -1
  273. package/dist/packages/web-components/src/components/input/gator/input-search/input-search.gator.scss.js +1 -1
  274. package/dist/packages/web-components/src/components/input/gator/input-textarea/input-textarea.gator.scss.js +1 -1
  275. package/dist/packages/web-components/src/components/input/input.gator.scss.js +1 -1
  276. package/dist/packages/web-components/src/components/list/gator/list-item/list-item.gator.scss.js +1 -1
  277. package/dist/packages/web-components/src/components/loading-spinner/gator/loading-spinner.gator.scss.js +1 -1
  278. package/dist/packages/web-components/src/components/menu/base/gator/menu.gator.scss.js +1 -1
  279. package/dist/packages/web-components/src/components/modal/gator/modal.gator.scss.js +1 -1
  280. package/dist/packages/web-components/src/components/page-header/gator/page-header.gator.scss.js +1 -1
  281. package/dist/packages/web-components/src/components/panel/gator/panel.gator.scss.js +1 -1
  282. package/dist/packages/web-components/src/components/popover/gator/popover.gator.scss.js +1 -1
  283. package/dist/packages/web-components/src/components/progress-bar/gator/progress-bar.gator.scss.js +1 -1
  284. package/dist/packages/web-components/src/components/progress-ring/gator/progress-ring.gator.scss.js +1 -1
  285. package/dist/packages/web-components/src/components/progress-stepper/base/progress-stepper.gator.scss.js +1 -0
  286. package/dist/packages/web-components/src/components/progress-stepper/stepper-item/stepper-item.gator.scss.js +1 -0
  287. package/dist/packages/web-components/src/components/selection-box/selection-box.gator.scss.js +1 -1
  288. package/dist/packages/web-components/src/components/selector/gator/selector.gator.scss.js +1 -1
  289. package/dist/packages/web-components/src/components/skeleton-loader/gator/skeleton-loader.gator.scss.js +1 -1
  290. package/dist/packages/web-components/src/components/skip-link/gator/base/skip-link.gator.scss.js +1 -1
  291. package/dist/packages/web-components/src/components/skip-link/gator/list-item/skip-link-list-item.gator.scss.js +1 -1
  292. package/dist/packages/web-components/src/components/switch/gator/switch.gator.scss.js +1 -1
  293. package/dist/packages/web-components/src/components/table/gator/table-bulk-controls/table-bulk-controls.gator.scss.js +1 -1
  294. package/dist/packages/web-components/src/components/table/gator/table-controls/table-controls.gator.scss.js +1 -1
  295. package/dist/packages/web-components/src/components/table/gator/table-pagination/table-pagination.gator.scss.js +1 -1
  296. package/dist/packages/web-components/src/components/table/gator/table.gator.scss.js +1 -1
  297. package/dist/packages/web-components/src/components/tabs/gator/tabs.gator.scss.js +1 -1
  298. package/dist/packages/web-components/src/components/text-detail/gator/text-detail.gator.scss.js +1 -1
  299. package/dist/packages/web-components/src/components/text-link/gator/text-link.gator.scss.js +1 -1
  300. package/dist/packages/web-components/src/components/time-picker/gator/time-picker.gator.scss.js +1 -1
  301. package/dist/packages/web-components/src/components/toast/gator/base/toast.gator.scss.js +1 -1
  302. package/dist/packages/web-components/src/components/toast/gator/subtitle/toast-subtitle.gator.scss.js +1 -1
  303. package/dist/packages/web-components/src/components/toast/gator/title/toast-title.gator.scss.js +1 -1
  304. package/dist/packages/web-components/src/components/toaster/gator/toaster.gator.scss.js +1 -1
  305. package/dist/packages/web-components/src/components/tooltip/gator/tooltip.gator.scss.js +1 -1
  306. package/dist/packages/web-components/src/tokens/primitive.tokens.scss.js +1 -1
  307. package/dist/packages/web-components/src/tokens/semantic.tokens.scss.js +1 -1
  308. package/dist/packages/web-components/src/utils/data/phone-country-codes.json.js +1 -1
  309. package/dist/types/components/accordion/gator/base/accordion.gator.d.ts +1 -0
  310. package/dist/types/components/accordion/gator/group/accordion-group.gator.d.ts +8 -3
  311. package/dist/types/components/card/card.d.ts +1 -0
  312. package/dist/types/components/chip/chip.d.ts +1 -1
  313. package/dist/types/components/guided-nav/gator/guided-nav-step/guided-nav-step.gator.d.ts +9 -4
  314. package/dist/types/components/guided-nav/gator/guided-nav-substep/guided-nav-substep.gator.d.ts +5 -3
  315. package/dist/types/components/icon/gator/templates/brain.d.ts +1 -0
  316. package/dist/types/components/icon/gator/templates/document-ai.d.ts +1 -0
  317. package/dist/types/components/icon/gator/templates/index.d.ts +11 -0
  318. package/dist/types/components/icon/gator/templates/number-0.d.ts +1 -0
  319. package/dist/types/components/icon/gator/templates/number-10.d.ts +1 -0
  320. package/dist/types/components/icon/gator/templates/number-4.d.ts +1 -0
  321. package/dist/types/components/icon/gator/templates/number-5.d.ts +1 -0
  322. package/dist/types/components/icon/gator/templates/number-6.d.ts +1 -0
  323. package/dist/types/components/icon/gator/templates/number-7.d.ts +1 -0
  324. package/dist/types/components/icon/gator/templates/number-8.d.ts +1 -0
  325. package/dist/types/components/icon/gator/templates/number-9.d.ts +1 -0
  326. package/dist/types/components/icon/gator/templates/robot.d.ts +1 -0
  327. package/dist/types/components/icon-button/gator/icon-button.gator.d.ts +1 -0
  328. package/dist/types/components/icon-button/icon-button.d.ts +1 -0
  329. package/dist/types/components/image-card/gator/image-card.gator.d.ts +29 -0
  330. package/dist/types/components/image-card/gator/image-card.gator.test.d.ts +0 -0
  331. package/dist/types/components/image-card/image-card.d.ts +25 -0
  332. package/dist/types/components/image-card/index.d.ts +1 -0
  333. package/dist/types/components/input/base/input-base.gator.d.ts +8 -7
  334. package/dist/types/components/input/gator/dropdown/input-dropdown.gator.d.ts +8 -1
  335. package/dist/types/components/input/gator/help-text/help-text.gator.d.ts +13 -0
  336. package/dist/types/components/input/gator/input-date/input-date.gator.d.ts +9 -2
  337. package/dist/types/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.d.ts +1 -0
  338. package/dist/types/components/input/gator/input-file/input-file.gator.d.ts +1 -1
  339. package/dist/types/components/input/gator/input-label/input-label.gator.d.ts +1 -0
  340. package/dist/types/components/input/gator/input-phone/input-phone.gator.d.ts +1 -1
  341. package/dist/types/components/input/gator/input-time/input-time.gator.d.ts +1 -1
  342. package/dist/types/components/list/gator/list/list.gator.d.ts +2 -1
  343. package/dist/types/components/list/gator/list-item/list-item.gator.d.ts +5 -1
  344. package/dist/types/components/panel/gator/panel.gator.d.ts +1 -1
  345. package/dist/types/components/progress-ring/gator/progress-ring.gator.d.ts +8 -0
  346. package/dist/types/components/progress-stepper/base/progress-stepper.gator.d.ts +19 -0
  347. package/dist/types/components/progress-stepper/base/progress-stepper.gator.test.d.ts +0 -0
  348. package/dist/types/components/progress-stepper/stepper-item/stepper-item.gator.d.ts +46 -0
  349. package/dist/types/components/progress-stepper/stepper-item/stepper-item.gator.test.d.ts +0 -0
  350. package/dist/types/components/selection-box/selection-box.gator.d.ts +6 -1
  351. package/dist/types/components/skeleton-loader/gator/skeleton-loader.gator.d.ts +5 -1
  352. package/dist/types/components/skip-link/gator/base/skip-link.gator.d.ts +1 -1
  353. package/dist/types/components/switch/gator/switch.gator.d.ts +3 -0
  354. package/dist/types/components/switch/switch.d.ts +5 -0
  355. package/dist/types/components/table/gator/table-bulk-controls/table-bulk-controls.gator.d.ts +1 -1
  356. package/dist/types/components/table/gator/table.gator.d.ts +1 -1
  357. package/dist/types/components/tabs/gator/tabset/tabset.gator.d.ts +5 -2
  358. package/dist/types/components/text-detail/gator/text-detail.gator.d.ts +1 -1
  359. package/dist/types/components/text-link/gator/text-link.gator.d.ts +10 -11
  360. package/dist/types/components/text-link/text-link.d.ts +8 -0
  361. package/dist/types/components/tooltip/tooltip.d.ts +1 -0
  362. package/dist/types/generated/locale-codes.d.ts +3 -0
  363. package/dist/types/generated/locales/es-419.d.ts +60 -0
  364. package/dist/types/generated/locales/fr-CA.d.ts +60 -0
  365. package/dist/types/generated/locales/zh-Hans.d.ts +60 -0
  366. package/dist/types/index.gator.d.ts +1 -0
  367. package/dist/types/utils/components/slot-placeholder/slot-placeholder.d.ts +2 -0
  368. package/dist/types/utils/data/data-models.d.ts +1 -0
  369. package/dist/types/utils/data/phone-country-codes.json.d.ts +18 -0
  370. package/dist/types/utils/mixins/attribute-deletion.d.ts +0 -9
  371. package/dist/types/utils/mixins/interactive-component.d.ts +4 -0
  372. package/dist/types/utils/phone-utils.d.ts +10 -0
  373. package/dist/types/utils/storybook-args.d.ts +4 -0
  374. package/dist/utils/brand-color-utils.js +1 -1
  375. package/dist/utils/components/slot-placeholder/slot-placeholder.js +15 -6
  376. package/dist/utils/mixins/attribute-deletion.js +1 -1
  377. package/dist/utils/mixins/interactive-component.js +1 -0
  378. package/dist/utils/phone-utils.js +1 -1
  379. package/dist/utils/storybook-args.js +1 -1
  380. package/dist/utils/vitest-a11y-utils.js +1 -1
  381. package/package.json +135 -135
  382. package/web-types.json +405 -170
  383. package/dist/assets/OpenSans-VariableFont.woff2 +0 -0
  384. package/dist/assets/nCino_Avenir.woff2 +0 -0
  385. package/dist/assets/nCino_AvenirBd.woff2 +0 -0
  386. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/connect/helpers.js +0 -1
  387. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/html/external.js +0 -1
  388. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/html/index_html.js +0 -1
  389. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/react/external.js +0 -1
  390. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/react/index_react.js +0 -1
  391. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/package.json.js +0 -1
  392. package/dist/node_modules/.pnpm/axe-core@4.10.3/node_modules/axe-core/axe.js +0 -30
  393. package/dist/node_modules/.pnpm/color-name@2.0.0/node_modules/color-name/index.js +0 -1
  394. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/format.js +0 -2
  395. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -1
  396. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -1
  397. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -1
  398. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -1
  399. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/isPossible.js +0 -1
  400. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/parse.js +0 -1
  401. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -2
  402. package/dist/node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react.production.js +0 -9
  403. package/dist/node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js +0 -1
  404. package/dist/packages/web-components/public/styles/gator/gator-global-styles.css.js +0 -1
  405. package/dist/packages/web-components/src/components/alert/gator/alert.tokens.scss.js +0 -1
  406. package/dist/packages/web-components/src/components/avatar/avatar.tokens.scss.js +0 -1
  407. package/dist/packages/web-components/src/components/badge/gator/badge.gator.tokens.scss.js +0 -1
  408. package/dist/packages/web-components/src/components/banner/banner.tokens.scss.js +0 -1
  409. package/dist/packages/web-components/src/components/input/gator/help-text/help-text.gator.tokens.scss.js +0 -1
  410. package/dist/packages/web-components/src/components/input/input.gator.tokens.scss.js +0 -1
  411. package/dist/packages/web-components/src/components/menu/menu.tokens.scss.js +0 -1
  412. package/dist/packages/web-components/src/components/panel/gator/panel.gator.tokens.scss.js +0 -1
  413. package/dist/packages/web-components/src/components/selection-box/selection-box.gator.tokens.scss.js +0 -1
  414. package/dist/packages/web-components/src/components/switch/switch.tokens.scss.js +0 -1
  415. package/dist/packages/web-components/src/components/table/table.tokens.scss.js +0 -1
  416. package/dist/packages/web-components/src/components/tabs/gator/tabs.gator.tokens.scss.js +0 -1
  417. package/dist/packages/web-components/src/components/tooltip/tooltip.tokens.scss.js +0 -1
  418. package/dist/packages/web-components/src/tokens/primitive-new.tokens.scss.js +0 -1
  419. package/dist/packages/web-components/src/tokens/semantic-new.tokens.scss.js +0 -1
  420. package/dist/styles/gator/_gator-grid.css +0 -81
  421. package/dist/styles/gator/_gator-sizing.css +0 -179
  422. package/dist/styles/gator/_gator-typography.css +0 -186
  423. package/dist/styles/gator/fonts/OpenSans-VariableFont.woff2 +0 -0
  424. package/dist/styles/gator/fonts/nCino+Avenir.woff2 +0 -0
  425. package/dist/styles/gator/fonts/nCino+AvenirBd.woff2 +0 -0
  426. package/dist/styles/gator/fonts.css +0 -20
  427. package/dist/styles/gator/gator-global-styles.css +0 -12
  428. package/dist/styles/gator/tokens/_gator-global-tokens.css +0 -4
  429. /package/dist/assets/node_modules/.pnpm/{ckeditor5@46.1.0 → ckeditor5@46.1.1}/node_modules/ckeditor5/dist/ckeditor5.css +0 -0
  430. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-icons@46.1.0 → @ckeditor_ckeditor5-icons@46.1.1}/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +0 -0
  431. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-watchdog@46.1.0 → @ckeditor_ckeditor5-watchdog@46.1.1}/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +0 -0
  432. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/client/external.js +0 -0
  433. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/client/figma_client.js +0 -0
  434. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/common/fetch.js +0 -0
  435. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/common/logging.js +0 -0
  436. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/common/updates.js +0 -0
  437. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/connect/external_types.js +0 -0
  438. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +0 -0
  439. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/connect/index_common.js +0 -0
  440. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/html/template_literal.js +0 -0
  441. /package/dist/node_modules/.pnpm/{@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.3.1_typescript@5.9.2__playwright@1.55.0__87f0b62113e4cf466e19137faba4c80e → @vitest_browser@3.2.4_msw@2.7.3_@types_node@24.10.0_typescript@5.9.3__playwright@1.56.1_vite@_goyfjr2bjpgz2pt2645hrgmcse}/node_modules/@vitest/browser/context.js +0 -0
  442. /package/dist/node_modules/.pnpm/{color@5.0.0 → color@5.0.2}/node_modules/color/index.js +0 -0
  443. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/ParseError.js +0 -0
  444. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/constants.js +0 -0
  445. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -0
  446. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -0
  447. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -0
  448. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -0
  449. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +0 -0
  450. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -0
  451. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +0 -0
  452. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -0
  453. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -0
  454. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -0
  455. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +0 -0
  456. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -0
  457. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/isObject.js +0 -0
  458. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -0
  459. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -0
  460. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +0 -0
  461. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -0
  462. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/isValid.js +0 -0
  463. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/normalizeArguments.js +0 -0
  464. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +0 -0
  465. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +0 -0
  466. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +0 -0
  467. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/tools/semver-compare.js +0 -0
  468. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +0 -0
  469. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +0 -0
  470. /package/dist/node_modules/.pnpm/{react@19.1.1 → react@19.2.0}/node_modules/react/index.js +0 -0
  471. /package/dist/node_modules/.pnpm/{storybook@9.1.5_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.1_typescript@5.9_72cffe61c3938b770feb5ac395c7392a → storybook@9.1.13_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.10.0_typescript@5.9.3___lkgkjokudzf76cn2onqpg4zpmy}/node_modules/storybook/dist/client-logger/index.js +0 -0
  472. /package/dist/node_modules/.pnpm/{storybook@9.1.5_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.1_typescript@5.9_72cffe61c3938b770feb5ac395c7392a → storybook@9.1.13_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.10.0_typescript@5.9.3___lkgkjokudzf76cn2onqpg4zpmy}/node_modules/storybook/dist/core-events/index.js +0 -0
  473. /package/dist/node_modules/.pnpm/{storybook@9.1.5_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.1_typescript@5.9_72cffe61c3938b770feb5ac395c7392a → storybook@9.1.13_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.10.0_typescript@5.9.3___lkgkjokudzf76cn2onqpg4zpmy}/node_modules/storybook/dist/instrumenter/index.js +0 -0
  474. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.1_@vitest_browser@3.2.4_@vitest_ui@3._1b07986b91643c89c81b0014d2711937 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.0_@vitest_browser@3.2.4_@vitest_ui@3.2.4_j_d4zn5pd34wsgn4wvyuyhrqqcse}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
  475. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.1_@vitest_browser@3.2.4_@vitest_ui@3._1b07986b91643c89c81b0014d2711937 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.0_@vitest_browser@3.2.4_@vitest_ui@3.2.4_j_d4zn5pd34wsgn4wvyuyhrqqcse}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -0
  476. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.1_@vitest_browser@3.2.4_@vitest_ui@3._1b07986b91643c89c81b0014d2711937 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.0_@vitest_browser@3.2.4_@vitest_ui@3.2.4_j_d4zn5pd34wsgn4wvyuyhrqqcse}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +0 -0
  477. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.1_@vitest_browser@3.2.4_@vitest_ui@3._1b07986b91643c89c81b0014d2711937 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.0_@vitest_browser@3.2.4_@vitest_ui@3.2.4_j_d4zn5pd34wsgn4wvyuyhrqqcse}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +0 -0
@@ -1 +1 @@
1
- import g from"../../../color-name@2.0.0/node_modules/color-name/index.js";const M={};for(const n of Object.keys(g))M[g[n]]=n;const a={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"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},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"]}},f=(6/29)**3;function b(n){const o=n>.0031308?1.055*n**.4166666666666667-.055:n*12.92;return Math.min(Math.max(0,o),1)}function m(n){return n>.04045?((n+.055)/1.055)**2.4:n/12.92}for(const n of Object.keys(a)){if(!("channels"in a[n]))throw new Error("missing channels property: "+n);if(!("labels"in a[n]))throw new Error("missing channel labels property: "+n);if(a[n].labels.length!==a[n].channels)throw new Error("channel and label counts mismatch: "+n);const{channels:o,labels:s}=a[n];delete a[n].channels,delete a[n].labels,Object.defineProperty(a[n],"channels",{value:o}),Object.defineProperty(a[n],"labels",{value:s})}a.rgb.hsl=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(o,s,c),e=Math.max(o,s,c),r=e-t;let l,_;switch(e){case t:{l=0;break}case o:{l=(s-c)/r;break}case s:{l=2+(c-o)/r;break}case c:{l=4+(o-s)/r;break}}l=Math.min(l*60,360),l<0&&(l+=360);const i=(t+e)/2;return e===t?_=0:i<=.5?_=r/(e+t):_=r/(2-e-t),[l,_*100,i*100]};a.rgb.hsv=function(n){let o,s,c,t,e;const r=n[0]/255,l=n[1]/255,_=n[2]/255,i=Math.max(r,l,_),u=i-Math.min(r,l,_),h=function(k){return(i-k)/6/u+1/2};if(u===0)t=0,e=0;else{switch(e=u/i,o=h(r),s=h(l),c=h(_),i){case r:{t=c-s;break}case l:{t=1/3+o-c;break}case _:{t=2/3+s-o;break}}t<0?t+=1:t>1&&(t-=1)}return[t*360,e*100,i*100]};a.rgb.hwb=function(n){const o=n[0],s=n[1];let c=n[2];const t=a.rgb.hsl(n)[0],e=1/255*Math.min(o,Math.min(s,c));return c=1-1/255*Math.max(o,Math.max(s,c)),[t,e*100,c*100]};a.rgb.oklab=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=Math.cbrt(.4122214708*o+.5363325363*s+.0514459929*c),e=Math.cbrt(.2119034982*o+.6806995451*s+.1073969566*c),r=Math.cbrt(.0883024619*o+.2817188376*s+.6299787005*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.rgb.cmyk=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(1-o,1-s,1-c),e=(1-o-t)/(1-t)||0,r=(1-s-t)/(1-t)||0,l=(1-c-t)/(1-t)||0;return[e*100,r*100,l*100,t*100]};function y(n,o){return(n[0]-o[0])**2+(n[1]-o[1])**2+(n[2]-o[2])**2}a.rgb.keyword=function(n){const o=M[n];if(o)return o;let s=Number.POSITIVE_INFINITY,c;for(const t of Object.keys(g)){const e=g[t],r=y(n,e);r<s&&(s=r,c=t)}return c};a.keyword.rgb=function(n){return g[n]};a.rgb.xyz=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=o*.4124564+s*.3575761+c*.1804375,e=o*.2126729+s*.7151522+c*.072175,r=o*.0193339+s*.119192+c*.9503041;return[t*100,e*100,r*100]};a.rgb.lab=function(n){const o=a.rgb.xyz(n);let s=o[0],c=o[1],t=o[2];s/=95.047,c/=100,t/=108.883,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116,t=t>f?t**(1/3):7.787*t+16/116;const e=116*c-16,r=500*(s-c),l=200*(c-t);return[e,r,l]};a.hsl.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;let t,e;if(s===0)return e=c*255,[e,e,e];const r=c<.5?c*(1+s):c+s-c*s,l=2*c-r,_=[0,0,0];for(let i=0;i<3;i++)t=o+1/3*-(i-1),t<0&&t++,t>1&&t--,6*t<1?e=l+(r-l)*6*t:2*t<1?e=r:3*t<2?e=l+(r-l)*(2/3-t)*6:e=l,_[i]=e*255;return _};a.hsl.hsv=function(n){const o=n[0];let s=n[1]/100,c=n[2]/100,t=s;const e=Math.max(c,.01);c*=2,s*=c<=1?c:2-c,t*=e<=1?e:2-e;const r=(c+s)/2,l=c===0?2*t/(e+t):2*s/(c+s);return[o,l*100,r*100]};a.hsv.rgb=function(n){const o=n[0]/60,s=n[1]/100;let c=n[2]/100;const t=Math.floor(o)%6,e=o-Math.floor(o),r=255*c*(1-s),l=255*c*(1-s*e),_=255*c*(1-s*(1-e));switch(c*=255,t){case 0:return[c,_,r];case 1:return[l,c,r];case 2:return[r,c,_];case 3:return[r,l,c];case 4:return[_,r,c];case 5:return[c,r,l]}};a.hsv.hsl=function(n){const o=n[0],s=n[1]/100,c=n[2]/100,t=Math.max(c,.01);let e,r;r=(2-s)*c;const l=(2-s)*t;return e=s*t,e/=l<=1?l:2-l,e=e||0,r/=2,[o,e*100,r*100]};a.hwb.rgb=function(n){const o=n[0]/360;let s=n[1]/100,c=n[2]/100;const t=s+c;let e;t>1&&(s/=t,c/=t);const r=Math.floor(6*o),l=1-c;e=6*o-r,(r&1)!==0&&(e=1-e);const _=s+e*(l-s);let i,u,h;switch(r){default:case 6:case 0:{i=l,u=_,h=s;break}case 1:{i=_,u=l,h=s;break}case 2:{i=s,u=l,h=_;break}case 3:{i=s,u=_,h=l;break}case 4:{i=_,u=s,h=l;break}case 5:{i=l,u=s,h=_;break}}return[i*255,u*255,h*255]};a.cmyk.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=n[3]/100,e=1-Math.min(1,o*(1-t)+t),r=1-Math.min(1,s*(1-t)+t),l=1-Math.min(1,c*(1-t)+t);return[e*255,r*255,l*255]};a.xyz.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100;let t,e,r;return t=o*3.2404542+s*-1.5371385+c*-.4985314,e=o*-.969266+s*1.8760108+c*.041556,r=o*.0556434+s*-.2040259+c*1.0572252,t=b(t),e=b(e),r=b(r),[t*255,e*255,r*255]};a.xyz.lab=function(n){let o=n[0],s=n[1],c=n[2];o/=95.047,s/=100,c/=108.883,o=o>f?o**(1/3):7.787*o+16/116,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116;const t=116*s-16,e=500*(o-s),r=200*(s-c);return[t,e,r]};a.xyz.oklab=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=Math.cbrt(.8189330101*o+.3618667424*s-.1288597137*c),e=Math.cbrt(.0329845436*o+.9293118715*s+.0361456387*c),r=Math.cbrt(.0482003018*o+.2643662691*s+.633851707*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.oklab.oklch=function(n){return a.lab.lch(n)};a.oklab.xyz=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(.999999998*o+.396337792*s+.215803758*c)**3,e=(1.000000008*o-.105561342*s-.063854175*c)**3,r=(1.000000055*o-.089484182*s-1.291485538*c)**3,l=1.227013851*t-.55779998*e+.281256149*r,_=-.040580178*t+1.11225687*e-.071676679*r,i=-.076381285*t-.421481978*e+1.58616322*r;return[l*100,_*100,i*100]};a.oklab.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(o+.3963377774*s+.2158037573*c)**3,e=(o-.1055613458*s-.0638541728*c)**3,r=(o-.0894841775*s-1.291485548*c)**3,l=b(4.0767416621*t-3.3077115913*e+.2309699292*r),_=b(-1.2684380046*t+2.6097574011*e-.3413193965*r),i=b(-.0041960863*t-.7034186147*e+1.707614701*r);return[l*255,_*255,i*255]};a.oklch.oklab=function(n){return a.lch.lab(n)};a.lab.xyz=function(n){const o=n[0],s=n[1],c=n[2];let t,e,r;e=(o+16)/116,t=s/500+e,r=e-c/200;const l=e**3,_=t**3,i=r**3;return e=l>f?l:(e-16/116)/7.787,t=_>f?_:(t-16/116)/7.787,r=i>f?i:(r-16/116)/7.787,t*=95.047,e*=100,r*=108.883,[t,e,r]};a.lab.lch=function(n){const o=n[0],s=n[1],c=n[2];let t;t=Math.atan2(c,s)*360/2/Math.PI,t<0&&(t+=360);const r=Math.sqrt(s*s+c*c);return[o,r,t]};a.lch.lab=function(n){const o=n[0],s=n[1],t=n[2]/360*2*Math.PI,e=s*Math.cos(t),r=s*Math.sin(t);return[o,e,r]};a.rgb.ansi16=function(n,o=null){const[s,c,t]=n;let e=o===null?a.rgb.hsv(n)[2]:o;if(e=Math.round(e/50),e===0)return 30;let r=30+(Math.round(t/255)<<2|Math.round(c/255)<<1|Math.round(s/255));return e===2&&(r+=60),r};a.hsv.ansi16=function(n){return a.rgb.ansi16(a.hsv.rgb(n),n[2])};a.rgb.ansi256=function(n){const o=n[0],s=n[1],c=n[2];return o>>4===s>>4&&s>>4===c>>4?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(s/255*5)+Math.round(c/255*5)};a.ansi16.rgb=function(n){n=n[0];let o=n%10;if(o===0||o===7)return n>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const s=(Math.trunc(n>50)+1)*.5,c=(o&1)*s*255,t=(o>>1&1)*s*255,e=(o>>2&1)*s*255;return[c,t,e]};a.ansi256.rgb=function(n){if(n=n[0],n>=232){const e=(n-232)*10+8;return[e,e,e]}n-=16;let o;const s=Math.floor(n/36)/5*255,c=Math.floor((o=n%36)/6)/5*255,t=o%6/5*255;return[s,c,t]};a.rgb.hex=function(n){const s=(((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255)).toString(16).toUpperCase();return"000000".slice(s.length)+s};a.hex.rgb=function(n){const o=n.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!o)return[0,0,0];let s=o[0];o[0].length===3&&(s=[...s].map(l=>l+l).join(""));const c=Number.parseInt(s,16),t=c>>16&255,e=c>>8&255,r=c&255;return[t,e,r]};a.rgb.hcg=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.max(Math.max(o,s),c),e=Math.min(Math.min(o,s),c),r=t-e;let l;const _=r<1?e/(1-r):0;return r<=0?l=0:t===o?l=(s-c)/r%6:t===s?l=2+(c-o)/r:l=4+(o-s)/r,l/=6,l%=1,[l*360,r*100,_*100]};a.hsl.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=s<.5?2*o*s:2*o*(1-s);let t=0;return c<1&&(t=(s-.5*c)/(1-c)),[n[0],c*100,t*100]};a.hsv.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=o*s;let t=0;return c<1&&(t=(s-c)/(1-c)),[n[0],c*100,t*100]};a.hcg.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;if(s===0)return[c*255,c*255,c*255];const t=[0,0,0],e=o%1*6,r=e%1,l=1-r;let _=0;switch(Math.floor(e)){case 0:{t[0]=1,t[1]=r,t[2]=0;break}case 1:{t[0]=l,t[1]=1,t[2]=0;break}case 2:{t[0]=0,t[1]=1,t[2]=r;break}case 3:{t[0]=0,t[1]=l,t[2]=1;break}case 4:{t[0]=r,t[1]=0,t[2]=1;break}default:t[0]=1,t[1]=0,t[2]=l}return _=(1-s)*c,[(s*t[0]+_)*255,(s*t[1]+_)*255,(s*t[2]+_)*255]};a.hcg.hsv=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);let t=0;return c>0&&(t=o/c),[n[0],t*100,c*100]};a.hcg.hsl=function(n){const o=n[1]/100,c=n[2]/100*(1-o)+.5*o;let t=0;return c>0&&c<.5?t=o/(2*c):c>=.5&&c<1&&(t=o/(2*(1-c))),[n[0],t*100,c*100]};a.hcg.hwb=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);return[n[0],(c-o)*100,(1-c)*100]};a.hwb.hcg=function(n){const o=n[1]/100,c=1-n[2]/100,t=c-o;let e=0;return t<1&&(e=(c-t)/(1-t)),[n[0],t*100,e*100]};a.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]};a.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]};a.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]};a.gray.hsl=function(n){return[0,0,n[0]]};a.gray.hsv=a.gray.hsl;a.gray.hwb=function(n){return[0,100,n[0]]};a.gray.cmyk=function(n){return[0,0,0,n[0]]};a.gray.lab=function(n){return[n[0],0,0]};a.gray.hex=function(n){const o=Math.round(n[0]/100*255)&255,c=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".slice(c.length)+c};a.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]};export{a as default};
1
+ import g from"../../../color-name@2.0.2/node_modules/color-name/index.js";const M={};for(const n of Object.keys(g))M[g[n]]=n;const a={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"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},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"]}},f=(6/29)**3;function b(n){const o=n>.0031308?1.055*n**.4166666666666667-.055:n*12.92;return Math.min(Math.max(0,o),1)}function m(n){return n>.04045?((n+.055)/1.055)**2.4:n/12.92}for(const n of Object.keys(a)){if(!("channels"in a[n]))throw new Error("missing channels property: "+n);if(!("labels"in a[n]))throw new Error("missing channel labels property: "+n);if(a[n].labels.length!==a[n].channels)throw new Error("channel and label counts mismatch: "+n);const{channels:o,labels:s}=a[n];delete a[n].channels,delete a[n].labels,Object.defineProperty(a[n],"channels",{value:o}),Object.defineProperty(a[n],"labels",{value:s})}a.rgb.hsl=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(o,s,c),e=Math.max(o,s,c),r=e-t;let l,_;switch(e){case t:{l=0;break}case o:{l=(s-c)/r;break}case s:{l=2+(c-o)/r;break}case c:{l=4+(o-s)/r;break}}l=Math.min(l*60,360),l<0&&(l+=360);const i=(t+e)/2;return e===t?_=0:i<=.5?_=r/(e+t):_=r/(2-e-t),[l,_*100,i*100]};a.rgb.hsv=function(n){let o,s,c,t,e;const r=n[0]/255,l=n[1]/255,_=n[2]/255,i=Math.max(r,l,_),u=i-Math.min(r,l,_),h=function(k){return(i-k)/6/u+1/2};if(u===0)t=0,e=0;else{switch(e=u/i,o=h(r),s=h(l),c=h(_),i){case r:{t=c-s;break}case l:{t=1/3+o-c;break}case _:{t=2/3+s-o;break}}t<0?t+=1:t>1&&(t-=1)}return[t*360,e*100,i*100]};a.rgb.hwb=function(n){const o=n[0],s=n[1];let c=n[2];const t=a.rgb.hsl(n)[0],e=1/255*Math.min(o,Math.min(s,c));return c=1-1/255*Math.max(o,Math.max(s,c)),[t,e*100,c*100]};a.rgb.oklab=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=Math.cbrt(.4122214708*o+.5363325363*s+.0514459929*c),e=Math.cbrt(.2119034982*o+.6806995451*s+.1073969566*c),r=Math.cbrt(.0883024619*o+.2817188376*s+.6299787005*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.rgb.cmyk=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.min(1-o,1-s,1-c),e=(1-o-t)/(1-t)||0,r=(1-s-t)/(1-t)||0,l=(1-c-t)/(1-t)||0;return[e*100,r*100,l*100,t*100]};function y(n,o){return(n[0]-o[0])**2+(n[1]-o[1])**2+(n[2]-o[2])**2}a.rgb.keyword=function(n){const o=M[n];if(o)return o;let s=Number.POSITIVE_INFINITY,c;for(const t of Object.keys(g)){const e=g[t],r=y(n,e);r<s&&(s=r,c=t)}return c};a.keyword.rgb=function(n){return g[n]};a.rgb.xyz=function(n){const o=m(n[0]/255),s=m(n[1]/255),c=m(n[2]/255),t=o*.4124564+s*.3575761+c*.1804375,e=o*.2126729+s*.7151522+c*.072175,r=o*.0193339+s*.119192+c*.9503041;return[t*100,e*100,r*100]};a.rgb.lab=function(n){const o=a.rgb.xyz(n);let s=o[0],c=o[1],t=o[2];s/=95.047,c/=100,t/=108.883,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116,t=t>f?t**(1/3):7.787*t+16/116;const e=116*c-16,r=500*(s-c),l=200*(c-t);return[e,r,l]};a.hsl.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;let t,e;if(s===0)return e=c*255,[e,e,e];const r=c<.5?c*(1+s):c+s-c*s,l=2*c-r,_=[0,0,0];for(let i=0;i<3;i++)t=o+1/3*-(i-1),t<0&&t++,t>1&&t--,6*t<1?e=l+(r-l)*6*t:2*t<1?e=r:3*t<2?e=l+(r-l)*(2/3-t)*6:e=l,_[i]=e*255;return _};a.hsl.hsv=function(n){const o=n[0];let s=n[1]/100,c=n[2]/100,t=s;const e=Math.max(c,.01);c*=2,s*=c<=1?c:2-c,t*=e<=1?e:2-e;const r=(c+s)/2,l=c===0?2*t/(e+t):2*s/(c+s);return[o,l*100,r*100]};a.hsv.rgb=function(n){const o=n[0]/60,s=n[1]/100;let c=n[2]/100;const t=Math.floor(o)%6,e=o-Math.floor(o),r=255*c*(1-s),l=255*c*(1-s*e),_=255*c*(1-s*(1-e));switch(c*=255,t){case 0:return[c,_,r];case 1:return[l,c,r];case 2:return[r,c,_];case 3:return[r,l,c];case 4:return[_,r,c];case 5:return[c,r,l]}};a.hsv.hsl=function(n){const o=n[0],s=n[1]/100,c=n[2]/100,t=Math.max(c,.01);let e,r;r=(2-s)*c;const l=(2-s)*t;return e=s*t,e/=l<=1?l:2-l,e=e||0,r/=2,[o,e*100,r*100]};a.hwb.rgb=function(n){const o=n[0]/360;let s=n[1]/100,c=n[2]/100;const t=s+c;let e;t>1&&(s/=t,c/=t);const r=Math.floor(6*o),l=1-c;e=6*o-r,(r&1)!==0&&(e=1-e);const _=s+e*(l-s);let i,u,h;switch(r){default:case 6:case 0:{i=l,u=_,h=s;break}case 1:{i=_,u=l,h=s;break}case 2:{i=s,u=l,h=_;break}case 3:{i=s,u=_,h=l;break}case 4:{i=_,u=s,h=l;break}case 5:{i=l,u=s,h=_;break}}return[i*255,u*255,h*255]};a.cmyk.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=n[3]/100,e=1-Math.min(1,o*(1-t)+t),r=1-Math.min(1,s*(1-t)+t),l=1-Math.min(1,c*(1-t)+t);return[e*255,r*255,l*255]};a.xyz.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100;let t,e,r;return t=o*3.2404542+s*-1.5371385+c*-.4985314,e=o*-.969266+s*1.8760108+c*.041556,r=o*.0556434+s*-.2040259+c*1.0572252,t=b(t),e=b(e),r=b(r),[t*255,e*255,r*255]};a.xyz.lab=function(n){let o=n[0],s=n[1],c=n[2];o/=95.047,s/=100,c/=108.883,o=o>f?o**(1/3):7.787*o+16/116,s=s>f?s**(1/3):7.787*s+16/116,c=c>f?c**(1/3):7.787*c+16/116;const t=116*s-16,e=500*(o-s),r=200*(s-c);return[t,e,r]};a.xyz.oklab=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=Math.cbrt(.8189330101*o+.3618667424*s-.1288597137*c),e=Math.cbrt(.0329845436*o+.9293118715*s+.0361456387*c),r=Math.cbrt(.0482003018*o+.2643662691*s+.633851707*c),l=.2104542553*t+.793617785*e-.0040720468*r,_=1.9779984951*t-2.428592205*e+.4505937099*r,i=.0259040371*t+.7827717662*e-.808675766*r;return[l*100,_*100,i*100]};a.oklab.oklch=function(n){return a.lab.lch(n)};a.oklab.xyz=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(.999999998*o+.396337792*s+.215803758*c)**3,e=(1.000000008*o-.105561342*s-.063854175*c)**3,r=(1.000000055*o-.089484182*s-1.291485538*c)**3,l=1.227013851*t-.55779998*e+.281256149*r,_=-.040580178*t+1.11225687*e-.071676679*r,i=-.076381285*t-.421481978*e+1.58616322*r;return[l*100,_*100,i*100]};a.oklab.rgb=function(n){const o=n[0]/100,s=n[1]/100,c=n[2]/100,t=(o+.3963377774*s+.2158037573*c)**3,e=(o-.1055613458*s-.0638541728*c)**3,r=(o-.0894841775*s-1.291485548*c)**3,l=b(4.0767416621*t-3.3077115913*e+.2309699292*r),_=b(-1.2684380046*t+2.6097574011*e-.3413193965*r),i=b(-.0041960863*t-.7034186147*e+1.707614701*r);return[l*255,_*255,i*255]};a.oklch.oklab=function(n){return a.lch.lab(n)};a.lab.xyz=function(n){const o=n[0],s=n[1],c=n[2];let t,e,r;e=(o+16)/116,t=s/500+e,r=e-c/200;const l=e**3,_=t**3,i=r**3;return e=l>f?l:(e-16/116)/7.787,t=_>f?_:(t-16/116)/7.787,r=i>f?i:(r-16/116)/7.787,t*=95.047,e*=100,r*=108.883,[t,e,r]};a.lab.lch=function(n){const o=n[0],s=n[1],c=n[2];let t;t=Math.atan2(c,s)*360/2/Math.PI,t<0&&(t+=360);const r=Math.sqrt(s*s+c*c);return[o,r,t]};a.lch.lab=function(n){const o=n[0],s=n[1],t=n[2]/360*2*Math.PI,e=s*Math.cos(t),r=s*Math.sin(t);return[o,e,r]};a.rgb.ansi16=function(n,o=null){const[s,c,t]=n;let e=o===null?a.rgb.hsv(n)[2]:o;if(e=Math.round(e/50),e===0)return 30;let r=30+(Math.round(t/255)<<2|Math.round(c/255)<<1|Math.round(s/255));return e===2&&(r+=60),r};a.hsv.ansi16=function(n){return a.rgb.ansi16(a.hsv.rgb(n),n[2])};a.rgb.ansi256=function(n){const o=n[0],s=n[1],c=n[2];return o>>4===s>>4&&s>>4===c>>4?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(s/255*5)+Math.round(c/255*5)};a.ansi16.rgb=function(n){n=n[0];let o=n%10;if(o===0||o===7)return n>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const s=(Math.trunc(n>50)+1)*.5,c=(o&1)*s*255,t=(o>>1&1)*s*255,e=(o>>2&1)*s*255;return[c,t,e]};a.ansi256.rgb=function(n){if(n=n[0],n>=232){const e=(n-232)*10+8;return[e,e,e]}n-=16;let o;const s=Math.floor(n/36)/5*255,c=Math.floor((o=n%36)/6)/5*255,t=o%6/5*255;return[s,c,t]};a.rgb.hex=function(n){const s=(((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255)).toString(16).toUpperCase();return"000000".slice(s.length)+s};a.hex.rgb=function(n){const o=n.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!o)return[0,0,0];let s=o[0];o[0].length===3&&(s=[...s].map(l=>l+l).join(""));const c=Number.parseInt(s,16),t=c>>16&255,e=c>>8&255,r=c&255;return[t,e,r]};a.rgb.hcg=function(n){const o=n[0]/255,s=n[1]/255,c=n[2]/255,t=Math.max(Math.max(o,s),c),e=Math.min(Math.min(o,s),c),r=t-e;let l;const _=r<1?e/(1-r):0;return r<=0?l=0:t===o?l=(s-c)/r%6:t===s?l=2+(c-o)/r:l=4+(o-s)/r,l/=6,l%=1,[l*360,r*100,_*100]};a.hsl.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=s<.5?2*o*s:2*o*(1-s);let t=0;return c<1&&(t=(s-.5*c)/(1-c)),[n[0],c*100,t*100]};a.hsv.hcg=function(n){const o=n[1]/100,s=n[2]/100,c=o*s;let t=0;return c<1&&(t=(s-c)/(1-c)),[n[0],c*100,t*100]};a.hcg.rgb=function(n){const o=n[0]/360,s=n[1]/100,c=n[2]/100;if(s===0)return[c*255,c*255,c*255];const t=[0,0,0],e=o%1*6,r=e%1,l=1-r;let _=0;switch(Math.floor(e)){case 0:{t[0]=1,t[1]=r,t[2]=0;break}case 1:{t[0]=l,t[1]=1,t[2]=0;break}case 2:{t[0]=0,t[1]=1,t[2]=r;break}case 3:{t[0]=0,t[1]=l,t[2]=1;break}case 4:{t[0]=r,t[1]=0,t[2]=1;break}default:t[0]=1,t[1]=0,t[2]=l}return _=(1-s)*c,[(s*t[0]+_)*255,(s*t[1]+_)*255,(s*t[2]+_)*255]};a.hcg.hsv=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);let t=0;return c>0&&(t=o/c),[n[0],t*100,c*100]};a.hcg.hsl=function(n){const o=n[1]/100,c=n[2]/100*(1-o)+.5*o;let t=0;return c>0&&c<.5?t=o/(2*c):c>=.5&&c<1&&(t=o/(2*(1-c))),[n[0],t*100,c*100]};a.hcg.hwb=function(n){const o=n[1]/100,s=n[2]/100,c=o+s*(1-o);return[n[0],(c-o)*100,(1-c)*100]};a.hwb.hcg=function(n){const o=n[1]/100,c=1-n[2]/100,t=c-o;let e=0;return t<1&&(e=(c-t)/(1-t)),[n[0],t*100,e*100]};a.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]};a.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]};a.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]};a.gray.hsl=function(n){return[0,0,n[0]]};a.gray.hsv=a.gray.hsl;a.gray.hwb=function(n){return[0,100,n[0]]};a.gray.cmyk=function(n){return[0,0,0,n[0]]};a.gray.lab=function(n){return[n[0],0,0]};a.gray.hex=function(n){const o=Math.round(n[0]/100*255)&255,c=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".slice(c.length)+c};a.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]};export{a as default};
@@ -1 +1 @@
1
- import f from"../../../color-name@2.0.0/node_modules/color-name/index.js";const b=Object.create(null);for(const t in f)Object.hasOwn(f,t)&&(b[f[t]]=t);const a={to:{},get:{}};a.get=function(t){const o=t.slice(0,3).toLowerCase();let n,u;switch(o){case"hsl":{n=a.get.hsl(t),u="hsl";break}case"hwb":{n=a.get.hwb(t),u="hwb";break}default:{n=a.get.rgb(t),u="rgb";break}}return n?{model:u,value:n}:null};a.get.rgb=function(t){if(!t)return null;const o=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,u=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,d=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,h=/^(\w+)$/;let s=[0,0,0,1],e,r,l;if(e=t.match(n)){for(l=e[2],e=e[1],r=0;r<3;r++){const i=r*2;s[r]=Number.parseInt(e.slice(i,i+2),16)}l&&(s[3]=Number.parseInt(l,16)/255)}else if(e=t.match(o)){for(e=e[1],l=e[3],r=0;r<3;r++)s[r]=Number.parseInt(e[r]+e[r],16);l&&(s[3]=Number.parseInt(l+l,16)/255)}else if(e=t.match(u)){for(r=0;r<3;r++)s[r]=Number.parseInt(e[r+1],10);e[4]&&(s[3]=e[5]?Number.parseFloat(e[4])*.01:Number.parseFloat(e[4]))}else if(e=t.match(d)){for(r=0;r<3;r++)s[r]=Math.round(Number.parseFloat(e[r+1])*2.55);e[4]&&(s[3]=e[5]?Number.parseFloat(e[4])*.01:Number.parseFloat(e[4]))}else return(e=t.match(h))?e[1]==="transparent"?[0,0,0,0]:Object.hasOwn(f,e[1])?(s=f[e[1]],s[3]=1,s):null:null;for(r=0;r<3;r++)s[r]=c(s[r],0,255);return s[3]=c(s[3],0,1),s};a.get.hsl=function(t){if(!t)return null;const o=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(o);if(n){const u=Number.parseFloat(n[4]),d=(Number.parseFloat(n[1])%360+360)%360,h=c(Number.parseFloat(n[2]),0,100),s=c(Number.parseFloat(n[3]),0,100),e=c(Number.isNaN(u)?1:u,0,1);return[d,h,s,e]}return null};a.get.hwb=function(t){if(!t)return null;const o=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(o);if(n){const u=Number.parseFloat(n[4]),d=(Number.parseFloat(n[1])%360+360)%360,h=c(Number.parseFloat(n[2]),0,100),s=c(Number.parseFloat(n[3]),0,100),e=c(Number.isNaN(u)?1:u,0,1);return[d,h,s,e]}return null};a.to.hex=function(...t){return"#"+m(t[0])+m(t[1])+m(t[2])+(t[3]<1?m(Math.round(t[3]*255)):"")};a.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};a.to.rgb.percent=function(...t){const o=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),u=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+o+"%, "+n+"%, "+u+"%)":"rgba("+o+"%, "+n+"%, "+u+"%, "+t[3]+")"};a.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};a.to.hwb=function(...t){let o="";return t.length>=4&&t[3]!==1&&(o=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+o+")"};a.to.keyword=function(...t){return b[t.slice(0,3)]};function c(t,o,n){return Math.min(Math.max(o,t),n)}function m(t){const o=Math.round(t).toString(16).toUpperCase();return o.length<2?"0"+o:o}export{a as default};
1
+ import f from"../../../color-name@2.0.2/node_modules/color-name/index.js";const b=Object.create(null);for(const t in f)Object.hasOwn(f,t)&&(b[f[t]]=t);const a={to:{},get:{}};a.get=function(t){const o=t.slice(0,3).toLowerCase();let n,u;switch(o){case"hsl":{n=a.get.hsl(t),u="hsl";break}case"hwb":{n=a.get.hwb(t),u="hwb";break}default:{n=a.get.rgb(t),u="rgb";break}}return n?{model:u,value:n}:null};a.get.rgb=function(t){if(!t)return null;const o=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,u=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,d=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,h=/^(\w+)$/;let s=[0,0,0,1],e,r,l;if(e=t.match(n)){for(l=e[2],e=e[1],r=0;r<3;r++){const i=r*2;s[r]=Number.parseInt(e.slice(i,i+2),16)}l&&(s[3]=Number.parseInt(l,16)/255)}else if(e=t.match(o)){for(e=e[1],l=e[3],r=0;r<3;r++)s[r]=Number.parseInt(e[r]+e[r],16);l&&(s[3]=Number.parseInt(l+l,16)/255)}else if(e=t.match(u)){for(r=0;r<3;r++)s[r]=Number.parseInt(e[r+1],10);e[4]&&(s[3]=e[5]?Number.parseFloat(e[4])*.01:Number.parseFloat(e[4]))}else if(e=t.match(d)){for(r=0;r<3;r++)s[r]=Math.round(Number.parseFloat(e[r+1])*2.55);e[4]&&(s[3]=e[5]?Number.parseFloat(e[4])*.01:Number.parseFloat(e[4]))}else return(e=t.match(h))?e[1]==="transparent"?[0,0,0,0]:Object.hasOwn(f,e[1])?(s=f[e[1]],s[3]=1,s):null:null;for(r=0;r<3;r++)s[r]=c(s[r],0,255);return s[3]=c(s[3],0,1),s};a.get.hsl=function(t){if(!t)return null;const o=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(o);if(n){const u=Number.parseFloat(n[4]),d=(Number.parseFloat(n[1])%360+360)%360,h=c(Number.parseFloat(n[2]),0,100),s=c(Number.parseFloat(n[3]),0,100),e=c(Number.isNaN(u)?1:u,0,1);return[d,h,s,e]}return null};a.get.hwb=function(t){if(!t)return null;const o=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(o);if(n){const u=Number.parseFloat(n[4]),d=(Number.parseFloat(n[1])%360+360)%360,h=c(Number.parseFloat(n[2]),0,100),s=c(Number.parseFloat(n[3]),0,100),e=c(Number.isNaN(u)?1:u,0,1);return[d,h,s,e]}return null};a.to.hex=function(...t){return"#"+m(t[0])+m(t[1])+m(t[2])+(t[3]<1?m(Math.round(t[3]*255)):"")};a.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};a.to.rgb.percent=function(...t){const o=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),u=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+o+"%, "+n+"%, "+u+"%)":"rgba("+o+"%, "+n+"%, "+u+"%, "+t[3]+")"};a.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};a.to.hwb=function(...t){let o="";return t.length>=4&&t[3]!==1&&(o=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+o+")"};a.to.keyword=function(...t){return b[t.slice(0,3)]};function c(t,o,n){return Math.min(Math.max(o,t),n)}function m(t){const o=Math.round(t).toString(16).toUpperCase();return o.length<2?"0"+o:o}export{a as default};
@@ -1 +1 @@
1
- import l,{validateMetadata as h}from"./metadata.js";import d from"./isPossible.js";import v from"./isValid.js";import w from"./helpers/getNumberType.js";import P from"./helpers/getPossibleCountriesForNumber.js";import C from"./helpers/extractCountryCallingCode.js";import s from"./helpers/isObject.js";import E from"./format.js";function o(r){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(r)}function f(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),e.push.apply(e,n)}return e}function c(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?f(Object(e),!0).forEach(function(n){j(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function j(r,t,e){return(t=y(t))in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function O(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function k(r,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,y(n.key),n)}}function N(r,t,e){return t&&k(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function y(r){var t=T(r,"string");return o(t)=="symbol"?t:t+""}function T(r,t){if(o(r)!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var n=e.call(r,t);if(o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}var U=(function(){function r(t,e,n){if(O(this,r),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!e)throw new TypeError("`metadata` argument not passed");if(s(e)&&s(e.countries)){n=e;var i=t;if(!_.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var u=C(i,void 0,void 0,n),m=u.countryCallingCode,p=u.number;if(e=p,t=m,!e)throw new Error("Invalid `number` argument passed: too short")}if(!e)throw new TypeError("`nationalNumber` argument is required");if(typeof e!="string")throw new TypeError("`nationalNumber` argument must be a string");h(n);var a=S(t,n),b=a.country,g=a.countryCallingCode;this.country=b,this.countryCallingCode=g,this.nationalNumber=e,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}}return N(r,[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:P(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return d(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return v(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var e=new l(this.getMetadata());return e.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return w(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,n){return E(this,e,n?c(c({},n),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])})(),M=function(t){return/^[A-Z]{2}$/.test(t)};function S(r,t){var e,n,i=new l(t);return M(r)?(e=r,i.selectNumberingPlan(e),n=i.countryCallingCode()):n=r,{country:e,countryCallingCode:n}}var _=/^\+\d+$/;export{U as default};
1
+ import l,{validateMetadata as h}from"./metadata.js";import d from"./isPossible.js";import v from"./isValid.js";import w from"./helpers/getNumberType.js";import P from"./helpers/getPossibleCountriesForNumber.js";import C from"./helpers/extractCountryCallingCode.js";import s from"./helpers/isObject.js";import E from"./format.js";function o(r){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(r)}function f(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),e.push.apply(e,n)}return e}function c(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?f(Object(e),!0).forEach(function(n){j(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function j(r,t,e){return(t=y(t))in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function O(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function k(r,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,y(n.key),n)}}function N(r,t,e){return t&&k(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function y(r){var t=T(r,"string");return o(t)=="symbol"?t:t+""}function T(r,t){if(o(r)!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var n=e.call(r,t);if(o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}var U=(function(){function r(t,e,n){if(O(this,r),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!e)throw new TypeError("`metadata` argument not passed");if(s(e)&&s(e.countries)){n=e;var i=t;if(!_.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var u=C(i,void 0,void 0,void 0,n),m=u.countryCallingCode,p=u.number;if(e=p,t=m,!e)throw new Error("Invalid `number` argument passed: too short")}if(!e)throw new TypeError("`nationalNumber` argument is required");if(typeof e!="string")throw new TypeError("`nationalNumber` argument must be a string");h(n);var a=S(t,n),b=a.country,g=a.countryCallingCode;this.country=b,this.countryCallingCode=g,this.nationalNumber=e,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}}return N(r,[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:P(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return d(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return v(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var e=new l(this.getMetadata());return e.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return w(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,n){return E(this,e,n?c(c({},n),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])})(),M=function(t){return/^[A-Z]{2}$/.test(t)};function S(r,t){var e,n,i=new l(t);return M(r)?(e=r,i.selectNumberingPlan(e),n=i.countryCallingCode()):n=r,{country:e,countryCallingCode:n}}var _=/^\+\d+$/;export{U as default};
@@ -0,0 +1 @@
1
+ import N from"./helpers/matchesEntirely.js";import g from"./helpers/formatNationalNumberUsingFormat.js";import m,{getCountryCallingCode as s}from"./metadata.js";import h from"./helpers/getIddPrefix.js";import{formatRFC3966 as I}from"./helpers/RFC3966.js";var l={formatExtension:function(t,r,e){return"".concat(t).concat(e.ext()).concat(r)}};function O(n,t,r,e){if(r?r=E({},l,r):r=l,e=new m(e),n.country&&n.country!=="001"){if(!e.hasCountry(n.country))throw new Error("Unknown country: ".concat(n.country));e.selectNumberingPlan(n.country)}else if(n.countryCallingCode)e.selectNumberingPlan(n.countryCallingCode);else return n.phone||"";var o=e.countryCallingCode(),a=r.v2?n.nationalNumber:n.phone,c;switch(t){case"NATIONAL":return a?(c=f(a,n.carrierCode,"NATIONAL",e,r),u(c,n.ext,e,r.formatExtension)):"";case"INTERNATIONAL":return a?(c=f(a,null,"INTERNATIONAL",e,r),c="+".concat(o," ").concat(c),u(c,n.ext,e,r.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(a);case"RFC3966":return I({number:"+".concat(o).concat(a),ext:n.ext});case"IDD":if(!r.fromCountry)return;var i=A(a,n.carrierCode,o,r.fromCountry,e);return u(i,n.ext,e,r.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function f(n,t,r,e,o){var a=x(e.formats(),n);return a?g(n,a,{useInternationalFormat:r==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&o&&o.nationalPrefix===!1)}):n}function x(n,t){return v(n,function(r){if(r.leadingDigitsPatterns().length>0){var e=r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length-1];if(t.search(e)!==0)return!1}return N(t,r.pattern())})}function u(n,t,r,e){return t?e(n,t,r):n}function A(n,t,r,e,o){var a=s(e,o.metadata);if(a===r){var c=f(n,t,"NATIONAL",o);return r==="1"?r+" "+c:c}var i=h(e,void 0,o.metadata);if(i)return"".concat(i," ").concat(r," ").concat(f(n,null,"INTERNATIONAL",o))}function E(){for(var n=1,t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];for(;n<r.length;){if(r[n])for(var o in r[n])r[0][o]=r[n][o];n++}return r[0]}function v(n,t){for(var r=0;r<n.length;){if(t(n[r]))return n[r];r++}}export{x as chooseFormatForNumber,O as default};
@@ -0,0 +1 @@
1
+ import h from"../metadata.js";function L(i,r,u){return s(i,r,void 0,u)}function s(i,r,u,e){r&&(e=new h(e.metadata),e.selectNumberingPlan(r));var f=e.type(u),n=f&&f.possibleLengths()||e.possibleLengths();if(!n)return"IS_POSSIBLE";var t=i.length,l=n[0];return l===t?"IS_POSSIBLE":l>t?"TOO_SHORT":n[n.length-1]<t?"TOO_LONG":n.indexOf(t,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}export{s as checkNumberLengthForType,L as default};
@@ -0,0 +1 @@
1
+ import M from"./stripIddPrefix.js";import I from"./extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js";import R from"../metadata.js";import{MAX_LENGTH_COUNTRY_CODE as S}from"../constants.js";function O(r,s,e,f,i){if(!r)return{};var l;if(r[0]!=="+"){var n=M(r,e,f,i);if(n&&n!==r)l=!0,r="+"+n;else{if(e||f){var N=I(r,s,e,f,i),c=N.countryCallingCode,t=N.number;if(c)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:c,number:t}}return{number:r}}}if(r[1]==="0")return{};i=new R(i);for(var o=2;o-1<=S&&o<=r.length;){var _=r.slice(1,o);if(i.hasCallingCode(_))return i.selectNumberingPlan(_),{countryCallingCodeSource:l?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:_,number:r.slice(o)};o++}return{}}export{O as default};
@@ -0,0 +1 @@
1
+ import m,{getCountryCallingCode as b}from"../metadata.js";import g from"./matchesEntirely.js";import u from"./extractNationalNumber.js";import h from"./checkNumberLength.js";function P(r,o,e,c,n){var i=e?b(e,n):c;if(r.indexOf(i)===0){n=new m(n),n.selectNumberingPlan(e,i);var l=r.slice(i.length),C=u(l,o,n),N=C.nationalNumber,f=u(r,o,n),t=f.nationalNumber;if(!g(t,n.nationalNumberPattern())&&g(N,n.nationalNumberPattern())||h(t,o,n)==="TOO_LONG")return{countryCallingCode:i,number:l}}return{number:r}}export{P as default};
@@ -0,0 +1 @@
1
+ import l from"./extractNationalNumberFromPossiblyIncompleteNumber.js";import o from"./matchesEntirely.js";import u from"./checkNumberLength.js";import N from"./getCountryByCallingCode.js";function g(e,n,r){var i=l(e,r),a=i.carrierCode,t=i.nationalNumber;if(t!==e){if(!m(e,t,r))return{nationalNumber:e};if(r.numberingPlan.possibleLengths()&&(n||(n=N(r.numberingPlan.callingCode(),{nationalNumber:t,metadata:r})),!f(t,n,r)))return{nationalNumber:e}}return{nationalNumber:t,carrierCode:a}}function m(e,n,r){return!(o(e,r.nationalNumberPattern())&&!o(n,r.nationalNumberPattern()))}function f(e,n,r){switch(u(e,n,r)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}export{g as default};
@@ -1,2 +1,2 @@
1
1
  import l from"../metadata.js";import f from"./getNumberType.js";function d(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=s(e))||r){t&&(e=t);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(e,r){if(e){if(typeof e=="string")return i(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,r):void 0}}function i(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}function y(e,r){var t=r.countries,a=r.metadata;a=new l(a);for(var u=d(t),o;!(o=u()).done;){var n=o.value;if(a.country(n),a.leadingDigits()){if(e&&e.search(a.leadingDigits())===0)return n}else if(f({phone:e,country:n},void 0,a.metadata))return n}}export{y as default};
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(e,r){if(e){if(typeof e=="string")return i(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,r):void 0}}function i(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}function y(e,r){var t=r.countries,a=r.metadata;a=new l(a);for(var u=d(t),o;!(o=u()).done;){var n=o.value;if(a.selectNumberingPlan(n),a.leadingDigits()){if(e&&e.search(a.leadingDigits())===0)return n}else if(f({phone:e,country:n},void 0,a.metadata))return n}}export{y as default};
@@ -0,0 +1 @@
1
+ import o from"./metadata.js";import l from"./helpers/checkNumberLength.js";function u(e,n,r){if(n===void 0&&(n={}),r=new o(r),n.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return s(e.phone||e.nationalNumber,e.country,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function s(e,n,r){switch(l(e,n,r)){case"IS_POSSIBLE":return!0;default:return!1}}export{u as default,s as isPossibleNumber};
@@ -1 +1 @@
1
- import f from"./tools/semver-compare.js";import l from"./helpers/isObject.js";function a(n){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(n)}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function y(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,v(i.key),i)}}function u(n,t,e){return t&&y(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function v(n){var t=P(n,"string");return a(t)=="symbol"?t:t+""}function P(n,t){if(a(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var i=e.call(n,t);if(a(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}var d="1.2.0",p="1.7.35",h=" ext. ",C=/^\d+$/,b=(function(){function n(t){o(this,n),_(t),this.metadata=t,m.call(this,t)}return u(n,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return e!=="001"})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return this.getCountryMetadata(e)!==void 0}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var i=this.countryCallingCodes()[e];if(i&&i.length===1&&i[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,i){if(e&&C.test(e)&&(i=e,e=null),e&&e!=="001"){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new g(this.getCountryMetadata(e),this)}else if(i){if(!this.hasCallingCode(i))throw new Error("Unknown calling code: ".concat(i));this.numberingPlan=new g(this.getNumberingPlanMetadata(i),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var i=this.countryCallingCodes()[e];if(i)return i.length===1&&i[0].length===3?void 0:i}},{key:"getCountryCodeForCallingCode",value:function(e){var i=this.getCountryCodesForCallingCode(e);if(i)return i[0]}},{key:"getNumberingPlanMetadata",value:function(e){var i=this.getCountryCodeForCallingCode(e);if(i)return this.getCountryMetadata(i);if(this.nonGeographic()){var r=this.nonGeographic()[e];if(r)return r}else{var s=this.countryCallingCodes()[e];if(s&&s.length===1&&s[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),g=(function(){function n(t,e){o(this,n),this.globalMetadataObject=e,this.metadata=t,m.call(this,e.metadata)}return u(n,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,i=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return i.map(function(r){return new F(r,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&c(this.types(),e))return new x(c(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?h:this.metadata[13]||h}}])})(),F=(function(){function n(t,e){o(this,n),this._format=t,this.metadata=e}return u(n,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!k.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),k=/^\(?\$1\)?$/,x=(function(){function n(t,e){o(this,n),this.type=t,this.metadata=e}return u(n,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function c(n,t){switch(t){case"FIXED_LINE":return n[0];case"MOBILE":return n[1];case"TOLL_FREE":return n[2];case"PREMIUM_RATE":return n[3];case"PERSONAL_NUMBER":return n[4];case"VOICEMAIL":return n[5];case"UAN":return n[6];case"PAGER":return n[7];case"VOIP":return n[8];case"SHARED_COST":return n[9]}}function _(n){if(!n)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!l(n)||!l(n.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(l(n)?"an object of shape: { "+Object.keys(n).join(", ")+" }":"a "+N(n)+": "+n,"."))}var N=function(t){return a(t)};function R(n,t){if(t=new b(t),t.hasCountry(n))return t.country(n).countryCallingCode();throw new Error("Unknown country: ".concat(n))}function O(n,t){return t.countries.hasOwnProperty(n)}function m(n){var t=n.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?f(t,d)===-1?this.v2=!0:f(t,p)===-1?this.v3=!0:this.v4=!0:this.v1=!0}export{b as default,R as getCountryCallingCode,O as isSupportedCountry,_ as validateMetadata};
1
+ import f from"./tools/semver-compare.js";import l from"./helpers/isObject.js";function a(n){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(n)}function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function y(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,v(i.key),i)}}function u(n,t,e){return t&&y(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function v(n){var t=P(n,"string");return a(t)=="symbol"?t:t+""}function P(n,t){if(a(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var i=e.call(n,t);if(a(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}var d="1.2.0",p="1.7.35",h=" ext. ",C=/^\d+$/,b=(function(){function n(t){o(this,n),_(t),this.metadata=t,m.call(this,t)}return u(n,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return e!=="001"})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return this.getCountryMetadata(e)!==void 0}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var i=this.countryCallingCodes()[e];if(i&&i.length===1&&i[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,i){if(e&&C.test(e)&&(i=e,e=null),e&&e!=="001"){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new g(this.getCountryMetadata(e),this)}else if(i){if(!this.hasCallingCode(i))throw new Error("Unknown calling code: ".concat(i));this.numberingPlan=new g(this.getNumberingPlanMetadata(i),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var i=this.countryCallingCodes()[e];if(i)return i.length===1&&i[0].length===3?void 0:i}},{key:"getCountryCodeForCallingCode",value:function(e){var i=this.getCountryCodesForCallingCode(e);if(i)return i[0]}},{key:"getNumberingPlanMetadata",value:function(e){var i=this.getCountryCodeForCallingCode(e);if(i)return this.getCountryMetadata(i);if(this.nonGeographic()){var r=this.nonGeographic()[e];if(r)return r}else{var s=this.countryCallingCodes()[e];if(s&&s.length===1&&s[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),g=(function(){function n(t,e){o(this,n),this.globalMetadataObject=e,this.metadata=t,m.call(this,e.metadata)}return u(n,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,i=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return i.map(function(r){return new F(r,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&c(this.types(),e))return new x(c(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?h:this.metadata[13]||h}}])})(),F=(function(){function n(t,e){o(this,n),this._format=t,this.metadata=e}return u(n,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!k.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),k=/^\(?\$1\)?$/,x=(function(){function n(t,e){o(this,n),this.type=t,this.metadata=e}return u(n,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function c(n,t){switch(t){case"FIXED_LINE":return n[0];case"MOBILE":return n[1];case"TOLL_FREE":return n[2];case"PREMIUM_RATE":return n[3];case"PERSONAL_NUMBER":return n[4];case"VOICEMAIL":return n[5];case"UAN":return n[6];case"PAGER":return n[7];case"VOIP":return n[8];case"SHARED_COST":return n[9]}}function _(n){if(!n)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!l(n)||!l(n.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(l(n)?"an object of shape: { "+Object.keys(n).join(", ")+" }":"a "+N(n)+": "+n,"."))}var N=function(t){return a(t)};function R(n,t){if(t=new b(t),t.hasCountry(n))return t.selectNumberingPlan(n).countryCallingCode();throw new Error("Unknown country: ".concat(n))}function O(n,t){return t.countries.hasOwnProperty(n)}function m(n){var t=n.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?f(t,d)===-1?this.v2=!0:f(t,p)===-1?this.v3=!0:this.v4=!0:this.v1=!0}export{b as default,R as getCountryCallingCode,O as isSupportedCountry,_ as validateMetadata};
@@ -0,0 +1 @@
1
+ import{MIN_LENGTH_FOR_NSN as g,MAX_LENGTH_FOR_NSN as h,PLUS_CHARS as P,VALID_DIGITS as d}from"./constants.js";import m from"./ParseError.js";import T,{getCountryCallingCode as O}from"./metadata.js";import s,{isViablePhoneNumberStart as v}from"./helpers/isViablePhoneNumber.js";import w from"./helpers/extension/extractExtension.js";import y from"./parseIncompletePhoneNumber.js";import{isPossibleNumber as S}from"./isPossible.js";import x from"./PhoneNumber.js";import R from"./helpers/matchesEntirely.js";import E from"./helpers/extractCountryCallingCode.js";import I from"./helpers/extractNationalNumber.js";import A from"./helpers/getCountryByCallingCode.js";import p from"./helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js";var H=250,L=new RegExp("["+P+d+"]"),U=new RegExp("[^"+d+"#]+$");function Z(t,r,n){if(r=r||{},n=new T(n),r.defaultCountry&&!n.hasCountry(r.defaultCountry))throw r.v2?new m("INVALID_COUNTRY"):new Error("Unknown country: ".concat(r.defaultCountry));var e=G(t,r.v2,r.extract),l=e.number,c=e.ext,i=e.error;if(!l){if(r.v2)throw i==="TOO_SHORT"?new m("TOO_SHORT"):new m("NOT_A_NUMBER");return{}}var a=D(l,r.defaultCountry,r.defaultCallingCode,n),o=a.country,u=a.nationalNumber,N=a.countryCallingCode,_=a.countryCallingCodeSource,f=a.carrierCode;if(!n.hasSelectedNumberingPlan()){if(r.v2)throw new m("INVALID_COUNTRY");return{}}if(!u||u.length<g){if(r.v2)throw new m("TOO_SHORT");return{}}if(u.length>h){if(r.v2)throw new m("TOO_LONG");return{}}if(r.v2){var C=new x(N,u,n.metadata);return o&&(C.country=o),f&&(C.carrierCode=f),c&&(C.ext=c),C.__countryCallingCodeSource=_,C}var b=(r.extended?n.hasSelectedNumberingPlan():o)?R(u,n.nationalNumberPattern()):!1;return r.extended?{country:o,countryCallingCode:N,carrierCode:f,valid:b,possible:b?!0:!!(r.extended===!0&&n.possibleLengths()&&S(u,o,n)),phone:u,ext:c}:b?M(o,u,c):{}}function F(t,r,n){if(t){if(t.length>H){if(n)throw new m("TOO_LONG");return}if(r===!1)return t;var e=t.search(L);if(!(e<0))return t.slice(e).replace(U,"")}}function G(t,r,n){var e=p(t,{extractFormattedPhoneNumber:function(i){return F(i,n,r)}});if(!e)return{};if(!s(e))return v(e)?{error:"TOO_SHORT"}:{};var l=w(e);return l.ext?l:{number:e}}function M(t,r,n){var e={country:t,phone:r};return n&&(e.ext=n),e}function D(t,r,n,e){var l=E(y(t),void 0,r,n,e.metadata),c=l.countryCallingCodeSource,i=l.countryCallingCode,a=l.number,o;if(i)e.selectNumberingPlan(i);else if(a&&(r||n))e.selectNumberingPlan(r,n),r&&(o=r),i=n||O(r,e.metadata);else return{};if(!a)return{countryCallingCodeSource:c,countryCallingCode:i};var u=I(y(a),o,e),N=u.nationalNumber,_=u.carrierCode,f=A(i,{nationalNumber:N,metadata:e});return f&&(o=f,f==="001"||e.selectNumberingPlan(o)),{country:o,countryCallingCode:i,countryCallingCodeSource:c,nationalNumber:N,carrierCode:_}}export{Z as default};
@@ -0,0 +1,2 @@
1
+ import{parseDigit as i}from"./helpers/parseDigits.js";function u(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=l(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(e,t){if(e){if(typeof e=="string")return o(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e){for(var t="",r=u(e.split("")),n;!(n=r()).done;){var a=n.value;t+=f(a,t)||""}return t}function f(e,t,r){return e==="+"?t?void 0:"+":i(e)}export{c as default,f as parsePhoneNumberCharacter};