tpmkms_4wp 9.3.0-beta.45 → 9.3.0-beta.47

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.
@@ -6494,20 +6494,6 @@
6494
6494
  0
6495
6495
  ]
6496
6496
  ],
6497
- [
6498
- [
6499
- "is",
6500
- 0
6501
- ],
6502
- [
6503
- "list",
6504
- 1
6505
- ],
6506
- [
6507
- "unknown",
6508
- 0
6509
- ]
6510
- ],
6511
6497
  [
6512
6498
  [
6513
6499
  "is",
@@ -24632,20 +24618,6 @@
24632
24618
  0
24633
24619
  ]
24634
24620
  ],
24635
- [
24636
- [
24637
- "is",
24638
- 0
24639
- ],
24640
- [
24641
- "list",
24642
- 1
24643
- ],
24644
- [
24645
- "unknown",
24646
- 0
24647
- ]
24648
- ],
24649
24621
  [
24650
24622
  [
24651
24623
  "is",
@@ -69665,34 +69637,6 @@
69665
69637
  0
69666
69638
  ]
69667
69639
  ],
69668
- [
69669
- [
69670
- "is",
69671
- 0
69672
- ],
69673
- [
69674
- "list",
69675
- 1
69676
- ],
69677
- [
69678
- "unknown",
69679
- 0
69680
- ]
69681
- ],
69682
- [
69683
- [
69684
- "is",
69685
- 0
69686
- ],
69687
- [
69688
- "list",
69689
- 1
69690
- ],
69691
- [
69692
- "unknown",
69693
- 0
69694
- ]
69695
- ],
69696
69640
  [
69697
69641
  [
69698
69642
  "is",
@@ -89995,24 +89995,6 @@
89995
89995
  0
89996
89996
  ]
89997
89997
  ],
89998
- [
89999
- [
90000
- "list",
90001
- 1
90002
- ],
90003
- [
90004
- "modifies",
90005
- 0
90006
- ],
90007
- [
90008
- "strawberry",
90009
- 0
90010
- ],
90011
- [
90012
- "unknown",
90013
- 0
90014
- ]
90015
- ],
90016
89998
  [
90017
89999
  [
90018
90000
  "list",
@@ -110432,6 +110414,24 @@
110432
110414
  0
110433
110415
  ]
110434
110416
  ],
110417
+ [
110418
+ [
110419
+ "ingredient",
110420
+ 0
110421
+ ],
110422
+ [
110423
+ "is",
110424
+ 0
110425
+ ],
110426
+ [
110427
+ "list",
110428
+ 1
110429
+ ],
110430
+ [
110431
+ "smoothie",
110432
+ 0
110433
+ ]
110434
+ ],
110435
110435
  [
110436
110436
  [
110437
110437
  "ingredient",
@@ -137495,60 +137495,6 @@
137495
137495
  0
137496
137496
  ]
137497
137497
  ],
137498
- [
137499
- [
137500
- "asiago",
137501
- 0
137502
- ],
137503
- [
137504
- "chicken",
137505
- 0
137506
- ],
137507
- [
137508
- "club",
137509
- 0
137510
- ],
137511
- [
137512
- "cod",
137513
- 0
137514
- ],
137515
- [
137516
- "comma",
137517
- 0
137518
- ],
137519
- [
137520
- "grill",
137521
- 0
137522
- ],
137523
- [
137524
- "is",
137525
- 0
137526
- ],
137527
- [
137528
- "list",
137529
- 0
137530
- ],
137531
- [
137532
- "premium",
137533
- 0
137534
- ],
137535
- [
137536
- "ranch",
137537
- 0
137538
- ],
137539
- [
137540
- "sandwich",
137541
- 0
137542
- ],
137543
- [
137544
- "ultimate",
137545
- 0
137546
- ],
137547
- [
137548
- "unknown",
137549
- 0
137550
- ]
137551
- ],
137552
137498
  [
137553
137499
  [
137554
137500
  "chicken",
@@ -347597,60 +347543,6 @@
347597
347543
  0
347598
347544
  ]
347599
347545
  ],
