;; cat-kingdom
;; contractType: public

(impl-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)

(define-non-fungible-token cat-kingdom uint)

;; Constants
(define-constant DEPLOYER tx-sender)
(define-constant COMM u1000)
(define-constant COMM-ADDR 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S)

(define-constant ERR-NO-MORE-NFTS u100)
(define-constant ERR-NOT-ENOUGH-PASSES u101)
(define-constant ERR-PUBLIC-SALE-DISABLED u102)
(define-constant ERR-CONTRACT-INITIALIZED u103)
(define-constant ERR-NOT-AUTHORIZED u104)
(define-constant ERR-INVALID-USER u105)
(define-constant ERR-LISTING u106)
(define-constant ERR-WRONG-COMMISSION u107)
(define-constant ERR-NOT-FOUND u108)
(define-constant ERR-PAUSED u109)
(define-constant ERR-MINT-LIMIT u110)
(define-constant ERR-METADATA-FROZEN u111)
(define-constant ERR-AIRDROP-CALLED u112)
(define-constant ERR-NO-MORE-MINTS u113)
(define-constant ERR-INVALID-PERCENTAGE u114)

;; Internal variables
(define-data-var mint-limit uint u200)
(define-data-var last-id uint u1)
(define-data-var total-price uint u100000000)
(define-data-var artist-address principal 'SP3XPANCCWQT5C97EYDSRA9APC5R868ECJ5FRT84W)
(define-data-var ipfs-root (string-ascii 80) "ipfs://ipfs/QmVhZxdVwQTmXwxkYh5KTDd5W5Cm74dz3Q27v8i2Jrfaby/json/")
(define-data-var mint-paused bool false)
(define-data-var premint-enabled bool false)
(define-data-var sale-enabled bool false)
(define-data-var metadata-frozen bool false)
(define-data-var airdrop-called bool false)
(define-data-var mint-cap uint u5)

(define-map mints-per-user principal uint)
(define-map mint-passes principal uint)

(define-public (claim) 
  (mint (list true)))

;; Default Minting
(define-private (mint (orders (list 25 bool)))
  (mint-many orders))

(define-private (mint-many (orders (list 25 bool )))  
  (let 
    (
      (last-nft-id (var-get last-id))
      (enabled (asserts! (<= last-nft-id (var-get mint-limit)) (err ERR-NO-MORE-NFTS)))
      (art-addr (var-get artist-address))
      (id-reached (fold mint-many-iter orders last-nft-id))
      (price (* (var-get total-price) (- id-reached last-nft-id)))
      (total-commission (/ (* price COMM) u10000))
      (current-balance (get-balance tx-sender))
      (total-artist (- price total-commission))
      (capped (> (var-get mint-cap) u0))
      (user-mints (get-mints tx-sender))
    )
    (asserts! (or (is-eq false (var-get mint-paused)) (is-eq tx-sender DEPLOYER)) (err ERR-PAUSED))
    (asserts! (or (not capped) (is-eq tx-sender DEPLOYER) (is-eq tx-sender art-addr) (>= (var-get mint-cap) (+ (len orders) user-mints))) (err ERR-NO-MORE-MINTS))
    (map-set mints-per-user tx-sender (+ (len orders) user-mints))
    (if (or (is-eq tx-sender art-addr) (is-eq tx-sender DEPLOYER) (is-eq (var-get total-price) u0000000))
      (begin
        (var-set last-id id-reached)
        (map-set token-count tx-sender (+ current-balance (- id-reached last-nft-id)))
      )
      (begin
        (var-set last-id id-reached)
        (map-set token-count tx-sender (+ current-balance (- id-reached last-nft-id)))
        (try! (stx-transfer? total-artist tx-sender (var-get artist-address)))
        (try! (stx-transfer? total-commission tx-sender COMM-ADDR))
      )    
    )
    (ok id-reached)))

(define-private (mint-many-iter (ignore bool) (next-id uint))
  (if (<= next-id (var-get mint-limit))
    (begin
      (unwrap! (nft-mint? cat-kingdom next-id tx-sender) next-id)
      (+ next-id u1)    
    )
    next-id))

(define-public (set-artist-address (address principal))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (ok (var-set artist-address address))))

(define-public (set-price (price uint))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (ok (var-set total-price price))))

(define-public (toggle-pause)
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (ok (var-set mint-paused (not (var-get mint-paused))))))

(define-public (set-mint-limit (limit uint))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (asserts! (< limit (var-get mint-limit)) (err ERR-MINT-LIMIT))
    (ok (var-set mint-limit limit))))

(define-public (burn (token-id uint))
  (begin 
    (asserts! (is-owner token-id tx-sender) (err ERR-NOT-AUTHORIZED))
    (asserts! (is-none (map-get? market token-id)) (err ERR-LISTING))
    (nft-burn? cat-kingdom token-id tx-sender)))

(define-private (is-owner (token-id uint) (user principal))
    (is-eq user (unwrap! (nft-get-owner? cat-kingdom token-id) false)))

(define-public (set-base-uri (new-base-uri (string-ascii 80)))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
    (asserts! (not (var-get metadata-frozen)) (err ERR-METADATA-FROZEN))
    (print { notification: "token-metadata-update", payload: { token-class: "nft", contract-id: (as-contract tx-sender) }})
    (var-set ipfs-root new-base-uri)
    (ok true)))

(define-public (freeze-metadata)
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
    (var-set metadata-frozen true)
    (ok true)))

;; Non-custodial SIP-009 transfer function
(define-public (transfer (id uint) (sender principal) (recipient principal))
  (begin
    (asserts! (is-eq tx-sender sender) (err ERR-NOT-AUTHORIZED))
    (asserts! (is-none (map-get? market id)) (err ERR-LISTING))
    (trnsfr id sender recipient)))

;; read-only functions
(define-read-only (get-owner (token-id uint))
  (ok (nft-get-owner? cat-kingdom token-id)))

(define-read-only (get-last-token-id)
  (ok (- (var-get last-id) u1)))

(define-read-only (get-token-uri (token-id uint))
  (ok (some (concat (concat (var-get ipfs-root) "{id}") ".json"))))

(define-read-only (get-paused)
  (ok (var-get mint-paused)))

(define-read-only (get-price)
  (ok (var-get total-price)))

(define-read-only (get-artist-address)
  (ok (var-get artist-address)))

(define-read-only (get-mints (caller principal))
  (default-to u0 (map-get? mints-per-user caller)))

(define-read-only (get-mint-limit)
  (ok (var-get mint-limit)))

(define-data-var license-uri (string-ascii 80) "https://arweave.net/zmc1WTspIhFyVY82bwfAIcIExLFH5lUcHHUN0wXg4W8/0")
(define-data-var license-name (string-ascii 40) "PUBLIC")

(define-read-only (get-license-uri)
  (ok (var-get license-uri)))
  
(define-read-only (get-license-name)
  (ok (var-get license-name)))
  
(define-public (set-license-uri (uri (string-ascii 80)))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
    (ok (var-set license-uri uri))))
    
(define-public (set-license-name (name (string-ascii 40)))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
    (ok (var-set license-name name))))

;; Non-custodial marketplace extras
(use-trait commission-trait 'SP3D6PV2ACBPEKYJTCMH7HEN02KP87QSP8KTEH335.commission-trait.commission)

(define-map token-count principal uint)
(define-map market uint {price: uint, commission: principal, royalty: uint})

(define-read-only (get-balance (account principal))
  (default-to u0
    (map-get? token-count account)))

(define-private (trnsfr (id uint) (sender principal) (recipient principal))
  (match (nft-transfer? cat-kingdom id sender recipient)
    success
      (let
        ((sender-balance (get-balance sender))
        (recipient-balance (get-balance recipient)))
          (map-set token-count
            sender
            (- sender-balance u1))
          (map-set token-count
            recipient
            (+ recipient-balance u1))
          (ok success))
    error (err error)))

(define-private (is-sender-owner (id uint))
  (let ((owner (unwrap! (nft-get-owner? cat-kingdom id) false)))
    (or (is-eq tx-sender owner) (is-eq contract-caller owner))))

(define-read-only (get-listing-in-ustx (id uint))
  (map-get? market id))

(define-public (list-in-ustx (id uint) (price uint) (comm-trait <commission-trait>))
  (let ((listing  {price: price, commission: (contract-of comm-trait), royalty: (var-get royalty-percent)}))
    (asserts! (is-sender-owner id) (err ERR-NOT-AUTHORIZED))
    (map-set market id listing)
    (print (merge listing {a: "list-in-ustx", id: id}))
    (ok true)))

(define-public (unlist-in-ustx (id uint))
  (begin
    (asserts! (is-sender-owner id) (err ERR-NOT-AUTHORIZED))
    (map-delete market id)
    (print {a: "unlist-in-ustx", id: id})
    (ok true)))

(define-public (buy-in-ustx (id uint) (comm-trait <commission-trait>))
  (let ((owner (unwrap! (nft-get-owner? cat-kingdom id) (err ERR-NOT-FOUND)))
      (listing (unwrap! (map-get? market id) (err ERR-LISTING)))
      (price (get price listing))
      (royalty (get royalty listing)))
    (asserts! (is-eq (contract-of comm-trait) (get commission listing)) (err ERR-WRONG-COMMISSION))
    (try! (stx-transfer? price tx-sender owner))
    (try! (pay-royalty price royalty))
    (try! (contract-call? comm-trait pay id price))
    (try! (trnsfr id owner tx-sender))
    (map-delete market id)
    (print {a: "buy-in-ustx", id: id})
    (ok true)))
    
(define-data-var royalty-percent uint u500)

(define-read-only (get-royalty-percent)
  (ok (var-get royalty-percent)))

(define-public (set-royalty-percent (royalty uint))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (asserts! (and (>= royalty u0) (<= royalty u1000)) (err ERR-INVALID-PERCENTAGE))
    (ok (var-set royalty-percent royalty))))

