@g9tm/lynxcontrols-foundation 2.6.7 → 2.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalog/catalog.json +10 -2
- package/catalog/index.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/culture/index.d.ts +1 -1
- package/dist/culture/index.d.ts.map +1 -1
- package/dist/culture/index.js +1 -1
- package/dist/culture/text.d.ts +11 -0
- package/dist/culture/text.d.ts.map +1 -1
- package/dist/culture/text.js +6 -1
- package/dist/culture/text.js.map +1 -1
- package/dist/tokens/shape.d.ts +4 -2
- package/dist/tokens/shape.d.ts.map +1 -1
- package/dist/tokens/shape.js.map +1 -1
- package/docs/api.md +2 -1
- package/package.json +1 -1
package/catalog/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"catalogVersion": 1,
|
|
3
3
|
"package": "@g9tm/lynxcontrols-foundation",
|
|
4
|
-
"version": "2.6.
|
|
4
|
+
"version": "2.6.9",
|
|
5
5
|
"generatedBy": "node scripts/check-docs.mjs --write",
|
|
6
6
|
"components": [],
|
|
7
7
|
"exports": [
|
|
@@ -701,6 +701,14 @@
|
|
|
701
701
|
"signature": "(lat: number, lon: number, options?: G9CoordinateFormatOptions): string",
|
|
702
702
|
"summary": "A position as «lat، lon» that can never read as one number (AgriPad F-401: «۳۴٫۸۰۴۲,۵۰٫۴۱۶۰»): each number in the culture's digits and decimal separator, no grouping, a fixed number of decimals, the culture's list separator between them, the whole left-to-right isolated so RTL text keeps latitude first. `formatCoordinates(34.80421, 50.41603, { numberingSystem: 'persian' })` → `'۳۴٫۸۰۴۲، ۵۰٫۴۱۶۰'`."
|
|
703
703
|
},
|
|
704
|
+
{
|
|
705
|
+
"id": "foundation.culture.formatCountOf",
|
|
706
|
+
"export": "formatCountOf",
|
|
707
|
+
"from": "@g9tm/lynxcontrols-foundation/culture",
|
|
708
|
+
"kind": "function",
|
|
709
|
+
"signature": "(current: string | number, total: string | number, numberingSystem?: G9NumberingSystem, options?: { readonly direction?: \"ltr\" | \"rtl\"; readonly separator?: string; }): string",
|
|
710
|
+
"summary": "A count against its total — a field's `0 / 4000`, a pager's `5–8 / 23`, a gallery's `3 / 12` — in the culture's digits, inside a direction isolate so the text around it cannot reorder the two numbers (the neutral `/` and spaces have no direction of their own). `direction` is the order on screen: `'ltr'` (default) draws the count at the left, «۰ / ۴۰۰۰»; `'rtl'` draws it at the right, «۴۰۰۰ / ۰» (read right to left: the count first, as MAUI's RTL label did). Latin digits stay `0 / 4000`. Parts already in native digits (a formatted number, a range) pass through."
|
|
711
|
+
},
|
|
704
712
|
{
|
|
705
713
|
"id": "foundation.culture.formatIsoDate",
|
|
706
714
|
"export": "formatIsoDate",
|
|
@@ -1707,7 +1715,7 @@
|
|
|
1707
1715
|
"from": "@g9tm/lynxcontrols-foundation/tokens",
|
|
1708
1716
|
"kind": "function",
|
|
1709
1717
|
"signature": "(weight: number | \"bold\" | \"normal\"): string",
|
|
1710
|
-
"summary": "The `font-family` value for a G9 text of `weight
|
|
1718
|
+
"summary": "The `font-family` value for a G9 text of `weight`: the provider's per-weight variable (`var(--g9-font-text-700)`), or the base one for 400 and lighter. For a STYLESHEET only (a rule written in code, a web style): native Lynx does not resolve `var()` in an inline `font-family`, so an inline style with it draws the platform's font (2.6.8, AgriPad TR-0122). On a Lynx element give the text a class whose rule reads the variable; the library's controls do."
|
|
1711
1719
|
},
|
|
1712
1720
|
{
|
|
1713
1721
|
"id": "foundation.icons.G9FontIcon",
|
package/catalog/index.md
CHANGED
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../src/collections.ts","../src/errors.ts","../src/culture/bidi.ts","../../../node_modules/@internationalized/date/dist/types/src/calendardate.d.ts","../../../node_modules/@internationalized/date/dist/types/src/types.d.ts","../../../node_modules/@internationalized/date/dist/types/src/queries.d.ts","../../../node_modules/@internationalized/date/dist/types/src/utils.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/gregoriancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/japanesecalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/buddhistcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/taiwancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/persiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/indiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/islamiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/hebrewcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/ethiopiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/createcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/conversion.d.ts","../../../node_modules/@internationalized/date/dist/types/src/string.d.ts","../../../node_modules/@internationalized/date/dist/types/src/dateformatter.d.ts","../../../node_modules/@internationalized/date/dist/types/src/index.d.ts","../src/culture/digits.ts","../src/culture/culture.ts","../src/culture/calendar.ts","../src/culture/numbers.ts","../src/culture/text.ts","../src/culture/coordinates.ts","../src/culture/date-format.ts","../src/culture/duration.ts","../src/culture/natural-date.ts","../src/culture/strings.ts","../src/culture/relative-time.ts","../src/culture/words.ts","../src/culture/index.ts","../src/enums/index.ts","../src/exec/diagnostics.ts","../src/services/abort.ts","../src/exec/options.ts","../src/services/clock.ts","../src/exec/trace.ts","../src/exec/safe-executor.ts","../src/exec/index.ts","../src/icons/generated/glyph-svg.ts","../src/icons/glyph.ts","../src/icons/icon.ts","../src/icons/glyph-slots.ts","../src/icons/icon-fonts.ts","../src/icons/packs.ts","../src/theme/color.ts","../src/icons/svg.ts","../src/icons/index.ts","../src/layout/index.ts","../src/route/address.ts","../src/route/catalogue.ts","../src/route/journey.ts","../src/route/sink.ts","../src/route/resolve.ts","../src/route/view.ts","../src/route/index.ts","../src/services/feedback.ts","../src/services/preferences.ts","../src/services/contracts.ts","../src/services/keys.ts","../src/services/motion.ts","../src/services/index.ts","../src/tokens/generated/metrics.ts","../src/tokens/generated/palettes.ts","../src/tokens/layout-metrics.ts","../src/tokens/css-vars.ts","../src/theme/aliases.ts","../src/tokens/shape.ts","../src/theme/oklch.ts","../src/theme/theme.ts","../src/theme/brand.ts","../src/theme/recipe.ts","../src/theme/sanitize.ts","../src/theme/appearance.ts","../src/theme/css-color.ts","../src/theme/token-themes.ts","../src/theme/appearance-kit.ts","../src/theme/contrast.ts","../src/theme/control-colors.ts","../src/theme/design.ts","../src/tokens/derived.ts","../src/theme/variants.ts","../src/theme/index.ts","../src/tokens/root.ts","../src/tokens/index.ts","../src/index.ts"],"fileIdsList":[[102],[101,102,105],[101,102,104],[101,102],[101,102,104,105],[101,102,103,105,106,107,108,109,110,111,112,113,114,115,116,117],[101],[40,95,96],[41,85,86,87],[52],[41,77,86,87,88,89,91,92,93],[41,85,86,87,89,90],[85,87],[41,85],[48,77],[42],[43],[50,54],[46],[40,50,54,55,56,57,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79],[46,50,54,77],[46,50,54],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79,80,81,82],[57,58],[46,50,54,58],[46,60,63],[45],[47,51,52,94],[43,46,47,48,50,52,53,54,83,84],[43,46],[51,85,94],[44,85],[45,46,54],[44,45,49,50],[48,85],[37,38,39],[40],[97],[97,99,118,120],[97,119,122,123],[97,99,119],[97,99,119,120,121],[97,99],[97,100,119,120,121,122,123,124,125,126,127,128,129,130],[97,121,123],[97,99,121,125,128],[97,99,120,122],[97,119,122],[97,133,135,137,138],[97,99,134],[97,99,128,133,134,135,136,137],[97,133,136],[97,99,142],[97,99,141,142],[97,99,141],[97,140,141,142,143,144,145,147],[97,99,140,141,146],[97,98,99,131,132,139,148,149,156,162,183,185],[97,99,150],[97,150,151,152,153,154,155],[97,150,151],[97,150,151,153],[97,150],[97,99,134,136,153,157,158],[97,134,136,157,158,159,160,161],[97,164,166],[97,146,164,168,169,170,173,174,176],[97,99,146,164,168,170,171,172,173],[97,146,164,169,170],[97,146,164],[97,146,170],[97,146,169],[97,146,164,168,170,175],[97,146,167,169,170,171,172,174,175,176,177,178,179,180,182],[97,146],[97,99,164,168,169,170,171],[97,99,146,164],[97,146,164,169,170,173,174,175],[97,132,146,164,166,181],[97,163,164,165],[97,146,164,166],[97,163,164,165,166,168,181,184],[97,164,166,168,181],[97,166]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},{"version":"42204f4543c2a8d92bdee756d5e3f09e2612497ad26b5c36a285d99d34efa377","signature":"d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f"},{"version":"18609e84384328c186664b8c5b407e379ee197a4bc40d0e985b5c8050ce29df7","signature":"ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26"},{"version":"714560fb0e2ff57d67dcb3337a40ed0d9acddd7bcfad0e80ca3f0da9537dadaf","signature":"577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851"},{"version":"217c6f6adcf5111e57a516f20bb0f3624f4a0c8c95b4dfd757b2c191439d3aa4","impliedFormat":1},{"version":"302d0816f71d30d6615895a696aab24cf074ac8e9d5b90021c9a4a29f4121d27","impliedFormat":1},{"version":"a68e0e4868a1f61702c5b91cc2b0437168acc49e318896a891368f52e0420781","impliedFormat":1},{"version":"eb57169d1ef4957f9322372942255786231714bfd3475dec56980d4075a99bb8","impliedFormat":1},{"version":"d13b4c54324181a93a23ce284b3a7a1a2148a35aecc95c562353e28a799cbeab","impliedFormat":1},{"version":"3ec9cc2c9621174a735593a03b48415ce4e0e4002a1fd5e56fffa029739561c5","impliedFormat":1},{"version":"a9b763da625de15e560fa1d58de51694c5cc45ac84f942bf85bd022b03806d9b","impliedFormat":1},{"version":"801d799959670d8a15b3dfc95d4b11dc2a0dbdb288c1de56404022ee45206302","impliedFormat":1},{"version":"dc1897f61ef7cd55f6e7572332ff23225661fa8814f9f2137655a724445dfcc9","impliedFormat":1},{"version":"af4a925b523e9c391ee4d4451cf658849e9d92e2c6fb63ac39024b6264916751","impliedFormat":1},{"version":"d0139e18847aa6b6e33b8b8fa43ca8c6fc24baa26cfc6b845078500d5810e392","impliedFormat":1},{"version":"4d22f9e46854d0e44f827c33ed9b7da2d407a4ef6dc962a53345b1f9d0c75b13","impliedFormat":1},{"version":"6c60775bbec04bff8661a7601d0fe26e696dbd1d5287ffd7cba68e8978b4cf4c","impliedFormat":1},{"version":"1185a5e4d82d7b64bd5438019fcd6eec765a64f0cc36c3af738c5ae317c7b957","impliedFormat":1},{"version":"bf4a94dcf6335c0bb4ab927fb56a646ea9ac57123b2677c2eb9841302dc3f1da","impliedFormat":1},{"version":"10175cdd19d960f50473c229d98659a5b2534a48bd86acf647e8f2878aa25d29","impliedFormat":1},{"version":"7721b07afcc035f4aff3af52d1a982d7fbd2525a9ab82b197b67d8eefc915de6","impliedFormat":1},{"version":"e943098dc1cc3574e0d903a7ac2d90d6863d243dea9295b4a8fd34223a8277e1","impliedFormat":1},{"version":"a142f5afe12787e110a2e7ff7ee4a02647c022ff0839e7c7ae0f4a41278ae1f1","signature":"44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef"},{"version":"7db764083fb927c05340e42cae128a68b53ce9d4bddfc7845e4f7c4d22772a9f","signature":"d5621f942ab05c1c3594b5b59070c2f44d411f01ba97eae6bd60cd99ab6be102"},{"version":"bdfd4a2c14afeeb21b587929fcf19c8f90ef4b3b659415724b1fcb4375b537b9","signature":"69af30b9df408f844bd30e26ade1ba783c7624bd505ecef61a7e178624ece0eb"},{"version":"2c0754ee9b1637e850da1e2fa4e7b98e7eb30fc2b10a84c42fe33d9302383038","signature":"2064567cac7c44696477d8faeb79ec714624c341bee71ea7237ea2ef2e26e8a4"},{"version":"e4f055733edd90b02d1683c88b4461b744cef922ef9668a07e280da95fcf5562","signature":"b3575fc6f742fdcb7c500e826958dc5aabea5c7120a02373172ef934f3881084"},{"version":"3ac0b6ea92d871267625ea34f72a3090a7638a1d01c466c0ba7666e63c54c586","signature":"9d4e2786d2e8c5c304e5f5f282f38deff75dddf26d89e53c1c4872a7f9a7ecbc"},{"version":"521f08c786cd4cdaab2da57ce3dd6454f47a8edc501f8ba36c9b6ce4e223b6a6","signature":"3dd51a4b01e4a63709253bf28547f961d6bc64df7b7ced76bc0771800446ecd4"},{"version":"6c8dfe4a5ac25365b0c5c0817051732acead3f788f3567815ec775029b1661d2","signature":"28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a"},{"version":"24f4573a7b128e7a5f50de724a02ab69b27df707cdcfe044e6df2cccd3afe7c9","signature":"36f2fc7f6b07a9966273bda82f2b0b450b42d3320a9edaf91730c333ad86e257"},{"version":"b67192c27290fe55623013054f6c0ff6a63311e1266467c2f675dc4d7aab93b8","signature":"07477fef265592fa976f17bca69f4d03c112e321357c49d17232b5b5e493caf5"},{"version":"7bb7ff36e4fae5f3f2eeb2d1e70b46fac0412da4e4b65efd28fc95e5ba622995","signature":"ddb01c2474a47c2411bde75e969c547fd52dd0de9d39837970a6ec5effea934f"},{"version":"7eab0819fe34344e8b7c1827df8fd1611f5fa67e545d73b0229b0e18075af508","signature":"995ad7257ddc7f156739058b64eeb7589ef7886ae4b6b769adffd5eca2cf0aa7"},{"version":"1839ad9436ac1f550a368c38510fab56aadfc60241e7168f40ccec851d6bbef0","signature":"7a40f3fc523bbfd4f6cd88e6c2d64020b3ba0b17cd675fdeab82b61b006ea8ae"},{"version":"e983009f8ace928b08216908294b679b05ba261050e72803bfda43726b2219aa","signature":"5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7"},{"version":"16307e253df4bb417223e5814bcc5742d1b7d9b893bd72418b8cfe8e6f7ab474","signature":"abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018"},{"version":"cc74809c9fbebdf300941acce9a07ea6ff52bf91840e738014d4dc2645f153bb","signature":"f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c"},{"version":"38ccbb46155bf41c02e47d4bd2167b1a0f6b5429be49596da7e6b203cd7176eb","signature":"db505b070be7771c50bb80800e4a16333bea91619030d33e9d1b1d6d245fde72"},{"version":"3c106b0a8bab93d06df0fb9fb79a4814e9d333aca28138f2e8f053f9260cea38","signature":"d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93"},{"version":"23f824bd861a6cf696a4571ffeca7cd5130ff1b4d30ade235d6fed7fbc6fc78f","signature":"cefcb1f078d33a40c707d4a239ee518a595d7553b4205a4a23c1bf84a743a94e"},{"version":"5ab239682bfcdf7c0d429cfed2f0bd83489103ffab0e2be6b6f3014af19dc316","signature":"4f83143f730ad8fd66ec8f779b2f43399ed4b84aec6f5df5fdc4a2436739e934"},{"version":"4719b38ecf1f698d62ba291298047877c04dbc1848a27307a4edeaeee1bc66c7","signature":"830e8c15e2893c5864835fe97bad3fdc5d46bb9b72a66851365b8411347dda10"},{"version":"f2175ae864cb2550da788b15fc4a39aa398df0665466213d25371c5d7b685c21","signature":"b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9"},{"version":"26c1a7b48b53476c1dc0e107d0b0fe71b6148f4e320f660a0bfb7d20e67c1835","signature":"068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf"},{"version":"854f9b8c6d757b73f1c168038e3a5b24e2ca973d803c49ad43949447d4615f07","signature":"4285e8b8ec9bdea3ca2630c4d79f715587cc3262e5613fbd7bea8ffd32cc097c"},{"version":"03b57a8957f6cf8905df145665b4e64b8368c98e8b6802f8cff765ffc25e27c8","signature":"2b8a3fa14f4b24cbb3c2c783ae0805bc1a857cdf7d35308956f3660ef0229c3c"},{"version":"24189dadf4ca8b95ef97800d08ca7c98abdf1d6f0a1955fe66d94608fce724f8","signature":"f55ab5598602804a77bd7ff4f8442ceb29c6603120e1e6fe39b346dbcea9a438"},{"version":"f1172c2e3d40c9560d42e228cc14af529d8353de8df93caea82ce03fdffe4464","signature":"7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db"},{"version":"4e86b93241304e96d9fdc6554c7bf88dac95b8ea2484327a899a677a25d5e5ca","signature":"c15fea45b893c73bcad76ae565d59a0472ae0f74713ead9a9e7eb37085260c09"},{"version":"c71d509a443c45af8cd7bd84ea979bd5410677deaaf1983921949cb4cd952a05","signature":"344f7de9b0f6fa5ff42d99bac404c169596a2272a8b3d225beec056e4106bcb9"},{"version":"4815ef09b602fc55d4316ff4f04a7ead013f3827fcdd2436c3179a90ad9a45b9","signature":"ee2cc74d84f07861cccd51753c16296dfa24d6a19443262b4ec957bd451c46eb"},{"version":"9633cfd1413933ac2b54fc9959dc1591dc7b3d3b502b1fa3b3165407adb99002","signature":"cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e"},{"version":"52ba4ecb0b6a0c7250b7a10edf12ed75bafeb7ce812ae78255e3a149658dfe41","signature":"0fe3cc2e808353835af39798e6e169bbc1ce0cf473122316a019376a1d6d98cb"},{"version":"6069d1262128233eb04fb50264af01eb16258a8ba9a5bef9ebbaa8133459ec91","signature":"67b7d490a2cf3547f783c6f8e3019a6864f12cc657d17cf378146e7073cceb0c"},{"version":"b5f6738fc61eefd5acebabba48278250c0de84074f5c04a4c60414554d8f672b","signature":"6365c6701ad1cf8d99205387000a0324a573890107b2f475fd6a82174f0389c3"},{"version":"11fd46a411f0b66dd99a50a2274a73929d973614a5fa81bb9fb51aa6ee0cce92","signature":"d89fd83960c2343d5af55b3c174b5997272cd89af982d41bc21af8b8332cf149"},{"version":"79e9f560eae83744faa3e53154ee9bdb9f3941506eadd8d3a87935b2f90ccf4a","signature":"86a386c8741a08a24b2491c0d160bc2ee271b728c1f152d6705ffd69024679ee"},{"version":"10cf6b1e023bbb169c90ad7ff1c792552bdb73baf9f277ee1ca3e213b9b37452","signature":"49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3"},{"version":"1238f61c8db8e5ab8beaf5a9dbe5cad66661666e4e944fe92c38694c6a20cc1c","signature":"6f8692b9b0416b85506884f641a30a8f75b0b035c9948020a7117ca2faa6a840"},{"version":"b278c7dbac38a0c57ebcde6b848e7cd017a59f9ca770d9aaa4c83d6c09cf86ef","signature":"cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757"},{"version":"cb8bba022b800c1acb8ef8bfe465bfef7e43d22d06f20a8d6e7503aca0f4d570","signature":"ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669"},{"version":"69c39cdb2e91af538c7e6f54dd653864e0bc3eb765ba4f394d80f945eb1bfdcf","signature":"fd74286e0037339f88fdc437ede3c31139164faf238651e54abb805732d4b541"},{"version":"34b8960c9c9618b4742beb6198843f0e58ad8669864dac868507480ea6d8b10b","signature":"5f96841314e358366bcb3b3d07c8b8d924e90dcd00dcf2202900cbfaeefc1a03"},{"version":"db8a43eda6f42311a421d8839efe110a9436be9bc55eb5cd9ccd53c687b52537","signature":"216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d"},{"version":"94b5279df6c3abe97e185b85128e29c68da26025d99317deb539810f628a36ce","signature":"f50eafec22168e69b6138149fbee4eacb5dbd53fbc15f9daa37558705d1a6bc7"},{"version":"028144708663445c29ad9ca6be95694108a6d4decaff0709a9245977fef98e8e","signature":"ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3"},{"version":"21c4b66fbb8ad882f52c2825c45cb59ced1017b9bfc531fb8a0ef60d1240b882","signature":"faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7"},{"version":"fe66054b645111cf483c589411e2bd9e2c0ccbde0ba365e029c6c20653f02112","signature":"298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33"},{"version":"d615cba0a460f5568ce3473a1434f6ccf4511042824ce281682e499a95a676c8","signature":"1862daa6bc69b267a2b595149c5bced13ce2440d0d6625d291a5450d9d3118ae"},{"version":"4c3cbd29af3564f4aca3daaf5ca047f485b217af41f529815002a98933dab476","signature":"ed24498d7fe499efeb2a3f2df83a29cd3b8b83a982d01e7d73f4cc0166e3982b"},{"version":"4cad49c0abb6ef01a06892e461a9c03f61207fcb1cd90aed9ffd1953aebe582a","signature":"15d3a796bb9e54d4712a6a461964c8ecfd7182b09714f3bd7d0b9d954fe3393b"},{"version":"3cfad95bc4e3a7cae2da5cb4b5747145754f734c50aed196f681c08081f4e61a","signature":"93d15026bf4213d204b0ed4bd102a82945c519a716d51c245dca01d6ca7d0222"},{"version":"a440fc408fef832b41e8dd4988e1ab8d06c6d82a849c33efc9f59af0b8a35994","signature":"27c5013992e6c2d1a82395d90ac5877a70066f03f74b2a91d70e9eafa0666655"},{"version":"183c11473cd567bc10ae010c8db5e4205a91754bc0a3cb6db7dcdcd644d137b6","signature":"b1dff8567dd02ba98547471feb38597022193ca26b6ce853d28d2092b36669f6"},{"version":"b0740410649ef8daf5925d4bbac60c8f4f79a31c61e8ce02e5ad26c8c11705ad","signature":"264dc4b816ffdeabcb52d9698df80b809d3d616e1d394b9891f8163acdc69140"},{"version":"fa790fa82a01d9f729f941c5c80e4eec51314ce7afacfad53025970fe495d321","signature":"a324358754f94c05fa3bd4748c35928c38ffc911e454d4fc076c7aff6c428c15"},{"version":"76f792c697c5ac05595d1ce061ae0b1b98296a76a5535868071d622455425a7c","signature":"dca501d8eff2db8c8309ccb2667b3b70f6e80290b91081bd740fe933fadc0c03"},{"version":"89921042d23f5b525d2b269e3754f7fdccd12dccd4491363248c5e79bb88e02e","signature":"718f81461dec01a5272f4ccf5efb006306f28ccd8f70b3c49e0221b9db21fdbe"},{"version":"73f46861ae92cd4ccac31f5045c6b548952a844d84fcbf63499c1a59c986619f","signature":"f484e0e4fa693a32c3ec182f8cd0ad3994c5efdc44c5969fd8c236c00a772d30"},{"version":"1cb16dd6dabd3a510cf89485546a34d38bb885f34f981627e46fdf7cebc3948f","signature":"2e3bd3aa1d6f941426e608169489cb33633ef7fb0294677e0d3151ef6c8dc913"},{"version":"312605bae92cef4d14e1c11bd9d624a907302f2360c43764ccb63437b8eabce0","signature":"e6c6e5af757c1a353c031cbd0e917586fe9ee9767a80937c7763718431cefb17"},{"version":"8c1ccf55df4d01257496b438fa372bea784e018d9b7327bd1fbeb90ad1f0aaf9","signature":"edc33c8870895bd9b0255d99fc8213efeddc0acf0031b7fa6cd8cc372f446c46"},{"version":"05874ba226e10081ca4c853d185e1f88701abdc601bd661f00338a730805824b","signature":"29ffac17044f96c464965f99ecb812783d5b524d6187cc9cc55b784abdf95fb2"},{"version":"59d217109d70b75a91c57fee208242e56bb535687f2092c373885aae511fc42e","signature":"c742b17e5e316108f45f793bdfe9e074092b12cb6e8d8a1683f6c62af6b0465c"},{"version":"aff24855ea3fba97546860cda5e8d435e40a5d2f02b93342dcc7d8b694131c05","signature":"ec73711a5e3798a36346e15ad1c2c3521a5e3e1515436835fd37986c8cd3c7fe"},{"version":"e89f8cb160b8a1855b3bd6ec67d8443f5174b1359af01e9da73ef7e2d79f39db","signature":"5479876a6d0549f1536798428c4dcd46e8d7a5e5dcfb7d5b48da5aa237b8160f"},{"version":"36bd279cafc26def48a052ec89b8fc1676e1d055c73c8c9fb6e736883dad1ff8","signature":"9d34e36b56059d024baeb63a17467d01f2327d9568af58a7bbb168726a0b0503"},{"version":"60c5ea3628c3e2d99052a4f4de39019d4b316e40b970f722728ec678b8be1257","signature":"a438a2ecbecc0d1939a52439ca0150297820fc9d68bd9bddb6af5e9db7ab9457"},"40b6395de64bf52ad2043d18ae16bcca9b437a874dcb4c1c6829448b260a69ad"],"root":[[98,100],[119,186]],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":true,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[101,1],[107,2],[113,3],[105,3],[112,3],[110,2],[111,4],[106,5],[109,4],[108,5],[115,4],[114,1],[118,6],[103,4],[116,4],[102,7],[97,8],[88,9],[90,10],[94,11],[91,12],[92,13],[87,14],[89,15],[43,16],[82,17],[73,18],[58,19],[55,18],[80,20],[56,18],[78,21],[57,22],[83,23],[59,24],[66,22],[61,18],[60,25],[75,22],[81,26],[79,22],[62,18],[70,22],[71,22],[63,25],[69,22],[64,25],[67,22],[68,18],[76,22],[65,18],[72,22],[74,22],[46,27],[53,28],[85,29],[54,30],[95,31],[44,27],[45,32],[50,33],[51,34],[49,35],[40,36],[96,37],[98,38],[100,38],[121,39],[124,40],[120,41],[125,42],[119,43],[126,43],[131,44],[127,45],[122,41],[129,46],[128,47],[123,48],[130,38],[132,38],[99,38],[133,38],[139,49],[135,50],[138,51],[137,52],[140,38],[143,53],[141,43],[144,54],[142,55],[148,56],[145,38],[147,57],[186,58],[149,38],[150,43],[151,59],[156,60],[152,61],[154,62],[153,63],[155,63],[134,38],[136,38],[159,64],[157,38],[162,65],[160,38],[161,38],[158,43],[167,66],[177,67],[174,68],[171,69],[146,43],[178,70],[179,71],[175,72],[180,73],[183,74],[169,75],[172,76],[173,38],[170,77],[176,78],[182,79],[166,80],[181,81],[163,38],[164,38],[185,82],[165,43],[184,83],[168,84]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../src/collections.ts","../src/errors.ts","../src/culture/bidi.ts","../../../node_modules/@internationalized/date/dist/types/src/calendardate.d.ts","../../../node_modules/@internationalized/date/dist/types/src/types.d.ts","../../../node_modules/@internationalized/date/dist/types/src/queries.d.ts","../../../node_modules/@internationalized/date/dist/types/src/utils.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/gregoriancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/japanesecalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/buddhistcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/taiwancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/persiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/indiancalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/islamiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/hebrewcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/calendars/ethiopiccalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/createcalendar.d.ts","../../../node_modules/@internationalized/date/dist/types/src/conversion.d.ts","../../../node_modules/@internationalized/date/dist/types/src/string.d.ts","../../../node_modules/@internationalized/date/dist/types/src/dateformatter.d.ts","../../../node_modules/@internationalized/date/dist/types/src/index.d.ts","../src/culture/digits.ts","../src/culture/culture.ts","../src/culture/calendar.ts","../src/culture/numbers.ts","../src/culture/text.ts","../src/culture/coordinates.ts","../src/culture/date-format.ts","../src/culture/duration.ts","../src/culture/natural-date.ts","../src/culture/strings.ts","../src/culture/relative-time.ts","../src/culture/words.ts","../src/culture/index.ts","../src/enums/index.ts","../src/exec/diagnostics.ts","../src/services/abort.ts","../src/exec/options.ts","../src/services/clock.ts","../src/exec/trace.ts","../src/exec/safe-executor.ts","../src/exec/index.ts","../src/icons/generated/glyph-svg.ts","../src/icons/glyph.ts","../src/icons/icon.ts","../src/icons/glyph-slots.ts","../src/icons/icon-fonts.ts","../src/icons/packs.ts","../src/theme/color.ts","../src/icons/svg.ts","../src/icons/index.ts","../src/layout/index.ts","../src/route/address.ts","../src/route/catalogue.ts","../src/route/journey.ts","../src/route/sink.ts","../src/route/resolve.ts","../src/route/view.ts","../src/route/index.ts","../src/services/feedback.ts","../src/services/preferences.ts","../src/services/contracts.ts","../src/services/keys.ts","../src/services/motion.ts","../src/services/index.ts","../src/tokens/generated/metrics.ts","../src/tokens/generated/palettes.ts","../src/tokens/layout-metrics.ts","../src/tokens/css-vars.ts","../src/theme/aliases.ts","../src/tokens/shape.ts","../src/theme/oklch.ts","../src/theme/theme.ts","../src/theme/brand.ts","../src/theme/recipe.ts","../src/theme/sanitize.ts","../src/theme/appearance.ts","../src/theme/css-color.ts","../src/theme/token-themes.ts","../src/theme/appearance-kit.ts","../src/theme/contrast.ts","../src/theme/control-colors.ts","../src/theme/design.ts","../src/tokens/derived.ts","../src/theme/variants.ts","../src/theme/index.ts","../src/tokens/root.ts","../src/tokens/index.ts","../src/index.ts"],"fileIdsList":[[102],[101,102,105],[101,102,104],[101,102],[101,102,104,105],[101,102,103,105,106,107,108,109,110,111,112,113,114,115,116,117],[101],[40,95,96],[41,85,86,87],[52],[41,77,86,87,88,89,91,92,93],[41,85,86,87,89,90],[85,87],[41,85],[48,77],[42],[43],[50,54],[46],[40,50,54,55,56,57,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79],[46,50,54,77],[46,50,54],[55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,78,79,80,81,82],[57,58],[46,50,54,58],[46,60,63],[45],[47,51,52,94],[43,46,47,48,50,52,53,54,83,84],[43,46],[51,85,94],[44,85],[45,46,54],[44,45,49,50],[48,85],[37,38,39],[40],[97],[97,99,118,120],[97,119,122,123],[97,99,119],[97,99,119,120,121],[97,99],[97,100,119,120,121,122,123,124,125,126,127,128,129,130],[97,121,123],[97,99,121,125,128],[97,99,120,122],[97,119,122],[97,133,135,137,138],[97,99,134],[97,99,128,133,134,135,136,137],[97,133,136],[97,99,142],[97,99,141,142],[97,99,141],[97,140,141,142,143,144,145,147],[97,99,140,141,146],[97,98,99,131,132,139,148,149,156,162,183,185],[97,99,150],[97,150,151,152,153,154,155],[97,150,151],[97,150,151,153],[97,150],[97,99,134,136,153,157,158],[97,134,136,157,158,159,160,161],[97,164,166],[97,146,164,168,169,170,173,174,176],[97,99,146,164,168,170,171,172,173],[97,146,164,169,170],[97,146,164],[97,146,170],[97,146,169],[97,146,164,168,170,175],[97,146,167,169,170,171,172,174,175,176,177,178,179,180,182],[97,146],[97,99,164,168,169,170,171],[97,99,146,164],[97,146,164,169,170,173,174,175],[97,132,146,164,166,181],[97,163,164,165],[97,146,164,166],[97,163,164,165,166,168,181,184],[97,164,166,168,181],[97,166]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},{"version":"42204f4543c2a8d92bdee756d5e3f09e2612497ad26b5c36a285d99d34efa377","signature":"d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f"},{"version":"18609e84384328c186664b8c5b407e379ee197a4bc40d0e985b5c8050ce29df7","signature":"ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26"},{"version":"714560fb0e2ff57d67dcb3337a40ed0d9acddd7bcfad0e80ca3f0da9537dadaf","signature":"577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851"},{"version":"217c6f6adcf5111e57a516f20bb0f3624f4a0c8c95b4dfd757b2c191439d3aa4","impliedFormat":1},{"version":"302d0816f71d30d6615895a696aab24cf074ac8e9d5b90021c9a4a29f4121d27","impliedFormat":1},{"version":"a68e0e4868a1f61702c5b91cc2b0437168acc49e318896a891368f52e0420781","impliedFormat":1},{"version":"eb57169d1ef4957f9322372942255786231714bfd3475dec56980d4075a99bb8","impliedFormat":1},{"version":"d13b4c54324181a93a23ce284b3a7a1a2148a35aecc95c562353e28a799cbeab","impliedFormat":1},{"version":"3ec9cc2c9621174a735593a03b48415ce4e0e4002a1fd5e56fffa029739561c5","impliedFormat":1},{"version":"a9b763da625de15e560fa1d58de51694c5cc45ac84f942bf85bd022b03806d9b","impliedFormat":1},{"version":"801d799959670d8a15b3dfc95d4b11dc2a0dbdb288c1de56404022ee45206302","impliedFormat":1},{"version":"dc1897f61ef7cd55f6e7572332ff23225661fa8814f9f2137655a724445dfcc9","impliedFormat":1},{"version":"af4a925b523e9c391ee4d4451cf658849e9d92e2c6fb63ac39024b6264916751","impliedFormat":1},{"version":"d0139e18847aa6b6e33b8b8fa43ca8c6fc24baa26cfc6b845078500d5810e392","impliedFormat":1},{"version":"4d22f9e46854d0e44f827c33ed9b7da2d407a4ef6dc962a53345b1f9d0c75b13","impliedFormat":1},{"version":"6c60775bbec04bff8661a7601d0fe26e696dbd1d5287ffd7cba68e8978b4cf4c","impliedFormat":1},{"version":"1185a5e4d82d7b64bd5438019fcd6eec765a64f0cc36c3af738c5ae317c7b957","impliedFormat":1},{"version":"bf4a94dcf6335c0bb4ab927fb56a646ea9ac57123b2677c2eb9841302dc3f1da","impliedFormat":1},{"version":"10175cdd19d960f50473c229d98659a5b2534a48bd86acf647e8f2878aa25d29","impliedFormat":1},{"version":"7721b07afcc035f4aff3af52d1a982d7fbd2525a9ab82b197b67d8eefc915de6","impliedFormat":1},{"version":"e943098dc1cc3574e0d903a7ac2d90d6863d243dea9295b4a8fd34223a8277e1","impliedFormat":1},{"version":"a142f5afe12787e110a2e7ff7ee4a02647c022ff0839e7c7ae0f4a41278ae1f1","signature":"44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef"},{"version":"7db764083fb927c05340e42cae128a68b53ce9d4bddfc7845e4f7c4d22772a9f","signature":"d5621f942ab05c1c3594b5b59070c2f44d411f01ba97eae6bd60cd99ab6be102"},{"version":"bdfd4a2c14afeeb21b587929fcf19c8f90ef4b3b659415724b1fcb4375b537b9","signature":"69af30b9df408f844bd30e26ade1ba783c7624bd505ecef61a7e178624ece0eb"},{"version":"2c0754ee9b1637e850da1e2fa4e7b98e7eb30fc2b10a84c42fe33d9302383038","signature":"2064567cac7c44696477d8faeb79ec714624c341bee71ea7237ea2ef2e26e8a4"},{"version":"ac48ec0028c69cd75134b79ca6636cd7ccff7d6f674062f2dbb9ce131b15260c","signature":"235f39f2ec81e985a2b53a9d91604316593cab5825e0871f41858d040a68e0ea"},{"version":"3ac0b6ea92d871267625ea34f72a3090a7638a1d01c466c0ba7666e63c54c586","signature":"9d4e2786d2e8c5c304e5f5f282f38deff75dddf26d89e53c1c4872a7f9a7ecbc"},{"version":"521f08c786cd4cdaab2da57ce3dd6454f47a8edc501f8ba36c9b6ce4e223b6a6","signature":"3dd51a4b01e4a63709253bf28547f961d6bc64df7b7ced76bc0771800446ecd4"},{"version":"6c8dfe4a5ac25365b0c5c0817051732acead3f788f3567815ec775029b1661d2","signature":"28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a"},{"version":"24f4573a7b128e7a5f50de724a02ab69b27df707cdcfe044e6df2cccd3afe7c9","signature":"36f2fc7f6b07a9966273bda82f2b0b450b42d3320a9edaf91730c333ad86e257"},{"version":"b67192c27290fe55623013054f6c0ff6a63311e1266467c2f675dc4d7aab93b8","signature":"07477fef265592fa976f17bca69f4d03c112e321357c49d17232b5b5e493caf5"},{"version":"7bb7ff36e4fae5f3f2eeb2d1e70b46fac0412da4e4b65efd28fc95e5ba622995","signature":"ddb01c2474a47c2411bde75e969c547fd52dd0de9d39837970a6ec5effea934f"},{"version":"7eab0819fe34344e8b7c1827df8fd1611f5fa67e545d73b0229b0e18075af508","signature":"995ad7257ddc7f156739058b64eeb7589ef7886ae4b6b769adffd5eca2cf0aa7"},{"version":"5327d23180a822f022eb490921a8773c42099f1316acf6be5235600e969c19cf","signature":"75a9c0d9c7fe1140420a459de28b333a69a4733654da7111da2a0f8f4cc6b25f"},{"version":"e983009f8ace928b08216908294b679b05ba261050e72803bfda43726b2219aa","signature":"5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7"},{"version":"16307e253df4bb417223e5814bcc5742d1b7d9b893bd72418b8cfe8e6f7ab474","signature":"abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018"},{"version":"cc74809c9fbebdf300941acce9a07ea6ff52bf91840e738014d4dc2645f153bb","signature":"f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c"},{"version":"38ccbb46155bf41c02e47d4bd2167b1a0f6b5429be49596da7e6b203cd7176eb","signature":"db505b070be7771c50bb80800e4a16333bea91619030d33e9d1b1d6d245fde72"},{"version":"3c106b0a8bab93d06df0fb9fb79a4814e9d333aca28138f2e8f053f9260cea38","signature":"d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93"},{"version":"23f824bd861a6cf696a4571ffeca7cd5130ff1b4d30ade235d6fed7fbc6fc78f","signature":"cefcb1f078d33a40c707d4a239ee518a595d7553b4205a4a23c1bf84a743a94e"},{"version":"5ab239682bfcdf7c0d429cfed2f0bd83489103ffab0e2be6b6f3014af19dc316","signature":"4f83143f730ad8fd66ec8f779b2f43399ed4b84aec6f5df5fdc4a2436739e934"},{"version":"4719b38ecf1f698d62ba291298047877c04dbc1848a27307a4edeaeee1bc66c7","signature":"830e8c15e2893c5864835fe97bad3fdc5d46bb9b72a66851365b8411347dda10"},{"version":"f2175ae864cb2550da788b15fc4a39aa398df0665466213d25371c5d7b685c21","signature":"b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9"},{"version":"26c1a7b48b53476c1dc0e107d0b0fe71b6148f4e320f660a0bfb7d20e67c1835","signature":"068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf"},{"version":"854f9b8c6d757b73f1c168038e3a5b24e2ca973d803c49ad43949447d4615f07","signature":"4285e8b8ec9bdea3ca2630c4d79f715587cc3262e5613fbd7bea8ffd32cc097c"},{"version":"03b57a8957f6cf8905df145665b4e64b8368c98e8b6802f8cff765ffc25e27c8","signature":"2b8a3fa14f4b24cbb3c2c783ae0805bc1a857cdf7d35308956f3660ef0229c3c"},{"version":"24189dadf4ca8b95ef97800d08ca7c98abdf1d6f0a1955fe66d94608fce724f8","signature":"f55ab5598602804a77bd7ff4f8442ceb29c6603120e1e6fe39b346dbcea9a438"},{"version":"f1172c2e3d40c9560d42e228cc14af529d8353de8df93caea82ce03fdffe4464","signature":"7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db"},{"version":"4e86b93241304e96d9fdc6554c7bf88dac95b8ea2484327a899a677a25d5e5ca","signature":"c15fea45b893c73bcad76ae565d59a0472ae0f74713ead9a9e7eb37085260c09"},{"version":"c71d509a443c45af8cd7bd84ea979bd5410677deaaf1983921949cb4cd952a05","signature":"344f7de9b0f6fa5ff42d99bac404c169596a2272a8b3d225beec056e4106bcb9"},{"version":"4815ef09b602fc55d4316ff4f04a7ead013f3827fcdd2436c3179a90ad9a45b9","signature":"ee2cc74d84f07861cccd51753c16296dfa24d6a19443262b4ec957bd451c46eb"},{"version":"9633cfd1413933ac2b54fc9959dc1591dc7b3d3b502b1fa3b3165407adb99002","signature":"cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e"},{"version":"52ba4ecb0b6a0c7250b7a10edf12ed75bafeb7ce812ae78255e3a149658dfe41","signature":"0fe3cc2e808353835af39798e6e169bbc1ce0cf473122316a019376a1d6d98cb"},{"version":"6069d1262128233eb04fb50264af01eb16258a8ba9a5bef9ebbaa8133459ec91","signature":"67b7d490a2cf3547f783c6f8e3019a6864f12cc657d17cf378146e7073cceb0c"},{"version":"b5f6738fc61eefd5acebabba48278250c0de84074f5c04a4c60414554d8f672b","signature":"6365c6701ad1cf8d99205387000a0324a573890107b2f475fd6a82174f0389c3"},{"version":"11fd46a411f0b66dd99a50a2274a73929d973614a5fa81bb9fb51aa6ee0cce92","signature":"d89fd83960c2343d5af55b3c174b5997272cd89af982d41bc21af8b8332cf149"},{"version":"79e9f560eae83744faa3e53154ee9bdb9f3941506eadd8d3a87935b2f90ccf4a","signature":"86a386c8741a08a24b2491c0d160bc2ee271b728c1f152d6705ffd69024679ee"},{"version":"10cf6b1e023bbb169c90ad7ff1c792552bdb73baf9f277ee1ca3e213b9b37452","signature":"49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3"},{"version":"1238f61c8db8e5ab8beaf5a9dbe5cad66661666e4e944fe92c38694c6a20cc1c","signature":"6f8692b9b0416b85506884f641a30a8f75b0b035c9948020a7117ca2faa6a840"},{"version":"b278c7dbac38a0c57ebcde6b848e7cd017a59f9ca770d9aaa4c83d6c09cf86ef","signature":"cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757"},{"version":"cb8bba022b800c1acb8ef8bfe465bfef7e43d22d06f20a8d6e7503aca0f4d570","signature":"ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669"},{"version":"69c39cdb2e91af538c7e6f54dd653864e0bc3eb765ba4f394d80f945eb1bfdcf","signature":"fd74286e0037339f88fdc437ede3c31139164faf238651e54abb805732d4b541"},{"version":"34b8960c9c9618b4742beb6198843f0e58ad8669864dac868507480ea6d8b10b","signature":"5f96841314e358366bcb3b3d07c8b8d924e90dcd00dcf2202900cbfaeefc1a03"},{"version":"db8a43eda6f42311a421d8839efe110a9436be9bc55eb5cd9ccd53c687b52537","signature":"216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d"},{"version":"94b5279df6c3abe97e185b85128e29c68da26025d99317deb539810f628a36ce","signature":"f50eafec22168e69b6138149fbee4eacb5dbd53fbc15f9daa37558705d1a6bc7"},{"version":"028144708663445c29ad9ca6be95694108a6d4decaff0709a9245977fef98e8e","signature":"ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3"},{"version":"21c4b66fbb8ad882f52c2825c45cb59ced1017b9bfc531fb8a0ef60d1240b882","signature":"faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7"},{"version":"fe66054b645111cf483c589411e2bd9e2c0ccbde0ba365e029c6c20653f02112","signature":"298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33"},{"version":"d615cba0a460f5568ce3473a1434f6ccf4511042824ce281682e499a95a676c8","signature":"1862daa6bc69b267a2b595149c5bced13ce2440d0d6625d291a5450d9d3118ae"},{"version":"4c3cbd29af3564f4aca3daaf5ca047f485b217af41f529815002a98933dab476","signature":"ed24498d7fe499efeb2a3f2df83a29cd3b8b83a982d01e7d73f4cc0166e3982b"},{"version":"0cb9b61e4d36bf870e79aada49bd42e797b928202f5350efc5d38c674a5dda1e","signature":"6687ad856daa2112d8a29e1eaa432b5f50a359c137d8fa103856cb082fa37d73"},{"version":"3cfad95bc4e3a7cae2da5cb4b5747145754f734c50aed196f681c08081f4e61a","signature":"93d15026bf4213d204b0ed4bd102a82945c519a716d51c245dca01d6ca7d0222"},{"version":"a440fc408fef832b41e8dd4988e1ab8d06c6d82a849c33efc9f59af0b8a35994","signature":"27c5013992e6c2d1a82395d90ac5877a70066f03f74b2a91d70e9eafa0666655"},{"version":"183c11473cd567bc10ae010c8db5e4205a91754bc0a3cb6db7dcdcd644d137b6","signature":"b1dff8567dd02ba98547471feb38597022193ca26b6ce853d28d2092b36669f6"},{"version":"b0740410649ef8daf5925d4bbac60c8f4f79a31c61e8ce02e5ad26c8c11705ad","signature":"264dc4b816ffdeabcb52d9698df80b809d3d616e1d394b9891f8163acdc69140"},{"version":"fa790fa82a01d9f729f941c5c80e4eec51314ce7afacfad53025970fe495d321","signature":"a324358754f94c05fa3bd4748c35928c38ffc911e454d4fc076c7aff6c428c15"},{"version":"76f792c697c5ac05595d1ce061ae0b1b98296a76a5535868071d622455425a7c","signature":"dca501d8eff2db8c8309ccb2667b3b70f6e80290b91081bd740fe933fadc0c03"},{"version":"89921042d23f5b525d2b269e3754f7fdccd12dccd4491363248c5e79bb88e02e","signature":"718f81461dec01a5272f4ccf5efb006306f28ccd8f70b3c49e0221b9db21fdbe"},{"version":"73f46861ae92cd4ccac31f5045c6b548952a844d84fcbf63499c1a59c986619f","signature":"f484e0e4fa693a32c3ec182f8cd0ad3994c5efdc44c5969fd8c236c00a772d30"},{"version":"1cb16dd6dabd3a510cf89485546a34d38bb885f34f981627e46fdf7cebc3948f","signature":"2e3bd3aa1d6f941426e608169489cb33633ef7fb0294677e0d3151ef6c8dc913"},{"version":"312605bae92cef4d14e1c11bd9d624a907302f2360c43764ccb63437b8eabce0","signature":"e6c6e5af757c1a353c031cbd0e917586fe9ee9767a80937c7763718431cefb17"},{"version":"8c1ccf55df4d01257496b438fa372bea784e018d9b7327bd1fbeb90ad1f0aaf9","signature":"edc33c8870895bd9b0255d99fc8213efeddc0acf0031b7fa6cd8cc372f446c46"},{"version":"05874ba226e10081ca4c853d185e1f88701abdc601bd661f00338a730805824b","signature":"29ffac17044f96c464965f99ecb812783d5b524d6187cc9cc55b784abdf95fb2"},{"version":"59d217109d70b75a91c57fee208242e56bb535687f2092c373885aae511fc42e","signature":"c742b17e5e316108f45f793bdfe9e074092b12cb6e8d8a1683f6c62af6b0465c"},{"version":"aff24855ea3fba97546860cda5e8d435e40a5d2f02b93342dcc7d8b694131c05","signature":"ec73711a5e3798a36346e15ad1c2c3521a5e3e1515436835fd37986c8cd3c7fe"},{"version":"e89f8cb160b8a1855b3bd6ec67d8443f5174b1359af01e9da73ef7e2d79f39db","signature":"5479876a6d0549f1536798428c4dcd46e8d7a5e5dcfb7d5b48da5aa237b8160f"},{"version":"36bd279cafc26def48a052ec89b8fc1676e1d055c73c8c9fb6e736883dad1ff8","signature":"9d34e36b56059d024baeb63a17467d01f2327d9568af58a7bbb168726a0b0503"},{"version":"60c5ea3628c3e2d99052a4f4de39019d4b316e40b970f722728ec678b8be1257","signature":"a438a2ecbecc0d1939a52439ca0150297820fc9d68bd9bddb6af5e9db7ab9457"},"40b6395de64bf52ad2043d18ae16bcca9b437a874dcb4c1c6829448b260a69ad"],"root":[[98,100],[119,186]],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":true,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[101,1],[107,2],[113,3],[105,3],[112,3],[110,2],[111,4],[106,5],[109,4],[108,5],[115,4],[114,1],[118,6],[103,4],[116,4],[102,7],[97,8],[88,9],[90,10],[94,11],[91,12],[92,13],[87,14],[89,15],[43,16],[82,17],[73,18],[58,19],[55,18],[80,20],[56,18],[78,21],[57,22],[83,23],[59,24],[66,22],[61,18],[60,25],[75,22],[81,26],[79,22],[62,18],[70,22],[71,22],[63,25],[69,22],[64,25],[67,22],[68,18],[76,22],[65,18],[72,22],[74,22],[46,27],[53,28],[85,29],[54,30],[95,31],[44,27],[45,32],[50,33],[51,34],[49,35],[40,36],[96,37],[98,38],[100,38],[121,39],[124,40],[120,41],[125,42],[119,43],[126,43],[131,44],[127,45],[122,41],[129,46],[128,47],[123,48],[130,38],[132,38],[99,38],[133,38],[139,49],[135,50],[138,51],[137,52],[140,38],[143,53],[141,43],[144,54],[142,55],[148,56],[145,38],[147,57],[186,58],[149,38],[150,43],[151,59],[156,60],[152,61],[154,62],[153,63],[155,63],[134,38],[136,38],[159,64],[157,38],[162,65],[160,38],[161,38],[158,43],[167,66],[177,67],[174,68],[171,69],[146,43],[178,70],[179,71],[175,72],[180,73],[183,74],[169,75],[172,76],[173,38],[170,77],[176,78],[182,79],[166,80],[181,81],[163,38],[164,38],[185,82],[165,43],[184,83],[168,84]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
package/dist/culture/index.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ export { parseNaturalDate } from './natural-date.js';
|
|
|
9
9
|
export { formatNumber, formatPlainNumber, type G9NumberFormatOptions, type G9NumberSymbols, getNumberSymbols, parseNumber, } from './numbers.js';
|
|
10
10
|
export { formatAgo, formatAgoWithTime, type G9Now, type G9RelativeTimeOptions, type G9RelativeTimeParts, G9RelativeTimeUnit, type G9RelativeTimeWithClockOptions, getRelativeTimeParts, } from './relative-time.js';
|
|
11
11
|
export { createStrings, formatTemplate, type G9PartialStringTable, G9StringKey, type G9StringProvider, type G9Strings, type G9StringsOptions, type G9StringTable, g9ArabicStrings, g9BuiltInStringTables, g9EnglishStrings, g9PersianStrings, g9StringKeys, g9StringResourceName, } from './strings.js';
|
|
12
|
-
export { bytesToBase64, formatCompact, formatSignedPercent, formatWeight, type G9TypedNumber, groupWhileTyping, isolate, isolateLtr, isolateRtl, matchesSearch, normalizePhone, normalizeText, searchKey, } from './text.js';
|
|
12
|
+
export { bytesToBase64, formatCompact, formatCountOf, formatSignedPercent, formatWeight, type G9TypedNumber, groupWhileTyping, isolate, isolateLtr, isolateRtl, matchesSearch, normalizePhone, normalizeText, searchKey, } from './text.js';
|
|
13
13
|
export { type G9WordKey, type G9WordTable, g9ArabicWords, g9EnglishWords, g9PersianWords, g9SizeUnits, g9Word, } from './words.js';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/culture/index.ts"],"names":[],"mappings":"AAAA,OA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,YAAY,EACZ,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,gBAAgB,EAChB,WAAW,GACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,KAAK,KAAK,EACV,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,kBAAkB,EAClB,KAAK,8BAA8B,EACnC,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,aAAa,EACb,cAAc,EACd,KAAK,oBAAoB,EACzB,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,GACrB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,KAAK,aAAa,EAClB,gBAAgB,EAChB,OAAO,EACP,UAAU,EACV,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,SAAS,GACV,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,MAAM,GACP,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/culture/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACL,OAAO,EACP,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,YAAY,EACZ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AAa,EACb,cAAc,EACd,KAAK,oBAAoB,EACzB,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,GACrB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,aAAa,EACb,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,KAAK,aAAa,EAClB,gBAAgB,EAChB,OAAO,EACP,UAAU,EACV,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,SAAS,GACV,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,MAAM,GACP,MAAM,SAAS,CAAC"}
|
package/dist/culture/index.js
CHANGED
|
@@ -9,5 +9,5 @@ export { parseNaturalDate } from "./natural-date.js";
|
|
|
9
9
|
export { formatNumber, formatPlainNumber, getNumberSymbols, parseNumber } from "./numbers.js";
|
|
10
10
|
export { G9RelativeTimeUnit, formatAgo, formatAgoWithTime, getRelativeTimeParts } from "./relative-time.js";
|
|
11
11
|
export { G9StringKey, createStrings, formatTemplate, g9ArabicStrings, g9BuiltInStringTables, g9EnglishStrings, g9PersianStrings, g9StringKeys, g9StringResourceName } from "./strings.js";
|
|
12
|
-
export { bytesToBase64, formatCompact, formatSignedPercent, formatWeight, groupWhileTyping, isolate, isolateLtr, isolateRtl, matchesSearch, normalizePhone, normalizeText, searchKey } from "./text.js";
|
|
12
|
+
export { bytesToBase64, formatCompact, formatCountOf, formatSignedPercent, formatWeight, groupWhileTyping, isolate, isolateLtr, isolateRtl, matchesSearch, normalizePhone, normalizeText, searchKey } from "./text.js";
|
|
13
13
|
export { g9ArabicWords, g9EnglishWords, g9PersianWords, g9SizeUnits, g9Word } from "./words.js";
|
package/dist/culture/text.d.ts
CHANGED
|
@@ -55,6 +55,17 @@ export declare const isolateLtr: (text: string) => string;
|
|
|
55
55
|
export declare const isolateRtl: (text: string) => string;
|
|
56
56
|
/** First-strong isolate: the direction of the text's first letter. */
|
|
57
57
|
export declare const isolate: (text: string) => string;
|
|
58
|
+
/**
|
|
59
|
+
* A count against its total — a field's `0 / 4000`, a pager's `5–8 / 23`, a gallery's `3 / 12` — in the culture's
|
|
60
|
+
* digits, inside a direction isolate so the text around it cannot reorder the two numbers (the neutral `/` and spaces
|
|
61
|
+
* have no direction of their own). `direction` is the order on screen: `'ltr'` (default) draws the count at the left,
|
|
62
|
+
* «۰ / ۴۰۰۰»; `'rtl'` draws it at the right, «۴۰۰۰ / ۰» (read right to left: the count first, as MAUI's RTL label did).
|
|
63
|
+
* Latin digits stay `0 / 4000`. Parts already in native digits (a formatted number, a range) pass through.
|
|
64
|
+
*/
|
|
65
|
+
export declare function formatCountOf(current: number | string, total: number | string, numberingSystem?: G9NumberingSystem, options?: {
|
|
66
|
+
readonly direction?: 'ltr' | 'rtl';
|
|
67
|
+
readonly separator?: string;
|
|
68
|
+
}): string;
|
|
58
69
|
/**
|
|
59
70
|
* A change as a signed percentage, always with its sign and isolated so RTL text never moves the sign to the wrong end
|
|
60
71
|
* (Riskara `pct`, SAC `Delta`): `0.125` → `+12.5%`; `formatSignedPercent(-3, { fromFraction: false })` → `−3%`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/culture/text.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,iBAAiB,EAAoC,MAAM,UAAU,CAAC;AAepF,sHAAsH;AACtH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAItE;AAED,qHAAqH;AACrH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAElE;AAED,mHAAmH;AACnH,w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r = (text)=>`${text}`;
|
|
182
182
|
const isolateRtl = (text)=>`${text}`;
|
|
183
183
|
const isolate = (text)=>`${text}`;
|
|
184
|
+
function formatCountOf(current, total, numberingSystem = 'latin', options = {}) {
|
|
185
|
+
var _options_separator;
|
|
186
|
+
const text = toNativeDigits(`${current}${null != (_options_separator = options.separator) ? _options_separator : ' / '}${total}`, numberingSystem);
|
|
187
|
+
return 'rtl' === options.direction ? isolateRtl(text) : isolateLtr(text);
|
|
188
|
+
}
|
|
184
189
|
function formatSignedPercent(value, options = {}) {
|
|
185
190
|
var _options_decimals, _options_numberingSystem;
|
|
186
191
|
const v = false === options.fromFraction ? value : 100 * value;
|
|
@@ -209,6 +214,6 @@ function normalizePhone(input, country = {
|
|
|
209
214
|
if (digits.startsWith(country.code) && digits.length !== country.code.length + country.nationalLength) return null;
|
|
210
215
|
return digits.length >= 8 && digits.length <= 15 ? `+${digits}` : null;
|
|
211
216
|
}
|
|
212
|
-
export { bytesToBase64, formatCompact, formatSignedPercent, formatWeight, groupWhileTyping, isolate, isolateLtr, isolateRtl, matchesSearch, normalizePhone, normalizeText, searchKey };
|
|
217
|
+
export { bytesToBase64, formatCompact, formatCountOf, formatSignedPercent, formatWeight, groupWhileTyping, isolate, isolateLtr, isolateRtl, matchesSearch, normalizePhone, normalizeText, searchKey };
|
|
213
218
|
|
|
214
219
|
//# sourceMappingURL=text.js.map
|
package/dist/culture/text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"culture/text.js","sources":["../../src/culture/text.ts"],"sourcesContent":["// Text helpers every app re-wrote (SAC core/text.ts, Riskara core/text.ts, ShopManager core/text.ts, G9Hub intl): search\n// keys that match Persian however it was typed, numbers grouped while the person types (caret kept), compact money,\n// signed percentages that survive right-to-left text, bidi isolation and phone numbers.\nimport { type G9NumberingSystem, normalizeToAscii, toNativeDigits } from './digits';\nimport { formatNumber, getNumberSymbols } from './numbers';\n\n/** Arabic letter forms typed on Arabic keyboards → the Persian forms (ي ك ى ة ۀ), plus Arabic-Indic digits → Persian. */\nconst LETTERS: ReadonlyArray<readonly [RegExp, string]> = [\n [/[يى]/g, 'ی'],\n [/ك/g, 'ک'],\n [/ۀ/g, 'ه'],\n [/ة/g, 'ه'],\n [/[أإٱآ]/g, 'ا'],\n [/ؤ/g, 'و'],\n];\n// Harakat, tatweel, and the ZWNJ / bidi marks that make identical-looking words differ.\nconst MARKS = /[ً-ٰٟـ---]/g;\n\n/** Unifies how Persian is written: Arabic letter forms → Persian, digits → ASCII, marks removed, spaces collapsed. */\nexport function normalizeText(input: string | null | undefined): string {\n let s = normalizeToAscii(input ?? '');\n for (const [re, to] of LETTERS) s = s.replace(re, to);\n return s.replace(MARKS, '').replace(/\\s+/g, ' ').trim();\n}\n\n/** A key to compare for search: {@link normalizeText}, lower-cased, ZWNJ-split words joined (`میروم` = `میروم`). */\nexport function searchKey(input: string | null | undefined): string {\n return normalizeText(input).toLowerCase();\n}\n\n/** True when every word of `query` appears in `text` (any order, any spelling variant `normalizeText` unifies). */\nexport function matchesSearch(text: string | null | undefined, query: string | null | undefined): boolean {\n const words = searchKey(query).split(' ').filter(Boolean);\n if (words.length === 0) return true;\n const hay = searchKey(text);\n return words.every((w) => hay.includes(w));\n}\n\n/** The result of {@link groupWhileTyping}. */\nexport interface G9TypedNumber {\n /** The text to show (grouped, in the requested digits). */\n readonly text: string;\n /** Where the caret goes in `text`. */\n readonly caret: number;\n /** The value, or null when the text is empty or only a sign. */\n readonly value: number | null;\n}\n\n/**\n * Regroups a number while it is typed and keeps the caret after the same digit (SAC `groupTyped`): typing `1234567`\n * shows `1,234,567` (or `۱٬۲۳۴٬۵۶۷`), and the caret does not jump to the end when a digit is inserted in the middle.\n * Accepts any digits and separators the person types; `decimals` 0 refuses a decimal point.\n */\nexport function groupWhileTyping(\n raw: string,\n caret: number = raw.length,\n options: {\n readonly numberingSystem?: G9NumberingSystem;\n readonly decimals?: number;\n readonly allowNegative?: boolean;\n /** Thousands separators while typing. Default true; false for identifiers (a port, a code; 2.5.8). */\n readonly grouping?: boolean;\n } = {},\n): G9TypedNumber {\n const system = options.numberingSystem ?? 'latin';\n const sym = getNumberSymbols(system);\n const decimals = options.decimals ?? 0;\n // how many significant characters (digits, the decimal point, a minus) stand before the caret\n const ascii = normalizeToAscii(raw);\n const isDecimal = (ch: string) => ch === '.' || ch === '٫' || ch === '/' || (ch === ',' && false);\n let before = 0;\n let digits = '';\n let point = false;\n let negative = false;\n for (let i = 0; i < ascii.length; i++) {\n const ch = ascii[i] as string;\n let kept = false;\n if (ch >= '0' && ch <= '9') {\n digits += ch;\n kept = true;\n } else if (isDecimal(ch) && decimals > 0 && !point) {\n digits += '.';\n point = true;\n kept = true;\n } else if ((ch === '-' || ch === '−') && options.allowNegative && digits.length === 0 && !negative) {\n negative = true;\n kept = true;\n }\n if (kept && i < caret) before++;\n }\n let [int = '', frac] = digits.split('.');\n const grouping = options.grouping !== false;\n // an identifier keeps what was typed (its leading zeros too); an amount drops them\n if (grouping) int = int.replace(/^0+(?=\\d)/, '');\n if (frac !== undefined) frac = frac.slice(0, decimals);\n const grouped = grouping ? int.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',') : int;\n const asciiText = `${negative ? '-' : ''}${grouped}${point ? `.${frac ?? ''}` : ''}`;\n // place the caret after the same number of significant characters\n let pos = 0;\n let seen = 0;\n while (pos < asciiText.length && seen < before) {\n if (asciiText[pos] !== ',') seen++;\n pos++;\n }\n const value = int === '' && !frac ? null : Number(`${negative ? '-' : ''}${int || '0'}${frac ? `.${frac}` : ''}`);\n const text =\n system === 'latin'\n ? asciiText\n : toNativeDigits(asciiText.replace(/,/g, sym.group).replace('.', sym.decimal).replace('-', sym.minus), system);\n // the native minus may be two characters (a bidi mark + the sign): shift the caret by the extra length\n const extra = negative && system !== 'latin' ? sym.minus.length - 1 : 0;\n return { text, caret: pos + (pos > 0 ? extra : 0), value: Number.isFinite(value as number) ? value : null };\n}\n\nconst FA_UNITS: ReadonlyArray<readonly [number, string]> = [\n [1e12, 'هزار میلیارد'],\n [1e9, 'میلیارد'],\n [1e6, 'میلیون'],\n [1e3, 'هزار'],\n];\nconst EN_UNITS: ReadonlyArray<readonly [number, string]> = [\n [1e12, 'T'],\n [1e9, 'B'],\n [1e6, 'M'],\n [1e3, 'K'],\n];\n\n/**\n * A large amount in words people say (Riskara `toman({short})`, SAC `price`): `12_500_000` → `۱۲٫۵ میلیون` (fa) or\n * `12.5M` (en). One fraction digit, dropped when it is zero; amounts under a thousand stay whole.\n */\nexport function formatCompact(\n value: number,\n options: { readonly language?: string; readonly numberingSystem?: G9NumberingSystem; readonly unit?: string } = {},\n): string {\n const fa = (options.language ?? 'en').startsWith('fa');\n const system = options.numberingSystem ?? (fa ? 'persian' : 'latin');\n const abs = Math.abs(value);\n const units = fa ? FA_UNITS : EN_UNITS;\n const hit = units.find(([n]) => abs >= n);\n const n = hit ? value / hit[0] : value;\n const body = formatNumber(n, { numberingSystem: system, maximumFractionDigits: hit ? 1 : 0, useGrouping: true });\n const unit = hit ? (fa ? ` ${hit[1]}` : hit[1]) : '';\n return `${body}${unit}${options.unit ? ` ${options.unit}` : ''}`;\n}\n\n/**\n * A weighed quantity (ShopManager `QtyText` / `kg`): kilograms to one decimal, dropped when whole, grouped, in the\n * culture's digits — `2.5` → `۲٫۵ کیلوگرم` (fa, long) / `۲٫۵ کیلو` (fa, short) / `2.5 kg` (en). Under a kilogram,\n * `grams: true` writes grams instead (`0.35` → `۳۵۰ گرم` / `350 g`).\n */\nexport function formatWeight(\n kilograms: number,\n options: {\n readonly language?: string;\n readonly numberingSystem?: G9NumberingSystem;\n readonly short?: boolean;\n readonly grams?: boolean;\n readonly decimals?: number;\n } = {},\n): string {\n const fa = (options.language ?? 'en').startsWith('fa');\n const system = options.numberingSystem ?? (fa ? 'persian' : 'latin');\n if (options.grams && Math.abs(kilograms) < 1 && kilograms !== 0) {\n const g = formatNumber(Math.round(kilograms * 1000), { numberingSystem: system, maximumFractionDigits: 0 });\n return fa ? `${g} گرم` : `${g} g`;\n }\n const body = formatNumber(kilograms, { numberingSystem: system, maximumFractionDigits: options.decimals ?? 1 });\n return fa ? `${body} ${options.short ? 'کیلو' : 'کیلوگرم'}` : `${body} kg`;\n}\n\nconst B64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\n/** Standard base64 of bytes (PrimJS has neither `btoa` nor `Buffer`): data URIs of generated images. */\nexport function bytesToBase64(bytes: Uint8Array): string {\n const parts: string[] = [];\n let line = '';\n for (let i = 0; i < bytes.length; i += 3) {\n const a = bytes[i] as number;\n const b = i + 1 < bytes.length ? (bytes[i + 1] as number) : 0;\n const c = i + 2 < bytes.length ? (bytes[i + 2] as number) : 0;\n const n = (a << 16) | (b << 8) | c;\n line += B64.charAt((n >> 18) & 63) + B64.charAt((n >> 12) & 63);\n line += i + 1 < bytes.length ? B64.charAt((n >> 6) & 63) : '=';\n line += i + 2 < bytes.length ? B64.charAt(n & 63) : '=';\n // join in pieces: one string grown by += for 40 KB is slow on an interpreter\n if (line.length >= 4096) {\n parts.push(line);\n line = '';\n }\n }\n parts.push(line);\n return parts.join('');\n}\n\n/** Left-to-right isolate (FSI…PDI would guess; LRI forces): keeps `+12.5%` and phone numbers whole inside RTL text. */\nexport const isolateLtr = (text: string): string => `${text}`;\n/** Right-to-left isolate. */\nexport const isolateRtl = (text: string): string => `${text}`;\n/** First-strong isolate: the direction of the text's first letter. */\nexport const isolate = (text: string): string => `${text}`;\n\n/**\n * A change as a signed percentage, always with its sign and isolated so RTL text never moves the sign to the wrong end\n * (Riskara `pct`, SAC `Delta`): `0.125` → `+12.5%`; `formatSignedPercent(-3, { fromFraction: false })` → `−3%`.\n */\nexport function formatSignedPercent(\n value: number,\n options: {\n readonly decimals?: number;\n readonly numberingSystem?: G9NumberingSystem;\n readonly fromFraction?: boolean;\n } = {},\n): string {\n const v = options.fromFraction === false ? value : value * 100;\n const decimals = options.decimals ?? 1;\n const rounded = Number(v.toFixed(decimals));\n const sign = rounded > 0 ? '+' : rounded < 0 ? '−' : '';\n const body = formatNumber(Math.abs(rounded), {\n numberingSystem: options.numberingSystem ?? 'latin',\n maximumFractionDigits: decimals,\n useGrouping: true,\n });\n const percent = options.numberingSystem && options.numberingSystem !== 'latin' ? '٪' : '%';\n return isolateLtr(`${sign}${body}${percent}`);\n}\n\n/**\n * A phone number in E.164 (`+989121234567`), or null. Accepts any digits, spaces, dashes, a leading 0, 00 or +, and the\n * national form; `country` gives the calling code for national numbers (default Iran, 98).\n */\nexport function normalizePhone(\n input: string | null | undefined,\n country: { readonly code: string; readonly nationalLength: number } = { code: '98', nationalLength: 10 },\n): string | null {\n const ascii = normalizeToAscii(input ?? '').replace(/[\\s\\-().]/g, '');\n if (!/^\\+?\\d+$/.test(ascii)) return null;\n let digits = ascii.startsWith('+') ? ascii.slice(1) : ascii.startsWith('00') ? ascii.slice(2) : ascii;\n if (!ascii.startsWith('+') && !ascii.startsWith('00')) {\n if (digits.startsWith('0')) digits = digits.slice(1);\n if (digits.length === country.nationalLength) digits = country.code + digits;\n }\n if (digits.startsWith(country.code) && digits.length !== country.code.length + country.nationalLength) return null;\n return digits.length >= 8 && digits.length <= 15 ? `+${digits}` : null;\n}\n"],"names":["LETTERS","MARKS","normalizeText","input","s","normalizeToAscii","re","to","searchKey","matchesSearch","text","query","words","Boolean","hay","w","groupWhileTyping","raw","caret","options","_options_numberingSystem","_options_decimals","system","sym","getNumberSymbols","decimals","ascii","isDecimal","ch","before","digits","point","negative","i","kept","int","frac","grouping","undefined","grouped","asciiText","pos","seen","value","Number","toNativeDigits","extra","FA_UNITS","EN_UNITS","formatCompact","_options_language","fa","abs","Math","units","hit","n","body","formatNumber","unit","formatWeight","kilograms","g","B64","bytesToBase64","bytes","parts","line","a","b","c","isolateLtr","isolateRtl","isolate","formatSignedPercent","v","rounded","sign","percent","normalizePhone","country"],"mappings":";;AAOA,MAAMA,UAAoD;IACxD;QAAC;QAAS;KAAI;IAC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BAAAA,QAAQ,eAAe,AAAD,IAAtBA,2BAA2B;QAC5C,uBAAuBK;QACvB,aAAa;IACf;IACA,MAAMqD,UAAU3D,QAAQ,eAAe,IAAIA,AAA4B,YAA5BA,QAAQ,eAAe,GAAe,MAAM;IACvF,OAAOoD,WAAW,GAAGM,OAAOpB,OAAOqB,SAAS;AAC9C;AAMO,SAASC,eACd5E,KAAgC,EAChC6E,UAAsE;IAAE,MAAM;IAAM,gBAAgB;AAAG,CAAC;IAExG,MAAMtD,QAAQrB,iBAAiBF,QAAAA,QAAAA,QAAS,IAAI,OAAO,CAAC,cAAc;IAClE,IAAI,CAAC,WAAW,IAAI,CAACuB,QAAQ,OAAO;IACpC,IAAII,SAASJ,MAAM,UAAU,CAAC,OAAOA,MAAM,KAAK,CAAC,KAAKA,MAAM,UAAU,CAAC,QAAQA,MAAM,KAAK,CAAC,KAAKA;IAChG,IAAI,CAACA,MAAM,UAAU,CAAC,QAAQ,CAACA,MAAM,UAAU,CAAC,OAAO;QACrD,IAAII,OAAO,UAAU,CAAC,MAAMA,SAASA,OAAO,KAAK,CAAC;QAClD,IAAIA,OAAO,MAAM,KAAKkD,QAAQ,cAAc,EAAElD,SAASkD,QAAQ,IAAI,GAAGlD;IACxE;IACA,IAAIA,OAAO,UAAU,CAACkD,QAAQ,IAAI,KAAKlD,OAAO,MAAM,KAAKkD,QAAQ,IAAI,CAAC,MAAM,GAAGA,QAAQ,cAAc,EAAE,OAAO;IAC9G,OAAOlD,OAAO,MAAM,IAAI,KAAKA,OAAO,MAAM,IAAI,KAAK,CAAC,CAAC,EAAEA,QAAQ,GAAG;AACpE"}
|
|
1
|
+
{"version":3,"file":"culture/text.js","sources":["../../src/culture/text.ts"],"sourcesContent":["// Text helpers every app re-wrote (SAC core/text.ts, Riskara core/text.ts, ShopManager core/text.ts, G9Hub intl): search\n// keys that match Persian however it was typed, numbers grouped while the person types (caret kept), compact money,\n// signed percentages that survive right-to-left text, bidi isolation and phone numbers.\nimport { type G9NumberingSystem, normalizeToAscii, toNativeDigits } from './digits';\nimport { formatNumber, getNumberSymbols } from './numbers';\n\n/** Arabic letter forms typed on Arabic keyboards → the Persian forms (ي ك ى ة ۀ), plus Arabic-Indic digits → Persian. */\nconst LETTERS: ReadonlyArray<readonly [RegExp, string]> = [\n [/[يى]/g, 'ی'],\n [/ك/g, 'ک'],\n [/ۀ/g, 'ه'],\n [/ة/g, 'ه'],\n [/[أإٱآ]/g, 'ا'],\n [/ؤ/g, 'و'],\n];\n// Harakat, tatweel, and the ZWNJ / bidi marks that make identical-looking words differ.\nconst MARKS = /[ً-ٰٟـ---]/g;\n\n/** Unifies how Persian is written: Arabic letter forms → Persian, digits → ASCII, marks removed, spaces collapsed. */\nexport function normalizeText(input: string | null | undefined): string {\n let s = normalizeToAscii(input ?? '');\n for (const [re, to] of LETTERS) s = s.replace(re, to);\n return s.replace(MARKS, '').replace(/\\s+/g, ' ').trim();\n}\n\n/** A key to compare for search: {@link normalizeText}, lower-cased, ZWNJ-split words joined (`میروم` = `میروم`). */\nexport function searchKey(input: string | null | undefined): string {\n return normalizeText(input).toLowerCase();\n}\n\n/** True when every word of `query` appears in `text` (any order, any spelling variant `normalizeText` unifies). */\nexport function matchesSearch(text: string | null | undefined, query: string | null | undefined): boolean {\n const words = searchKey(query).split(' ').filter(Boolean);\n if (words.length === 0) return true;\n const hay = searchKey(text);\n return words.every((w) => hay.includes(w));\n}\n\n/** The result of {@link groupWhileTyping}. */\nexport interface G9TypedNumber {\n /** The text to show (grouped, in the requested digits). */\n readonly text: string;\n /** Where the caret goes in `text`. */\n readonly caret: number;\n /** The value, or null when the text is empty or only a sign. */\n readonly value: number | null;\n}\n\n/**\n * Regroups a number while it is typed and keeps the caret after the same digit (SAC `groupTyped`): typing `1234567`\n * shows `1,234,567` (or `۱٬۲۳۴٬۵۶۷`), and the caret does not jump to the end when a digit is inserted in the middle.\n * Accepts any digits and separators the person types; `decimals` 0 refuses a decimal point.\n */\nexport function groupWhileTyping(\n raw: string,\n caret: number = raw.length,\n options: {\n readonly numberingSystem?: G9NumberingSystem;\n readonly decimals?: number;\n readonly allowNegative?: boolean;\n /** Thousands separators while typing. Default true; false for identifiers (a port, a code; 2.5.8). */\n readonly grouping?: boolean;\n } = {},\n): G9TypedNumber {\n const system = options.numberingSystem ?? 'latin';\n const sym = getNumberSymbols(system);\n const decimals = options.decimals ?? 0;\n // how many significant characters (digits, the decimal point, a minus) stand before the caret\n const ascii = normalizeToAscii(raw);\n const isDecimal = (ch: string) => ch === '.' || ch === '٫' || ch === '/' || (ch === ',' && false);\n let before = 0;\n let digits = '';\n let point = false;\n let negative = false;\n for (let i = 0; i < ascii.length; i++) {\n const ch = ascii[i] as string;\n let kept = false;\n if (ch >= '0' && ch <= '9') {\n digits += ch;\n kept = true;\n } else if (isDecimal(ch) && decimals > 0 && !point) {\n digits += '.';\n point = true;\n kept = true;\n } else if ((ch === '-' || ch === '−') && options.allowNegative && digits.length === 0 && !negative) {\n negative = true;\n kept = true;\n }\n if (kept && i < caret) before++;\n }\n let [int = '', frac] = digits.split('.');\n const grouping = options.grouping !== false;\n // an identifier keeps what was typed (its leading zeros too); an amount drops them\n if (grouping) int = int.replace(/^0+(?=\\d)/, '');\n if (frac !== undefined) frac = frac.slice(0, decimals);\n const grouped = grouping ? int.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',') : int;\n const asciiText = `${negative ? '-' : ''}${grouped}${point ? `.${frac ?? ''}` : ''}`;\n // place the caret after the same number of significant characters\n let pos = 0;\n let seen = 0;\n while (pos < asciiText.length && seen < before) {\n if (asciiText[pos] !== ',') seen++;\n pos++;\n }\n const value = int === '' && !frac ? null : Number(`${negative ? '-' : ''}${int || '0'}${frac ? `.${frac}` : ''}`);\n const text =\n system === 'latin'\n ? asciiText\n : toNativeDigits(asciiText.replace(/,/g, sym.group).replace('.', sym.decimal).replace('-', sym.minus), system);\n // the native minus may be two characters (a bidi mark + the sign): shift the caret by the extra length\n const extra = negative && system !== 'latin' ? sym.minus.length - 1 : 0;\n return { text, caret: pos + (pos > 0 ? extra : 0), value: Number.isFinite(value as number) ? value : null };\n}\n\nconst FA_UNITS: ReadonlyArray<readonly [number, string]> = [\n [1e12, 'هزار میلیارد'],\n [1e9, 'میلیارد'],\n [1e6, 'میلیون'],\n [1e3, 'هزار'],\n];\nconst EN_UNITS: ReadonlyArray<readonly [number, string]> = [\n [1e12, 'T'],\n [1e9, 'B'],\n [1e6, 'M'],\n [1e3, 'K'],\n];\n\n/**\n * A large amount in words people say (Riskara `toman({short})`, SAC `price`): `12_500_000` → `۱۲٫۵ میلیون` (fa) or\n * `12.5M` (en). One fraction digit, dropped when it is zero; amounts under a thousand stay whole.\n */\nexport function formatCompact(\n value: number,\n options: { readonly language?: string; readonly numberingSystem?: G9NumberingSystem; readonly unit?: string } = {},\n): string {\n const fa = (options.language ?? 'en').startsWith('fa');\n const system = options.numberingSystem ?? (fa ? 'persian' : 'latin');\n const abs = Math.abs(value);\n const units = fa ? FA_UNITS : EN_UNITS;\n const hit = units.find(([n]) => abs >= n);\n const n = hit ? value / hit[0] : value;\n const body = formatNumber(n, { numberingSystem: system, maximumFractionDigits: hit ? 1 : 0, useGrouping: true });\n const unit = hit ? (fa ? ` ${hit[1]}` : hit[1]) : '';\n return `${body}${unit}${options.unit ? ` ${options.unit}` : ''}`;\n}\n\n/**\n * A weighed quantity (ShopManager `QtyText` / `kg`): kilograms to one decimal, dropped when whole, grouped, in the\n * culture's digits — `2.5` → `۲٫۵ کیلوگرم` (fa, long) / `۲٫۵ کیلو` (fa, short) / `2.5 kg` (en). Under a kilogram,\n * `grams: true` writes grams instead (`0.35` → `۳۵۰ گرم` / `350 g`).\n */\nexport function formatWeight(\n kilograms: number,\n options: {\n readonly language?: string;\n readonly numberingSystem?: G9NumberingSystem;\n readonly short?: boolean;\n readonly grams?: boolean;\n readonly decimals?: number;\n } = {},\n): string {\n const fa = (options.language ?? 'en').startsWith('fa');\n const system = options.numberingSystem ?? (fa ? 'persian' : 'latin');\n if (options.grams && Math.abs(kilograms) < 1 && kilograms !== 0) {\n const g = formatNumber(Math.round(kilograms * 1000), { numberingSystem: system, maximumFractionDigits: 0 });\n return fa ? `${g} گرم` : `${g} g`;\n }\n const body = formatNumber(kilograms, { numberingSystem: system, maximumFractionDigits: options.decimals ?? 1 });\n return fa ? `${body} ${options.short ? 'کیلو' : 'کیلوگرم'}` : `${body} kg`;\n}\n\nconst B64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\n/** Standard base64 of bytes (PrimJS has neither `btoa` nor `Buffer`): data URIs of generated images. */\nexport function bytesToBase64(bytes: Uint8Array): string {\n const parts: string[] = [];\n let line = '';\n for (let i = 0; i < bytes.length; i += 3) {\n const a = bytes[i] as number;\n const b = i + 1 < bytes.length ? (bytes[i + 1] as number) : 0;\n const c = i + 2 < bytes.length ? (bytes[i + 2] as number) : 0;\n const n = (a << 16) | (b << 8) | c;\n line += B64.charAt((n >> 18) & 63) + B64.charAt((n >> 12) & 63);\n line += i + 1 < bytes.length ? B64.charAt((n >> 6) & 63) : '=';\n line += i + 2 < bytes.length ? B64.charAt(n & 63) : '=';\n // join in pieces: one string grown by += for 40 KB is slow on an interpreter\n if (line.length >= 4096) {\n parts.push(line);\n line = '';\n }\n }\n parts.push(line);\n return parts.join('');\n}\n\n/** Left-to-right isolate (FSI…PDI would guess; LRI forces): keeps `+12.5%` and phone numbers whole inside RTL text. */\nexport const isolateLtr = (text: string): string => `${text}`;\n/** Right-to-left isolate. */\nexport const isolateRtl = (text: string): string => `${text}`;\n/** First-strong isolate: the direction of the text's first letter. */\nexport const isolate = (text: string): string => `${text}`;\n\n/**\n * A count against its total — a field's `0 / 4000`, a pager's `5–8 / 23`, a gallery's `3 / 12` — in the culture's\n * digits, inside a direction isolate so the text around it cannot reorder the two numbers (the neutral `/` and spaces\n * have no direction of their own). `direction` is the order on screen: `'ltr'` (default) draws the count at the left,\n * «۰ / ۴۰۰۰»; `'rtl'` draws it at the right, «۴۰۰۰ / ۰» (read right to left: the count first, as MAUI's RTL label did).\n * Latin digits stay `0 / 4000`. Parts already in native digits (a formatted number, a range) pass through.\n */\nexport function formatCountOf(\n current: number | string,\n total: number | string,\n numberingSystem: G9NumberingSystem = 'latin',\n options: { readonly direction?: 'ltr' | 'rtl'; readonly separator?: string } = {},\n): string {\n const text = toNativeDigits(`${current}${options.separator ?? ' / '}${total}`, numberingSystem);\n return options.direction === 'rtl' ? isolateRtl(text) : isolateLtr(text);\n}\n\n/**\n * A change as a signed percentage, always with its sign and isolated so RTL text never moves the sign to the wrong end\n * (Riskara `pct`, SAC `Delta`): `0.125` → `+12.5%`; `formatSignedPercent(-3, { fromFraction: false })` → `−3%`.\n */\nexport function formatSignedPercent(\n value: number,\n options: {\n readonly decimals?: number;\n readonly numberingSystem?: G9NumberingSystem;\n readonly fromFraction?: boolean;\n } = {},\n): string {\n const v = options.fromFraction === false ? value : value * 100;\n const decimals = options.decimals ?? 1;\n const rounded = Number(v.toFixed(decimals));\n const sign = rounded > 0 ? '+' : rounded < 0 ? '−' : '';\n const body = formatNumber(Math.abs(rounded), {\n numberingSystem: options.numberingSystem ?? 'latin',\n maximumFractionDigits: decimals,\n useGrouping: true,\n });\n const percent = options.numberingSystem && options.numberingSystem !== 'latin' ? '٪' : '%';\n return isolateLtr(`${sign}${body}${percent}`);\n}\n\n/**\n * A phone number in E.164 (`+989121234567`), or null. Accepts any digits, spaces, dashes, a leading 0, 00 or +, and the\n * national form; `country` gives the calling code for national numbers (default Iran, 98).\n */\nexport function normalizePhone(\n input: string | null | undefined,\n country: { readonly code: string; readonly nationalLength: number } = { code: '98', nationalLength: 10 },\n): string | null {\n const ascii = normalizeToAscii(input ?? '').replace(/[\\s\\-().]/g, '');\n if (!/^\\+?\\d+$/.test(ascii)) return null;\n let digits = ascii.startsWith('+') ? ascii.slice(1) : ascii.startsWith('00') ? ascii.slice(2) : ascii;\n if (!ascii.startsWith('+') && !ascii.startsWith('00')) {\n if (digits.startsWith('0')) digits = digits.slice(1);\n if (digits.length === country.nationalLength) digits = country.code + digits;\n }\n if (digits.startsWith(country.code) && digits.length !== country.code.length + country.nationalLength) return null;\n return digits.length >= 8 && digits.length <= 15 ? `+${digits}` : null;\n}\n"],"names":["LETTERS","MARKS","normalizeText","input","s","normalizeToAscii","re","to","searchKey","matchesSearch","text","query","words","Boolean","hay","w","groupWhileTyping","raw","caret","options","_options_numberingSystem","_options_decimals","system","sym","getNumberSymbols","decimals","ascii","isDecimal","ch","before","digits","point","negative","i","kept","int","frac","grouping","undefined","grouped","asciiText","pos","seen","value","Number","toNativeDigits","extra","FA_UNITS","EN_UNITS","formatCompact","_options_language","fa","abs","Math","units","hit","n","body","formatNumber","unit","formatWeight","kilograms","g","B64","bytesToBase64","bytes","parts","line","a","b","c","isolateLtr","isolateRtl","isolate","formatCountOf","current","total","numberingSystem","_options_separator","formatSignedPercent","v","rounded","sign","percent","normalizePhone","country"],"mappings":";;AAOA,MAAMA,UAAoD;IACxD;QAAC;QAAS;KAAI;IACd;QAAC;QAAM;KAAI;IACX;QAAC;QAAM;KAAI;IACX;QAAC;QAAM;KAAI;IACX;QAAC;QAAW;KAAI;IAChB;QAAC;QAAM;KAAI;CACZ;AAED,MAAMC,QAAQ;AAGP,SAASC,cAAcC,KAAgC;IAC5D,IAAIC,IAAIC,iBAAiBF,QAAAA,QAAAA,QAAS;IAClC,KAAK,MAAM,CAACG,IAAIC,GAAG,IAAIP,QAASI,IAAIA,EAAE,OAAO,CAACE,IAAIC;IAClD,OAAOH,EAAE,OAAO,CAACH,OAAO,IAAI,OAAO,CAAC,QAAQ,KAAK,IAAI;AACvD;AAGO,SAASO,UAAUL,KAAgC;IACxD,OAAOD,cAAcC,OAAO,WAAW;AACzC;AAGO,SAASM,cAAcC,IAA+B,EAAEC,KAAgC;IAC7F,MAAMC,QAAQJ,UAAUG,OAAO,KAAK,CAAC,KAAK,MAAM,CAACE;IACjD,IAAID,AAAiB,MAAjBA,MAAM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M,gBAAgB;AAAG,CAAC;IAExG,MAAM3D,QAAQrB,iBAAiBF,QAAAA,QAAAA,QAAS,IAAI,OAAO,CAAC,cAAc;IAClE,IAAI,CAAC,WAAW,IAAI,CAACuB,QAAQ,OAAO;IACpC,IAAII,SAASJ,MAAM,UAAU,CAAC,OAAOA,MAAM,KAAK,CAAC,KAAKA,MAAM,UAAU,CAAC,QAAQA,MAAM,KAAK,CAAC,KAAKA;IAChG,IAAI,CAACA,MAAM,UAAU,CAAC,QAAQ,CAACA,MAAM,UAAU,CAAC,OAAO;QACrD,IAAII,OAAO,UAAU,CAAC,MAAMA,SAASA,OAAO,KAAK,CAAC;QAClD,IAAIA,OAAO,MAAM,KAAKuD,QAAQ,cAAc,EAAEvD,SAASuD,QAAQ,IAAI,GAAGvD;IACxE;IACA,IAAIA,OAAO,UAAU,CAACuD,QAAQ,IAAI,KAAKvD,OAAO,MAAM,KAAKuD,QAAQ,IAAI,CAAC,MAAM,GAAGA,QAAQ,cAAc,EAAE,OAAO;IAC9G,OAAOvD,OAAO,MAAM,IAAI,KAAKA,OAAO,MAAM,IAAI,KAAK,CAAC,CAAC,EAAEA,QAAQ,GAAG;AACpE"}
|
package/dist/tokens/shape.d.ts
CHANGED
|
@@ -62,8 +62,10 @@ export declare const g9FontWeights: readonly G9FontWeight[];
|
|
|
62
62
|
*/
|
|
63
63
|
export declare function familyForWeight(weight: 400 | G9FontWeight, base: string | undefined, byWeight: G9FontWeights | undefined): string | undefined;
|
|
64
64
|
/**
|
|
65
|
-
* The `font-family` value for a G9 text of `weight
|
|
66
|
-
*
|
|
65
|
+
* The `font-family` value for a G9 text of `weight`: the provider's per-weight variable (`var(--g9-font-text-700)`), or
|
|
66
|
+
* the base one for 400 and lighter. For a STYLESHEET only (a rule written in code, a web style): native Lynx does not
|
|
67
|
+
* resolve `var()` in an inline `font-family`, so an inline style with it draws the platform's font (2.6.8, AgriPad
|
|
68
|
+
* TR-0122). On a Lynx element give the text a class whose rule reads the variable; the library's controls do.
|
|
67
69
|
*/
|
|
68
70
|
export declare function g9FontFamilyFor(weight: number | 'bold' | 'normal'): string;
|
|
69
71
|
/** A named density step (LC-07): the three control heights move together. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape.d.ts","sourceRoot":"","sources":["../../src/tokens/shape.ts"],"names":[],"mappings":"AAMA,mCAAmC;AACnC,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,+CAA+C;IAC/C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,iEAAiE;AACjE,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;CAC9C;AAED,6FAA6F;AAC7F,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAE/G,iHAAiH;AACjH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,iDAAiD;IACjD,QAAQ,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C,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,SAAS,EAAE,IAAI,GAAE,UAA2B,GAAG,UAAU,CAiBjH;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAiClH"}
|
package/dist/tokens/shape.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens/shape.js","sources":["../../src/tokens/shape.ts"],"sourcesContent":["// The shape of a theme: corner radii, the type roles and the three control heights. With the palette this is the whole\n// look of a template (ShopManager's ShapeSet + CONTROL_HEIGHTS, SAC's radii, G9Hub's rounded-* scale): a recipe or an\n// app swaps shapes, every control reads them through CSS variables (`var(--g9-radius-card)`), so a shape change repaints\n// without a React render.\nimport { toKebabCase } from './css-vars';\n\n/** Corner radii by role, in dp. */\nexport interface G9ShapeRadii {\n readonly control: number;\n readonly field: number;\n readonly chip: number;\n readonly card: number;\n readonly sheet: number;\n readonly dialog: number;\n readonly toast: number;\n /** A pill: half the height (a large value). */\n readonly pill: number;\n}\n\n/** A type role: size and line height in dp, a weight 400…800. */\nexport interface G9TypeRole {\n readonly size: number;\n readonly lineHeight: number;\n readonly weight: 400 | 500 | 600 | 700 | 800;\n}\n\n/** A role of the type scale (display, title, section, body, label, caption, price, mono). */\nexport type G9TypeRoleName = 'display' | 'title' | 'section' | 'body' | 'label' | 'caption' | 'price' | 'mono';\n\n/** The three heights every control family shares (button, field, segmented, stepper, chip in its large size). */\nexport interface G9ControlHeights {\n readonly sm: number;\n readonly md: number;\n readonly lg: number;\n}\n\n/**\n * Font families of a theme, per script (LC-07). Unset: the platform's own (the stock look). Every G9 text reads\n * `var(--g9-font-text)`, which a right-to-left root takes from `arabic` and a left-to-right one from `latin`; no letter\n * spacing is ever added to Arabic script (`.g9-dir-rtl` sets it to 0).\n */\nexport interface G9ThemeFonts {\n /** Latin and the other left-to-right scripts. */\n readonly latin?: string;\n /** Arabic script (Persian, Arabic, Urdu): the font of a right-to-left culture. */\n readonly arabic?: string;\n /** Numbers and code (`--g9-font-mono`, for the app's own styles). */\n readonly mono?: string;\n /**\n * One family per weight for `latin` (`{ 500: 'InterMedium', 700: 'InterBold' }`): Lynx on Android ignores an\n * `@font-face` weight, so a family that has only its regular file draws 600 and 700 as a synthesised bold. Each G9 text\n * of weight 500, 600, 700 or 800 then reads `--g9-font-text-<weight>`. A weight left out takes the nearest heavier one\n * given, else the nearest lighter, else `latin` itself.\n */\n readonly latinByWeight?: G9FontWeights;\n /** As {@link G9ThemeFonts.latinByWeight}, for `arabic` (Riskara: `{ 500: 'RkSansMd', 700: 'RkSansBd' }`). */\n readonly arabicByWeight?: G9FontWeights;\n /** As {@link G9ThemeFonts.latinByWeight}, for `mono` (`--g9-font-mono-<weight>`). */\n readonly monoByWeight?: G9FontWeights;\n}\n\n/** The weights a theme can give a family of its own (400 is the script's base family). */\nexport type G9FontWeight = 500 | 600 | 700 | 800;\n\n/** A family per weight (see {@link G9ThemeFonts.latinByWeight}). */\nexport type G9FontWeights = { readonly [W in G9FontWeight]?: string };\n\n/** The weights every G9 text style can ask a family for. */\nexport const g9FontWeights: readonly G9FontWeight[] = [500, 600, 700, 800];\n\n/** The variable each weight's family is written to, spelled out (the stylesheets read these names). */\nconst FONT_TEXT_VAR: Readonly<Record<G9FontWeight, string>> = {\n 500: '--g9-font-text-500',\n 600: '--g9-font-text-600',\n 700: '--g9-font-text-700',\n 800: '--g9-font-text-800',\n};\n\n/**\n * The family for `weight` from a base family and its per-weight families: the exact one, else the nearest heavier\n * given, else the nearest lighter, else the base. Undefined when there is no family at all (the platform's font).\n */\nexport function familyForWeight(\n weight: 400 | G9FontWeight,\n base: string | undefined,\n byWeight: G9FontWeights | undefined,\n): string | undefined {\n if (weight === 400 || !byWeight) return base || undefined;\n const given = g9FontWeights.filter((w) => typeof byWeight[w] === 'string' && byWeight[w]);\n const pick =\n given.find((w) => w === weight) ?? given.find((w) => w > weight) ?? [...given].reverse().find((w) => w < weight);\n return (pick ? byWeight[pick] : base) || undefined;\n}\n\n/**\n * The `font-family` value for a G9 text of `weight` in a style written in code (an inline style): the provider's\n * per-weight variable (`var(--g9-font-text-700)`), or the base one for 400 and lighter.\n */\nexport function g9FontFamilyFor(weight: number | 'bold' | 'normal'): string {\n const w = weight === 'bold' ? 700 : weight === 'normal' ? 400 : weight;\n if (w < 500) return 'var(--g9-font-text)';\n return `var(${FONT_TEXT_VAR[w >= 800 ? 800 : w >= 700 ? 700 : w >= 600 ? 600 : 500]})`;\n}\n\n/** A named density step (LC-07): the three control heights move together. */\nexport type G9Density = 'compact' | 'regular' | 'comfortable';\n\n/** What each density step adds to every control height, in dp (`regular` is the stock look). */\nexport const g9DensitySteps: Readonly<Record<G9Density, number>> = Object.freeze({\n compact: -4,\n regular: 0,\n comfortable: 8,\n});\n\n/** The platform's minimum touch target in dp: no density or override takes `touchTarget` under it. */\nexport const g9MinTouchTarget = 44;\n\n/** A theme's shape: corner radii per role, the type scale and the three control heights. */\nexport interface G9ShapeSet {\n readonly radii: G9ShapeRadii;\n readonly type: { readonly [K in G9TypeRoleName]: G9TypeRole };\n readonly heights: G9ControlHeights;\n /**\n * `'shared'`: the controls take their sizes from {@link G9ShapeSet.heights} (a design system that sizes every control\n * from three heights: ShopManager's 40/48/56 and, for gloves, 44/56/64). G9Button small/medium/large = sm/md/lg (its\n * label at `type.label`'s size, small 2 smaller); G9IconButton sm/md/lg = sm/md/lg; G9TextEntry = md; G9Chip = sm\n * (lg: md); G9Segmented = sm items in a 4 dp tray; G9Stepper = an md tray (lg: lg) with sm buttons. Default `'own'`:\n * each control keeps its own table (the stock look).\n */\n readonly sizing?: 'own' | 'shared';\n /** Minimum touch target (oracles flag smaller interactive elements). Default 44, never under {@link g9MinTouchTarget}. */\n readonly touchTarget: number;\n /** Font families per script; unset: the platform's own. */\n readonly fonts?: G9ThemeFonts;\n /** The density step the heights stand at. Default `regular`. */\n readonly density?: G9Density;\n}\n\n/** The default shape: 12 px controls and fields, 16 px cards, 24 px sheets, the type scale and heights 36 / 44 / 52. */\nexport const g9DefaultShape: G9ShapeSet = Object.freeze({\n radii: Object.freeze({ control: 12, field: 12, chip: 999, card: 16, sheet: 24, dialog: 20, toast: 14, pill: 999 }),\n type: Object.freeze({\n display: { size: 28, lineHeight: 40, weight: 800 },\n title: { size: 20, lineHeight: 30, weight: 700 },\n section: { size: 16, lineHeight: 26, weight: 700 },\n body: { size: 14, lineHeight: 24, weight: 400 },\n label: { size: 14, lineHeight: 20, weight: 600 },\n caption: { size: 12, lineHeight: 18, weight: 400 },\n price: { size: 16, lineHeight: 24, weight: 700 },\n mono: { size: 13, lineHeight: 20, weight: 500 },\n }),\n heights: Object.freeze({ sm: 40, md: 44, lg: 52 }),\n touchTarget: 44,\n}) as G9ShapeSet;\n\n/**\n * A shape with some parts replaced (deep for radii, type roles, heights and fonts). A `density` moves the base's three\n * heights together by the step's difference from the base's own step (explicit `heights` still win, part by part);\n * `touchTarget` never goes under {@link g9MinTouchTarget}.\n */\nexport function resolveShape(over: Partial<G9ShapeSet> | undefined, base: G9ShapeSet = g9DefaultShape): G9ShapeSet {\n if (!over) return base;\n const density = over.density ?? base.density;\n const shift = g9DensitySteps[density ?? 'regular'] - g9DensitySteps[base.density ?? 'regular'];\n const moved = shift\n ? { sm: base.heights.sm + shift, md: base.heights.md + shift, lg: base.heights.lg + shift }\n : base.heights;\n const fonts = over.fonts || base.fonts ? Object.freeze({ ...base.fonts, ...over.fonts }) : undefined;\n return Object.freeze({\n radii: Object.freeze({ ...base.radii, ...over.radii }),\n type: Object.freeze({ ...base.type, ...over.type }),\n heights: Object.freeze({ ...moved, ...over.heights }),\n touchTarget: Math.max(g9MinTouchTarget, over.touchTarget ?? base.touchTarget),\n ...(fonts ? { fonts } : {}),\n ...(density ? { density } : {}),\n ...((over.sizing ?? base.sizing) ? { sizing: over.sizing ?? base.sizing } : {}),\n });\n}\n\n/**\n * CSS variables of a shape: `--g9-radius-<role>`, `--g9-type-<role>-size|line|weight`, `--g9-height-sm|md|lg`,\n * `--g9-touch-target` (all px), and `--g9-font-latin|arabic|mono` (plus `-500|600|700|800`) for the families a theme\n * names. With a `direction`, also `--g9-font-text` and `--g9-font-text-500|600|700|800`: the families of that direction's\n * script (what every G9 text style reads, by its weight).\n */\nexport function toShapeCssVariables(shape: G9ShapeSet, direction?: 'ltr' | 'rtl'): Readonly<Record<string, string>> {\n const out: Record<string, string> = {};\n for (const [k, v] of Object.entries(shape.radii)) out[`--g9-radius-${toKebabCase(k)}`] = `${v}px`;\n for (const [k, v] of Object.entries(shape.type)) {\n out[`--g9-type-${k}-size`] = `${v.size}px`;\n out[`--g9-type-${k}-line`] = `${v.lineHeight}px`;\n out[`--g9-type-${k}-weight`] = String(v.weight);\n }\n for (const [k, v] of Object.entries(shape.heights)) out[`--g9-height-${k}`] = `${v}px`;\n out['--g9-touch-target'] = `${shape.touchTarget}px`;\n // only the families a theme names: unset, a text keeps the platform's font (the stock look is untouched)\n const fonts = shape.fonts ?? {};\n for (const script of ['latin', 'arabic', 'mono'] as const) {\n const family = fonts[script];\n if (typeof family === 'string' && family) out[`--g9-font-${script}`] = family;\n for (const w of g9FontWeights) {\n const f = familyForWeight(w, family, fonts[`${script}ByWeight`]);\n if (f) out[`--g9-font-${script}-${w}`] = f;\n }\n }\n // the font every G9 text reads, as a literal: native Lynx does not resolve a variable a stylesheet rule defines from\n // another one (`--a: var(--b)` stayed unresolved on the A21s), so the provider writes it for its root's direction\n const script = direction === 'rtl' ? 'arabic' : direction === 'ltr' ? 'latin' : undefined;\n if (script) {\n const text = fonts[script];\n if (text) out['--g9-font-text'] = text;\n // one literal per weight as well (a G9 text of weight 500 to 800 reads its own; see G9ThemeFonts.latinByWeight)\n for (const w of g9FontWeights) {\n const f = familyForWeight(w, text, fonts[`${script}ByWeight`]);\n if (f) out[FONT_TEXT_VAR[w]] = f;\n }\n }\n return out;\n}\n"],"names":["g9FontWeights","FONT_TEXT_VAR","familyForWeight","weight","base","byWeight","_ref","undefined","given","w","pick","g9FontFamilyFor","g9DensitySteps","Object","g9MinTouchTarget","g9DefaultShape","resolveShape","over","_over_density","_base_density","_over_touchTarget","_over_sizing","_over_sizing1","density","shift","moved","fonts","Math","toShapeCssVariables","shape","direction","_shape_fonts","out","k","v","toKebabCase","String","script","family","f","text"],"mappings":";AAoEO,MAAMA,gBAAyC;IAAC;IAAK;IAAK;IAAK;CAAI;AAG1E,MAAMC,gBAAwD;IAC5D,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;AACP;AAMO,SAASC,gBACdC,MAA0B,EAC1BC,IAAwB,EACxBC,QAAmC;QAKjCC,MAAAA;IAHF,IAAIH,AAAW,QAAXA,UAAkB,CAACE,UAAU,OAAOD,QAAQG;IAChD,MAAMC,QAAQR,cAAc,MAAM,CAAC,CAACS,IAAM,AAAuB,YAAvB,OAAOJ,QAAQ,CAACI,EAAE,IAAiBJ,QAAQ,CAACI,EAAE;IACxF,MAAMC,OAAAA,QACJJ,CAAAA,OAAAA,QAAAA,CAAAA,cAAAA,MAAM,IAAI,CAAC,CAACG,IAAMA,MAAMN,OAAM,IAA9BG,cAAmCE,MAAM,IAAI,CAAC,CAACC,IAAMA,IAAIN,OAAM,IAA/DG,OAAoE;WAAIE;KAAM,CAAC,OAAO,GAAG,IAAI,CAAC,CAACC,IAAMA,IAAIN;IAC3G,OAAQO,AAAAA,CAAAA,OAAOL,QAAQ,CAACK,KAAK,GAAGN,IAAG,KAAMG;AAC3C;AAMO,SAASI,gBAAgBR,MAAkC;IAChE,MAAMM,IAAIN,AAAW,WAAXA,SAAoB,MAAMA,AAAW,aAAXA,SAAsB,MAAMA;IAChE,IAAIM,IAAI,KAAK,OAAO;IACpB,OAAO,CAAC,IAAI,EAAER,aAAa,CAACQ,KAAK,MAAM,MAAMA,KAAK,MAAM,MAAMA,KAAK,MAAM,MAA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AASP,AAAc,UAAdA,YAAsB,WAAWA,AAAc,UAAdA,YAAsB,UAAUvB;IAChF,IAAI8B,QAAQ;QACV,MAAMG,OAAOd,KAAK,CAACW,OAAO;QAC1B,IAAIG,MAAMR,GAAG,CAAC,iBAAiB,GAAGQ;QAElC,KAAK,MAAM/B,KAAKT,cAAe;YAC7B,MAAMuC,IAAIrC,gBAAgBO,GAAG+B,MAAMd,KAAK,CAAC,GAAGW,OAAO,QAAQ,CAAC,CAAC;YAC7D,IAAIE,GAAGP,GAAG,CAAC/B,aAAa,CAACQ,EAAE,CAAC,GAAG8B;QACjC;IACF;IACA,OAAOP;AACT"}
|
|
1
|
+
{"version":3,"file":"tokens/shape.js","sources":["../../src/tokens/shape.ts"],"sourcesContent":["// The shape of a theme: corner radii, the type roles and the three control heights. With the palette this is the whole\n// look of a template (ShopManager's ShapeSet + CONTROL_HEIGHTS, SAC's radii, G9Hub's rounded-* scale): a recipe or an\n// app swaps shapes, every control reads them through CSS variables (`var(--g9-radius-card)`), so a shape change repaints\n// without a React render.\nimport { toKebabCase } from './css-vars';\n\n/** Corner radii by role, in dp. */\nexport interface G9ShapeRadii {\n readonly control: number;\n readonly field: number;\n readonly chip: number;\n readonly card: number;\n readonly sheet: number;\n readonly dialog: number;\n readonly toast: number;\n /** A pill: half the height (a large value). */\n readonly pill: number;\n}\n\n/** A type role: size and line height in dp, a weight 400…800. */\nexport interface G9TypeRole {\n readonly size: number;\n readonly lineHeight: number;\n readonly weight: 400 | 500 | 600 | 700 | 800;\n}\n\n/** A role of the type scale (display, title, section, body, label, caption, price, mono). */\nexport type G9TypeRoleName = 'display' | 'title' | 'section' | 'body' | 'label' | 'caption' | 'price' | 'mono';\n\n/** The three heights every control family shares (button, field, segmented, stepper, chip in its large size). */\nexport interface G9ControlHeights {\n readonly sm: number;\n readonly md: number;\n readonly lg: number;\n}\n\n/**\n * Font families of a theme, per script (LC-07). Unset: the platform's own (the stock look). Every G9 text reads\n * `var(--g9-font-text)`, which a right-to-left root takes from `arabic` and a left-to-right one from `latin`; no letter\n * spacing is ever added to Arabic script (`.g9-dir-rtl` sets it to 0).\n */\nexport interface G9ThemeFonts {\n /** Latin and the other left-to-right scripts. */\n readonly latin?: string;\n /** Arabic script (Persian, Arabic, Urdu): the font of a right-to-left culture. */\n readonly arabic?: string;\n /** Numbers and code (`--g9-font-mono`, for the app's own styles). */\n readonly mono?: string;\n /**\n * One family per weight for `latin` (`{ 500: 'InterMedium', 700: 'InterBold' }`): Lynx on Android ignores an\n * `@font-face` weight, so a family that has only its regular file draws 600 and 700 as a synthesised bold. Each G9 text\n * of weight 500, 600, 700 or 800 then reads `--g9-font-text-<weight>`. A weight left out takes the nearest heavier one\n * given, else the nearest lighter, else `latin` itself.\n */\n readonly latinByWeight?: G9FontWeights;\n /** As {@link G9ThemeFonts.latinByWeight}, for `arabic` (Riskara: `{ 500: 'RkSansMd', 700: 'RkSansBd' }`). */\n readonly arabicByWeight?: G9FontWeights;\n /** As {@link G9ThemeFonts.latinByWeight}, for `mono` (`--g9-font-mono-<weight>`). */\n readonly monoByWeight?: G9FontWeights;\n}\n\n/** The weights a theme can give a family of its own (400 is the script's base family). */\nexport type G9FontWeight = 500 | 600 | 700 | 800;\n\n/** A family per weight (see {@link G9ThemeFonts.latinByWeight}). */\nexport type G9FontWeights = { readonly [W in G9FontWeight]?: string };\n\n/** The weights every G9 text style can ask a family for. */\nexport const g9FontWeights: readonly G9FontWeight[] = [500, 600, 700, 800];\n\n/** The variable each weight's family is written to, spelled out (the stylesheets read these names). */\nconst FONT_TEXT_VAR: Readonly<Record<G9FontWeight, string>> = {\n 500: '--g9-font-text-500',\n 600: '--g9-font-text-600',\n 700: '--g9-font-text-700',\n 800: '--g9-font-text-800',\n};\n\n/**\n * The family for `weight` from a base family and its per-weight families: the exact one, else the nearest heavier\n * given, else the nearest lighter, else the base. Undefined when there is no family at all (the platform's font).\n */\nexport function familyForWeight(\n weight: 400 | G9FontWeight,\n base: string | undefined,\n byWeight: G9FontWeights | undefined,\n): string | undefined {\n if (weight === 400 || !byWeight) return base || undefined;\n const given = g9FontWeights.filter((w) => typeof byWeight[w] === 'string' && byWeight[w]);\n const pick =\n given.find((w) => w === weight) ?? given.find((w) => w > weight) ?? [...given].reverse().find((w) => w < weight);\n return (pick ? byWeight[pick] : base) || undefined;\n}\n\n/**\n * The `font-family` value for a G9 text of `weight`: the provider's per-weight variable (`var(--g9-font-text-700)`), or\n * the base one for 400 and lighter. For a STYLESHEET only (a rule written in code, a web style): native Lynx does not\n * resolve `var()` in an inline `font-family`, so an inline style with it draws the platform's font (2.6.8, AgriPad\n * TR-0122). On a Lynx element give the text a class whose rule reads the variable; the library's controls do.\n */\nexport function g9FontFamilyFor(weight: number | 'bold' | 'normal'): string {\n const w = weight === 'bold' ? 700 : weight === 'normal' ? 400 : weight;\n if (w < 500) return 'var(--g9-font-text)';\n return `var(${FONT_TEXT_VAR[w >= 800 ? 800 : w >= 700 ? 700 : w >= 600 ? 600 : 500]})`;\n}\n\n/** A named density step (LC-07): the three control heights move together. */\nexport type G9Density = 'compact' | 'regular' | 'comfortable';\n\n/** What each density step adds to every control height, in dp (`regular` is the stock look). */\nexport const g9DensitySteps: Readonly<Record<G9Density, number>> = Object.freeze({\n compact: -4,\n regular: 0,\n comfortable: 8,\n});\n\n/** The platform's minimum touch target in dp: no density or override takes `touchTarget` under it. */\nexport const g9MinTouchTarget = 44;\n\n/** A theme's shape: corner radii per role, the type scale and the three control heights. */\nexport interface G9ShapeSet {\n readonly radii: G9ShapeRadii;\n readonly type: { readonly [K in G9TypeRoleName]: G9TypeRole };\n readonly heights: G9ControlHeights;\n /**\n * `'shared'`: the controls take their sizes from {@link G9ShapeSet.heights} (a design system that sizes every control\n * from three heights: ShopManager's 40/48/56 and, for gloves, 44/56/64). G9Button small/medium/large = sm/md/lg (its\n * label at `type.label`'s size, small 2 smaller); G9IconButton sm/md/lg = sm/md/lg; G9TextEntry = md; G9Chip = sm\n * (lg: md); G9Segmented = sm items in a 4 dp tray; G9Stepper = an md tray (lg: lg) with sm buttons. Default `'own'`:\n * each control keeps its own table (the stock look).\n */\n readonly sizing?: 'own' | 'shared';\n /** Minimum touch target (oracles flag smaller interactive elements). Default 44, never under {@link g9MinTouchTarget}. */\n readonly touchTarget: number;\n /** Font families per script; unset: the platform's own. */\n readonly fonts?: G9ThemeFonts;\n /** The density step the heights stand at. Default `regular`. */\n readonly density?: G9Density;\n}\n\n/** The default shape: 12 px controls and fields, 16 px cards, 24 px sheets, the type scale and heights 36 / 44 / 52. */\nexport const g9DefaultShape: G9ShapeSet = Object.freeze({\n radii: Object.freeze({ control: 12, field: 12, chip: 999, card: 16, sheet: 24, dialog: 20, toast: 14, pill: 999 }),\n type: Object.freeze({\n display: { size: 28, lineHeight: 40, weight: 800 },\n title: { size: 20, lineHeight: 30, weight: 700 },\n section: { size: 16, lineHeight: 26, weight: 700 },\n body: { size: 14, lineHeight: 24, weight: 400 },\n label: { size: 14, lineHeight: 20, weight: 600 },\n caption: { size: 12, lineHeight: 18, weight: 400 },\n price: { size: 16, lineHeight: 24, weight: 700 },\n mono: { size: 13, lineHeight: 20, weight: 500 },\n }),\n heights: Object.freeze({ sm: 40, md: 44, lg: 52 }),\n touchTarget: 44,\n}) as G9ShapeSet;\n\n/**\n * A shape with some parts replaced (deep for radii, type roles, heights and fonts). A `density` moves the base's three\n * heights together by the step's difference from the base's own step (explicit `heights` still win, part by part);\n * `touchTarget` never goes under {@link g9MinTouchTarget}.\n */\nexport function resolveShape(over: Partial<G9ShapeSet> | undefined, base: G9ShapeSet = g9DefaultShape): G9ShapeSet {\n if (!over) return base;\n const density = over.density ?? base.density;\n const shift = g9DensitySteps[density ?? 'regular'] - g9DensitySteps[base.density ?? 'regular'];\n const moved = shift\n ? { sm: base.heights.sm + shift, md: base.heights.md + shift, lg: base.heights.lg + shift }\n : base.heights;\n const fonts = over.fonts || base.fonts ? Object.freeze({ ...base.fonts, ...over.fonts }) : undefined;\n return Object.freeze({\n radii: Object.freeze({ ...base.radii, ...over.radii }),\n type: Object.freeze({ ...base.type, ...over.type }),\n heights: Object.freeze({ ...moved, ...over.heights }),\n touchTarget: Math.max(g9MinTouchTarget, over.touchTarget ?? base.touchTarget),\n ...(fonts ? { fonts } : {}),\n ...(density ? { density } : {}),\n ...((over.sizing ?? base.sizing) ? { sizing: over.sizing ?? base.sizing } : {}),\n });\n}\n\n/**\n * CSS variables of a shape: `--g9-radius-<role>`, `--g9-type-<role>-size|line|weight`, `--g9-height-sm|md|lg`,\n * `--g9-touch-target` (all px), and `--g9-font-latin|arabic|mono` (plus `-500|600|700|800`) for the families a theme\n * names. With a `direction`, also `--g9-font-text` and `--g9-font-text-500|600|700|800`: the families of that direction's\n * script (what every G9 text style reads, by its weight).\n */\nexport function toShapeCssVariables(shape: G9ShapeSet, direction?: 'ltr' | 'rtl'): Readonly<Record<string, string>> {\n const out: Record<string, string> = {};\n for (const [k, v] of Object.entries(shape.radii)) out[`--g9-radius-${toKebabCase(k)}`] = `${v}px`;\n for (const [k, v] of Object.entries(shape.type)) {\n out[`--g9-type-${k}-size`] = `${v.size}px`;\n out[`--g9-type-${k}-line`] = `${v.lineHeight}px`;\n out[`--g9-type-${k}-weight`] = String(v.weight);\n }\n for (const [k, v] of Object.entries(shape.heights)) out[`--g9-height-${k}`] = `${v}px`;\n out['--g9-touch-target'] = `${shape.touchTarget}px`;\n // only the families a theme names: unset, a text keeps the platform's font (the stock look is untouched)\n const fonts = shape.fonts ?? {};\n for (const script of ['latin', 'arabic', 'mono'] as const) {\n const family = fonts[script];\n if (typeof family === 'string' && family) out[`--g9-font-${script}`] = family;\n for (const w of g9FontWeights) {\n const f = familyForWeight(w, family, fonts[`${script}ByWeight`]);\n if (f) out[`--g9-font-${script}-${w}`] = f;\n }\n }\n // the font every G9 text reads, as a literal: native Lynx does not resolve a variable a stylesheet rule defines from\n // another one (`--a: var(--b)` stayed unresolved on the A21s), so the provider writes it for its root's direction\n const script = direction === 'rtl' ? 'arabic' : direction === 'ltr' ? 'latin' : undefined;\n if (script) {\n const text = fonts[script];\n if (text) out['--g9-font-text'] = text;\n // one literal per weight as well (a G9 text of weight 500 to 800 reads its own; see G9ThemeFonts.latinByWeight)\n for (const w of g9FontWeights) {\n const f = familyForWeight(w, text, fonts[`${script}ByWeight`]);\n if (f) out[FONT_TEXT_VAR[w]] = f;\n }\n }\n return out;\n}\n"],"names":["g9FontWeights","FONT_TEXT_VAR","familyForWeight","weight","base","byWeight","_ref","undefined","given","w","pick","g9FontFamilyFor","g9DensitySteps","Object","g9MinTouchTarget","g9DefaultShape","resolveShape","over","_over_density","_base_density","_over_touchTarget","_over_sizing","_over_sizing1","density","shift","moved","fonts","Math","toShapeCssVariables","shape","direction","_shape_fonts","out","k","v","toKebabCase","String","script","family","f","text"],"mappings":";AAoEO,MAAMA,gBAAyC;IAAC;IAAK;IAAK;IAAK;CAAI;AAG1E,MAAMC,gBAAwD;IAC5D,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;AACP;AAMO,SAASC,gBACdC,MAA0B,EAC1BC,IAAwB,EACxBC,QAAmC;QAKjCC,MAAAA;IAHF,IAAIH,AAAW,QAAXA,UAAkB,CAACE,UAAU,OAAOD,QAAQG;IAChD,MAAMC,QAAQR,cAAc,MAAM,CAAC,CAACS,IAAM,AAAuB,YAAvB,OAAOJ,QAAQ,CAACI,EAAE,IAAiBJ,QAAQ,CAACI,EAAE;IACxF,MAAMC,OAAAA,QACJJ,CAAAA,OAAAA,QAAAA,CAAAA,cAAAA,MAAM,IAAI,CAAC,CAACG,IAAMA,MAAMN,OAAM,IAA9BG,cAAmCE,MAAM,IAAI,CAAC,CAACC,IAAMA,IAAIN,OAAM,IAA/DG,OAAoE;WAAIE;KAAM,CAAC,OAAO,GAAG,IAAI,CAAC,CAACC,IAAMA,IAAIN;IAC3G,OAAQO,AAAAA,CAAAA,OAAOL,QAAQ,CAACK,KAAK,GAAGN,IAAG,KAAMG;AAC3C;AAQO,SAASI,gBAAgBR,MAAkC;IA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C,IAAIrC,gBAAgBO,GAAG6B,QAAQZ,KAAK,CAAC,GAAGW,OAAO,QAAQ,CAAC,CAAC;YAC/D,IAAIE,GAAGP,GAAG,CAAC,CAAC,UAAU,EAAEK,OAAO,CAAC,EAAE5B,GAAG,CAAC,GAAG8B;QAC3C;IACF;IAGA,MAAMF,SAASP,AAAc,UAAdA,YAAsB,WAAWA,AAAc,UAAdA,YAAsB,UAAUvB;IAChF,IAAI8B,QAAQ;QACV,MAAMG,OAAOd,KAAK,CAACW,OAAO;QAC1B,IAAIG,MAAMR,GAAG,CAAC,iBAAiB,GAAGQ;QAElC,KAAK,MAAM/B,KAAKT,cAAe;YAC7B,MAAMuC,IAAIrC,gBAAgBO,GAAG+B,MAAMd,KAAK,CAAC,GAAGW,OAAO,QAAQ,CAAC,CAAC;YAC7D,IAAIE,GAAGP,GAAG,CAAC/B,aAAa,CAACQ,EAAE,CAAC,GAAG8B;QACjC;IACF;IACA,OAAOP;AACT"}
|
package/docs/api.md
CHANGED
|
@@ -11,7 +11,7 @@ folder) explain how the pieces fit; the migration tables map every MAUI member.
|
|
|
11
11
|
| `cssVariableName` | function | CSS variable of a colour token: `Primary` → `--g9-primary` (plan/specs/01-Architecture.md §6). |
|
|
12
12
|
| `cssVariablesToText` | function | Renders variables as CSS declarations inside `selector`, one per line (e.g. for a generated stylesheet). |
|
|
13
13
|
| `familyForWeight` | function | The family for `weight` from a base family and its per-weight families: the exact one, else the nearest heavier given, else the nearest lighter, else the base. Undefined when there is no family at all (the platform's font). |
|
|
14
|
-
| `g9FontFamilyFor` | function | The `font-family` value for a G9 text of `weight
|
|
14
|
+
| `g9FontFamilyFor` | function | The `font-family` value for a G9 text of `weight`: the provider's per-weight variable (`var(--g9-font-text-700)`), or the base one for 400 and lighter. For a STYLESHEET only (a rule written in code, a web style): native Lynx does not resolve `var()` in an inline `font-family`, so an inline style with it draws the platform's font (2.6.8, AgriPad TR-0122). On a Lynx element give the text a class whose rule reads the variable; the library's controls do. |
|
|
15
15
|
| `g9Token` | function | A colour usable in any G9 colour prop or stylesheet that follows the active theme: `g9Token('Primary')` is `var(--g9-primary)`. Replaces the MAUI `{G9Color Primary}` markup extension. |
|
|
16
16
|
| `layoutCssVariableName` | function | CSS variable of a layout metric: `EdgeSpacing` → `--g9-layout-edge-spacing`. Insets and corner radii are emitted per side/corner, e.g. `--g9-layout-body-padding-start`, `--g9-layout-map-chrome-corner-radius-top-end`. |
|
|
17
17
|
| `metricCssVariableName` | function | CSS variable of a `G9Metrics` value: `RadiusMd` → `--g9-metric-radius-md`. |
|
|
@@ -279,6 +279,7 @@ folder) explain how the pieces fit; the migration tables map every MAUI member.
|
|
|
279
279
|
| `formatAgoWithTime` | function | The phrase joined with the wall-clock time, e.g. `'6 h ago - 14:19'` (MAUI `FormatAgoWithTime`, the history timeline format). The time is `HH:mm` in the culture's digits at `utcOffsetMinutes`. |
|
|
280
280
|
| `formatCompact` | function | A large amount in words people say (Riskara `toman({short})`, SAC `price`): `12_500_000` → `۱۲٫۵ میلیون` (fa) or `12.5M` (en). One fraction digit, dropped when it is zero; amounts under a thousand stay whole. |
|
|
281
281
|
| `formatCoordinates` | function | A position as «lat، lon» that can never read as one number (AgriPad F-401: «۳۴٫۸۰۴۲,۵۰٫۴۱۶۰»): each number in the culture's digits and decimal separator, no grouping, a fixed number of decimals, the culture's list separator between them, the whole left-to-right isolated so RTL text keeps latitude first. `formatCoordinates(34.80421, 50.41603, { numberingSystem: 'persian' })` → `'۳۴٫۸۰۴۲، ۵۰٫۴۱۶۰'`. |
|
|
282
|
+
| `formatCountOf` | function | A count against its total — a field's `0 / 4000`, a pager's `5–8 / 23`, a gallery's `3 / 12` — in the culture's digits, inside a direction isolate so the text around it cannot reorder the two numbers (the neutral `/` and spaces have no direction of their own). `direction` is the order on screen: `'ltr'` (default) draws the count at the left, «۰ / ۴۰۰۰»; `'rtl'` draws it at the right, «۴۰۰۰ / ۰» (read right to left: the count first, as MAUI's RTL label did). Latin digits stay `0 / 4000`. Parts already in native digits (a formatted number, a range) pass through. |
|
|
282
283
|
| `formatIsoDate` | function | `YYYY-MM-DD`. |
|
|
283
284
|
| `formatIsoDateTime` | function | `YYYY-MM-DDTHH:mm:ss.sss` (no zone). |
|
|
284
285
|
| `formatLocalDateTime` | function | Writes a date or date-time with a .NET-style custom pattern, without Intl: `yyyy yy y`, `MMMM MMM MM M`, `dddd ddd dd d`, `HH H hh h`, `mm m`, `ss s`, `fff ff f`, `tt t`; `'quoted'`/`"quoted"` text and `\x` are literal; other non-letters (`/ : . - space`) are written as is. Names and AM/PM come from the culture's language (fa/ar/en); digits from its numbering system. A date without time formats as midnight. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g9tm/lynxcontrols-foundation",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.9",
|
|
4
4
|
"description": "Pure TypeScript core: design tokens, theme model, culture (strings, digits, calendars, relative time, durations), icon model, safe execution, diagnostics, preference and capability contracts. No React, no UI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|