347600
- [
347601
- [
347602
- "breakfast",
347603
- 0
347604
- ],
347605
- [
347606
- "comma",
347607
- 0
347608
- ],
347609
- [
347610
- "double",
347611
- 0
347612
- ],
347613
- [
347614
- "french",
347615
- 0
347616
- ],
347617
- [
347618
- "is",
347619
- 0
347620
- ],
347621
- [
347622
- "list",
347623
- 0
347624
- ],
347625
- [
347626
- "meal",
347627
- 0
347628
- ],
347629
- [
347630
- "muffin",
347631
- 0
347632
- ],
347633
- [
347634
- "oatmeal",
347635
- 0
347636
- ],
347637
- [
347638
- "pancake",
347639
- 0
347640
- ],
347641
- [
347642
- "platter",
347643
- 0
347644
- ],
347645
- [
347646
- "sausage",
347647
- 0
347648
- ],
347649
- [
347650
- "toast",
347651
- 0
347652
- ]
347653
- ],
347654
347546
  [
347655
347547
  [
347656
347548
  "breakfast",
@@ -573451,6 +573343,24 @@
573451
573343
  0
573452
573344
  ]
573453
573345
  ],
573346
+ [
573347
+ [
573348
+ "is",
573349
+ 0
573350
+ ],
573351
+ [
573352
+ "kid",
573353
+ 0
573354
+ ],
573355
+ [
573356
+ "list",
573357
+ 1
573358
+ ],
573359
+ [
573360
+ "meal",
573361
+ 0
573362
+ ]
573363
+ ],
573454
573364
  [
573455
573365
  [
573456
573366
  "is",
@@ -595987,6 +595897,52 @@
595987
595897
  0
595988
595898
  ]
595989
595899
  ],
595900
+ [
595901
+ [
595902
+ "chicken",
595903
+ 0
595904
+ ],
595905
+ [
595906
+ "club",
595907
+ 0
595908
+ ],
595909
+ [
595910
+ "comma",
595911
+ 0
595912
+ ],
595913
+ [
595914
+ "crispy",
595915
+ 0
595916
+ ],
595917
+ [
595918
+ "go",
595919
+ 0
595920
+ ],
595921
+ [
595922
+ "is",
595923
+ 0
595924
+ ],
595925
+ [
595926
+ "junior",
595927
+ 0
595928
+ ],
595929
+ [
595930
+ "list",
595931
+ 0
595932
+ ],
595933
+ [
595934
+ "meal",
595935
+ 0
595936
+ ],
595937
+ [
595938
+ "value",
595939
+ 0
595940
+ ],
595941
+ [
595942
+ "wrap",
595943
+ 0
595944
+ ]
595945
+ ],
595990
595946
  [
595991
595947
  [
595992
595948
  "chicken",
@@ -609844,60 +609800,6 @@
609844
609800
  0
609845
609801
  ]
609846
609802
  ],
609847
- [
609848
- [
609849
- "asiago",
609850
- 0
609851
- ],
609852
- [
609853
- "chicken",
609854
- 0
609855
- ],
609856
- [
609857
- "club",
609858
- 0
609859
- ],
609860
- [
609861
- "cod",
609862
- 0
609863
- ],
609864
- [
609865
- "comma",
609866
- 0
609867
- ],
609868
- [
609869
- "grill",
609870
- 0
609871
- ],
609872
- [
609873
- "is",
609874
- 0
609875
- ],
609876
- [
609877
- "list",
609878
- 0
609879
- ],
609880
- [
609881
- "premium",
609882
- 0
609883
- ],
609884
- [
609885
- "ranch",
609886
- 0
609887
- ],
609888
- [
609889
- "sandwich",
609890
- 0
609891
- ],
609892
- [
609893
- "ultimate",
609894
- 0
609895
- ],
609896
- [
609897
- "unknown",
609898
- 0
609899
- ]
609900
- ],
609901
609803
  [
609902
609804
  [
609903
609805
  "bacon",
@@ -611448,60 +611350,6 @@
611448
611350
  0
611449
611351
  ]
611450
611352
  ],
611451
- [
611452
- [
611453
- "breakfast",
611454
- 0
611455
- ],
611456
- [
611457
- "comma",
611458
- 0
611459
- ],
611460
- [
611461
- "double",
611462
- 0
611463
- ],
611464
- [
611465
- "french",
611466
- 0
611467
- ],
611468
- [
611469
- "is",
611470
- 0
611471
- ],
611472
- [
611473
- "list",
611474
- 0
611475
- ],
611476
- [
611477
- "meal",
611478
- 0
611479
- ],
611480
- [
611481
- "muffin",
611482
- 0
611483
- ],
611484
- [
611485
- "oatmeal",
611486
- 0
611487
- ],
611488
- [
611489
- "pancake",
611490
- 0
611491
- ],
611492
- [
611493
- "platter",
611494
- 0
611495
- ],
611496
- [
611497
- "sausage",
611498
- 0
611499
- ],
611500
- [
611501
- "toast",
611502
- 0
611503
- ]
611504
- ],
611505
611353
  [
611506
611354
  [
611507
611355
  "breakfast",
@@ -612104,6 +611952,52 @@
612104
611952
  0
612105
611953
  ]
612106
611954
  ],
611955
+ [
611956
+ [
611957
+ "chicken",
611958
+ 0
611959
+ ],
611960
+ [
611961
+ "club",
611962
+ 0
611963
+ ],
611964
+ [
611965
+ "comma",
611966
+ 0
611967
+ ],
611968
+ [
611969
+ "crispy",
611970
+ 0
611971
+ ],
611972
+ [
611973
+ "go",
611974
+ 0
611975
+ ],
611976
+ [
611977
+ "is",
611978
+ 0
611979
+ ],
611980
+ [
611981
+ "junior",
611982
+ 0
611983
+ ],
611984
+ [
611985
+ "list",
611986
+ 0
611987
+ ],
611988
+ [
611989
+ "meal",
611990
+ 0
611991
+ ],
611992
+ [
611993
+ "value",
611994
+ 0
611995
+ ],
611996
+ [
611997
+ "wrap",
611998
+ 0
611999
+ ]
612000
+ ],
612107
612001
  [
612108
612002
  [
612109
612003
  "chicken",
@@ -613656,6 +613550,24 @@
613656
613550
  0
613657
613551
  ]
613658
613552
  ],
613553
+ [
613554
+ [
613555
+ "ingredient",
613556
+ 0
613557
+ ],
613558
+ [
613559
+ "is",
613560
+ 0
613561
+ ],
613562
+ [
613563
+ "list",
613564
+ 1
613565
+ ],
613566
+ [
613567
+ "smoothie",
613568
+ 0
613569
+ ]
613570
+ ],
613659
613571
  [
613660
613572
  [
613661
613573
  "ingredient",
@@ -613718,6 +613630,24 @@
613718
613630
  0
613719
613631
  ]
613720
613632
  ],
613633
+ [
613634
+ [
613635
+ "is",
613636
+ 0
613637
+ ],
613638
+ [
613639
+ "kid",
613640
+ 0
613641
+ ],
613642
+ [
613643
+ "list",
613644
+ 1
613645
+ ],
613646
+ [
613647
+ "meal",
613648
+ 0
613649
+ ]
613650
+ ],
613721
613651
  [
613722
613652
  [
613723
613653
  "is",
@@ -614250,24 +614180,6 @@
614250
614180
  0
614251
614181
  ]
614252
614182
  ],