(define-private (pay-royalty (price uint) (royalty uint))
  (let (
    (royalty-amount (/ (* price royalty) u10000))
  )
  (if (and (> royalty-amount u0) (not (is-eq tx-sender (var-get artist-address))))
    (try! (stx-transfer? royalty-amount tx-sender (var-get artist-address)))
    (print false)
  )
  (ok true)))
  

;; Airdrop
(define-public (admin-airdrop)
  (let
    (
      (last-nft-id (var-get last-id))
    )
    (begin
      (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
      (asserts! (is-eq false (var-get airdrop-called)) (err ERR-AIRDROP-CALLED))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u0) 'SP1NBCK2JP3KNCHGGM8FGWPT7VFWSCBAXGMJ1WMZB))
      (map-set token-count 'SP1NBCK2JP3KNCHGGM8FGWPT7VFWSCBAXGMJ1WMZB (+ (get-balance 'SP1NBCK2JP3KNCHGGM8FGWPT7VFWSCBAXGMJ1WMZB) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u1) 'SP1EMH3J8RVQHB364069QAFDNW7K13N9FGKHTBPFJ))
      (map-set token-count 'SP1EMH3J8RVQHB364069QAFDNW7K13N9FGKHTBPFJ (+ (get-balance 'SP1EMH3J8RVQHB364069QAFDNW7K13N9FGKHTBPFJ) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u2) 'SP1EMH3J8RVQHB364069QAFDNW7K13N9FGKHTBPFJ))
      (map-set token-count 'SP1EMH3J8RVQHB364069QAFDNW7K13N9FGKHTBPFJ (+ (get-balance 'SP1EMH3J8RVQHB364069QAFDNW7K13N9FGKHTBPFJ) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u3) 'SP2TTGZ6MR4K1XE51WF3EMRH0EGH4WP1TZF4DH1HG))
      (map-set token-count 'SP2TTGZ6MR4K1XE51WF3EMRH0EGH4WP1TZF4DH1HG (+ (get-balance 'SP2TTGZ6MR4K1XE51WF3EMRH0EGH4WP1TZF4DH1HG) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u4) 'SP2ZXTNSH0JN60KPE2GJ0S7KC06M8KEV925D1K7NB))
      (map-set token-count 'SP2ZXTNSH0JN60KPE2GJ0S7KC06M8KEV925D1K7NB (+ (get-balance 'SP2ZXTNSH0JN60KPE2GJ0S7KC06M8KEV925D1K7NB) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u5) 'SPZEQRHGDRXTVD61FXZAB1TWXPB81Z8JHB7XAV9S))
      (map-set token-count 'SPZEQRHGDRXTVD61FXZAB1TWXPB81Z8JHB7XAV9S (+ (get-balance 'SPZEQRHGDRXTVD61FXZAB1TWXPB81Z8JHB7XAV9S) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u6) 'SP352TQWVHQ8A7AAHSPBD0RPXXMTE09ECEHJTHFCA))
      (map-set token-count 'SP352TQWVHQ8A7AAHSPBD0RPXXMTE09ECEHJTHFCA (+ (get-balance 'SP352TQWVHQ8A7AAHSPBD0RPXXMTE09ECEHJTHFCA) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u7) 'SPNVDAQH0NR9P0AYPSK15APK4E6JP56SHN1S3NKH))
      (map-set token-count 'SPNVDAQH0NR9P0AYPSK15APK4E6JP56SHN1S3NKH (+ (get-balance 'SPNVDAQH0NR9P0AYPSK15APK4E6JP56SHN1S3NKH) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u8) 'SPNVDAQH0NR9P0AYPSK15APK4E6JP56SHN1S3NKH))
      (map-set token-count 'SPNVDAQH0NR9P0AYPSK15APK4E6JP56SHN1S3NKH (+ (get-balance 'SPNVDAQH0NR9P0AYPSK15APK4E6JP56SHN1S3NKH) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u9) 'SP1NQ230PQHYB5EATPMH0D6GB14B69ADB4JR50QMW))
      (map-set token-count 'SP1NQ230PQHYB5EATPMH0D6GB14B69ADB4JR50QMW (+ (get-balance 'SP1NQ230PQHYB5EATPMH0D6GB14B69ADB4JR50QMW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u10) 'SP1NQ230PQHYB5EATPMH0D6GB14B69ADB4JR50QMW))
      (map-set token-count 'SP1NQ230PQHYB5EATPMH0D6GB14B69ADB4JR50QMW (+ (get-balance 'SP1NQ230PQHYB5EATPMH0D6GB14B69ADB4JR50QMW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u11) 'SP2GMC5B10QSFKY1351FF1M3KF3YTWBSAV56H6Z1K))
      (map-set token-count 'SP2GMC5B10QSFKY1351FF1M3KF3YTWBSAV56H6Z1K (+ (get-balance 'SP2GMC5B10QSFKY1351FF1M3KF3YTWBSAV56H6Z1K) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u12) 'SP3XPANCCWQT5C97EYDSRA9APC5R868ECJ5FRT84W))
      (map-set token-count 'SP3XPANCCWQT5C97EYDSRA9APC5R868ECJ5FRT84W (+ (get-balance 'SP3XPANCCWQT5C97EYDSRA9APC5R868ECJ5FRT84W) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u13) 'SPQ4JR3EHT7CQB7RV50SHN3ZRVHSTJV6R78BSBG1))
      (map-set token-count 'SPQ4JR3EHT7CQB7RV50SHN3ZRVHSTJV6R78BSBG1 (+ (get-balance 'SPQ4JR3EHT7CQB7RV50SHN3ZRVHSTJV6R78BSBG1) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u14) 'SP3F1N3TEJKSS093E5JN9H606Y4VZ1KQHNV8F2RPJ))
      (map-set token-count 'SP3F1N3TEJKSS093E5JN9H606Y4VZ1KQHNV8F2RPJ (+ (get-balance 'SP3F1N3TEJKSS093E5JN9H606Y4VZ1KQHNV8F2RPJ) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u15) 'SP3F1N3TEJKSS093E5JN9H606Y4VZ1KQHNV8F2RPJ))
      (map-set token-count 'SP3F1N3TEJKSS093E5JN9H606Y4VZ1KQHNV8F2RPJ (+ (get-balance 'SP3F1N3TEJKSS093E5JN9H606Y4VZ1KQHNV8F2RPJ) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u16) 'SP3W6KQF0AHX2YE007YGD5MD4XNXRK52Q3VBN0K7A))
      (map-set token-count 'SP3W6KQF0AHX2YE007YGD5MD4XNXRK52Q3VBN0K7A (+ (get-balance 'SP3W6KQF0AHX2YE007YGD5MD4XNXRK52Q3VBN0K7A) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u17) 'SP3W6KQF0AHX2YE007YGD5MD4XNXRK52Q3VBN0K7A))
      (map-set token-count 'SP3W6KQF0AHX2YE007YGD5MD4XNXRK52Q3VBN0K7A (+ (get-balance 'SP3W6KQF0AHX2YE007YGD5MD4XNXRK52Q3VBN0K7A) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u18) 'SP1ZN9VFGRBEB622K7G0AE6SY7KEJ50Q92VZ335AD))
      (map-set token-count 'SP1ZN9VFGRBEB622K7G0AE6SY7KEJ50Q92VZ335AD (+ (get-balance 'SP1ZN9VFGRBEB622K7G0AE6SY7KEJ50Q92VZ335AD) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u19) 'SPWGPM8XX1H135JH511YSG50SF66CNWEJZNPKEQE))
      (map-set token-count 'SPWGPM8XX1H135JH511YSG50SF66CNWEJZNPKEQE (+ (get-balance 'SPWGPM8XX1H135JH511YSG50SF66CNWEJZNPKEQE) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u20) 'SPWGPM8XX1H135JH511YSG50SF66CNWEJZNPKEQE))
      (map-set token-count 'SPWGPM8XX1H135JH511YSG50SF66CNWEJZNPKEQE (+ (get-balance 'SPWGPM8XX1H135JH511YSG50SF66CNWEJZNPKEQE) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u21) 'SPA3WSC2B3JN0RET6DV85DPVMD7KXGTSK1M45D5T))
      (map-set token-count 'SPA3WSC2B3JN0RET6DV85DPVMD7KXGTSK1M45D5T (+ (get-balance 'SPA3WSC2B3JN0RET6DV85DPVMD7KXGTSK1M45D5T) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u22) 'SP27NDNHKNJQMF6S8CY12D57N4X3AVVG974872TSV))
      (map-set token-count 'SP27NDNHKNJQMF6S8CY12D57N4X3AVVG974872TSV (+ (get-balance 'SP27NDNHKNJQMF6S8CY12D57N4X3AVVG974872TSV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u23) 'SP1383BBWEFT5PT9VFHX6QJ93DBD39BG5KJ5QRN13))
      (map-set token-count 'SP1383BBWEFT5PT9VFHX6QJ93DBD39BG5KJ5QRN13 (+ (get-balance 'SP1383BBWEFT5PT9VFHX6QJ93DBD39BG5KJ5QRN13) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u24) 'SP1H3WK9RPA0JXV2M3C63WHA46S2WG01J43ECVS78))
      (map-set token-count 'SP1H3WK9RPA0JXV2M3C63WHA46S2WG01J43ECVS78 (+ (get-balance 'SP1H3WK9RPA0JXV2M3C63WHA46S2WG01J43ECVS78) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u25) 'SP1H3WK9RPA0JXV2M3C63WHA46S2WG01J43ECVS78))
      (map-set token-count 'SP1H3WK9RPA0JXV2M3C63WHA46S2WG01J43ECVS78 (+ (get-balance 'SP1H3WK9RPA0JXV2M3C63WHA46S2WG01J43ECVS78) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u26) 'SPEYHQBB16DD43J4S1Q18NB2CNJNKM3WK8R0RZ9R))
      (map-set token-count 'SPEYHQBB16DD43J4S1Q18NB2CNJNKM3WK8R0RZ9R (+ (get-balance 'SPEYHQBB16DD43J4S1Q18NB2CNJNKM3WK8R0RZ9R) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u27) 'SPEYHQBB16DD43J4S1Q18NB2CNJNKM3WK8R0RZ9R))
      (map-set token-count 'SPEYHQBB16DD43J4S1Q18NB2CNJNKM3WK8R0RZ9R (+ (get-balance 'SPEYHQBB16DD43J4S1Q18NB2CNJNKM3WK8R0RZ9R) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u28) 'SP309V9P28EJ31Z36VKFTCGWPWSQHY5WHR8MB46F5))
      (map-set token-count 'SP309V9P28EJ31Z36VKFTCGWPWSQHY5WHR8MB46F5 (+ (get-balance 'SP309V9P28EJ31Z36VKFTCGWPWSQHY5WHR8MB46F5) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u29) 'SP309V9P28EJ31Z36VKFTCGWPWSQHY5WHR8MB46F5))
      (map-set token-count 'SP309V9P28EJ31Z36VKFTCGWPWSQHY5WHR8MB46F5 (+ (get-balance 'SP309V9P28EJ31Z36VKFTCGWPWSQHY5WHR8MB46F5) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u30) 'SP31A14V7VQZSFTGG85N7WCYDRF9XY3JK6CT58RMZ))
      (map-set token-count 'SP31A14V7VQZSFTGG85N7WCYDRF9XY3JK6CT58RMZ (+ (get-balance 'SP31A14V7VQZSFTGG85N7WCYDRF9XY3JK6CT58RMZ) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u31) 'SP14CGJYVCP0Y152A7610P417Y2WRZ206HX1BFRKZ))
      (map-set token-count 'SP14CGJYVCP0Y152A7610P417Y2WRZ206HX1BFRKZ (+ (get-balance 'SP14CGJYVCP0Y152A7610P417Y2WRZ206HX1BFRKZ) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u32) 'SP3QZVQW8JZ8VDAJ91KJGGWP9P1V9VM2FWEY63E0F))
      (map-set token-count 'SP3QZVQW8JZ8VDAJ91KJGGWP9P1V9VM2FWEY63E0F (+ (get-balance 'SP3QZVQW8JZ8VDAJ91KJGGWP9P1V9VM2FWEY63E0F) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u33) 'SP3BS5KFKKQJZ75H91CB6AG3GBDBEBGMNN8PJRE3E))
      (map-set token-count 'SP3BS5KFKKQJZ75H91CB6AG3GBDBEBGMNN8PJRE3E (+ (get-balance 'SP3BS5KFKKQJZ75H91CB6AG3GBDBEBGMNN8PJRE3E) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u34) 'SP3BS5KFKKQJZ75H91CB6AG3GBDBEBGMNN8PJRE3E))
      (map-set token-count 'SP3BS5KFKKQJZ75H91CB6AG3GBDBEBGMNN8PJRE3E (+ (get-balance 'SP3BS5KFKKQJZ75H91CB6AG3GBDBEBGMNN8PJRE3E) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u35) 'SP3E9KB2HGE7T9G1C9RWXFXE6AH9C6F46QN0RE35B))
      (map-set token-count 'SP3E9KB2HGE7T9G1C9RWXFXE6AH9C6F46QN0RE35B (+ (get-balance 'SP3E9KB2HGE7T9G1C9RWXFXE6AH9C6F46QN0RE35B) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u36) 'SP1YJKY67CB988B42YTKKQH3VN9AFFCF3SBS9FMEE))
      (map-set token-count 'SP1YJKY67CB988B42YTKKQH3VN9AFFCF3SBS9FMEE (+ (get-balance 'SP1YJKY67CB988B42YTKKQH3VN9AFFCF3SBS9FMEE) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u37) 'SP1YJKY67CB988B42YTKKQH3VN9AFFCF3SBS9FMEE))
      (map-set token-count 'SP1YJKY67CB988B42YTKKQH3VN9AFFCF3SBS9FMEE (+ (get-balance 'SP1YJKY67CB988B42YTKKQH3VN9AFFCF3SBS9FMEE) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u38) 'SP1QKDV96MS02Q0WYRX8NT66CXNYR8W8P916HC0QW))
      (map-set token-count 'SP1QKDV96MS02Q0WYRX8NT66CXNYR8W8P916HC0QW (+ (get-balance 'SP1QKDV96MS02Q0WYRX8NT66CXNYR8W8P916HC0QW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u39) 'SP1QKDV96MS02Q0WYRX8NT66CXNYR8W8P916HC0QW))
      (map-set token-count 'SP1QKDV96MS02Q0WYRX8NT66CXNYR8W8P916HC0QW (+ (get-balance 'SP1QKDV96MS02Q0WYRX8NT66CXNYR8W8P916HC0QW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u40) 'SP19MCQ4NJQ13E4FN3TZD72G00WGX323C2VX8N6KG))
      (map-set token-count 'SP19MCQ4NJQ13E4FN3TZD72G00WGX323C2VX8N6KG (+ (get-balance 'SP19MCQ4NJQ13E4FN3TZD72G00WGX323C2VX8N6KG) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u41) 'SP19MCQ4NJQ13E4FN3TZD72G00WGX323C2VX8N6KG))
      (map-set token-count 'SP19MCQ4NJQ13E4FN3TZD72G00WGX323C2VX8N6KG (+ (get-balance 'SP19MCQ4NJQ13E4FN3TZD72G00WGX323C2VX8N6KG) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u42) 'SP3CF2W5RP62GEWWQMBN1CNBRW0TMRPN30GMNGCP0))
      (map-set token-count 'SP3CF2W5RP62GEWWQMBN1CNBRW0TMRPN30GMNGCP0 (+ (get-balance 'SP3CF2W5RP62GEWWQMBN1CNBRW0TMRPN30GMNGCP0) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u43) 'SP3CF2W5RP62GEWWQMBN1CNBRW0TMRPN30GMNGCP0))
      (map-set token-count 'SP3CF2W5RP62GEWWQMBN1CNBRW0TMRPN30GMNGCP0 (+ (get-balance 'SP3CF2W5RP62GEWWQMBN1CNBRW0TMRPN30GMNGCP0) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u44) 'SP1MD6X7YCGAND90JHCXVN7554HYN20X9QGGPNGND))
      (map-set token-count 'SP1MD6X7YCGAND90JHCXVN7554HYN20X9QGGPNGND (+ (get-balance 'SP1MD6X7YCGAND90JHCXVN7554HYN20X9QGGPNGND) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u45) 'SP1MD6X7YCGAND90JHCXVN7554HYN20X9QGGPNGND))
      (map-set token-count 'SP1MD6X7YCGAND90JHCXVN7554HYN20X9QGGPNGND (+ (get-balance 'SP1MD6X7YCGAND90JHCXVN7554HYN20X9QGGPNGND) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u46) 'SP31H74NVF7F72DHZ64VFDTN2YDPGA7684F7JE57R))
      (map-set token-count 'SP31H74NVF7F72DHZ64VFDTN2YDPGA7684F7JE57R (+ (get-balance 'SP31H74NVF7F72DHZ64VFDTN2YDPGA7684F7JE57R) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u47) 'SPZ19MYV266QGSRNAQB7KVSSWRAF60R4KVQTC6T9))
      (map-set token-count 'SPZ19MYV266QGSRNAQB7KVSSWRAF60R4KVQTC6T9 (+ (get-balance 'SPZ19MYV266QGSRNAQB7KVSSWRAF60R4KVQTC6T9) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u48) 'SPZ19MYV266QGSRNAQB7KVSSWRAF60R4KVQTC6T9))
      (map-set token-count 'SPZ19MYV266QGSRNAQB7KVSSWRAF60R4KVQTC6T9 (+ (get-balance 'SPZ19MYV266QGSRNAQB7KVSSWRAF60R4KVQTC6T9) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u49) 'SPYW2W5PD6M1VC1DCQYMFGG6248658WJ0BBMX0AN))
      (map-set token-count 'SPYW2W5PD6M1VC1DCQYMFGG6248658WJ0BBMX0AN (+ (get-balance 'SPYW2W5PD6M1VC1DCQYMFGG6248658WJ0BBMX0AN) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u50) 'SPYW2W5PD6M1VC1DCQYMFGG6248658WJ0BBMX0AN))
      (map-set token-count 'SPYW2W5PD6M1VC1DCQYMFGG6248658WJ0BBMX0AN (+ (get-balance 'SPYW2W5PD6M1VC1DCQYMFGG6248658WJ0BBMX0AN) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u51) 'SP134WVYSD9FSTY8VF2K3P23R8HX28TF2X14FCA23))
      (map-set token-count 'SP134WVYSD9FSTY8VF2K3P23R8HX28TF2X14FCA23 (+ (get-balance 'SP134WVYSD9FSTY8VF2K3P23R8HX28TF2X14FCA23) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u52) 'SP134WVYSD9FSTY8VF2K3P23R8HX28TF2X14FCA23))
      (map-set token-count 'SP134WVYSD9FSTY8VF2K3P23R8HX28TF2X14FCA23 (+ (get-balance 'SP134WVYSD9FSTY8VF2K3P23R8HX28TF2X14FCA23) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u53) 'SP1F241J96ZRNCHAJZ2F29EDGV314HEFRDY5TRBE6))
      (map-set token-count 'SP1F241J96ZRNCHAJZ2F29EDGV314HEFRDY5TRBE6 (+ (get-balance 'SP1F241J96ZRNCHAJZ2F29EDGV314HEFRDY5TRBE6) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u54) 'SP1F241J96ZRNCHAJZ2F29EDGV314HEFRDY5TRBE6))
      (map-set token-count 'SP1F241J96ZRNCHAJZ2F29EDGV314HEFRDY5TRBE6 (+ (get-balance 'SP1F241J96ZRNCHAJZ2F29EDGV314HEFRDY5TRBE6) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u55) 'SP10SD0P0ACTT6DRAV5ZR5JD7SCJS094345JAEWZH))
      (map-set token-count 'SP10SD0P0ACTT6DRAV5ZR5JD7SCJS094345JAEWZH (+ (get-balance 'SP10SD0P0ACTT6DRAV5ZR5JD7SCJS094345JAEWZH) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u56) 'SP10SD0P0ACTT6DRAV5ZR5JD7SCJS094345JAEWZH))
      (map-set token-count 'SP10SD0P0ACTT6DRAV5ZR5JD7SCJS094345JAEWZH (+ (get-balance 'SP10SD0P0ACTT6DRAV5ZR5JD7SCJS094345JAEWZH) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u57) 'SPRWN4Q2AC9PEH1ZR6R44CB35MRATVTBEHYS6SW2))
      (map-set token-count 'SPRWN4Q2AC9PEH1ZR6R44CB35MRATVTBEHYS6SW2 (+ (get-balance 'SPRWN4Q2AC9PEH1ZR6R44CB35MRATVTBEHYS6SW2) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u58) 'SPRWN4Q2AC9PEH1ZR6R44CB35MRATVTBEHYS6SW2))
      (map-set token-count 'SPRWN4Q2AC9PEH1ZR6R44CB35MRATVTBEHYS6SW2 (+ (get-balance 'SPRWN4Q2AC9PEH1ZR6R44CB35MRATVTBEHYS6SW2) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u59) 'SP26SV2BEHCDKBMDQ7F75WM952BENGB2GP2PH6JGV))
      (map-set token-count 'SP26SV2BEHCDKBMDQ7F75WM952BENGB2GP2PH6JGV (+ (get-balance 'SP26SV2BEHCDKBMDQ7F75WM952BENGB2GP2PH6JGV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u60) 'SP26SV2BEHCDKBMDQ7F75WM952BENGB2GP2PH6JGV))
      (map-set token-count 'SP26SV2BEHCDKBMDQ7F75WM952BENGB2GP2PH6JGV (+ (get-balance 'SP26SV2BEHCDKBMDQ7F75WM952BENGB2GP2PH6JGV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u61) 'SP2E7ME1VAKBT15J6XB7TRE1VV9YJBPDV2VHWYXVD))
      (map-set token-count 'SP2E7ME1VAKBT15J6XB7TRE1VV9YJBPDV2VHWYXVD (+ (get-balance 'SP2E7ME1VAKBT15J6XB7TRE1VV9YJBPDV2VHWYXVD) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u62) 'SP2E7ME1VAKBT15J6XB7TRE1VV9YJBPDV2VHWYXVD))
      (map-set token-count 'SP2E7ME1VAKBT15J6XB7TRE1VV9YJBPDV2VHWYXVD (+ (get-balance 'SP2E7ME1VAKBT15J6XB7TRE1VV9YJBPDV2VHWYXVD) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u63) 'SP13RS6MJNH4KS8KBHV39EZSEAVJMKJBCTZJB3TVB))
      (map-set token-count 'SP13RS6MJNH4KS8KBHV39EZSEAVJMKJBCTZJB3TVB (+ (get-balance 'SP13RS6MJNH4KS8KBHV39EZSEAVJMKJBCTZJB3TVB) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u64) 'SP1P7CSZ92S7MNJEZNHW94Q2MEE688GG9AXZ6RKTT))
      (map-set token-count 'SP1P7CSZ92S7MNJEZNHW94Q2MEE688GG9AXZ6RKTT (+ (get-balance 'SP1P7CSZ92S7MNJEZNHW94Q2MEE688GG9AXZ6RKTT) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u65) 'SP1P7CSZ92S7MNJEZNHW94Q2MEE688GG9AXZ6RKTT))
      (map-set token-count 'SP1P7CSZ92S7MNJEZNHW94Q2MEE688GG9AXZ6RKTT (+ (get-balance 'SP1P7CSZ92S7MNJEZNHW94Q2MEE688GG9AXZ6RKTT) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u66) 'SP5C0PFSR7DQ5MZ8EZPVJMYCGAA1A62Z0MQ8GSNN))
      (map-set token-count 'SP5C0PFSR7DQ5MZ8EZPVJMYCGAA1A62Z0MQ8GSNN (+ (get-balance 'SP5C0PFSR7DQ5MZ8EZPVJMYCGAA1A62Z0MQ8GSNN) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u67) 'SP3F112BVRN91P9FEX8PZSDFGCPNJEF1X5GE2BE56))
      (map-set token-count 'SP3F112BVRN91P9FEX8PZSDFGCPNJEF1X5GE2BE56 (+ (get-balance 'SP3F112BVRN91P9FEX8PZSDFGCPNJEF1X5GE2BE56) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u68) 'SP1N47A56HF6JJME9ZT6R0YZ7Q8EBMN3YK95Y62G4))
      (map-set token-count 'SP1N47A56HF6JJME9ZT6R0YZ7Q8EBMN3YK95Y62G4 (+ (get-balance 'SP1N47A56HF6JJME9ZT6R0YZ7Q8EBMN3YK95Y62G4) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u69) 'SP22NX6R6TZFTFKZFVNFBSKFR3HX8TKCFS6Y367SA))
      (map-set token-count 'SP22NX6R6TZFTFKZFVNFBSKFR3HX8TKCFS6Y367SA (+ (get-balance 'SP22NX6R6TZFTFKZFVNFBSKFR3HX8TKCFS6Y367SA) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u70) 'SP22NX6R6TZFTFKZFVNFBSKFR3HX8TKCFS6Y367SA))
      (map-set token-count 'SP22NX6R6TZFTFKZFVNFBSKFR3HX8TKCFS6Y367SA (+ (get-balance 'SP22NX6R6TZFTFKZFVNFBSKFR3HX8TKCFS6Y367SA) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u71) 'SP3RSGWXZ04KP7JMF4T2TKN4AV1TEFF7VBGB73YEK))
      (map-set token-count 'SP3RSGWXZ04KP7JMF4T2TKN4AV1TEFF7VBGB73YEK (+ (get-balance 'SP3RSGWXZ04KP7JMF4T2TKN4AV1TEFF7VBGB73YEK) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u72) 'SP3GMRFK5WTMFV78EH6Q5NS01WRBC0K3GM86XQYY0))
      (map-set token-count 'SP3GMRFK5WTMFV78EH6Q5NS01WRBC0K3GM86XQYY0 (+ (get-balance 'SP3GMRFK5WTMFV78EH6Q5NS01WRBC0K3GM86XQYY0) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u73) 'SPV0TKDGMXT6JC6YVTZW0FXBFEZ5E6AAWWM66CNF))
      (map-set token-count 'SPV0TKDGMXT6JC6YVTZW0FXBFEZ5E6AAWWM66CNF (+ (get-balance 'SPV0TKDGMXT6JC6YVTZW0FXBFEZ5E6AAWWM66CNF) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u74) 'SP23QKEZZ4V24BC7WJY106V2FBECWWW4PQC83CV7G))
      (map-set token-count 'SP23QKEZZ4V24BC7WJY106V2FBECWWW4PQC83CV7G (+ (get-balance 'SP23QKEZZ4V24BC7WJY106V2FBECWWW4PQC83CV7G) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u75) 'SPSQBEC0WP9QYQ4KFE502M7ZXRAQ5FKCA1YVRGB5))
      (map-set token-count 'SPSQBEC0WP9QYQ4KFE502M7ZXRAQ5FKCA1YVRGB5 (+ (get-balance 'SPSQBEC0WP9QYQ4KFE502M7ZXRAQ5FKCA1YVRGB5) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u76) 'SP2KNK3PH5926XKZER449D0EWZYYZNFY425T6DDMV))
      (map-set token-count 'SP2KNK3PH5926XKZER449D0EWZYYZNFY425T6DDMV (+ (get-balance 'SP2KNK3PH5926XKZER449D0EWZYYZNFY425T6DDMV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u77) 'SP437VJHB3KTBZE0NHNN44XCJXFP1J09ZEJW0Q3W))
      (map-set token-count 'SP437VJHB3KTBZE0NHNN44XCJXFP1J09ZEJW0Q3W (+ (get-balance 'SP437VJHB3KTBZE0NHNN44XCJXFP1J09ZEJW0Q3W) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u78) 'SP2KNK3PH5926XKZER449D0EWZYYZNFY425T6DDMV))
      (map-set token-count 'SP2KNK3PH5926XKZER449D0EWZYYZNFY425T6DDMV (+ (get-balance 'SP2KNK3PH5926XKZER449D0EWZYYZNFY425T6DDMV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u79) 'SP437VJHB3KTBZE0NHNN44XCJXFP1J09ZEJW0Q3W))
      (map-set token-count 'SP437VJHB3KTBZE0NHNN44XCJXFP1J09ZEJW0Q3W (+ (get-balance 'SP437VJHB3KTBZE0NHNN44XCJXFP1J09ZEJW0Q3W) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u80) 'SPSG6HMWBGTB4SCHJQ96PRRX7MGA9CN33FD58CN8))
      (map-set token-count 'SPSG6HMWBGTB4SCHJQ96PRRX7MGA9CN33FD58CN8 (+ (get-balance 'SPSG6HMWBGTB4SCHJQ96PRRX7MGA9CN33FD58CN8) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u81) 'SP1SY0SAEQP2CMZMN7W55VTN05C0V3VDGSTWNYJKP))
      (map-set token-count 'SP1SY0SAEQP2CMZMN7W55VTN05C0V3VDGSTWNYJKP (+ (get-balance 'SP1SY0SAEQP2CMZMN7W55VTN05C0V3VDGSTWNYJKP) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u82) 'SP201Z91FYNSKFWPXZAD2N2WF3D3K4NF8S0GPT2BY))
      (map-set token-count 'SP201Z91FYNSKFWPXZAD2N2WF3D3K4NF8S0GPT2BY (+ (get-balance 'SP201Z91FYNSKFWPXZAD2N2WF3D3K4NF8S0GPT2BY) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u83) 'SPQERMQHETMEBPYJQP95WJ2M6QKVM30V6FFQDR4K))
      (map-set token-count 'SPQERMQHETMEBPYJQP95WJ2M6QKVM30V6FFQDR4K (+ (get-balance 'SPQERMQHETMEBPYJQP95WJ2M6QKVM30V6FFQDR4K) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u84) 'SP1AFGVVSTBKZ0NQVB317HQTE6V557KEZM0977X3A))
      (map-set token-count 'SP1AFGVVSTBKZ0NQVB317HQTE6V557KEZM0977X3A (+ (get-balance 'SP1AFGVVSTBKZ0NQVB317HQTE6V557KEZM0977X3A) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u85) 'SP1AFGVVSTBKZ0NQVB317HQTE6V557KEZM0977X3A))
      (map-set token-count 'SP1AFGVVSTBKZ0NQVB317HQTE6V557KEZM0977X3A (+ (get-balance 'SP1AFGVVSTBKZ0NQVB317HQTE6V557KEZM0977X3A) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u86) 'SPCBDM72F3KK2GS4SF682SYSE8F1JPBDNJMHECKC))
      (map-set token-count 'SPCBDM72F3KK2GS4SF682SYSE8F1JPBDNJMHECKC (+ (get-balance 'SPCBDM72F3KK2GS4SF682SYSE8F1JPBDNJMHECKC) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u87) 'SPE53TJS3RRGGBQ5WB3R443VRZAP1A77GGCB7VCW))
      (map-set token-count 'SPE53TJS3RRGGBQ5WB3R443VRZAP1A77GGCB7VCW (+ (get-balance 'SPE53TJS3RRGGBQ5WB3R443VRZAP1A77GGCB7VCW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u88) 'SP243EH1N3Q40XF4V8ECJ5301G0GE2GXT4CY1CHMS))
      (map-set token-count 'SP243EH1N3Q40XF4V8ECJ5301G0GE2GXT4CY1CHMS (+ (get-balance 'SP243EH1N3Q40XF4V8ECJ5301G0GE2GXT4CY1CHMS) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u89) 'SP260JTHQ2X3C8JDTCSCF5AQPGRWWEPD91GQQ60X0))
      (map-set token-count 'SP260JTHQ2X3C8JDTCSCF5AQPGRWWEPD91GQQ60X0 (+ (get-balance 'SP260JTHQ2X3C8JDTCSCF5AQPGRWWEPD91GQQ60X0) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u90) 'SP1Y6QVWXRWD6DB1ASD6DP8Q3YE0H6GEGKWAQTJJR))
      (map-set token-count 'SP1Y6QVWXRWD6DB1ASD6DP8Q3YE0H6GEGKWAQTJJR (+ (get-balance 'SP1Y6QVWXRWD6DB1ASD6DP8Q3YE0H6GEGKWAQTJJR) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u91) 'SP1HTS1GPXM898GWBBNGCDXKG92PRNHYKB96M534P))
      (map-set token-count 'SP1HTS1GPXM898GWBBNGCDXKG92PRNHYKB96M534P (+ (get-balance 'SP1HTS1GPXM898GWBBNGCDXKG92PRNHYKB96M534P) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u92) 'SP3PZTD2JK9Z6RB01YE93RDWGEGBGDYH7PDXW4VF1))
      (map-set token-count 'SP3PZTD2JK9Z6RB01YE93RDWGEGBGDYH7PDXW4VF1 (+ (get-balance 'SP3PZTD2JK9Z6RB01YE93RDWGEGBGDYH7PDXW4VF1) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u93) 'SP134RS1XC59ZXH5JBX8BGFPN7E5Z5YQS38F60KAE))
      (map-set token-count 'SP134RS1XC59ZXH5JBX8BGFPN7E5Z5YQS38F60KAE (+ (get-balance 'SP134RS1XC59ZXH5JBX8BGFPN7E5Z5YQS38F60KAE) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u94) 'SP2DBV6ECCCR310MJPW9E3NNMEYH2VAH8JJW53WFT))
      (map-set token-count 'SP2DBV6ECCCR310MJPW9E3NNMEYH2VAH8JJW53WFT (+ (get-balance 'SP2DBV6ECCCR310MJPW9E3NNMEYH2VAH8JJW53WFT) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u95) 'SPMWVSE0P6FMXFFED4RHD3JVHZR00M2QSM8Z57X1))
      (map-set token-count 'SPMWVSE0P6FMXFFED4RHD3JVHZR00M2QSM8Z57X1 (+ (get-balance 'SPMWVSE0P6FMXFFED4RHD3JVHZR00M2QSM8Z57X1) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u96) 'SP3H0MHDT1P1TGZ6PXXWFHN36D3Y1T24M4JP01Y8G))
      (map-set token-count 'SP3H0MHDT1P1TGZ6PXXWFHN36D3Y1T24M4JP01Y8G (+ (get-balance 'SP3H0MHDT1P1TGZ6PXXWFHN36D3Y1T24M4JP01Y8G) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u97) 'SP2JA9B5ZTGWVT8B5GB6AE7C6P2Y55VPZEGJ882SK))
      (map-set token-count 'SP2JA9B5ZTGWVT8B5GB6AE7C6P2Y55VPZEGJ882SK (+ (get-balance 'SP2JA9B5ZTGWVT8B5GB6AE7C6P2Y55VPZEGJ882SK) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u98) 'SP3H0MHDT1P1TGZ6PXXWFHN36D3Y1T24M4JP01Y8G))
      (map-set token-count 'SP3H0MHDT1P1TGZ6PXXWFHN36D3Y1T24M4JP01Y8G (+ (get-balance 'SP3H0MHDT1P1TGZ6PXXWFHN36D3Y1T24M4JP01Y8G) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u99) 'SP3P7BWQHVS5P7NT12QT5R8C5JE1GFZX1QCAWJMC5))
      (map-set token-count 'SP3P7BWQHVS5P7NT12QT5R8C5JE1GFZX1QCAWJMC5 (+ (get-balance 'SP3P7BWQHVS5P7NT12QT5R8C5JE1GFZX1QCAWJMC5) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u100) 'SP3P7BWQHVS5P7NT12QT5R8C5JE1GFZX1QCAWJMC5))
      (map-set token-count 'SP3P7BWQHVS5P7NT12QT5R8C5JE1GFZX1QCAWJMC5 (+ (get-balance 'SP3P7BWQHVS5P7NT12QT5R8C5JE1GFZX1QCAWJMC5) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u101) 'SP2K84DNA8FDWP0FRZ8RDX9Y1YKMEJRMJ5KWE6H6R))
      (map-set token-count 'SP2K84DNA8FDWP0FRZ8RDX9Y1YKMEJRMJ5KWE6H6R (+ (get-balance 'SP2K84DNA8FDWP0FRZ8RDX9Y1YKMEJRMJ5KWE6H6R) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u102) 'SP27XETW8EXNSKH27JMHBEVM5RBKDHX8A90BV6MKJ))
      (map-set token-count 'SP27XETW8EXNSKH27JMHBEVM5RBKDHX8A90BV6MKJ (+ (get-balance 'SP27XETW8EXNSKH27JMHBEVM5RBKDHX8A90BV6MKJ) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u103) 'SPTWX2M0YS70N190HW206C23KBEHXCJ5C5PMTCV0))
      (map-set token-count 'SPTWX2M0YS70N190HW206C23KBEHXCJ5C5PMTCV0 (+ (get-balance 'SPTWX2M0YS70N190HW206C23KBEHXCJ5C5PMTCV0) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u104) 'SP1K8KEAF4RBD13C5TSFFK2C05Z8GXPWYCPGCGDSC))
      (map-set token-count 'SP1K8KEAF4RBD13C5TSFFK2C05Z8GXPWYCPGCGDSC (+ (get-balance 'SP1K8KEAF4RBD13C5TSFFK2C05Z8GXPWYCPGCGDSC) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u105) 'SP2A33VG6D1PAB4VZ2AEXM5BEP6QVYBA26Y2C92JQ))
      (map-set token-count 'SP2A33VG6D1PAB4VZ2AEXM5BEP6QVYBA26Y2C92JQ (+ (get-balance 'SP2A33VG6D1PAB4VZ2AEXM5BEP6QVYBA26Y2C92JQ) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u106) 'SP1K8KEAF4RBD13C5TSFFK2C05Z8GXPWYCPGCGDSC))
      (map-set token-count 'SP1K8KEAF4RBD13C5TSFFK2C05Z8GXPWYCPGCGDSC (+ (get-balance 'SP1K8KEAF4RBD13C5TSFFK2C05Z8GXPWYCPGCGDSC) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u107) 'SP1K8KEAF4RBD13C5TSFFK2C05Z8GXPWYCPGCGDSC))
      (map-set token-count 'SP1K8KEAF4RBD13C5TSFFK2C05Z8GXPWYCPGCGDSC (+ (get-balance 'SP1K8KEAF4RBD13C5TSFFK2C05Z8GXPWYCPGCGDSC) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u108) 'SP2AABZXPT4P0ZN0EDBF3C2S7PA92X2JNC5BA8Q6A))
      (map-set token-count 'SP2AABZXPT4P0ZN0EDBF3C2S7PA92X2JNC5BA8Q6A (+ (get-balance 'SP2AABZXPT4P0ZN0EDBF3C2S7PA92X2JNC5BA8Q6A) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u109) 'SP10P4RBNAFSWP12PB2DZZVDBNZQ3Z35NY9TE40KA))
      (map-set token-count 'SP10P4RBNAFSWP12PB2DZZVDBNZQ3Z35NY9TE40KA (+ (get-balance 'SP10P4RBNAFSWP12PB2DZZVDBNZQ3Z35NY9TE40KA) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u110) 'SP26FWR1J3N70GB88198KMSMPQX66R3VTCHWPEEH4))
      (map-set token-count 'SP26FWR1J3N70GB88198KMSMPQX66R3VTCHWPEEH4 (+ (get-balance 'SP26FWR1J3N70GB88198KMSMPQX66R3VTCHWPEEH4) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u111) 'SP3TTDRVRJ64QB30KWCNQ64KMRBMY8G6X1KAVZK2W))
      (map-set token-count 'SP3TTDRVRJ64QB30KWCNQ64KMRBMY8G6X1KAVZK2W (+ (get-balance 'SP3TTDRVRJ64QB30KWCNQ64KMRBMY8G6X1KAVZK2W) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u112) 'SP2Y956R75ARJA5B8ECG5JYTA24BARPGH1MKVKM2X))
      (map-set token-count 'SP2Y956R75ARJA5B8ECG5JYTA24BARPGH1MKVKM2X (+ (get-balance 'SP2Y956R75ARJA5B8ECG5JYTA24BARPGH1MKVKM2X) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u113) 'SP3T21JHSDBZ78WP2VM73XDTEDGR6T22WY3VGZMHA))
      (map-set token-count 'SP3T21JHSDBZ78WP2VM73XDTEDGR6T22WY3VGZMHA (+ (get-balance 'SP3T21JHSDBZ78WP2VM73XDTEDGR6T22WY3VGZMHA) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u114) 'SP1DK65NQJKJQKAD2Y8CXAPE0Z6ZMPCYND79N8R5T))
      (map-set token-count 'SP1DK65NQJKJQKAD2Y8CXAPE0Z6ZMPCYND79N8R5T (+ (get-balance 'SP1DK65NQJKJQKAD2Y8CXAPE0Z6ZMPCYND79N8R5T) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u115) 'SP2EQPXDBZC17EPZ4093Y7PYVG3M00JWFYCTF7K3A))
      (map-set token-count 'SP2EQPXDBZC17EPZ4093Y7PYVG3M00JWFYCTF7K3A (+ (get-balance 'SP2EQPXDBZC17EPZ4093Y7PYVG3M00JWFYCTF7K3A) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u116) 'SP1M6DG0SKHQKP3DX275ACV5QWBM8JF4WB6WFQK79))
      (map-set token-count 'SP1M6DG0SKHQKP3DX275ACV5QWBM8JF4WB6WFQK79 (+ (get-balance 'SP1M6DG0SKHQKP3DX275ACV5QWBM8JF4WB6WFQK79) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u117) 'SPB2FW8HEEFNZVNFZV4YXFRQX2S1299A2VSM0YC4))
      (map-set token-count 'SPB2FW8HEEFNZVNFZV4YXFRQX2S1299A2VSM0YC4 (+ (get-balance 'SPB2FW8HEEFNZVNFZV4YXFRQX2S1299A2VSM0YC4) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u118) 'SP14R0Y181KZ923X11DF50XVFJQRKX29EZX94GYKW))
      (map-set token-count 'SP14R0Y181KZ923X11DF50XVFJQRKX29EZX94GYKW (+ (get-balance 'SP14R0Y181KZ923X11DF50XVFJQRKX29EZX94GYKW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u119) 'SP2CXS1VXY232FKSM2M1BGPR2Y2EJ39DTVZ4KSDXE))
      (map-set token-count 'SP2CXS1VXY232FKSM2M1BGPR2Y2EJ39DTVZ4KSDXE (+ (get-balance 'SP2CXS1VXY232FKSM2M1BGPR2Y2EJ39DTVZ4KSDXE) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u120) 'SP19Y8ZTJ34YV969TSCA95DB0HSFDF3J5S2KPAYP))
      (map-set token-count 'SP19Y8ZTJ34YV969TSCA95DB0HSFDF3J5S2KPAYP (+ (get-balance 'SP19Y8ZTJ34YV969TSCA95DB0HSFDF3J5S2KPAYP) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u121) 'SPHMRYSD9K0VXNHTBPBE8PS5PMN6PRN1RM44J9E8))
      (map-set token-count 'SPHMRYSD9K0VXNHTBPBE8PS5PMN6PRN1RM44J9E8 (+ (get-balance 'SPHMRYSD9K0VXNHTBPBE8PS5PMN6PRN1RM44J9E8) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u122) 'SP2PV752J9ZF20Y2NNSN51RDZ2H96W6ZCEPP8Y2TF))
      (map-set token-count 'SP2PV752J9ZF20Y2NNSN51RDZ2H96W6ZCEPP8Y2TF (+ (get-balance 'SP2PV752J9ZF20Y2NNSN51RDZ2H96W6ZCEPP8Y2TF) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u123) 'SPR28HBNHVZ8SE8SFF23GCJMHKQYPTBBHTACZMHS))
      (map-set token-count 'SPR28HBNHVZ8SE8SFF23GCJMHKQYPTBBHTACZMHS (+ (get-balance 'SPR28HBNHVZ8SE8SFF23GCJMHKQYPTBBHTACZMHS) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u124) 'SPND7X93RAKAN9PE3PBE9YVJHDS0MTWYVZ5MWFCW))
      (map-set token-count 'SPND7X93RAKAN9PE3PBE9YVJHDS0MTWYVZ5MWFCW (+ (get-balance 'SPND7X93RAKAN9PE3PBE9YVJHDS0MTWYVZ5MWFCW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u125) 'SP2D7FA78D94AC3KP9N9YPNH29EW9KE01G2JWSQZR))
      (map-set token-count 'SP2D7FA78D94AC3KP9N9YPNH29EW9KE01G2JWSQZR (+ (get-balance 'SP2D7FA78D94AC3KP9N9YPNH29EW9KE01G2JWSQZR) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u126) 'SP3NG46X7Z3C3PCYJ83PY5BXYWYGE2XNBCM38VJVV))
      (map-set token-count 'SP3NG46X7Z3C3PCYJ83PY5BXYWYGE2XNBCM38VJVV (+ (get-balance 'SP3NG46X7Z3C3PCYJ83PY5BXYWYGE2XNBCM38VJVV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u127) 'SPVPNBMFAYXEMQQ6E2QQ9G42WZWVRKZ0R8TP4M8P))
      (map-set token-count 'SPVPNBMFAYXEMQQ6E2QQ9G42WZWVRKZ0R8TP4M8P (+ (get-balance 'SPVPNBMFAYXEMQQ6E2QQ9G42WZWVRKZ0R8TP4M8P) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u128) 'SP3Q0E1YPHTY66F9A3NAF18CG01HYH3ZECW01R67M))
      (map-set token-count 'SP3Q0E1YPHTY66F9A3NAF18CG01HYH3ZECW01R67M (+ (get-balance 'SP3Q0E1YPHTY66F9A3NAF18CG01HYH3ZECW01R67M) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u129) 'SP3RP5N05CEZ7GZ5YXGVD4V790YCSG1BX4X8K7F4H))
      (map-set token-count 'SP3RP5N05CEZ7GZ5YXGVD4V790YCSG1BX4X8K7F4H (+ (get-balance 'SP3RP5N05CEZ7GZ5YXGVD4V790YCSG1BX4X8K7F4H) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u130) 'SP27MDCJA491AFAJ4ZCD1KRR3NQ9S3WEPCEJA3CK4))
      (map-set token-count 'SP27MDCJA491AFAJ4ZCD1KRR3NQ9S3WEPCEJA3CK4 (+ (get-balance 'SP27MDCJA491AFAJ4ZCD1KRR3NQ9S3WEPCEJA3CK4) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u131) 'SP1TY6XRGZ9868PB9Z7RPMYKZ02SWN48H5EP33RT6))
      (map-set token-count 'SP1TY6XRGZ9868PB9Z7RPMYKZ02SWN48H5EP33RT6 (+ (get-balance 'SP1TY6XRGZ9868PB9Z7RPMYKZ02SWN48H5EP33RT6) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u132) 'SPMEWFQ52X2GN1TA9PWNF4G784BCDMJP4AXRW8JV))
      (map-set token-count 'SPMEWFQ52X2GN1TA9PWNF4G784BCDMJP4AXRW8JV (+ (get-balance 'SPMEWFQ52X2GN1TA9PWNF4G784BCDMJP4AXRW8JV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u133) 'SP3YEGNXQ5DCNBR8CEHAJS29Z70EAQNK4G8XSYG8S))
      (map-set token-count 'SP3YEGNXQ5DCNBR8CEHAJS29Z70EAQNK4G8XSYG8S (+ (get-balance 'SP3YEGNXQ5DCNBR8CEHAJS29Z70EAQNK4G8XSYG8S) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u134) 'SP3AX5V8YWHGXCMP1K6KTEN7DJH9X7SFCTZX4C9E4))
      (map-set token-count 'SP3AX5V8YWHGXCMP1K6KTEN7DJH9X7SFCTZX4C9E4 (+ (get-balance 'SP3AX5V8YWHGXCMP1K6KTEN7DJH9X7SFCTZX4C9E4) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u135) 'SP4DE4WK8JZQ5P7VCB8010601Q8123WMG3501GNC))
      (map-set token-count 'SP4DE4WK8JZQ5P7VCB8010601Q8123WMG3501GNC (+ (get-balance 'SP4DE4WK8JZQ5P7VCB8010601Q8123WMG3501GNC) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u136) 'SP2BWDN6472NHFDDR9BR3SGG24DEPHN1Q704YTEAQ))
      (map-set token-count 'SP2BWDN6472NHFDDR9BR3SGG24DEPHN1Q704YTEAQ (+ (get-balance 'SP2BWDN6472NHFDDR9BR3SGG24DEPHN1Q704YTEAQ) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u137) 'SP1TRQD2V0JBF5DTKH3XX1GXDCEDS0KMC55NNDRE2))
      (map-set token-count 'SP1TRQD2V0JBF5DTKH3XX1GXDCEDS0KMC55NNDRE2 (+ (get-balance 'SP1TRQD2V0JBF5DTKH3XX1GXDCEDS0KMC55NNDRE2) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u138) 'SP1ZGCNTH4G8A4WXCQD5Z7J1WGNHCY2QTPTVGZAKE))
      (map-set token-count 'SP1ZGCNTH4G8A4WXCQD5Z7J1WGNHCY2QTPTVGZAKE (+ (get-balance 'SP1ZGCNTH4G8A4WXCQD5Z7J1WGNHCY2QTPTVGZAKE) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u139) 'SPXM0C3FB9TG89Z1SJGHDS61HX6TVA47J4XSTMNM))
      (map-set token-count 'SPXM0C3FB9TG89Z1SJGHDS61HX6TVA47J4XSTMNM (+ (get-balance 'SPXM0C3FB9TG89Z1SJGHDS61HX6TVA47J4XSTMNM) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u140) 'SP27KJ1WYHN8MMKVAZRE70204G4H24E028RGM2C8F))
      (map-set token-count 'SP27KJ1WYHN8MMKVAZRE70204G4H24E028RGM2C8F (+ (get-balance 'SP27KJ1WYHN8MMKVAZRE70204G4H24E028RGM2C8F) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u141) 'SP2178T1MJPZ4J1RKGWDNK4JYK7GPF8S1QMJCN3NW))
      (map-set token-count 'SP2178T1MJPZ4J1RKGWDNK4JYK7GPF8S1QMJCN3NW (+ (get-balance 'SP2178T1MJPZ4J1RKGWDNK4JYK7GPF8S1QMJCN3NW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u142) 'SP2G95A8R0VSZENYSG2GC3B5T51FE6J9JPEDYT6D0))
      (map-set token-count 'SP2G95A8R0VSZENYSG2GC3B5T51FE6J9JPEDYT6D0 (+ (get-balance 'SP2G95A8R0VSZENYSG2GC3B5T51FE6J9JPEDYT6D0) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u143) 'SP3HJ0WG5EE89FQP4QRHCQ9BNA9Y96XHE24AFZHJR))
      (map-set token-count 'SP3HJ0WG5EE89FQP4QRHCQ9BNA9Y96XHE24AFZHJR (+ (get-balance 'SP3HJ0WG5EE89FQP4QRHCQ9BNA9Y96XHE24AFZHJR) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u144) 'SP19T1N6K3BJSN36W0R8XXVS17TMEEWKE6EJ2QBHV))
      (map-set token-count 'SP19T1N6K3BJSN36W0R8XXVS17TMEEWKE6EJ2QBHV (+ (get-balance 'SP19T1N6K3BJSN36W0R8XXVS17TMEEWKE6EJ2QBHV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u145) 'SP5B108YFD55W54P9KRABKEBHVP12HY4NZ488RGV))
      (map-set token-count 'SP5B108YFD55W54P9KRABKEBHVP12HY4NZ488RGV (+ (get-balance 'SP5B108YFD55W54P9KRABKEBHVP12HY4NZ488RGV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u146) 'SPR5QC6DGE99K2TYMKD61RP9VFAGAPS9FS07FKWT))
      (map-set token-count 'SPR5QC6DGE99K2TYMKD61RP9VFAGAPS9FS07FKWT (+ (get-balance 'SPR5QC6DGE99K2TYMKD61RP9VFAGAPS9FS07FKWT) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u147) 'SP1HRTTVN98NHDXWWSJ51Y0H3YCERM7T95K08ASV9))
      (map-set token-count 'SP1HRTTVN98NHDXWWSJ51Y0H3YCERM7T95K08ASV9 (+ (get-balance 'SP1HRTTVN98NHDXWWSJ51Y0H3YCERM7T95K08ASV9) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u148) 'SP197ZTN7J9B4XFYRJ8SBZ9DTJEG6QYRJXPQRNZEW))
      (map-set token-count 'SP197ZTN7J9B4XFYRJ8SBZ9DTJEG6QYRJXPQRNZEW (+ (get-balance 'SP197ZTN7J9B4XFYRJ8SBZ9DTJEG6QYRJXPQRNZEW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u149) 'SP3W540EXEJXYV7MX5358NZJKPJXNGQ3F91DJ92YX))
      (map-set token-count 'SP3W540EXEJXYV7MX5358NZJKPJXNGQ3F91DJ92YX (+ (get-balance 'SP3W540EXEJXYV7MX5358NZJKPJXNGQ3F91DJ92YX) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u150) 'SP2JA7SAY1YWWY7FMJ86H35RP3AHCVCZ6NJVCRXEN))
      (map-set token-count 'SP2JA7SAY1YWWY7FMJ86H35RP3AHCVCZ6NJVCRXEN (+ (get-balance 'SP2JA7SAY1YWWY7FMJ86H35RP3AHCVCZ6NJVCRXEN) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u151) 'SPXM0C3FB9TG89Z1SJGHDS61HX6TVA47J4XSTMNM))
      (map-set token-count 'SPXM0C3FB9TG89Z1SJGHDS61HX6TVA47J4XSTMNM (+ (get-balance 'SPXM0C3FB9TG89Z1SJGHDS61HX6TVA47J4XSTMNM) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u152) 'SP27KJ1WYHN8MMKVAZRE70204G4H24E028RGM2C8F))
      (map-set token-count 'SP27KJ1WYHN8MMKVAZRE70204G4H24E028RGM2C8F (+ (get-balance 'SP27KJ1WYHN8MMKVAZRE70204G4H24E028RGM2C8F) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u153) 'SP2178T1MJPZ4J1RKGWDNK4JYK7GPF8S1QMJCN3NW))
      (map-set token-count 'SP2178T1MJPZ4J1RKGWDNK4JYK7GPF8S1QMJCN3NW (+ (get-balance 'SP2178T1MJPZ4J1RKGWDNK4JYK7GPF8S1QMJCN3NW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u154) 'SP2G95A8R0VSZENYSG2GC3B5T51FE6J9JPEDYT6D0))
      (map-set token-count 'SP2G95A8R0VSZENYSG2GC3B5T51FE6J9JPEDYT6D0 (+ (get-balance 'SP2G95A8R0VSZENYSG2GC3B5T51FE6J9JPEDYT6D0) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u155) 'SP3HJ0WG5EE89FQP4QRHCQ9BNA9Y96XHE24AFZHJR))
      (map-set token-count 'SP3HJ0WG5EE89FQP4QRHCQ9BNA9Y96XHE24AFZHJR (+ (get-balance 'SP3HJ0WG5EE89FQP4QRHCQ9BNA9Y96XHE24AFZHJR) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u156) 'SP19T1N6K3BJSN36W0R8XXVS17TMEEWKE6EJ2QBHV))
      (map-set token-count 'SP19T1N6K3BJSN36W0R8XXVS17TMEEWKE6EJ2QBHV (+ (get-balance 'SP19T1N6K3BJSN36W0R8XXVS17TMEEWKE6EJ2QBHV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u157) 'SP5B108YFD55W54P9KRABKEBHVP12HY4NZ488RGV))
      (map-set token-count 'SP5B108YFD55W54P9KRABKEBHVP12HY4NZ488RGV (+ (get-balance 'SP5B108YFD55W54P9KRABKEBHVP12HY4NZ488RGV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u158) 'SPR5QC6DGE99K2TYMKD61RP9VFAGAPS9FS07FKWT))
      (map-set token-count 'SPR5QC6DGE99K2TYMKD61RP9VFAGAPS9FS07FKWT (+ (get-balance 'SPR5QC6DGE99K2TYMKD61RP9VFAGAPS9FS07FKWT) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u159) 'SP1HRTTVN98NHDXWWSJ51Y0H3YCERM7T95K08ASV9))
      (map-set token-count 'SP1HRTTVN98NHDXWWSJ51Y0H3YCERM7T95K08ASV9 (+ (get-balance 'SP1HRTTVN98NHDXWWSJ51Y0H3YCERM7T95K08ASV9) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u160) 'SP197ZTN7J9B4XFYRJ8SBZ9DTJEG6QYRJXPQRNZEW))
      (map-set token-count 'SP197ZTN7J9B4XFYRJ8SBZ9DTJEG6QYRJXPQRNZEW (+ (get-balance 'SP197ZTN7J9B4XFYRJ8SBZ9DTJEG6QYRJXPQRNZEW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u161) 'SP3W540EXEJXYV7MX5358NZJKPJXNGQ3F91DJ92YX))
      (map-set token-count 'SP3W540EXEJXYV7MX5358NZJKPJXNGQ3F91DJ92YX (+ (get-balance 'SP3W540EXEJXYV7MX5358NZJKPJXNGQ3F91DJ92YX) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u162) 'SP2JA7SAY1YWWY7FMJ86H35RP3AHCVCZ6NJVCRXEN))
      (map-set token-count 'SP2JA7SAY1YWWY7FMJ86H35RP3AHCVCZ6NJVCRXEN (+ (get-balance 'SP2JA7SAY1YWWY7FMJ86H35RP3AHCVCZ6NJVCRXEN) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u163) 'SPXM0C3FB9TG89Z1SJGHDS61HX6TVA47J4XSTMNM))
      (map-set token-count 'SPXM0C3FB9TG89Z1SJGHDS61HX6TVA47J4XSTMNM (+ (get-balance 'SPXM0C3FB9TG89Z1SJGHDS61HX6TVA47J4XSTMNM) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u164) 'SP27KJ1WYHN8MMKVAZRE70204G4H24E028RGM2C8F))
      (map-set token-count 'SP27KJ1WYHN8MMKVAZRE70204G4H24E028RGM2C8F (+ (get-balance 'SP27KJ1WYHN8MMKVAZRE70204G4H24E028RGM2C8F) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u165) 'SP2178T1MJPZ4J1RKGWDNK4JYK7GPF8S1QMJCN3NW))
      (map-set token-count 'SP2178T1MJPZ4J1RKGWDNK4JYK7GPF8S1QMJCN3NW (+ (get-balance 'SP2178T1MJPZ4J1RKGWDNK4JYK7GPF8S1QMJCN3NW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u166) 'SP2G95A8R0VSZENYSG2GC3B5T51FE6J9JPEDYT6D0))
      (map-set token-count 'SP2G95A8R0VSZENYSG2GC3B5T51FE6J9JPEDYT6D0 (+ (get-balance 'SP2G95A8R0VSZENYSG2GC3B5T51FE6J9JPEDYT6D0) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u167) 'SP3HJ0WG5EE89FQP4QRHCQ9BNA9Y96XHE24AFZHJR))
      (map-set token-count 'SP3HJ0WG5EE89FQP4QRHCQ9BNA9Y96XHE24AFZHJR (+ (get-balance 'SP3HJ0WG5EE89FQP4QRHCQ9BNA9Y96XHE24AFZHJR) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u168) 'SP19T1N6K3BJSN36W0R8XXVS17TMEEWKE6EJ2QBHV))
      (map-set token-count 'SP19T1N6K3BJSN36W0R8XXVS17TMEEWKE6EJ2QBHV (+ (get-balance 'SP19T1N6K3BJSN36W0R8XXVS17TMEEWKE6EJ2QBHV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u169) 'SP5B108YFD55W54P9KRABKEBHVP12HY4NZ488RGV))
      (map-set token-count 'SP5B108YFD55W54P9KRABKEBHVP12HY4NZ488RGV (+ (get-balance 'SP5B108YFD55W54P9KRABKEBHVP12HY4NZ488RGV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u170) 'SPR5QC6DGE99K2TYMKD61RP9VFAGAPS9FS07FKWT))
      (map-set token-count 'SPR5QC6DGE99K2TYMKD61RP9VFAGAPS9FS07FKWT (+ (get-balance 'SPR5QC6DGE99K2TYMKD61RP9VFAGAPS9FS07FKWT) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u171) 'SP1HRTTVN98NHDXWWSJ51Y0H3YCERM7T95K08ASV9))
      (map-set token-count 'SP1HRTTVN98NHDXWWSJ51Y0H3YCERM7T95K08ASV9 (+ (get-balance 'SP1HRTTVN98NHDXWWSJ51Y0H3YCERM7T95K08ASV9) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u172) 'SP197ZTN7J9B4XFYRJ8SBZ9DTJEG6QYRJXPQRNZEW))
      (map-set token-count 'SP197ZTN7J9B4XFYRJ8SBZ9DTJEG6QYRJXPQRNZEW (+ (get-balance 'SP197ZTN7J9B4XFYRJ8SBZ9DTJEG6QYRJXPQRNZEW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u173) 'SP3W540EXEJXYV7MX5358NZJKPJXNGQ3F91DJ92YX))
      (map-set token-count 'SP3W540EXEJXYV7MX5358NZJKPJXNGQ3F91DJ92YX (+ (get-balance 'SP3W540EXEJXYV7MX5358NZJKPJXNGQ3F91DJ92YX) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u174) 'SP2JA7SAY1YWWY7FMJ86H35RP3AHCVCZ6NJVCRXEN))
      (map-set token-count 'SP2JA7SAY1YWWY7FMJ86H35RP3AHCVCZ6NJVCRXEN (+ (get-balance 'SP2JA7SAY1YWWY7FMJ86H35RP3AHCVCZ6NJVCRXEN) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u175) 'SPR28HBNHVZ8SE8SFF23GCJMHKQYPTBBHTACZMHS))
      (map-set token-count 'SPR28HBNHVZ8SE8SFF23GCJMHKQYPTBBHTACZMHS (+ (get-balance 'SPR28HBNHVZ8SE8SFF23GCJMHKQYPTBBHTACZMHS) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u176) 'SPND7X93RAKAN9PE3PBE9YVJHDS0MTWYVZ5MWFCW))
      (map-set token-count 'SPND7X93RAKAN9PE3PBE9YVJHDS0MTWYVZ5MWFCW (+ (get-balance 'SPND7X93RAKAN9PE3PBE9YVJHDS0MTWYVZ5MWFCW) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u177) 'SP2D7FA78D94AC3KP9N9YPNH29EW9KE01G2JWSQZR))
      (map-set token-count 'SP2D7FA78D94AC3KP9N9YPNH29EW9KE01G2JWSQZR (+ (get-balance 'SP2D7FA78D94AC3KP9N9YPNH29EW9KE01G2JWSQZR) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u178) 'SP3NG46X7Z3C3PCYJ83PY5BXYWYGE2XNBCM38VJVV))
      (map-set token-count 'SP3NG46X7Z3C3PCYJ83PY5BXYWYGE2XNBCM38VJVV (+ (get-balance 'SP3NG46X7Z3C3PCYJ83PY5BXYWYGE2XNBCM38VJVV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u179) 'SPVPNBMFAYXEMQQ6E2QQ9G42WZWVRKZ0R8TP4M8P))
      (map-set token-count 'SPVPNBMFAYXEMQQ6E2QQ9G42WZWVRKZ0R8TP4M8P (+ (get-balance 'SPVPNBMFAYXEMQQ6E2QQ9G42WZWVRKZ0R8TP4M8P) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u180) 'SP3Q0E1YPHTY66F9A3NAF18CG01HYH3ZECW01R67M))
      (map-set token-count 'SP3Q0E1YPHTY66F9A3NAF18CG01HYH3ZECW01R67M (+ (get-balance 'SP3Q0E1YPHTY66F9A3NAF18CG01HYH3ZECW01R67M) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u181) 'SP3RP5N05CEZ7GZ5YXGVD4V790YCSG1BX4X8K7F4H))
      (map-set token-count 'SP3RP5N05CEZ7GZ5YXGVD4V790YCSG1BX4X8K7F4H (+ (get-balance 'SP3RP5N05CEZ7GZ5YXGVD4V790YCSG1BX4X8K7F4H) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u182) 'SP27MDCJA491AFAJ4ZCD1KRR3NQ9S3WEPCEJA3CK4))
      (map-set token-count 'SP27MDCJA491AFAJ4ZCD1KRR3NQ9S3WEPCEJA3CK4 (+ (get-balance 'SP27MDCJA491AFAJ4ZCD1KRR3NQ9S3WEPCEJA3CK4) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u183) 'SP1TY6XRGZ9868PB9Z7RPMYKZ02SWN48H5EP33RT6))
      (map-set token-count 'SP1TY6XRGZ9868PB9Z7RPMYKZ02SWN48H5EP33RT6 (+ (get-balance 'SP1TY6XRGZ9868PB9Z7RPMYKZ02SWN48H5EP33RT6) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u184) 'SPMEWFQ52X2GN1TA9PWNF4G784BCDMJP4AXRW8JV))
      (map-set token-count 'SPMEWFQ52X2GN1TA9PWNF4G784BCDMJP4AXRW8JV (+ (get-balance 'SPMEWFQ52X2GN1TA9PWNF4G784BCDMJP4AXRW8JV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u185) 'SP3YEGNXQ5DCNBR8CEHAJS29Z70EAQNK4G8XSYG8S))
      (map-set token-count 'SP3YEGNXQ5DCNBR8CEHAJS29Z70EAQNK4G8XSYG8S (+ (get-balance 'SP3YEGNXQ5DCNBR8CEHAJS29Z70EAQNK4G8XSYG8S) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u186) 'SP3AX5V8YWHGXCMP1K6KTEN7DJH9X7SFCTZX4C9E4))
      (map-set token-count 'SP3AX5V8YWHGXCMP1K6KTEN7DJH9X7SFCTZX4C9E4 (+ (get-balance 'SP3AX5V8YWHGXCMP1K6KTEN7DJH9X7SFCTZX4C9E4) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u187) 'SP4DE4WK8JZQ5P7VCB8010601Q8123WMG3501GNC))
      (map-set token-count 'SP4DE4WK8JZQ5P7VCB8010601Q8123WMG3501GNC (+ (get-balance 'SP4DE4WK8JZQ5P7VCB8010601Q8123WMG3501GNC) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u188) 'SP2KNK3PH5926XKZER449D0EWZYYZNFY425T6DDMV))
      (map-set token-count 'SP2KNK3PH5926XKZER449D0EWZYYZNFY425T6DDMV (+ (get-balance 'SP2KNK3PH5926XKZER449D0EWZYYZNFY425T6DDMV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u189) 'SP437VJHB3KTBZE0NHNN44XCJXFP1J09ZEJW0Q3W))
      (map-set token-count 'SP437VJHB3KTBZE0NHNN44XCJXFP1J09ZEJW0Q3W (+ (get-balance 'SP437VJHB3KTBZE0NHNN44XCJXFP1J09ZEJW0Q3W) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u190) 'SP2KNK3PH5926XKZER449D0EWZYYZNFY425T6DDMV))
      (map-set token-count 'SP2KNK3PH5926XKZER449D0EWZYYZNFY425T6DDMV (+ (get-balance 'SP2KNK3PH5926XKZER449D0EWZYYZNFY425T6DDMV) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u191) 'SP437VJHB3KTBZE0NHNN44XCJXFP1J09ZEJW0Q3W))
      (map-set token-count 'SP437VJHB3KTBZE0NHNN44XCJXFP1J09ZEJW0Q3W (+ (get-balance 'SP437VJHB3KTBZE0NHNN44XCJXFP1J09ZEJW0Q3W) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u192) 'SPSG6HMWBGTB4SCHJQ96PRRX7MGA9CN33FD58CN8))
      (map-set token-count 'SPSG6HMWBGTB4SCHJQ96PRRX7MGA9CN33FD58CN8 (+ (get-balance 'SPSG6HMWBGTB4SCHJQ96PRRX7MGA9CN33FD58CN8) u1))
      (try! (nft-mint? cat-kingdom (+ last-nft-id u193) 'SP31A14V7VQZSFTGG85N7WCYDRF9XY3JK6CT58RMZ))
      (map-set token-count 'SP31A14V7VQZSFTGG85N7WCYDRF9XY3JK6CT58RMZ (+ (get-balance 'SP31A14V7VQZSFTGG85N7WCYDRF9XY3JK6CT58RMZ) u1))

      (var-set last-id (+ last-nft-id u194))
      (var-set airdrop-called true)
      (ok true))))