XML 76 R64.htm IDEA: XBRL DOCUMENT
v3.21.2

Earnings (Loss) Per Share - Summary of Computation Earnings (Loss) Per Common Share Using Two Class Method (Parenthetical) (Detail) - $ / shares | 3 Months Ended | 9 Months Ended | 12 Months Ended
--- | --- | --- | ---
Sep. 30, 2021 | Sep. 30, 2020 | Sep. 30, 2021 | Sep. 30, 2020 | Dec. 31, 2020
Series A Preferred Shares [Member] |  |  |  |  |
Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items] |  |  |  |  |
Percentage of increase in weighted average market price per share |  |  | 20.00% |  |
Number of shares multiplied for annual dividend | 141,194,638 |  | 141,194,638 |  |
Annual dividend calculated based on price appreciate over the initial offering price |  |  |  |  | $ 10.00
Annual dividend calculated based on price appreciate over the highest price previously used |  |  | $ 17.8829 |  |
Warrants To Purchase Ordinary Shares [Member] |  |  |  |  |
Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items] |  |  |  |  |
Conversion Ratio |  |  |  | 3:1 basis |
Conversion of Stock, New Issuance |  |  |  | 21,265,359 |
Number of share issuable upon exercise of warrants |  |  |  | 21,265,359 |
Employee Stock Option [Member] |  |  |  |  |
Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items] |  |  |  |  |
Antidilutive Securities Excluded from Calculation of Diluted Earnings Per Share |  |  |  | 162,500 |
Warrant [Member] |  |  |  |  |
Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items] |  |  |  |  |
Antidilutive Securities Excluded from Calculation of Diluted Earnings Per Share |  |  |  | 63,796,076 |
Series A Convertible Preferred Stock [Member] |  |  |  |  |
Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items] |  |  |  |  |
Antidilutive Securities Excluded from Calculation of Diluted Earnings Per Share | 4,000,000 | 4,000,000 | 4,000,000 | 4,000,000 |

X
- Definition Annual dividend calculated based on share price appreciation over the highest price per share. + References No definition available. + Details
Name: | apg_AnnualDividendCalculatedBasedOnSharePriceAppreciationOverHighestPricePerShare
Namespace Prefix: | apg_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Annual dividend calculated based on share price appreciation over the initial offering price. + References No definition available. + Details
Name: | apg_AnnualDividendCalculatedBasedOnSharePriceAppreciationOverInitialOfferingPrice
Namespace Prefix: | apg_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Conversion ratio. + References No definition available. + Details
Name: | apg_ConversionRatio
Namespace Prefix: | apg_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares used to calculate annual dividend. + References No definition available. + Details
Name: | apg_NumberOfSharesUsedToCalculateAnnualDividend
Namespace Prefix: | apg_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of increase in weighted average market price. + References No definition available. + Details
Name: | apg_PercentageOfIncreaseInWeightedAverageMarketPrice
Namespace Prefix: | apg_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) or earnings per unit (EPU) in the future that were not included in the computation of diluted EPS or EPU because to do so would increase EPS or EPU amounts or decrease loss per share or unit amounts for the period presented. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257 + Details
Name: | us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of new shares issued in the conversion of stock in a noncash (or part noncash) transaction. Noncash is defined as transactions during a period that do not result in cash receipts or cash payments in the period. "Part noncash" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=123431023&loc=d3e4332-108586 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=123431023&loc=d3e4313-108586 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=123431023&loc=d3e4304-108586 + Details
Name: | us-gaap_ConversionOfStockSharesIssued1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_EarningsPerShareBasicLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares issued during the period as a result of the conversion of convertible securities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.29-30) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 1E -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=123467817&loc=d3e21475-112644 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=123467817&loc=d3e21463-112644 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_SeriesAPreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConversionOfStockByUniqueDescriptionAxis=apg_WarrantsToPurchaseOrdinarySharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis=us-gaap_EmployeeStockOptionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis=us-gaap_WarrantMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis=apg_SeriesAConvertiblePreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |