{"version":3,"sources":["jsdelivr-header.js","/npm/@nodert-win11-22h2/windows.applicationmodel@0.1.6/lib/main.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACSA,MAAM,KAAO,QAAQ,QACf,GAAK,QAAQ,MAEb,SAAW,oBAGb,GAAG,WAAW,KAAK,KAAK,UAAW,0CACrC,OAAO,QAAU,QAAQ,0CAEzB,OAAO,QAAU,QAAQ,iCAG3B,IAAI,6BAA+B,CAAC,0BAA2B,iBAAkB,qBAAsB,sCAAuC,kBAAmB,iCAEjK,GAAI,6BAA6B,OAAS,EAAG,CAC3C,IAAI,kBAAoB,OAAO,oBAa/B,SAAS,iBAAiB,GACxB,IAAI,EAAa,EAAU,cAEvB,WACF,EAAa,IAAM,SAAW,IAAM,GAGtC,IAAI,EAAI,QAAQ,GAGhB,cAFO,kBAAkB,GACzB,kBAAkB,GAAa,EACxB,CACT,CAEA,IAAK,IAAI,KAxBJ,oBACH,kBAAoB,CAAC,EAErB,OAAO,eAAe,OAAQ,sBAAuB,CACnD,cAAc,EACd,UAAU,EACV,YAAY,EACZ,MAAO,qBAiBG,6BAA8B,CAC1C,IAAI,GAAK,6BAA6B,GAEjC,kBAAkB,eAAe,KACpC,OAAO,eAAe,kBAAmB,GAAI,CAC3C,cAAc,EACd,YAAY,EACZ,IAAK,iBAAiB,KAAK,KAAM,KAGvC,CACF","file":"/npm/@nodert-win11-22h2/windows.applicationmodel@0.1.6/lib/main.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@nodert-win11-22h2/windows.applicationmodel@0.1.6/lib/main.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","// Copyright (c) Microsoft Corporation, Nadav Bar, and Felix Rieseberg\r\n// All rights reserved.\r\n//\r\n// Licensed under the Apache License, Version 2.0 (the \"\"License\"\"); you may\r\n// not use this file except in compliance with the License. You may obtain a\r\n// copy of the License at http://www.apache.org/licenses/LICENSE-2.0\r\n//\r\n// THIS CODE IS PROVIDED ON AN  *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS\r\n// OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY\r\n// IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n// MERCHANTABLITY OR NON-INFRINGEMENT.\r\n//\r\n// See the Apache Version 2.0 License for specific language governing permissions\r\n// and limitations under the License.\r\n\r\nconst path = require('path');\r\nconst fs = require('fs');\r\n\r\nconst npmScope = 'nodert-win11-22h2';\r\n\r\n// This little trick makes Node.js Tools for VS load IntelliSense for the module\r\nif (fs.existsSync(path.join(__dirname, 'NodeRT_Windows_ApplicationModel.d.js)'))) {\r\n  module.exports = require('./NodeRT_Windows_ApplicationModel.d.js');\r\n} else {\r\n  module.exports = require('../build/Release/binding.node');\r\n}\r\n\r\nvar externalReferencedNamespaces = ['Windows.Storage.Streams', 'Windows.System', 'Windows.Foundation', 'Windows.ApplicationModel.Activation', 'Windows.Storage', 'Windows.ApplicationModel.Core'];\r\n\r\nif (externalReferencedNamespaces.length > 0) {\r\n  var namespaceRegistry = global.__winRtNamespaces__;\r\n\r\n  if (!namespaceRegistry) {\r\n    namespaceRegistry = {};\r\n\r\n    Object.defineProperty(global, '__winRtNamespaces__', {\r\n      configurable: true,\r\n      writable: false,\r\n      enumerable: false,\r\n      value: namespaceRegistry\r\n    });\r\n  }\r\n\r\n  function requireNamespace(namespace) {\r\n    var moduleName = namespace.toLowerCase();\r\n\r\n    if (npmScope) {\r\n      moduleName = '@' + npmScope + '/' + moduleName;\r\n    }\r\n\r\n    var m = require(moduleName);\r\n    delete namespaceRegistry[namespace];\r\n    namespaceRegistry[namespace] = m;\r\n    return m;\r\n  }\r\n\r\n  for (var i in externalReferencedNamespaces) {\r\n    var ns = externalReferencedNamespaces[i];\r\n\r\n    if (!namespaceRegistry.hasOwnProperty(ns)) {\r\n      Object.defineProperty(namespaceRegistry, ns, {\r\n        configurable: true,\r\n        enumerable: true,\r\n        get: requireNamespace.bind(null, ns)\r\n      });\r\n    }\r\n  }\r\n}\r\n"]}