614253
- [
614254
- [
614255
- "list",
614256
- 1
614257
- ],
614258
- [
614259
- "modifies",
614260
- 0
614261
- ],
614262
- [
614263
- "strawberry",
614264
- 0
614265
- ],
614266
- [
614267
- "unknown",
614268
- 0
614269
- ]
614270
- ],
614271
614183
  [
614272
614184
  [
614273
614185
  "list",
@@ -86,17 +86,26 @@ function getTime(time) {
86
86
  }
87
87
 
88
88
  instantiate = (isA, now, context) => {
89
- debugger
90
- if (
91
- (context.marker == 'onDate_dates' && context.date?.marker == 'monthDayYear_dates') ||
92
- (context.marker == 'monthDayYear_dates')
93
- ) {
94
- if (context.marker == 'onDate_dates') {
95
- context = context.date
89
+ const getType = (context, type) => {
90
+ if (context.marker == 'onDate_dates' && context.date?.marker == type) {
91
+ return context.date
92
+ } if (context.marker == type) {
93
+ return context
96
94
  }
97
- const day = context.day.value;
98
- const month = toMonthNumber(context.month.value);
99
- const year = context.year.value;
95
+ }
96
+ let value
97
+ if (value = getType(context, 'monthDay_dates')) {
98
+ const day = value.day.value;
99
+ const month = toMonthNumber(value.month.value);
100
+ const currentMonth = now.getMonth() + 1; // 1-based (January = 1)
101
+ const currentYear = now.getFullYear();
102
+ const year = currentMonth >= month ? currentYear + 1 : currentYear;
103
+ const date = new Date(year, month-1, day)
104
+ return date.toISOString()
105
+ } else if (value = getType(context, 'monthDayYear_dates')) {
106
+ const day = value.day.value;
107
+ const month = toMonthNumber(value.month.value);
108
+ const year = value.year.value;
100
109
  const date = new Date(year, month-1, day)
101
110
  return date.toISOString()
102
111
  } else if (isA(context?.marker, 'dateTimeSelector')) {
@@ -125,10 +134,50 @@ instantiate = (isA, now, context) => {
125
134
  }
126
135
  }
127
136
 
137
+ // function getNthDayOfMonth(dayName, ordinal, monthName, year = new Date().getFullYear()) {
138
+ function getNthDayOfMonth(dayName, ordinal, monthName, now) {
139
+ // Validate inputs
140
+ const days = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'];
141
+ const months = [
142
+ 'january', 'february', 'march', 'april', 'may', 'june',
143
+ 'july', 'august', 'september', 'october', 'november', 'december'
144
+ ];
145
+
146
+ let year = now.getFullYear()
147
+
148
+ dayName = dayName.toLowerCase();
149
+ monthName = monthName.toLowerCase();
150
+
151
+ if (!days.includes(dayName)) throw new Error('Invalid day name');
152
+ if (!months.includes(monthName)) throw new Error('Invalid month name');
153
+ if (!Number.isInteger(ordinal) || ordinal < 1 || ordinal > 5) throw new Error('Ordinal must be an integer between 1 and 5');
154
+
155
+ const monthIndex = months.indexOf(monthName);
156
+ if (monthIndex <= now.getMonth()) {
157
+ year += 1
158
+ }
159
+ const targetDayIndex = days.indexOf(dayName);
160
+
161
+ let date = new Date(year, monthIndex, 1);
162
+
163
+ while (date.getDay() !== targetDayIndex) {
164
+ date.setDate(date.getDate() + 1);
165
+ }
166
+
167
+ date.setDate(date.getDate() + (ordinal - 1) * 7);
168
+
169
+ if (date.getMonth() !== monthIndex) {
170
+ throw new Error(`The ${ordinal}th ${dayName} does not exist in ${monthName} ${year}`);
171
+ }
172
+
173
+ return date.toISOString();
174
+ }
175
+
128
176
  until = (time) => {
129
177
  }
130
178
 
131
179
  module.exports = {
132
180
  instantiate,
133
181
  until,
182
+ getNthDayOfMonth,
134
183
  }
@@ -8430,6 +8430,24 @@
8430
8430
  0
8431
8431
  ]
8432
8432
  ],
8433
+ [
8434
+ [
8435
+ "by",
8436
+ 0
8437
+ ],
8438
+ [
8439
+ "isEd",
8440
+ 0
8441
+ ],
8442
+ [
8443
+ "owned",
8444
+ 0
8445
+ ],
8446
+ [
8447
+ "unknown",
8448
+ 0
8449
+ ]
8450
+ ],
8433
8451
  [
8434
8452
  [
8435
8453
  "isEd",
@@ -8828,6 +8846,24 @@
8828
8846
  0
8829
8847
  ]
8830
8848
  ],
8849
+ [
8850
+ [
8851
+ "by",
8852
+ 0
8853
+ ],
8854
+ [
8855
+ "isEd",
8856
+ 0
8857
+ ],
8858
+ [
8859
+ "owned",
8860
+ 0
8861
+ ],
8862
+ [
8863
+ "unknown",
8864
+ 0
8865
+ ]
8866
+ ],
8831
8867
  [
8832
8868
  [
8833
8869
  "first",