diff --git a/dist/netlicensing-client.js.map b/dist/netlicensing-client.js.map index 867eae1..7767569 100644 --- a/dist/netlicensing-client.js.map +++ b/dist/netlicensing-client.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://NetLicensing/webpack/universalModuleDefinition","webpack://NetLicensing/webpack/bootstrap","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/createClass.js","webpack://NetLicensing/./src/Constants.js","webpack://NetLicensing/./src/util/CheckUtils.js","webpack://NetLicensing/./node_modules/axios/lib/utils.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://NetLicensing/./src/converters/itemToObject.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/inherits.js","webpack://NetLicensing/./src/entities/BaseEntity.js","webpack://NetLicensing/./src/vo/Page.js","webpack://NetLicensing/./src/services/Service.js","webpack://NetLicensing/./src/util/FilterUtils.js","webpack://NetLicensing/./node_modules/@babel/runtime/regenerator/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/asyncToGenerator.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/typeof.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://NetLicensing/./src/entities/License.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://NetLicensing/./src/entities/LicenseTransactionJoin.js","webpack://NetLicensing/./src/vo/ValidationResults.js","webpack://NetLicensing/./node_modules/process/browser.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/bind.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/buildURL.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/isCancel.js","webpack://NetLicensing/./node_modules/axios/lib/defaults.js","webpack://NetLicensing/./node_modules/axios/lib/adapters/xhr.js","webpack://NetLicensing/./node_modules/axios/lib/core/createError.js","webpack://NetLicensing/./node_modules/axios/lib/core/mergeConfig.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/Cancel.js","webpack://NetLicensing/./src/errors/NlicError.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://NetLicensing/./src/converters/itemToLicensee.js","webpack://NetLicensing/./src/entities/Licensee.js","webpack://NetLicensing/./src/util/CastsUtils.js","webpack://NetLicensing/./src/converters/itemToLicense.js","webpack://NetLicensing/./src/converters/itemToLicenseTemplate.js","webpack://NetLicensing/./src/entities/LicenseTemplate.js","webpack://NetLicensing/./src/converters/itemToPaymentMethod.js","webpack://NetLicensing/./src/entities/PaymentMethod.js","webpack://NetLicensing/./src/converters/itemToProductModule.js","webpack://NetLicensing/./src/entities/ProductModule.js","webpack://NetLicensing/./src/converters/itemToProduct.js","webpack://NetLicensing/./src/entities/Product.js","webpack://NetLicensing/./src/entities/ProductDiscount.js","webpack://NetLicensing/./src/converters/itemToToken.js","webpack://NetLicensing/./src/entities/Token.js","webpack://NetLicensing/./src/converters/itemToTransaction.js","webpack://NetLicensing/./src/entities/Transaction.js","webpack://NetLicensing/./src/converters/itemToCountry.js","webpack://NetLicensing/./src/entities/Country.js","webpack://NetLicensing/./src/index.js","webpack://NetLicensing/./src/vo/Context.js","webpack://NetLicensing/./src/vo/ValidationParameters.js","webpack://NetLicensing/./node_modules/axios/index.js","webpack://NetLicensing/./node_modules/axios/lib/axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/Axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/InterceptorManager.js","webpack://NetLicensing/./node_modules/axios/lib/core/dispatchRequest.js","webpack://NetLicensing/./node_modules/axios/lib/core/transformData.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://NetLicensing/./node_modules/axios/lib/core/settle.js","webpack://NetLicensing/./node_modules/axios/lib/core/enhanceError.js","webpack://NetLicensing/./node_modules/axios/lib/core/buildFullPath.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/combineURLs.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/cookies.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/CancelToken.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/spread.js","webpack://NetLicensing/./node_modules/btoa/index.js","webpack://NetLicensing/./node_modules/buffer/index.js","webpack://NetLicensing/(webpack)/buildin/global.js","webpack://NetLicensing/./node_modules/base64-js/index.js","webpack://NetLicensing/./node_modules/ieee754/index.js","webpack://NetLicensing/./node_modules/isarray/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/isNativeFunction.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/construct.js","webpack://NetLicensing/./src/services/LicenseeService.js","webpack://NetLicensing/./node_modules/regenerator-runtime/runtime.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://NetLicensing/./src/services/LicenseService.js","webpack://NetLicensing/./src/services/LicenseTemplateService.js","webpack://NetLicensing/./src/services/PaymentMethodService.js","webpack://NetLicensing/./src/services/ProductModuleService.js","webpack://NetLicensing/./src/services/ProductService.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/get.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/superPropBase.js","webpack://NetLicensing/./src/services/TokenService.js","webpack://NetLicensing/./src/services/TransactionService.js","webpack://NetLicensing/./src/services/UtilityService.js"],"names":["BASIC_AUTHENTICATION","APIKEY_IDENTIFICATION","ANONYMOUS_IDENTIFICATION","ACTIVE","NUMBER","NAME","VERSION","DELETED","CASCADE","PRICE","DISCOUNT","CURRENCY","IN_USE","FILTER","BASE_URL","USERNAME","PASSWORD","SECURITY_MODE","LicensingModel","VALID","TryAndBuy","Rental","RED_THRESHOLD","YELLOW_THRESHOLD","Subscription","Floating","MultiFeature","PayPerUse","PricingTable","Quota","NodeLocked","Vendor","VENDOR_NUMBER","VENDOR_TYPE","Product","ENDPOINT_PATH","PRODUCT_NUMBER","LICENSEE_AUTO_CREATE","DESCRIPTION","LICENSING_INFO","DISCOUNTS","PROP_LICENSEE_SECRET_MODE","PROP_VAT_MODE","Discount","TOTAL_PRICE","AMOUNT_FIX","AMOUNT_PERCENT","LicenseeSecretMode","DISABLED","PREDEFINED","CLIENT","ProductModule","PRODUCT_MODULE_NUMBER","PRODUCT_MODULE_NAME","LICENSING_MODEL","LicenseTemplate","LICENSE_TEMPLATE_NUMBER","LICENSE_TYPE","AUTOMATIC","HIDDEN","HIDE_LICENSES","PROP_LICENSEE_SECRET","LicenseType","FEATURE","TIMEVOLUME","FLOATING","QUANTITY","Token","EXPIRATION_TIME","TOKEN_TYPE","API_KEY","TOKEN_PROP_EMAIL","TOKEN_PROP_VENDORNUMBER","TOKEN_PROP_SHOP_URL","Type","DEFAULT","SHOP","APIKEY","Transaction","TRANSACTION_NUMBER","GRAND_TOTAL","STATUS","SOURCE","DATE_CREATED","DATE_CLOSED","VAT","VAT_MODE","LICENSE_TRANSACTION_JOIN","SOURCE_SHOP_ONLY","Status","CANCELLED","CLOSED","PENDING","Licensee","ENDPOINT_PATH_VALIDATE","ENDPOINT_PATH_TRANSFER","LICENSEE_NUMBER","SOURCE_LICENSEE_NUMBER","PROP_LICENSEE_NAME","PROP_MARKED_FOR_TRANSFER","License","LICENSE_NUMBER","PaymentMethod","Utility","ENDPOINT_PATH_LICENSE_TYPES","ENDPOINT_PATH_LICENSING_MODELS","ENDPOINT_PATH_COUNTRIES","LICENSING_MODEL_PROPERTIES","ROLE_APIKEY_LICENSEE","ROLE_APIKEY_ANALYTICS","ROLE_APIKEY_OPERATION","ROLE_APIKEY_MAINTENANCE","ROLE_APIKEY_ADMIN","isValid","value","valid","undefined","Number","isFinite","isNaN","paramNotNull","parameter","parameterName","TypeError","paramNotEmpty","itemToObject","item","object","property","list","Array","isArray","forEach","p","name","l","push","propertiesMap","WeakMap","definedMap","castsMap","BaseEntity","properties","casts","set","setProperties","CheckUtils","castedValue","cast","define","get","setProperty","removeProperties","has","Object","prototype","hasOwnProperty","keys","key","call","def","removeDefine","propertiesForRemove","removeProperty","Boolean","hasDefine","self","descriptors","enumerable","configurable","getProperty","defined","defineProperty","getProperties","customProperties","content","pageNumber","itemsNumber","totalPages","totalItems","paginator","getContent","getPageNumber","getItemsNumber","getTotalPages","getTotalItems","hasNext","paginatorKeys","Proxy","target","indexOf","httpXHR","axiosInstance","Service","axios","instanse","context","urlTemplate","queryParams","request","method","template","String","params","toLowerCase","Error","getBaseUrl","url","encodeURI","responseType","headers","Accept","transformRequest","data","toQueryString","pkg","version","process","toString","getSecurityMode","Constants","getUsername","getPassword","auth","username","password","getApiKey","Authorization","getAxiosInstance","then","response","catch","e","error","NlicError","config","code","info","getInfo","message","infos","pattern","RegExp","test","prefix","query","k","v","Date","toISOString","encodeURIComponent","join","replace","FILTER_DELIMITER","FILTER_PAIR_DELIMITER","encode","filter","decode","split","number","active","price","hidden","parentfeature","timeVolume","startDate","inUse","LicenseTransactionJoin","transaction","license","vr","ValidationResults","validators","productModuleNumber","productModuleValidation","ttl","getValidators","JSON","stringify","args","isNlicError","isAxiosError","licenseeSecret","markedForTransfer","trim","parseInt","parseFloat","licenseType","currency","automatic","hideLicenses","gracePeriod","timeVolumePeriod","maxSessions","quantity","paypalSubject","licensingModel","maxCheckoutValidity","yellowThreshold","redThreshold","licenseTemplate","licenseeSecretMode","discounts","discount","product","setProductDiscounts","discountsMap","discountsTouched","description","licensingInfo","licenseeAutoCreate","productDiscount","ProductDiscount","addDiscount","assign","length","map","totalPrice","amountFix","amountPercent","getTotalPrice","getCurrency","amount","getAmountFix","getAmountPercent","expirationTime","vendorNumber","tokenType","licenseeNumber","successURL","successURLTitle","cancelURL","cancelURLTitle","shopURL","role","setApiKeyRole","getApiKeyRole","apiKeyRole","licenseTransactionJoin","joins","setLicense","setTransaction","setLicenseTransactionJoins","status","source","grandTotal","dateCreated","dateClosed","paymentMethod","licenseTransactionJoins","Country","vatPercent","isEu","vat","NetLicensing","Context","Page","ValidationParameters","LicenseeService","LicenseService","LicenseTemplateService","PaymentMethodService","ProductModuleService","ProductService","TokenService","TransactionService","UtilityService","itemToCountry","itemToLicense","itemToLicensee","itemToLicenseTemplate","itemToPaymentMethod","itemToProduct","itemToProductModule","itemToToken","itemToTransaction","CastsUtils","FilterUtils","module","exports","default","valuesMap","defaultsMap","values","baseUrl","securityMode","setValues","setValue","getValue","apiKey","copedValue","removeValues","keysAr","removeValue","onlyGetter","vpMap","parameters","productNumber","licenseeName","productModuleParameters","create","licensee","post","asPropertiesMap","items","pagenumber","itemsnumber","totalpages","totalitems","update","delete","forceCascade","validate","validationParameters","getProductNumber","getLicenseeName","getLicenseeSecret","pmIndex","getParameters","productModuleName","validationResults","setTtl","setProductModuleValidation","transfer","sourceLicenseeNumber","licenseTemplateNumber","transactionNumber","path","productModule","token","listLicenseTypes","listLicensingModels","listCountries"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;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J,qBAA2BD,aAA3B,qCAAN;AACnB;AAfU,C;;;;;;;;ACPF;;AAEb,WAAW,mBAAO,CAAC,EAAgB;;AAEnC;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mCAAmC,OAAO;AAC1C;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS,GAAG,SAAS;AAC5C,2BAA2B;AAC3B;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,uCAAuC,OAAO;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,gCAAgC;AAChC,KAAK;AACL;AACA;AACA;;AAEA,uCAAuC,OAAO;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvVA;AACA;AACA;AACA;AACA;AACA;;AAEA,iC;;;;;;;;;;;;;;ACPA,IAAMG,YAAY,G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SAAzD;AACH;;;+BAEU;AACP,UAAIiG,IAAI,GAAG,oBAAX;AAEA,UAAM2D,UAAU,GAAG,KAAKI,aAAL,EAAnB;AACA,UAAM3H,GAAG,GAAGC,MAAM,CAACC,SAAP,CAAiBC,cAA7B;AAEAF,YAAM,CAACG,IAAP,CAAYmH,UAAZ,EAAwB5I,OAAxB,CAAgC,UAAC6I,mBAAD,EAAyB;AACrD5D,YAAI,4BAAqB4D,mBAArB,MAAJ;;AACA,YAAIxH,GAAG,CAACM,IAAJ,CAASiH,UAAT,EAAqBC,mBAArB,CAAJ,EAA+C;AAC3C5D,cAAI,IAAIgE,IAAI,CAACC,SAAL,CAAeN,UAAU,CAACC,mBAAD,CAAzB,CAAR;AACH;AACJ,OALD;AAOA5D,UAAI,IAAI,GAAR;AAEA,aAAOA,IAAP;AACH;;;;;;;;;;;ACvEL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC;;AAErC;AACA;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;AACA,4BAA4B,UAAU;;;;;;;;ACvLzB;;AAEb;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;;;;;;;;ACVa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;ACtEa;;AAEb;AACA;AACA;;;;;;;;ACJA,+CAAa;;AAEb,YAAY,mBAAO,CAAC,CAAS;AAC7B,0BAA0B,mBAAO,CAAC,EAA+B;;AAEjE;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,mBAAO,CAAC,EAAgB;AACtC,GAAG;AACH;AACA,cAAc,mBAAO,CAAC,EAAiB;AACvC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,OAAO,YAAY;AACnB;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA,CAAC;;AAED;;;;;;;;;AChGa;;AAEb,YAAY,mBAAO,CAAC,CAAY;AAChC,aAAa,mBAAO,CAAC,EAAkB;AACvC,eAAe,mBAAO,CAAC,EAAuB;AAC9C,oBAAoB,mBAAO,CAAC,EAAuB;AACnD,mBAAmB,mBAAO,CAAC,EAA2B;AACtD,sBAAsB,mBAAO,CAAC,EAA8B;AAC5D,kBAAkB,mBAAO,CAAC,EAAqB;;AAE/C;AACA;AACA;AACA;;AAEA;AACA,4CAA4C;AAC5C;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB,mBAAO,CAAC,EAAsB;;AAElD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;A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9C,eAAe,mBAAO,CAAC,EAAY;;AAEnC;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,MAAM;AAClB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,mBAAO,CAAC,EAAiB;AACxC,oBAAoB,mBAAO,CAAC,EAAsB;AAClD,iBAAiB,mBAAO,CAAC,EAAmB;;AAE5C;AACA;AACA;AACA;AACA,eAAe,mBAAO,CAAC,EAAkB;;AAEzC;;AAEA;AACA;;;;;;;;ACpDa;;AAEb,YAAY,mBAAO,CAAC,CAAY;AAChC,eAAe,mBAAO,CAAC,EAAqB;AAC5C,yBAAyB,mBAAO,CAAC,EAAsB;AACvD,sBAAsB,mBAAO,CAAC,EAAmB;AACjD,kBAAkB,mBAAO,CAAC,EAAe;;AAEzC;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA,KAAK;AACL;AACA,CAAC;;AAED;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;AAED;;;;;;;;AC7Fa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;ACnDa;;AAEb,YAAY,mBAAO,CAAC,CAAY;AAChC,oBAAoB,mBAAO,CAAC,EAAiB;AAC7C,eAAe,mBAAO,CAAC,EAAoB;AAC3C,eAAe,mBAAO,CAAC,EAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B;AAC/B,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;;;;;;;AC9Ea;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,MAAM;AACjB,WAAW,eAAe;AAC1B,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;ACnBa;;AAEb,YAAY,mBAAO,CAAC,CAAU;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;ACXa;;AAEb,kBAAkB,mBAAO,CAAC,EAAe;;AAEzC;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxBa;;AAEb;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzCa;;AAEb,oBAAoB,mBAAO,CAAC,EAA0B;AACtD,kBAAkB,mBAAO,CAAC,EAAwB;;AAElD;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnBa;;AAEb;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACba;;AAEb;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACba;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,eAAe;;AAEhC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;ACpDa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,OAAO;AACrB,gBAAgB;AAChB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc,OAAO;AACrB,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;;;;;;;ACnEa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,0CAA0C;AAC1C,SAAS;;AAET;AACA,4DAA4D,wBAAwB;AACpF;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,kCAAkC;AAClC,+BAA+B,aAAa,EAAE;AAC9C;AACA;AACA,KAAK;AACL;;;;;;;;ACpDa;;AAEb,aAAa,mBAAO,CAAC,EAAU;;AAE/B;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxDa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,WAAW,SAAS;AACpB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1BA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA,CAAC;;;;;;;;;AChBD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEY;;AAEZ,aAAa,mBAAO,CAAC,EAAW;AAChC,cAAc,mBAAO,CAAC,EAAS;AAC/B,cAAc,mBAAO,CAAC,EAAS;;AAE/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,mDAAmD;AACxE;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,UAAU;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,uCAAuC,SAAS;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;;AAEA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gDAAgD,EAAE;AAClD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,eAAe;AACvC;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,wBAAwB,QAAQ;AAChC;AACA,qBAAqB,eAAe;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,mBAAmB,cAAc;AACjC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD,OAAO;AAC9D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD,OAAO;AAC9D;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,qBAAqB,QAAQ;AAC7B;AACA;AACA,GAAG;AACH;AACA,eAAe,SAAS;AACxB;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,YAAY;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB,gBAAgB;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,gBAAgB;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;AC5vDA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;ACnBY;;AAEZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kCAAkC,SAAS;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0CAA0C,UAAU;AACpD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;ACtJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,QAAQ,WAAW;;AAEnB;AACA;AACA;AACA,QAAQ,WAAW;;AAEnB;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;A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mDrD,GA1MU;;AA6MX;;;;;;;;;;;;;;;AAeAG,UA5NW,oBA4NFnO,OA5NE,EA4NO+D,MA5NP,EA4NeqK,oBA5Nf,EA4NqC;AAC5CtR,wBAAWtB,aAAX,CAAyBuI,MAAzB,EAAiCvC,mBAAUxN,MAA3C;;AACA8I,wBAAWtB,aAAX,CAAyB4S,oBAAzB,EAA+C5M,mBAAU/H,QAAV,CAAmBI,sBAAlE;;AAEA,QAAMqG,WAAW,GAAG;AAAEkO,0BAAoB,EAApBA;AAAF,KAApB;AAEA,WAAOvO,iBACFiN,IADE,CAEC9M,OAFD,YAGIwB,mBAAU/H,QAAV,CAAmB1D,aAHvB,cAGwCgO,MAHxC,cAGkDvC,mBAAU/H,QAAV,CAAmBE,sBAHrE,GAICuG,WAJD,CAAP;AAMH;AAxOU,C;;;;;;;ACvBf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,KAAK;AACL,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,WAAW;AACX;;AAEA;AACA;AACA,wCAAwC,WAAW;AACnD;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS;AACT;AACA;AACA;AACA;;AAEA;;AAEA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC,cAAc;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC,kBAAkB;AACnD;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB;;AAEjB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,YAAY;AACZ;AACA;;AAEA;AACA,YAAY;AACZ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,8CAA8C,QAAQ;AACtD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA,WAAW;AACX;AACA;AACA;;AAEA,WAAW;AACX;AACA;AACA;;AAEA,WAAW;AACX;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA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AAC+L,KAAL,CAAWI,UALR,CAjB0B;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBpC;AAnFU,C","file":"netlicensing-client.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"NetLicensing\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"NetLicensing\"] = factory();\n\telse\n\t\troot[\"NetLicensing\"] = factory();\n})(this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 53);\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nexport default {\r\n BASIC_AUTHENTICATION: 'BASIC_AUTH',\r\n APIKEY_IDENTIFICATION: 'APIKEY',\r\n ANONYMOUS_IDENTIFICATION: 'ANONYMOUS',\r\n\r\n ACTIVE: 'active',\r\n NUMBER: 'number',\r\n NAME: 'name',\r\n VERSION: 'version',\r\n DELETED: 'deleted',\r\n CASCADE: 'forceCascade',\r\n PRICE: 'price',\r\n DISCOUNT: 'discount',\r\n CURRENCY: 'currency',\r\n IN_USE: 'inUse',\r\n FILTER: 'filter',\r\n BASE_URL: 'baseUrl',\r\n USERNAME: 'username',\r\n PASSWORD: 'password',\r\n SECURITY_MODE: 'securityMode',\r\n\r\n LicensingModel: {\r\n VALID: 'valid',\r\n TryAndBuy: {\r\n NAME: 'TryAndBuy',\r\n },\r\n Rental: {\r\n NAME: 'Rental',\r\n RED_THRESHOLD: 'redThreshold',\r\n YELLOW_THRESHOLD: 'yellowThreshold',\r\n },\r\n Subscription: {\r\n NAME: 'Subscription',\r\n },\r\n Floating: {\r\n NAME: 'Floating',\r\n },\r\n MultiFeature: {\r\n NAME: 'MultiFeature',\r\n },\r\n PayPerUse: {\r\n NAME: 'PayPerUse',\r\n },\r\n PricingTable: {\r\n NAME: 'PricingTable',\r\n },\r\n Quota: {\r\n NAME: 'Quota',\r\n },\r\n NodeLocked: {\r\n NAME: 'NodeLocked',\r\n },\r\n },\r\n\r\n Vendor: {\r\n VENDOR_NUMBER: 'vendorNumber',\r\n VENDOR_TYPE: 'Vendor',\r\n },\r\n\r\n Product: {\r\n ENDPOINT_PATH: 'product',\r\n PRODUCT_NUMBER: 'productNumber',\r\n LICENSEE_AUTO_CREATE: 'licenseeAutoCreate',\r\n DESCRIPTION: 'description',\r\n LICENSING_INFO: 'licensingInfo',\r\n DISCOUNTS: 'discounts',\r\n /**\r\n * @deprecated use ProductModule.PROP_LICENSEE_SECRET_MODE instead\r\n */\r\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\r\n PROP_VAT_MODE: 'vatMode',\r\n\r\n Discount: {\r\n TOTAL_PRICE: 'totalPrice',\r\n AMOUNT_FIX: 'amountFix',\r\n AMOUNT_PERCENT: 'amountPercent',\r\n },\r\n\r\n LicenseeSecretMode: {\r\n /**\r\n * @deprecated DISABLED mode is deprecated\r\n */\r\n DISABLED: 'DISABLED',\r\n PREDEFINED: 'PREDEFINED',\r\n CLIENT: 'CLIENT',\r\n },\r\n },\r\n\r\n ProductModule: {\r\n ENDPOINT_PATH: 'productmodule',\r\n PRODUCT_MODULE_NUMBER: 'productModuleNumber',\r\n PRODUCT_MODULE_NAME: 'productModuleName',\r\n LICENSING_MODEL: 'licensingModel',\r\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\r\n },\r\n\r\n LicenseTemplate: {\r\n ENDPOINT_PATH: 'licensetemplate',\r\n LICENSE_TEMPLATE_NUMBER: 'licenseTemplateNumber',\r\n LICENSE_TYPE: 'licenseType',\r\n AUTOMATIC: 'automatic',\r\n HIDDEN: 'hidden',\r\n HIDE_LICENSES: 'hideLicenses',\r\n PROP_LICENSEE_SECRET: 'licenseeSecret',\r\n LicenseType: {\r\n FEATURE: 'FEATURE',\r\n TIMEVOLUME: 'TIMEVOLUME',\r\n FLOATING: 'FLOATING',\r\n QUANTITY: 'QUANTITY',\r\n },\r\n },\r\n\r\n Token: {\r\n ENDPOINT_PATH: 'token',\r\n EXPIRATION_TIME: 'expirationTime',\r\n TOKEN_TYPE: 'tokenType',\r\n API_KEY: 'apiKey',\r\n TOKEN_PROP_EMAIL: 'email',\r\n TOKEN_PROP_VENDORNUMBER: 'vendorNumber',\r\n TOKEN_PROP_SHOP_URL: 'shopURL',\r\n Type: {\r\n DEFAULT: 'DEFAULT',\r\n SHOP: 'SHOP',\r\n APIKEY: 'APIKEY',\r\n },\r\n },\r\n\r\n Transaction: {\r\n ENDPOINT_PATH: 'transaction',\r\n TRANSACTION_NUMBER: 'transactionNumber',\r\n GRAND_TOTAL: 'grandTotal',\r\n STATUS: 'status',\r\n SOURCE: 'source',\r\n DATE_CREATED: 'datecreated',\r\n DATE_CLOSED: 'dateclosed',\r\n VAT: 'vat',\r\n VAT_MODE: 'vatMode',\r\n LICENSE_TRANSACTION_JOIN: 'licenseTransactionJoin',\r\n SOURCE_SHOP_ONLY: 'shopOnly',\r\n /**\r\n * @deprecated\r\n */\r\n Status: {\r\n CANCELLED: 'CANCELLED',\r\n CLOSED: 'CLOSED',\r\n PENDING: 'PENDING',\r\n },\r\n },\r\n\r\n Licensee: {\r\n ENDPOINT_PATH: 'licensee',\r\n ENDPOINT_PATH_VALIDATE: 'validate',\r\n ENDPOINT_PATH_TRANSFER: 'transfer',\r\n LICENSEE_NUMBER: 'licenseeNumber',\r\n SOURCE_LICENSEE_NUMBER: 'sourceLicenseeNumber',\r\n PROP_LICENSEE_NAME: 'licenseeName',\r\n /**\r\n * @deprecated use License.PROP_LICENSEE_SECRET\r\n */\r\n PROP_LICENSEE_SECRET: 'licenseeSecret',\r\n PROP_MARKED_FOR_TRANSFER: 'markedForTransfer',\r\n },\r\n\r\n License: {\r\n ENDPOINT_PATH: 'license',\r\n LICENSE_NUMBER: 'licenseNumber',\r\n HIDDEN: 'hidden',\r\n PROP_LICENSEE_SECRET: 'licenseeSecret',\r\n },\r\n\r\n PaymentMethod: {\r\n ENDPOINT_PATH: 'paymentmethod',\r\n },\r\n\r\n Utility: {\r\n ENDPOINT_PATH: 'utility',\r\n ENDPOINT_PATH_LICENSE_TYPES: 'licenseTypes',\r\n ENDPOINT_PATH_LICENSING_MODELS: 'licensingModels',\r\n ENDPOINT_PATH_COUNTRIES: 'countries',\r\n LICENSING_MODEL_PROPERTIES: 'LicensingModelProperties',\r\n LICENSE_TYPE: 'LicenseType',\r\n },\r\n\r\n APIKEY: {\r\n ROLE_APIKEY_LICENSEE: 'ROLE_APIKEY_LICENSEE',\r\n ROLE_APIKEY_ANALYTICS: 'ROLE_APIKEY_ANALYTICS',\r\n ROLE_APIKEY_OPERATION: 'ROLE_APIKEY_OPERATION',\r\n ROLE_APIKEY_MAINTENANCE: 'ROLE_APIKEY_MAINTENANCE',\r\n ROLE_APIKEY_ADMIN: 'ROLE_APIKEY_ADMIN',\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nexport default {\r\n isValid(value) {\r\n let valid = (value !== undefined && typeof value !== 'function');\r\n if (typeof value === 'number') valid = Number.isFinite(value) && !Number.isNaN(value);\r\n return valid;\r\n },\r\n\r\n paramNotNull(parameter, parameterName) {\r\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\r\n if (parameter === null) throw new TypeError(`Parameter ${parameterName} cannot be null`);\r\n },\r\n\r\n paramNotEmpty(parameter, parameterName) {\r\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\r\n if (!parameter) throw new TypeError(`Parameter ${parameterName} cannot be null or empty string`);\r\n },\r\n};\r\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = merge(result[key], val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Function equal to merge with the difference being that no reference\n * to original objects is kept.\n *\n * @see merge\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction deepMerge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = deepMerge(result[key], val);\n } else if (typeof val === 'object') {\n result[key] = deepMerge({}, val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n deepMerge: deepMerge,\n extend: extend,\n trim: trim\n};\n","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","const itemToObject = (item) => {\r\n const object = {};\r\n const { property, list } = item;\r\n\r\n if (property && Array.isArray(property)) {\r\n property.forEach((p) => {\r\n const { name, value } = p;\r\n if (name) object[name] = value;\r\n });\r\n }\r\n\r\n if (list && Array.isArray(list)) {\r\n list.forEach((l) => {\r\n const { name } = l;\r\n if (name) {\r\n object[name] = object[name] || [];\r\n object[name].push(itemToObject(l));\r\n }\r\n });\r\n }\r\n\r\n return object;\r\n};\r\n\r\nexport default itemToObject;\r\n","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport CastsUtils from '../util/CastsUtils';\r\n\r\n/**\r\n * The entity properties.\r\n * @type {{}}\r\n * @private\r\n */\r\nconst propertiesMap = new WeakMap();\r\n\r\n/**\r\n * List of properties that was defined\r\n * @type {{}}\r\n * @private\r\n */\r\n\r\nconst definedMap = new WeakMap();\r\n\r\n/**\r\n * List of properties that need be casts\r\n * @type {{}}\r\n * @private\r\n */\r\nconst castsMap = new WeakMap();\r\n\r\nexport default class BaseEntity {\r\n constructor({ properties, casts }) {\r\n propertiesMap.set(this, {});\r\n definedMap.set(this, {});\r\n castsMap.set(this, casts || []);\r\n\r\n if (properties) {\r\n this.setProperties(properties);\r\n }\r\n }\r\n\r\n /**\r\n * Set a given property on the entity.\r\n * @param property\r\n * @param value\r\n * @returns {BaseEntity}\r\n */\r\n setProperty(property, value) {\r\n // if property name has bad native type\r\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\r\n throw new TypeError(`Bad property name:${property}`);\r\n }\r\n\r\n const castedValue = this.cast(property, value);\r\n\r\n // define to property\r\n this.define(property);\r\n\r\n // save property to propertiesMap\r\n const properties = propertiesMap.get(this);\r\n properties[property] = castedValue;\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Alias for setProperty\r\n * @param property\r\n * @param value\r\n * @returns {BaseEntity}\r\n */\r\n addProperty(property, value) {\r\n return this.setProperty(property, value);\r\n }\r\n\r\n /**\r\n * Set the entity properties.\r\n * @param properties\r\n * @returns {BaseEntity}\r\n */\r\n setProperties(properties) {\r\n this.removeProperties();\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(properties).forEach((key) => {\r\n if (has.call(properties, key)) {\r\n this.setProperty(key, properties[key]);\r\n }\r\n });\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Check if we has property\r\n * @param property\r\n * @protected\r\n */\r\n hasProperty(property) {\r\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property);\r\n }\r\n\r\n /**\r\n * Get an property from the entity.\r\n * @param property\r\n * @param def\r\n * @returns {*}\r\n */\r\n getProperty(property, def) {\r\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property)\r\n ? propertiesMap.get(this)[property]\r\n : def;\r\n }\r\n\r\n /**\r\n * Get all of the current properties on the entity.\r\n */\r\n getProperties() {\r\n return { ...propertiesMap.get(this) };\r\n }\r\n\r\n /**\r\n * Remove property\r\n * @param property\r\n * @returns {BaseEntity}\r\n */\r\n removeProperty(property) {\r\n const properties = propertiesMap.get(this);\r\n delete properties[property];\r\n this.removeDefine(property);\r\n return this;\r\n }\r\n\r\n /**\r\n * Remove properties\r\n * @param properties\r\n */\r\n removeProperties(properties) {\r\n const propertiesForRemove = properties || Object.keys(propertiesMap.get(this));\r\n\r\n propertiesForRemove.forEach((property) => {\r\n this.removeProperty(property);\r\n });\r\n }\r\n\r\n cast(property, value) {\r\n if (!castsMap.get(this)[property]) return value;\r\n\r\n return CastsUtils(castsMap.get(this)[property], value);\r\n }\r\n\r\n /**\r\n * Check if property has defined\r\n * @param property\r\n * @protected\r\n */\r\n hasDefine(property) {\r\n return Boolean(definedMap.get(this)[property]);\r\n }\r\n\r\n /**\r\n * Define property getter and setter\r\n * @param property\r\n * @protected\r\n */\r\n define(property) {\r\n if (this.hasDefine(property)) return;\r\n\r\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\r\n throw new TypeError(`Bad property name:${property}`);\r\n }\r\n\r\n const self = this;\r\n\r\n // delete property\r\n delete this[property];\r\n\r\n const descriptors = {\r\n enumerable: true,\r\n configurable: true,\r\n get() {\r\n return self.getProperty(property);\r\n },\r\n\r\n set(value) {\r\n self.setProperty(property, value);\r\n },\r\n };\r\n\r\n const defined = definedMap.get(this);\r\n defined[property] = true;\r\n\r\n Object.defineProperty(this, property, descriptors);\r\n }\r\n\r\n /**\r\n * Remove property getter and setter\r\n * @param property\r\n * @protected\r\n */\r\n removeDefine(property) {\r\n if (!this.hasDefine(property)) return;\r\n\r\n const defined = definedMap.get(this);\r\n delete defined[property];\r\n\r\n delete this[property];\r\n }\r\n\r\n /**\r\n * Get properties map\r\n */\r\n asPropertiesMap() {\r\n const properties = this.getProperties();\r\n const customProperties = {};\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(this).forEach((key) => {\r\n if (!has.call(this, key)) return;\r\n\r\n customProperties[key] = this[key];\r\n });\r\n\r\n return { ...customProperties, ...properties };\r\n }\r\n}\r\n","export default (content = [], pageNumber = 0, itemsNumber = 0, totalPages = 0, totalItems = 0) => {\r\n const paginator = {\r\n getContent() {\r\n return content;\r\n },\r\n\r\n getPageNumber() {\r\n return pageNumber;\r\n },\r\n\r\n getItemsNumber() {\r\n return itemsNumber;\r\n },\r\n\r\n getTotalPages() {\r\n return totalPages;\r\n },\r\n\r\n getTotalItems() {\r\n return totalItems;\r\n },\r\n\r\n hasNext() {\r\n return (totalPages > pageNumber + 1);\r\n },\r\n };\r\n\r\n const paginatorKeys = Object.keys(paginator);\r\n\r\n return new Proxy(content, {\r\n get(target, key) {\r\n if (paginatorKeys.indexOf(key) !== -1) {\r\n return paginator[key];\r\n }\r\n return target[key];\r\n },\r\n });\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nimport axios from 'axios';\r\nimport btoa from 'btoa';\r\nimport Constants from '../Constants';\r\nimport NlicError from '../errors/NlicError';\r\nimport pkg from '../../package.json';\r\n\r\nlet httpXHR = {};\r\nlet axiosInstance = null;\r\n\r\nexport default class Service {\r\n static getAxiosInstance() {\r\n return axiosInstance || axios;\r\n }\r\n\r\n static setAxiosInstance(instanse) {\r\n axiosInstance = instanse;\r\n }\r\n\r\n static getLastHttpRequestInfo() {\r\n return httpXHR;\r\n }\r\n\r\n /**\r\n * Helper method for performing GET request to N\r\n etLicensing API services. Finds and returns first suitable item with\r\n * type resultType from the response.\r\n *\r\n * Context for the NetLicensing API call\r\n * @param context\r\n *\r\n * the REST URL template\r\n * @param urlTemplate\r\n *\r\n * The REST query parameters values. May be null if there are no parameters.\r\n * @param queryParams\r\n *\r\n * @returns {Promise}\r\n */\r\n static get(context, urlTemplate, queryParams) {\r\n return Service.request(context, 'get', urlTemplate, queryParams);\r\n }\r\n\r\n /**\r\n * Helper method for performing POST request to NetLicensing API services. Finds and returns first suitable item\r\n * with type resultType from the response.\r\n *\r\n * context for the NetLicensing API call\r\n * @param context\r\n *\r\n * the REST URL template\r\n * @param urlTemplate\r\n *\r\n * The REST query parameters values. May be null if there are no parameters.\r\n * @param queryParams\r\n *\r\n * @returns {Promise}\r\n */\r\n static post(context, urlTemplate, queryParams) {\r\n return Service.request(context, 'post', urlTemplate, queryParams);\r\n }\r\n\r\n /**\r\n *\r\n * @param context\r\n * @param urlTemplate\r\n * @param queryParams\r\n * @returns {Promise}\r\n */\r\n static delete(context, urlTemplate, queryParams) {\r\n return Service.request(context, 'delete', urlTemplate, queryParams);\r\n }\r\n\r\n /**\r\n * Send request to NetLicensing RestApi\r\n * @param context\r\n * @param method\r\n * @param urlTemplate\r\n * @param queryParams\r\n * @returns {Promise}\r\n */\r\n static request(context, method, urlTemplate, queryParams) {\r\n const template = String(urlTemplate);\r\n const params = queryParams || {};\r\n\r\n if (!template) throw new TypeError('Url template must be specified');\r\n\r\n // validate http method\r\n if (['get', 'post', 'delete'].indexOf(method.toLowerCase()) < 0) {\r\n throw new Error(`Invalid request type:${method}, allowed requests types: GET, POST, DELETE.`);\r\n }\r\n\r\n // validate context\r\n if (!context.getBaseUrl(null)) {\r\n throw new Error('Base url must be specified');\r\n }\r\n\r\n const request = {\r\n url: encodeURI(`${context.getBaseUrl()}/${template}`),\r\n method: method.toLowerCase(),\r\n responseType: 'json',\r\n headers: {\r\n Accept: 'application/json',\r\n },\r\n transformRequest: [(data, headers) => {\r\n if (headers['Content-Type'] === 'application/x-www-form-urlencoded') {\r\n return Service.toQueryString(data);\r\n }\r\n\r\n if (!headers['NetLicensing-Origin']) {\r\n // eslint-disable-next-line no-param-reassign\r\n headers['NetLicensing-Origin'] = `NetLicensing/Javascript ${pkg.version}`;\r\n }\r\n return data;\r\n }],\r\n };\r\n\r\n // only node.js has a process variable that is of [[Class]] process\r\n if (!typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\r\n request.headers['User-agent'] = `NetLicensing/Javascript ${pkg.version}/node&${process.version}`;\r\n }\r\n\r\n if (['put', 'post', 'patch'].indexOf(request.method) >= 0) {\r\n if (request.method === 'post') {\r\n request.headers['Content-Type'] = 'application/x-www-form-urlencoded';\r\n }\r\n request.data = params;\r\n } else {\r\n request.params = params;\r\n }\r\n\r\n switch (context.getSecurityMode()) {\r\n // Basic Auth\r\n case Constants.BASIC_AUTHENTICATION:\r\n if (!context.getUsername()) throw new Error('Missing parameter \"username\"');\r\n if (!context.getPassword()) throw new Error('Missing parameter \"password\"');\r\n\r\n request.auth = {\r\n username: context.getUsername(),\r\n password: context.getPassword(),\r\n };\r\n break;\r\n // ApiKey Auth\r\n case Constants.APIKEY_IDENTIFICATION:\r\n if (!context.getApiKey()) throw new Error('Missing parameter \"apiKey\"');\r\n\r\n request.headers.Authorization = `Basic ${btoa(`apiKey:${context.getApiKey()}`)}`;\r\n break;\r\n // without authorization\r\n case Constants.ANONYMOUS_IDENTIFICATION:\r\n break;\r\n default:\r\n throw new Error('Unknown security mode');\r\n }\r\n\r\n return Service.getAxiosInstance()(request)\r\n .then((response) => {\r\n httpXHR = response;\r\n return response;\r\n })\r\n .catch((e) => {\r\n httpXHR = e;\r\n\r\n if (e.response) {\r\n // The request was made and the server responded with a status code\r\n // that falls out of the range of 2xx\r\n\r\n const error = new NlicError(e);\r\n\r\n error.config = e.config;\r\n error.code = e.code;\r\n error.request = e.request;\r\n error.response = e.response;\r\n\r\n // The request was made and the server responded with a status code\r\n // that falls out of the range of 2xx\r\n const { data } = e.response;\r\n\r\n if (data) {\r\n const info = Service.getInfo(e.response, [])[0] || {};\r\n error.message = info.value || 'Unknown';\r\n }\r\n\r\n throw error;\r\n }\r\n\r\n throw e;\r\n });\r\n }\r\n\r\n static getInfo(response, def) {\r\n try {\r\n return response.data.infos.info || def;\r\n } catch (e) {\r\n return def;\r\n }\r\n }\r\n\r\n static isValidUrl(url) {\r\n const pattern = new RegExp('^(https?:\\\\/\\\\/)?' // protocol\r\n + '((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.?)+[a-z]{2,}|' // domain name\r\n + '((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))' // OR ip (v4) address\r\n + '(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*' // port and path\r\n + '(\\\\?[;&a-z\\\\d%_.~+=-]*)?' // query string\r\n + '(\\\\#[-a-z\\\\d_]*)?$', 'i'); // fragment locator\r\n\r\n return pattern.test(url);\r\n }\r\n\r\n static toQueryString(data, prefix) {\r\n const query = [];\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(data)\r\n .forEach((key) => {\r\n if (has.call(data, key)) {\r\n const k = prefix ? `${prefix}[${key}]` : key;\r\n let v = data[key];\r\n v = (v instanceof Date) ? v.toISOString() : v;\r\n query.push((v !== null && typeof v === 'object')\r\n ? Service.toQueryString(v, k)\r\n : `${encodeURIComponent(k)}=${encodeURIComponent(v)}`);\r\n }\r\n });\r\n\r\n return query.join('&')\r\n .replace(/%5B[0-9]+%5D=/g, '=');\r\n }\r\n}\r\n","export default {\r\n FILTER_DELIMITER: ';',\r\n FILTER_PAIR_DELIMITER: '=',\r\n encode(filter = {}) {\r\n const query = [];\r\n const has = Object.prototype.hasOwnProperty;\r\n Object.keys(filter).forEach((key) => {\r\n if (has.call(filter, key)) {\r\n query.push(`${key}${this.FILTER_PAIR_DELIMITER}${filter[key]}`);\r\n }\r\n });\r\n return query.join(this.FILTER_DELIMITER);\r\n },\r\n decode(query = '') {\r\n const filter = {};\r\n query.split(this.FILTER_DELIMITER).forEach((v) => {\r\n const [name, value] = v.split(this.FILTER_PAIR_DELIMITER);\r\n filter[name] = value;\r\n });\r\n return filter;\r\n },\r\n};\r\n","module.exports = require(\"regenerator-runtime\");\n","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * License entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products/licensees of a vendor) that identifies the license. Vendor can\r\n * assign this number when creating a license or let NetLicensing generate one. Read-only after corresponding creation\r\n * transaction status is set to closed.\r\n * @property string number\r\n *\r\n * Name for the licensed item. Set from license template on creation, if not specified explicitly.\r\n * @property string name\r\n *\r\n * If set to false, the license is disabled. License can be re-enabled, but as long as it is disabled,\r\n * the license is excluded from the validation process.\r\n * @property boolean active\r\n *\r\n * price for the license. If >0, it must always be accompanied by the currency specification. Read-only,\r\n * set from license template on creation.\r\n * @property float price\r\n *\r\n * specifies currency for the license price. Check data types to discover which currencies are\r\n * supported. Read-only, set from license template on creation.\r\n * @property string currency\r\n *\r\n * If set to true, this license is not shown in NetLicensing Shop as purchased license. Set from license\r\n * template on creation, if not specified explicitly.\r\n * @property boolean $hidden\r\n *\r\n * @property string startDate\r\n *\r\n * Arbitrary additional user properties of string type may be associated with each license. The name of user property\r\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, licenseeNumber,\r\n * licenseTemplateNumber.\r\n */\r\nexport default class License extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n price: 'float',\r\n hidden: 'boolean',\r\n parentfeature: 'string',\r\n timeVolume: 'int',\r\n startDate: 'date',\r\n inUse: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setHidden(hidden) {\r\n return this.setProperty('hidden', hidden);\r\n }\r\n\r\n getHidden(def) {\r\n return this.getProperty('hidden', def);\r\n }\r\n\r\n setParentfeature(parentfeature) {\r\n return this.setProperty('parentfeature', parentfeature);\r\n }\r\n\r\n getParentfeature(def) {\r\n return this.getProperty('parentfeature', def);\r\n }\r\n\r\n setTimeVolume(timeVolume) {\r\n return this.setProperty('timeVolume', timeVolume);\r\n }\r\n\r\n getTimeVolume(def) {\r\n return this.getProperty('timeVolume', def);\r\n }\r\n\r\n setStartDate(startDate) {\r\n return this.setProperty('startDate', startDate);\r\n }\r\n\r\n getStartDate(def) {\r\n return this.getProperty('startDate', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n\r\n getPrice(def) {\r\n return this.getProperty('price', def);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n}\r\n","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nexport default class LicenseTransactionJoin {\r\n constructor(transaction, license) {\r\n this.transaction = transaction;\r\n this.license = license;\r\n }\r\n\r\n setTransaction(transaction) {\r\n this.transaction = transaction;\r\n return this;\r\n }\r\n\r\n getTransaction(def) {\r\n return this.transaction || def;\r\n }\r\n\r\n setLicense(license) {\r\n this.license = license;\r\n return this;\r\n }\r\n\r\n getLicense(def) {\r\n return this.license || def;\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\n\r\n/**\r\n * Validation result map\r\n * @type {WeakMap}\r\n */\r\nconst vr = new WeakMap();\r\n\r\nexport default class ValidationResults {\r\n constructor() {\r\n vr.set(this, { validators: {} });\r\n }\r\n\r\n getValidators() {\r\n return { ...vr.get(this).validators };\r\n }\r\n\r\n setProductModuleValidation(productModuleNumber, productModuleValidation) {\r\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\r\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\r\n }\r\n\r\n vr.get(this).validators[productModuleNumber] = productModuleValidation;\r\n\r\n return this;\r\n }\r\n\r\n getProductModuleValidation(productModuleNumber) {\r\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\r\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\r\n }\r\n\r\n return vr.get(this).validators[productModuleNumber];\r\n }\r\n\r\n setTtl(ttl) {\r\n if (!CheckUtils.isValid(ttl) || typeof ttl === 'object') {\r\n throw new TypeError(`Bad ttl:${ttl}`);\r\n }\r\n vr.get(this).ttl = new Date(String(ttl));\r\n\r\n return this;\r\n }\r\n\r\n getTtl() {\r\n return (vr.get(this).ttl) ? new Date(vr.get(this).ttl) : undefined;\r\n }\r\n\r\n toString() {\r\n let data = 'ValidationResult [';\r\n\r\n const validators = this.getValidators();\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(validators).forEach((productModuleNumber) => {\r\n data += `ProductModule<${productModuleNumber}>`;\r\n if (has.call(validators, productModuleNumber)) {\r\n data += JSON.stringify(validators[productModuleNumber]);\r\n }\r\n });\r\n\r\n data += ']';\r\n\r\n return data;\r\n }\r\n}\r\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n var cookies = require('./../helpers/cookies');\n\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (requestData === undefined) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];\n var defaultToConfig2Keys = [\n 'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',\n 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath'\n ];\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {\n if (utils.isObject(config2[prop])) {\n config[prop] = utils.deepMerge(config1[prop], config2[prop]);\n } else if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (utils.isObject(config1[prop])) {\n config[prop] = utils.deepMerge(config1[prop]);\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys);\n\n var otherKeys = Object\n .keys(config2)\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n return config;\n};\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","export default class NlicError extends Error {\r\n constructor(...args) {\r\n super(...args);\r\n\r\n this.config = {};\r\n this.response = {};\r\n this.request = {};\r\n this.code = '';\r\n\r\n this.isNlicError = true;\r\n this.isAxiosError = true;\r\n }\r\n}\r\n","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","import itemToObject from './itemToObject';\r\nimport Licensee from '../entities/Licensee';\r\n\r\nexport default (item) => new Licensee(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Licensee entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the licensee. Vendor can assign this\r\n * number when creating a licensee or let NetLicensing generate one. Read-only after creation of the first license for\r\n * the licensee.\r\n * @property string number\r\n *\r\n * Licensee name.\r\n * @property string name\r\n *\r\n * If set to false, the licensee is disabled. Licensee can not obtain new licenses, and validation is\r\n * disabled (tbd).\r\n * @property boolean active\r\n *\r\n * Licensee Secret for licensee\r\n * @property string licenseeSecret\r\n *\r\n * Mark licensee for transfer.\r\n * @property boolean markedForTransfer\r\n *\r\n * Arbitrary additional user properties of string type may be associated with each licensee. The name of user property\r\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, productNumber\r\n *\r\n * @constructor\r\n */\r\nexport default class Licensee extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n licenseeSecret: 'string',\r\n markedForTransfer: 'boolean',\r\n inUse: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n */\r\n setLicenseeSecret(licenseeSecret) {\r\n return this.setProperty('licenseeSecret', licenseeSecret);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n */\r\n getLicenseeSecret(def) {\r\n return this.getProperty('licenseeSecret', def);\r\n }\r\n\r\n setMarkedForTransfer(markedForTransfer) {\r\n return this.setProperty('markedForTransfer', markedForTransfer);\r\n }\r\n\r\n getMarkedForTransfer(def) {\r\n return this.getProperty('markedForTransfer', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\n// Cast an attribute to a native JS type.\r\nexport default (key, value) => {\r\n switch (key.trim().toLowerCase()) {\r\n case 'str':\r\n case 'string':\r\n return String(value);\r\n case 'int':\r\n case 'integer':\r\n return parseInt(value, 10);\r\n case 'float':\r\n case 'double':\r\n return parseFloat(value);\r\n case 'bool':\r\n case 'boolean':\r\n switch (value) {\r\n case 'true':\r\n case 'TRUE':\r\n return true;\r\n case 'false':\r\n case 'FALSE':\r\n return false;\r\n default:\r\n return Boolean(value);\r\n }\r\n case 'date':\r\n return (value === 'now') ? 'now' : new Date(String(value));\r\n default:\r\n return value;\r\n }\r\n};\r\n","import itemToObject from './itemToObject';\r\nimport License from '../entities/License';\r\n\r\nexport default (item) => new License(itemToObject(item));\r\n","import itemToObject from './itemToObject';\r\nimport LicenseTemplate from '../entities/LicenseTemplate';\r\n\r\nexport default (item) => new LicenseTemplate(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * License template entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the license template. Vendor can\r\n * assign this number when creating a license template or let NetLicensing generate one.\r\n * Read-only after creation of the first license from this license template.\r\n * @property string number\r\n *\r\n * If set to false, the license template is disabled. Licensee can not obtain any new licenses off this\r\n * license template.\r\n * @property boolean active\r\n *\r\n * Name for the licensed item.\r\n * @property string name\r\n *\r\n * Type of licenses created from this license template. Supported types: \"FEATURE\", \"TIMEVOLUME\",\r\n * \"FLOATING\", \"QUANTITY\"\r\n * @property string licenseType\r\n *\r\n * Price for the license. If >0, it must always be accompanied by the currency specification.\r\n * @property double price\r\n *\r\n * Specifies currency for the license price. Check data types to discover which currencies are\r\n * supported.\r\n * @property string currency\r\n *\r\n * If set to true, every new licensee automatically gets one license out of this license template on\r\n * creation. Automatic licenses must have their price set to 0.\r\n * @property boolean automatic\r\n *\r\n * If set to true, this license template is not shown in NetLicensing Shop as offered for purchase.\r\n * @property boolean hidden\r\n *\r\n * If set to true, licenses from this license template are not visible to the end customer, but\r\n * participate in validation.\r\n * @property boolean hideLicenses\r\n *\r\n * If set to true, this license template defines grace period of validity granted after subscription expiration.\r\n * @property boolean gracePeriod\r\n *\r\n * Mandatory for 'TIMEVOLUME' license type.\r\n * @property integer timeVolume\r\n *\r\n * Time volume period for 'TIMEVOLUME' license type. Supported types: \"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"\r\n * @property integer timeVolumePeriod\r\n *\r\n * Mandatory for 'FLOATING' license type.\r\n * @property integer maxSessions\r\n *\r\n * Mandatory for 'QUANTITY' license type.\r\n * @property integer quantity\r\n *\r\n * @constructor\r\n */\r\nexport default class LicenseTemplate extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n licenseType: 'string',\r\n price: 'double',\r\n currency: 'string',\r\n automatic: 'boolean',\r\n hidden: 'boolean',\r\n hideLicenses: 'boolean',\r\n gracePeriod: 'boolean',\r\n timeVolume: 'int',\r\n timeVolumePeriod: 'string',\r\n maxSessions: 'int',\r\n quantity: 'int',\r\n inUse: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setLicenseType(licenseType) {\r\n return this.setProperty('licenseType', licenseType);\r\n }\r\n\r\n getLicenseType(def) {\r\n return this.getProperty('licenseType', def);\r\n }\r\n\r\n setPrice(price) {\r\n return this.setProperty('price', price);\r\n }\r\n\r\n getPrice(def) {\r\n return this.getProperty('price', def);\r\n }\r\n\r\n setCurrency(currency) {\r\n return this.setProperty('currency', currency);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n\r\n setAutomatic(automatic) {\r\n return this.setProperty('automatic', automatic);\r\n }\r\n\r\n getAutomatic(def) {\r\n return this.getProperty('automatic', def);\r\n }\r\n\r\n setHidden(hidden) {\r\n return this.setProperty('hidden', hidden);\r\n }\r\n\r\n getHidden(def) {\r\n return this.getProperty('hidden', def);\r\n }\r\n\r\n setHideLicenses(hideLicenses) {\r\n return this.setProperty('hideLicenses', hideLicenses);\r\n }\r\n\r\n getHideLicenses(def) {\r\n return this.getProperty('hideLicenses', def);\r\n }\r\n\r\n setTimeVolume(timeVolume) {\r\n return this.setProperty('timeVolume', timeVolume);\r\n }\r\n\r\n getTimeVolume(def) {\r\n return this.getProperty('timeVolume', def);\r\n }\r\n\r\n setTimeVolumePeriod(timeVolumePeriod) {\r\n return this.setProperty('timeVolumePeriod', timeVolumePeriod);\r\n }\r\n\r\n getTimeVolumePeriod(def) {\r\n return this.getProperty('timeVolumePeriod', def);\r\n }\r\n\r\n setMaxSessions(maxSessions) {\r\n return this.setProperty('maxSessions', maxSessions);\r\n }\r\n\r\n getMaxSessions(def) {\r\n return this.getProperty('maxSessions', def);\r\n }\r\n\r\n setQuantity(quantity) {\r\n return this.setProperty('quantity', quantity);\r\n }\r\n\r\n getQuantity(def) {\r\n return this.getProperty('quantity', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport PaymentMethod from '../entities/PaymentMethod';\r\n\r\nexport default (item) => new PaymentMethod(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * PaymentMethod entity used internally by NetLicensing.\r\n *\r\n * @property string number\r\n * @property boolean active\r\n *\r\n * @constructor\r\n */\r\nexport default class PaymentMethod extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n 'paypal.subject': 'string',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setPaypalSubject(paypalSubject) {\r\n return this.setProperty('paypal.subject', paypalSubject);\r\n }\r\n\r\n getPaypalSubject(def) {\r\n return this.getProperty('paypal.subject', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport ProductModule from '../entities/ProductModule';\r\n\r\nexport default (item) => new ProductModule(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Product module entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the product module. Vendor can assign\r\n * this number when creating a product module or let NetLicensing generate one. Read-only after creation of the first\r\n * licensee for the product.\r\n * @property string number\r\n *\r\n * If set to false, the product module is disabled. Licensees can not obtain any new licenses for this\r\n * product module.\r\n * @property boolean active\r\n *\r\n * Product module name that is visible to the end customers in NetLicensing Shop.\r\n * @property string name\r\n *\r\n * Licensing model applied to this product module. Defines what license templates can be\r\n * configured for the product module and how licenses for this product module are processed during validation.\r\n * @property string licensingModel\r\n *\r\n * Maximum checkout validity (days). Mandatory for 'Floating' licensing model.\r\n * @property integer maxCheckoutValidity\r\n *\r\n * Remaining time volume for yellow level. Mandatory for 'Rental' licensing model.\r\n * @property integer yellowThreshold\r\n *\r\n * Remaining time volume for red level. Mandatory for 'Rental' licensing model.\r\n * @property integer redThreshold\r\n *\r\n * License template. Mandatory for 'Try & Buy' licensing model. Supported types: \"TIMEVOLUME\", \"FEATURE\".\r\n * @property string licenseTemplate\r\n *\r\n * Licensee secret mode for product.Supported types: \"PREDEFINED\", \"CLIENT\"\r\n * @property boolean licenseeSecretMode\r\n *\r\n * @constructor\r\n */\r\nexport default class ProductModule extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n licensingModel: 'string',\r\n maxCheckoutValidity: 'int',\r\n yellowThreshold: 'int',\r\n redThreshold: 'int',\r\n licenseTemplate: 'string',\r\n inUse: 'boolean',\r\n licenseeSecretMode: 'string',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setLicensingModel(licensingModel) {\r\n return this.setProperty('licensingModel', licensingModel);\r\n }\r\n\r\n getLicensingModel(def) {\r\n return this.getProperty('licensingModel', def);\r\n }\r\n\r\n setMaxCheckoutValidity(maxCheckoutValidity) {\r\n return this.setProperty('maxCheckoutValidity', maxCheckoutValidity);\r\n }\r\n\r\n getMaxCheckoutValidity(def) {\r\n return this.getProperty('maxCheckoutValidity', def);\r\n }\r\n\r\n setYellowThreshold(yellowThreshold) {\r\n return this.setProperty('yellowThreshold', yellowThreshold);\r\n }\r\n\r\n getYellowThreshold(def) {\r\n return this.getProperty('yellowThreshold', def);\r\n }\r\n\r\n setRedThreshold(redThreshold) {\r\n return this.setProperty('redThreshold', redThreshold);\r\n }\r\n\r\n getRedThreshold(def) {\r\n return this.getProperty('redThreshold', def);\r\n }\r\n\r\n setLicenseTemplate(licenseTemplate) {\r\n return this.setProperty('licenseTemplate', licenseTemplate);\r\n }\r\n\r\n getLicenseTemplate(def) {\r\n return this.getProperty('licenseTemplate', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n\r\n setLicenseeSecretMode(licenseeSecretMode) {\r\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\r\n }\r\n\r\n getLicenseeSecretMode(def) {\r\n return this.getProperty('licenseeSecretMode', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Product from '../entities/Product';\r\n\r\nexport default (item) => {\r\n const object = itemToObject(item);\r\n\r\n const discounts = object.discount;\r\n\r\n delete object.discount;\r\n\r\n const product = new Product(object);\r\n product.setProductDiscounts(discounts);\r\n\r\n return product;\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\nimport ProductDiscount from './ProductDiscount';\r\n\r\n/**\r\n * The discounts map\r\n * @type {{}}\r\n * @private\r\n */\r\nconst discountsMap = new WeakMap();\r\n\r\n/**\r\n * An identifier that show if discounts was touched\r\n * @type {{}}\r\n * @private\r\n */\r\nconst discountsTouched = new WeakMap();\r\n\r\n/**\r\n * NetLicensing Product entity.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number that identifies the product. Vendor can assign this number when creating a product or\r\n * let NetLicensing generate one. Read-only after creation of the first licensee for the product.\r\n * @property string number\r\n *\r\n * If set to false, the product is disabled. No new licensees can be registered for the product,\r\n * existing licensees can not obtain new licenses.\r\n * @property boolean active\r\n *\r\n * Product name. Together with the version identifies the product for the end customer.\r\n * @property string name\r\n *\r\n * Product version. Convenience parameter, additional to the product name.\r\n * @property float version\r\n *\r\n * If set to 'true', non-existing licensees will be created at first validation attempt.\r\n * @property boolean licenseeAutoCreate\r\n *\r\n * Licensee secret mode for product.Supported types: \"DISABLED\", \"PREDEFINED\", \"CLIENT\"\r\n * @property boolean licenseeSecretMode\r\n *\r\n * Product description. Optional.\r\n * @property string description\r\n *\r\n * Licensing information. Optional.\r\n * @property string licensingInfo\r\n *\r\n * @property boolean inUse\r\n *\r\n * Arbitrary additional user properties of string type may be associated with each product. The name of user property\r\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted.\r\n *\r\n * @constructor\r\n */\r\nexport default class Product extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n version: 'string',\r\n description: 'string',\r\n licensingInfo: 'string',\r\n licenseeAutoCreate: 'boolean',\r\n licenseeSecretMode: 'string',\r\n inUse: 'boolean',\r\n },\r\n });\r\n\r\n discountsMap.set(this, []);\r\n discountsTouched.set(this, false);\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setVersion(version) {\r\n return this.setProperty('version', version);\r\n }\r\n\r\n getVersion(def) {\r\n return this.getProperty('version', def);\r\n }\r\n\r\n setLicenseeAutoCreate(licenseeAutoCreate) {\r\n return this.setProperty('licenseeAutoCreate', licenseeAutoCreate);\r\n }\r\n\r\n getLicenseeAutoCreate(def) {\r\n return this.getProperty('licenseeAutoCreate', def);\r\n }\r\n\r\n /**\r\n * @deprecated use ProductModule.setLicenseeSecretMode instead\r\n */\r\n setLicenseeSecretMode(licenseeSecretMode) {\r\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\r\n }\r\n\r\n /**\r\n * @deprecated use ProductModule.getLicenseeSecretMode instead\r\n */\r\n getLicenseeSecretMode(def) {\r\n return this.getProperty('licenseeSecretMode', def);\r\n }\r\n\r\n setDescription(description) {\r\n return this.setProperty('description', description);\r\n }\r\n\r\n getDescription(def) {\r\n return this.getProperty('description', def);\r\n }\r\n\r\n setLicensingInfo(licensingInfo) {\r\n return this.setProperty('licensingInfo', licensingInfo);\r\n }\r\n\r\n getLicensingInfo(def) {\r\n return this.getProperty('licensingInfo', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n\r\n /**\r\n * Add discount to product\r\n *\r\n * @param discount NetLicensing.ProductDiscount\r\n * @returns {NetLicensing.Product}\r\n */\r\n addDiscount(discount) {\r\n const discounts = discountsMap.get(this);\r\n\r\n let productDiscount = discount;\r\n\r\n if (typeof productDiscount !== 'string' && !(productDiscount instanceof ProductDiscount)) {\r\n productDiscount = new ProductDiscount(productDiscount);\r\n }\r\n\r\n discounts.push(productDiscount);\r\n discountsMap.set(this, discounts);\r\n discountsTouched.set(this, true);\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set discounts to product\r\n * @param discounts\r\n */\r\n setProductDiscounts(discounts) {\r\n discountsMap.set(this, []);\r\n discountsTouched.set(this, true);\r\n\r\n if (!discounts) return this;\r\n\r\n if (Array.isArray(discounts)) {\r\n discounts.forEach((discount) => {\r\n this.addDiscount(discount);\r\n });\r\n\r\n return this;\r\n }\r\n\r\n this.addDiscount(discounts);\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Get array of objects discounts\r\n * @returns {Array}\r\n */\r\n getProductDiscounts() {\r\n return Object.assign([], discountsMap.get(this));\r\n }\r\n\r\n asPropertiesMap() {\r\n const propertiesMap = super.asPropertiesMap();\r\n\r\n if (discountsMap.get(this).length) {\r\n propertiesMap.discount = discountsMap.get(this).map((discount) => discount.toString());\r\n }\r\n\r\n if (!propertiesMap.discount && discountsTouched.get(this)) {\r\n propertiesMap.discount = '';\r\n }\r\n\r\n return propertiesMap;\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nimport BaseEntity from './BaseEntity';\r\n\r\nexport default class ProductDiscount extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n totalPrice: 'float',\r\n currency: 'string',\r\n amountFix: 'float',\r\n amountPercent: 'int',\r\n },\r\n });\r\n }\r\n\r\n setTotalPrice(totalPrice) {\r\n return this.setProperty('totalPrice', totalPrice);\r\n }\r\n\r\n getTotalPrice(def) {\r\n return this.getProperty('totalPrice', def);\r\n }\r\n\r\n setCurrency(currency) {\r\n return this.setProperty('currency', currency);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n\r\n setAmountFix(amountFix) {\r\n return this.setProperty('amountFix', amountFix).removeProperty('amountPercent');\r\n }\r\n\r\n getAmountFix(def) {\r\n return this.getProperty('amountFix', def);\r\n }\r\n\r\n setAmountPercent(amountPercent) {\r\n return this.setProperty('amountPercent', amountPercent).removeProperty('amountFix');\r\n }\r\n\r\n getAmountPercent(def) {\r\n return this.getProperty('amountPercent', def);\r\n }\r\n\r\n toString() {\r\n const totalPrice = this.getTotalPrice();\r\n const currency = this.getCurrency();\r\n let amount = 0;\r\n\r\n if (this.getAmountFix(null)) amount = this.getAmountFix();\r\n if (this.getAmountPercent(null)) amount = `${this.getAmountPercent()}%`;\r\n\r\n return `${totalPrice};${currency};${amount}`;\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Token from '../entities/Token';\r\n\r\nexport default (item) => new Token(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Product module entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number\r\n * @property string number\r\n *\r\n * If set to false, the token is disabled.\r\n * @property boolean active\r\n *\r\n * Expiration Time\r\n * @property string expirationTime\r\n *\r\n * @property string vendorNumber\r\n *\r\n * Token type to be generated.\r\n * DEFAULT - default one-time token (will be expired after first request)\r\n * SHOP - shop token is used to redirect customer to the netlicensingShop(licenseeNumber is mandatory)\r\n * APIKEY - APIKey-token\r\n * @property string tokenType\r\n *\r\n * @property string licenseeNumber\r\n *\r\n * @constructor\r\n */\r\nexport default class Token extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n expirationTime: 'date',\r\n vendorNumber: 'string',\r\n tokenType: 'string',\r\n licenseeNumber: 'string',\r\n successURL: 'string',\r\n successURLTitle: 'string',\r\n cancelURL: 'string',\r\n cancelURLTitle: 'string',\r\n shopURL: 'string',\r\n },\r\n });\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setExpirationTime(expirationTime) {\r\n return this.setProperty('expirationTime', expirationTime);\r\n }\r\n\r\n getExpirationTime(def) {\r\n return this.getProperty('expirationTime', def);\r\n }\r\n\r\n setVendorNumber(vendorNumber) {\r\n return this.setProperty('vendorNumber', vendorNumber);\r\n }\r\n\r\n getVendorNumber(def) {\r\n return this.getProperty('vendorNumber', def);\r\n }\r\n\r\n setTokenType(tokenType) {\r\n return this.setProperty('tokenType', tokenType);\r\n }\r\n\r\n getTokenType(def) {\r\n return this.getProperty('tokenType', def);\r\n }\r\n\r\n setLicenseeNumber(licenseeNumber) {\r\n return this.setProperty('licenseeNumber', licenseeNumber);\r\n }\r\n\r\n getLicenseeNumber(def) {\r\n return this.getProperty('licenseeNumber', def);\r\n }\r\n\r\n setSuccessURL(successURL) {\r\n return this.setProperty('successURL', successURL);\r\n }\r\n\r\n getSuccessURL(def) {\r\n return this.getProperty('successURL', def);\r\n }\r\n\r\n setSuccessURLTitle(successURLTitle) {\r\n return this.setProperty('successURLTitle', successURLTitle);\r\n }\r\n\r\n getSuccessURLTitle(def) {\r\n return this.getProperty('successURLTitle', def);\r\n }\r\n\r\n setCancelURL(cancelURL) {\r\n return this.setProperty('cancelURL', cancelURL);\r\n }\r\n\r\n getCancelURL(def) {\r\n return this.getProperty('cancelURL', def);\r\n }\r\n\r\n setCancelURLTitle(cancelURLTitle) {\r\n return this.setProperty('cancelURLTitle', cancelURLTitle);\r\n }\r\n\r\n getCancelURLTitle(def) {\r\n return this.getProperty('cancelURLTitle', def);\r\n }\r\n\r\n getShopURL(def) {\r\n return this.getProperty('shopURL', def);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n * @alias setApiKeyRole\r\n * @param role\r\n * @returns {*}\r\n */\r\n setRole(role) {\r\n return this.setApiKeyRole(role);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n * @alias getApiKeyRole\r\n * @param def\r\n * @returns {*}\r\n */\r\n getRole(def) {\r\n return this.getApiKeyRole(def);\r\n }\r\n\r\n setApiKeyRole(apiKeyRole) {\r\n return this.setProperty('apiKeyRole', apiKeyRole);\r\n }\r\n\r\n getApiKeyRole(def) {\r\n return this.getProperty('apiKeyRole', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Transaction from '../entities/Transaction';\r\nimport License from '../entities/License';\r\nimport LicenseTransactionJoin from '../entities/LicenseTransactionJoin';\r\nimport Constants from '../Constants';\r\n\r\nexport default (item) => {\r\n const object = itemToObject(item);\r\n\r\n const { licenseTransactionJoin } = object;\r\n\r\n delete object.licenseTransactionJoin;\r\n\r\n const transaction = new Transaction(object);\r\n\r\n if (licenseTransactionJoin) {\r\n const joins = [];\r\n\r\n licenseTransactionJoin.forEach((v) => {\r\n const join = new LicenseTransactionJoin();\r\n join.setLicense(new License({ number: v[Constants.License.LICENSE_NUMBER] }));\r\n join.setTransaction(new Transaction({ number: v[Constants.Transaction.TRANSACTION_NUMBER] }));\r\n\r\n joins.push(join);\r\n });\r\n\r\n transaction.setLicenseTransactionJoins(joins);\r\n }\r\n\r\n return transaction;\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\nimport LicenseTransactionJoin from './LicenseTransactionJoin';\r\nimport License from './License';\r\n\r\n/**\r\n * Transaction entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the transaction. This number is\r\n * always generated by NetLicensing.\r\n * @property string number\r\n *\r\n * always true for transactions\r\n * @property boolean active\r\n *\r\n * Status of transaction. \"CANCELLED\", \"CLOSED\", \"PENDING\".\r\n * @property string status\r\n *\r\n * \"SHOP\". AUTO transaction for internal use only.\r\n * @property string source\r\n *\r\n * grand total for SHOP transaction (see source).\r\n * @property float grandTotal\r\n *\r\n * discount for SHOP transaction (see source).\r\n * @property float discount\r\n *\r\n * specifies currency for money fields (grandTotal and discount). Check data types to discover which\r\n * @property string currency\r\n *\r\n * Date created. Optional.\r\n * @property string dateCreated\r\n *\r\n * Date closed. Optional.\r\n * @property string dateClosed\r\n *\r\n * @constructor\r\n */\r\nexport default class Transaction extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n name: 'string',\r\n status: 'string',\r\n source: 'string',\r\n grandTotal: 'float',\r\n discount: 'float',\r\n currency: 'string',\r\n dateCreated: 'date',\r\n dateClosed: 'date',\r\n active: 'boolean',\r\n paymentMethod: 'string',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setStatus(status) {\r\n return this.setProperty('status', status);\r\n }\r\n\r\n getStatus(def) {\r\n return this.getProperty('status', def);\r\n }\r\n\r\n setSource(source) {\r\n return this.setProperty('source', source);\r\n }\r\n\r\n getSource(def) {\r\n return this.getProperty('source', def);\r\n }\r\n\r\n setGrandTotal(grandTotal) {\r\n return this.setProperty('grandTotal', grandTotal);\r\n }\r\n\r\n getGrandTotal(def) {\r\n return this.getProperty('grandTotal', def);\r\n }\r\n\r\n setDiscount(discount) {\r\n return this.setProperty('discount', discount);\r\n }\r\n\r\n getDiscount(def) {\r\n return this.getProperty('discount', def);\r\n }\r\n\r\n setCurrency(currency) {\r\n return this.setProperty('currency', currency);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n\r\n setDateCreated(dateCreated) {\r\n return this.setProperty('dateCreated', dateCreated);\r\n }\r\n\r\n getDateCreated(def) {\r\n return this.getProperty('dateCreated', def);\r\n }\r\n\r\n setDateClosed(dateClosed) {\r\n return this.setProperty('dateClosed', dateClosed);\r\n }\r\n\r\n getDateClosed(def) {\r\n return this.getProperty('dateClosed', def);\r\n }\r\n\r\n setPaymentMethod(paymentMethod) {\r\n return this.setProperty('paymentMethod', paymentMethod);\r\n }\r\n\r\n getPaymentMethod(def) {\r\n return this.getProperty('paymentMethod', def);\r\n }\r\n\r\n setActive() {\r\n return this.setProperty('active', true);\r\n }\r\n\r\n getLicenseTransactionJoins(def) {\r\n return this.getProperty('licenseTransactionJoins', def);\r\n }\r\n\r\n setLicenseTransactionJoins(licenseTransactionJoins) {\r\n return this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\r\n }\r\n\r\n setListLicenseTransactionJoin(properties) {\r\n if (!properties) return;\r\n\r\n const licenseTransactionJoins = this.getProperty('licenseTransactionJoins', []);\r\n const licenseTransactionJoin = new LicenseTransactionJoin();\r\n\r\n properties.forEach((property) => {\r\n if (property.name === 'licenseNumber') {\r\n licenseTransactionJoin.setLicense(new License({ number: property.value }));\r\n }\r\n\r\n if (property.name === 'transactionNumber') {\r\n licenseTransactionJoin.setTransaction(new Transaction({ number: property.value }));\r\n }\r\n });\r\n\r\n licenseTransactionJoins.push(licenseTransactionJoin);\r\n this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Country from '../entities/Country';\r\n\r\nexport default (item) => new Country(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Country entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * @property code - Unique code of country.\r\n *\r\n * @property name - Unique name of country\r\n *\r\n * @property vatPercent - Country vat.\r\n *\r\n * @property isEu - is country in EU.\r\n */\r\nexport default class Country extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n code: 'string',\r\n name: 'string',\r\n vatPercent: 'int',\r\n isEu: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setCode(code) {\r\n return this.setProperty('code', code);\r\n }\r\n\r\n getCode(def) {\r\n return this.getProperty('code', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setVatPercent(vat) {\r\n return this.setProperty('vatPercent', vat);\r\n }\r\n\r\n getVatPercent(def) {\r\n return this.getProperty('vatPercent', def);\r\n }\r\n\r\n setIsEu(isEu) {\r\n return this.setProperty('isEu', isEu);\r\n }\r\n\r\n getIsEu(def) {\r\n return this.getProperty('isEu', def);\r\n }\r\n}\r\n","// Constants\r\nimport Constants from './Constants';\r\n\r\n// VO\r\nimport Context from './vo/Context';\r\nimport Page from './vo/Page';\r\nimport ValidationParameters from './vo/ValidationParameters';\r\nimport ValidationResults from './vo/ValidationResults';\r\n\r\n// Services\r\nimport Service from './services/Service';\r\nimport LicenseeService from './services/LicenseeService';\r\nimport LicenseService from './services/LicenseService';\r\nimport LicenseTemplateService from './services/LicenseTemplateService';\r\nimport PaymentMethodService from './services/PaymentMethodService';\r\nimport ProductModuleService from './services/ProductModuleService';\r\nimport ProductService from './services/ProductService';\r\nimport TokenService from './services/TokenService';\r\nimport TransactionService from './services/TransactionService';\r\nimport UtilityService from './services/UtilityService';\r\n\r\n// Entities\r\nimport BaseEntity from './entities/BaseEntity';\r\nimport Country from './entities/Country';\r\nimport License from './entities/License';\r\nimport Licensee from './entities/Licensee';\r\nimport LicenseTemplate from './entities/LicenseTemplate';\r\nimport PaymentMethod from './entities/PaymentMethod';\r\nimport Product from './entities/Product';\r\nimport ProductDiscount from './entities/ProductDiscount';\r\nimport ProductModule from './entities/ProductModule';\r\nimport Token from './entities/Token';\r\nimport Transaction from './entities/Transaction';\r\nimport LicenseTransactionJoin from './entities/LicenseTransactionJoin';\r\n\r\n// Converters\r\nimport itemToCountry from './converters/itemToCountry';\r\nimport itemToLicense from './converters/itemToLicense';\r\nimport itemToLicensee from './converters/itemToLicensee';\r\nimport itemToLicenseTemplate from './converters/itemToLicenseTemplate';\r\nimport itemToObject from './converters/itemToObject';\r\nimport itemToPaymentMethod from './converters/itemToPaymentMethod';\r\nimport itemToProduct from './converters/itemToProduct';\r\nimport itemToProductModule from './converters/itemToProductModule';\r\nimport itemToToken from './converters/itemToToken';\r\nimport itemToTransaction from './converters/itemToTransaction';\r\n\r\n// Utils\r\nimport CastsUtils from './util/CastsUtils';\r\nimport CheckUtils from './util/CheckUtils';\r\nimport FilterUtils from './util/FilterUtils';\r\n\r\n// Errors\r\nimport NlicError from './errors/NlicError';\r\n\r\n// Create the default instance to be exported\r\nconst NetLicensing = {\r\n // Constants\r\n Constants,\r\n\r\n // Expose VO\r\n Context,\r\n Page,\r\n ValidationParameters,\r\n ValidationResults,\r\n\r\n // Expose Services\r\n Service,\r\n LicenseeService,\r\n LicenseService,\r\n LicenseTemplateService,\r\n PaymentMethodService,\r\n ProductModuleService,\r\n ProductService,\r\n TokenService,\r\n TransactionService,\r\n UtilityService,\r\n\r\n // Expose Entities\r\n BaseEntity,\r\n Country,\r\n License,\r\n Licensee,\r\n LicenseTemplate,\r\n PaymentMethod,\r\n Product,\r\n ProductDiscount,\r\n ProductModule,\r\n Token,\r\n Transaction,\r\n LicenseTransactionJoin,\r\n\r\n // Expose Converters\r\n itemToCountry,\r\n itemToLicense,\r\n itemToLicensee,\r\n itemToLicenseTemplate,\r\n itemToObject,\r\n itemToPaymentMethod,\r\n itemToProduct,\r\n itemToProductModule,\r\n itemToToken,\r\n itemToTransaction,\r\n\r\n // Expose Utils\r\n CastsUtils,\r\n CheckUtils,\r\n FilterUtils,\r\n\r\n // Errors\r\n NlicError,\r\n};\r\n\r\nmodule.exports = NetLicensing;\r\n\r\n// Allow use of default import syntax in TypeScript\r\nmodule.exports.default = NetLicensing;\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nimport Constants from '../Constants';\r\nimport CheckUtils from '../util/CheckUtils';\r\n\r\n/**\r\n * The context values.\r\n * @type {{}}\r\n * @private\r\n */\r\nconst valuesMap = new WeakMap();\r\n\r\n/**\r\n * List of values that was defined\r\n * @type {{}}\r\n * @private\r\n */\r\nconst definedMap = new WeakMap();\r\n\r\n/**\r\n * Context defaults\r\n * @type {{baseUrl: string, securityMode}}\r\n * @private\r\n */\r\nconst defaultsMap = new WeakMap();\r\n\r\nexport default class Context {\r\n constructor(values) {\r\n defaultsMap.set(this, {\r\n baseUrl: 'https://go.netlicensing.io/core/v2/rest',\r\n securityMode: Constants.BASIC_AUTHENTICATION,\r\n });\r\n\r\n valuesMap.set(this, {});\r\n\r\n definedMap.set(this, {});\r\n\r\n this.setValues({ ...defaultsMap.get(this), ...values });\r\n }\r\n\r\n setBaseUrl(baseUrl) {\r\n return this.setValue('baseUrl', baseUrl);\r\n }\r\n\r\n getBaseUrl(def) {\r\n return this.getValue('baseUrl', def);\r\n }\r\n\r\n setUsername(username) {\r\n return this.setValue('username', username);\r\n }\r\n\r\n getUsername(def) {\r\n return this.getValue('username', def);\r\n }\r\n\r\n setPassword(password) {\r\n return this.setValue('password', password);\r\n }\r\n\r\n getPassword(def) {\r\n return this.getValue('password', def);\r\n }\r\n\r\n setApiKey(apiKey) {\r\n return this.setValue('apiKey', apiKey);\r\n }\r\n\r\n getApiKey(def) {\r\n return this.getValue('apiKey', def);\r\n }\r\n\r\n setSecurityMode(securityMode) {\r\n return this.setValue('securityMode', securityMode);\r\n }\r\n\r\n getSecurityMode(def) {\r\n return this.getValue('securityMode', def);\r\n }\r\n\r\n setVendorNumber(vendorNumber) {\r\n return this.setValue('vendorNumber', vendorNumber);\r\n }\r\n\r\n getVendorNumber(def) {\r\n return this.getValue('vendorNumber', def);\r\n }\r\n\r\n /**\r\n * Set a given values on the context.\r\n * @param key\r\n * @param value\r\n * @returns {Context}\r\n */\r\n setValue(key, value) {\r\n // check values\r\n if (!CheckUtils.isValid(key) || typeof key === 'object') throw new Error(`Bad value key:${key}`);\r\n if (!CheckUtils.isValid(value)) throw new Error(`Value ${key} has wrong value${value}`);\r\n\r\n // define keys\r\n this.define(key);\r\n\r\n let copedValue = value;\r\n\r\n if (typeof value === 'object' && value !== null) {\r\n copedValue = (Array.isArray(value)) ? Object.assign([], value) : ({ ...value });\r\n }\r\n\r\n const values = valuesMap.get(this);\r\n values[key] = copedValue;\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the array of context values.\r\n * @param values\r\n * @returns {Context}\r\n */\r\n setValues(values) {\r\n this.removeValues();\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(values).forEach((key) => {\r\n if (has.call(values, key)) {\r\n this.setValue(key, values[key]);\r\n }\r\n });\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Get an value from the context.\r\n * @param key\r\n * @param def\r\n * @returns {*}\r\n */\r\n getValue(key, def) {\r\n return (key in valuesMap.get(this))\r\n ? valuesMap.get(this)[key]\r\n : def;\r\n }\r\n\r\n /**\r\n * Get all of the current value on the context.\r\n */\r\n getValues() {\r\n return { ...valuesMap.get(this) };\r\n }\r\n\r\n /**\r\n * Remove value\r\n * @param key\r\n * @returns {Context}\r\n */\r\n removeValue(key) {\r\n const values = valuesMap.get(this);\r\n delete values[key];\r\n\r\n this.removeDefine(key);\r\n return this;\r\n }\r\n\r\n /**\r\n * Remove values\r\n * @param keys\r\n */\r\n removeValues(keys) {\r\n const keysAr = keys || Object.keys(valuesMap.get(this));\r\n keysAr.forEach((key) => this.removeValue(key));\r\n }\r\n\r\n /**\r\n * Define value getter and setter\r\n * @param key\r\n * @param onlyGetter\r\n * @private\r\n */\r\n define(key, onlyGetter) {\r\n if (this.hasDefine(key)) return;\r\n\r\n if (!CheckUtils.isValid(key) || typeof property === 'object') {\r\n throw new TypeError(`Bad value name:${key}`);\r\n }\r\n\r\n const self = this;\r\n\r\n // delete property\r\n delete this[key];\r\n\r\n const descriptors = {\r\n enumerable: true,\r\n configurable: true,\r\n get() {\r\n return self.getValue(key);\r\n },\r\n };\r\n\r\n if (!onlyGetter) {\r\n descriptors.set = (value) => self.setValue(key, value);\r\n }\r\n\r\n const defined = definedMap.get(this);\r\n defined[key] = true;\r\n\r\n Object.defineProperty(this, key, descriptors);\r\n }\r\n\r\n /**\r\n * Check if value has defined\r\n * @param key\r\n * @private\r\n */\r\n hasDefine(key) {\r\n return Boolean(definedMap.get(this)[key]);\r\n }\r\n\r\n /**\r\n * Remove value getter and setter\r\n * @param key\r\n * @private\r\n */\r\n removeDefine(key) {\r\n if (!this.hasDefine(key)) return;\r\n\r\n const defined = definedMap.get(this);\r\n delete defined[key];\r\n\r\n delete this[key];\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\n/**\r\n * Validation parameters map\r\n *\r\n * @type {WeakMap}\r\n */\r\nconst vpMap = new WeakMap();\r\n\r\nexport default class ValidationParameters {\r\n constructor() {\r\n vpMap.set(this, { parameters: {} });\r\n }\r\n\r\n /**\r\n * Sets the target product\r\n *\r\n * optional productNumber, must be provided in case licensee auto-create is enabled\r\n * @param productNumber\r\n * @returns {ValidationParameters}\r\n */\r\n setProductNumber(productNumber) {\r\n vpMap.get(this).productNumber = productNumber;\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the target product\r\n * @returns {*}\r\n */\r\n getProductNumber() {\r\n return vpMap.get(this).productNumber;\r\n }\r\n\r\n /**\r\n * Sets the name for the new licensee\r\n *\r\n * optional human-readable licensee name in case licensee will be auto-created. This parameter must not\r\n * be the name, but can be used to store any other useful string information with new licensees, up to\r\n * 1000 characters.\r\n * @param licenseeName\r\n * @returns {NetLicensing.ValidationParameters}\r\n */\r\n setLicenseeName(licenseeName) {\r\n vpMap.get(this).licenseeName = licenseeName;\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the licensee name\r\n * @returns {*}\r\n */\r\n getLicenseeName() {\r\n return vpMap.get(this).licenseeName;\r\n }\r\n\r\n /**\r\n * Sets the licensee secret\r\n *\r\n * licensee secret stored on the client side. Refer to Licensee Secret documentation for details.\r\n * @param licenseeSecret\r\n * @returns {ValidationParameters}\r\n * @deprecated use 'NodeLocked' licensingModel instead\r\n */\r\n setLicenseeSecret(licenseeSecret) {\r\n vpMap.get(this).licenseeSecret = licenseeSecret;\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the licensee secret\r\n * @returns {*}\r\n * @deprecated use 'NodeLocked' licensingModel instead\r\n */\r\n getLicenseeSecret() {\r\n return vpMap.get(this).licenseeSecret;\r\n }\r\n\r\n /**\r\n * Get validation parameters\r\n * @returns {*}\r\n */\r\n getParameters() {\r\n return { ...vpMap.get(this).parameters };\r\n }\r\n\r\n getProductModuleValidationParameters(productModuleNumber) {\r\n return { ...vpMap.get(this).parameters[productModuleNumber] };\r\n }\r\n\r\n setProductModuleValidationParameters(productModuleNumber, productModuleParameters) {\r\n const { parameters } = vpMap.get(this);\r\n\r\n if (parameters[productModuleNumber] === undefined || !Object.keys(parameters[productModuleNumber]).length) {\r\n parameters[productModuleNumber] = {};\r\n }\r\n\r\n parameters[productModuleNumber] = Object.assign(parameters[productModuleNumber], productModuleParameters);\r\n\r\n return this;\r\n }\r\n}\r\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","(function () {\n \"use strict\";\n\n function btoa(str) {\n var buffer;\n\n if (str instanceof Buffer) {\n buffer = str;\n } else {\n buffer = Buffer.from(str.toString(), 'binary');\n }\n\n return buffer.toString('base64');\n }\n\n module.exports = btoa;\n}());\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = require('base64-js')\nvar ieee754 = require('ieee754')\nvar isArray = require('isarray')\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n return arr.foo() === 42 && // typed array instances can be augmented\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length)\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length)\n }\n that.length = length\n }\n\n return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype\n return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true\n })\n }\n}\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n}\n\nfunction alloc (that, size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n assertSize(size)\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0\n }\n }\n return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0\n that = createBuffer(that, length)\n\n var actual = that.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual)\n }\n\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n that = createBuffer(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array)\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset)\n } else {\n array = new Uint8Array(array, byteOffset, length)\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array)\n }\n return that\n}\n\nfunction fromObject (that, obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n that = createBuffer(that, len)\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len)\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string\n }\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return ''\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!Buffer.isBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end)\n newBuf.__proto__ = Buffer.prototype\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start]\n }\n }\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if (code < 256) {\n val = code\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString())\n var len = bytes.length\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\nfunction isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n}\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n for (var i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(\n uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)\n ))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","exports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeFunction = require(\"./isNativeFunction\");\n\nvar construct = require(\"./construct\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;","function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport ValidationResults from '../vo/ValidationResults';\r\nimport itemToLicensee from '../converters/itemToLicensee';\r\nimport Page from '../vo/Page';\r\nimport itemToObject from '../converters/itemToObject';\r\n\r\n/**\r\n * JS representation of the Licensee Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/licensee-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new licensee object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#create-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent product to which the new licensee is to be added\r\n * @param productNumber string\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param licensee NetLicensing.Licensee\r\n *\r\n * return the newly created licensee object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, productNumber, licensee) {\r\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\r\n\r\n licensee.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Licensee.ENDPOINT_PATH, licensee.asPropertiesMap());\r\n\r\n return itemToLicensee(item);\r\n },\r\n\r\n /**\r\n * Gets licensee by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#get-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the licensee number\r\n * @param number string\r\n *\r\n * return the licensee in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToLicensee(item);\r\n },\r\n\r\n /**\r\n * Returns all licensees of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#licensees-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of licensees (of all products) or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.Licensee.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToLicensee(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates licensee properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#update-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * licensee number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param licensee NetLicensing.Licensee\r\n *\r\n * return updated licensee in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, licensee) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, licensee.asPropertiesMap());\r\n\r\n return itemToLicensee(item);\r\n },\r\n\r\n /**\r\n * Deletes licensee.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#delete-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * licensee number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service\r\n .delete(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n\r\n /**\r\n * Validates active licenses of the licensee. See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#validate-licensee\r\n *\r\n * @param context NetLicensing.Context\r\n *\r\n * licensee number\r\n * @param number string\r\n *\r\n * optional validation parameters. See ValidationParameters and licensing model documentation for\r\n * details.\r\n * @param validationParameters NetLicensing.ValidationParameters.\r\n *\r\n * @returns {ValidationResults}\r\n */\r\n async validate(context, number, validationParameters) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = {};\r\n\r\n if (validationParameters.getProductNumber()) {\r\n queryParams.productNumber = validationParameters.getProductNumber();\r\n }\r\n\r\n if (validationParameters.getLicenseeName()) {\r\n queryParams.licenseeName = validationParameters.getLicenseeName();\r\n }\r\n\r\n if (validationParameters.getLicenseeSecret()) {\r\n queryParams.licenseeSecret = validationParameters.getLicenseeSecret();\r\n }\r\n\r\n let pmIndex = 0;\r\n const parameters = validationParameters.getParameters();\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(parameters).forEach((productModuleName) => {\r\n queryParams[`${Constants.ProductModule.PRODUCT_MODULE_NUMBER}${pmIndex}`] = productModuleName;\r\n if (!has.call(parameters, productModuleName)) return;\r\n\r\n const parameter = parameters[productModuleName];\r\n\r\n Object.keys(parameter).forEach((key) => {\r\n if (has.call(parameter, key)) {\r\n queryParams[key + pmIndex] = parameter[key];\r\n }\r\n });\r\n pmIndex += 1;\r\n });\r\n\r\n const { data: { items: { item: items }, ttl } } = await Service.post(\r\n context,\r\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_VALIDATE}`,\r\n queryParams,\r\n );\r\n\r\n const validationResults = new ValidationResults();\r\n validationResults.setTtl(ttl);\r\n\r\n items.forEach((v) => {\r\n const item = itemToObject(v);\r\n validationResults.setProductModuleValidation(item[Constants.ProductModule.PRODUCT_MODULE_NUMBER], item);\r\n });\r\n\r\n return validationResults;\r\n },\r\n\r\n\r\n /**\r\n * Transfer licenses between licensees.\r\n * @see https://netlicensing.io/wiki/licensee-services#transfer-licenses\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the number of the licensee receiving licenses\r\n * @param number string\r\n *\r\n * the number of the licensee delivering licenses\r\n * @param sourceLicenseeNumber string\r\n *\r\n * @returns {Promise}\r\n */\r\n transfer(context, number, sourceLicenseeNumber) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n CheckUtils.paramNotEmpty(sourceLicenseeNumber, Constants.Licensee.SOURCE_LICENSEE_NUMBER);\r\n\r\n const queryParams = { sourceLicenseeNumber };\r\n\r\n return Service\r\n .post(\r\n context,\r\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_TRANSFER}`,\r\n queryParams,\r\n );\r\n },\r\n};\r\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) {\n return;\n }\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nmodule.exports = _nonIterableRest;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToLicense from '../converters/itemToLicense';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the License Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/license-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new license object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#create-license\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent licensee to which the new license is to be added\r\n * @param licenseeNumber string\r\n *\r\n * license template that the license is created from\r\n * @param licenseTemplateNumber string\r\n *\r\n * For privileged logins specifies transaction for the license creation. For regular logins new\r\n * transaction always created implicitly, and the operation will be in a separate transaction.\r\n * Transaction is generated with the provided transactionNumber, or, if transactionNumber is null, with\r\n * auto-generated number.\r\n * @param transactionNumber null|string\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param license NetLicensing.License\r\n *\r\n * return the newly created license object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, licenseeNumber, licenseTemplateNumber, transactionNumber, license) {\r\n CheckUtils.paramNotEmpty(licenseeNumber, Constants.Licensee.LICENSEE_NUMBER);\r\n CheckUtils.paramNotEmpty(licenseTemplateNumber, Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER);\r\n\r\n license.setProperty(Constants.Licensee.LICENSEE_NUMBER, licenseeNumber);\r\n license.setProperty(Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER, licenseTemplateNumber);\r\n\r\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.License.ENDPOINT_PATH, license.asPropertiesMap());\r\n\r\n return itemToLicense(item);\r\n },\r\n\r\n\r\n /**\r\n * Gets license by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#get-license\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the license number\r\n * @param number string\r\n *\r\n * return the license in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.License.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToLicense(item);\r\n },\r\n\r\n /**\r\n * Returns licenses of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#licenses-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * return array of licenses (of all products) or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.License.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToLicense(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates license properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#update-license\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license number\r\n * @param number string\r\n *\r\n * transaction for the license update. Created implicitly if transactionNumber is null. In this case the\r\n * operation will be in a separate transaction.\r\n * @param transactionNumber string|null\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param license NetLicensing.License\r\n *\r\n * return updated license in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, transactionNumber, license) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.License.ENDPOINT_PATH}/${number}`, license.asPropertiesMap());\r\n\r\n return itemToLicense(item);\r\n },\r\n\r\n /**\r\n * Deletes license.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#delete-license\r\n *\r\n * When any license is deleted, corresponding transaction is created automatically.\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service\r\n .delete(context, `${Constants.License.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToLicenseTemplate from '../converters/itemToLicenseTemplate';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/license-template-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new license template object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#create-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent product module to which the new license template is to be added\r\n * @param productModuleNumber\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param licenseTemplate NetLicensing.LicenseTemplate\r\n *\r\n * the newly created license template object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, productModuleNumber, licenseTemplate) {\r\n CheckUtils.paramNotEmpty(productModuleNumber, Constants.ProductModule.PRODUCT_MODULE_NUMBER);\r\n\r\n licenseTemplate.setProperty(Constants.ProductModule.PRODUCT_MODULE_NUMBER, productModuleNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.LicenseTemplate.ENDPOINT_PATH, licenseTemplate.asPropertiesMap());\r\n\r\n return itemToLicenseTemplate(item);\r\n },\r\n\r\n /**\r\n * Gets license template by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#get-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the license template number\r\n * @param number string\r\n *\r\n * return the license template object in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToLicenseTemplate(item);\r\n },\r\n\r\n /**\r\n * Returns all license templates of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#license-templates-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of license templates (of all products/modules) or null/empty list if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.LicenseTemplate.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToLicenseTemplate(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates license template properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#update-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license template number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param licenseTemplate NetLicensing.LicenseTemplate\r\n *\r\n * updated license template in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, licenseTemplate) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const path = `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`;\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, path, licenseTemplate.asPropertiesMap());\r\n\r\n return itemToLicenseTemplate(item);\r\n },\r\n\r\n /**\r\n * Deletes license template.See NetLicensingAPI JavaDoc for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#delete-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license template number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service\r\n .delete(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToPaymentMethod from '../converters/itemToPaymentMethod';\r\nimport Page from '../vo/Page';\r\n\r\nexport default {\r\n /**\r\n * Gets payment method by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/payment-method-services#get-payment-method\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the payment method number\r\n * @param number string\r\n *\r\n * return the payment method in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToPaymentMethod(item);\r\n },\r\n\r\n /**\r\n * Returns payment methods of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/payment-method-services#payment-methods-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of payment method entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.PaymentMethod.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToPaymentMethod(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates payment method properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/payment-method-services#update-payment-method\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the payment method number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param paymentMethod NetLicensing.PaymentMethod\r\n *\r\n * return updated payment method in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, paymentMethod) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const path = `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`;\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, path, paymentMethod.asPropertiesMap());\r\n\r\n return itemToPaymentMethod(item);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToProductModule from '../converters/itemToProductModule';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/product-module-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new product module object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#create-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent product to which the new product module is to be added\r\n * @param productNumber string\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param productModule NetLicensing.ProductModule\r\n *\r\n * the newly created product module object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, productNumber, productModule) {\r\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\r\n\r\n productModule.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.ProductModule.ENDPOINT_PATH, productModule.asPropertiesMap());\r\n\r\n return itemToProductModule(item);\r\n },\r\n\r\n /**\r\n * Gets product module by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#get-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the product module number\r\n * @param number string\r\n *\r\n * return the product module object in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToProductModule(item);\r\n },\r\n\r\n /**\r\n * Returns products of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#product-modules-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of product modules entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service.get(context, Constants.ProductModule.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToProductModule(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates product module properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#update-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product module number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param productModule NetLicensing.ProductModule\r\n *\r\n * updated product module in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, productModule) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, productModule.asPropertiesMap());\r\n\r\n return itemToProductModule(item);\r\n },\r\n\r\n /**\r\n * Deletes product module.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#delete-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product module number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service.delete(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Service from './Service';\r\nimport Constants from '../Constants';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToProduct from '../converters/itemToProduct';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the Product Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/product-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new product with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#create-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param product NetLicensing.Product\r\n *\r\n * return the newly created product object in promise\r\n * @returns {Promise}\r\n */\r\n\r\n async create(context, product) {\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Product.ENDPOINT_PATH, product.asPropertiesMap());\r\n return itemToProduct(item);\r\n },\r\n\r\n /**\r\n * Gets product by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#get-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the product number\r\n * @param number string\r\n *\r\n * return the product object in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Product.ENDPOINT_PATH}/${number}`);\r\n return itemToProduct(item);\r\n },\r\n\r\n /**\r\n * Returns products of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#products-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of product entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) throw new TypeError(`filter has bad value ${filter}`);\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service.get(context, Constants.Product.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToProduct(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates product properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#update-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param product NetLicensing.Product\r\n *\r\n * updated product in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, product) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, product.asPropertiesMap());\r\n\r\n return itemToProduct(item);\r\n },\r\n\r\n /**\r\n * Deletes product.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#delete-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service.delete(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","var superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToToken from '../converters/itemToToken';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the Token Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/token-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new token.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#create-token\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param token NetLicensing.Token\r\n *\r\n * return created token in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, token) {\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Token.ENDPOINT_PATH, token.asPropertiesMap());\r\n\r\n return itemToToken(item);\r\n },\r\n\r\n /**\r\n * Gets token by its number..See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#get-token\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the token number\r\n * @param number\r\n *\r\n * return the token in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToToken(item);\r\n },\r\n\r\n /**\r\n * Returns tokens of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#tokens-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of token entities or empty array if nothing found.\r\n * @return array\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.Token.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToToken(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Delete token by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#delete-token\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the token number\r\n * @param number string\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n return Service\r\n .delete(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToTransaction from '../converters/itemToTransaction';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the Transaction Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/transaction-services\r\n *\r\n * Transaction is created each time change to LicenseService licenses happens. For instance licenses are\r\n * obtained by a licensee, licenses disabled by vendor, licenses deleted, etc. Transaction is created no matter what\r\n * source has initiated the change to licenses: it can be either a direct purchase of licenses by a licensee via\r\n * NetLicensing Shop, or licenses can be given to a licensee by a vendor. Licenses can also be assigned implicitly by\r\n * NetLicensing if it is defined so by a license model (e.g. evaluation license may be given automatically). All these\r\n * events are reflected in transactions. Of all the transaction handling routines only read-only routines are exposed to\r\n * the public API, as transactions are only allowed to be created and modified by NetLicensing internally.\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new transaction object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#create-transaction\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param transaction NetLicensing.Transaction\r\n *\r\n * return the newly created transaction object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, transaction) {\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Transaction.ENDPOINT_PATH, transaction.asPropertiesMap());\r\n\r\n return itemToTransaction(item);\r\n },\r\n\r\n /**\r\n * Gets transaction by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#get-transaction\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the transaction number\r\n * @param number string\r\n *\r\n * return the transaction in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToTransaction(item);\r\n },\r\n\r\n /**\r\n * Returns all transactions of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#transactions-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string\r\n *\r\n * array of transaction entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.Transaction.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToTransaction(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates transaction properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#update-transaction\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * transaction number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param transaction NetLicensing.Transaction\r\n *\r\n * return updated transaction in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, transaction) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`, transaction.asPropertiesMap());\r\n\r\n return itemToTransaction(item);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToObject from '../converters/itemToObject';\r\nimport Page from '../vo/Page';\r\nimport itemToCountry from '../converters/itemToCountry';\r\n\r\n/**\r\n * JS representation of the Utility Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/utility-services\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Returns all license types. See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/utility-services#license-types-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * array of available license types or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async listLicenseTypes(context) {\r\n const { data } = await Service\r\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSE_TYPES}`);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToObject(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Returns all license models. See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/utility-services#licensing-models-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * array of available license models or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async listLicensingModels(context) {\r\n const { data } = await Service\r\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSING_MODELS}`);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToObject(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Returns all countries.\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter\r\n *\r\n * collection of available countries or null/empty list if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async listCountries(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(\r\n context,\r\n `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_COUNTRIES}`,\r\n queryParams,\r\n );\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToCountry(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n};\r\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://NetLicensing/webpack/universalModuleDefinition","webpack://NetLicensing/webpack/bootstrap","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/createClass.js","webpack://NetLicensing/./src/Constants.js","webpack://NetLicensing/./src/util/CheckUtils.js","webpack://NetLicensing/./node_modules/axios/lib/utils.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://NetLicensing/./src/converters/itemToObject.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/inherits.js","webpack://NetLicensing/./src/entities/BaseEntity.js","webpack://NetLicensing/./src/vo/Page.js","webpack://NetLicensing/./src/services/Service.js","webpack://NetLicensing/./src/util/FilterUtils.js","webpack://NetLicensing/./node_modules/@babel/runtime/regenerator/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/asyncToGenerator.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/typeof.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://NetLicensing/./src/entities/License.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://NetLicensing/./src/entities/LicenseTransactionJoin.js","webpack://NetLicensing/./src/vo/ValidationResults.js","webpack://NetLicensing/./node_modules/process/browser.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/bind.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/buildURL.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/isCancel.js","webpack://NetLicensing/./node_modules/axios/lib/defaults.js","webpack://NetLicensing/./node_modules/axios/lib/adapters/xhr.js","webpack://NetLicensing/./node_modules/axios/lib/core/createError.js","webpack://NetLicensing/./node_modules/axios/lib/core/mergeConfig.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/Cancel.js","webpack://NetLicensing/./src/errors/NlicError.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://NetLicensing/./src/converters/itemToLicensee.js","webpack://NetLicensing/./src/entities/Licensee.js","webpack://NetLicensing/./src/util/CastsUtils.js","webpack://NetLicensing/./src/converters/itemToLicense.js","webpack://NetLicensing/./src/converters/itemToLicenseTemplate.js","webpack://NetLicensing/./src/entities/LicenseTemplate.js","webpack://NetLicensing/./src/converters/itemToPaymentMethod.js","webpack://NetLicensing/./src/entities/PaymentMethod.js","webpack://NetLicensing/./src/converters/itemToProductModule.js","webpack://NetLicensing/./src/entities/ProductModule.js","webpack://NetLicensing/./src/converters/itemToProduct.js","webpack://NetLicensing/./src/entities/Product.js","webpack://NetLicensing/./src/entities/ProductDiscount.js","webpack://NetLicensing/./src/converters/itemToToken.js","webpack://NetLicensing/./src/entities/Token.js","webpack://NetLicensing/./src/converters/itemToTransaction.js","webpack://NetLicensing/./src/entities/Transaction.js","webpack://NetLicensing/./src/converters/itemToCountry.js","webpack://NetLicensing/./src/entities/Country.js","webpack://NetLicensing/./src/index.js","webpack://NetLicensing/./src/vo/Context.js","webpack://NetLicensing/./src/vo/ValidationParameters.js","webpack://NetLicensing/./node_modules/axios/index.js","webpack://NetLicensing/./node_modules/axios/lib/axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/Axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/InterceptorManager.js","webpack://NetLicensing/./node_modules/axios/lib/core/dispatchRequest.js","webpack://NetLicensing/./node_modules/axios/lib/core/transformData.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://NetLicensing/./node_modules/axios/lib/core/settle.js","webpack://NetLicensing/./node_modules/axios/lib/core/enhanceError.js","webpack://NetLicensing/./node_modules/axios/lib/core/buildFullPath.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/combineURLs.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/cookies.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/CancelToken.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/spread.js","webpack://NetLicensing/./node_modules/btoa/index.js","webpack://NetLicensing/./node_modules/buffer/index.js","webpack://NetLicensing/(webpack)/buildin/global.js","webpack://NetLicensing/./node_modules/base64-js/index.js","webpack://NetLicensing/./node_modules/ieee754/index.js","webpack://NetLicensing/./node_modules/isarray/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/isNativeFunction.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/construct.js","webpack://NetLicensing/./src/services/LicenseeService.js","webpack://NetLicensing/./node_modules/regenerator-runtime/runtime.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://NetLicensing/./src/services/LicenseService.js","webpack://NetLicensing/./src/services/LicenseTemplateService.js","webpack://NetLicensing/./src/services/PaymentMethodService.js","webpack://NetLicensing/./src/services/ProductModuleService.js","webpack://NetLicensing/./src/services/ProductService.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/get.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/superPropBase.js","webpack://NetLicensing/./src/services/TokenService.js","webpack://NetLicensing/./src/services/TransactionService.js","webpack://NetLicensing/./src/services/UtilityService.js"],"names":["BASIC_AUTHENTICATION","APIKEY_IDENTIFICATION","ANONYMOUS_IDENTIFICATION","ACTIVE","NUMBER","NAME","VERSION","DELETED","CASCADE","PRICE","DISCOUNT","CURRENCY","IN_USE","FILTER","BASE_URL","USERNAME","PASSWORD","SECURITY_MODE","LicensingModel","VALID","TryAndBuy","Rental","RED_THRESHOLD","YELLOW_THRESHOLD","Subscription","Floating","MultiFeature","PayPerUse","PricingTable","Quota","NodeLocked","Vendor","VENDOR_NUMBER","VENDOR_TYPE","Product","ENDPOINT_PATH","PRODUCT_NUMBER","LICENSEE_AUTO_CREATE","DESCRIPTION","LICENSING_INFO","DISCOUNTS","PROP_LICENSEE_SECRET_MODE","PROP_VAT_MODE","Discount","TOTAL_PRICE","AMOUNT_FIX","AMOUNT_PERCENT","LicenseeSecretMode","DISABLED","PREDEFINED","CLIENT","ProductModule","PRODUCT_MODULE_NUMBER","PRODUCT_MODULE_NAME","LICENSING_MODEL","LicenseTemplate","LICENSE_TEMPLATE_NUMBER","LICENSE_TYPE","AUTOMATIC","HIDDEN","HIDE_LICENSES","PROP_LICENSEE_SECRET","LicenseType","FEATURE","TIMEVOLUME","FLOATING","QUANTITY","Token","EXPIRATION_TIME","TOKEN_TYPE","API_KEY","TOKEN_PROP_EMAIL","TOKEN_PROP_VENDORNUMBER","TOKEN_PROP_SHOP_URL","Type","DEFAULT","SHOP","APIKEY","Transaction","TRANSACTION_NUMBER","GRAND_TOTAL","STATUS","SOURCE","DATE_CREATED","DATE_CLOSED","VAT","VAT_MODE","LICENSE_TRANSACTION_JOIN","SOURCE_SHOP_ONLY","Status","CANCELLED","CLOSED","PENDING","Licensee","ENDPOINT_PATH_VALIDATE","ENDPOINT_PATH_TRANSFER","LICENSEE_NUMBER","SOURCE_LICENSEE_NUMBER","PROP_LICENSEE_NAME","PROP_MARKED_FOR_TRANSFER","License","LICENSE_NUMBER","PaymentMethod","Utility","ENDPOINT_PATH_LICENSE_TYPES","ENDPOINT_PATH_LICENSING_MODELS","ENDPOINT_PATH_COUNTRIES","LICENSING_MODEL_PROPERTIES","ROLE_APIKEY_LICENSEE","ROLE_APIKEY_ANALYTICS","ROLE_APIKEY_OPERATION","ROLE_APIKEY_MAINTENANCE","ROLE_APIKEY_ADMIN","isValid","value","valid","undefined","Number","isFinite","isNaN","paramNotNull","parameter","parameterName","TypeError","paramNotEmpty","itemToObject","item","object","property","list","Array","isArray","forEach","p","name","l","push","propertiesMap","WeakMap","definedMap","castsMap","BaseEntity","properties","casts","set","setProperties","CheckUtils","castedValue","cast","define","get","setProperty","removeProperties","has","Object","prototype","hasOwnProperty","keys","key","call","def","removeDefine","propertiesForRemove","removeProperty","Boolean","hasDefine","self","descriptors","enumerable","configurable","getProperty","defined","defineProperty","getProperties","customProperties","content","pageNumber","itemsNumber","totalPages","totalItems","paginator","getContent","getPageNumber","getItemsNumber","getTotalPages","getTotalItems","hasNext","paginatorKeys","Proxy","target","indexOf","httpXHR","axiosInstance","Service","axios","instanse","context","urlTemplate","queryParams","request","method","template","String","params","toLowerCase","Error","getBaseUrl","url","encodeURI","responseType","headers","Accept","transformRequest","data","toQueryString","pkg","version","process","toString","getSecurityMode","Constants","getUsername","getPassword","auth","username","password","getApiKey","Authorization","getAxiosInstance","then","response","catch","e","error","NlicError","config","code","info","getInfo","message","infos","pattern","RegExp","test","prefix","query","k","v","Date","toISOString","encodeURIComponent","join","replace","FILTER_DELIMITER","FILTER_PAIR_DELIMITER","encode","filter","decode","split","number","active","price","hidden","parentfeature","timeVolume","startDate","inUse","LicenseTransactionJoin","transaction","license","vr","ValidationResults","validators","productModuleNumber","productModuleValidation","ttl","getValidators","JSON","stringify","args","isNlicError","isAxiosError","licenseeSecret","markedForTransfer","trim","parseInt","parseFloat","licenseType","currency","automatic","hideLicenses","gracePeriod","timeVolumePeriod","maxSessions","quantity","paypalSubject","licensingModel","maxCheckoutValidity","yellowThreshold","redThreshold","licenseTemplate","licenseeSecretMode","discounts","discount","product","setProductDiscounts","discountsMap","discountsTouched","description","licensingInfo","licenseeAutoCreate","productDiscount","ProductDiscount","addDiscount","assign","length","map","totalPrice","amountFix","amountPercent","getTotalPrice","getCurrency","amount","getAmountFix","getAmountPercent","expirationTime","vendorNumber","tokenType","licenseeNumber","successURL","successURLTitle","cancelURL","cancelURLTitle","shopURL","role","setApiKeyRole","getApiKeyRole","apiKeyRole","licenseTransactionJoin","joins","setLicense","setTransaction","setLicenseTransactionJoins","status","source","grandTotal","dateCreated","dateClosed","paymentMethod","licenseTransactionJoins","Country","vatPercent","isEu","vat","NetLicensing","Context","Page","ValidationParameters","LicenseeService","LicenseService","LicenseTemplateService","PaymentMethodService","ProductModuleService","ProductService","TokenService","TransactionService","UtilityService","itemToCountry","itemToLicense","itemToLicensee","itemToLicenseTemplate","itemToPaymentMethod","itemToProduct","itemToProductModule","itemToToken","itemToTransaction","CastsUtils","FilterUtils","module","exports","default","valuesMap","defaultsMap","values","baseUrl","securityMode","setValues","setValue","getValue","apiKey","copedValue","removeValues","keysAr","removeValue","onlyGetter","vpMap","parameters","productNumber","licenseeName","productModuleParameters","create","licensee","post","asPropertiesMap","items","pagenumber","itemsnumber","totalpages","totalitems","update","delete","forceCascade","validate","validationParameters","getProductNumber","getLicenseeName","getLicenseeSecret","pmIndex","getParameters","productModuleName","validationResults","setTtl","setProductModuleValidation","transfer","sourceLicenseeNumber","licenseTemplateNumber","transactionNumber","path","productModule","token","listLicenseTypes","listLicensingModels","listCountries"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;Q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;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mCAAmC,OAAO;AAC1C;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS,GAAG,SAAS;AAC5C,2BAA2B;AAC3B;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,uCAAuC,OAAO;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,gCAAgC;AAChC,KAAK;AACL;AACA;AACA;;AAEA,uCAAuC,OAAO;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;;AAEA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ACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC;;AAErC;AACA;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;AACA,4BAA4B,UAAU;;;;;;;;ACvLzB;;AAEb;AACA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;AACA;;;;;;;;ACVa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;ACtEa;;AAEb;AACA;AACA;;;;;;;;ACJA,+CAAa;;AAEb,YAAY,mBAAO,CAAC,CAAS;AAC7B,0BAA0B,mBAAO,CAAC,EAA+B;;AAEjE;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,mBAAO,CAAC,EAAgB;AACtC,GAAG;AACH;AACA,cAAc,mBAAO,CAAC,EAAiB;AACvC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,OAAO,YAAY;AACnB;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA,CAAC;;AAED;;;;;;;;;AChGa;;AAEb,YAAY,mBAAO,CAAC,CAAY;AAChC,aAAa,mBAAO,CAAC,EAAkB;AACvC,eAAe,mBAAO,CAAC,EAAuB;AAC9C,oBAAoB,mBAAO,CAAC,EAAuB;AACnD,mBAAmB,mBAAO,CAAC,EAA2B;AACtD,sBAAsB,mBAAO,CAAC,EAA8B;AAC5D,kBAAkB,mBAAO,CAAC,EAAqB;;AAE/C;AACA;AACA;AACA;;AAEA;AACA,4CAA4C;AAC5C;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB,mBAAO,CAAC,EAAsB;;AAElD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;;;;;;;ACnLa;;AAEb,mBAAmB,mBAAO,CAAC,EAAgB;;AAE3C;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;;;;;;;ACjBa;;AAEb,YAAY,mBAAO,CAAC,CAAU;;AAE9B;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;ACxEa;;AAEb;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;IClBqBqB,S;;;;;AACjB,uBAAqB;AAAA;;AAAA;;AAAA;;AAAA,sCAAN6C,IAAM;AAANA,UAAM;AAAA;;AACjB,oKAASA,IAAT;AAEA,UAAK5C,MAAL,GAAc,EAAd;AACA,UAAKL,QAAL,GAAgB,EAAhB;AACA,UAAK/B,OAAL,GAAe,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;;;;;;AC7Fa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;ACnDa;;AAEb,YAAY,mBAAO,CAAC,CAAY;AAChC,oBAAoB,mBAAO,CAAC,EAAiB;AAC7C,eAAe,mBAAO,CAAC,EAAoB;AAC3C,eAAe,mBAAO,CAAC,EAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B;AAC/B,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;;;;;;;AC9Ea;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,MAAM;AACjB,WAAW,eAAe;AAC1B,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;ACnBa;;AAEb,YAAY,mBAAO,CAAC,CAAU;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;ACXa;;AAEb,kBAAkB,mBAAO,CAAC,EAAe;;AAEzC;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxBa;;AAEb;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzCa;;AAEb,oBAAoB,mBAAO,CAAC,EAA0B;AACtD,kBAAkB,mBAAO,CAAC,EAAwB;;AAElD;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnBa;;AAEb;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACba;;AAEb;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACba;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,eAAe;;AAEhC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;ACpDa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,OAAO;AACrB,gBAAgB;AAChB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc,OAAO;AACrB,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;;;;;;;ACnEa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,0CAA0C;AAC1C,SAAS;;AAET;AACA,4DAA4D,wBAAwB;AACpF;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,kCAAkC;AAClC,+BAA+B,aAAa,EAAE;AAC9C;AACA;AACA,KAAK;AACL;;;;;;;;ACpDa;;AAEb,aAAa,mBAAO,CAAC,EAAU;;AAE/B;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxDa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,WAAW,SAAS;AACpB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1BA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA,CAAC;;;;;;;;;AChBD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEY;;AAEZ,aAAa,mBAAO,CAAC,EAAW;AAChC,cAAc,mBAAO,CAAC,EAAS;AAC/B,cAAc,mBAAO,CAAC,EAAS;;AAE/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,mDAAmD;AACxE;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,UAAU;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,uCAAuC,SAAS;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;;AAEA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gDAAgD,EAAE;AAClD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,eAAe;AACvC;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,wBAAwB,QAAQ;AAChC;AACA,qBAAqB,eAAe;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,mBAAmB,cAAc;AACjC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD,OAAO;AAC9D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD,OAAO;AAC9D;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,qBAAqB,QAAQ;AAC7B;AACA;AACA,GAAG;AACH;AACA,eAAe,SAAS;AACxB;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,YAAY;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB,gBAAgB;AACjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,gBAAgB;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;AC5vDA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;ACnBY;;AAEZ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kCAAkC,SAAS;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0CAA0C,UAAU;AACpD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;ACtJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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ACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,WAAW;AACX;;AAEA;AACA;AACA,wCAAwC,WAAW;AACnD;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS;AACT;AACA;AACA;AACA;;AAEA;;AAEA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC,cAAc;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC,kBAAkB;AACnD;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB;;AAEjB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,YAAY;AACZ;AACA;;AAEA;AACA,YAAY;AACZ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,8CAA8C,QAAQ;AACtD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA,WAAW;AACX;AACA;AACA;;AAEA,WAAW;AACX;AACA;AACA;;AAEA,WAAW;AACX;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA,KAAK;;AAEL;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA,EAAE,KAA0B,oBAAoB,SAAE;AAClD;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrtBA;AACA;AACA;;AAEA,iC;;;;;;ACJA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,6CAA6C,+BAA+B;AAC5E;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA,uC;;;;;;AC9BA;AACA;AACA;;AAEA,kC;;;;;;;;;;;;;;;;;;;;;;ACGA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAZA;;;;;;;AAcA;;;;;;eAOe;AACX;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BM0M,QA3BK,kBA2BE5M,OA3BF,EA2BWoI,cA3BX,EA2B2BiG,qBA3B3B,EA2BkDC,iBA3BlD,EA2BqE7J,OA3BrE,EA2B8E;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AACrF3H,kCAAWtB,aAAX,CA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AAAA,uBAAO,4BAAcA,CAAd,CAAP;AAAA,eAApB,CADG,EAEHlC,IAAI,CAAC+L,KAAL,CAAWC,UAFR,EAGHhM,IAAI,CAAC+L,KAAL,CAAWE,WAHR,EAIHjM,IAAI,CAAC+L,KAAL,CAAWG,UAJR,EAKHlM,IAAI,CAAC+L,KAAL,CAAWI,UALR,CAjB0B;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBpC;AAnFU,C","file":"netlicensing-client.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"NetLicensing\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"NetLicensing\"] = factory();\n\telse\n\t\troot[\"NetLicensing\"] = factory();\n})(this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 53);\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nexport default {\n BASIC_AUTHENTICATION: 'BASIC_AUTH',\n APIKEY_IDENTIFICATION: 'APIKEY',\n ANONYMOUS_IDENTIFICATION: 'ANONYMOUS',\n\n ACTIVE: 'active',\n NUMBER: 'number',\n NAME: 'name',\n VERSION: 'version',\n DELETED: 'deleted',\n CASCADE: 'forceCascade',\n PRICE: 'price',\n DISCOUNT: 'discount',\n CURRENCY: 'currency',\n IN_USE: 'inUse',\n FILTER: 'filter',\n BASE_URL: 'baseUrl',\n USERNAME: 'username',\n PASSWORD: 'password',\n SECURITY_MODE: 'securityMode',\n\n LicensingModel: {\n VALID: 'valid',\n TryAndBuy: {\n NAME: 'TryAndBuy',\n },\n Rental: {\n NAME: 'Rental',\n RED_THRESHOLD: 'redThreshold',\n YELLOW_THRESHOLD: 'yellowThreshold',\n },\n Subscription: {\n NAME: 'Subscription',\n },\n Floating: {\n NAME: 'Floating',\n },\n MultiFeature: {\n NAME: 'MultiFeature',\n },\n PayPerUse: {\n NAME: 'PayPerUse',\n },\n PricingTable: {\n NAME: 'PricingTable',\n },\n Quota: {\n NAME: 'Quota',\n },\n NodeLocked: {\n NAME: 'NodeLocked',\n },\n },\n\n Vendor: {\n VENDOR_NUMBER: 'vendorNumber',\n VENDOR_TYPE: 'Vendor',\n },\n\n Product: {\n ENDPOINT_PATH: 'product',\n PRODUCT_NUMBER: 'productNumber',\n LICENSEE_AUTO_CREATE: 'licenseeAutoCreate',\n DESCRIPTION: 'description',\n LICENSING_INFO: 'licensingInfo',\n DISCOUNTS: 'discounts',\n /**\n * @deprecated use ProductModule.PROP_LICENSEE_SECRET_MODE instead\n */\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\n PROP_VAT_MODE: 'vatMode',\n\n Discount: {\n TOTAL_PRICE: 'totalPrice',\n AMOUNT_FIX: 'amountFix',\n AMOUNT_PERCENT: 'amountPercent',\n },\n\n LicenseeSecretMode: {\n /**\n * @deprecated DISABLED mode is deprecated\n */\n DISABLED: 'DISABLED',\n PREDEFINED: 'PREDEFINED',\n CLIENT: 'CLIENT',\n },\n },\n\n ProductModule: {\n ENDPOINT_PATH: 'productmodule',\n PRODUCT_MODULE_NUMBER: 'productModuleNumber',\n PRODUCT_MODULE_NAME: 'productModuleName',\n LICENSING_MODEL: 'licensingModel',\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\n },\n\n LicenseTemplate: {\n ENDPOINT_PATH: 'licensetemplate',\n LICENSE_TEMPLATE_NUMBER: 'licenseTemplateNumber',\n LICENSE_TYPE: 'licenseType',\n AUTOMATIC: 'automatic',\n HIDDEN: 'hidden',\n HIDE_LICENSES: 'hideLicenses',\n PROP_LICENSEE_SECRET: 'licenseeSecret',\n LicenseType: {\n FEATURE: 'FEATURE',\n TIMEVOLUME: 'TIMEVOLUME',\n FLOATING: 'FLOATING',\n QUANTITY: 'QUANTITY',\n },\n },\n\n Token: {\n ENDPOINT_PATH: 'token',\n EXPIRATION_TIME: 'expirationTime',\n TOKEN_TYPE: 'tokenType',\n API_KEY: 'apiKey',\n TOKEN_PROP_EMAIL: 'email',\n TOKEN_PROP_VENDORNUMBER: 'vendorNumber',\n TOKEN_PROP_SHOP_URL: 'shopURL',\n Type: {\n DEFAULT: 'DEFAULT',\n SHOP: 'SHOP',\n APIKEY: 'APIKEY',\n },\n },\n\n Transaction: {\n ENDPOINT_PATH: 'transaction',\n TRANSACTION_NUMBER: 'transactionNumber',\n GRAND_TOTAL: 'grandTotal',\n STATUS: 'status',\n SOURCE: 'source',\n DATE_CREATED: 'datecreated',\n DATE_CLOSED: 'dateclosed',\n VAT: 'vat',\n VAT_MODE: 'vatMode',\n LICENSE_TRANSACTION_JOIN: 'licenseTransactionJoin',\n SOURCE_SHOP_ONLY: 'shopOnly',\n /**\n * @deprecated\n */\n Status: {\n CANCELLED: 'CANCELLED',\n CLOSED: 'CLOSED',\n PENDING: 'PENDING',\n },\n },\n\n Licensee: {\n ENDPOINT_PATH: 'licensee',\n ENDPOINT_PATH_VALIDATE: 'validate',\n ENDPOINT_PATH_TRANSFER: 'transfer',\n LICENSEE_NUMBER: 'licenseeNumber',\n SOURCE_LICENSEE_NUMBER: 'sourceLicenseeNumber',\n PROP_LICENSEE_NAME: 'licenseeName',\n /**\n * @deprecated use License.PROP_LICENSEE_SECRET\n */\n PROP_LICENSEE_SECRET: 'licenseeSecret',\n PROP_MARKED_FOR_TRANSFER: 'markedForTransfer',\n },\n\n License: {\n ENDPOINT_PATH: 'license',\n LICENSE_NUMBER: 'licenseNumber',\n HIDDEN: 'hidden',\n PROP_LICENSEE_SECRET: 'licenseeSecret',\n },\n\n PaymentMethod: {\n ENDPOINT_PATH: 'paymentmethod',\n },\n\n Utility: {\n ENDPOINT_PATH: 'utility',\n ENDPOINT_PATH_LICENSE_TYPES: 'licenseTypes',\n ENDPOINT_PATH_LICENSING_MODELS: 'licensingModels',\n ENDPOINT_PATH_COUNTRIES: 'countries',\n LICENSING_MODEL_PROPERTIES: 'LicensingModelProperties',\n LICENSE_TYPE: 'LicenseType',\n },\n\n APIKEY: {\n ROLE_APIKEY_LICENSEE: 'ROLE_APIKEY_LICENSEE',\n ROLE_APIKEY_ANALYTICS: 'ROLE_APIKEY_ANALYTICS',\n ROLE_APIKEY_OPERATION: 'ROLE_APIKEY_OPERATION',\n ROLE_APIKEY_MAINTENANCE: 'ROLE_APIKEY_MAINTENANCE',\n ROLE_APIKEY_ADMIN: 'ROLE_APIKEY_ADMIN',\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nexport default {\n isValid(value) {\n let valid = (value !== undefined && typeof value !== 'function');\n if (typeof value === 'number') valid = Number.isFinite(value) && !Number.isNaN(value);\n return valid;\n },\n\n paramNotNull(parameter, parameterName) {\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\n if (parameter === null) throw new TypeError(`Parameter ${parameterName} cannot be null`);\n },\n\n paramNotEmpty(parameter, parameterName) {\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\n if (!parameter) throw new TypeError(`Parameter ${parameterName} cannot be null or empty string`);\n },\n};\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = merge(result[key], val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Function equal to merge with the difference being that no reference\n * to original objects is kept.\n *\n * @see merge\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction deepMerge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = deepMerge(result[key], val);\n } else if (typeof val === 'object') {\n result[key] = deepMerge({}, val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n deepMerge: deepMerge,\n extend: extend,\n trim: trim\n};\n","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","const itemToObject = (item) => {\n const object = {};\n const { property, list } = item;\n\n if (property && Array.isArray(property)) {\n property.forEach((p) => {\n const { name, value } = p;\n if (name) object[name] = value;\n });\n }\n\n if (list && Array.isArray(list)) {\n list.forEach((l) => {\n const { name } = l;\n if (name) {\n object[name] = object[name] || [];\n object[name].push(itemToObject(l));\n }\n });\n }\n\n return object;\n};\n\nexport default itemToObject;\n","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport CastsUtils from '../util/CastsUtils';\n\n/**\n * The entity properties.\n * @type {{}}\n * @private\n */\nconst propertiesMap = new WeakMap();\n\n/**\n * List of properties that was defined\n * @type {{}}\n * @private\n */\n\nconst definedMap = new WeakMap();\n\n/**\n * List of properties that need be casts\n * @type {{}}\n * @private\n */\nconst castsMap = new WeakMap();\n\nexport default class BaseEntity {\n constructor({ properties, casts }) {\n propertiesMap.set(this, {});\n definedMap.set(this, {});\n castsMap.set(this, casts || []);\n\n if (properties) {\n this.setProperties(properties);\n }\n }\n\n /**\n * Set a given property on the entity.\n * @param property\n * @param value\n * @returns {BaseEntity}\n */\n setProperty(property, value) {\n // if property name has bad native type\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\n throw new TypeError(`Bad property name:${property}`);\n }\n\n const castedValue = this.cast(property, value);\n\n // define to property\n this.define(property);\n\n // save property to propertiesMap\n const properties = propertiesMap.get(this);\n properties[property] = castedValue;\n\n return this;\n }\n\n /**\n * Alias for setProperty\n * @param property\n * @param value\n * @returns {BaseEntity}\n */\n addProperty(property, value) {\n return this.setProperty(property, value);\n }\n\n /**\n * Set the entity properties.\n * @param properties\n * @returns {BaseEntity}\n */\n setProperties(properties) {\n this.removeProperties();\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(properties).forEach((key) => {\n if (has.call(properties, key)) {\n this.setProperty(key, properties[key]);\n }\n });\n\n return this;\n }\n\n /**\n * Check if we has property\n * @param property\n * @protected\n */\n hasProperty(property) {\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property);\n }\n\n /**\n * Get an property from the entity.\n * @param property\n * @param def\n * @returns {*}\n */\n getProperty(property, def) {\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property)\n ? propertiesMap.get(this)[property]\n : def;\n }\n\n /**\n * Get all of the current properties on the entity.\n */\n getProperties() {\n return { ...propertiesMap.get(this) };\n }\n\n /**\n * Remove property\n * @param property\n * @returns {BaseEntity}\n */\n removeProperty(property) {\n const properties = propertiesMap.get(this);\n delete properties[property];\n this.removeDefine(property);\n return this;\n }\n\n /**\n * Remove properties\n * @param properties\n */\n removeProperties(properties) {\n const propertiesForRemove = properties || Object.keys(propertiesMap.get(this));\n\n propertiesForRemove.forEach((property) => {\n this.removeProperty(property);\n });\n }\n\n cast(property, value) {\n if (!castsMap.get(this)[property]) return value;\n\n return CastsUtils(castsMap.get(this)[property], value);\n }\n\n /**\n * Check if property has defined\n * @param property\n * @protected\n */\n hasDefine(property) {\n return Boolean(definedMap.get(this)[property]);\n }\n\n /**\n * Define property getter and setter\n * @param property\n * @protected\n */\n define(property) {\n if (this.hasDefine(property)) return;\n\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\n throw new TypeError(`Bad property name:${property}`);\n }\n\n const self = this;\n\n // delete property\n delete this[property];\n\n const descriptors = {\n enumerable: true,\n configurable: true,\n get() {\n return self.getProperty(property);\n },\n\n set(value) {\n self.setProperty(property, value);\n },\n };\n\n const defined = definedMap.get(this);\n defined[property] = true;\n\n Object.defineProperty(this, property, descriptors);\n }\n\n /**\n * Remove property getter and setter\n * @param property\n * @protected\n */\n removeDefine(property) {\n if (!this.hasDefine(property)) return;\n\n const defined = definedMap.get(this);\n delete defined[property];\n\n delete this[property];\n }\n\n /**\n * Get properties map\n */\n asPropertiesMap() {\n const properties = this.getProperties();\n const customProperties = {};\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(this).forEach((key) => {\n if (!has.call(this, key)) return;\n\n customProperties[key] = this[key];\n });\n\n return { ...customProperties, ...properties };\n }\n}\n","export default (content = [], pageNumber = 0, itemsNumber = 0, totalPages = 0, totalItems = 0) => {\n const paginator = {\n getContent() {\n return content;\n },\n\n getPageNumber() {\n return pageNumber;\n },\n\n getItemsNumber() {\n return itemsNumber;\n },\n\n getTotalPages() {\n return totalPages;\n },\n\n getTotalItems() {\n return totalItems;\n },\n\n hasNext() {\n return (totalPages > pageNumber + 1);\n },\n };\n\n const paginatorKeys = Object.keys(paginator);\n\n return new Proxy(content, {\n get(target, key) {\n if (paginatorKeys.indexOf(key) !== -1) {\n return paginator[key];\n }\n return target[key];\n },\n });\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nimport axios from 'axios';\nimport btoa from 'btoa';\nimport Constants from '../Constants';\nimport NlicError from '../errors/NlicError';\nimport pkg from '../../package.json';\n\nlet httpXHR = {};\nlet axiosInstance = null;\n\nexport default class Service {\n static getAxiosInstance() {\n return axiosInstance || axios;\n }\n\n static setAxiosInstance(instanse) {\n axiosInstance = instanse;\n }\n\n static getLastHttpRequestInfo() {\n return httpXHR;\n }\n\n /**\n * Helper method for performing GET request to N\n etLicensing API services. Finds and returns first suitable item with\n * type resultType from the response.\n *\n * Context for the NetLicensing API call\n * @param context\n *\n * the REST URL template\n * @param urlTemplate\n *\n * The REST query parameters values. May be null if there are no parameters.\n * @param queryParams\n *\n * @returns {Promise}\n */\n static get(context, urlTemplate, queryParams) {\n return Service.request(context, 'get', urlTemplate, queryParams);\n }\n\n /**\n * Helper method for performing POST request to NetLicensing API services. Finds and returns first suitable item\n * with type resultType from the response.\n *\n * context for the NetLicensing API call\n * @param context\n *\n * the REST URL template\n * @param urlTemplate\n *\n * The REST query parameters values. May be null if there are no parameters.\n * @param queryParams\n *\n * @returns {Promise}\n */\n static post(context, urlTemplate, queryParams) {\n return Service.request(context, 'post', urlTemplate, queryParams);\n }\n\n /**\n *\n * @param context\n * @param urlTemplate\n * @param queryParams\n * @returns {Promise}\n */\n static delete(context, urlTemplate, queryParams) {\n return Service.request(context, 'delete', urlTemplate, queryParams);\n }\n\n /**\n * Send request to NetLicensing RestApi\n * @param context\n * @param method\n * @param urlTemplate\n * @param queryParams\n * @returns {Promise}\n */\n static request(context, method, urlTemplate, queryParams) {\n const template = String(urlTemplate);\n const params = queryParams || {};\n\n if (!template) throw new TypeError('Url template must be specified');\n\n // validate http method\n if (['get', 'post', 'delete'].indexOf(method.toLowerCase()) < 0) {\n throw new Error(`Invalid request type:${method}, allowed requests types: GET, POST, DELETE.`);\n }\n\n // validate context\n if (!context.getBaseUrl(null)) {\n throw new Error('Base url must be specified');\n }\n\n const request = {\n url: encodeURI(`${context.getBaseUrl()}/${template}`),\n method: method.toLowerCase(),\n responseType: 'json',\n headers: {\n Accept: 'application/json',\n },\n transformRequest: [(data, headers) => {\n if (headers['Content-Type'] === 'application/x-www-form-urlencoded') {\n return Service.toQueryString(data);\n }\n\n if (!headers['NetLicensing-Origin']) {\n // eslint-disable-next-line no-param-reassign\n headers['NetLicensing-Origin'] = `NetLicensing/Javascript ${pkg.version}`;\n }\n return data;\n }],\n };\n\n // only node.js has a process variable that is of [[Class]] process\n if (!typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n request.headers['User-agent'] = `NetLicensing/Javascript ${pkg.version}/node&${process.version}`;\n }\n\n if (['put', 'post', 'patch'].indexOf(request.method) >= 0) {\n if (request.method === 'post') {\n request.headers['Content-Type'] = 'application/x-www-form-urlencoded';\n }\n request.data = params;\n } else {\n request.params = params;\n }\n\n switch (context.getSecurityMode()) {\n // Basic Auth\n case Constants.BASIC_AUTHENTICATION:\n if (!context.getUsername()) throw new Error('Missing parameter \"username\"');\n if (!context.getPassword()) throw new Error('Missing parameter \"password\"');\n\n request.auth = {\n username: context.getUsername(),\n password: context.getPassword(),\n };\n break;\n // ApiKey Auth\n case Constants.APIKEY_IDENTIFICATION:\n if (!context.getApiKey()) throw new Error('Missing parameter \"apiKey\"');\n\n request.headers.Authorization = `Basic ${btoa(`apiKey:${context.getApiKey()}`)}`;\n break;\n // without authorization\n case Constants.ANONYMOUS_IDENTIFICATION:\n break;\n default:\n throw new Error('Unknown security mode');\n }\n\n return Service.getAxiosInstance()(request)\n .then((response) => {\n httpXHR = response;\n return response;\n })\n .catch((e) => {\n httpXHR = e;\n\n if (e.response) {\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n\n const error = new NlicError(e);\n\n error.config = e.config;\n error.code = e.code;\n error.request = e.request;\n error.response = e.response;\n\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n const { data } = e.response;\n\n if (data) {\n const info = Service.getInfo(e.response, [])[0] || {};\n error.message = info.value || 'Unknown';\n }\n\n throw error;\n }\n\n throw e;\n });\n }\n\n static getInfo(response, def) {\n try {\n return response.data.infos.info || def;\n } catch (e) {\n return def;\n }\n }\n\n static isValidUrl(url) {\n const pattern = new RegExp('^(https?:\\\\/\\\\/)?' // protocol\n + '((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.?)+[a-z]{2,}|' // domain name\n + '((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))' // OR ip (v4) address\n + '(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*' // port and path\n + '(\\\\?[;&a-z\\\\d%_.~+=-]*)?' // query string\n + '(\\\\#[-a-z\\\\d_]*)?$', 'i'); // fragment locator\n\n return pattern.test(url);\n }\n\n static toQueryString(data, prefix) {\n const query = [];\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(data)\n .forEach((key) => {\n if (has.call(data, key)) {\n const k = prefix ? `${prefix}[${key}]` : key;\n let v = data[key];\n v = (v instanceof Date) ? v.toISOString() : v;\n query.push((v !== null && typeof v === 'object')\n ? Service.toQueryString(v, k)\n : `${encodeURIComponent(k)}=${encodeURIComponent(v)}`);\n }\n });\n\n return query.join('&')\n .replace(/%5B[0-9]+%5D=/g, '=');\n }\n}\n","export default {\n FILTER_DELIMITER: ';',\n FILTER_PAIR_DELIMITER: '=',\n encode(filter = {}) {\n const query = [];\n const has = Object.prototype.hasOwnProperty;\n Object.keys(filter).forEach((key) => {\n if (has.call(filter, key)) {\n query.push(`${key}${this.FILTER_PAIR_DELIMITER}${filter[key]}`);\n }\n });\n return query.join(this.FILTER_DELIMITER);\n },\n decode(query = '') {\n const filter = {};\n query.split(this.FILTER_DELIMITER).forEach((v) => {\n const [name, value] = v.split(this.FILTER_PAIR_DELIMITER);\n filter[name] = value;\n });\n return filter;\n },\n};\n","module.exports = require(\"regenerator-runtime\");\n","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * License entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products/licensees of a vendor) that identifies the license. Vendor can\n * assign this number when creating a license or let NetLicensing generate one. Read-only after corresponding creation\n * transaction status is set to closed.\n * @property string number\n *\n * Name for the licensed item. Set from license template on creation, if not specified explicitly.\n * @property string name\n *\n * If set to false, the license is disabled. License can be re-enabled, but as long as it is disabled,\n * the license is excluded from the validation process.\n * @property boolean active\n *\n * price for the license. If >0, it must always be accompanied by the currency specification. Read-only,\n * set from license template on creation.\n * @property float price\n *\n * specifies currency for the license price. Check data types to discover which currencies are\n * supported. Read-only, set from license template on creation.\n * @property string currency\n *\n * If set to true, this license is not shown in NetLicensing Shop as purchased license. Set from license\n * template on creation, if not specified explicitly.\n * @property boolean $hidden\n *\n * @property string startDate\n *\n * Arbitrary additional user properties of string type may be associated with each license. The name of user property\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, licenseeNumber,\n * licenseTemplateNumber.\n */\nexport default class License extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n price: 'float',\n hidden: 'boolean',\n parentfeature: 'string',\n timeVolume: 'int',\n startDate: 'date',\n inUse: 'boolean',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setHidden(hidden) {\n return this.setProperty('hidden', hidden);\n }\n\n getHidden(def) {\n return this.getProperty('hidden', def);\n }\n\n setParentfeature(parentfeature) {\n return this.setProperty('parentfeature', parentfeature);\n }\n\n getParentfeature(def) {\n return this.getProperty('parentfeature', def);\n }\n\n setTimeVolume(timeVolume) {\n return this.setProperty('timeVolume', timeVolume);\n }\n\n getTimeVolume(def) {\n return this.getProperty('timeVolume', def);\n }\n\n setStartDate(startDate) {\n return this.setProperty('startDate', startDate);\n }\n\n getStartDate(def) {\n return this.getProperty('startDate', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n\n getPrice(def) {\n return this.getProperty('price', def);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n}\n","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nexport default class LicenseTransactionJoin {\n constructor(transaction, license) {\n this.transaction = transaction;\n this.license = license;\n }\n\n setTransaction(transaction) {\n this.transaction = transaction;\n return this;\n }\n\n getTransaction(def) {\n return this.transaction || def;\n }\n\n setLicense(license) {\n this.license = license;\n return this;\n }\n\n getLicense(def) {\n return this.license || def;\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\n\n/**\n * Validation result map\n * @type {WeakMap}\n */\nconst vr = new WeakMap();\n\nexport default class ValidationResults {\n constructor() {\n vr.set(this, { validators: {} });\n }\n\n getValidators() {\n return { ...vr.get(this).validators };\n }\n\n setProductModuleValidation(productModuleNumber, productModuleValidation) {\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\n }\n\n vr.get(this).validators[productModuleNumber] = productModuleValidation;\n\n return this;\n }\n\n getProductModuleValidation(productModuleNumber) {\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\n }\n\n return vr.get(this).validators[productModuleNumber];\n }\n\n setTtl(ttl) {\n if (!CheckUtils.isValid(ttl) || typeof ttl === 'object') {\n throw new TypeError(`Bad ttl:${ttl}`);\n }\n vr.get(this).ttl = new Date(String(ttl));\n\n return this;\n }\n\n getTtl() {\n return (vr.get(this).ttl) ? new Date(vr.get(this).ttl) : undefined;\n }\n\n toString() {\n let data = 'ValidationResult [';\n\n const validators = this.getValidators();\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(validators).forEach((productModuleNumber) => {\n data += `ProductModule<${productModuleNumber}>`;\n if (has.call(validators, productModuleNumber)) {\n data += JSON.stringify(validators[productModuleNumber]);\n }\n });\n\n data += ']';\n\n return data;\n }\n}\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n var cookies = require('./../helpers/cookies');\n\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (requestData === undefined) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];\n var defaultToConfig2Keys = [\n 'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',\n 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath'\n ];\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {\n if (utils.isObject(config2[prop])) {\n config[prop] = utils.deepMerge(config1[prop], config2[prop]);\n } else if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (utils.isObject(config1[prop])) {\n config[prop] = utils.deepMerge(config1[prop]);\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys);\n\n var otherKeys = Object\n .keys(config2)\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n return config;\n};\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","export default class NlicError extends Error {\n constructor(...args) {\n super(...args);\n\n this.config = {};\n this.response = {};\n this.request = {};\n this.code = '';\n\n this.isNlicError = true;\n this.isAxiosError = true;\n }\n}\n","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","import itemToObject from './itemToObject';\nimport Licensee from '../entities/Licensee';\n\nexport default (item) => new Licensee(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Licensee entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the licensee. Vendor can assign this\n * number when creating a licensee or let NetLicensing generate one. Read-only after creation of the first license for\n * the licensee.\n * @property string number\n *\n * Licensee name.\n * @property string name\n *\n * If set to false, the licensee is disabled. Licensee can not obtain new licenses, and validation is\n * disabled (tbd).\n * @property boolean active\n *\n * Licensee Secret for licensee\n * @property string licenseeSecret\n *\n * Mark licensee for transfer.\n * @property boolean markedForTransfer\n *\n * Arbitrary additional user properties of string type may be associated with each licensee. The name of user property\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, productNumber\n *\n * @constructor\n */\nexport default class Licensee extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n licenseeSecret: 'string',\n markedForTransfer: 'boolean',\n inUse: 'boolean',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n /**\n * @deprecated\n */\n setLicenseeSecret(licenseeSecret) {\n return this.setProperty('licenseeSecret', licenseeSecret);\n }\n\n /**\n * @deprecated\n */\n getLicenseeSecret(def) {\n return this.getProperty('licenseeSecret', def);\n }\n\n setMarkedForTransfer(markedForTransfer) {\n return this.setProperty('markedForTransfer', markedForTransfer);\n }\n\n getMarkedForTransfer(def) {\n return this.getProperty('markedForTransfer', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\n// Cast an attribute to a native JS type.\nexport default (key, value) => {\n switch (key.trim().toLowerCase()) {\n case 'str':\n case 'string':\n return String(value);\n case 'int':\n case 'integer':\n return parseInt(value, 10);\n case 'float':\n case 'double':\n return parseFloat(value);\n case 'bool':\n case 'boolean':\n switch (value) {\n case 'true':\n case 'TRUE':\n return true;\n case 'false':\n case 'FALSE':\n return false;\n default:\n return Boolean(value);\n }\n case 'date':\n return (value === 'now') ? 'now' : new Date(String(value));\n default:\n return value;\n }\n};\n","import itemToObject from './itemToObject';\nimport License from '../entities/License';\n\nexport default (item) => new License(itemToObject(item));\n","import itemToObject from './itemToObject';\nimport LicenseTemplate from '../entities/LicenseTemplate';\n\nexport default (item) => new LicenseTemplate(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * License template entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the license template. Vendor can\n * assign this number when creating a license template or let NetLicensing generate one.\n * Read-only after creation of the first license from this license template.\n * @property string number\n *\n * If set to false, the license template is disabled. Licensee can not obtain any new licenses off this\n * license template.\n * @property boolean active\n *\n * Name for the licensed item.\n * @property string name\n *\n * Type of licenses created from this license template. Supported types: \"FEATURE\", \"TIMEVOLUME\",\n * \"FLOATING\", \"QUANTITY\"\n * @property string licenseType\n *\n * Price for the license. If >0, it must always be accompanied by the currency specification.\n * @property double price\n *\n * Specifies currency for the license price. Check data types to discover which currencies are\n * supported.\n * @property string currency\n *\n * If set to true, every new licensee automatically gets one license out of this license template on\n * creation. Automatic licenses must have their price set to 0.\n * @property boolean automatic\n *\n * If set to true, this license template is not shown in NetLicensing Shop as offered for purchase.\n * @property boolean hidden\n *\n * If set to true, licenses from this license template are not visible to the end customer, but\n * participate in validation.\n * @property boolean hideLicenses\n *\n * If set to true, this license template defines grace period of validity granted after subscription expiration.\n * @property boolean gracePeriod\n *\n * Mandatory for 'TIMEVOLUME' license type.\n * @property integer timeVolume\n *\n * Time volume period for 'TIMEVOLUME' license type. Supported types: \"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"\n * @property integer timeVolumePeriod\n *\n * Mandatory for 'FLOATING' license type.\n * @property integer maxSessions\n *\n * Mandatory for 'QUANTITY' license type.\n * @property integer quantity\n *\n * @constructor\n */\nexport default class LicenseTemplate extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n licenseType: 'string',\n price: 'double',\n currency: 'string',\n automatic: 'boolean',\n hidden: 'boolean',\n hideLicenses: 'boolean',\n gracePeriod: 'boolean',\n timeVolume: 'int',\n timeVolumePeriod: 'string',\n maxSessions: 'int',\n quantity: 'int',\n inUse: 'boolean',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setLicenseType(licenseType) {\n return this.setProperty('licenseType', licenseType);\n }\n\n getLicenseType(def) {\n return this.getProperty('licenseType', def);\n }\n\n setPrice(price) {\n return this.setProperty('price', price);\n }\n\n getPrice(def) {\n return this.getProperty('price', def);\n }\n\n setCurrency(currency) {\n return this.setProperty('currency', currency);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n\n setAutomatic(automatic) {\n return this.setProperty('automatic', automatic);\n }\n\n getAutomatic(def) {\n return this.getProperty('automatic', def);\n }\n\n setHidden(hidden) {\n return this.setProperty('hidden', hidden);\n }\n\n getHidden(def) {\n return this.getProperty('hidden', def);\n }\n\n setHideLicenses(hideLicenses) {\n return this.setProperty('hideLicenses', hideLicenses);\n }\n\n getHideLicenses(def) {\n return this.getProperty('hideLicenses', def);\n }\n\n setTimeVolume(timeVolume) {\n return this.setProperty('timeVolume', timeVolume);\n }\n\n getTimeVolume(def) {\n return this.getProperty('timeVolume', def);\n }\n\n setTimeVolumePeriod(timeVolumePeriod) {\n return this.setProperty('timeVolumePeriod', timeVolumePeriod);\n }\n\n getTimeVolumePeriod(def) {\n return this.getProperty('timeVolumePeriod', def);\n }\n\n setMaxSessions(maxSessions) {\n return this.setProperty('maxSessions', maxSessions);\n }\n\n getMaxSessions(def) {\n return this.getProperty('maxSessions', def);\n }\n\n setQuantity(quantity) {\n return this.setProperty('quantity', quantity);\n }\n\n getQuantity(def) {\n return this.getProperty('quantity', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport PaymentMethod from '../entities/PaymentMethod';\n\nexport default (item) => new PaymentMethod(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * PaymentMethod entity used internally by NetLicensing.\n *\n * @property string number\n * @property boolean active\n *\n * @constructor\n */\nexport default class PaymentMethod extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n 'paypal.subject': 'string',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setPaypalSubject(paypalSubject) {\n return this.setProperty('paypal.subject', paypalSubject);\n }\n\n getPaypalSubject(def) {\n return this.getProperty('paypal.subject', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport ProductModule from '../entities/ProductModule';\n\nexport default (item) => new ProductModule(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Product module entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the product module. Vendor can assign\n * this number when creating a product module or let NetLicensing generate one. Read-only after creation of the first\n * licensee for the product.\n * @property string number\n *\n * If set to false, the product module is disabled. Licensees can not obtain any new licenses for this\n * product module.\n * @property boolean active\n *\n * Product module name that is visible to the end customers in NetLicensing Shop.\n * @property string name\n *\n * Licensing model applied to this product module. Defines what license templates can be\n * configured for the product module and how licenses for this product module are processed during validation.\n * @property string licensingModel\n *\n * Maximum checkout validity (days). Mandatory for 'Floating' licensing model.\n * @property integer maxCheckoutValidity\n *\n * Remaining time volume for yellow level. Mandatory for 'Rental' licensing model.\n * @property integer yellowThreshold\n *\n * Remaining time volume for red level. Mandatory for 'Rental' licensing model.\n * @property integer redThreshold\n *\n * License template. Mandatory for 'Try & Buy' licensing model. Supported types: \"TIMEVOLUME\", \"FEATURE\".\n * @property string licenseTemplate\n *\n * Licensee secret mode for product.Supported types: \"PREDEFINED\", \"CLIENT\"\n * @property boolean licenseeSecretMode\n *\n * @constructor\n */\nexport default class ProductModule extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n licensingModel: 'string',\n maxCheckoutValidity: 'int',\n yellowThreshold: 'int',\n redThreshold: 'int',\n licenseTemplate: 'string',\n inUse: 'boolean',\n licenseeSecretMode: 'string',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setLicensingModel(licensingModel) {\n return this.setProperty('licensingModel', licensingModel);\n }\n\n getLicensingModel(def) {\n return this.getProperty('licensingModel', def);\n }\n\n setMaxCheckoutValidity(maxCheckoutValidity) {\n return this.setProperty('maxCheckoutValidity', maxCheckoutValidity);\n }\n\n getMaxCheckoutValidity(def) {\n return this.getProperty('maxCheckoutValidity', def);\n }\n\n setYellowThreshold(yellowThreshold) {\n return this.setProperty('yellowThreshold', yellowThreshold);\n }\n\n getYellowThreshold(def) {\n return this.getProperty('yellowThreshold', def);\n }\n\n setRedThreshold(redThreshold) {\n return this.setProperty('redThreshold', redThreshold);\n }\n\n getRedThreshold(def) {\n return this.getProperty('redThreshold', def);\n }\n\n setLicenseTemplate(licenseTemplate) {\n return this.setProperty('licenseTemplate', licenseTemplate);\n }\n\n getLicenseTemplate(def) {\n return this.getProperty('licenseTemplate', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n\n setLicenseeSecretMode(licenseeSecretMode) {\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\n }\n\n getLicenseeSecretMode(def) {\n return this.getProperty('licenseeSecretMode', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport Product from '../entities/Product';\n\nexport default (item) => {\n const object = itemToObject(item);\n\n const discounts = object.discount;\n\n delete object.discount;\n\n const product = new Product(object);\n product.setProductDiscounts(discounts);\n\n return product;\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\nimport ProductDiscount from './ProductDiscount';\n\n/**\n * The discounts map\n * @type {{}}\n * @private\n */\nconst discountsMap = new WeakMap();\n\n/**\n * An identifier that show if discounts was touched\n * @type {{}}\n * @private\n */\nconst discountsTouched = new WeakMap();\n\n/**\n * NetLicensing Product entity.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number that identifies the product. Vendor can assign this number when creating a product or\n * let NetLicensing generate one. Read-only after creation of the first licensee for the product.\n * @property string number\n *\n * If set to false, the product is disabled. No new licensees can be registered for the product,\n * existing licensees can not obtain new licenses.\n * @property boolean active\n *\n * Product name. Together with the version identifies the product for the end customer.\n * @property string name\n *\n * Product version. Convenience parameter, additional to the product name.\n * @property float version\n *\n * If set to 'true', non-existing licensees will be created at first validation attempt.\n * @property boolean licenseeAutoCreate\n *\n * Licensee secret mode for product.Supported types: \"DISABLED\", \"PREDEFINED\", \"CLIENT\"\n * @property boolean licenseeSecretMode\n *\n * Product description. Optional.\n * @property string description\n *\n * Licensing information. Optional.\n * @property string licensingInfo\n *\n * @property boolean inUse\n *\n * Arbitrary additional user properties of string type may be associated with each product. The name of user property\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted.\n *\n * @constructor\n */\nexport default class Product extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n version: 'string',\n description: 'string',\n licensingInfo: 'string',\n licenseeAutoCreate: 'boolean',\n licenseeSecretMode: 'string',\n inUse: 'boolean',\n },\n });\n\n discountsMap.set(this, []);\n discountsTouched.set(this, false);\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setVersion(version) {\n return this.setProperty('version', version);\n }\n\n getVersion(def) {\n return this.getProperty('version', def);\n }\n\n setLicenseeAutoCreate(licenseeAutoCreate) {\n return this.setProperty('licenseeAutoCreate', licenseeAutoCreate);\n }\n\n getLicenseeAutoCreate(def) {\n return this.getProperty('licenseeAutoCreate', def);\n }\n\n /**\n * @deprecated use ProductModule.setLicenseeSecretMode instead\n */\n setLicenseeSecretMode(licenseeSecretMode) {\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\n }\n\n /**\n * @deprecated use ProductModule.getLicenseeSecretMode instead\n */\n getLicenseeSecretMode(def) {\n return this.getProperty('licenseeSecretMode', def);\n }\n\n setDescription(description) {\n return this.setProperty('description', description);\n }\n\n getDescription(def) {\n return this.getProperty('description', def);\n }\n\n setLicensingInfo(licensingInfo) {\n return this.setProperty('licensingInfo', licensingInfo);\n }\n\n getLicensingInfo(def) {\n return this.getProperty('licensingInfo', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n\n /**\n * Add discount to product\n *\n * @param discount NetLicensing.ProductDiscount\n * @returns {NetLicensing.Product}\n */\n addDiscount(discount) {\n const discounts = discountsMap.get(this);\n\n let productDiscount = discount;\n\n if (typeof productDiscount !== 'string' && !(productDiscount instanceof ProductDiscount)) {\n productDiscount = new ProductDiscount(productDiscount);\n }\n\n discounts.push(productDiscount);\n discountsMap.set(this, discounts);\n discountsTouched.set(this, true);\n\n return this;\n }\n\n /**\n * Set discounts to product\n * @param discounts\n */\n setProductDiscounts(discounts) {\n discountsMap.set(this, []);\n discountsTouched.set(this, true);\n\n if (!discounts) return this;\n\n if (Array.isArray(discounts)) {\n discounts.forEach((discount) => {\n this.addDiscount(discount);\n });\n\n return this;\n }\n\n this.addDiscount(discounts);\n\n return this;\n }\n\n /**\n * Get array of objects discounts\n * @returns {Array}\n */\n getProductDiscounts() {\n return Object.assign([], discountsMap.get(this));\n }\n\n asPropertiesMap() {\n const propertiesMap = super.asPropertiesMap();\n\n if (discountsMap.get(this).length) {\n propertiesMap.discount = discountsMap.get(this).map((discount) => discount.toString());\n }\n\n if (!propertiesMap.discount && discountsTouched.get(this)) {\n propertiesMap.discount = '';\n }\n\n return propertiesMap;\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nimport BaseEntity from './BaseEntity';\n\nexport default class ProductDiscount extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n totalPrice: 'float',\n currency: 'string',\n amountFix: 'float',\n amountPercent: 'int',\n },\n });\n }\n\n setTotalPrice(totalPrice) {\n return this.setProperty('totalPrice', totalPrice);\n }\n\n getTotalPrice(def) {\n return this.getProperty('totalPrice', def);\n }\n\n setCurrency(currency) {\n return this.setProperty('currency', currency);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n\n setAmountFix(amountFix) {\n return this.setProperty('amountFix', amountFix).removeProperty('amountPercent');\n }\n\n getAmountFix(def) {\n return this.getProperty('amountFix', def);\n }\n\n setAmountPercent(amountPercent) {\n return this.setProperty('amountPercent', amountPercent).removeProperty('amountFix');\n }\n\n getAmountPercent(def) {\n return this.getProperty('amountPercent', def);\n }\n\n toString() {\n const totalPrice = this.getTotalPrice();\n const currency = this.getCurrency();\n let amount = 0;\n\n if (this.getAmountFix(null)) amount = this.getAmountFix();\n if (this.getAmountPercent(null)) amount = `${this.getAmountPercent()}%`;\n\n return `${totalPrice};${currency};${amount}`;\n }\n}\n","import itemToObject from './itemToObject';\nimport Token from '../entities/Token';\n\nexport default (item) => new Token(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Product module entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number\n * @property string number\n *\n * If set to false, the token is disabled.\n * @property boolean active\n *\n * Expiration Time\n * @property string expirationTime\n *\n * @property string vendorNumber\n *\n * Token type to be generated.\n * DEFAULT - default one-time token (will be expired after first request)\n * SHOP - shop token is used to redirect customer to the netlicensingShop(licenseeNumber is mandatory)\n * APIKEY - APIKey-token\n * @property string tokenType\n *\n * @property string licenseeNumber\n *\n * @constructor\n */\nexport default class Token extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n expirationTime: 'date',\n vendorNumber: 'string',\n tokenType: 'string',\n licenseeNumber: 'string',\n successURL: 'string',\n successURLTitle: 'string',\n cancelURL: 'string',\n cancelURLTitle: 'string',\n shopURL: 'string',\n },\n });\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setExpirationTime(expirationTime) {\n return this.setProperty('expirationTime', expirationTime);\n }\n\n getExpirationTime(def) {\n return this.getProperty('expirationTime', def);\n }\n\n setVendorNumber(vendorNumber) {\n return this.setProperty('vendorNumber', vendorNumber);\n }\n\n getVendorNumber(def) {\n return this.getProperty('vendorNumber', def);\n }\n\n setTokenType(tokenType) {\n return this.setProperty('tokenType', tokenType);\n }\n\n getTokenType(def) {\n return this.getProperty('tokenType', def);\n }\n\n setLicenseeNumber(licenseeNumber) {\n return this.setProperty('licenseeNumber', licenseeNumber);\n }\n\n getLicenseeNumber(def) {\n return this.getProperty('licenseeNumber', def);\n }\n\n setSuccessURL(successURL) {\n return this.setProperty('successURL', successURL);\n }\n\n getSuccessURL(def) {\n return this.getProperty('successURL', def);\n }\n\n setSuccessURLTitle(successURLTitle) {\n return this.setProperty('successURLTitle', successURLTitle);\n }\n\n getSuccessURLTitle(def) {\n return this.getProperty('successURLTitle', def);\n }\n\n setCancelURL(cancelURL) {\n return this.setProperty('cancelURL', cancelURL);\n }\n\n getCancelURL(def) {\n return this.getProperty('cancelURL', def);\n }\n\n setCancelURLTitle(cancelURLTitle) {\n return this.setProperty('cancelURLTitle', cancelURLTitle);\n }\n\n getCancelURLTitle(def) {\n return this.getProperty('cancelURLTitle', def);\n }\n\n getShopURL(def) {\n return this.getProperty('shopURL', def);\n }\n\n /**\n * @deprecated\n * @alias setApiKeyRole\n * @param role\n * @returns {*}\n */\n setRole(role) {\n return this.setApiKeyRole(role);\n }\n\n /**\n * @deprecated\n * @alias getApiKeyRole\n * @param def\n * @returns {*}\n */\n getRole(def) {\n return this.getApiKeyRole(def);\n }\n\n setApiKeyRole(apiKeyRole) {\n return this.setProperty('apiKeyRole', apiKeyRole);\n }\n\n getApiKeyRole(def) {\n return this.getProperty('apiKeyRole', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport Transaction from '../entities/Transaction';\nimport License from '../entities/License';\nimport LicenseTransactionJoin from '../entities/LicenseTransactionJoin';\nimport Constants from '../Constants';\n\nexport default (item) => {\n const object = itemToObject(item);\n\n const { licenseTransactionJoin } = object;\n\n delete object.licenseTransactionJoin;\n\n const transaction = new Transaction(object);\n\n if (licenseTransactionJoin) {\n const joins = [];\n\n licenseTransactionJoin.forEach((v) => {\n const join = new LicenseTransactionJoin();\n join.setLicense(new License({ number: v[Constants.License.LICENSE_NUMBER] }));\n join.setTransaction(new Transaction({ number: v[Constants.Transaction.TRANSACTION_NUMBER] }));\n\n joins.push(join);\n });\n\n transaction.setLicenseTransactionJoins(joins);\n }\n\n return transaction;\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\nimport LicenseTransactionJoin from './LicenseTransactionJoin';\nimport License from './License';\n\n/**\n * Transaction entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the transaction. This number is\n * always generated by NetLicensing.\n * @property string number\n *\n * always true for transactions\n * @property boolean active\n *\n * Status of transaction. \"CANCELLED\", \"CLOSED\", \"PENDING\".\n * @property string status\n *\n * \"SHOP\". AUTO transaction for internal use only.\n * @property string source\n *\n * grand total for SHOP transaction (see source).\n * @property float grandTotal\n *\n * discount for SHOP transaction (see source).\n * @property float discount\n *\n * specifies currency for money fields (grandTotal and discount). Check data types to discover which\n * @property string currency\n *\n * Date created. Optional.\n * @property string dateCreated\n *\n * Date closed. Optional.\n * @property string dateClosed\n *\n * @constructor\n */\nexport default class Transaction extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n name: 'string',\n status: 'string',\n source: 'string',\n grandTotal: 'float',\n discount: 'float',\n currency: 'string',\n dateCreated: 'date',\n dateClosed: 'date',\n active: 'boolean',\n paymentMethod: 'string',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setStatus(status) {\n return this.setProperty('status', status);\n }\n\n getStatus(def) {\n return this.getProperty('status', def);\n }\n\n setSource(source) {\n return this.setProperty('source', source);\n }\n\n getSource(def) {\n return this.getProperty('source', def);\n }\n\n setGrandTotal(grandTotal) {\n return this.setProperty('grandTotal', grandTotal);\n }\n\n getGrandTotal(def) {\n return this.getProperty('grandTotal', def);\n }\n\n setDiscount(discount) {\n return this.setProperty('discount', discount);\n }\n\n getDiscount(def) {\n return this.getProperty('discount', def);\n }\n\n setCurrency(currency) {\n return this.setProperty('currency', currency);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n\n setDateCreated(dateCreated) {\n return this.setProperty('dateCreated', dateCreated);\n }\n\n getDateCreated(def) {\n return this.getProperty('dateCreated', def);\n }\n\n setDateClosed(dateClosed) {\n return this.setProperty('dateClosed', dateClosed);\n }\n\n getDateClosed(def) {\n return this.getProperty('dateClosed', def);\n }\n\n setPaymentMethod(paymentMethod) {\n return this.setProperty('paymentMethod', paymentMethod);\n }\n\n getPaymentMethod(def) {\n return this.getProperty('paymentMethod', def);\n }\n\n setActive() {\n return this.setProperty('active', true);\n }\n\n getLicenseTransactionJoins(def) {\n return this.getProperty('licenseTransactionJoins', def);\n }\n\n setLicenseTransactionJoins(licenseTransactionJoins) {\n return this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\n }\n\n setListLicenseTransactionJoin(properties) {\n if (!properties) return;\n\n const licenseTransactionJoins = this.getProperty('licenseTransactionJoins', []);\n const licenseTransactionJoin = new LicenseTransactionJoin();\n\n properties.forEach((property) => {\n if (property.name === 'licenseNumber') {\n licenseTransactionJoin.setLicense(new License({ number: property.value }));\n }\n\n if (property.name === 'transactionNumber') {\n licenseTransactionJoin.setTransaction(new Transaction({ number: property.value }));\n }\n });\n\n licenseTransactionJoins.push(licenseTransactionJoin);\n this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\n }\n}\n","import itemToObject from './itemToObject';\nimport Country from '../entities/Country';\n\nexport default (item) => new Country(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Country entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * @property code - Unique code of country.\n *\n * @property name - Unique name of country\n *\n * @property vatPercent - Country vat.\n *\n * @property isEu - is country in EU.\n */\nexport default class Country extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n code: 'string',\n name: 'string',\n vatPercent: 'int',\n isEu: 'boolean',\n },\n });\n }\n\n setCode(code) {\n return this.setProperty('code', code);\n }\n\n getCode(def) {\n return this.getProperty('code', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setVatPercent(vat) {\n return this.setProperty('vatPercent', vat);\n }\n\n getVatPercent(def) {\n return this.getProperty('vatPercent', def);\n }\n\n setIsEu(isEu) {\n return this.setProperty('isEu', isEu);\n }\n\n getIsEu(def) {\n return this.getProperty('isEu', def);\n }\n}\n","// Constants\nimport Constants from './Constants';\n\n// VO\nimport Context from './vo/Context';\nimport Page from './vo/Page';\nimport ValidationParameters from './vo/ValidationParameters';\nimport ValidationResults from './vo/ValidationResults';\n\n// Services\nimport Service from './services/Service';\nimport LicenseeService from './services/LicenseeService';\nimport LicenseService from './services/LicenseService';\nimport LicenseTemplateService from './services/LicenseTemplateService';\nimport PaymentMethodService from './services/PaymentMethodService';\nimport ProductModuleService from './services/ProductModuleService';\nimport ProductService from './services/ProductService';\nimport TokenService from './services/TokenService';\nimport TransactionService from './services/TransactionService';\nimport UtilityService from './services/UtilityService';\n\n// Entities\nimport BaseEntity from './entities/BaseEntity';\nimport Country from './entities/Country';\nimport License from './entities/License';\nimport Licensee from './entities/Licensee';\nimport LicenseTemplate from './entities/LicenseTemplate';\nimport PaymentMethod from './entities/PaymentMethod';\nimport Product from './entities/Product';\nimport ProductDiscount from './entities/ProductDiscount';\nimport ProductModule from './entities/ProductModule';\nimport Token from './entities/Token';\nimport Transaction from './entities/Transaction';\nimport LicenseTransactionJoin from './entities/LicenseTransactionJoin';\n\n// Converters\nimport itemToCountry from './converters/itemToCountry';\nimport itemToLicense from './converters/itemToLicense';\nimport itemToLicensee from './converters/itemToLicensee';\nimport itemToLicenseTemplate from './converters/itemToLicenseTemplate';\nimport itemToObject from './converters/itemToObject';\nimport itemToPaymentMethod from './converters/itemToPaymentMethod';\nimport itemToProduct from './converters/itemToProduct';\nimport itemToProductModule from './converters/itemToProductModule';\nimport itemToToken from './converters/itemToToken';\nimport itemToTransaction from './converters/itemToTransaction';\n\n// Utils\nimport CastsUtils from './util/CastsUtils';\nimport CheckUtils from './util/CheckUtils';\nimport FilterUtils from './util/FilterUtils';\n\n// Errors\nimport NlicError from './errors/NlicError';\n\n// Create the default instance to be exported\nconst NetLicensing = {\n // Constants\n Constants,\n\n // Expose VO\n Context,\n Page,\n ValidationParameters,\n ValidationResults,\n\n // Expose Services\n Service,\n LicenseeService,\n LicenseService,\n LicenseTemplateService,\n PaymentMethodService,\n ProductModuleService,\n ProductService,\n TokenService,\n TransactionService,\n UtilityService,\n\n // Expose Entities\n BaseEntity,\n Country,\n License,\n Licensee,\n LicenseTemplate,\n PaymentMethod,\n Product,\n ProductDiscount,\n ProductModule,\n Token,\n Transaction,\n LicenseTransactionJoin,\n\n // Expose Converters\n itemToCountry,\n itemToLicense,\n itemToLicensee,\n itemToLicenseTemplate,\n itemToObject,\n itemToPaymentMethod,\n itemToProduct,\n itemToProductModule,\n itemToToken,\n itemToTransaction,\n\n // Expose Utils\n CastsUtils,\n CheckUtils,\n FilterUtils,\n\n // Errors\n NlicError,\n};\n\nmodule.exports = NetLicensing;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = NetLicensing;\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nimport Constants from '../Constants';\nimport CheckUtils from '../util/CheckUtils';\n\n/**\n * The context values.\n * @type {{}}\n * @private\n */\nconst valuesMap = new WeakMap();\n\n/**\n * List of values that was defined\n * @type {{}}\n * @private\n */\nconst definedMap = new WeakMap();\n\n/**\n * Context defaults\n * @type {{baseUrl: string, securityMode}}\n * @private\n */\nconst defaultsMap = new WeakMap();\n\nexport default class Context {\n constructor(values) {\n defaultsMap.set(this, {\n baseUrl: 'https://go.netlicensing.io/core/v2/rest',\n securityMode: Constants.BASIC_AUTHENTICATION,\n });\n\n valuesMap.set(this, {});\n\n definedMap.set(this, {});\n\n this.setValues({ ...defaultsMap.get(this), ...values });\n }\n\n setBaseUrl(baseUrl) {\n return this.setValue('baseUrl', baseUrl);\n }\n\n getBaseUrl(def) {\n return this.getValue('baseUrl', def);\n }\n\n setUsername(username) {\n return this.setValue('username', username);\n }\n\n getUsername(def) {\n return this.getValue('username', def);\n }\n\n setPassword(password) {\n return this.setValue('password', password);\n }\n\n getPassword(def) {\n return this.getValue('password', def);\n }\n\n setApiKey(apiKey) {\n return this.setValue('apiKey', apiKey);\n }\n\n getApiKey(def) {\n return this.getValue('apiKey', def);\n }\n\n setSecurityMode(securityMode) {\n return this.setValue('securityMode', securityMode);\n }\n\n getSecurityMode(def) {\n return this.getValue('securityMode', def);\n }\n\n setVendorNumber(vendorNumber) {\n return this.setValue('vendorNumber', vendorNumber);\n }\n\n getVendorNumber(def) {\n return this.getValue('vendorNumber', def);\n }\n\n /**\n * Set a given values on the context.\n * @param key\n * @param value\n * @returns {Context}\n */\n setValue(key, value) {\n // check values\n if (!CheckUtils.isValid(key) || typeof key === 'object') throw new Error(`Bad value key:${key}`);\n if (!CheckUtils.isValid(value)) throw new Error(`Value ${key} has wrong value${value}`);\n\n // define keys\n this.define(key);\n\n let copedValue = value;\n\n if (typeof value === 'object' && value !== null) {\n copedValue = (Array.isArray(value)) ? Object.assign([], value) : ({ ...value });\n }\n\n const values = valuesMap.get(this);\n values[key] = copedValue;\n\n return this;\n }\n\n /**\n * Set the array of context values.\n * @param values\n * @returns {Context}\n */\n setValues(values) {\n this.removeValues();\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(values).forEach((key) => {\n if (has.call(values, key)) {\n this.setValue(key, values[key]);\n }\n });\n\n return this;\n }\n\n /**\n * Get an value from the context.\n * @param key\n * @param def\n * @returns {*}\n */\n getValue(key, def) {\n return (key in valuesMap.get(this))\n ? valuesMap.get(this)[key]\n : def;\n }\n\n /**\n * Get all of the current value on the context.\n */\n getValues() {\n return { ...valuesMap.get(this) };\n }\n\n /**\n * Remove value\n * @param key\n * @returns {Context}\n */\n removeValue(key) {\n const values = valuesMap.get(this);\n delete values[key];\n\n this.removeDefine(key);\n return this;\n }\n\n /**\n * Remove values\n * @param keys\n */\n removeValues(keys) {\n const keysAr = keys || Object.keys(valuesMap.get(this));\n keysAr.forEach((key) => this.removeValue(key));\n }\n\n /**\n * Define value getter and setter\n * @param key\n * @param onlyGetter\n * @private\n */\n define(key, onlyGetter) {\n if (this.hasDefine(key)) return;\n\n if (!CheckUtils.isValid(key) || typeof property === 'object') {\n throw new TypeError(`Bad value name:${key}`);\n }\n\n const self = this;\n\n // delete property\n delete this[key];\n\n const descriptors = {\n enumerable: true,\n configurable: true,\n get() {\n return self.getValue(key);\n },\n };\n\n if (!onlyGetter) {\n descriptors.set = (value) => self.setValue(key, value);\n }\n\n const defined = definedMap.get(this);\n defined[key] = true;\n\n Object.defineProperty(this, key, descriptors);\n }\n\n /**\n * Check if value has defined\n * @param key\n * @private\n */\n hasDefine(key) {\n return Boolean(definedMap.get(this)[key]);\n }\n\n /**\n * Remove value getter and setter\n * @param key\n * @private\n */\n removeDefine(key) {\n if (!this.hasDefine(key)) return;\n\n const defined = definedMap.get(this);\n delete defined[key];\n\n delete this[key];\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\n/**\n * Validation parameters map\n *\n * @type {WeakMap}\n */\nconst vpMap = new WeakMap();\n\nexport default class ValidationParameters {\n constructor() {\n vpMap.set(this, { parameters: {} });\n }\n\n /**\n * Sets the target product\n *\n * optional productNumber, must be provided in case licensee auto-create is enabled\n * @param productNumber\n * @returns {ValidationParameters}\n */\n setProductNumber(productNumber) {\n vpMap.get(this).productNumber = productNumber;\n return this;\n }\n\n /**\n * Get the target product\n * @returns {*}\n */\n getProductNumber() {\n return vpMap.get(this).productNumber;\n }\n\n /**\n * Sets the name for the new licensee\n *\n * optional human-readable licensee name in case licensee will be auto-created. This parameter must not\n * be the name, but can be used to store any other useful string information with new licensees, up to\n * 1000 characters.\n * @param licenseeName\n * @returns {NetLicensing.ValidationParameters}\n */\n setLicenseeName(licenseeName) {\n vpMap.get(this).licenseeName = licenseeName;\n return this;\n }\n\n /**\n * Get the licensee name\n * @returns {*}\n */\n getLicenseeName() {\n return vpMap.get(this).licenseeName;\n }\n\n /**\n * Sets the licensee secret\n *\n * licensee secret stored on the client side. Refer to Licensee Secret documentation for details.\n * @param licenseeSecret\n * @returns {ValidationParameters}\n * @deprecated use 'NodeLocked' licensingModel instead\n */\n setLicenseeSecret(licenseeSecret) {\n vpMap.get(this).licenseeSecret = licenseeSecret;\n return this;\n }\n\n /**\n * Get the licensee secret\n * @returns {*}\n * @deprecated use 'NodeLocked' licensingModel instead\n */\n getLicenseeSecret() {\n return vpMap.get(this).licenseeSecret;\n }\n\n /**\n * Get validation parameters\n * @returns {*}\n */\n getParameters() {\n return { ...vpMap.get(this).parameters };\n }\n\n getProductModuleValidationParameters(productModuleNumber) {\n return { ...vpMap.get(this).parameters[productModuleNumber] };\n }\n\n setProductModuleValidationParameters(productModuleNumber, productModuleParameters) {\n const { parameters } = vpMap.get(this);\n\n if (parameters[productModuleNumber] === undefined || !Object.keys(parameters[productModuleNumber]).length) {\n parameters[productModuleNumber] = {};\n }\n\n parameters[productModuleNumber] = Object.assign(parameters[productModuleNumber], productModuleParameters);\n\n return this;\n }\n}\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","(function () {\n \"use strict\";\n\n function btoa(str) {\n var buffer;\n\n if (str instanceof Buffer) {\n buffer = str;\n } else {\n buffer = Buffer.from(str.toString(), 'binary');\n }\n\n return buffer.toString('base64');\n }\n\n module.exports = btoa;\n}());\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = require('base64-js')\nvar ieee754 = require('ieee754')\nvar isArray = require('isarray')\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n return arr.foo() === 42 && // typed array instances can be augmented\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length)\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length)\n }\n that.length = length\n }\n\n return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype\n return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true\n })\n }\n}\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n}\n\nfunction alloc (that, size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n assertSize(size)\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0\n }\n }\n return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0\n that = createBuffer(that, length)\n\n var actual = that.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual)\n }\n\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n that = createBuffer(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array)\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset)\n } else {\n array = new Uint8Array(array, byteOffset, length)\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array)\n }\n return that\n}\n\nfunction fromObject (that, obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n that = createBuffer(that, len)\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len)\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string\n }\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return ''\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!Buffer.isBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end)\n newBuf.__proto__ = Buffer.prototype\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start]\n }\n }\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if (code < 256) {\n val = code\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString())\n var len = bytes.length\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\nfunction isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n}\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n for (var i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(\n uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)\n ))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","exports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeFunction = require(\"./isNativeFunction\");\n\nvar construct = require(\"./construct\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;","function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport ValidationResults from '../vo/ValidationResults';\nimport itemToLicensee from '../converters/itemToLicensee';\nimport Page from '../vo/Page';\nimport itemToObject from '../converters/itemToObject';\n\n/**\n * JS representation of the Licensee Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/licensee-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new licensee object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#create-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent product to which the new licensee is to be added\n * @param productNumber string\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param licensee NetLicensing.Licensee\n *\n * return the newly created licensee object in promise\n * @returns {Promise}\n */\n async create(context, productNumber, licensee) {\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\n\n licensee.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Licensee.ENDPOINT_PATH, licensee.asPropertiesMap());\n\n return itemToLicensee(item);\n },\n\n /**\n * Gets licensee by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#get-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the licensee number\n * @param number string\n *\n * return the licensee in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`);\n\n return itemToLicensee(item);\n },\n\n /**\n * Returns all licensees of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#licensees-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of licensees (of all products) or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.Licensee.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToLicensee(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates licensee properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#update-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * licensee number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param licensee NetLicensing.Licensee\n *\n * return updated licensee in promise.\n * @returns {Promise}\n */\n async update(context, number, licensee) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, licensee.asPropertiesMap());\n\n return itemToLicensee(item);\n },\n\n /**\n * Deletes licensee.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#delete-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * licensee number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service\n .delete(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, queryParams);\n },\n\n /**\n * Validates active licenses of the licensee. See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#validate-licensee\n *\n * @param context NetLicensing.Context\n *\n * licensee number\n * @param number string\n *\n * optional validation parameters. See ValidationParameters and licensing model documentation for\n * details.\n * @param validationParameters NetLicensing.ValidationParameters.\n *\n * @returns {ValidationResults}\n */\n async validate(context, number, validationParameters) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = {};\n\n if (validationParameters.getProductNumber()) {\n queryParams.productNumber = validationParameters.getProductNumber();\n }\n\n if (validationParameters.getLicenseeName()) {\n queryParams.licenseeName = validationParameters.getLicenseeName();\n }\n\n if (validationParameters.getLicenseeSecret()) {\n queryParams.licenseeSecret = validationParameters.getLicenseeSecret();\n }\n\n let pmIndex = 0;\n const parameters = validationParameters.getParameters();\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(parameters).forEach((productModuleName) => {\n queryParams[`${Constants.ProductModule.PRODUCT_MODULE_NUMBER}${pmIndex}`] = productModuleName;\n if (!has.call(parameters, productModuleName)) return;\n\n const parameter = parameters[productModuleName];\n\n Object.keys(parameter).forEach((key) => {\n if (has.call(parameter, key)) {\n queryParams[key + pmIndex] = parameter[key];\n }\n });\n pmIndex += 1;\n });\n\n const { data: { items: { item: items }, ttl } } = await Service.post(\n context,\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_VALIDATE}`,\n queryParams,\n );\n\n const validationResults = new ValidationResults();\n validationResults.setTtl(ttl);\n\n items.forEach((v) => {\n const item = itemToObject(v);\n validationResults.setProductModuleValidation(item[Constants.ProductModule.PRODUCT_MODULE_NUMBER], item);\n });\n\n return validationResults;\n },\n\n\n /**\n * Transfer licenses between licensees.\n * @see https://netlicensing.io/wiki/licensee-services#transfer-licenses\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the number of the licensee receiving licenses\n * @param number string\n *\n * the number of the licensee delivering licenses\n * @param sourceLicenseeNumber string\n *\n * @returns {Promise}\n */\n transfer(context, number, sourceLicenseeNumber) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n CheckUtils.paramNotEmpty(sourceLicenseeNumber, Constants.Licensee.SOURCE_LICENSEE_NUMBER);\n\n const queryParams = { sourceLicenseeNumber };\n\n return Service\n .post(\n context,\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_TRANSFER}`,\n queryParams,\n );\n },\n};\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) {\n return;\n }\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nmodule.exports = _nonIterableRest;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToLicense from '../converters/itemToLicense';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the License Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/license-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new license object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#create-license\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent licensee to which the new license is to be added\n * @param licenseeNumber string\n *\n * license template that the license is created from\n * @param licenseTemplateNumber string\n *\n * For privileged logins specifies transaction for the license creation. For regular logins new\n * transaction always created implicitly, and the operation will be in a separate transaction.\n * Transaction is generated with the provided transactionNumber, or, if transactionNumber is null, with\n * auto-generated number.\n * @param transactionNumber null|string\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param license NetLicensing.License\n *\n * return the newly created license object in promise\n * @returns {Promise}\n */\n async create(context, licenseeNumber, licenseTemplateNumber, transactionNumber, license) {\n CheckUtils.paramNotEmpty(licenseeNumber, Constants.Licensee.LICENSEE_NUMBER);\n CheckUtils.paramNotEmpty(licenseTemplateNumber, Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER);\n\n license.setProperty(Constants.Licensee.LICENSEE_NUMBER, licenseeNumber);\n license.setProperty(Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER, licenseTemplateNumber);\n\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.License.ENDPOINT_PATH, license.asPropertiesMap());\n\n return itemToLicense(item);\n },\n\n\n /**\n * Gets license by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#get-license\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the license number\n * @param number string\n *\n * return the license in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.License.ENDPOINT_PATH}/${number}`);\n\n return itemToLicense(item);\n },\n\n /**\n * Returns licenses of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#licenses-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * return array of licenses (of all products) or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.License.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToLicense(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates license properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#update-license\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license number\n * @param number string\n *\n * transaction for the license update. Created implicitly if transactionNumber is null. In this case the\n * operation will be in a separate transaction.\n * @param transactionNumber string|null\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param license NetLicensing.License\n *\n * return updated license in promise.\n * @returns {Promise}\n */\n async update(context, number, transactionNumber, license) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.License.ENDPOINT_PATH}/${number}`, license.asPropertiesMap());\n\n return itemToLicense(item);\n },\n\n /**\n * Deletes license.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#delete-license\n *\n * When any license is deleted, corresponding transaction is created automatically.\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service\n .delete(context, `${Constants.License.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToLicenseTemplate from '../converters/itemToLicenseTemplate';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/license-template-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new license template object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#create-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent product module to which the new license template is to be added\n * @param productModuleNumber\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param licenseTemplate NetLicensing.LicenseTemplate\n *\n * the newly created license template object in promise\n * @returns {Promise}\n */\n async create(context, productModuleNumber, licenseTemplate) {\n CheckUtils.paramNotEmpty(productModuleNumber, Constants.ProductModule.PRODUCT_MODULE_NUMBER);\n\n licenseTemplate.setProperty(Constants.ProductModule.PRODUCT_MODULE_NUMBER, productModuleNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.LicenseTemplate.ENDPOINT_PATH, licenseTemplate.asPropertiesMap());\n\n return itemToLicenseTemplate(item);\n },\n\n /**\n * Gets license template by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#get-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the license template number\n * @param number string\n *\n * return the license template object in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`);\n\n return itemToLicenseTemplate(item);\n },\n\n /**\n * Returns all license templates of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#license-templates-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of license templates (of all products/modules) or null/empty list if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.LicenseTemplate.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToLicenseTemplate(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates license template properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#update-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license template number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param licenseTemplate NetLicensing.LicenseTemplate\n *\n * updated license template in promise.\n * @returns {Promise}\n */\n async update(context, number, licenseTemplate) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const path = `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`;\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, path, licenseTemplate.asPropertiesMap());\n\n return itemToLicenseTemplate(item);\n },\n\n /**\n * Deletes license template.See NetLicensingAPI JavaDoc for details:\n * @see https://netlicensing.io/wiki/license-template-services#delete-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license template number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service\n .delete(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport CheckUtils from '../util/CheckUtils';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToPaymentMethod from '../converters/itemToPaymentMethod';\nimport Page from '../vo/Page';\n\nexport default {\n /**\n * Gets payment method by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/payment-method-services#get-payment-method\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the payment method number\n * @param number string\n *\n * return the payment method in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`);\n\n return itemToPaymentMethod(item);\n },\n\n /**\n * Returns payment methods of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/payment-method-services#payment-methods-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of payment method entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.PaymentMethod.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToPaymentMethod(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates payment method properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/payment-method-services#update-payment-method\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the payment method number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param paymentMethod NetLicensing.PaymentMethod\n *\n * return updated payment method in promise.\n * @returns {Promise}\n */\n async update(context, number, paymentMethod) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const path = `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`;\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, path, paymentMethod.asPropertiesMap());\n\n return itemToPaymentMethod(item);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToProductModule from '../converters/itemToProductModule';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/product-module-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new product module object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#create-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent product to which the new product module is to be added\n * @param productNumber string\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param productModule NetLicensing.ProductModule\n *\n * the newly created product module object in promise\n * @returns {Promise}\n */\n async create(context, productNumber, productModule) {\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\n\n productModule.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.ProductModule.ENDPOINT_PATH, productModule.asPropertiesMap());\n\n return itemToProductModule(item);\n },\n\n /**\n * Gets product module by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#get-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the product module number\n * @param number string\n *\n * return the product module object in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`);\n\n return itemToProductModule(item);\n },\n\n /**\n * Returns products of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#product-modules-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of product modules entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service.get(context, Constants.ProductModule.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToProductModule(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates product module properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#update-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product module number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param productModule NetLicensing.ProductModule\n *\n * updated product module in promise.\n * @returns {Promise}\n */\n async update(context, number, productModule) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, productModule.asPropertiesMap());\n\n return itemToProductModule(item);\n },\n\n /**\n * Deletes product module.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#delete-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product module number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service.delete(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Service from './Service';\nimport Constants from '../Constants';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToProduct from '../converters/itemToProduct';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the Product Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/product-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new product with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#create-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param product NetLicensing.Product\n *\n * return the newly created product object in promise\n * @returns {Promise}\n */\n\n async create(context, product) {\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Product.ENDPOINT_PATH, product.asPropertiesMap());\n return itemToProduct(item);\n },\n\n /**\n * Gets product by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#get-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the product number\n * @param number string\n *\n * return the product object in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Product.ENDPOINT_PATH}/${number}`);\n return itemToProduct(item);\n },\n\n /**\n * Returns products of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#products-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of product entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) throw new TypeError(`filter has bad value ${filter}`);\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service.get(context, Constants.Product.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToProduct(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates product properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#update-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param product NetLicensing.Product\n *\n * updated product in promise.\n * @returns {Promise}\n */\n async update(context, number, product) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, product.asPropertiesMap());\n\n return itemToProduct(item);\n },\n\n /**\n * Deletes product.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#delete-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service.delete(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","var superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport Service from './Service';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToToken from '../converters/itemToToken';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the Token Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/token-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new token.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#create-token\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param token NetLicensing.Token\n *\n * return created token in promise\n * @returns {Promise}\n */\n async create(context, token) {\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Token.ENDPOINT_PATH, token.asPropertiesMap());\n\n return itemToToken(item);\n },\n\n /**\n * Gets token by its number..See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#get-token\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the token number\n * @param number\n *\n * return the token in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\n\n return itemToToken(item);\n },\n\n /**\n * Returns tokens of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#tokens-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of token entities or empty array if nothing found.\n * @return array\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.Token.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToToken(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Delete token by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#delete-token\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the token number\n * @param number string\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n return Service\n .delete(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport Service from './Service';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToTransaction from '../converters/itemToTransaction';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the Transaction Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/transaction-services\n *\n * Transaction is created each time change to LicenseService licenses happens. For instance licenses are\n * obtained by a licensee, licenses disabled by vendor, licenses deleted, etc. Transaction is created no matter what\n * source has initiated the change to licenses: it can be either a direct purchase of licenses by a licensee via\n * NetLicensing Shop, or licenses can be given to a licensee by a vendor. Licenses can also be assigned implicitly by\n * NetLicensing if it is defined so by a license model (e.g. evaluation license may be given automatically). All these\n * events are reflected in transactions. Of all the transaction handling routines only read-only routines are exposed to\n * the public API, as transactions are only allowed to be created and modified by NetLicensing internally.\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new transaction object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#create-transaction\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param transaction NetLicensing.Transaction\n *\n * return the newly created transaction object in promise\n * @returns {Promise}\n */\n async create(context, transaction) {\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Transaction.ENDPOINT_PATH, transaction.asPropertiesMap());\n\n return itemToTransaction(item);\n },\n\n /**\n * Gets transaction by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#get-transaction\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the transaction number\n * @param number string\n *\n * return the transaction in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`);\n\n return itemToTransaction(item);\n },\n\n /**\n * Returns all transactions of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#transactions-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string\n *\n * array of transaction entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.Transaction.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToTransaction(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates transaction properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#update-transaction\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * transaction number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param transaction NetLicensing.Transaction\n *\n * return updated transaction in promise.\n * @returns {Promise}\n */\n async update(context, number, transaction) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`, transaction.asPropertiesMap());\n\n return itemToTransaction(item);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport Service from './Service';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToObject from '../converters/itemToObject';\nimport Page from '../vo/Page';\nimport itemToCountry from '../converters/itemToCountry';\n\n/**\n * JS representation of the Utility Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/utility-services\n * @constructor\n */\n\nexport default {\n /**\n * Returns all license types. See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/utility-services#license-types-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * array of available license types or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async listLicenseTypes(context) {\n const { data } = await Service\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSE_TYPES}`);\n\n return Page(\n data.items.item.map((v) => itemToObject(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Returns all license models. See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/utility-services#licensing-models-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * array of available license models or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async listLicensingModels(context) {\n const { data } = await Service\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSING_MODELS}`);\n\n return Page(\n data.items.item.map((v) => itemToObject(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Returns all countries.\n *\n * determines the vendor on whose behalf the call is performed\n * @param context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter\n *\n * collection of available countries or null/empty list if nothing found in promise.\n * @returns {Promise}\n */\n async listCountries(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(\n context,\n `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_COUNTRIES}`,\n queryParams,\n );\n\n return Page(\n data.items.item.map((v) => itemToCountry(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n};\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/netlicensing-client.min.js.map b/dist/netlicensing-client.min.js.map index 064892e..0a0aa8e 100644 --- a/dist/netlicensing-client.min.js.map +++ b/dist/netlicensing-client.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://NetLicensing/webpack/universalModuleDefinition","webpack://NetLicensing/webpack/bootstrap","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/createClass.js","webpack://NetLicensing/./src/Constants.js","webpack://NetLicensing/./src/util/CheckUtils.js","webpack://NetLicensing/./node_modules/axios/lib/utils.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://NetLicensing/./src/converters/itemToObject.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/inherits.js","webpack://NetLicensing/./src/entities/BaseEntity.js","webpack://NetLicensing/./src/vo/Page.js","webpack://NetLicensing/./src/services/Service.js","webpack://NetLicensing/./src/util/FilterUtils.js","webpack://NetLicensing/./node_modules/@babel/runtime/regenerator/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/asyncToGenerator.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/typeof.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://NetLicensing/./src/entities/License.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://NetLicensing/./src/entities/LicenseTransactionJoin.js","webpack://NetLicensing/./src/vo/ValidationResults.js","webpack://NetLicensing/./node_modules/process/browser.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/bind.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/buildURL.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/isCancel.js","webpack://NetLicensing/./node_modules/axios/lib/defaults.js","webpack://NetLicensing/./node_modules/axios/lib/adapters/xhr.js","webpack://NetLicensing/./node_modules/axios/lib/core/createError.js","webpack://NetLicensing/./node_modules/axios/lib/core/mergeConfig.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/Cancel.js","webpack://NetLicensing/./src/errors/NlicError.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://NetLicensing/./src/converters/itemToLicensee.js","webpack://NetLicensing/./src/entities/Licensee.js","webpack://NetLicensing/./src/util/CastsUtils.js","webpack://NetLicensing/./src/converters/itemToLicense.js","webpack://NetLicensing/./src/converters/itemToLicenseTemplate.js","webpack://NetLicensing/./src/entities/LicenseTemplate.js","webpack://NetLicensing/./src/converters/itemToPaymentMethod.js","webpack://NetLicensing/./src/entities/PaymentMethod.js","webpack://NetLicensing/./src/converters/itemToProductModule.js","webpack://NetLicensing/./src/entities/ProductModule.js","webpack://NetLicensing/./src/converters/itemToProduct.js","webpack://NetLicensing/./src/entities/Product.js","webpack://NetLicensing/./src/entities/ProductDiscount.js","webpack://NetLicensing/./src/converters/itemToToken.js","webpack://NetLicensing/./src/entities/Token.js","webpack://NetLicensing/./src/converters/itemToTransaction.js","webpack://NetLicensing/./src/entities/Transaction.js","webpack://NetLicensing/./src/converters/itemToCountry.js","webpack://NetLicensing/./src/entities/Country.js","webpack://NetLicensing/./src/index.js","webpack://NetLicensing/./src/vo/Context.js","webpack://NetLicensing/./src/vo/ValidationParameters.js","webpack://NetLicensing/./node_modules/axios/index.js","webpack://NetLicensing/./node_modules/axios/lib/axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/Axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/InterceptorManager.js","webpack://NetLicensing/./node_modules/axios/lib/core/dispatchRequest.js","webpack://NetLicensing/./node_modules/axios/lib/core/transformData.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://NetLicensing/./node_modules/axios/lib/core/settle.js","webpack://NetLicensing/./node_modules/axios/lib/core/enhanceError.js","webpack://NetLicensing/./node_modules/axios/lib/core/buildFullPath.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/combineURLs.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/cookies.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/CancelToken.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/spread.js","webpack://NetLicensing/./node_modules/btoa/index.js","webpack://NetLicensing/./node_modules/buffer/index.js","webpack://NetLicensing/(webpack)/buildin/global.js","webpack://NetLicensing/./node_modules/base64-js/index.js","webpack://NetLicensing/./node_modules/ieee754/index.js","webpack://NetLicensing/./node_modules/isarray/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/isNativeFunction.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/construct.js","webpack://NetLicensing/./src/services/LicenseeService.js","webpack://NetLicensing/./node_modules/regenerator-runtime/runtime.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://NetLicensing/./src/services/LicenseService.js","webpack://NetLicensing/./src/services/LicenseTemplateService.js","webpack://NetLicensing/./src/services/PaymentMethodService.js","webpack://NetLicensing/./src/services/ProductModuleService.js","webpack://NetLicensing/./src/services/ProductService.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/get.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/superPropBase.js","webpack://NetLicensing/./src/services/TokenService.js","webpack://NetLicensing/./src/services/TransactionService.js","webpack://NetLicensing/./src/services/UtilityService.js"],"names":["root","factory","exports","module","define","amd","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","obj","default","instance","Constructor","TypeError","_defineProperties","target","props","length","descriptor","configurable","writable","protoProps","staticProps","BASIC_AUTHENTICATION","APIKEY_IDENTIFICATION","ANONYMOUS_IDENTIFICATION","ACTIVE","NUMBER","NAME","VERSION","DELETED","CASCADE","PRICE","DISCOUNT","CURRENCY","IN_USE","FILTER","BASE_URL","USERNAME","PASSWORD","SECURITY_MODE","LicensingModel","VALID","TryAndBuy","Rental","RED_THRESHOLD","YELLOW_THRESHOLD","Subscription","Floating","MultiFeature","PayPerUse","PricingTable","Quota","NodeLocked","Vendor","VENDOR_NUMBER","VENDOR_TYPE","Product","ENDPOINT_PATH","PRODUCT_NUMBER","LICENSEE_AUTO_CREATE","DESCRIPTION","LICENSING_INFO","DISCOUNTS","PROP_LICENSEE_SECRET_MODE","PROP_VAT_MODE","Discount","TOTAL_PRICE","AMOUNT_FIX","AMOUNT_PERCENT","LicenseeSecretMode","DISABLED","PREDEFINED","CLIENT","ProductModule","PRODUCT_MODULE_NUMBER","PRODUCT_MODULE_NAME","LICENSING_MODEL","LicenseTemplate","LICENSE_TEMPLATE_NUMBER","LICENSE_TYPE","AUTOMATIC","HIDDEN","HIDE_LICENSES","PROP_LICENSEE_SECRET","LicenseType","FEATURE","TIMEVOLUME","FLOATING","QUANTITY","Token","EXPIRATION_TIME","TOKEN_TYPE","API_KEY","TOKEN_PROP_EMAIL","TOKEN_PROP_VENDORNUMBER","TOKEN_PROP_SHOP_URL","Type","DEFAULT","SHOP","APIKEY","Transaction","TRANSACTION_NUMBER","GRAND_TOTAL","STATUS","SOURCE","DATE_CREATED","DATE_CLOSED","VAT","VAT_MODE","LICENSE_TRANSACTION_JOIN","SOURCE_SHOP_ONLY","Status","CANCELLED","CLOSED","PENDING","Licensee","ENDPOINT_PATH_VALIDATE","ENDPOINT_PATH_TRANSFER","LICENSEE_NUMBER","SOURCE_LICENSEE_NUMBER","PROP_LICENSEE_NAME","PROP_MARKED_FOR_TRANSFER","License","LICENSE_NUMBER","PaymentMethod","Utility","ENDPOINT_PATH_LICENSE_TYPES","ENDPOINT_PATH_LICENSING_MODELS","ENDPOINT_PATH_COUNTRIES","LICENSING_MODEL_PROPERTIES","ROLE_APIKEY_LICENSEE","ROLE_APIKEY_ANALYTICS","ROLE_APIKEY_OPERATION","ROLE_APIKEY_MAINTENANCE","ROLE_APIKEY_ADMIN","isValid","valid","undefined","Number","isFinite","isNaN","paramNotNull","parameter","parameterName","concat","paramNotEmpty","toString","isArray","val","isUndefined","isObject","isFunction","forEach","fn","isArrayBuffer","isBuffer","constructor","isFormData","FormData","isArrayBufferView","ArrayBuffer","isView","buffer","isString","isNumber","isDate","isFile","isBlob","isStream","pipe","isURLSearchParams","URLSearchParams","isStandardBrowserEnv","navigator","product","window","document","merge","result","assignValue","arguments","deepMerge","extend","a","b","thisArg","trim","str","replace","_getPrototypeOf","setPrototypeOf","getPrototypeOf","__proto__","itemToObject","item","list","Array","push","_typeof","assertThisInitialized","self","subClass","superClass","_CheckUtils","_interopRequireDefault","_CastsUtils","propertiesMap","WeakMap","definedMap","castsMap","BaseEntity","_ref","properties","casts","_classCallCheck2","set","setProperties","CheckUtils","_typeof2","castedValue","cast","setProperty","_this","removeProperties","has","keys","def","_objectSpread","removeDefine","_this2","removeProperty","Boolean","hasDefine","descriptors","getProperty","_this3","getProperties","customProperties","content","pageNumber","itemsNumber","totalPages","totalItems","paginator","getContent","getPageNumber","getItemsNumber","getTotalPages","getTotalItems","hasNext","paginatorKeys","Proxy","indexOf","_axios","_btoa","_Constants","_NlicError","_package","httpXHR","axiosInstance","Service","axios","instanse","context","urlTemplate","queryParams","request","method","template","String","params","toLowerCase","Error","getBaseUrl","url","encodeURI","responseType","headers","Accept","transformRequest","data","toQueryString","pkg","version","process","getSecurityMode","Constants","getUsername","getPassword","auth","username","password","getApiKey","Authorization","getAxiosInstance","then","response","catch","e","error","NlicError","config","code","info","getInfo","message","infos","RegExp","test","prefix","query","k","v","Date","toISOString","encodeURIComponent","join","FILTER_DELIMITER","FILTER_PAIR_DELIMITER","encode","filter","decode","split","_v$split","_v$split2","_slicedToArray2","arrayWithHoles","iterableToArrayLimit","nonIterableRest","arr","asyncGeneratorStep","gen","resolve","reject","_next","_throw","arg","done","Promise","args","apply","err","iterator","_possibleConstructorReturn2","_getPrototypeOf2","number","active","price","hidden","parentfeature","timeVolume","startDate","inUse","_setPrototypeOf","LicenseTransactionJoin","transaction","license","vr","ValidationResults","validators","productModuleNumber","productModuleValidation","ttl","getValidators","JSON","stringify","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","setTimeout","clearTimeout","currentQueue","queue","draining","queueIndex","cleanUpNextTick","drainQueue","timeout","len","run","marker","runClearTimeout","Item","array","noop","nextTick","title","browser","env","argv","versions","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","binding","cwd","chdir","dir","umask","utils","paramsSerializer","serializedParams","parts","hashmarkIndex","slice","__CANCEL__","normalizeHeaderName","DEFAULT_CONTENT_TYPE","Content-Type","setContentTypeIfUnset","adapter","defaults","XMLHttpRequest","transformResponse","parse","xsrfCookieName","xsrfHeaderName","maxContentLength","validateStatus","status","common","settle","buildURL","buildFullPath","parseHeaders","isURLSameOrigin","createError","requestData","requestHeaders","btoa","fullPath","baseURL","open","toUpperCase","onreadystatechange","readyState","responseURL","responseHeaders","getAllResponseHeaders","responseText","statusText","onabort","onerror","ontimeout","timeoutErrorMessage","cookies","xsrfValue","withCredentials","read","setRequestHeader","onDownloadProgress","addEventListener","onUploadProgress","upload","cancelToken","promise","cancel","abort","send","enhanceError","config1","config2","valueFromConfig2Keys","mergeDeepPropertiesKeys","defaultToConfig2Keys","prop","axiosKeys","otherKeys","Cancel","_len","_key","_getPrototypeOf3","isNlicError","isAxiosError","ReferenceError","_itemToObject","_Licensee","licenseeSecret","markedForTransfer","parseInt","parseFloat","_License","_LicenseTemplate","licenseType","currency","automatic","hideLicenses","gracePeriod","timeVolumePeriod","maxSessions","quantity","_PaymentMethod","paypal.subject","paypalSubject","_ProductModule","licensingModel","maxCheckoutValidity","yellowThreshold","redThreshold","licenseTemplate","licenseeSecretMode","_Product","discounts","discount","setProductDiscounts","_BaseEntity2","_ProductDiscount","discountsMap","discountsTouched","description","licensingInfo","licenseeAutoCreate","_assertThisInitialized2","productDiscount","ProductDiscount","addDiscount","assign","_get2","map","totalPrice","amountFix","amountPercent","getTotalPrice","getCurrency","amount","getAmountFix","getAmountPercent","_Token","expirationTime","vendorNumber","tokenType","licenseeNumber","successURL","successURLTitle","cancelURL","cancelURLTitle","shopURL","role","setApiKeyRole","getApiKeyRole","apiKeyRole","_Transaction","_LicenseTransactionJoin","licenseTransactionJoin","joins","setLicense","setTransaction","setLicenseTransactionJoins","source","grandTotal","dateCreated","dateClosed","paymentMethod","licenseTransactionJoins","_Country","Country","vatPercent","isEu","vat","_Context","_Page","_ValidationParameters","_ValidationResults","_Service","_LicenseeService","_LicenseService","_LicenseTemplateService","_PaymentMethodService","_ProductModuleService","_ProductService","_TokenService","_TransactionService","_UtilityService","_BaseEntity","_itemToCountry","_itemToLicense","_itemToLicensee","_itemToLicenseTemplate","_itemToPaymentMethod","_itemToProduct","_itemToProductModule","_itemToToken","_itemToTransaction","_FilterUtils","NetLicensing","Context","Page","ValidationParameters","LicenseeService","LicenseService","LicenseTemplateService","PaymentMethodService","ProductModuleService","ProductService","TokenService","TransactionService","UtilityService","itemToCountry","itemToLicense","itemToLicensee","itemToLicenseTemplate","itemToPaymentMethod","itemToProduct","itemToProductModule","itemToToken","itemToTransaction","CastsUtils","FilterUtils","valuesMap","defaultsMap","values","baseUrl","securityMode","setValues","setValue","getValue","apiKey","copedValue","removeValues","removeValue","onlyGetter","vpMap","parameters","productNumber","licenseeName","productModuleParameters","Axios","mergeConfig","createInstance","defaultConfig","instanceConfig","CancelToken","isCancel","all","promises","spread","InterceptorManager","dispatchRequest","interceptors","chain","interceptor","unshift","fulfilled","rejected","shift","getUri","handlers","use","eject","id","h","transformData","throwIfCancellationRequested","throwIfRequested","reason","fns","normalizedName","toJSON","fileName","lineNumber","columnNumber","stack","isAbsoluteURL","combineURLs","requestedURL","relativeURL","ignoreDuplicateOf","parsed","line","substr","originURL","msie","userAgent","urlParsingNode","createElement","resolveURL","href","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","location","requestURL","write","expires","path","domain","secure","cookie","toGMTString","match","decodeURIComponent","remove","now","executor","resolvePromise","token","callback","Buffer","from","global","base64","ieee754","kMaxLength","TYPED_ARRAY_SUPPORT","createBuffer","that","RangeError","Uint8Array","encodingOrOffset","allocUnsafe","byteOffset","byteLength","fromArrayLike","fromArrayBuffer","string","encoding","isEncoding","actual","fromString","checked","copy","type","fromObject","assertSize","size","loweredCase","utf8ToBytes","base64ToBytes","swap","bidirectionalIndexOf","arrayIndexOf","lastIndexOf","indexSize","arrLength","valLength","buf","readUInt16BE","foundIndex","found","j","hexWrite","offset","remaining","strLen","utf8Write","blitBuffer","asciiWrite","byteArray","charCodeAt","asciiToBytes","latin1Write","base64Write","ucs2Write","units","hi","lo","utf16leToBytes","base64Slice","start","end","fromByteArray","utf8Slice","Math","min","res","secondByte","thirdByte","fourthByte","tempCodePoint","firstByte","codePoint","bytesPerSequence","codePoints","MAX_ARGUMENTS_LENGTH","fromCharCode","decodeCodePointsArray","SlowBuffer","alloc","INSPECT_MAX_BYTES","foo","subarray","typedArraySupport","poolSize","_augment","species","fill","allocUnsafeSlow","_isBuffer","compare","x","y","pos","swap16","swap32","swap64","hexSlice","asciiSlice","latin1Slice","utf16leSlice","equals","inspect","max","thisStart","thisEnd","thisCopy","targetCopy","includes","_arr","ret","out","toHex","bytes","checkOffset","ext","checkInt","objectWriteUInt16","littleEndian","objectWriteUInt32","checkIEEE754","writeFloat","noAssert","writeDouble","newBuf","sliceLen","readUIntLE","mul","readUIntBE","readUInt8","readUInt16LE","readUInt32LE","readUInt32BE","readIntLE","pow","readIntBE","readInt8","readInt16LE","readInt16BE","readInt32LE","readInt32BE","readFloatLE","readFloatBE","readDoubleLE","readDoubleBE","writeUIntLE","writeUIntBE","writeUInt8","floor","writeUInt16LE","writeUInt16BE","writeUInt32LE","writeUInt32BE","writeIntLE","limit","sub","writeIntBE","writeInt8","writeInt16LE","writeInt16BE","writeInt32LE","writeInt32BE","writeFloatLE","writeFloatBE","writeDoubleLE","writeDoubleBE","targetStart","INVALID_BASE64_RE","Infinity","leadSurrogate","toByteArray","stringtrim","base64clean","src","dst","g","Function","b64","lens","getLens","validLen","placeHoldersLen","tmp","Arr","_byteLength","curByte","revLookup","uint8","extraBytes","len2","encodeChunk","lookup","num","output","isLE","mLen","nBytes","eLen","eMax","eBias","nBits","NaN","rt","abs","log","LN2","isNativeFunction","construct","_wrapNativeSuper","Class","_cache","Map","Wrapper","_construct","Parent","Reflect","sham","isNativeReflectConstruct","licensee","_asyncToGenerator2","_regenerator","mark","_callee","_ref$data$items$item","wrap","_context","prev","next","post","asPropertiesMap","sent","items","abrupt","stop","_callee2","_ref2","_ref2$data$items$item","_context2","_callee3","_ref3","_context3","pagenumber","itemsnumber","totalpages","totalitems","update","_callee4","_ref4","_ref4$data$items$item","_context4","delete","forceCascade","validate","validationParameters","_callee5","pmIndex","_ref5","_ref5$data","validationResults","_context5","getProductNumber","getLicenseeName","getLicenseeSecret","getParameters","productModuleName","setTtl","setProductModuleValidation","transfer","sourceLicenseeNumber","runtime","Op","hasOwn","$Symbol","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","_invoke","state","GenStateSuspendedStart","GenStateExecuting","GenStateCompleted","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","_sent","dispatchException","record","tryCatch","GenStateSuspendedYield","makeInvokeMethod","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","NativeIteratorPrototype","Gp","defineIteratorMethods","AsyncIterator","previousPromise","callInvokeWithMethodAndArg","invoke","__await","unwrapped","resultName","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","iterable","iteratorMethod","displayName","isGeneratorFunction","genFun","ctor","awrap","async","iter","reverse","pop","skipTempReset","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","_n","_d","_e","_s","_i","licenseTemplateNumber","transactionNumber","_ref3$data$items$item","productModule","superPropBase","_get","receiver","base","desc","getOwnPropertyDescriptor","listLicenseTypes","listLicensingModels","listCountries"],"mappings":"CAAA,SAAAA,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,IACA,mBAAAG,eAAAC,IACAD,OAAA,kBAAAH,GACA,iBAAAC,QACAA,QAAA,aAAAD,IAEAD,EAAA,aAAAC,IARA,CASCK,KAAA,WACD,mBCTA,IAAAC,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAP,QAGA,IAAAC,EAAAI,EAAAE,IACAC,EAAAD,EACAE,GAA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6B,UAAJ,wBAAAoI,OAAsCgL,IALnB,OAO7BvD,EAAYqB,UAAU3P,QAA4B,iBAAX6R,EAAsBA,EAASyS,UAAY1S,OAAOC,GAP5D,cAAA0nB,EAAAb,KAAA,EAUVzqB,UAClB/Q,IACGkR,EAFe,GAAAvH,OAGZ8I,UAAUjK,QAAQpE,cAHN,KAAAuF,OAGuB8I,UAAUjK,QAAQG,yBACxDyI,GAdyB,cAAAgrB,EAAAC,EAAAV,KAUzBxpB,EAVyBiqB,EAUzBjqB,KAVyBkqB,EAAAR,OAAA,UAiB1B,EAAAxX,EAAAjjB,SACH+Q,EAAKypB,MAAM/uB,KAAK8U,IAAI,SAACxN,GAAD,OAAO,EAAAgR,EAAA/jB,SAAc+S,KACzChC,EAAKypB,MAAMU,WACXnqB,EAAKypB,MAAMW,YACXpqB,EAAKypB,MAAMY,WACXrqB,EAAKypB,MAAMa,aAtBkB,yBAAAJ,EAAAP,SAAAK,KAAA","file":"netlicensing-client.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"NetLicensing\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"NetLicensing\"] = factory();\n\telse\n\t\troot[\"NetLicensing\"] = factory();\n})(this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 53);\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nexport default {\r\n BASIC_AUTHENTICATION: 'BASIC_AUTH',\r\n APIKEY_IDENTIFICATION: 'APIKEY',\r\n ANONYMOUS_IDENTIFICATION: 'ANONYMOUS',\r\n\r\n ACTIVE: 'active',\r\n NUMBER: 'number',\r\n NAME: 'name',\r\n VERSION: 'version',\r\n DELETED: 'deleted',\r\n CASCADE: 'forceCascade',\r\n PRICE: 'price',\r\n DISCOUNT: 'discount',\r\n CURRENCY: 'currency',\r\n IN_USE: 'inUse',\r\n FILTER: 'filter',\r\n BASE_URL: 'baseUrl',\r\n USERNAME: 'username',\r\n PASSWORD: 'password',\r\n SECURITY_MODE: 'securityMode',\r\n\r\n LicensingModel: {\r\n VALID: 'valid',\r\n TryAndBuy: {\r\n NAME: 'TryAndBuy',\r\n },\r\n Rental: {\r\n NAME: 'Rental',\r\n RED_THRESHOLD: 'redThreshold',\r\n YELLOW_THRESHOLD: 'yellowThreshold',\r\n },\r\n Subscription: {\r\n NAME: 'Subscription',\r\n },\r\n Floating: {\r\n NAME: 'Floating',\r\n },\r\n MultiFeature: {\r\n NAME: 'MultiFeature',\r\n },\r\n PayPerUse: {\r\n NAME: 'PayPerUse',\r\n },\r\n PricingTable: {\r\n NAME: 'PricingTable',\r\n },\r\n Quota: {\r\n NAME: 'Quota',\r\n },\r\n NodeLocked: {\r\n NAME: 'NodeLocked',\r\n },\r\n },\r\n\r\n Vendor: {\r\n VENDOR_NUMBER: 'vendorNumber',\r\n VENDOR_TYPE: 'Vendor',\r\n },\r\n\r\n Product: {\r\n ENDPOINT_PATH: 'product',\r\n PRODUCT_NUMBER: 'productNumber',\r\n LICENSEE_AUTO_CREATE: 'licenseeAutoCreate',\r\n DESCRIPTION: 'description',\r\n LICENSING_INFO: 'licensingInfo',\r\n DISCOUNTS: 'discounts',\r\n /**\r\n * @deprecated use ProductModule.PROP_LICENSEE_SECRET_MODE instead\r\n */\r\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\r\n PROP_VAT_MODE: 'vatMode',\r\n\r\n Discount: {\r\n TOTAL_PRICE: 'totalPrice',\r\n AMOUNT_FIX: 'amountFix',\r\n AMOUNT_PERCENT: 'amountPercent',\r\n },\r\n\r\n LicenseeSecretMode: {\r\n /**\r\n * @deprecated DISABLED mode is deprecated\r\n */\r\n DISABLED: 'DISABLED',\r\n PREDEFINED: 'PREDEFINED',\r\n CLIENT: 'CLIENT',\r\n },\r\n },\r\n\r\n ProductModule: {\r\n ENDPOINT_PATH: 'productmodule',\r\n PRODUCT_MODULE_NUMBER: 'productModuleNumber',\r\n PRODUCT_MODULE_NAME: 'productModuleName',\r\n LICENSING_MODEL: 'licensingModel',\r\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\r\n },\r\n\r\n LicenseTemplate: {\r\n ENDPOINT_PATH: 'licensetemplate',\r\n LICENSE_TEMPLATE_NUMBER: 'licenseTemplateNumber',\r\n LICENSE_TYPE: 'licenseType',\r\n AUTOMATIC: 'automatic',\r\n HIDDEN: 'hidden',\r\n HIDE_LICENSES: 'hideLicenses',\r\n PROP_LICENSEE_SECRET: 'licenseeSecret',\r\n LicenseType: {\r\n FEATURE: 'FEATURE',\r\n TIMEVOLUME: 'TIMEVOLUME',\r\n FLOATING: 'FLOATING',\r\n QUANTITY: 'QUANTITY',\r\n },\r\n },\r\n\r\n Token: {\r\n ENDPOINT_PATH: 'token',\r\n EXPIRATION_TIME: 'expirationTime',\r\n TOKEN_TYPE: 'tokenType',\r\n API_KEY: 'apiKey',\r\n TOKEN_PROP_EMAIL: 'email',\r\n TOKEN_PROP_VENDORNUMBER: 'vendorNumber',\r\n TOKEN_PROP_SHOP_URL: 'shopURL',\r\n Type: {\r\n DEFAULT: 'DEFAULT',\r\n SHOP: 'SHOP',\r\n APIKEY: 'APIKEY',\r\n },\r\n },\r\n\r\n Transaction: {\r\n ENDPOINT_PATH: 'transaction',\r\n TRANSACTION_NUMBER: 'transactionNumber',\r\n GRAND_TOTAL: 'grandTotal',\r\n STATUS: 'status',\r\n SOURCE: 'source',\r\n DATE_CREATED: 'datecreated',\r\n DATE_CLOSED: 'dateclosed',\r\n VAT: 'vat',\r\n VAT_MODE: 'vatMode',\r\n LICENSE_TRANSACTION_JOIN: 'licenseTransactionJoin',\r\n SOURCE_SHOP_ONLY: 'shopOnly',\r\n /**\r\n * @deprecated\r\n */\r\n Status: {\r\n CANCELLED: 'CANCELLED',\r\n CLOSED: 'CLOSED',\r\n PENDING: 'PENDING',\r\n },\r\n },\r\n\r\n Licensee: {\r\n ENDPOINT_PATH: 'licensee',\r\n ENDPOINT_PATH_VALIDATE: 'validate',\r\n ENDPOINT_PATH_TRANSFER: 'transfer',\r\n LICENSEE_NUMBER: 'licenseeNumber',\r\n SOURCE_LICENSEE_NUMBER: 'sourceLicenseeNumber',\r\n PROP_LICENSEE_NAME: 'licenseeName',\r\n /**\r\n * @deprecated use License.PROP_LICENSEE_SECRET\r\n */\r\n PROP_LICENSEE_SECRET: 'licenseeSecret',\r\n PROP_MARKED_FOR_TRANSFER: 'markedForTransfer',\r\n },\r\n\r\n License: {\r\n ENDPOINT_PATH: 'license',\r\n LICENSE_NUMBER: 'licenseNumber',\r\n HIDDEN: 'hidden',\r\n PROP_LICENSEE_SECRET: 'licenseeSecret',\r\n },\r\n\r\n PaymentMethod: {\r\n ENDPOINT_PATH: 'paymentmethod',\r\n },\r\n\r\n Utility: {\r\n ENDPOINT_PATH: 'utility',\r\n ENDPOINT_PATH_LICENSE_TYPES: 'licenseTypes',\r\n ENDPOINT_PATH_LICENSING_MODELS: 'licensingModels',\r\n ENDPOINT_PATH_COUNTRIES: 'countries',\r\n LICENSING_MODEL_PROPERTIES: 'LicensingModelProperties',\r\n LICENSE_TYPE: 'LicenseType',\r\n },\r\n\r\n APIKEY: {\r\n ROLE_APIKEY_LICENSEE: 'ROLE_APIKEY_LICENSEE',\r\n ROLE_APIKEY_ANALYTICS: 'ROLE_APIKEY_ANALYTICS',\r\n ROLE_APIKEY_OPERATION: 'ROLE_APIKEY_OPERATION',\r\n ROLE_APIKEY_MAINTENANCE: 'ROLE_APIKEY_MAINTENANCE',\r\n ROLE_APIKEY_ADMIN: 'ROLE_APIKEY_ADMIN',\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nexport default {\r\n isValid(value) {\r\n let valid = (value !== undefined && typeof value !== 'function');\r\n if (typeof value === 'number') valid = Number.isFinite(value) && !Number.isNaN(value);\r\n return valid;\r\n },\r\n\r\n paramNotNull(parameter, parameterName) {\r\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\r\n if (parameter === null) throw new TypeError(`Parameter ${parameterName} cannot be null`);\r\n },\r\n\r\n paramNotEmpty(parameter, parameterName) {\r\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\r\n if (!parameter) throw new TypeError(`Parameter ${parameterName} cannot be null or empty string`);\r\n },\r\n};\r\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = merge(result[key], val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Function equal to merge with the difference being that no reference\n * to original objects is kept.\n *\n * @see merge\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction deepMerge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = deepMerge(result[key], val);\n } else if (typeof val === 'object') {\n result[key] = deepMerge({}, val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n deepMerge: deepMerge,\n extend: extend,\n trim: trim\n};\n","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","const itemToObject = (item) => {\r\n const object = {};\r\n const { property, list } = item;\r\n\r\n if (property && Array.isArray(property)) {\r\n property.forEach((p) => {\r\n const { name, value } = p;\r\n if (name) object[name] = value;\r\n });\r\n }\r\n\r\n if (list && Array.isArray(list)) {\r\n list.forEach((l) => {\r\n const { name } = l;\r\n if (name) {\r\n object[name] = object[name] || [];\r\n object[name].push(itemToObject(l));\r\n }\r\n });\r\n }\r\n\r\n return object;\r\n};\r\n\r\nexport default itemToObject;\r\n","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport CastsUtils from '../util/CastsUtils';\r\n\r\n/**\r\n * The entity properties.\r\n * @type {{}}\r\n * @private\r\n */\r\nconst propertiesMap = new WeakMap();\r\n\r\n/**\r\n * List of properties that was defined\r\n * @type {{}}\r\n * @private\r\n */\r\n\r\nconst definedMap = new WeakMap();\r\n\r\n/**\r\n * List of properties that need be casts\r\n * @type {{}}\r\n * @private\r\n */\r\nconst castsMap = new WeakMap();\r\n\r\nexport default class BaseEntity {\r\n constructor({ properties, casts }) {\r\n propertiesMap.set(this, {});\r\n definedMap.set(this, {});\r\n castsMap.set(this, casts || []);\r\n\r\n if (properties) {\r\n this.setProperties(properties);\r\n }\r\n }\r\n\r\n /**\r\n * Set a given property on the entity.\r\n * @param property\r\n * @param value\r\n * @returns {BaseEntity}\r\n */\r\n setProperty(property, value) {\r\n // if property name has bad native type\r\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\r\n throw new TypeError(`Bad property name:${property}`);\r\n }\r\n\r\n const castedValue = this.cast(property, value);\r\n\r\n // define to property\r\n this.define(property);\r\n\r\n // save property to propertiesMap\r\n const properties = propertiesMap.get(this);\r\n properties[property] = castedValue;\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Alias for setProperty\r\n * @param property\r\n * @param value\r\n * @returns {BaseEntity}\r\n */\r\n addProperty(property, value) {\r\n return this.setProperty(property, value);\r\n }\r\n\r\n /**\r\n * Set the entity properties.\r\n * @param properties\r\n * @returns {BaseEntity}\r\n */\r\n setProperties(properties) {\r\n this.removeProperties();\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(properties).forEach((key) => {\r\n if (has.call(properties, key)) {\r\n this.setProperty(key, properties[key]);\r\n }\r\n });\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Check if we has property\r\n * @param property\r\n * @protected\r\n */\r\n hasProperty(property) {\r\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property);\r\n }\r\n\r\n /**\r\n * Get an property from the entity.\r\n * @param property\r\n * @param def\r\n * @returns {*}\r\n */\r\n getProperty(property, def) {\r\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property)\r\n ? propertiesMap.get(this)[property]\r\n : def;\r\n }\r\n\r\n /**\r\n * Get all of the current properties on the entity.\r\n */\r\n getProperties() {\r\n return { ...propertiesMap.get(this) };\r\n }\r\n\r\n /**\r\n * Remove property\r\n * @param property\r\n * @returns {BaseEntity}\r\n */\r\n removeProperty(property) {\r\n const properties = propertiesMap.get(this);\r\n delete properties[property];\r\n this.removeDefine(property);\r\n return this;\r\n }\r\n\r\n /**\r\n * Remove properties\r\n * @param properties\r\n */\r\n removeProperties(properties) {\r\n const propertiesForRemove = properties || Object.keys(propertiesMap.get(this));\r\n\r\n propertiesForRemove.forEach((property) => {\r\n this.removeProperty(property);\r\n });\r\n }\r\n\r\n cast(property, value) {\r\n if (!castsMap.get(this)[property]) return value;\r\n\r\n return CastsUtils(castsMap.get(this)[property], value);\r\n }\r\n\r\n /**\r\n * Check if property has defined\r\n * @param property\r\n * @protected\r\n */\r\n hasDefine(property) {\r\n return Boolean(definedMap.get(this)[property]);\r\n }\r\n\r\n /**\r\n * Define property getter and setter\r\n * @param property\r\n * @protected\r\n */\r\n define(property) {\r\n if (this.hasDefine(property)) return;\r\n\r\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\r\n throw new TypeError(`Bad property name:${property}`);\r\n }\r\n\r\n const self = this;\r\n\r\n // delete property\r\n delete this[property];\r\n\r\n const descriptors = {\r\n enumerable: true,\r\n configurable: true,\r\n get() {\r\n return self.getProperty(property);\r\n },\r\n\r\n set(value) {\r\n self.setProperty(property, value);\r\n },\r\n };\r\n\r\n const defined = definedMap.get(this);\r\n defined[property] = true;\r\n\r\n Object.defineProperty(this, property, descriptors);\r\n }\r\n\r\n /**\r\n * Remove property getter and setter\r\n * @param property\r\n * @protected\r\n */\r\n removeDefine(property) {\r\n if (!this.hasDefine(property)) return;\r\n\r\n const defined = definedMap.get(this);\r\n delete defined[property];\r\n\r\n delete this[property];\r\n }\r\n\r\n /**\r\n * Get properties map\r\n */\r\n asPropertiesMap() {\r\n const properties = this.getProperties();\r\n const customProperties = {};\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(this).forEach((key) => {\r\n if (!has.call(this, key)) return;\r\n\r\n customProperties[key] = this[key];\r\n });\r\n\r\n return { ...customProperties, ...properties };\r\n }\r\n}\r\n","export default (content = [], pageNumber = 0, itemsNumber = 0, totalPages = 0, totalItems = 0) => {\r\n const paginator = {\r\n getContent() {\r\n return content;\r\n },\r\n\r\n getPageNumber() {\r\n return pageNumber;\r\n },\r\n\r\n getItemsNumber() {\r\n return itemsNumber;\r\n },\r\n\r\n getTotalPages() {\r\n return totalPages;\r\n },\r\n\r\n getTotalItems() {\r\n return totalItems;\r\n },\r\n\r\n hasNext() {\r\n return (totalPages > pageNumber + 1);\r\n },\r\n };\r\n\r\n const paginatorKeys = Object.keys(paginator);\r\n\r\n return new Proxy(content, {\r\n get(target, key) {\r\n if (paginatorKeys.indexOf(key) !== -1) {\r\n return paginator[key];\r\n }\r\n return target[key];\r\n },\r\n });\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nimport axios from 'axios';\r\nimport btoa from 'btoa';\r\nimport Constants from '../Constants';\r\nimport NlicError from '../errors/NlicError';\r\nimport pkg from '../../package.json';\r\n\r\nlet httpXHR = {};\r\nlet axiosInstance = null;\r\n\r\nexport default class Service {\r\n static getAxiosInstance() {\r\n return axiosInstance || axios;\r\n }\r\n\r\n static setAxiosInstance(instanse) {\r\n axiosInstance = instanse;\r\n }\r\n\r\n static getLastHttpRequestInfo() {\r\n return httpXHR;\r\n }\r\n\r\n /**\r\n * Helper method for performing GET request to N\r\n etLicensing API services. Finds and returns first suitable item with\r\n * type resultType from the response.\r\n *\r\n * Context for the NetLicensing API call\r\n * @param context\r\n *\r\n * the REST URL template\r\n * @param urlTemplate\r\n *\r\n * The REST query parameters values. May be null if there are no parameters.\r\n * @param queryParams\r\n *\r\n * @returns {Promise}\r\n */\r\n static get(context, urlTemplate, queryParams) {\r\n return Service.request(context, 'get', urlTemplate, queryParams);\r\n }\r\n\r\n /**\r\n * Helper method for performing POST request to NetLicensing API services. Finds and returns first suitable item\r\n * with type resultType from the response.\r\n *\r\n * context for the NetLicensing API call\r\n * @param context\r\n *\r\n * the REST URL template\r\n * @param urlTemplate\r\n *\r\n * The REST query parameters values. May be null if there are no parameters.\r\n * @param queryParams\r\n *\r\n * @returns {Promise}\r\n */\r\n static post(context, urlTemplate, queryParams) {\r\n return Service.request(context, 'post', urlTemplate, queryParams);\r\n }\r\n\r\n /**\r\n *\r\n * @param context\r\n * @param urlTemplate\r\n * @param queryParams\r\n * @returns {Promise}\r\n */\r\n static delete(context, urlTemplate, queryParams) {\r\n return Service.request(context, 'delete', urlTemplate, queryParams);\r\n }\r\n\r\n /**\r\n * Send request to NetLicensing RestApi\r\n * @param context\r\n * @param method\r\n * @param urlTemplate\r\n * @param queryParams\r\n * @returns {Promise}\r\n */\r\n static request(context, method, urlTemplate, queryParams) {\r\n const template = String(urlTemplate);\r\n const params = queryParams || {};\r\n\r\n if (!template) throw new TypeError('Url template must be specified');\r\n\r\n // validate http method\r\n if (['get', 'post', 'delete'].indexOf(method.toLowerCase()) < 0) {\r\n throw new Error(`Invalid request type:${method}, allowed requests types: GET, POST, DELETE.`);\r\n }\r\n\r\n // validate context\r\n if (!context.getBaseUrl(null)) {\r\n throw new Error('Base url must be specified');\r\n }\r\n\r\n const request = {\r\n url: encodeURI(`${context.getBaseUrl()}/${template}`),\r\n method: method.toLowerCase(),\r\n responseType: 'json',\r\n headers: {\r\n Accept: 'application/json',\r\n },\r\n transformRequest: [(data, headers) => {\r\n if (headers['Content-Type'] === 'application/x-www-form-urlencoded') {\r\n return Service.toQueryString(data);\r\n }\r\n\r\n if (!headers['NetLicensing-Origin']) {\r\n // eslint-disable-next-line no-param-reassign\r\n headers['NetLicensing-Origin'] = `NetLicensing/Javascript ${pkg.version}`;\r\n }\r\n return data;\r\n }],\r\n };\r\n\r\n // only node.js has a process variable that is of [[Class]] process\r\n if (!typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\r\n request.headers['User-agent'] = `NetLicensing/Javascript ${pkg.version}/node&${process.version}`;\r\n }\r\n\r\n if (['put', 'post', 'patch'].indexOf(request.method) >= 0) {\r\n if (request.method === 'post') {\r\n request.headers['Content-Type'] = 'application/x-www-form-urlencoded';\r\n }\r\n request.data = params;\r\n } else {\r\n request.params = params;\r\n }\r\n\r\n switch (context.getSecurityMode()) {\r\n // Basic Auth\r\n case Constants.BASIC_AUTHENTICATION:\r\n if (!context.getUsername()) throw new Error('Missing parameter \"username\"');\r\n if (!context.getPassword()) throw new Error('Missing parameter \"password\"');\r\n\r\n request.auth = {\r\n username: context.getUsername(),\r\n password: context.getPassword(),\r\n };\r\n break;\r\n // ApiKey Auth\r\n case Constants.APIKEY_IDENTIFICATION:\r\n if (!context.getApiKey()) throw new Error('Missing parameter \"apiKey\"');\r\n\r\n request.headers.Authorization = `Basic ${btoa(`apiKey:${context.getApiKey()}`)}`;\r\n break;\r\n // without authorization\r\n case Constants.ANONYMOUS_IDENTIFICATION:\r\n break;\r\n default:\r\n throw new Error('Unknown security mode');\r\n }\r\n\r\n return Service.getAxiosInstance()(request)\r\n .then((response) => {\r\n httpXHR = response;\r\n return response;\r\n })\r\n .catch((e) => {\r\n httpXHR = e;\r\n\r\n if (e.response) {\r\n // The request was made and the server responded with a status code\r\n // that falls out of the range of 2xx\r\n\r\n const error = new NlicError(e);\r\n\r\n error.config = e.config;\r\n error.code = e.code;\r\n error.request = e.request;\r\n error.response = e.response;\r\n\r\n // The request was made and the server responded with a status code\r\n // that falls out of the range of 2xx\r\n const { data } = e.response;\r\n\r\n if (data) {\r\n const info = Service.getInfo(e.response, [])[0] || {};\r\n error.message = info.value || 'Unknown';\r\n }\r\n\r\n throw error;\r\n }\r\n\r\n throw e;\r\n });\r\n }\r\n\r\n static getInfo(response, def) {\r\n try {\r\n return response.data.infos.info || def;\r\n } catch (e) {\r\n return def;\r\n }\r\n }\r\n\r\n static isValidUrl(url) {\r\n const pattern = new RegExp('^(https?:\\\\/\\\\/)?' // protocol\r\n + '((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.?)+[a-z]{2,}|' // domain name\r\n + '((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))' // OR ip (v4) address\r\n + '(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*' // port and path\r\n + '(\\\\?[;&a-z\\\\d%_.~+=-]*)?' // query string\r\n + '(\\\\#[-a-z\\\\d_]*)?$', 'i'); // fragment locator\r\n\r\n return pattern.test(url);\r\n }\r\n\r\n static toQueryString(data, prefix) {\r\n const query = [];\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(data)\r\n .forEach((key) => {\r\n if (has.call(data, key)) {\r\n const k = prefix ? `${prefix}[${key}]` : key;\r\n let v = data[key];\r\n v = (v instanceof Date) ? v.toISOString() : v;\r\n query.push((v !== null && typeof v === 'object')\r\n ? Service.toQueryString(v, k)\r\n : `${encodeURIComponent(k)}=${encodeURIComponent(v)}`);\r\n }\r\n });\r\n\r\n return query.join('&')\r\n .replace(/%5B[0-9]+%5D=/g, '=');\r\n }\r\n}\r\n","export default {\r\n FILTER_DELIMITER: ';',\r\n FILTER_PAIR_DELIMITER: '=',\r\n encode(filter = {}) {\r\n const query = [];\r\n const has = Object.prototype.hasOwnProperty;\r\n Object.keys(filter).forEach((key) => {\r\n if (has.call(filter, key)) {\r\n query.push(`${key}${this.FILTER_PAIR_DELIMITER}${filter[key]}`);\r\n }\r\n });\r\n return query.join(this.FILTER_DELIMITER);\r\n },\r\n decode(query = '') {\r\n const filter = {};\r\n query.split(this.FILTER_DELIMITER).forEach((v) => {\r\n const [name, value] = v.split(this.FILTER_PAIR_DELIMITER);\r\n filter[name] = value;\r\n });\r\n return filter;\r\n },\r\n};\r\n","module.exports = require(\"regenerator-runtime\");\n","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * License entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products/licensees of a vendor) that identifies the license. Vendor can\r\n * assign this number when creating a license or let NetLicensing generate one. Read-only after corresponding creation\r\n * transaction status is set to closed.\r\n * @property string number\r\n *\r\n * Name for the licensed item. Set from license template on creation, if not specified explicitly.\r\n * @property string name\r\n *\r\n * If set to false, the license is disabled. License can be re-enabled, but as long as it is disabled,\r\n * the license is excluded from the validation process.\r\n * @property boolean active\r\n *\r\n * price for the license. If >0, it must always be accompanied by the currency specification. Read-only,\r\n * set from license template on creation.\r\n * @property float price\r\n *\r\n * specifies currency for the license price. Check data types to discover which currencies are\r\n * supported. Read-only, set from license template on creation.\r\n * @property string currency\r\n *\r\n * If set to true, this license is not shown in NetLicensing Shop as purchased license. Set from license\r\n * template on creation, if not specified explicitly.\r\n * @property boolean $hidden\r\n *\r\n * @property string startDate\r\n *\r\n * Arbitrary additional user properties of string type may be associated with each license. The name of user property\r\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, licenseeNumber,\r\n * licenseTemplateNumber.\r\n */\r\nexport default class License extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n price: 'float',\r\n hidden: 'boolean',\r\n parentfeature: 'string',\r\n timeVolume: 'int',\r\n startDate: 'date',\r\n inUse: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setHidden(hidden) {\r\n return this.setProperty('hidden', hidden);\r\n }\r\n\r\n getHidden(def) {\r\n return this.getProperty('hidden', def);\r\n }\r\n\r\n setParentfeature(parentfeature) {\r\n return this.setProperty('parentfeature', parentfeature);\r\n }\r\n\r\n getParentfeature(def) {\r\n return this.getProperty('parentfeature', def);\r\n }\r\n\r\n setTimeVolume(timeVolume) {\r\n return this.setProperty('timeVolume', timeVolume);\r\n }\r\n\r\n getTimeVolume(def) {\r\n return this.getProperty('timeVolume', def);\r\n }\r\n\r\n setStartDate(startDate) {\r\n return this.setProperty('startDate', startDate);\r\n }\r\n\r\n getStartDate(def) {\r\n return this.getProperty('startDate', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n\r\n getPrice(def) {\r\n return this.getProperty('price', def);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n}\r\n","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nexport default class LicenseTransactionJoin {\r\n constructor(transaction, license) {\r\n this.transaction = transaction;\r\n this.license = license;\r\n }\r\n\r\n setTransaction(transaction) {\r\n this.transaction = transaction;\r\n return this;\r\n }\r\n\r\n getTransaction(def) {\r\n return this.transaction || def;\r\n }\r\n\r\n setLicense(license) {\r\n this.license = license;\r\n return this;\r\n }\r\n\r\n getLicense(def) {\r\n return this.license || def;\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\n\r\n/**\r\n * Validation result map\r\n * @type {WeakMap}\r\n */\r\nconst vr = new WeakMap();\r\n\r\nexport default class ValidationResults {\r\n constructor() {\r\n vr.set(this, { validators: {} });\r\n }\r\n\r\n getValidators() {\r\n return { ...vr.get(this).validators };\r\n }\r\n\r\n setProductModuleValidation(productModuleNumber, productModuleValidation) {\r\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\r\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\r\n }\r\n\r\n vr.get(this).validators[productModuleNumber] = productModuleValidation;\r\n\r\n return this;\r\n }\r\n\r\n getProductModuleValidation(productModuleNumber) {\r\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\r\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\r\n }\r\n\r\n return vr.get(this).validators[productModuleNumber];\r\n }\r\n\r\n setTtl(ttl) {\r\n if (!CheckUtils.isValid(ttl) || typeof ttl === 'object') {\r\n throw new TypeError(`Bad ttl:${ttl}`);\r\n }\r\n vr.get(this).ttl = new Date(String(ttl));\r\n\r\n return this;\r\n }\r\n\r\n getTtl() {\r\n return (vr.get(this).ttl) ? new Date(vr.get(this).ttl) : undefined;\r\n }\r\n\r\n toString() {\r\n let data = 'ValidationResult [';\r\n\r\n const validators = this.getValidators();\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(validators).forEach((productModuleNumber) => {\r\n data += `ProductModule<${productModuleNumber}>`;\r\n if (has.call(validators, productModuleNumber)) {\r\n data += JSON.stringify(validators[productModuleNumber]);\r\n }\r\n });\r\n\r\n data += ']';\r\n\r\n return data;\r\n }\r\n}\r\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n var cookies = require('./../helpers/cookies');\n\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (requestData === undefined) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];\n var defaultToConfig2Keys = [\n 'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',\n 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath'\n ];\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {\n if (utils.isObject(config2[prop])) {\n config[prop] = utils.deepMerge(config1[prop], config2[prop]);\n } else if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (utils.isObject(config1[prop])) {\n config[prop] = utils.deepMerge(config1[prop]);\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys);\n\n var otherKeys = Object\n .keys(config2)\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n return config;\n};\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","export default class NlicError extends Error {\r\n constructor(...args) {\r\n super(...args);\r\n\r\n this.config = {};\r\n this.response = {};\r\n this.request = {};\r\n this.code = '';\r\n\r\n this.isNlicError = true;\r\n this.isAxiosError = true;\r\n }\r\n}\r\n","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","import itemToObject from './itemToObject';\r\nimport Licensee from '../entities/Licensee';\r\n\r\nexport default (item) => new Licensee(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Licensee entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the licensee. Vendor can assign this\r\n * number when creating a licensee or let NetLicensing generate one. Read-only after creation of the first license for\r\n * the licensee.\r\n * @property string number\r\n *\r\n * Licensee name.\r\n * @property string name\r\n *\r\n * If set to false, the licensee is disabled. Licensee can not obtain new licenses, and validation is\r\n * disabled (tbd).\r\n * @property boolean active\r\n *\r\n * Licensee Secret for licensee\r\n * @property string licenseeSecret\r\n *\r\n * Mark licensee for transfer.\r\n * @property boolean markedForTransfer\r\n *\r\n * Arbitrary additional user properties of string type may be associated with each licensee. The name of user property\r\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, productNumber\r\n *\r\n * @constructor\r\n */\r\nexport default class Licensee extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n licenseeSecret: 'string',\r\n markedForTransfer: 'boolean',\r\n inUse: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n */\r\n setLicenseeSecret(licenseeSecret) {\r\n return this.setProperty('licenseeSecret', licenseeSecret);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n */\r\n getLicenseeSecret(def) {\r\n return this.getProperty('licenseeSecret', def);\r\n }\r\n\r\n setMarkedForTransfer(markedForTransfer) {\r\n return this.setProperty('markedForTransfer', markedForTransfer);\r\n }\r\n\r\n getMarkedForTransfer(def) {\r\n return this.getProperty('markedForTransfer', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\n// Cast an attribute to a native JS type.\r\nexport default (key, value) => {\r\n switch (key.trim().toLowerCase()) {\r\n case 'str':\r\n case 'string':\r\n return String(value);\r\n case 'int':\r\n case 'integer':\r\n return parseInt(value, 10);\r\n case 'float':\r\n case 'double':\r\n return parseFloat(value);\r\n case 'bool':\r\n case 'boolean':\r\n switch (value) {\r\n case 'true':\r\n case 'TRUE':\r\n return true;\r\n case 'false':\r\n case 'FALSE':\r\n return false;\r\n default:\r\n return Boolean(value);\r\n }\r\n case 'date':\r\n return (value === 'now') ? 'now' : new Date(String(value));\r\n default:\r\n return value;\r\n }\r\n};\r\n","import itemToObject from './itemToObject';\r\nimport License from '../entities/License';\r\n\r\nexport default (item) => new License(itemToObject(item));\r\n","import itemToObject from './itemToObject';\r\nimport LicenseTemplate from '../entities/LicenseTemplate';\r\n\r\nexport default (item) => new LicenseTemplate(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * License template entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the license template. Vendor can\r\n * assign this number when creating a license template or let NetLicensing generate one.\r\n * Read-only after creation of the first license from this license template.\r\n * @property string number\r\n *\r\n * If set to false, the license template is disabled. Licensee can not obtain any new licenses off this\r\n * license template.\r\n * @property boolean active\r\n *\r\n * Name for the licensed item.\r\n * @property string name\r\n *\r\n * Type of licenses created from this license template. Supported types: \"FEATURE\", \"TIMEVOLUME\",\r\n * \"FLOATING\", \"QUANTITY\"\r\n * @property string licenseType\r\n *\r\n * Price for the license. If >0, it must always be accompanied by the currency specification.\r\n * @property double price\r\n *\r\n * Specifies currency for the license price. Check data types to discover which currencies are\r\n * supported.\r\n * @property string currency\r\n *\r\n * If set to true, every new licensee automatically gets one license out of this license template on\r\n * creation. Automatic licenses must have their price set to 0.\r\n * @property boolean automatic\r\n *\r\n * If set to true, this license template is not shown in NetLicensing Shop as offered for purchase.\r\n * @property boolean hidden\r\n *\r\n * If set to true, licenses from this license template are not visible to the end customer, but\r\n * participate in validation.\r\n * @property boolean hideLicenses\r\n *\r\n * If set to true, this license template defines grace period of validity granted after subscription expiration.\r\n * @property boolean gracePeriod\r\n *\r\n * Mandatory for 'TIMEVOLUME' license type.\r\n * @property integer timeVolume\r\n *\r\n * Time volume period for 'TIMEVOLUME' license type. Supported types: \"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"\r\n * @property integer timeVolumePeriod\r\n *\r\n * Mandatory for 'FLOATING' license type.\r\n * @property integer maxSessions\r\n *\r\n * Mandatory for 'QUANTITY' license type.\r\n * @property integer quantity\r\n *\r\n * @constructor\r\n */\r\nexport default class LicenseTemplate extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n licenseType: 'string',\r\n price: 'double',\r\n currency: 'string',\r\n automatic: 'boolean',\r\n hidden: 'boolean',\r\n hideLicenses: 'boolean',\r\n gracePeriod: 'boolean',\r\n timeVolume: 'int',\r\n timeVolumePeriod: 'string',\r\n maxSessions: 'int',\r\n quantity: 'int',\r\n inUse: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setLicenseType(licenseType) {\r\n return this.setProperty('licenseType', licenseType);\r\n }\r\n\r\n getLicenseType(def) {\r\n return this.getProperty('licenseType', def);\r\n }\r\n\r\n setPrice(price) {\r\n return this.setProperty('price', price);\r\n }\r\n\r\n getPrice(def) {\r\n return this.getProperty('price', def);\r\n }\r\n\r\n setCurrency(currency) {\r\n return this.setProperty('currency', currency);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n\r\n setAutomatic(automatic) {\r\n return this.setProperty('automatic', automatic);\r\n }\r\n\r\n getAutomatic(def) {\r\n return this.getProperty('automatic', def);\r\n }\r\n\r\n setHidden(hidden) {\r\n return this.setProperty('hidden', hidden);\r\n }\r\n\r\n getHidden(def) {\r\n return this.getProperty('hidden', def);\r\n }\r\n\r\n setHideLicenses(hideLicenses) {\r\n return this.setProperty('hideLicenses', hideLicenses);\r\n }\r\n\r\n getHideLicenses(def) {\r\n return this.getProperty('hideLicenses', def);\r\n }\r\n\r\n setTimeVolume(timeVolume) {\r\n return this.setProperty('timeVolume', timeVolume);\r\n }\r\n\r\n getTimeVolume(def) {\r\n return this.getProperty('timeVolume', def);\r\n }\r\n\r\n setTimeVolumePeriod(timeVolumePeriod) {\r\n return this.setProperty('timeVolumePeriod', timeVolumePeriod);\r\n }\r\n\r\n getTimeVolumePeriod(def) {\r\n return this.getProperty('timeVolumePeriod', def);\r\n }\r\n\r\n setMaxSessions(maxSessions) {\r\n return this.setProperty('maxSessions', maxSessions);\r\n }\r\n\r\n getMaxSessions(def) {\r\n return this.getProperty('maxSessions', def);\r\n }\r\n\r\n setQuantity(quantity) {\r\n return this.setProperty('quantity', quantity);\r\n }\r\n\r\n getQuantity(def) {\r\n return this.getProperty('quantity', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport PaymentMethod from '../entities/PaymentMethod';\r\n\r\nexport default (item) => new PaymentMethod(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * PaymentMethod entity used internally by NetLicensing.\r\n *\r\n * @property string number\r\n * @property boolean active\r\n *\r\n * @constructor\r\n */\r\nexport default class PaymentMethod extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n 'paypal.subject': 'string',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setPaypalSubject(paypalSubject) {\r\n return this.setProperty('paypal.subject', paypalSubject);\r\n }\r\n\r\n getPaypalSubject(def) {\r\n return this.getProperty('paypal.subject', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport ProductModule from '../entities/ProductModule';\r\n\r\nexport default (item) => new ProductModule(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Product module entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the product module. Vendor can assign\r\n * this number when creating a product module or let NetLicensing generate one. Read-only after creation of the first\r\n * licensee for the product.\r\n * @property string number\r\n *\r\n * If set to false, the product module is disabled. Licensees can not obtain any new licenses for this\r\n * product module.\r\n * @property boolean active\r\n *\r\n * Product module name that is visible to the end customers in NetLicensing Shop.\r\n * @property string name\r\n *\r\n * Licensing model applied to this product module. Defines what license templates can be\r\n * configured for the product module and how licenses for this product module are processed during validation.\r\n * @property string licensingModel\r\n *\r\n * Maximum checkout validity (days). Mandatory for 'Floating' licensing model.\r\n * @property integer maxCheckoutValidity\r\n *\r\n * Remaining time volume for yellow level. Mandatory for 'Rental' licensing model.\r\n * @property integer yellowThreshold\r\n *\r\n * Remaining time volume for red level. Mandatory for 'Rental' licensing model.\r\n * @property integer redThreshold\r\n *\r\n * License template. Mandatory for 'Try & Buy' licensing model. Supported types: \"TIMEVOLUME\", \"FEATURE\".\r\n * @property string licenseTemplate\r\n *\r\n * Licensee secret mode for product.Supported types: \"PREDEFINED\", \"CLIENT\"\r\n * @property boolean licenseeSecretMode\r\n *\r\n * @constructor\r\n */\r\nexport default class ProductModule extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n licensingModel: 'string',\r\n maxCheckoutValidity: 'int',\r\n yellowThreshold: 'int',\r\n redThreshold: 'int',\r\n licenseTemplate: 'string',\r\n inUse: 'boolean',\r\n licenseeSecretMode: 'string',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setLicensingModel(licensingModel) {\r\n return this.setProperty('licensingModel', licensingModel);\r\n }\r\n\r\n getLicensingModel(def) {\r\n return this.getProperty('licensingModel', def);\r\n }\r\n\r\n setMaxCheckoutValidity(maxCheckoutValidity) {\r\n return this.setProperty('maxCheckoutValidity', maxCheckoutValidity);\r\n }\r\n\r\n getMaxCheckoutValidity(def) {\r\n return this.getProperty('maxCheckoutValidity', def);\r\n }\r\n\r\n setYellowThreshold(yellowThreshold) {\r\n return this.setProperty('yellowThreshold', yellowThreshold);\r\n }\r\n\r\n getYellowThreshold(def) {\r\n return this.getProperty('yellowThreshold', def);\r\n }\r\n\r\n setRedThreshold(redThreshold) {\r\n return this.setProperty('redThreshold', redThreshold);\r\n }\r\n\r\n getRedThreshold(def) {\r\n return this.getProperty('redThreshold', def);\r\n }\r\n\r\n setLicenseTemplate(licenseTemplate) {\r\n return this.setProperty('licenseTemplate', licenseTemplate);\r\n }\r\n\r\n getLicenseTemplate(def) {\r\n return this.getProperty('licenseTemplate', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n\r\n setLicenseeSecretMode(licenseeSecretMode) {\r\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\r\n }\r\n\r\n getLicenseeSecretMode(def) {\r\n return this.getProperty('licenseeSecretMode', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Product from '../entities/Product';\r\n\r\nexport default (item) => {\r\n const object = itemToObject(item);\r\n\r\n const discounts = object.discount;\r\n\r\n delete object.discount;\r\n\r\n const product = new Product(object);\r\n product.setProductDiscounts(discounts);\r\n\r\n return product;\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\nimport ProductDiscount from './ProductDiscount';\r\n\r\n/**\r\n * The discounts map\r\n * @type {{}}\r\n * @private\r\n */\r\nconst discountsMap = new WeakMap();\r\n\r\n/**\r\n * An identifier that show if discounts was touched\r\n * @type {{}}\r\n * @private\r\n */\r\nconst discountsTouched = new WeakMap();\r\n\r\n/**\r\n * NetLicensing Product entity.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number that identifies the product. Vendor can assign this number when creating a product or\r\n * let NetLicensing generate one. Read-only after creation of the first licensee for the product.\r\n * @property string number\r\n *\r\n * If set to false, the product is disabled. No new licensees can be registered for the product,\r\n * existing licensees can not obtain new licenses.\r\n * @property boolean active\r\n *\r\n * Product name. Together with the version identifies the product for the end customer.\r\n * @property string name\r\n *\r\n * Product version. Convenience parameter, additional to the product name.\r\n * @property float version\r\n *\r\n * If set to 'true', non-existing licensees will be created at first validation attempt.\r\n * @property boolean licenseeAutoCreate\r\n *\r\n * Licensee secret mode for product.Supported types: \"DISABLED\", \"PREDEFINED\", \"CLIENT\"\r\n * @property boolean licenseeSecretMode\r\n *\r\n * Product description. Optional.\r\n * @property string description\r\n *\r\n * Licensing information. Optional.\r\n * @property string licensingInfo\r\n *\r\n * @property boolean inUse\r\n *\r\n * Arbitrary additional user properties of string type may be associated with each product. The name of user property\r\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted.\r\n *\r\n * @constructor\r\n */\r\nexport default class Product extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n version: 'string',\r\n description: 'string',\r\n licensingInfo: 'string',\r\n licenseeAutoCreate: 'boolean',\r\n licenseeSecretMode: 'string',\r\n inUse: 'boolean',\r\n },\r\n });\r\n\r\n discountsMap.set(this, []);\r\n discountsTouched.set(this, false);\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setVersion(version) {\r\n return this.setProperty('version', version);\r\n }\r\n\r\n getVersion(def) {\r\n return this.getProperty('version', def);\r\n }\r\n\r\n setLicenseeAutoCreate(licenseeAutoCreate) {\r\n return this.setProperty('licenseeAutoCreate', licenseeAutoCreate);\r\n }\r\n\r\n getLicenseeAutoCreate(def) {\r\n return this.getProperty('licenseeAutoCreate', def);\r\n }\r\n\r\n /**\r\n * @deprecated use ProductModule.setLicenseeSecretMode instead\r\n */\r\n setLicenseeSecretMode(licenseeSecretMode) {\r\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\r\n }\r\n\r\n /**\r\n * @deprecated use ProductModule.getLicenseeSecretMode instead\r\n */\r\n getLicenseeSecretMode(def) {\r\n return this.getProperty('licenseeSecretMode', def);\r\n }\r\n\r\n setDescription(description) {\r\n return this.setProperty('description', description);\r\n }\r\n\r\n getDescription(def) {\r\n return this.getProperty('description', def);\r\n }\r\n\r\n setLicensingInfo(licensingInfo) {\r\n return this.setProperty('licensingInfo', licensingInfo);\r\n }\r\n\r\n getLicensingInfo(def) {\r\n return this.getProperty('licensingInfo', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n\r\n /**\r\n * Add discount to product\r\n *\r\n * @param discount NetLicensing.ProductDiscount\r\n * @returns {NetLicensing.Product}\r\n */\r\n addDiscount(discount) {\r\n const discounts = discountsMap.get(this);\r\n\r\n let productDiscount = discount;\r\n\r\n if (typeof productDiscount !== 'string' && !(productDiscount instanceof ProductDiscount)) {\r\n productDiscount = new ProductDiscount(productDiscount);\r\n }\r\n\r\n discounts.push(productDiscount);\r\n discountsMap.set(this, discounts);\r\n discountsTouched.set(this, true);\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set discounts to product\r\n * @param discounts\r\n */\r\n setProductDiscounts(discounts) {\r\n discountsMap.set(this, []);\r\n discountsTouched.set(this, true);\r\n\r\n if (!discounts) return this;\r\n\r\n if (Array.isArray(discounts)) {\r\n discounts.forEach((discount) => {\r\n this.addDiscount(discount);\r\n });\r\n\r\n return this;\r\n }\r\n\r\n this.addDiscount(discounts);\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Get array of objects discounts\r\n * @returns {Array}\r\n */\r\n getProductDiscounts() {\r\n return Object.assign([], discountsMap.get(this));\r\n }\r\n\r\n asPropertiesMap() {\r\n const propertiesMap = super.asPropertiesMap();\r\n\r\n if (discountsMap.get(this).length) {\r\n propertiesMap.discount = discountsMap.get(this).map((discount) => discount.toString());\r\n }\r\n\r\n if (!propertiesMap.discount && discountsTouched.get(this)) {\r\n propertiesMap.discount = '';\r\n }\r\n\r\n return propertiesMap;\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nimport BaseEntity from './BaseEntity';\r\n\r\nexport default class ProductDiscount extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n totalPrice: 'float',\r\n currency: 'string',\r\n amountFix: 'float',\r\n amountPercent: 'int',\r\n },\r\n });\r\n }\r\n\r\n setTotalPrice(totalPrice) {\r\n return this.setProperty('totalPrice', totalPrice);\r\n }\r\n\r\n getTotalPrice(def) {\r\n return this.getProperty('totalPrice', def);\r\n }\r\n\r\n setCurrency(currency) {\r\n return this.setProperty('currency', currency);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n\r\n setAmountFix(amountFix) {\r\n return this.setProperty('amountFix', amountFix).removeProperty('amountPercent');\r\n }\r\n\r\n getAmountFix(def) {\r\n return this.getProperty('amountFix', def);\r\n }\r\n\r\n setAmountPercent(amountPercent) {\r\n return this.setProperty('amountPercent', amountPercent).removeProperty('amountFix');\r\n }\r\n\r\n getAmountPercent(def) {\r\n return this.getProperty('amountPercent', def);\r\n }\r\n\r\n toString() {\r\n const totalPrice = this.getTotalPrice();\r\n const currency = this.getCurrency();\r\n let amount = 0;\r\n\r\n if (this.getAmountFix(null)) amount = this.getAmountFix();\r\n if (this.getAmountPercent(null)) amount = `${this.getAmountPercent()}%`;\r\n\r\n return `${totalPrice};${currency};${amount}`;\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Token from '../entities/Token';\r\n\r\nexport default (item) => new Token(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Product module entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number\r\n * @property string number\r\n *\r\n * If set to false, the token is disabled.\r\n * @property boolean active\r\n *\r\n * Expiration Time\r\n * @property string expirationTime\r\n *\r\n * @property string vendorNumber\r\n *\r\n * Token type to be generated.\r\n * DEFAULT - default one-time token (will be expired after first request)\r\n * SHOP - shop token is used to redirect customer to the netlicensingShop(licenseeNumber is mandatory)\r\n * APIKEY - APIKey-token\r\n * @property string tokenType\r\n *\r\n * @property string licenseeNumber\r\n *\r\n * @constructor\r\n */\r\nexport default class Token extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n expirationTime: 'date',\r\n vendorNumber: 'string',\r\n tokenType: 'string',\r\n licenseeNumber: 'string',\r\n successURL: 'string',\r\n successURLTitle: 'string',\r\n cancelURL: 'string',\r\n cancelURLTitle: 'string',\r\n shopURL: 'string',\r\n },\r\n });\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setExpirationTime(expirationTime) {\r\n return this.setProperty('expirationTime', expirationTime);\r\n }\r\n\r\n getExpirationTime(def) {\r\n return this.getProperty('expirationTime', def);\r\n }\r\n\r\n setVendorNumber(vendorNumber) {\r\n return this.setProperty('vendorNumber', vendorNumber);\r\n }\r\n\r\n getVendorNumber(def) {\r\n return this.getProperty('vendorNumber', def);\r\n }\r\n\r\n setTokenType(tokenType) {\r\n return this.setProperty('tokenType', tokenType);\r\n }\r\n\r\n getTokenType(def) {\r\n return this.getProperty('tokenType', def);\r\n }\r\n\r\n setLicenseeNumber(licenseeNumber) {\r\n return this.setProperty('licenseeNumber', licenseeNumber);\r\n }\r\n\r\n getLicenseeNumber(def) {\r\n return this.getProperty('licenseeNumber', def);\r\n }\r\n\r\n setSuccessURL(successURL) {\r\n return this.setProperty('successURL', successURL);\r\n }\r\n\r\n getSuccessURL(def) {\r\n return this.getProperty('successURL', def);\r\n }\r\n\r\n setSuccessURLTitle(successURLTitle) {\r\n return this.setProperty('successURLTitle', successURLTitle);\r\n }\r\n\r\n getSuccessURLTitle(def) {\r\n return this.getProperty('successURLTitle', def);\r\n }\r\n\r\n setCancelURL(cancelURL) {\r\n return this.setProperty('cancelURL', cancelURL);\r\n }\r\n\r\n getCancelURL(def) {\r\n return this.getProperty('cancelURL', def);\r\n }\r\n\r\n setCancelURLTitle(cancelURLTitle) {\r\n return this.setProperty('cancelURLTitle', cancelURLTitle);\r\n }\r\n\r\n getCancelURLTitle(def) {\r\n return this.getProperty('cancelURLTitle', def);\r\n }\r\n\r\n getShopURL(def) {\r\n return this.getProperty('shopURL', def);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n * @alias setApiKeyRole\r\n * @param role\r\n * @returns {*}\r\n */\r\n setRole(role) {\r\n return this.setApiKeyRole(role);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n * @alias getApiKeyRole\r\n * @param def\r\n * @returns {*}\r\n */\r\n getRole(def) {\r\n return this.getApiKeyRole(def);\r\n }\r\n\r\n setApiKeyRole(apiKeyRole) {\r\n return this.setProperty('apiKeyRole', apiKeyRole);\r\n }\r\n\r\n getApiKeyRole(def) {\r\n return this.getProperty('apiKeyRole', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Transaction from '../entities/Transaction';\r\nimport License from '../entities/License';\r\nimport LicenseTransactionJoin from '../entities/LicenseTransactionJoin';\r\nimport Constants from '../Constants';\r\n\r\nexport default (item) => {\r\n const object = itemToObject(item);\r\n\r\n const { licenseTransactionJoin } = object;\r\n\r\n delete object.licenseTransactionJoin;\r\n\r\n const transaction = new Transaction(object);\r\n\r\n if (licenseTransactionJoin) {\r\n const joins = [];\r\n\r\n licenseTransactionJoin.forEach((v) => {\r\n const join = new LicenseTransactionJoin();\r\n join.setLicense(new License({ number: v[Constants.License.LICENSE_NUMBER] }));\r\n join.setTransaction(new Transaction({ number: v[Constants.Transaction.TRANSACTION_NUMBER] }));\r\n\r\n joins.push(join);\r\n });\r\n\r\n transaction.setLicenseTransactionJoins(joins);\r\n }\r\n\r\n return transaction;\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\nimport LicenseTransactionJoin from './LicenseTransactionJoin';\r\nimport License from './License';\r\n\r\n/**\r\n * Transaction entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the transaction. This number is\r\n * always generated by NetLicensing.\r\n * @property string number\r\n *\r\n * always true for transactions\r\n * @property boolean active\r\n *\r\n * Status of transaction. \"CANCELLED\", \"CLOSED\", \"PENDING\".\r\n * @property string status\r\n *\r\n * \"SHOP\". AUTO transaction for internal use only.\r\n * @property string source\r\n *\r\n * grand total for SHOP transaction (see source).\r\n * @property float grandTotal\r\n *\r\n * discount for SHOP transaction (see source).\r\n * @property float discount\r\n *\r\n * specifies currency for money fields (grandTotal and discount). Check data types to discover which\r\n * @property string currency\r\n *\r\n * Date created. Optional.\r\n * @property string dateCreated\r\n *\r\n * Date closed. Optional.\r\n * @property string dateClosed\r\n *\r\n * @constructor\r\n */\r\nexport default class Transaction extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n name: 'string',\r\n status: 'string',\r\n source: 'string',\r\n grandTotal: 'float',\r\n discount: 'float',\r\n currency: 'string',\r\n dateCreated: 'date',\r\n dateClosed: 'date',\r\n active: 'boolean',\r\n paymentMethod: 'string',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setStatus(status) {\r\n return this.setProperty('status', status);\r\n }\r\n\r\n getStatus(def) {\r\n return this.getProperty('status', def);\r\n }\r\n\r\n setSource(source) {\r\n return this.setProperty('source', source);\r\n }\r\n\r\n getSource(def) {\r\n return this.getProperty('source', def);\r\n }\r\n\r\n setGrandTotal(grandTotal) {\r\n return this.setProperty('grandTotal', grandTotal);\r\n }\r\n\r\n getGrandTotal(def) {\r\n return this.getProperty('grandTotal', def);\r\n }\r\n\r\n setDiscount(discount) {\r\n return this.setProperty('discount', discount);\r\n }\r\n\r\n getDiscount(def) {\r\n return this.getProperty('discount', def);\r\n }\r\n\r\n setCurrency(currency) {\r\n return this.setProperty('currency', currency);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n\r\n setDateCreated(dateCreated) {\r\n return this.setProperty('dateCreated', dateCreated);\r\n }\r\n\r\n getDateCreated(def) {\r\n return this.getProperty('dateCreated', def);\r\n }\r\n\r\n setDateClosed(dateClosed) {\r\n return this.setProperty('dateClosed', dateClosed);\r\n }\r\n\r\n getDateClosed(def) {\r\n return this.getProperty('dateClosed', def);\r\n }\r\n\r\n setPaymentMethod(paymentMethod) {\r\n return this.setProperty('paymentMethod', paymentMethod);\r\n }\r\n\r\n getPaymentMethod(def) {\r\n return this.getProperty('paymentMethod', def);\r\n }\r\n\r\n setActive() {\r\n return this.setProperty('active', true);\r\n }\r\n\r\n getLicenseTransactionJoins(def) {\r\n return this.getProperty('licenseTransactionJoins', def);\r\n }\r\n\r\n setLicenseTransactionJoins(licenseTransactionJoins) {\r\n return this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\r\n }\r\n\r\n setListLicenseTransactionJoin(properties) {\r\n if (!properties) return;\r\n\r\n const licenseTransactionJoins = this.getProperty('licenseTransactionJoins', []);\r\n const licenseTransactionJoin = new LicenseTransactionJoin();\r\n\r\n properties.forEach((property) => {\r\n if (property.name === 'licenseNumber') {\r\n licenseTransactionJoin.setLicense(new License({ number: property.value }));\r\n }\r\n\r\n if (property.name === 'transactionNumber') {\r\n licenseTransactionJoin.setTransaction(new Transaction({ number: property.value }));\r\n }\r\n });\r\n\r\n licenseTransactionJoins.push(licenseTransactionJoin);\r\n this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Country from '../entities/Country';\r\n\r\nexport default (item) => new Country(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Country entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * @property code - Unique code of country.\r\n *\r\n * @property name - Unique name of country\r\n *\r\n * @property vatPercent - Country vat.\r\n *\r\n * @property isEu - is country in EU.\r\n */\r\nexport default class Country extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n code: 'string',\r\n name: 'string',\r\n vatPercent: 'int',\r\n isEu: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setCode(code) {\r\n return this.setProperty('code', code);\r\n }\r\n\r\n getCode(def) {\r\n return this.getProperty('code', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setVatPercent(vat) {\r\n return this.setProperty('vatPercent', vat);\r\n }\r\n\r\n getVatPercent(def) {\r\n return this.getProperty('vatPercent', def);\r\n }\r\n\r\n setIsEu(isEu) {\r\n return this.setProperty('isEu', isEu);\r\n }\r\n\r\n getIsEu(def) {\r\n return this.getProperty('isEu', def);\r\n }\r\n}\r\n","// Constants\r\nimport Constants from './Constants';\r\n\r\n// VO\r\nimport Context from './vo/Context';\r\nimport Page from './vo/Page';\r\nimport ValidationParameters from './vo/ValidationParameters';\r\nimport ValidationResults from './vo/ValidationResults';\r\n\r\n// Services\r\nimport Service from './services/Service';\r\nimport LicenseeService from './services/LicenseeService';\r\nimport LicenseService from './services/LicenseService';\r\nimport LicenseTemplateService from './services/LicenseTemplateService';\r\nimport PaymentMethodService from './services/PaymentMethodService';\r\nimport ProductModuleService from './services/ProductModuleService';\r\nimport ProductService from './services/ProductService';\r\nimport TokenService from './services/TokenService';\r\nimport TransactionService from './services/TransactionService';\r\nimport UtilityService from './services/UtilityService';\r\n\r\n// Entities\r\nimport BaseEntity from './entities/BaseEntity';\r\nimport Country from './entities/Country';\r\nimport License from './entities/License';\r\nimport Licensee from './entities/Licensee';\r\nimport LicenseTemplate from './entities/LicenseTemplate';\r\nimport PaymentMethod from './entities/PaymentMethod';\r\nimport Product from './entities/Product';\r\nimport ProductDiscount from './entities/ProductDiscount';\r\nimport ProductModule from './entities/ProductModule';\r\nimport Token from './entities/Token';\r\nimport Transaction from './entities/Transaction';\r\nimport LicenseTransactionJoin from './entities/LicenseTransactionJoin';\r\n\r\n// Converters\r\nimport itemToCountry from './converters/itemToCountry';\r\nimport itemToLicense from './converters/itemToLicense';\r\nimport itemToLicensee from './converters/itemToLicensee';\r\nimport itemToLicenseTemplate from './converters/itemToLicenseTemplate';\r\nimport itemToObject from './converters/itemToObject';\r\nimport itemToPaymentMethod from './converters/itemToPaymentMethod';\r\nimport itemToProduct from './converters/itemToProduct';\r\nimport itemToProductModule from './converters/itemToProductModule';\r\nimport itemToToken from './converters/itemToToken';\r\nimport itemToTransaction from './converters/itemToTransaction';\r\n\r\n// Utils\r\nimport CastsUtils from './util/CastsUtils';\r\nimport CheckUtils from './util/CheckUtils';\r\nimport FilterUtils from './util/FilterUtils';\r\n\r\n// Errors\r\nimport NlicError from './errors/NlicError';\r\n\r\n// Create the default instance to be exported\r\nconst NetLicensing = {\r\n // Constants\r\n Constants,\r\n\r\n // Expose VO\r\n Context,\r\n Page,\r\n ValidationParameters,\r\n ValidationResults,\r\n\r\n // Expose Services\r\n Service,\r\n LicenseeService,\r\n LicenseService,\r\n LicenseTemplateService,\r\n PaymentMethodService,\r\n ProductModuleService,\r\n ProductService,\r\n TokenService,\r\n TransactionService,\r\n UtilityService,\r\n\r\n // Expose Entities\r\n BaseEntity,\r\n Country,\r\n License,\r\n Licensee,\r\n LicenseTemplate,\r\n PaymentMethod,\r\n Product,\r\n ProductDiscount,\r\n ProductModule,\r\n Token,\r\n Transaction,\r\n LicenseTransactionJoin,\r\n\r\n // Expose Converters\r\n itemToCountry,\r\n itemToLicense,\r\n itemToLicensee,\r\n itemToLicenseTemplate,\r\n itemToObject,\r\n itemToPaymentMethod,\r\n itemToProduct,\r\n itemToProductModule,\r\n itemToToken,\r\n itemToTransaction,\r\n\r\n // Expose Utils\r\n CastsUtils,\r\n CheckUtils,\r\n FilterUtils,\r\n\r\n // Errors\r\n NlicError,\r\n};\r\n\r\nmodule.exports = NetLicensing;\r\n\r\n// Allow use of default import syntax in TypeScript\r\nmodule.exports.default = NetLicensing;\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nimport Constants from '../Constants';\r\nimport CheckUtils from '../util/CheckUtils';\r\n\r\n/**\r\n * The context values.\r\n * @type {{}}\r\n * @private\r\n */\r\nconst valuesMap = new WeakMap();\r\n\r\n/**\r\n * List of values that was defined\r\n * @type {{}}\r\n * @private\r\n */\r\nconst definedMap = new WeakMap();\r\n\r\n/**\r\n * Context defaults\r\n * @type {{baseUrl: string, securityMode}}\r\n * @private\r\n */\r\nconst defaultsMap = new WeakMap();\r\n\r\nexport default class Context {\r\n constructor(values) {\r\n defaultsMap.set(this, {\r\n baseUrl: 'https://go.netlicensing.io/core/v2/rest',\r\n securityMode: Constants.BASIC_AUTHENTICATION,\r\n });\r\n\r\n valuesMap.set(this, {});\r\n\r\n definedMap.set(this, {});\r\n\r\n this.setValues({ ...defaultsMap.get(this), ...values });\r\n }\r\n\r\n setBaseUrl(baseUrl) {\r\n return this.setValue('baseUrl', baseUrl);\r\n }\r\n\r\n getBaseUrl(def) {\r\n return this.getValue('baseUrl', def);\r\n }\r\n\r\n setUsername(username) {\r\n return this.setValue('username', username);\r\n }\r\n\r\n getUsername(def) {\r\n return this.getValue('username', def);\r\n }\r\n\r\n setPassword(password) {\r\n return this.setValue('password', password);\r\n }\r\n\r\n getPassword(def) {\r\n return this.getValue('password', def);\r\n }\r\n\r\n setApiKey(apiKey) {\r\n return this.setValue('apiKey', apiKey);\r\n }\r\n\r\n getApiKey(def) {\r\n return this.getValue('apiKey', def);\r\n }\r\n\r\n setSecurityMode(securityMode) {\r\n return this.setValue('securityMode', securityMode);\r\n }\r\n\r\n getSecurityMode(def) {\r\n return this.getValue('securityMode', def);\r\n }\r\n\r\n setVendorNumber(vendorNumber) {\r\n return this.setValue('vendorNumber', vendorNumber);\r\n }\r\n\r\n getVendorNumber(def) {\r\n return this.getValue('vendorNumber', def);\r\n }\r\n\r\n /**\r\n * Set a given values on the context.\r\n * @param key\r\n * @param value\r\n * @returns {Context}\r\n */\r\n setValue(key, value) {\r\n // check values\r\n if (!CheckUtils.isValid(key) || typeof key === 'object') throw new Error(`Bad value key:${key}`);\r\n if (!CheckUtils.isValid(value)) throw new Error(`Value ${key} has wrong value${value}`);\r\n\r\n // define keys\r\n this.define(key);\r\n\r\n let copedValue = value;\r\n\r\n if (typeof value === 'object' && value !== null) {\r\n copedValue = (Array.isArray(value)) ? Object.assign([], value) : ({ ...value });\r\n }\r\n\r\n const values = valuesMap.get(this);\r\n values[key] = copedValue;\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the array of context values.\r\n * @param values\r\n * @returns {Context}\r\n */\r\n setValues(values) {\r\n this.removeValues();\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(values).forEach((key) => {\r\n if (has.call(values, key)) {\r\n this.setValue(key, values[key]);\r\n }\r\n });\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Get an value from the context.\r\n * @param key\r\n * @param def\r\n * @returns {*}\r\n */\r\n getValue(key, def) {\r\n return (key in valuesMap.get(this))\r\n ? valuesMap.get(this)[key]\r\n : def;\r\n }\r\n\r\n /**\r\n * Get all of the current value on the context.\r\n */\r\n getValues() {\r\n return { ...valuesMap.get(this) };\r\n }\r\n\r\n /**\r\n * Remove value\r\n * @param key\r\n * @returns {Context}\r\n */\r\n removeValue(key) {\r\n const values = valuesMap.get(this);\r\n delete values[key];\r\n\r\n this.removeDefine(key);\r\n return this;\r\n }\r\n\r\n /**\r\n * Remove values\r\n * @param keys\r\n */\r\n removeValues(keys) {\r\n const keysAr = keys || Object.keys(valuesMap.get(this));\r\n keysAr.forEach((key) => this.removeValue(key));\r\n }\r\n\r\n /**\r\n * Define value getter and setter\r\n * @param key\r\n * @param onlyGetter\r\n * @private\r\n */\r\n define(key, onlyGetter) {\r\n if (this.hasDefine(key)) return;\r\n\r\n if (!CheckUtils.isValid(key) || typeof property === 'object') {\r\n throw new TypeError(`Bad value name:${key}`);\r\n }\r\n\r\n const self = this;\r\n\r\n // delete property\r\n delete this[key];\r\n\r\n const descriptors = {\r\n enumerable: true,\r\n configurable: true,\r\n get() {\r\n return self.getValue(key);\r\n },\r\n };\r\n\r\n if (!onlyGetter) {\r\n descriptors.set = (value) => self.setValue(key, value);\r\n }\r\n\r\n const defined = definedMap.get(this);\r\n defined[key] = true;\r\n\r\n Object.defineProperty(this, key, descriptors);\r\n }\r\n\r\n /**\r\n * Check if value has defined\r\n * @param key\r\n * @private\r\n */\r\n hasDefine(key) {\r\n return Boolean(definedMap.get(this)[key]);\r\n }\r\n\r\n /**\r\n * Remove value getter and setter\r\n * @param key\r\n * @private\r\n */\r\n removeDefine(key) {\r\n if (!this.hasDefine(key)) return;\r\n\r\n const defined = definedMap.get(this);\r\n delete defined[key];\r\n\r\n delete this[key];\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\n/**\r\n * Validation parameters map\r\n *\r\n * @type {WeakMap}\r\n */\r\nconst vpMap = new WeakMap();\r\n\r\nexport default class ValidationParameters {\r\n constructor() {\r\n vpMap.set(this, { parameters: {} });\r\n }\r\n\r\n /**\r\n * Sets the target product\r\n *\r\n * optional productNumber, must be provided in case licensee auto-create is enabled\r\n * @param productNumber\r\n * @returns {ValidationParameters}\r\n */\r\n setProductNumber(productNumber) {\r\n vpMap.get(this).productNumber = productNumber;\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the target product\r\n * @returns {*}\r\n */\r\n getProductNumber() {\r\n return vpMap.get(this).productNumber;\r\n }\r\n\r\n /**\r\n * Sets the name for the new licensee\r\n *\r\n * optional human-readable licensee name in case licensee will be auto-created. This parameter must not\r\n * be the name, but can be used to store any other useful string information with new licensees, up to\r\n * 1000 characters.\r\n * @param licenseeName\r\n * @returns {NetLicensing.ValidationParameters}\r\n */\r\n setLicenseeName(licenseeName) {\r\n vpMap.get(this).licenseeName = licenseeName;\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the licensee name\r\n * @returns {*}\r\n */\r\n getLicenseeName() {\r\n return vpMap.get(this).licenseeName;\r\n }\r\n\r\n /**\r\n * Sets the licensee secret\r\n *\r\n * licensee secret stored on the client side. Refer to Licensee Secret documentation for details.\r\n * @param licenseeSecret\r\n * @returns {ValidationParameters}\r\n * @deprecated use 'NodeLocked' licensingModel instead\r\n */\r\n setLicenseeSecret(licenseeSecret) {\r\n vpMap.get(this).licenseeSecret = licenseeSecret;\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the licensee secret\r\n * @returns {*}\r\n * @deprecated use 'NodeLocked' licensingModel instead\r\n */\r\n getLicenseeSecret() {\r\n return vpMap.get(this).licenseeSecret;\r\n }\r\n\r\n /**\r\n * Get validation parameters\r\n * @returns {*}\r\n */\r\n getParameters() {\r\n return { ...vpMap.get(this).parameters };\r\n }\r\n\r\n getProductModuleValidationParameters(productModuleNumber) {\r\n return { ...vpMap.get(this).parameters[productModuleNumber] };\r\n }\r\n\r\n setProductModuleValidationParameters(productModuleNumber, productModuleParameters) {\r\n const { parameters } = vpMap.get(this);\r\n\r\n if (parameters[productModuleNumber] === undefined || !Object.keys(parameters[productModuleNumber]).length) {\r\n parameters[productModuleNumber] = {};\r\n }\r\n\r\n parameters[productModuleNumber] = Object.assign(parameters[productModuleNumber], productModuleParameters);\r\n\r\n return this;\r\n }\r\n}\r\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","(function () {\n \"use strict\";\n\n function btoa(str) {\n var buffer;\n\n if (str instanceof Buffer) {\n buffer = str;\n } else {\n buffer = Buffer.from(str.toString(), 'binary');\n }\n\n return buffer.toString('base64');\n }\n\n module.exports = btoa;\n}());\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = require('base64-js')\nvar ieee754 = require('ieee754')\nvar isArray = require('isarray')\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n return arr.foo() === 42 && // typed array instances can be augmented\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length)\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length)\n }\n that.length = length\n }\n\n return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype\n return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true\n })\n }\n}\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n}\n\nfunction alloc (that, size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n assertSize(size)\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0\n }\n }\n return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0\n that = createBuffer(that, length)\n\n var actual = that.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual)\n }\n\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n that = createBuffer(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array)\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset)\n } else {\n array = new Uint8Array(array, byteOffset, length)\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array)\n }\n return that\n}\n\nfunction fromObject (that, obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n that = createBuffer(that, len)\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len)\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string\n }\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return ''\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!Buffer.isBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end)\n newBuf.__proto__ = Buffer.prototype\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start]\n }\n }\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if (code < 256) {\n val = code\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString())\n var len = bytes.length\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\nfunction isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n}\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n for (var i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(\n uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)\n ))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","exports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeFunction = require(\"./isNativeFunction\");\n\nvar construct = require(\"./construct\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;","function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport ValidationResults from '../vo/ValidationResults';\r\nimport itemToLicensee from '../converters/itemToLicensee';\r\nimport Page from '../vo/Page';\r\nimport itemToObject from '../converters/itemToObject';\r\n\r\n/**\r\n * JS representation of the Licensee Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/licensee-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new licensee object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#create-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent product to which the new licensee is to be added\r\n * @param productNumber string\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param licensee NetLicensing.Licensee\r\n *\r\n * return the newly created licensee object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, productNumber, licensee) {\r\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\r\n\r\n licensee.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Licensee.ENDPOINT_PATH, licensee.asPropertiesMap());\r\n\r\n return itemToLicensee(item);\r\n },\r\n\r\n /**\r\n * Gets licensee by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#get-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the licensee number\r\n * @param number string\r\n *\r\n * return the licensee in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToLicensee(item);\r\n },\r\n\r\n /**\r\n * Returns all licensees of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#licensees-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of licensees (of all products) or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.Licensee.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToLicensee(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates licensee properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#update-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * licensee number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param licensee NetLicensing.Licensee\r\n *\r\n * return updated licensee in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, licensee) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, licensee.asPropertiesMap());\r\n\r\n return itemToLicensee(item);\r\n },\r\n\r\n /**\r\n * Deletes licensee.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#delete-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * licensee number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service\r\n .delete(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n\r\n /**\r\n * Validates active licenses of the licensee. See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#validate-licensee\r\n *\r\n * @param context NetLicensing.Context\r\n *\r\n * licensee number\r\n * @param number string\r\n *\r\n * optional validation parameters. See ValidationParameters and licensing model documentation for\r\n * details.\r\n * @param validationParameters NetLicensing.ValidationParameters.\r\n *\r\n * @returns {ValidationResults}\r\n */\r\n async validate(context, number, validationParameters) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = {};\r\n\r\n if (validationParameters.getProductNumber()) {\r\n queryParams.productNumber = validationParameters.getProductNumber();\r\n }\r\n\r\n if (validationParameters.getLicenseeName()) {\r\n queryParams.licenseeName = validationParameters.getLicenseeName();\r\n }\r\n\r\n if (validationParameters.getLicenseeSecret()) {\r\n queryParams.licenseeSecret = validationParameters.getLicenseeSecret();\r\n }\r\n\r\n let pmIndex = 0;\r\n const parameters = validationParameters.getParameters();\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(parameters).forEach((productModuleName) => {\r\n queryParams[`${Constants.ProductModule.PRODUCT_MODULE_NUMBER}${pmIndex}`] = productModuleName;\r\n if (!has.call(parameters, productModuleName)) return;\r\n\r\n const parameter = parameters[productModuleName];\r\n\r\n Object.keys(parameter).forEach((key) => {\r\n if (has.call(parameter, key)) {\r\n queryParams[key + pmIndex] = parameter[key];\r\n }\r\n });\r\n pmIndex += 1;\r\n });\r\n\r\n const { data: { items: { item: items }, ttl } } = await Service.post(\r\n context,\r\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_VALIDATE}`,\r\n queryParams,\r\n );\r\n\r\n const validationResults = new ValidationResults();\r\n validationResults.setTtl(ttl);\r\n\r\n items.forEach((v) => {\r\n const item = itemToObject(v);\r\n validationResults.setProductModuleValidation(item[Constants.ProductModule.PRODUCT_MODULE_NUMBER], item);\r\n });\r\n\r\n return validationResults;\r\n },\r\n\r\n\r\n /**\r\n * Transfer licenses between licensees.\r\n * @see https://netlicensing.io/wiki/licensee-services#transfer-licenses\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the number of the licensee receiving licenses\r\n * @param number string\r\n *\r\n * the number of the licensee delivering licenses\r\n * @param sourceLicenseeNumber string\r\n *\r\n * @returns {Promise}\r\n */\r\n transfer(context, number, sourceLicenseeNumber) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n CheckUtils.paramNotEmpty(sourceLicenseeNumber, Constants.Licensee.SOURCE_LICENSEE_NUMBER);\r\n\r\n const queryParams = { sourceLicenseeNumber };\r\n\r\n return Service\r\n .post(\r\n context,\r\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_TRANSFER}`,\r\n queryParams,\r\n );\r\n },\r\n};\r\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) {\n return;\n }\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nmodule.exports = _nonIterableRest;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToLicense from '../converters/itemToLicense';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the License Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/license-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new license object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#create-license\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent licensee to which the new license is to be added\r\n * @param licenseeNumber string\r\n *\r\n * license template that the license is created from\r\n * @param licenseTemplateNumber string\r\n *\r\n * For privileged logins specifies transaction for the license creation. For regular logins new\r\n * transaction always created implicitly, and the operation will be in a separate transaction.\r\n * Transaction is generated with the provided transactionNumber, or, if transactionNumber is null, with\r\n * auto-generated number.\r\n * @param transactionNumber null|string\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param license NetLicensing.License\r\n *\r\n * return the newly created license object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, licenseeNumber, licenseTemplateNumber, transactionNumber, license) {\r\n CheckUtils.paramNotEmpty(licenseeNumber, Constants.Licensee.LICENSEE_NUMBER);\r\n CheckUtils.paramNotEmpty(licenseTemplateNumber, Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER);\r\n\r\n license.setProperty(Constants.Licensee.LICENSEE_NUMBER, licenseeNumber);\r\n license.setProperty(Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER, licenseTemplateNumber);\r\n\r\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.License.ENDPOINT_PATH, license.asPropertiesMap());\r\n\r\n return itemToLicense(item);\r\n },\r\n\r\n\r\n /**\r\n * Gets license by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#get-license\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the license number\r\n * @param number string\r\n *\r\n * return the license in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.License.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToLicense(item);\r\n },\r\n\r\n /**\r\n * Returns licenses of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#licenses-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * return array of licenses (of all products) or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.License.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToLicense(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates license properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#update-license\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license number\r\n * @param number string\r\n *\r\n * transaction for the license update. Created implicitly if transactionNumber is null. In this case the\r\n * operation will be in a separate transaction.\r\n * @param transactionNumber string|null\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param license NetLicensing.License\r\n *\r\n * return updated license in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, transactionNumber, license) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.License.ENDPOINT_PATH}/${number}`, license.asPropertiesMap());\r\n\r\n return itemToLicense(item);\r\n },\r\n\r\n /**\r\n * Deletes license.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#delete-license\r\n *\r\n * When any license is deleted, corresponding transaction is created automatically.\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service\r\n .delete(context, `${Constants.License.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToLicenseTemplate from '../converters/itemToLicenseTemplate';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/license-template-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new license template object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#create-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent product module to which the new license template is to be added\r\n * @param productModuleNumber\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param licenseTemplate NetLicensing.LicenseTemplate\r\n *\r\n * the newly created license template object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, productModuleNumber, licenseTemplate) {\r\n CheckUtils.paramNotEmpty(productModuleNumber, Constants.ProductModule.PRODUCT_MODULE_NUMBER);\r\n\r\n licenseTemplate.setProperty(Constants.ProductModule.PRODUCT_MODULE_NUMBER, productModuleNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.LicenseTemplate.ENDPOINT_PATH, licenseTemplate.asPropertiesMap());\r\n\r\n return itemToLicenseTemplate(item);\r\n },\r\n\r\n /**\r\n * Gets license template by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#get-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the license template number\r\n * @param number string\r\n *\r\n * return the license template object in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToLicenseTemplate(item);\r\n },\r\n\r\n /**\r\n * Returns all license templates of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#license-templates-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of license templates (of all products/modules) or null/empty list if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.LicenseTemplate.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToLicenseTemplate(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates license template properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#update-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license template number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param licenseTemplate NetLicensing.LicenseTemplate\r\n *\r\n * updated license template in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, licenseTemplate) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const path = `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`;\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, path, licenseTemplate.asPropertiesMap());\r\n\r\n return itemToLicenseTemplate(item);\r\n },\r\n\r\n /**\r\n * Deletes license template.See NetLicensingAPI JavaDoc for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#delete-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license template number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service\r\n .delete(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToPaymentMethod from '../converters/itemToPaymentMethod';\r\nimport Page from '../vo/Page';\r\n\r\nexport default {\r\n /**\r\n * Gets payment method by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/payment-method-services#get-payment-method\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the payment method number\r\n * @param number string\r\n *\r\n * return the payment method in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToPaymentMethod(item);\r\n },\r\n\r\n /**\r\n * Returns payment methods of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/payment-method-services#payment-methods-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of payment method entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.PaymentMethod.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToPaymentMethod(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates payment method properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/payment-method-services#update-payment-method\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the payment method number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param paymentMethod NetLicensing.PaymentMethod\r\n *\r\n * return updated payment method in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, paymentMethod) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const path = `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`;\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, path, paymentMethod.asPropertiesMap());\r\n\r\n return itemToPaymentMethod(item);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToProductModule from '../converters/itemToProductModule';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/product-module-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new product module object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#create-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent product to which the new product module is to be added\r\n * @param productNumber string\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param productModule NetLicensing.ProductModule\r\n *\r\n * the newly created product module object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, productNumber, productModule) {\r\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\r\n\r\n productModule.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.ProductModule.ENDPOINT_PATH, productModule.asPropertiesMap());\r\n\r\n return itemToProductModule(item);\r\n },\r\n\r\n /**\r\n * Gets product module by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#get-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the product module number\r\n * @param number string\r\n *\r\n * return the product module object in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToProductModule(item);\r\n },\r\n\r\n /**\r\n * Returns products of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#product-modules-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of product modules entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service.get(context, Constants.ProductModule.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToProductModule(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates product module properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#update-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product module number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param productModule NetLicensing.ProductModule\r\n *\r\n * updated product module in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, productModule) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, productModule.asPropertiesMap());\r\n\r\n return itemToProductModule(item);\r\n },\r\n\r\n /**\r\n * Deletes product module.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#delete-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product module number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service.delete(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Service from './Service';\r\nimport Constants from '../Constants';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToProduct from '../converters/itemToProduct';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the Product Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/product-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new product with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#create-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param product NetLicensing.Product\r\n *\r\n * return the newly created product object in promise\r\n * @returns {Promise}\r\n */\r\n\r\n async create(context, product) {\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Product.ENDPOINT_PATH, product.asPropertiesMap());\r\n return itemToProduct(item);\r\n },\r\n\r\n /**\r\n * Gets product by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#get-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the product number\r\n * @param number string\r\n *\r\n * return the product object in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Product.ENDPOINT_PATH}/${number}`);\r\n return itemToProduct(item);\r\n },\r\n\r\n /**\r\n * Returns products of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#products-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of product entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) throw new TypeError(`filter has bad value ${filter}`);\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service.get(context, Constants.Product.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToProduct(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates product properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#update-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param product NetLicensing.Product\r\n *\r\n * updated product in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, product) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, product.asPropertiesMap());\r\n\r\n return itemToProduct(item);\r\n },\r\n\r\n /**\r\n * Deletes product.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#delete-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service.delete(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","var superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToToken from '../converters/itemToToken';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the Token Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/token-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new token.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#create-token\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param token NetLicensing.Token\r\n *\r\n * return created token in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, token) {\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Token.ENDPOINT_PATH, token.asPropertiesMap());\r\n\r\n return itemToToken(item);\r\n },\r\n\r\n /**\r\n * Gets token by its number..See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#get-token\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the token number\r\n * @param number\r\n *\r\n * return the token in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToToken(item);\r\n },\r\n\r\n /**\r\n * Returns tokens of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#tokens-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of token entities or empty array if nothing found.\r\n * @return array\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.Token.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToToken(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Delete token by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#delete-token\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the token number\r\n * @param number string\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n return Service\r\n .delete(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToTransaction from '../converters/itemToTransaction';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the Transaction Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/transaction-services\r\n *\r\n * Transaction is created each time change to LicenseService licenses happens. For instance licenses are\r\n * obtained by a licensee, licenses disabled by vendor, licenses deleted, etc. Transaction is created no matter what\r\n * source has initiated the change to licenses: it can be either a direct purchase of licenses by a licensee via\r\n * NetLicensing Shop, or licenses can be given to a licensee by a vendor. Licenses can also be assigned implicitly by\r\n * NetLicensing if it is defined so by a license model (e.g. evaluation license may be given automatically). All these\r\n * events are reflected in transactions. Of all the transaction handling routines only read-only routines are exposed to\r\n * the public API, as transactions are only allowed to be created and modified by NetLicensing internally.\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new transaction object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#create-transaction\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param transaction NetLicensing.Transaction\r\n *\r\n * return the newly created transaction object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, transaction) {\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Transaction.ENDPOINT_PATH, transaction.asPropertiesMap());\r\n\r\n return itemToTransaction(item);\r\n },\r\n\r\n /**\r\n * Gets transaction by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#get-transaction\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the transaction number\r\n * @param number string\r\n *\r\n * return the transaction in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToTransaction(item);\r\n },\r\n\r\n /**\r\n * Returns all transactions of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#transactions-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string\r\n *\r\n * array of transaction entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.Transaction.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToTransaction(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates transaction properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#update-transaction\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * transaction number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param transaction NetLicensing.Transaction\r\n *\r\n * return updated transaction in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, transaction) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`, transaction.asPropertiesMap());\r\n\r\n return itemToTransaction(item);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToObject from '../converters/itemToObject';\r\nimport Page from '../vo/Page';\r\nimport itemToCountry from '../converters/itemToCountry';\r\n\r\n/**\r\n * JS representation of the Utility Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/utility-services\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Returns all license types. See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/utility-services#license-types-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * array of available license types or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async listLicenseTypes(context) {\r\n const { data } = await Service\r\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSE_TYPES}`);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToObject(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Returns all license models. See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/utility-services#licensing-models-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * array of available license models or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async listLicensingModels(context) {\r\n const { data } = await Service\r\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSING_MODELS}`);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToObject(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Returns all countries.\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter\r\n *\r\n * collection of available countries or null/empty list if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async listCountries(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(\r\n context,\r\n `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_COUNTRIES}`,\r\n queryParams,\r\n );\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToCountry(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n};\r\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://NetLicensing/webpack/universalModuleDefinition","webpack://NetLicensing/webpack/bootstrap","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/createClass.js","webpack://NetLicensing/./src/Constants.js","webpack://NetLicensing/./src/util/CheckUtils.js","webpack://NetLicensing/./node_modules/axios/lib/utils.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://NetLicensing/./src/converters/itemToObject.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/inherits.js","webpack://NetLicensing/./src/entities/BaseEntity.js","webpack://NetLicensing/./src/vo/Page.js","webpack://NetLicensing/./src/services/Service.js","webpack://NetLicensing/./src/util/FilterUtils.js","webpack://NetLicensing/./node_modules/@babel/runtime/regenerator/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/asyncToGenerator.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/typeof.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://NetLicensing/./src/entities/License.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://NetLicensing/./src/entities/LicenseTransactionJoin.js","webpack://NetLicensing/./src/vo/ValidationResults.js","webpack://NetLicensing/./node_modules/process/browser.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/bind.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/buildURL.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/isCancel.js","webpack://NetLicensing/./node_modules/axios/lib/defaults.js","webpack://NetLicensing/./node_modules/axios/lib/adapters/xhr.js","webpack://NetLicensing/./node_modules/axios/lib/core/createError.js","webpack://NetLicensing/./node_modules/axios/lib/core/mergeConfig.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/Cancel.js","webpack://NetLicensing/./src/errors/NlicError.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://NetLicensing/./src/converters/itemToLicensee.js","webpack://NetLicensing/./src/entities/Licensee.js","webpack://NetLicensing/./src/util/CastsUtils.js","webpack://NetLicensing/./src/converters/itemToLicense.js","webpack://NetLicensing/./src/converters/itemToLicenseTemplate.js","webpack://NetLicensing/./src/entities/LicenseTemplate.js","webpack://NetLicensing/./src/converters/itemToPaymentMethod.js","webpack://NetLicensing/./src/entities/PaymentMethod.js","webpack://NetLicensing/./src/converters/itemToProductModule.js","webpack://NetLicensing/./src/entities/ProductModule.js","webpack://NetLicensing/./src/converters/itemToProduct.js","webpack://NetLicensing/./src/entities/Product.js","webpack://NetLicensing/./src/entities/ProductDiscount.js","webpack://NetLicensing/./src/converters/itemToToken.js","webpack://NetLicensing/./src/entities/Token.js","webpack://NetLicensing/./src/converters/itemToTransaction.js","webpack://NetLicensing/./src/entities/Transaction.js","webpack://NetLicensing/./src/converters/itemToCountry.js","webpack://NetLicensing/./src/entities/Country.js","webpack://NetLicensing/./src/index.js","webpack://NetLicensing/./src/vo/Context.js","webpack://NetLicensing/./src/vo/ValidationParameters.js","webpack://NetLicensing/./node_modules/axios/index.js","webpack://NetLicensing/./node_modules/axios/lib/axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/Axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/InterceptorManager.js","webpack://NetLicensing/./node_modules/axios/lib/core/dispatchRequest.js","webpack://NetLicensing/./node_modules/axios/lib/core/transformData.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://NetLicensing/./node_modules/axios/lib/core/settle.js","webpack://NetLicensing/./node_modules/axios/lib/core/enhanceError.js","webpack://NetLicensing/./node_modules/axios/lib/core/buildFullPath.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/combineURLs.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/cookies.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/CancelToken.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/spread.js","webpack://NetLicensing/./node_modules/btoa/index.js","webpack://NetLicensing/./node_modules/buffer/index.js","webpack://NetLicensing/(webpack)/buildin/global.js","webpack://NetLicensing/./node_modules/base64-js/index.js","webpack://NetLicensing/./node_modules/ieee754/index.js","webpack://NetLicensing/./node_modules/isarray/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/isNativeFunction.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/construct.js","webpack://NetLicensing/./src/services/LicenseeService.js","webpack://NetLicensing/./node_modules/regenerator-runtime/runtime.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://NetLicensing/./src/services/LicenseService.js","webpack://NetLicensing/./src/services/LicenseTemplateService.js","webpack://NetLicensing/./src/services/PaymentMethodService.js","webpack://NetLicensing/./src/services/ProductModuleService.js","webpack://NetLicensing/./src/services/ProductService.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/get.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/superPropBase.js","webpack://NetLicensing/./src/services/TokenService.js","webpack://NetLicensing/./src/services/TransactionService.js","webpack://NetLicensing/./src/services/UtilityService.js"],"names":["root","factory","exports","module","define","amd","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","obj","default","instance","Constructor","TypeError","_defineProperties","target","props","length","descriptor","configurable","writable","protoProps","staticProps","BASIC_AUTHENTICATION","APIKEY_IDENTIFICATION","ANONYMOUS_IDENTIFICATION","ACTIVE","NUMBER","NAME","VERSION","DELETED","CASCADE","PRICE","DISCOUNT","CURRENCY","IN_USE","FILTER","BASE_URL","USERNAME","PASSWORD","SECURITY_MODE","LicensingModel","VALID","TryAndBuy","Rental","RED_THRESHOLD","YELLOW_THRESHOLD","Subscription","Floating","MultiFeature","PayPerUse","PricingTable","Quota","NodeLocked","Vendor","VENDOR_NUMBER","VENDOR_TYPE","Product","ENDPOINT_PATH","PRODUCT_NUMBER","LICENSEE_AUTO_CREATE","DESCRIPTION","LICENSING_INFO","DISCOUNTS","PROP_LICENSEE_SECRET_MODE","PROP_VAT_MODE","Discount","TOTAL_PRICE","AMOUNT_FIX","AMOUNT_PERCENT","LicenseeSecretMode","DISABLED","PREDEFINED","CLIENT","ProductModule","PRODUCT_MODULE_NUMBER","PRODUCT_MODULE_NAME","LICENSING_MODEL","LicenseTemplate","LICENSE_TEMPLATE_NUMBER","LICENSE_TYPE","AUTOMATIC","HIDDEN","HIDE_LICENSES","PROP_LICENSEE_SECRET","LicenseType","FEATURE","TIMEVOLUME","FLOATING","QUANTITY","Token","EXPIRATION_TIME","TOKEN_TYPE","API_KEY","TOKEN_PROP_EMAIL","TOKEN_PROP_VENDORNUMBER","TOKEN_PROP_SHOP_URL","Type","DEFAULT","SHOP","APIKEY","Transaction","TRANSACTION_NUMBER","GRAND_TOTAL","STATUS","SOURCE","DATE_CREATED","DATE_CLOSED","VAT","VAT_MODE","LICENSE_TRANSACTION_JOIN","SOURCE_SHOP_ONLY","Status","CANCELLED","CLOSED","PENDING","Licensee","ENDPOINT_PATH_VALIDATE","ENDPOINT_PATH_TRANSFER","LICENSEE_NUMBER","SOURCE_LICENSEE_NUMBER","PROP_LICENSEE_NAME","PROP_MARKED_FOR_TRANSFER","License","LICENSE_NUMBER","PaymentMethod","Utility","ENDPOINT_PATH_LICENSE_TYPES","ENDPOINT_PATH_LICENSING_MODELS","ENDPOINT_PATH_COUNTRIES","LICENSING_MODEL_PROPERTIES","ROLE_APIKEY_LICENSEE","ROLE_APIKEY_ANALYTICS","ROLE_APIKEY_OPERATION","ROLE_APIKEY_MAINTENANCE","ROLE_APIKEY_ADMIN","isValid","valid","undefined","Number","isFinite","isNaN","paramNotNull","parameter","parameterName","concat","paramNotEmpty","toString","isArray","val","isUndefined","isObject","isFunction","forEach","fn","isArrayBuffer","isBuffer","constructor","isFormData","FormData","isArrayBufferView","ArrayBuffer","isView","buffer","isString","isNumber","isDate","isFile","isBlob","isStream","pipe","isURLSearchParams","URLSearchParams","isStandardBrowserEnv","navigator","product","window","document","merge","result","assignValue","arguments","deepMerge","extend","a","b","thisArg","trim","str","replace","_getPrototypeOf","setPrototypeOf","getPrototypeOf","__proto__","itemToObject","item","list","Array","push","_typeof","assertThisInitialized","self","subClass","superClass","_CheckUtils","_interopRequireDefault","_CastsUtils","propertiesMap","WeakMap","definedMap","castsMap","BaseEntity","_ref","properties","casts","_classCallCheck2","set","setProperties","CheckUtils","_typeof2","castedValue","cast","setProperty","_this","removeProperties","has","keys","def","_objectSpread","removeDefine","_this2","removeProperty","Boolean","hasDefine","descriptors","getProperty","_this3","getProperties","customProperties","content","pageNumber","itemsNumber","totalPages","totalItems","paginator","getContent","getPageNumber","getItemsNumber","getTotalPages","getTotalItems","hasNext","paginatorKeys","Proxy","indexOf","_axios","_btoa","_Constants","_NlicError","_package","httpXHR","axiosInstance","Service","axios","instanse","context","urlTemplate","queryParams","request","method","template","String","params","toLowerCase","Error","getBaseUrl","url","encodeURI","responseType","headers","Accept","transformRequest","data","toQueryString","pkg","version","process","getSecurityMode","Constants","getUsername","getPassword","auth","username","password","getApiKey","Authorization","getAxiosInstance","then","response","catch","e","error","NlicError","config","code","info","getInfo","message","infos","RegExp","test","prefix","query","k","v","Date","toISOString","encodeURIComponent","join","FILTER_DELIMITER","FILTER_PAIR_DELIMITER","encode","filter","decode","split","_v$split","_v$split2","_slicedToArray2","arrayWithHoles","iterableToArrayLimit","nonIterableRest","arr","asyncGeneratorStep","gen","resolve","reject","_next","_throw","arg","done","Promise","args","apply","err","iterator","_possibleConstructorReturn2","_getPrototypeOf2","number","active","price","hidden","parentfeature","timeVolume","startDate","inUse","_setPrototypeOf","LicenseTransactionJoin","transaction","license","vr","ValidationResults","validators","productModuleNumber","productModuleValidation","ttl","getValidators","JSON","stringify","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","setTimeout","clearTimeout","currentQueue","queue","draining","queueIndex","cleanUpNextTick","drainQueue","timeout","len","run","marker","runClearTimeout","Item","array","noop","nextTick","title","browser","env","argv","versions","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","binding","cwd","chdir","dir","umask","utils","paramsSerializer","serializedParams","parts","hashmarkIndex","slice","__CANCEL__","normalizeHeaderName","DEFAULT_CONTENT_TYPE","Content-Type","setContentTypeIfUnset","adapter","defaults","XMLHttpRequest","transformResponse","parse","xsrfCookieName","xsrfHeaderName","maxContentLength","validateStatus","status","common","settle","buildURL","buildFullPath","parseHeaders","isURLSameOrigin","createError","requestData","requestHeaders","btoa","fullPath","baseURL","open","toUpperCase","onreadystatechange","readyState","responseURL","responseHeaders","getAllResponseHeaders","responseText","statusText","onabort","onerror","ontimeout","timeoutErrorMessage","cookies","xsrfValue","withCredentials","read","setRequestHeader","onDownloadProgress","addEventListener","onUploadProgress","upload","cancelToken","promise","cancel","abort","send","enhanceError","config1","config2","valueFromConfig2Keys","mergeDeepPropertiesKeys","defaultToConfig2Keys","prop","axiosKeys","otherKeys","Cancel","_len","_key","_getPrototypeOf3","isNlicError","isAxiosError","ReferenceError","_itemToObject","_Licensee","licenseeSecret","markedForTransfer","parseInt","parseFloat","_License","_LicenseTemplate","licenseType","currency","automatic","hideLicenses","gracePeriod","timeVolumePeriod","maxSessions","quantity","_PaymentMethod","paypal.subject","paypalSubject","_ProductModule","licensingModel","maxCheckoutValidity","yellowThreshold","redThreshold","licenseTemplate","licenseeSecretMode","_Product","discounts","discount","setProductDiscounts","_BaseEntity2","_ProductDiscount","discountsMap","discountsTouched","description","licensingInfo","licenseeAutoCreate","_assertThisInitialized2","productDiscount","ProductDiscount","addDiscount","assign","_get2","map","totalPrice","amountFix","amountPercent","getTotalPrice","getCurrency","amount","getAmountFix","getAmountPercent","_Token","expirationTime","vendorNumber","tokenType","licenseeNumber","successURL","successURLTitle","cancelURL","cancelURLTitle","shopURL","role","setApiKeyRole","getApiKeyRole","apiKeyRole","_Transaction","_LicenseTransactionJoin","licenseTransactionJoin","joins","setLicense","setTransaction","setLicenseTransactionJoins","source","grandTotal","dateCreated","dateClosed","paymentMethod","licenseTransactionJoins","_Country","Country","vatPercent","isEu","vat","_Context","_Page","_ValidationParameters","_ValidationResults","_Service","_LicenseeService","_LicenseService","_LicenseTemplateService","_PaymentMethodService","_ProductModuleService","_ProductService","_TokenService","_TransactionService","_UtilityService","_BaseEntity","_itemToCountry","_itemToLicense","_itemToLicensee","_itemToLicenseTemplate","_itemToPaymentMethod","_itemToProduct","_itemToProductModule","_itemToToken","_itemToTransaction","_FilterUtils","NetLicensing","Context","Page","ValidationParameters","LicenseeService","LicenseService","LicenseTemplateService","PaymentMethodService","ProductModuleService","ProductService","TokenService","TransactionService","UtilityService","itemToCountry","itemToLicense","itemToLicensee","itemToLicenseTemplate","itemToPaymentMethod","itemToProduct","itemToProductModule","itemToToken","itemToTransaction","CastsUtils","FilterUtils","valuesMap","defaultsMap","values","baseUrl","securityMode","setValues","setValue","getValue","apiKey","copedValue","removeValues","removeValue","onlyGetter","vpMap","parameters","productNumber","licenseeName","productModuleParameters","Axios","mergeConfig","createInstance","defaultConfig","instanceConfig","CancelToken","isCancel","all","promises","spread","InterceptorManager","dispatchRequest","interceptors","chain","interceptor","unshift","fulfilled","rejected","shift","getUri","handlers","use","eject","id","h","transformData","throwIfCancellationRequested","throwIfRequested","reason","fns","normalizedName","toJSON","fileName","lineNumber","columnNumber","stack","isAbsoluteURL","combineURLs","requestedURL","relativeURL","ignoreDuplicateOf","parsed","line","substr","originURL","msie","userAgent","urlParsingNode","createElement","resolveURL","href","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","location","requestURL","write","expires","path","domain","secure","cookie","toGMTString","match","decodeURIComponent","remove","now","executor","resolvePromise","token","callback","Buffer","from","global","base64","ieee754","kMaxLength","TYPED_ARRAY_SUPPORT","createBuffer","that","RangeError","Uint8Array","encodingOrOffset","allocUnsafe","byteOffset","byteLength","fromArrayLike","fromArrayBuffer","string","encoding","isEncoding","actual","fromString","checked","copy","type","fromObject","assertSize","size","loweredCase","utf8ToBytes","base64ToBytes","swap","bidirectionalIndexOf","arrayIndexOf","lastIndexOf","indexSize","arrLength","valLength","buf","readUInt16BE","foundIndex","found","j","hexWrite","offset","remaining","strLen","utf8Write","blitBuffer","asciiWrite","byteArray","charCodeAt","asciiToBytes","latin1Write","base64Write","ucs2Write","units","hi","lo","utf16leToBytes","base64Slice","start","end","fromByteArray","utf8Slice","Math","min","res","secondByte","thirdByte","fourthByte","tempCodePoint","firstByte","codePoint","bytesPerSequence","codePoints","MAX_ARGUMENTS_LENGTH","fromCharCode","decodeCodePointsArray","SlowBuffer","alloc","INSPECT_MAX_BYTES","foo","subarray","typedArraySupport","poolSize","_augment","species","fill","allocUnsafeSlow","_isBuffer","compare","x","y","pos","swap16","swap32","swap64","hexSlice","asciiSlice","latin1Slice","utf16leSlice","equals","inspect","max","thisStart","thisEnd","thisCopy","targetCopy","includes","_arr","ret","out","toHex","bytes","checkOffset","ext","checkInt","objectWriteUInt16","littleEndian","objectWriteUInt32","checkIEEE754","writeFloat","noAssert","writeDouble","newBuf","sliceLen","readUIntLE","mul","readUIntBE","readUInt8","readUInt16LE","readUInt32LE","readUInt32BE","readIntLE","pow","readIntBE","readInt8","readInt16LE","readInt16BE","readInt32LE","readInt32BE","readFloatLE","readFloatBE","readDoubleLE","readDoubleBE","writeUIntLE","writeUIntBE","writeUInt8","floor","writeUInt16LE","writeUInt16BE","writeUInt32LE","writeUInt32BE","writeIntLE","limit","sub","writeIntBE","writeInt8","writeInt16LE","writeInt16BE","writeInt32LE","writeInt32BE","writeFloatLE","writeFloatBE","writeDoubleLE","writeDoubleBE","targetStart","INVALID_BASE64_RE","Infinity","leadSurrogate","toByteArray","stringtrim","base64clean","src","dst","g","Function","b64","lens","getLens","validLen","placeHoldersLen","tmp","Arr","_byteLength","curByte","revLookup","uint8","extraBytes","len2","encodeChunk","lookup","num","output","isLE","mLen","nBytes","eLen","eMax","eBias","nBits","NaN","rt","abs","log","LN2","isNativeFunction","construct","_wrapNativeSuper","Class","_cache","Map","Wrapper","_construct","Parent","Reflect","sham","isNativeReflectConstruct","licensee","_asyncToGenerator2","_regenerator","mark","_callee","_ref$data$items$item","wrap","_context","prev","next","post","asPropertiesMap","sent","items","abrupt","stop","_callee2","_ref2","_ref2$data$items$item","_context2","_callee3","_ref3","_context3","pagenumber","itemsnumber","totalpages","totalitems","update","_callee4","_ref4","_ref4$data$items$item","_context4","delete","forceCascade","validate","validationParameters","_callee5","pmIndex","_ref5","_ref5$data","validationResults","_context5","getProductNumber","getLicenseeName","getLicenseeSecret","getParameters","productModuleName","setTtl","setProductModuleValidation","transfer","sourceLicenseeNumber","runtime","Op","hasOwn","$Symbol","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","_invoke","state","GenStateSuspendedStart","GenStateExecuting","GenStateCompleted","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","_sent","dispatchException","record","tryCatch","GenStateSuspendedYield","makeInvokeMethod","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","NativeIteratorPrototype","Gp","defineIteratorMethods","AsyncIterator","previousPromise","callInvokeWithMethodAndArg","invoke","__await","unwrapped","resultName","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","iterable","iteratorMethod","displayName","isGeneratorFunction","genFun","ctor","awrap","async","iter","reverse","pop","skipTempReset","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","_n","_d","_e","_s","_i","licenseTemplateNumber","transactionNumber","_ref3$data$items$item","productModule","superPropBase","_get","receiver","base","desc","getOwnPropertyDescriptor","listLicenseTypes","listLicensingModels","listCountries"],"mappings":"CAAA,SAAAA,EAAAC,GACA,iBAAAC,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,SAAA65B,EAAA75B,QAAA85B,KAAA,SAAAiB,IAAA,IAAA/qB,EAAAgrB,EAAAjqB,EAAA,OAAA8oB,EAAA75B,QAAAi6B,KAAA,SAAAgB,GAAA,cAAAA,EAAAd,KAAAc,EAAAb,MAAA,UAC3BpqB,MAEFuD,EAH6B,CAAA0nB,EAAAb,KAAA,WAIxBptB,UAAWlF,QAAQyL,GAJK,CAAA0nB,EAAAb,KAAA,cAKnB,IAAIj6B,UAAJ,wBAAAoI,OAAsCgL,IALnB,OAO7BvD,EAAYqB,UAAU3P,QAA4B,iBAAX6R,EAAsBA,EAASyS,UAAY1S,OAAOC,GAP5D,cAAA0nB,EAAAb,KAAA,EAUVzqB,UAClB/Q,IACGkR,EAFe,GAAAvH,OAGZ8I,UAAUjK,QAAQpE,cAHN,KAAAuF,OAGuB8I,UAAUjK,QAAQG,yBACxDyI,GAdyB,cAAAgrB,EAAAC,EAAAV,KAUzBxpB,EAVyBiqB,EAUzBjqB,KAVyBkqB,EAAAR,OAAA,UAiB1B,EAAAxX,EAAAjjB,SACH+Q,EAAKypB,MAAM/uB,KAAK8U,IAAI,SAACxN,GAAD,OAAO,EAAAgR,EAAA/jB,SAAc+S,KACzChC,EAAKypB,MAAMU,WACXnqB,EAAKypB,MAAMW,YACXpqB,EAAKypB,MAAMY,WACXrqB,EAAKypB,MAAMa,aAtBkB,yBAAAJ,EAAAP,SAAAK,KAAA","file":"netlicensing-client.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"NetLicensing\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"NetLicensing\"] = factory();\n\telse\n\t\troot[\"NetLicensing\"] = factory();\n})(this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 53);\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nexport default {\n BASIC_AUTHENTICATION: 'BASIC_AUTH',\n APIKEY_IDENTIFICATION: 'APIKEY',\n ANONYMOUS_IDENTIFICATION: 'ANONYMOUS',\n\n ACTIVE: 'active',\n NUMBER: 'number',\n NAME: 'name',\n VERSION: 'version',\n DELETED: 'deleted',\n CASCADE: 'forceCascade',\n PRICE: 'price',\n DISCOUNT: 'discount',\n CURRENCY: 'currency',\n IN_USE: 'inUse',\n FILTER: 'filter',\n BASE_URL: 'baseUrl',\n USERNAME: 'username',\n PASSWORD: 'password',\n SECURITY_MODE: 'securityMode',\n\n LicensingModel: {\n VALID: 'valid',\n TryAndBuy: {\n NAME: 'TryAndBuy',\n },\n Rental: {\n NAME: 'Rental',\n RED_THRESHOLD: 'redThreshold',\n YELLOW_THRESHOLD: 'yellowThreshold',\n },\n Subscription: {\n NAME: 'Subscription',\n },\n Floating: {\n NAME: 'Floating',\n },\n MultiFeature: {\n NAME: 'MultiFeature',\n },\n PayPerUse: {\n NAME: 'PayPerUse',\n },\n PricingTable: {\n NAME: 'PricingTable',\n },\n Quota: {\n NAME: 'Quota',\n },\n NodeLocked: {\n NAME: 'NodeLocked',\n },\n },\n\n Vendor: {\n VENDOR_NUMBER: 'vendorNumber',\n VENDOR_TYPE: 'Vendor',\n },\n\n Product: {\n ENDPOINT_PATH: 'product',\n PRODUCT_NUMBER: 'productNumber',\n LICENSEE_AUTO_CREATE: 'licenseeAutoCreate',\n DESCRIPTION: 'description',\n LICENSING_INFO: 'licensingInfo',\n DISCOUNTS: 'discounts',\n /**\n * @deprecated use ProductModule.PROP_LICENSEE_SECRET_MODE instead\n */\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\n PROP_VAT_MODE: 'vatMode',\n\n Discount: {\n TOTAL_PRICE: 'totalPrice',\n AMOUNT_FIX: 'amountFix',\n AMOUNT_PERCENT: 'amountPercent',\n },\n\n LicenseeSecretMode: {\n /**\n * @deprecated DISABLED mode is deprecated\n */\n DISABLED: 'DISABLED',\n PREDEFINED: 'PREDEFINED',\n CLIENT: 'CLIENT',\n },\n },\n\n ProductModule: {\n ENDPOINT_PATH: 'productmodule',\n PRODUCT_MODULE_NUMBER: 'productModuleNumber',\n PRODUCT_MODULE_NAME: 'productModuleName',\n LICENSING_MODEL: 'licensingModel',\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\n },\n\n LicenseTemplate: {\n ENDPOINT_PATH: 'licensetemplate',\n LICENSE_TEMPLATE_NUMBER: 'licenseTemplateNumber',\n LICENSE_TYPE: 'licenseType',\n AUTOMATIC: 'automatic',\n HIDDEN: 'hidden',\n HIDE_LICENSES: 'hideLicenses',\n PROP_LICENSEE_SECRET: 'licenseeSecret',\n LicenseType: {\n FEATURE: 'FEATURE',\n TIMEVOLUME: 'TIMEVOLUME',\n FLOATING: 'FLOATING',\n QUANTITY: 'QUANTITY',\n },\n },\n\n Token: {\n ENDPOINT_PATH: 'token',\n EXPIRATION_TIME: 'expirationTime',\n TOKEN_TYPE: 'tokenType',\n API_KEY: 'apiKey',\n TOKEN_PROP_EMAIL: 'email',\n TOKEN_PROP_VENDORNUMBER: 'vendorNumber',\n TOKEN_PROP_SHOP_URL: 'shopURL',\n Type: {\n DEFAULT: 'DEFAULT',\n SHOP: 'SHOP',\n APIKEY: 'APIKEY',\n },\n },\n\n Transaction: {\n ENDPOINT_PATH: 'transaction',\n TRANSACTION_NUMBER: 'transactionNumber',\n GRAND_TOTAL: 'grandTotal',\n STATUS: 'status',\n SOURCE: 'source',\n DATE_CREATED: 'datecreated',\n DATE_CLOSED: 'dateclosed',\n VAT: 'vat',\n VAT_MODE: 'vatMode',\n LICENSE_TRANSACTION_JOIN: 'licenseTransactionJoin',\n SOURCE_SHOP_ONLY: 'shopOnly',\n /**\n * @deprecated\n */\n Status: {\n CANCELLED: 'CANCELLED',\n CLOSED: 'CLOSED',\n PENDING: 'PENDING',\n },\n },\n\n Licensee: {\n ENDPOINT_PATH: 'licensee',\n ENDPOINT_PATH_VALIDATE: 'validate',\n ENDPOINT_PATH_TRANSFER: 'transfer',\n LICENSEE_NUMBER: 'licenseeNumber',\n SOURCE_LICENSEE_NUMBER: 'sourceLicenseeNumber',\n PROP_LICENSEE_NAME: 'licenseeName',\n /**\n * @deprecated use License.PROP_LICENSEE_SECRET\n */\n PROP_LICENSEE_SECRET: 'licenseeSecret',\n PROP_MARKED_FOR_TRANSFER: 'markedForTransfer',\n },\n\n License: {\n ENDPOINT_PATH: 'license',\n LICENSE_NUMBER: 'licenseNumber',\n HIDDEN: 'hidden',\n PROP_LICENSEE_SECRET: 'licenseeSecret',\n },\n\n PaymentMethod: {\n ENDPOINT_PATH: 'paymentmethod',\n },\n\n Utility: {\n ENDPOINT_PATH: 'utility',\n ENDPOINT_PATH_LICENSE_TYPES: 'licenseTypes',\n ENDPOINT_PATH_LICENSING_MODELS: 'licensingModels',\n ENDPOINT_PATH_COUNTRIES: 'countries',\n LICENSING_MODEL_PROPERTIES: 'LicensingModelProperties',\n LICENSE_TYPE: 'LicenseType',\n },\n\n APIKEY: {\n ROLE_APIKEY_LICENSEE: 'ROLE_APIKEY_LICENSEE',\n ROLE_APIKEY_ANALYTICS: 'ROLE_APIKEY_ANALYTICS',\n ROLE_APIKEY_OPERATION: 'ROLE_APIKEY_OPERATION',\n ROLE_APIKEY_MAINTENANCE: 'ROLE_APIKEY_MAINTENANCE',\n ROLE_APIKEY_ADMIN: 'ROLE_APIKEY_ADMIN',\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nexport default {\n isValid(value) {\n let valid = (value !== undefined && typeof value !== 'function');\n if (typeof value === 'number') valid = Number.isFinite(value) && !Number.isNaN(value);\n return valid;\n },\n\n paramNotNull(parameter, parameterName) {\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\n if (parameter === null) throw new TypeError(`Parameter ${parameterName} cannot be null`);\n },\n\n paramNotEmpty(parameter, parameterName) {\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\n if (!parameter) throw new TypeError(`Parameter ${parameterName} cannot be null or empty string`);\n },\n};\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = merge(result[key], val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Function equal to merge with the difference being that no reference\n * to original objects is kept.\n *\n * @see merge\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction deepMerge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = deepMerge(result[key], val);\n } else if (typeof val === 'object') {\n result[key] = deepMerge({}, val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n deepMerge: deepMerge,\n extend: extend,\n trim: trim\n};\n","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","const itemToObject = (item) => {\n const object = {};\n const { property, list } = item;\n\n if (property && Array.isArray(property)) {\n property.forEach((p) => {\n const { name, value } = p;\n if (name) object[name] = value;\n });\n }\n\n if (list && Array.isArray(list)) {\n list.forEach((l) => {\n const { name } = l;\n if (name) {\n object[name] = object[name] || [];\n object[name].push(itemToObject(l));\n }\n });\n }\n\n return object;\n};\n\nexport default itemToObject;\n","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport CastsUtils from '../util/CastsUtils';\n\n/**\n * The entity properties.\n * @type {{}}\n * @private\n */\nconst propertiesMap = new WeakMap();\n\n/**\n * List of properties that was defined\n * @type {{}}\n * @private\n */\n\nconst definedMap = new WeakMap();\n\n/**\n * List of properties that need be casts\n * @type {{}}\n * @private\n */\nconst castsMap = new WeakMap();\n\nexport default class BaseEntity {\n constructor({ properties, casts }) {\n propertiesMap.set(this, {});\n definedMap.set(this, {});\n castsMap.set(this, casts || []);\n\n if (properties) {\n this.setProperties(properties);\n }\n }\n\n /**\n * Set a given property on the entity.\n * @param property\n * @param value\n * @returns {BaseEntity}\n */\n setProperty(property, value) {\n // if property name has bad native type\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\n throw new TypeError(`Bad property name:${property}`);\n }\n\n const castedValue = this.cast(property, value);\n\n // define to property\n this.define(property);\n\n // save property to propertiesMap\n const properties = propertiesMap.get(this);\n properties[property] = castedValue;\n\n return this;\n }\n\n /**\n * Alias for setProperty\n * @param property\n * @param value\n * @returns {BaseEntity}\n */\n addProperty(property, value) {\n return this.setProperty(property, value);\n }\n\n /**\n * Set the entity properties.\n * @param properties\n * @returns {BaseEntity}\n */\n setProperties(properties) {\n this.removeProperties();\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(properties).forEach((key) => {\n if (has.call(properties, key)) {\n this.setProperty(key, properties[key]);\n }\n });\n\n return this;\n }\n\n /**\n * Check if we has property\n * @param property\n * @protected\n */\n hasProperty(property) {\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property);\n }\n\n /**\n * Get an property from the entity.\n * @param property\n * @param def\n * @returns {*}\n */\n getProperty(property, def) {\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property)\n ? propertiesMap.get(this)[property]\n : def;\n }\n\n /**\n * Get all of the current properties on the entity.\n */\n getProperties() {\n return { ...propertiesMap.get(this) };\n }\n\n /**\n * Remove property\n * @param property\n * @returns {BaseEntity}\n */\n removeProperty(property) {\n const properties = propertiesMap.get(this);\n delete properties[property];\n this.removeDefine(property);\n return this;\n }\n\n /**\n * Remove properties\n * @param properties\n */\n removeProperties(properties) {\n const propertiesForRemove = properties || Object.keys(propertiesMap.get(this));\n\n propertiesForRemove.forEach((property) => {\n this.removeProperty(property);\n });\n }\n\n cast(property, value) {\n if (!castsMap.get(this)[property]) return value;\n\n return CastsUtils(castsMap.get(this)[property], value);\n }\n\n /**\n * Check if property has defined\n * @param property\n * @protected\n */\n hasDefine(property) {\n return Boolean(definedMap.get(this)[property]);\n }\n\n /**\n * Define property getter and setter\n * @param property\n * @protected\n */\n define(property) {\n if (this.hasDefine(property)) return;\n\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\n throw new TypeError(`Bad property name:${property}`);\n }\n\n const self = this;\n\n // delete property\n delete this[property];\n\n const descriptors = {\n enumerable: true,\n configurable: true,\n get() {\n return self.getProperty(property);\n },\n\n set(value) {\n self.setProperty(property, value);\n },\n };\n\n const defined = definedMap.get(this);\n defined[property] = true;\n\n Object.defineProperty(this, property, descriptors);\n }\n\n /**\n * Remove property getter and setter\n * @param property\n * @protected\n */\n removeDefine(property) {\n if (!this.hasDefine(property)) return;\n\n const defined = definedMap.get(this);\n delete defined[property];\n\n delete this[property];\n }\n\n /**\n * Get properties map\n */\n asPropertiesMap() {\n const properties = this.getProperties();\n const customProperties = {};\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(this).forEach((key) => {\n if (!has.call(this, key)) return;\n\n customProperties[key] = this[key];\n });\n\n return { ...customProperties, ...properties };\n }\n}\n","export default (content = [], pageNumber = 0, itemsNumber = 0, totalPages = 0, totalItems = 0) => {\n const paginator = {\n getContent() {\n return content;\n },\n\n getPageNumber() {\n return pageNumber;\n },\n\n getItemsNumber() {\n return itemsNumber;\n },\n\n getTotalPages() {\n return totalPages;\n },\n\n getTotalItems() {\n return totalItems;\n },\n\n hasNext() {\n return (totalPages > pageNumber + 1);\n },\n };\n\n const paginatorKeys = Object.keys(paginator);\n\n return new Proxy(content, {\n get(target, key) {\n if (paginatorKeys.indexOf(key) !== -1) {\n return paginator[key];\n }\n return target[key];\n },\n });\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nimport axios from 'axios';\nimport btoa from 'btoa';\nimport Constants from '../Constants';\nimport NlicError from '../errors/NlicError';\nimport pkg from '../../package.json';\n\nlet httpXHR = {};\nlet axiosInstance = null;\n\nexport default class Service {\n static getAxiosInstance() {\n return axiosInstance || axios;\n }\n\n static setAxiosInstance(instanse) {\n axiosInstance = instanse;\n }\n\n static getLastHttpRequestInfo() {\n return httpXHR;\n }\n\n /**\n * Helper method for performing GET request to N\n etLicensing API services. Finds and returns first suitable item with\n * type resultType from the response.\n *\n * Context for the NetLicensing API call\n * @param context\n *\n * the REST URL template\n * @param urlTemplate\n *\n * The REST query parameters values. May be null if there are no parameters.\n * @param queryParams\n *\n * @returns {Promise}\n */\n static get(context, urlTemplate, queryParams) {\n return Service.request(context, 'get', urlTemplate, queryParams);\n }\n\n /**\n * Helper method for performing POST request to NetLicensing API services. Finds and returns first suitable item\n * with type resultType from the response.\n *\n * context for the NetLicensing API call\n * @param context\n *\n * the REST URL template\n * @param urlTemplate\n *\n * The REST query parameters values. May be null if there are no parameters.\n * @param queryParams\n *\n * @returns {Promise}\n */\n static post(context, urlTemplate, queryParams) {\n return Service.request(context, 'post', urlTemplate, queryParams);\n }\n\n /**\n *\n * @param context\n * @param urlTemplate\n * @param queryParams\n * @returns {Promise}\n */\n static delete(context, urlTemplate, queryParams) {\n return Service.request(context, 'delete', urlTemplate, queryParams);\n }\n\n /**\n * Send request to NetLicensing RestApi\n * @param context\n * @param method\n * @param urlTemplate\n * @param queryParams\n * @returns {Promise}\n */\n static request(context, method, urlTemplate, queryParams) {\n const template = String(urlTemplate);\n const params = queryParams || {};\n\n if (!template) throw new TypeError('Url template must be specified');\n\n // validate http method\n if (['get', 'post', 'delete'].indexOf(method.toLowerCase()) < 0) {\n throw new Error(`Invalid request type:${method}, allowed requests types: GET, POST, DELETE.`);\n }\n\n // validate context\n if (!context.getBaseUrl(null)) {\n throw new Error('Base url must be specified');\n }\n\n const request = {\n url: encodeURI(`${context.getBaseUrl()}/${template}`),\n method: method.toLowerCase(),\n responseType: 'json',\n headers: {\n Accept: 'application/json',\n },\n transformRequest: [(data, headers) => {\n if (headers['Content-Type'] === 'application/x-www-form-urlencoded') {\n return Service.toQueryString(data);\n }\n\n if (!headers['NetLicensing-Origin']) {\n // eslint-disable-next-line no-param-reassign\n headers['NetLicensing-Origin'] = `NetLicensing/Javascript ${pkg.version}`;\n }\n return data;\n }],\n };\n\n // only node.js has a process variable that is of [[Class]] process\n if (!typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n request.headers['User-agent'] = `NetLicensing/Javascript ${pkg.version}/node&${process.version}`;\n }\n\n if (['put', 'post', 'patch'].indexOf(request.method) >= 0) {\n if (request.method === 'post') {\n request.headers['Content-Type'] = 'application/x-www-form-urlencoded';\n }\n request.data = params;\n } else {\n request.params = params;\n }\n\n switch (context.getSecurityMode()) {\n // Basic Auth\n case Constants.BASIC_AUTHENTICATION:\n if (!context.getUsername()) throw new Error('Missing parameter \"username\"');\n if (!context.getPassword()) throw new Error('Missing parameter \"password\"');\n\n request.auth = {\n username: context.getUsername(),\n password: context.getPassword(),\n };\n break;\n // ApiKey Auth\n case Constants.APIKEY_IDENTIFICATION:\n if (!context.getApiKey()) throw new Error('Missing parameter \"apiKey\"');\n\n request.headers.Authorization = `Basic ${btoa(`apiKey:${context.getApiKey()}`)}`;\n break;\n // without authorization\n case Constants.ANONYMOUS_IDENTIFICATION:\n break;\n default:\n throw new Error('Unknown security mode');\n }\n\n return Service.getAxiosInstance()(request)\n .then((response) => {\n httpXHR = response;\n return response;\n })\n .catch((e) => {\n httpXHR = e;\n\n if (e.response) {\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n\n const error = new NlicError(e);\n\n error.config = e.config;\n error.code = e.code;\n error.request = e.request;\n error.response = e.response;\n\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n const { data } = e.response;\n\n if (data) {\n const info = Service.getInfo(e.response, [])[0] || {};\n error.message = info.value || 'Unknown';\n }\n\n throw error;\n }\n\n throw e;\n });\n }\n\n static getInfo(response, def) {\n try {\n return response.data.infos.info || def;\n } catch (e) {\n return def;\n }\n }\n\n static isValidUrl(url) {\n const pattern = new RegExp('^(https?:\\\\/\\\\/)?' // protocol\n + '((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.?)+[a-z]{2,}|' // domain name\n + '((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))' // OR ip (v4) address\n + '(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*' // port and path\n + '(\\\\?[;&a-z\\\\d%_.~+=-]*)?' // query string\n + '(\\\\#[-a-z\\\\d_]*)?$', 'i'); // fragment locator\n\n return pattern.test(url);\n }\n\n static toQueryString(data, prefix) {\n const query = [];\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(data)\n .forEach((key) => {\n if (has.call(data, key)) {\n const k = prefix ? `${prefix}[${key}]` : key;\n let v = data[key];\n v = (v instanceof Date) ? v.toISOString() : v;\n query.push((v !== null && typeof v === 'object')\n ? Service.toQueryString(v, k)\n : `${encodeURIComponent(k)}=${encodeURIComponent(v)}`);\n }\n });\n\n return query.join('&')\n .replace(/%5B[0-9]+%5D=/g, '=');\n }\n}\n","export default {\n FILTER_DELIMITER: ';',\n FILTER_PAIR_DELIMITER: '=',\n encode(filter = {}) {\n const query = [];\n const has = Object.prototype.hasOwnProperty;\n Object.keys(filter).forEach((key) => {\n if (has.call(filter, key)) {\n query.push(`${key}${this.FILTER_PAIR_DELIMITER}${filter[key]}`);\n }\n });\n return query.join(this.FILTER_DELIMITER);\n },\n decode(query = '') {\n const filter = {};\n query.split(this.FILTER_DELIMITER).forEach((v) => {\n const [name, value] = v.split(this.FILTER_PAIR_DELIMITER);\n filter[name] = value;\n });\n return filter;\n },\n};\n","module.exports = require(\"regenerator-runtime\");\n","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * License entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products/licensees of a vendor) that identifies the license. Vendor can\n * assign this number when creating a license or let NetLicensing generate one. Read-only after corresponding creation\n * transaction status is set to closed.\n * @property string number\n *\n * Name for the licensed item. Set from license template on creation, if not specified explicitly.\n * @property string name\n *\n * If set to false, the license is disabled. License can be re-enabled, but as long as it is disabled,\n * the license is excluded from the validation process.\n * @property boolean active\n *\n * price for the license. If >0, it must always be accompanied by the currency specification. Read-only,\n * set from license template on creation.\n * @property float price\n *\n * specifies currency for the license price. Check data types to discover which currencies are\n * supported. Read-only, set from license template on creation.\n * @property string currency\n *\n * If set to true, this license is not shown in NetLicensing Shop as purchased license. Set from license\n * template on creation, if not specified explicitly.\n * @property boolean $hidden\n *\n * @property string startDate\n *\n * Arbitrary additional user properties of string type may be associated with each license. The name of user property\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, licenseeNumber,\n * licenseTemplateNumber.\n */\nexport default class License extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n price: 'float',\n hidden: 'boolean',\n parentfeature: 'string',\n timeVolume: 'int',\n startDate: 'date',\n inUse: 'boolean',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setHidden(hidden) {\n return this.setProperty('hidden', hidden);\n }\n\n getHidden(def) {\n return this.getProperty('hidden', def);\n }\n\n setParentfeature(parentfeature) {\n return this.setProperty('parentfeature', parentfeature);\n }\n\n getParentfeature(def) {\n return this.getProperty('parentfeature', def);\n }\n\n setTimeVolume(timeVolume) {\n return this.setProperty('timeVolume', timeVolume);\n }\n\n getTimeVolume(def) {\n return this.getProperty('timeVolume', def);\n }\n\n setStartDate(startDate) {\n return this.setProperty('startDate', startDate);\n }\n\n getStartDate(def) {\n return this.getProperty('startDate', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n\n getPrice(def) {\n return this.getProperty('price', def);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n}\n","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nexport default class LicenseTransactionJoin {\n constructor(transaction, license) {\n this.transaction = transaction;\n this.license = license;\n }\n\n setTransaction(transaction) {\n this.transaction = transaction;\n return this;\n }\n\n getTransaction(def) {\n return this.transaction || def;\n }\n\n setLicense(license) {\n this.license = license;\n return this;\n }\n\n getLicense(def) {\n return this.license || def;\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\n\n/**\n * Validation result map\n * @type {WeakMap}\n */\nconst vr = new WeakMap();\n\nexport default class ValidationResults {\n constructor() {\n vr.set(this, { validators: {} });\n }\n\n getValidators() {\n return { ...vr.get(this).validators };\n }\n\n setProductModuleValidation(productModuleNumber, productModuleValidation) {\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\n }\n\n vr.get(this).validators[productModuleNumber] = productModuleValidation;\n\n return this;\n }\n\n getProductModuleValidation(productModuleNumber) {\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\n }\n\n return vr.get(this).validators[productModuleNumber];\n }\n\n setTtl(ttl) {\n if (!CheckUtils.isValid(ttl) || typeof ttl === 'object') {\n throw new TypeError(`Bad ttl:${ttl}`);\n }\n vr.get(this).ttl = new Date(String(ttl));\n\n return this;\n }\n\n getTtl() {\n return (vr.get(this).ttl) ? new Date(vr.get(this).ttl) : undefined;\n }\n\n toString() {\n let data = 'ValidationResult [';\n\n const validators = this.getValidators();\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(validators).forEach((productModuleNumber) => {\n data += `ProductModule<${productModuleNumber}>`;\n if (has.call(validators, productModuleNumber)) {\n data += JSON.stringify(validators[productModuleNumber]);\n }\n });\n\n data += ']';\n\n return data;\n }\n}\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n var cookies = require('./../helpers/cookies');\n\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (requestData === undefined) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];\n var defaultToConfig2Keys = [\n 'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',\n 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath'\n ];\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {\n if (utils.isObject(config2[prop])) {\n config[prop] = utils.deepMerge(config1[prop], config2[prop]);\n } else if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (utils.isObject(config1[prop])) {\n config[prop] = utils.deepMerge(config1[prop]);\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys);\n\n var otherKeys = Object\n .keys(config2)\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n return config;\n};\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","export default class NlicError extends Error {\n constructor(...args) {\n super(...args);\n\n this.config = {};\n this.response = {};\n this.request = {};\n this.code = '';\n\n this.isNlicError = true;\n this.isAxiosError = true;\n }\n}\n","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","import itemToObject from './itemToObject';\nimport Licensee from '../entities/Licensee';\n\nexport default (item) => new Licensee(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Licensee entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the licensee. Vendor can assign this\n * number when creating a licensee or let NetLicensing generate one. Read-only after creation of the first license for\n * the licensee.\n * @property string number\n *\n * Licensee name.\n * @property string name\n *\n * If set to false, the licensee is disabled. Licensee can not obtain new licenses, and validation is\n * disabled (tbd).\n * @property boolean active\n *\n * Licensee Secret for licensee\n * @property string licenseeSecret\n *\n * Mark licensee for transfer.\n * @property boolean markedForTransfer\n *\n * Arbitrary additional user properties of string type may be associated with each licensee. The name of user property\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, productNumber\n *\n * @constructor\n */\nexport default class Licensee extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n licenseeSecret: 'string',\n markedForTransfer: 'boolean',\n inUse: 'boolean',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n /**\n * @deprecated\n */\n setLicenseeSecret(licenseeSecret) {\n return this.setProperty('licenseeSecret', licenseeSecret);\n }\n\n /**\n * @deprecated\n */\n getLicenseeSecret(def) {\n return this.getProperty('licenseeSecret', def);\n }\n\n setMarkedForTransfer(markedForTransfer) {\n return this.setProperty('markedForTransfer', markedForTransfer);\n }\n\n getMarkedForTransfer(def) {\n return this.getProperty('markedForTransfer', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\n// Cast an attribute to a native JS type.\nexport default (key, value) => {\n switch (key.trim().toLowerCase()) {\n case 'str':\n case 'string':\n return String(value);\n case 'int':\n case 'integer':\n return parseInt(value, 10);\n case 'float':\n case 'double':\n return parseFloat(value);\n case 'bool':\n case 'boolean':\n switch (value) {\n case 'true':\n case 'TRUE':\n return true;\n case 'false':\n case 'FALSE':\n return false;\n default:\n return Boolean(value);\n }\n case 'date':\n return (value === 'now') ? 'now' : new Date(String(value));\n default:\n return value;\n }\n};\n","import itemToObject from './itemToObject';\nimport License from '../entities/License';\n\nexport default (item) => new License(itemToObject(item));\n","import itemToObject from './itemToObject';\nimport LicenseTemplate from '../entities/LicenseTemplate';\n\nexport default (item) => new LicenseTemplate(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * License template entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the license template. Vendor can\n * assign this number when creating a license template or let NetLicensing generate one.\n * Read-only after creation of the first license from this license template.\n * @property string number\n *\n * If set to false, the license template is disabled. Licensee can not obtain any new licenses off this\n * license template.\n * @property boolean active\n *\n * Name for the licensed item.\n * @property string name\n *\n * Type of licenses created from this license template. Supported types: \"FEATURE\", \"TIMEVOLUME\",\n * \"FLOATING\", \"QUANTITY\"\n * @property string licenseType\n *\n * Price for the license. If >0, it must always be accompanied by the currency specification.\n * @property double price\n *\n * Specifies currency for the license price. Check data types to discover which currencies are\n * supported.\n * @property string currency\n *\n * If set to true, every new licensee automatically gets one license out of this license template on\n * creation. Automatic licenses must have their price set to 0.\n * @property boolean automatic\n *\n * If set to true, this license template is not shown in NetLicensing Shop as offered for purchase.\n * @property boolean hidden\n *\n * If set to true, licenses from this license template are not visible to the end customer, but\n * participate in validation.\n * @property boolean hideLicenses\n *\n * If set to true, this license template defines grace period of validity granted after subscription expiration.\n * @property boolean gracePeriod\n *\n * Mandatory for 'TIMEVOLUME' license type.\n * @property integer timeVolume\n *\n * Time volume period for 'TIMEVOLUME' license type. Supported types: \"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"\n * @property integer timeVolumePeriod\n *\n * Mandatory for 'FLOATING' license type.\n * @property integer maxSessions\n *\n * Mandatory for 'QUANTITY' license type.\n * @property integer quantity\n *\n * @constructor\n */\nexport default class LicenseTemplate extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n licenseType: 'string',\n price: 'double',\n currency: 'string',\n automatic: 'boolean',\n hidden: 'boolean',\n hideLicenses: 'boolean',\n gracePeriod: 'boolean',\n timeVolume: 'int',\n timeVolumePeriod: 'string',\n maxSessions: 'int',\n quantity: 'int',\n inUse: 'boolean',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setLicenseType(licenseType) {\n return this.setProperty('licenseType', licenseType);\n }\n\n getLicenseType(def) {\n return this.getProperty('licenseType', def);\n }\n\n setPrice(price) {\n return this.setProperty('price', price);\n }\n\n getPrice(def) {\n return this.getProperty('price', def);\n }\n\n setCurrency(currency) {\n return this.setProperty('currency', currency);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n\n setAutomatic(automatic) {\n return this.setProperty('automatic', automatic);\n }\n\n getAutomatic(def) {\n return this.getProperty('automatic', def);\n }\n\n setHidden(hidden) {\n return this.setProperty('hidden', hidden);\n }\n\n getHidden(def) {\n return this.getProperty('hidden', def);\n }\n\n setHideLicenses(hideLicenses) {\n return this.setProperty('hideLicenses', hideLicenses);\n }\n\n getHideLicenses(def) {\n return this.getProperty('hideLicenses', def);\n }\n\n setTimeVolume(timeVolume) {\n return this.setProperty('timeVolume', timeVolume);\n }\n\n getTimeVolume(def) {\n return this.getProperty('timeVolume', def);\n }\n\n setTimeVolumePeriod(timeVolumePeriod) {\n return this.setProperty('timeVolumePeriod', timeVolumePeriod);\n }\n\n getTimeVolumePeriod(def) {\n return this.getProperty('timeVolumePeriod', def);\n }\n\n setMaxSessions(maxSessions) {\n return this.setProperty('maxSessions', maxSessions);\n }\n\n getMaxSessions(def) {\n return this.getProperty('maxSessions', def);\n }\n\n setQuantity(quantity) {\n return this.setProperty('quantity', quantity);\n }\n\n getQuantity(def) {\n return this.getProperty('quantity', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport PaymentMethod from '../entities/PaymentMethod';\n\nexport default (item) => new PaymentMethod(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * PaymentMethod entity used internally by NetLicensing.\n *\n * @property string number\n * @property boolean active\n *\n * @constructor\n */\nexport default class PaymentMethod extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n 'paypal.subject': 'string',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setPaypalSubject(paypalSubject) {\n return this.setProperty('paypal.subject', paypalSubject);\n }\n\n getPaypalSubject(def) {\n return this.getProperty('paypal.subject', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport ProductModule from '../entities/ProductModule';\n\nexport default (item) => new ProductModule(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Product module entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the product module. Vendor can assign\n * this number when creating a product module or let NetLicensing generate one. Read-only after creation of the first\n * licensee for the product.\n * @property string number\n *\n * If set to false, the product module is disabled. Licensees can not obtain any new licenses for this\n * product module.\n * @property boolean active\n *\n * Product module name that is visible to the end customers in NetLicensing Shop.\n * @property string name\n *\n * Licensing model applied to this product module. Defines what license templates can be\n * configured for the product module and how licenses for this product module are processed during validation.\n * @property string licensingModel\n *\n * Maximum checkout validity (days). Mandatory for 'Floating' licensing model.\n * @property integer maxCheckoutValidity\n *\n * Remaining time volume for yellow level. Mandatory for 'Rental' licensing model.\n * @property integer yellowThreshold\n *\n * Remaining time volume for red level. Mandatory for 'Rental' licensing model.\n * @property integer redThreshold\n *\n * License template. Mandatory for 'Try & Buy' licensing model. Supported types: \"TIMEVOLUME\", \"FEATURE\".\n * @property string licenseTemplate\n *\n * Licensee secret mode for product.Supported types: \"PREDEFINED\", \"CLIENT\"\n * @property boolean licenseeSecretMode\n *\n * @constructor\n */\nexport default class ProductModule extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n licensingModel: 'string',\n maxCheckoutValidity: 'int',\n yellowThreshold: 'int',\n redThreshold: 'int',\n licenseTemplate: 'string',\n inUse: 'boolean',\n licenseeSecretMode: 'string',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setLicensingModel(licensingModel) {\n return this.setProperty('licensingModel', licensingModel);\n }\n\n getLicensingModel(def) {\n return this.getProperty('licensingModel', def);\n }\n\n setMaxCheckoutValidity(maxCheckoutValidity) {\n return this.setProperty('maxCheckoutValidity', maxCheckoutValidity);\n }\n\n getMaxCheckoutValidity(def) {\n return this.getProperty('maxCheckoutValidity', def);\n }\n\n setYellowThreshold(yellowThreshold) {\n return this.setProperty('yellowThreshold', yellowThreshold);\n }\n\n getYellowThreshold(def) {\n return this.getProperty('yellowThreshold', def);\n }\n\n setRedThreshold(redThreshold) {\n return this.setProperty('redThreshold', redThreshold);\n }\n\n getRedThreshold(def) {\n return this.getProperty('redThreshold', def);\n }\n\n setLicenseTemplate(licenseTemplate) {\n return this.setProperty('licenseTemplate', licenseTemplate);\n }\n\n getLicenseTemplate(def) {\n return this.getProperty('licenseTemplate', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n\n setLicenseeSecretMode(licenseeSecretMode) {\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\n }\n\n getLicenseeSecretMode(def) {\n return this.getProperty('licenseeSecretMode', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport Product from '../entities/Product';\n\nexport default (item) => {\n const object = itemToObject(item);\n\n const discounts = object.discount;\n\n delete object.discount;\n\n const product = new Product(object);\n product.setProductDiscounts(discounts);\n\n return product;\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\nimport ProductDiscount from './ProductDiscount';\n\n/**\n * The discounts map\n * @type {{}}\n * @private\n */\nconst discountsMap = new WeakMap();\n\n/**\n * An identifier that show if discounts was touched\n * @type {{}}\n * @private\n */\nconst discountsTouched = new WeakMap();\n\n/**\n * NetLicensing Product entity.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number that identifies the product. Vendor can assign this number when creating a product or\n * let NetLicensing generate one. Read-only after creation of the first licensee for the product.\n * @property string number\n *\n * If set to false, the product is disabled. No new licensees can be registered for the product,\n * existing licensees can not obtain new licenses.\n * @property boolean active\n *\n * Product name. Together with the version identifies the product for the end customer.\n * @property string name\n *\n * Product version. Convenience parameter, additional to the product name.\n * @property float version\n *\n * If set to 'true', non-existing licensees will be created at first validation attempt.\n * @property boolean licenseeAutoCreate\n *\n * Licensee secret mode for product.Supported types: \"DISABLED\", \"PREDEFINED\", \"CLIENT\"\n * @property boolean licenseeSecretMode\n *\n * Product description. Optional.\n * @property string description\n *\n * Licensing information. Optional.\n * @property string licensingInfo\n *\n * @property boolean inUse\n *\n * Arbitrary additional user properties of string type may be associated with each product. The name of user property\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted.\n *\n * @constructor\n */\nexport default class Product extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n version: 'string',\n description: 'string',\n licensingInfo: 'string',\n licenseeAutoCreate: 'boolean',\n licenseeSecretMode: 'string',\n inUse: 'boolean',\n },\n });\n\n discountsMap.set(this, []);\n discountsTouched.set(this, false);\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setVersion(version) {\n return this.setProperty('version', version);\n }\n\n getVersion(def) {\n return this.getProperty('version', def);\n }\n\n setLicenseeAutoCreate(licenseeAutoCreate) {\n return this.setProperty('licenseeAutoCreate', licenseeAutoCreate);\n }\n\n getLicenseeAutoCreate(def) {\n return this.getProperty('licenseeAutoCreate', def);\n }\n\n /**\n * @deprecated use ProductModule.setLicenseeSecretMode instead\n */\n setLicenseeSecretMode(licenseeSecretMode) {\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\n }\n\n /**\n * @deprecated use ProductModule.getLicenseeSecretMode instead\n */\n getLicenseeSecretMode(def) {\n return this.getProperty('licenseeSecretMode', def);\n }\n\n setDescription(description) {\n return this.setProperty('description', description);\n }\n\n getDescription(def) {\n return this.getProperty('description', def);\n }\n\n setLicensingInfo(licensingInfo) {\n return this.setProperty('licensingInfo', licensingInfo);\n }\n\n getLicensingInfo(def) {\n return this.getProperty('licensingInfo', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n\n /**\n * Add discount to product\n *\n * @param discount NetLicensing.ProductDiscount\n * @returns {NetLicensing.Product}\n */\n addDiscount(discount) {\n const discounts = discountsMap.get(this);\n\n let productDiscount = discount;\n\n if (typeof productDiscount !== 'string' && !(productDiscount instanceof ProductDiscount)) {\n productDiscount = new ProductDiscount(productDiscount);\n }\n\n discounts.push(productDiscount);\n discountsMap.set(this, discounts);\n discountsTouched.set(this, true);\n\n return this;\n }\n\n /**\n * Set discounts to product\n * @param discounts\n */\n setProductDiscounts(discounts) {\n discountsMap.set(this, []);\n discountsTouched.set(this, true);\n\n if (!discounts) return this;\n\n if (Array.isArray(discounts)) {\n discounts.forEach((discount) => {\n this.addDiscount(discount);\n });\n\n return this;\n }\n\n this.addDiscount(discounts);\n\n return this;\n }\n\n /**\n * Get array of objects discounts\n * @returns {Array}\n */\n getProductDiscounts() {\n return Object.assign([], discountsMap.get(this));\n }\n\n asPropertiesMap() {\n const propertiesMap = super.asPropertiesMap();\n\n if (discountsMap.get(this).length) {\n propertiesMap.discount = discountsMap.get(this).map((discount) => discount.toString());\n }\n\n if (!propertiesMap.discount && discountsTouched.get(this)) {\n propertiesMap.discount = '';\n }\n\n return propertiesMap;\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nimport BaseEntity from './BaseEntity';\n\nexport default class ProductDiscount extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n totalPrice: 'float',\n currency: 'string',\n amountFix: 'float',\n amountPercent: 'int',\n },\n });\n }\n\n setTotalPrice(totalPrice) {\n return this.setProperty('totalPrice', totalPrice);\n }\n\n getTotalPrice(def) {\n return this.getProperty('totalPrice', def);\n }\n\n setCurrency(currency) {\n return this.setProperty('currency', currency);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n\n setAmountFix(amountFix) {\n return this.setProperty('amountFix', amountFix).removeProperty('amountPercent');\n }\n\n getAmountFix(def) {\n return this.getProperty('amountFix', def);\n }\n\n setAmountPercent(amountPercent) {\n return this.setProperty('amountPercent', amountPercent).removeProperty('amountFix');\n }\n\n getAmountPercent(def) {\n return this.getProperty('amountPercent', def);\n }\n\n toString() {\n const totalPrice = this.getTotalPrice();\n const currency = this.getCurrency();\n let amount = 0;\n\n if (this.getAmountFix(null)) amount = this.getAmountFix();\n if (this.getAmountPercent(null)) amount = `${this.getAmountPercent()}%`;\n\n return `${totalPrice};${currency};${amount}`;\n }\n}\n","import itemToObject from './itemToObject';\nimport Token from '../entities/Token';\n\nexport default (item) => new Token(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Product module entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number\n * @property string number\n *\n * If set to false, the token is disabled.\n * @property boolean active\n *\n * Expiration Time\n * @property string expirationTime\n *\n * @property string vendorNumber\n *\n * Token type to be generated.\n * DEFAULT - default one-time token (will be expired after first request)\n * SHOP - shop token is used to redirect customer to the netlicensingShop(licenseeNumber is mandatory)\n * APIKEY - APIKey-token\n * @property string tokenType\n *\n * @property string licenseeNumber\n *\n * @constructor\n */\nexport default class Token extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n expirationTime: 'date',\n vendorNumber: 'string',\n tokenType: 'string',\n licenseeNumber: 'string',\n successURL: 'string',\n successURLTitle: 'string',\n cancelURL: 'string',\n cancelURLTitle: 'string',\n shopURL: 'string',\n },\n });\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setExpirationTime(expirationTime) {\n return this.setProperty('expirationTime', expirationTime);\n }\n\n getExpirationTime(def) {\n return this.getProperty('expirationTime', def);\n }\n\n setVendorNumber(vendorNumber) {\n return this.setProperty('vendorNumber', vendorNumber);\n }\n\n getVendorNumber(def) {\n return this.getProperty('vendorNumber', def);\n }\n\n setTokenType(tokenType) {\n return this.setProperty('tokenType', tokenType);\n }\n\n getTokenType(def) {\n return this.getProperty('tokenType', def);\n }\n\n setLicenseeNumber(licenseeNumber) {\n return this.setProperty('licenseeNumber', licenseeNumber);\n }\n\n getLicenseeNumber(def) {\n return this.getProperty('licenseeNumber', def);\n }\n\n setSuccessURL(successURL) {\n return this.setProperty('successURL', successURL);\n }\n\n getSuccessURL(def) {\n return this.getProperty('successURL', def);\n }\n\n setSuccessURLTitle(successURLTitle) {\n return this.setProperty('successURLTitle', successURLTitle);\n }\n\n getSuccessURLTitle(def) {\n return this.getProperty('successURLTitle', def);\n }\n\n setCancelURL(cancelURL) {\n return this.setProperty('cancelURL', cancelURL);\n }\n\n getCancelURL(def) {\n return this.getProperty('cancelURL', def);\n }\n\n setCancelURLTitle(cancelURLTitle) {\n return this.setProperty('cancelURLTitle', cancelURLTitle);\n }\n\n getCancelURLTitle(def) {\n return this.getProperty('cancelURLTitle', def);\n }\n\n getShopURL(def) {\n return this.getProperty('shopURL', def);\n }\n\n /**\n * @deprecated\n * @alias setApiKeyRole\n * @param role\n * @returns {*}\n */\n setRole(role) {\n return this.setApiKeyRole(role);\n }\n\n /**\n * @deprecated\n * @alias getApiKeyRole\n * @param def\n * @returns {*}\n */\n getRole(def) {\n return this.getApiKeyRole(def);\n }\n\n setApiKeyRole(apiKeyRole) {\n return this.setProperty('apiKeyRole', apiKeyRole);\n }\n\n getApiKeyRole(def) {\n return this.getProperty('apiKeyRole', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport Transaction from '../entities/Transaction';\nimport License from '../entities/License';\nimport LicenseTransactionJoin from '../entities/LicenseTransactionJoin';\nimport Constants from '../Constants';\n\nexport default (item) => {\n const object = itemToObject(item);\n\n const { licenseTransactionJoin } = object;\n\n delete object.licenseTransactionJoin;\n\n const transaction = new Transaction(object);\n\n if (licenseTransactionJoin) {\n const joins = [];\n\n licenseTransactionJoin.forEach((v) => {\n const join = new LicenseTransactionJoin();\n join.setLicense(new License({ number: v[Constants.License.LICENSE_NUMBER] }));\n join.setTransaction(new Transaction({ number: v[Constants.Transaction.TRANSACTION_NUMBER] }));\n\n joins.push(join);\n });\n\n transaction.setLicenseTransactionJoins(joins);\n }\n\n return transaction;\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\nimport LicenseTransactionJoin from './LicenseTransactionJoin';\nimport License from './License';\n\n/**\n * Transaction entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the transaction. This number is\n * always generated by NetLicensing.\n * @property string number\n *\n * always true for transactions\n * @property boolean active\n *\n * Status of transaction. \"CANCELLED\", \"CLOSED\", \"PENDING\".\n * @property string status\n *\n * \"SHOP\". AUTO transaction for internal use only.\n * @property string source\n *\n * grand total for SHOP transaction (see source).\n * @property float grandTotal\n *\n * discount for SHOP transaction (see source).\n * @property float discount\n *\n * specifies currency for money fields (grandTotal and discount). Check data types to discover which\n * @property string currency\n *\n * Date created. Optional.\n * @property string dateCreated\n *\n * Date closed. Optional.\n * @property string dateClosed\n *\n * @constructor\n */\nexport default class Transaction extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n name: 'string',\n status: 'string',\n source: 'string',\n grandTotal: 'float',\n discount: 'float',\n currency: 'string',\n dateCreated: 'date',\n dateClosed: 'date',\n active: 'boolean',\n paymentMethod: 'string',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setStatus(status) {\n return this.setProperty('status', status);\n }\n\n getStatus(def) {\n return this.getProperty('status', def);\n }\n\n setSource(source) {\n return this.setProperty('source', source);\n }\n\n getSource(def) {\n return this.getProperty('source', def);\n }\n\n setGrandTotal(grandTotal) {\n return this.setProperty('grandTotal', grandTotal);\n }\n\n getGrandTotal(def) {\n return this.getProperty('grandTotal', def);\n }\n\n setDiscount(discount) {\n return this.setProperty('discount', discount);\n }\n\n getDiscount(def) {\n return this.getProperty('discount', def);\n }\n\n setCurrency(currency) {\n return this.setProperty('currency', currency);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n\n setDateCreated(dateCreated) {\n return this.setProperty('dateCreated', dateCreated);\n }\n\n getDateCreated(def) {\n return this.getProperty('dateCreated', def);\n }\n\n setDateClosed(dateClosed) {\n return this.setProperty('dateClosed', dateClosed);\n }\n\n getDateClosed(def) {\n return this.getProperty('dateClosed', def);\n }\n\n setPaymentMethod(paymentMethod) {\n return this.setProperty('paymentMethod', paymentMethod);\n }\n\n getPaymentMethod(def) {\n return this.getProperty('paymentMethod', def);\n }\n\n setActive() {\n return this.setProperty('active', true);\n }\n\n getLicenseTransactionJoins(def) {\n return this.getProperty('licenseTransactionJoins', def);\n }\n\n setLicenseTransactionJoins(licenseTransactionJoins) {\n return this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\n }\n\n setListLicenseTransactionJoin(properties) {\n if (!properties) return;\n\n const licenseTransactionJoins = this.getProperty('licenseTransactionJoins', []);\n const licenseTransactionJoin = new LicenseTransactionJoin();\n\n properties.forEach((property) => {\n if (property.name === 'licenseNumber') {\n licenseTransactionJoin.setLicense(new License({ number: property.value }));\n }\n\n if (property.name === 'transactionNumber') {\n licenseTransactionJoin.setTransaction(new Transaction({ number: property.value }));\n }\n });\n\n licenseTransactionJoins.push(licenseTransactionJoin);\n this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\n }\n}\n","import itemToObject from './itemToObject';\nimport Country from '../entities/Country';\n\nexport default (item) => new Country(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Country entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * @property code - Unique code of country.\n *\n * @property name - Unique name of country\n *\n * @property vatPercent - Country vat.\n *\n * @property isEu - is country in EU.\n */\nexport default class Country extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n code: 'string',\n name: 'string',\n vatPercent: 'int',\n isEu: 'boolean',\n },\n });\n }\n\n setCode(code) {\n return this.setProperty('code', code);\n }\n\n getCode(def) {\n return this.getProperty('code', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setVatPercent(vat) {\n return this.setProperty('vatPercent', vat);\n }\n\n getVatPercent(def) {\n return this.getProperty('vatPercent', def);\n }\n\n setIsEu(isEu) {\n return this.setProperty('isEu', isEu);\n }\n\n getIsEu(def) {\n return this.getProperty('isEu', def);\n }\n}\n","// Constants\nimport Constants from './Constants';\n\n// VO\nimport Context from './vo/Context';\nimport Page from './vo/Page';\nimport ValidationParameters from './vo/ValidationParameters';\nimport ValidationResults from './vo/ValidationResults';\n\n// Services\nimport Service from './services/Service';\nimport LicenseeService from './services/LicenseeService';\nimport LicenseService from './services/LicenseService';\nimport LicenseTemplateService from './services/LicenseTemplateService';\nimport PaymentMethodService from './services/PaymentMethodService';\nimport ProductModuleService from './services/ProductModuleService';\nimport ProductService from './services/ProductService';\nimport TokenService from './services/TokenService';\nimport TransactionService from './services/TransactionService';\nimport UtilityService from './services/UtilityService';\n\n// Entities\nimport BaseEntity from './entities/BaseEntity';\nimport Country from './entities/Country';\nimport License from './entities/License';\nimport Licensee from './entities/Licensee';\nimport LicenseTemplate from './entities/LicenseTemplate';\nimport PaymentMethod from './entities/PaymentMethod';\nimport Product from './entities/Product';\nimport ProductDiscount from './entities/ProductDiscount';\nimport ProductModule from './entities/ProductModule';\nimport Token from './entities/Token';\nimport Transaction from './entities/Transaction';\nimport LicenseTransactionJoin from './entities/LicenseTransactionJoin';\n\n// Converters\nimport itemToCountry from './converters/itemToCountry';\nimport itemToLicense from './converters/itemToLicense';\nimport itemToLicensee from './converters/itemToLicensee';\nimport itemToLicenseTemplate from './converters/itemToLicenseTemplate';\nimport itemToObject from './converters/itemToObject';\nimport itemToPaymentMethod from './converters/itemToPaymentMethod';\nimport itemToProduct from './converters/itemToProduct';\nimport itemToProductModule from './converters/itemToProductModule';\nimport itemToToken from './converters/itemToToken';\nimport itemToTransaction from './converters/itemToTransaction';\n\n// Utils\nimport CastsUtils from './util/CastsUtils';\nimport CheckUtils from './util/CheckUtils';\nimport FilterUtils from './util/FilterUtils';\n\n// Errors\nimport NlicError from './errors/NlicError';\n\n// Create the default instance to be exported\nconst NetLicensing = {\n // Constants\n Constants,\n\n // Expose VO\n Context,\n Page,\n ValidationParameters,\n ValidationResults,\n\n // Expose Services\n Service,\n LicenseeService,\n LicenseService,\n LicenseTemplateService,\n PaymentMethodService,\n ProductModuleService,\n ProductService,\n TokenService,\n TransactionService,\n UtilityService,\n\n // Expose Entities\n BaseEntity,\n Country,\n License,\n Licensee,\n LicenseTemplate,\n PaymentMethod,\n Product,\n ProductDiscount,\n ProductModule,\n Token,\n Transaction,\n LicenseTransactionJoin,\n\n // Expose Converters\n itemToCountry,\n itemToLicense,\n itemToLicensee,\n itemToLicenseTemplate,\n itemToObject,\n itemToPaymentMethod,\n itemToProduct,\n itemToProductModule,\n itemToToken,\n itemToTransaction,\n\n // Expose Utils\n CastsUtils,\n CheckUtils,\n FilterUtils,\n\n // Errors\n NlicError,\n};\n\nmodule.exports = NetLicensing;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = NetLicensing;\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nimport Constants from '../Constants';\nimport CheckUtils from '../util/CheckUtils';\n\n/**\n * The context values.\n * @type {{}}\n * @private\n */\nconst valuesMap = new WeakMap();\n\n/**\n * List of values that was defined\n * @type {{}}\n * @private\n */\nconst definedMap = new WeakMap();\n\n/**\n * Context defaults\n * @type {{baseUrl: string, securityMode}}\n * @private\n */\nconst defaultsMap = new WeakMap();\n\nexport default class Context {\n constructor(values) {\n defaultsMap.set(this, {\n baseUrl: 'https://go.netlicensing.io/core/v2/rest',\n securityMode: Constants.BASIC_AUTHENTICATION,\n });\n\n valuesMap.set(this, {});\n\n definedMap.set(this, {});\n\n this.setValues({ ...defaultsMap.get(this), ...values });\n }\n\n setBaseUrl(baseUrl) {\n return this.setValue('baseUrl', baseUrl);\n }\n\n getBaseUrl(def) {\n return this.getValue('baseUrl', def);\n }\n\n setUsername(username) {\n return this.setValue('username', username);\n }\n\n getUsername(def) {\n return this.getValue('username', def);\n }\n\n setPassword(password) {\n return this.setValue('password', password);\n }\n\n getPassword(def) {\n return this.getValue('password', def);\n }\n\n setApiKey(apiKey) {\n return this.setValue('apiKey', apiKey);\n }\n\n getApiKey(def) {\n return this.getValue('apiKey', def);\n }\n\n setSecurityMode(securityMode) {\n return this.setValue('securityMode', securityMode);\n }\n\n getSecurityMode(def) {\n return this.getValue('securityMode', def);\n }\n\n setVendorNumber(vendorNumber) {\n return this.setValue('vendorNumber', vendorNumber);\n }\n\n getVendorNumber(def) {\n return this.getValue('vendorNumber', def);\n }\n\n /**\n * Set a given values on the context.\n * @param key\n * @param value\n * @returns {Context}\n */\n setValue(key, value) {\n // check values\n if (!CheckUtils.isValid(key) || typeof key === 'object') throw new Error(`Bad value key:${key}`);\n if (!CheckUtils.isValid(value)) throw new Error(`Value ${key} has wrong value${value}`);\n\n // define keys\n this.define(key);\n\n let copedValue = value;\n\n if (typeof value === 'object' && value !== null) {\n copedValue = (Array.isArray(value)) ? Object.assign([], value) : ({ ...value });\n }\n\n const values = valuesMap.get(this);\n values[key] = copedValue;\n\n return this;\n }\n\n /**\n * Set the array of context values.\n * @param values\n * @returns {Context}\n */\n setValues(values) {\n this.removeValues();\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(values).forEach((key) => {\n if (has.call(values, key)) {\n this.setValue(key, values[key]);\n }\n });\n\n return this;\n }\n\n /**\n * Get an value from the context.\n * @param key\n * @param def\n * @returns {*}\n */\n getValue(key, def) {\n return (key in valuesMap.get(this))\n ? valuesMap.get(this)[key]\n : def;\n }\n\n /**\n * Get all of the current value on the context.\n */\n getValues() {\n return { ...valuesMap.get(this) };\n }\n\n /**\n * Remove value\n * @param key\n * @returns {Context}\n */\n removeValue(key) {\n const values = valuesMap.get(this);\n delete values[key];\n\n this.removeDefine(key);\n return this;\n }\n\n /**\n * Remove values\n * @param keys\n */\n removeValues(keys) {\n const keysAr = keys || Object.keys(valuesMap.get(this));\n keysAr.forEach((key) => this.removeValue(key));\n }\n\n /**\n * Define value getter and setter\n * @param key\n * @param onlyGetter\n * @private\n */\n define(key, onlyGetter) {\n if (this.hasDefine(key)) return;\n\n if (!CheckUtils.isValid(key) || typeof property === 'object') {\n throw new TypeError(`Bad value name:${key}`);\n }\n\n const self = this;\n\n // delete property\n delete this[key];\n\n const descriptors = {\n enumerable: true,\n configurable: true,\n get() {\n return self.getValue(key);\n },\n };\n\n if (!onlyGetter) {\n descriptors.set = (value) => self.setValue(key, value);\n }\n\n const defined = definedMap.get(this);\n defined[key] = true;\n\n Object.defineProperty(this, key, descriptors);\n }\n\n /**\n * Check if value has defined\n * @param key\n * @private\n */\n hasDefine(key) {\n return Boolean(definedMap.get(this)[key]);\n }\n\n /**\n * Remove value getter and setter\n * @param key\n * @private\n */\n removeDefine(key) {\n if (!this.hasDefine(key)) return;\n\n const defined = definedMap.get(this);\n delete defined[key];\n\n delete this[key];\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\n/**\n * Validation parameters map\n *\n * @type {WeakMap}\n */\nconst vpMap = new WeakMap();\n\nexport default class ValidationParameters {\n constructor() {\n vpMap.set(this, { parameters: {} });\n }\n\n /**\n * Sets the target product\n *\n * optional productNumber, must be provided in case licensee auto-create is enabled\n * @param productNumber\n * @returns {ValidationParameters}\n */\n setProductNumber(productNumber) {\n vpMap.get(this).productNumber = productNumber;\n return this;\n }\n\n /**\n * Get the target product\n * @returns {*}\n */\n getProductNumber() {\n return vpMap.get(this).productNumber;\n }\n\n /**\n * Sets the name for the new licensee\n *\n * optional human-readable licensee name in case licensee will be auto-created. This parameter must not\n * be the name, but can be used to store any other useful string information with new licensees, up to\n * 1000 characters.\n * @param licenseeName\n * @returns {NetLicensing.ValidationParameters}\n */\n setLicenseeName(licenseeName) {\n vpMap.get(this).licenseeName = licenseeName;\n return this;\n }\n\n /**\n * Get the licensee name\n * @returns {*}\n */\n getLicenseeName() {\n return vpMap.get(this).licenseeName;\n }\n\n /**\n * Sets the licensee secret\n *\n * licensee secret stored on the client side. Refer to Licensee Secret documentation for details.\n * @param licenseeSecret\n * @returns {ValidationParameters}\n * @deprecated use 'NodeLocked' licensingModel instead\n */\n setLicenseeSecret(licenseeSecret) {\n vpMap.get(this).licenseeSecret = licenseeSecret;\n return this;\n }\n\n /**\n * Get the licensee secret\n * @returns {*}\n * @deprecated use 'NodeLocked' licensingModel instead\n */\n getLicenseeSecret() {\n return vpMap.get(this).licenseeSecret;\n }\n\n /**\n * Get validation parameters\n * @returns {*}\n */\n getParameters() {\n return { ...vpMap.get(this).parameters };\n }\n\n getProductModuleValidationParameters(productModuleNumber) {\n return { ...vpMap.get(this).parameters[productModuleNumber] };\n }\n\n setProductModuleValidationParameters(productModuleNumber, productModuleParameters) {\n const { parameters } = vpMap.get(this);\n\n if (parameters[productModuleNumber] === undefined || !Object.keys(parameters[productModuleNumber]).length) {\n parameters[productModuleNumber] = {};\n }\n\n parameters[productModuleNumber] = Object.assign(parameters[productModuleNumber], productModuleParameters);\n\n return this;\n }\n}\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","(function () {\n \"use strict\";\n\n function btoa(str) {\n var buffer;\n\n if (str instanceof Buffer) {\n buffer = str;\n } else {\n buffer = Buffer.from(str.toString(), 'binary');\n }\n\n return buffer.toString('base64');\n }\n\n module.exports = btoa;\n}());\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = require('base64-js')\nvar ieee754 = require('ieee754')\nvar isArray = require('isarray')\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n return arr.foo() === 42 && // typed array instances can be augmented\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length)\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length)\n }\n that.length = length\n }\n\n return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype\n return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true\n })\n }\n}\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n}\n\nfunction alloc (that, size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n assertSize(size)\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0\n }\n }\n return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0\n that = createBuffer(that, length)\n\n var actual = that.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual)\n }\n\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n that = createBuffer(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array)\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset)\n } else {\n array = new Uint8Array(array, byteOffset, length)\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array)\n }\n return that\n}\n\nfunction fromObject (that, obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n that = createBuffer(that, len)\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len)\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string\n }\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return ''\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!Buffer.isBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end)\n newBuf.__proto__ = Buffer.prototype\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start]\n }\n }\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if (code < 256) {\n val = code\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString())\n var len = bytes.length\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\nfunction isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n}\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n for (var i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(\n uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)\n ))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","exports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeFunction = require(\"./isNativeFunction\");\n\nvar construct = require(\"./construct\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;","function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport ValidationResults from '../vo/ValidationResults';\nimport itemToLicensee from '../converters/itemToLicensee';\nimport Page from '../vo/Page';\nimport itemToObject from '../converters/itemToObject';\n\n/**\n * JS representation of the Licensee Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/licensee-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new licensee object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#create-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent product to which the new licensee is to be added\n * @param productNumber string\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param licensee NetLicensing.Licensee\n *\n * return the newly created licensee object in promise\n * @returns {Promise}\n */\n async create(context, productNumber, licensee) {\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\n\n licensee.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Licensee.ENDPOINT_PATH, licensee.asPropertiesMap());\n\n return itemToLicensee(item);\n },\n\n /**\n * Gets licensee by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#get-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the licensee number\n * @param number string\n *\n * return the licensee in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`);\n\n return itemToLicensee(item);\n },\n\n /**\n * Returns all licensees of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#licensees-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of licensees (of all products) or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.Licensee.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToLicensee(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates licensee properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#update-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * licensee number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param licensee NetLicensing.Licensee\n *\n * return updated licensee in promise.\n * @returns {Promise}\n */\n async update(context, number, licensee) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, licensee.asPropertiesMap());\n\n return itemToLicensee(item);\n },\n\n /**\n * Deletes licensee.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#delete-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * licensee number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service\n .delete(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, queryParams);\n },\n\n /**\n * Validates active licenses of the licensee. See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#validate-licensee\n *\n * @param context NetLicensing.Context\n *\n * licensee number\n * @param number string\n *\n * optional validation parameters. See ValidationParameters and licensing model documentation for\n * details.\n * @param validationParameters NetLicensing.ValidationParameters.\n *\n * @returns {ValidationResults}\n */\n async validate(context, number, validationParameters) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = {};\n\n if (validationParameters.getProductNumber()) {\n queryParams.productNumber = validationParameters.getProductNumber();\n }\n\n if (validationParameters.getLicenseeName()) {\n queryParams.licenseeName = validationParameters.getLicenseeName();\n }\n\n if (validationParameters.getLicenseeSecret()) {\n queryParams.licenseeSecret = validationParameters.getLicenseeSecret();\n }\n\n let pmIndex = 0;\n const parameters = validationParameters.getParameters();\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(parameters).forEach((productModuleName) => {\n queryParams[`${Constants.ProductModule.PRODUCT_MODULE_NUMBER}${pmIndex}`] = productModuleName;\n if (!has.call(parameters, productModuleName)) return;\n\n const parameter = parameters[productModuleName];\n\n Object.keys(parameter).forEach((key) => {\n if (has.call(parameter, key)) {\n queryParams[key + pmIndex] = parameter[key];\n }\n });\n pmIndex += 1;\n });\n\n const { data: { items: { item: items }, ttl } } = await Service.post(\n context,\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_VALIDATE}`,\n queryParams,\n );\n\n const validationResults = new ValidationResults();\n validationResults.setTtl(ttl);\n\n items.forEach((v) => {\n const item = itemToObject(v);\n validationResults.setProductModuleValidation(item[Constants.ProductModule.PRODUCT_MODULE_NUMBER], item);\n });\n\n return validationResults;\n },\n\n\n /**\n * Transfer licenses between licensees.\n * @see https://netlicensing.io/wiki/licensee-services#transfer-licenses\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the number of the licensee receiving licenses\n * @param number string\n *\n * the number of the licensee delivering licenses\n * @param sourceLicenseeNumber string\n *\n * @returns {Promise}\n */\n transfer(context, number, sourceLicenseeNumber) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n CheckUtils.paramNotEmpty(sourceLicenseeNumber, Constants.Licensee.SOURCE_LICENSEE_NUMBER);\n\n const queryParams = { sourceLicenseeNumber };\n\n return Service\n .post(\n context,\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_TRANSFER}`,\n queryParams,\n );\n },\n};\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) {\n return;\n }\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nmodule.exports = _nonIterableRest;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToLicense from '../converters/itemToLicense';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the License Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/license-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new license object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#create-license\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent licensee to which the new license is to be added\n * @param licenseeNumber string\n *\n * license template that the license is created from\n * @param licenseTemplateNumber string\n *\n * For privileged logins specifies transaction for the license creation. For regular logins new\n * transaction always created implicitly, and the operation will be in a separate transaction.\n * Transaction is generated with the provided transactionNumber, or, if transactionNumber is null, with\n * auto-generated number.\n * @param transactionNumber null|string\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param license NetLicensing.License\n *\n * return the newly created license object in promise\n * @returns {Promise}\n */\n async create(context, licenseeNumber, licenseTemplateNumber, transactionNumber, license) {\n CheckUtils.paramNotEmpty(licenseeNumber, Constants.Licensee.LICENSEE_NUMBER);\n CheckUtils.paramNotEmpty(licenseTemplateNumber, Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER);\n\n license.setProperty(Constants.Licensee.LICENSEE_NUMBER, licenseeNumber);\n license.setProperty(Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER, licenseTemplateNumber);\n\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.License.ENDPOINT_PATH, license.asPropertiesMap());\n\n return itemToLicense(item);\n },\n\n\n /**\n * Gets license by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#get-license\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the license number\n * @param number string\n *\n * return the license in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.License.ENDPOINT_PATH}/${number}`);\n\n return itemToLicense(item);\n },\n\n /**\n * Returns licenses of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#licenses-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * return array of licenses (of all products) or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.License.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToLicense(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates license properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#update-license\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license number\n * @param number string\n *\n * transaction for the license update. Created implicitly if transactionNumber is null. In this case the\n * operation will be in a separate transaction.\n * @param transactionNumber string|null\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param license NetLicensing.License\n *\n * return updated license in promise.\n * @returns {Promise}\n */\n async update(context, number, transactionNumber, license) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.License.ENDPOINT_PATH}/${number}`, license.asPropertiesMap());\n\n return itemToLicense(item);\n },\n\n /**\n * Deletes license.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#delete-license\n *\n * When any license is deleted, corresponding transaction is created automatically.\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service\n .delete(context, `${Constants.License.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToLicenseTemplate from '../converters/itemToLicenseTemplate';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/license-template-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new license template object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#create-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent product module to which the new license template is to be added\n * @param productModuleNumber\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param licenseTemplate NetLicensing.LicenseTemplate\n *\n * the newly created license template object in promise\n * @returns {Promise}\n */\n async create(context, productModuleNumber, licenseTemplate) {\n CheckUtils.paramNotEmpty(productModuleNumber, Constants.ProductModule.PRODUCT_MODULE_NUMBER);\n\n licenseTemplate.setProperty(Constants.ProductModule.PRODUCT_MODULE_NUMBER, productModuleNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.LicenseTemplate.ENDPOINT_PATH, licenseTemplate.asPropertiesMap());\n\n return itemToLicenseTemplate(item);\n },\n\n /**\n * Gets license template by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#get-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the license template number\n * @param number string\n *\n * return the license template object in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`);\n\n return itemToLicenseTemplate(item);\n },\n\n /**\n * Returns all license templates of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#license-templates-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of license templates (of all products/modules) or null/empty list if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.LicenseTemplate.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToLicenseTemplate(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates license template properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#update-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license template number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param licenseTemplate NetLicensing.LicenseTemplate\n *\n * updated license template in promise.\n * @returns {Promise}\n */\n async update(context, number, licenseTemplate) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const path = `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`;\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, path, licenseTemplate.asPropertiesMap());\n\n return itemToLicenseTemplate(item);\n },\n\n /**\n * Deletes license template.See NetLicensingAPI JavaDoc for details:\n * @see https://netlicensing.io/wiki/license-template-services#delete-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license template number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service\n .delete(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport CheckUtils from '../util/CheckUtils';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToPaymentMethod from '../converters/itemToPaymentMethod';\nimport Page from '../vo/Page';\n\nexport default {\n /**\n * Gets payment method by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/payment-method-services#get-payment-method\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the payment method number\n * @param number string\n *\n * return the payment method in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`);\n\n return itemToPaymentMethod(item);\n },\n\n /**\n * Returns payment methods of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/payment-method-services#payment-methods-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of payment method entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.PaymentMethod.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToPaymentMethod(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates payment method properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/payment-method-services#update-payment-method\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the payment method number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param paymentMethod NetLicensing.PaymentMethod\n *\n * return updated payment method in promise.\n * @returns {Promise}\n */\n async update(context, number, paymentMethod) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const path = `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`;\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, path, paymentMethod.asPropertiesMap());\n\n return itemToPaymentMethod(item);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToProductModule from '../converters/itemToProductModule';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/product-module-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new product module object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#create-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent product to which the new product module is to be added\n * @param productNumber string\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param productModule NetLicensing.ProductModule\n *\n * the newly created product module object in promise\n * @returns {Promise}\n */\n async create(context, productNumber, productModule) {\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\n\n productModule.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.ProductModule.ENDPOINT_PATH, productModule.asPropertiesMap());\n\n return itemToProductModule(item);\n },\n\n /**\n * Gets product module by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#get-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the product module number\n * @param number string\n *\n * return the product module object in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`);\n\n return itemToProductModule(item);\n },\n\n /**\n * Returns products of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#product-modules-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of product modules entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service.get(context, Constants.ProductModule.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToProductModule(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates product module properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#update-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product module number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param productModule NetLicensing.ProductModule\n *\n * updated product module in promise.\n * @returns {Promise}\n */\n async update(context, number, productModule) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, productModule.asPropertiesMap());\n\n return itemToProductModule(item);\n },\n\n /**\n * Deletes product module.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#delete-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product module number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service.delete(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Service from './Service';\nimport Constants from '../Constants';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToProduct from '../converters/itemToProduct';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the Product Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/product-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new product with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#create-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param product NetLicensing.Product\n *\n * return the newly created product object in promise\n * @returns {Promise}\n */\n\n async create(context, product) {\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Product.ENDPOINT_PATH, product.asPropertiesMap());\n return itemToProduct(item);\n },\n\n /**\n * Gets product by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#get-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the product number\n * @param number string\n *\n * return the product object in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Product.ENDPOINT_PATH}/${number}`);\n return itemToProduct(item);\n },\n\n /**\n * Returns products of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#products-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of product entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) throw new TypeError(`filter has bad value ${filter}`);\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service.get(context, Constants.Product.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToProduct(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates product properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#update-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param product NetLicensing.Product\n *\n * updated product in promise.\n * @returns {Promise}\n */\n async update(context, number, product) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, product.asPropertiesMap());\n\n return itemToProduct(item);\n },\n\n /**\n * Deletes product.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#delete-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service.delete(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","var superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport Service from './Service';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToToken from '../converters/itemToToken';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the Token Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/token-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new token.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#create-token\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param token NetLicensing.Token\n *\n * return created token in promise\n * @returns {Promise}\n */\n async create(context, token) {\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Token.ENDPOINT_PATH, token.asPropertiesMap());\n\n return itemToToken(item);\n },\n\n /**\n * Gets token by its number..See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#get-token\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the token number\n * @param number\n *\n * return the token in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\n\n return itemToToken(item);\n },\n\n /**\n * Returns tokens of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#tokens-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of token entities or empty array if nothing found.\n * @return array\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.Token.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToToken(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Delete token by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#delete-token\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the token number\n * @param number string\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n return Service\n .delete(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport Service from './Service';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToTransaction from '../converters/itemToTransaction';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the Transaction Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/transaction-services\n *\n * Transaction is created each time change to LicenseService licenses happens. For instance licenses are\n * obtained by a licensee, licenses disabled by vendor, licenses deleted, etc. Transaction is created no matter what\n * source has initiated the change to licenses: it can be either a direct purchase of licenses by a licensee via\n * NetLicensing Shop, or licenses can be given to a licensee by a vendor. Licenses can also be assigned implicitly by\n * NetLicensing if it is defined so by a license model (e.g. evaluation license may be given automatically). All these\n * events are reflected in transactions. Of all the transaction handling routines only read-only routines are exposed to\n * the public API, as transactions are only allowed to be created and modified by NetLicensing internally.\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new transaction object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#create-transaction\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param transaction NetLicensing.Transaction\n *\n * return the newly created transaction object in promise\n * @returns {Promise}\n */\n async create(context, transaction) {\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Transaction.ENDPOINT_PATH, transaction.asPropertiesMap());\n\n return itemToTransaction(item);\n },\n\n /**\n * Gets transaction by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#get-transaction\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the transaction number\n * @param number string\n *\n * return the transaction in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`);\n\n return itemToTransaction(item);\n },\n\n /**\n * Returns all transactions of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#transactions-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string\n *\n * array of transaction entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.Transaction.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToTransaction(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates transaction properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#update-transaction\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * transaction number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param transaction NetLicensing.Transaction\n *\n * return updated transaction in promise.\n * @returns {Promise}\n */\n async update(context, number, transaction) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`, transaction.asPropertiesMap());\n\n return itemToTransaction(item);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport Service from './Service';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToObject from '../converters/itemToObject';\nimport Page from '../vo/Page';\nimport itemToCountry from '../converters/itemToCountry';\n\n/**\n * JS representation of the Utility Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/utility-services\n * @constructor\n */\n\nexport default {\n /**\n * Returns all license types. See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/utility-services#license-types-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * array of available license types or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async listLicenseTypes(context) {\n const { data } = await Service\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSE_TYPES}`);\n\n return Page(\n data.items.item.map((v) => itemToObject(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Returns all license models. See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/utility-services#licensing-models-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * array of available license models or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async listLicensingModels(context) {\n const { data } = await Service\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSING_MODELS}`);\n\n return Page(\n data.items.item.map((v) => itemToObject(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Returns all countries.\n *\n * determines the vendor on whose behalf the call is performed\n * @param context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter\n *\n * collection of available countries or null/empty list if nothing found in promise.\n * @returns {Promise}\n */\n async listCountries(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(\n context,\n `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_COUNTRIES}`,\n queryParams,\n );\n\n return Page(\n data.items.item.map((v) => itemToCountry(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n};\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/netlicensing-client.node.js b/dist/netlicensing-client.node.js index 717eef8..7dd2186 100644 --- a/dist/netlicensing-client.node.js +++ b/dist/netlicensing-client.node.js @@ -7446,7 +7446,7 @@ module.exports = require("zlib"); /* 88 */ /***/ (function(module) { -module.exports = JSON.parse("{\"_from\":\"axios@0.19.2\",\"_id\":\"axios@0.19.2\",\"_inBundle\":false,\"_integrity\":\"sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==\",\"_location\":\"/axios\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"version\",\"registry\":true,\"raw\":\"axios@0.19.2\",\"name\":\"axios\",\"escapedName\":\"axios\",\"rawSpec\":\"0.19.2\",\"saveSpec\":null,\"fetchSpec\":\"0.19.2\"},\"_requiredBy\":[\"#USER\",\"/\"],\"_resolved\":\"https://registry.npmjs.org/axios/-/axios-0.19.2.tgz\",\"_shasum\":\"3ea36c5d8818d0d5f8a8a97a6d36b86cdc00cb27\",\"_spec\":\"axios@0.19.2\",\"_where\":\"D:\\\\OSPanel\\\\domains\\\\nlic-js-library\",\"author\":{\"name\":\"Matt Zabriskie\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"bundleDependencies\":false,\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}],\"dependencies\":{\"follow-redirects\":\"1.5.10\"},\"deprecated\":false,\"description\":\"Promise based HTTP client for the browser and node.js\",\"devDependencies\":{\"bundlesize\":\"^0.17.0\",\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.0.2\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^20.1.0\",\"grunt-karma\":\"^2.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^1.0.18\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^1.3.0\",\"karma-chrome-launcher\":\"^2.2.0\",\"karma-coverage\":\"^1.1.1\",\"karma-firefox-launcher\":\"^1.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-opera-launcher\":\"^1.0.0\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^1.2.0\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.7\",\"karma-webpack\":\"^1.7.0\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^5.2.0\",\"sinon\":\"^4.5.0\",\"typescript\":\"^2.8.1\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^1.13.1\",\"webpack-dev-server\":\"^1.14.1\"},\"homepage\":\"https://github.com/axios/axios\",\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"license\":\"MIT\",\"main\":\"index.js\",\"name\":\"axios\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/axios/axios.git\"},\"scripts\":{\"build\":\"NODE_ENV=production grunt build\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"examples\":\"node ./examples/server.js\",\"fix\":\"eslint --fix lib/**/*.js\",\"postversion\":\"git push && git push --tags\",\"preversion\":\"npm test\",\"start\":\"node ./sandbox/server.js\",\"test\":\"grunt test && bundlesize\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\"},\"typings\":\"./index.d.ts\",\"version\":\"0.19.2\"}"); +module.exports = JSON.parse("{\"_from\":\"axios@^0.19.2\",\"_id\":\"axios@0.19.2\",\"_inBundle\":false,\"_integrity\":\"sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==\",\"_location\":\"/axios\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"range\",\"registry\":true,\"raw\":\"axios@^0.19.2\",\"name\":\"axios\",\"escapedName\":\"axios\",\"rawSpec\":\"^0.19.2\",\"saveSpec\":null,\"fetchSpec\":\"^0.19.2\"},\"_requiredBy\":[\"/\"],\"_resolved\":\"https://registry.npmjs.org/axios/-/axios-0.19.2.tgz\",\"_shasum\":\"3ea36c5d8818d0d5f8a8a97a6d36b86cdc00cb27\",\"_spec\":\"axios@^0.19.2\",\"_where\":\"/Users/alexey/work/projects/NetLicensingClient-javascript\",\"author\":{\"name\":\"Matt Zabriskie\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"bundleDependencies\":false,\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}],\"dependencies\":{\"follow-redirects\":\"1.5.10\"},\"deprecated\":false,\"description\":\"Promise based HTTP client for the browser and node.js\",\"devDependencies\":{\"bundlesize\":\"^0.17.0\",\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.0.2\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^20.1.0\",\"grunt-karma\":\"^2.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^1.0.18\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^1.3.0\",\"karma-chrome-launcher\":\"^2.2.0\",\"karma-coverage\":\"^1.1.1\",\"karma-firefox-launcher\":\"^1.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-opera-launcher\":\"^1.0.0\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^1.2.0\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.7\",\"karma-webpack\":\"^1.7.0\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^5.2.0\",\"sinon\":\"^4.5.0\",\"typescript\":\"^2.8.1\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^1.13.1\",\"webpack-dev-server\":\"^1.14.1\"},\"homepage\":\"https://github.com/axios/axios\",\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"license\":\"MIT\",\"main\":\"index.js\",\"name\":\"axios\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/axios/axios.git\"},\"scripts\":{\"build\":\"NODE_ENV=production grunt build\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"examples\":\"node ./examples/server.js\",\"fix\":\"eslint --fix lib/**/*.js\",\"postversion\":\"git push && git push --tags\",\"preversion\":\"npm test\",\"start\":\"node ./sandbox/server.js\",\"test\":\"grunt test && bundlesize\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\"},\"typings\":\"./index.d.ts\",\"version\":\"0.19.2\"}"); /***/ }), /* 89 */ diff --git a/dist/netlicensing-client.node.js.map b/dist/netlicensing-client.node.js.map index b0df497..ec49064 100644 --- a/dist/netlicensing-client.node.js.map +++ b/dist/netlicensing-client.node.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://NetLicensing/webpack/universalModuleDefinition","webpack://NetLicensing/webpack/bootstrap","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/createClass.js","webpack://NetLicensing/./node_modules/axios/lib/utils.js","webpack://NetLicensing/./src/Constants.js","webpack://NetLicensing/./src/util/CheckUtils.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://NetLicensing/./src/converters/itemToObject.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/inherits.js","webpack://NetLicensing/./src/entities/BaseEntity.js","webpack://NetLicensing/./src/vo/Page.js","webpack://NetLicensing/./src/services/Service.js","webpack://NetLicensing/./src/util/FilterUtils.js","webpack://NetLicensing/./node_modules/@babel/runtime/regenerator/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/asyncToGenerator.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/typeof.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://NetLicensing/./src/entities/License.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/buildURL.js","webpack://NetLicensing/./node_modules/axios/lib/core/createError.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://NetLicensing/./src/entities/LicenseTransactionJoin.js","webpack://NetLicensing/./src/vo/ValidationResults.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/bind.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/isCancel.js","webpack://NetLicensing/./node_modules/axios/lib/defaults.js","webpack://NetLicensing/./node_modules/axios/lib/core/settle.js","webpack://NetLicensing/./node_modules/axios/lib/core/enhanceError.js","webpack://NetLicensing/./node_modules/axios/lib/core/buildFullPath.js","webpack://NetLicensing/external \"http\"","webpack://NetLicensing/external \"https\"","webpack://NetLicensing/./node_modules/follow-redirects/index.js","webpack://NetLicensing/external \"url\"","webpack://NetLicensing/./node_modules/follow-redirects/node_modules/debug/src/debug.js","webpack://NetLicensing/./node_modules/axios/lib/core/mergeConfig.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/Cancel.js","webpack://NetLicensing/./src/errors/NlicError.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://NetLicensing/./src/converters/itemToLicensee.js","webpack://NetLicensing/./src/entities/Licensee.js","webpack://NetLicensing/./src/util/CastsUtils.js","webpack://NetLicensing/./src/converters/itemToLicense.js","webpack://NetLicensing/./src/converters/itemToLicenseTemplate.js","webpack://NetLicensing/./src/entities/LicenseTemplate.js","webpack://NetLicensing/./src/converters/itemToPaymentMethod.js","webpack://NetLicensing/./src/entities/PaymentMethod.js","webpack://NetLicensing/./src/converters/itemToProductModule.js","webpack://NetLicensing/./src/entities/ProductModule.js","webpack://NetLicensing/./src/converters/itemToProduct.js","webpack://NetLicensing/./src/entities/Product.js","webpack://NetLicensing/./src/entities/ProductDiscount.js","webpack://NetLicensing/./src/converters/itemToToken.js","webpack://NetLicensing/./src/entities/Token.js","webpack://NetLicensing/./src/converters/itemToTransaction.js","webpack://NetLicensing/./src/entities/Transaction.js","webpack://NetLicensing/./src/converters/itemToCountry.js","webpack://NetLicensing/./src/entities/Country.js","webpack://NetLicensing/./src/index.js","webpack://NetLicensing/./src/vo/Context.js","webpack://NetLicensing/./src/vo/ValidationParameters.js","webpack://NetLicensing/./node_modules/axios/index.js","webpack://NetLicensing/./node_modules/axios/lib/axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/Axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/InterceptorManager.js","webpack://NetLicensing/./node_modules/axios/lib/core/dispatchRequest.js","webpack://NetLicensing/./node_modules/axios/lib/core/transformData.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://NetLicensing/./node_modules/axios/lib/adapters/xhr.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/combineURLs.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/cookies.js","webpack://NetLicensing/./node_modules/axios/lib/adapters/http.js","webpack://NetLicensing/external \"assert\"","webpack://NetLicensing/external \"stream\"","webpack://NetLicensing/./node_modules/follow-redirects/node_modules/debug/src/index.js","webpack://NetLicensing/./node_modules/follow-redirects/node_modules/debug/src/browser.js","webpack://NetLicensing/./node_modules/follow-redirects/node_modules/ms/index.js","webpack://NetLicensing/./node_modules/follow-redirects/node_modules/debug/src/node.js","webpack://NetLicensing/external \"tty\"","webpack://NetLicensing/external \"util\"","webpack://NetLicensing/./node_modules/supports-color/index.js","webpack://NetLicensing/external \"os\"","webpack://NetLicensing/./node_modules/has-flag/index.js","webpack://NetLicensing/external \"zlib\"","webpack://NetLicensing/./node_modules/axios/lib/cancel/CancelToken.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/spread.js","webpack://NetLicensing/./node_modules/btoa/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/isNativeFunction.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/construct.js","webpack://NetLicensing/./src/services/LicenseeService.js","webpack://NetLicensing/./node_modules/regenerator-runtime/runtime.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://NetLicensing/./src/services/LicenseService.js","webpack://NetLicensing/./src/services/LicenseTemplateService.js","webpack://NetLicensing/./src/services/PaymentMethodService.js","webpack://NetLicensing/./src/services/ProductModuleService.js","webpack://NetLicensing/./src/services/ProductService.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/get.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/superPropBase.js","webpack://NetLicensing/./src/services/TokenService.js","webpack://NetLicensing/./src/services/TransactionService.js","webpack://NetLicensing/./src/services/UtilityService.js"],"names":["BASIC_AUTHENTICATION","APIKEY_IDENTIFICATION","ANONYMOUS_IDENTIFICATION","ACTIVE","NUMBER","NAME","VERSION","DELETED","CASCADE","PRICE","DISCOUNT","CURRENCY","IN_USE","FILTER","BASE_URL","USERNAME","PASSWORD","SECURITY_MODE","LicensingModel","VALID","TryAndBuy","Rental","RED_THRESHOLD","YELLOW_THRESHOLD","Subscription","Floating","MultiFeature","PayPerUse","PricingTable","Quota","NodeLocked","Vendor","VENDOR_NUMBER","VENDOR_TYPE","Product","ENDPOINT_PATH","PRODUCT_NUMBER","LICENSEE_AUTO_CREATE","DESCRIPTION","LICENSING_INFO","DISCOUNTS","PROP_LICENSEE_SECRET_MODE","PROP_VAT_MODE","Discount","TOTAL_PRICE","AMOUNT_FIX","AMOUNT_PERCENT","LicenseeSecretMode","DISABLED","PREDEFINED","CLIENT","ProductModule","PRODUCT_MODULE_NUMBER","PRODUCT_MODULE_NAME","LICENSING_MODEL","LicenseTemplate","LICENSE_TEMPLATE_NUMBER","LICENSE_TYPE","AUTOMATIC","HIDDEN","HIDE_LICENSES","PROP_LICENSEE_SECRET","LicenseType","FEATURE","TIMEVOLUME","FLOATING","QUANTITY","Token","EXPIRATION_TIME","TOKEN_TYPE","API_KEY","TOKEN_PROP_EMAIL","TOKEN_PROP_VENDORNUMBER","TOKEN_PROP_SHOP_URL","Type","DEFAULT","SHOP","APIKEY","Transaction","TRANSACTION_NUMBER","GRAND_TOTAL","STATUS","SOURCE","DATE_CREATED","DATE_CLOSED","VAT","VAT_MODE","LICENSE_TRANSACTION_JOIN","SOURCE_SHOP_ONLY","Status","CANCELLED","CLOSED","PENDING","Licensee","ENDPOINT_PATH_VALIDATE","ENDPOINT_PATH_TRANSFER","LICENSEE_NUMBER","SOURCE_LICENSEE_NUMBER","PROP_LICENSEE_NAME","PROP_MARKED_FOR_TRANSFER","License","LICENSE_NUMBER","PaymentMethod","Utility","ENDPOINT_PATH_LICENSE_TYPES","ENDPOINT_PATH_LICENSING_MODELS","ENDPOINT_PATH_COUNTRIES","LICENSING_MODEL_PROPERTIES","ROLE_APIKEY_LICENSEE","ROLE_APIKEY_ANALYTICS","ROLE_APIKEY_OPERATION","ROLE_APIKEY_MAINTENANCE","ROLE_APIKEY_ADMIN","isValid","value","valid","undefined","Number","isFinite","isNaN","paramNotNull","parameter","parameterName","TypeError","paramNotEmpty","itemToObject","item","object","property","list","Array","isArray","forEach","p","name","l","push","propertiesMap","WeakMap","definedMap","castsMap","BaseEntity","properties","casts","set","setProperties","CheckUtils","castedValue","cast","define","get","setProperty","removeProperties","has","Object","prototype","hasOwnProperty","keys","key","call","def","removeDefine","propertiesForRemove","removeProperty","Boolean","hasDefine","self","descriptors","enumerable","configurable","getProperty","defined","defineProperty","getProperties","customProperties","content","pageNumber","itemsNumber","totalPages","totalItems","paginator","getContent","getPageNumber","getItemsNumber","getTotalPages","getTotalItems","hasNext","paginatorKeys","Proxy","target","indexOf","httpXHR","axiosInstance","Service","axios","instanse","context","urlTemplate","queryParams","request","method","template","String","params","toLowerCase","Error","getBaseUrl","url","encodeURI","responseType","headers","Accept","transformRequest","data","toQueryString","pkg","version","process","toString","getSecurityMode","Constants","getUsername","getPassword","auth","username","password","getApiKey","Authorization","getAxiosInstance","then","response","catch","e","error","NlicError","config","code","info","getInfo","message","infos","pattern","RegExp","test","prefix","query","k","v","Date","toISOString","encodeURIComponent","join","replace","FILTER_DELIMITER","FILTER_PAIR_DELIMITER","encode","filter","decode","split","number","active","price","hidden","parentfeature","timeVolume","startDate","inUse","LicenseTransactionJoin","transaction","license","vr","ValidationResults","validators","productModuleNumber","productModuleValidation","ttl","getValidators","JSON","stringify","args","isNlicError","isAxiosError","licenseeSecret","markedForTransfer","trim","parseInt","parseFloat","licenseType","currency","automatic","hideLicenses","gracePeriod","timeVolumePeriod","maxSessions","quantity","paypalSubject","licensingModel","maxCheckoutValidity","yellowThreshold","redThreshold","licenseTemplate","licenseeSecretMode","discounts","discount","product","setProductDiscounts","discountsMap","discountsTouched","description","licensingInfo","licenseeAutoCreate","productDiscount","ProductDiscount","addDiscount","assign","length","map","totalPrice","amountFix","amountPercent","getTotalPrice","getCurrency","amount","getAmountFix","getAmountPercent","expirationTime","vendorNumber","tokenType","licenseeNumber","successURL","successURLTitle","cancelURL","cancelURLTitle","shopURL","role","setApiKeyRole","getApiKeyRole","apiKeyRole","licenseTransactionJoin","joins","setLicense","setTransaction","setLicenseTransactionJoins","status","source","grandTotal","dateCreated","dateClosed","paymentMethod","licenseTransactionJoins","Country","vatPercent","isEu","vat","NetLicensing","Context","Page","ValidationParameters","LicenseeService","LicenseService","LicenseTemplateService","PaymentMethodService","ProductModuleService","ProductService","TokenService","TransactionService","UtilityService","itemToCountry","itemToLicense","itemToLicensee","itemToLicenseTemplate","itemToPaymentMethod","itemToProduct","itemToProductModule","itemToToken","itemToTransaction","CastsUtils","FilterUtils","module","exports","default","valuesMap","defaultsMap","values","baseUrl","securityMode","setValues","setValue","getValue","apiKey","copedValue","removeValues","keysAr","removeValue","onlyGetter","vpMap","parameters","productNumber","licenseeName","productModuleParameters","create","licensee","post","asPropertiesMap","items","pagenumber","itemsnumber","totalpages","totalitems","update","delete","forceCascade","validate","validationParameters","getProductNumber","getLicenseeName","getLicenseeSecret","pmIndex","getParameters","productModuleName","validationResults","setTtl","setProductModuleValidation","transfer","sourceLicenseeNumber","licenseTemplateNumber","transactionNumber","path","productModule","token","listLicenseTypes","listLicensingModels","listCountries"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;AClFA;AACA;AACA;AACA;AACA;;AAEA,wC;;;;;;ACNA;AACA;AACA;AACA;AACA;;AAEA,iC;;;;;;ACNA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,8B;;;;;;;AChBa;;AAEb,WAAW,mBAAO,CAAC,EAAgB;;AAEnC;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mCAAmC,OAAO;AAC1C;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS,GAAG,SAAS;AAC5C,2BAA2B;AAC3B;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,uCAAuC,OAAO;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,gCAAgC;AAChC,KAAK;AACL;AACA;AACA;;AAEA,uCAAuC,OAAO;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;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AAO,CAAC,EAAgB;AACtC,GAAG;AACH;AACA,cAAc,mBAAO,CAAC,EAAiB;AACvC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,OAAO,YAAY;AACnB;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA,CAAC;;AAED;;;;;;;;AChGa;;AAEb,kBAAkB,mBAAO,CAAC,EAAe;;AAEzC;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxBa;;AAEb;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzCa;;AAEb,oBAAoB,mBAAO,CAAC,EAA0B;AACtD,kBAAkB,mBAAO,CAAC,EAAwB;;AAElD;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnBA,iC;;;;;;ACAA,kC;;;;;;ACAA,UAAU,mBAAO,CAAC,EAAK;AACvB,WAAW,mBAAO,CAAC,EAAM;AACzB,YAAY,mBAAO,CAAC,EAAO;AAC3B,aAAa,mBAAO,CAAC,EAAQ;AAC7B,eAAe,mBAAO,CAAC,EAAQ;AAC/B,YAAY,mBAAO,CAAC,EAAO;;AAE3B;AACA;AACA,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iCAAiC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,sBAAsB,uCAAuC,EAAE;AAC/D,GAAG;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA,uBAAuB,2BAA2B;AAClD;;;;;;;ACjUA,gC;;;;;;;ACCA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAO,CAAC,EAAI;;AAE/B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,aAAa,SAAS;AACtB,4BAA4B;AAC5B;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,aAAa,8BAA8B;AAC3C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yCAAyC,SAAS;AAClD;AACA;AACA;AACA;AACA,yCAAyC,SAAS;AAClD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;;;;;;;;AChOa;;AAEb,YAAY,mBAAO,CAAC,CAAU;;AAE9B;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;ACxEa;;AAEb;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;IClBqBqB,S;;;;;AACjB,uBAAqB;AAAA;;AAAA;;AAAA;;AAAA,sCAAN6C,IAAM;AAANA,UAAM;AAAA;;AACjB,oKAASA,IAAT;AAEA,UAAK5C,MAAL,GA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AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;AAED;;;;;;;;AC7Fa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;ACnDa;;AAEb,YAAY,mBAAO,CAAC,CAAY;AAChC,oBAAoB,mBAAO,CAAC,EAAiB;AAC7C,eAAe,mBAAO,CAAC,EAAoB;AAC3C,eAAe,mBAAO,CAAC,EAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B;AAC/B,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;;;;;;;AC9Ea;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,MAAM;AACjB,WAAW,eAAe;AAC1B,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;ACnBa;;AAEb,YAAY,mBAAO,CAAC,CAAU;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;ACXa;;AAEb,YAAY,mBAAO,CAAC,CAAY;AAChC,aAAa,mBAAO,CAAC,EAAkB;AACvC,eAAe,mBAAO,CAAC,EAAuB;AAC9C,oBAAoB,mBAAO,CAAC,EAAuB;AACnD,mBAAmB,mBAAO,CAAC,EAA2B;AACtD,sBAAsB,mBAAO,CAAC,EAA8B;AAC5D,kBAAkB,mBAAO,CAAC,EAAqB;;AAE/C;AACA;AACA;AACA;;AAEA;AACA,4CAA4C;AAC5C;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB,mBAAO,CAAC,EAAsB;;AAElD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;;;;;;;ACnLa;;AAEb;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACba;;AAEb;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACba;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,eAAe;;AAEhC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;ACpDa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,OAAO;AACrB,gBAAgB;AAChB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc,OAAO;AACrB,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;;;;;;;ACnEa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,0CAA0C;AAC1C,SAAS;;AAET;AACA,4DAA4D,wBAAwB;AACpF;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,kCAAkC;AAClC,+BAA+B,aAAa,EAAE;AAC9C;AACA;AACA,KAAK;AACL;;;;;;;;ACpDa;;AAEb,YAAY,mBAAO,CAAC,CAAY;AAChC,aAAa,mBAAO,CAAC,EAAkB;AACvC,oBAAoB,mBAAO,CAAC,EAAuB;AACnD,eAAe,mBAAO,CAAC,EAAuB;AAC9C,WAAW,mBAAO,CAAC,EAAM;AACzB,YAAY,mBAAO,CAAC,EAAO;AAC3B,iBAAiB,mBAAO,CAAC,EAAkB;AAC3C,kBAAkB,mBAAO,CAAC,EAAkB;AAC5C,UAAU,mBAAO,CAAC,EAAK;AACvB,WAAW,mBAAO,CAAC,EAAM;AACzB,UAAU,mBAAO,CAAC,EAAsB;AACxC,kBAAkB,mBAAO,CAAC,EAAqB;AAC/C,mBAAmB,mBAAO,CAAC,EAAsB;;AAEjD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,mDAAmD;AAClE;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW;AACX;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA,GAAG;AACH;;;;;;;ACtRA,mC;;;;;;ACAA,mC;;;;;;ACAA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,mBAAO,CAAC,EAAc;AACzC,CAAC;AACD,mBAAmB,mBAAO,CAAC,EAAW;AACtC;;;;;;;ACTA;AACA;AACA;AACA;AACA;;AAEA,2BAA2B,mBAAO,CAAC,EAAS;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;;;;;;AClMA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,OAAO;AAClB,YAAY,MAAM;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvJA;AACA;AACA;;AAEA,UAAU,mBAAO,CAAC,EAAK;AACvB,WAAW,mBAAO,CAAC,EAAM;;AAEzB;AACA;AACA;AACA;AACA;;AAEA,2BAA2B,mBAAO,CAAC,EAAS;AAC5C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,sBAAsB,mBAAO,CAAC,EAAgB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,6DAA6D;AAC7D;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,2CAA2C,yBAAyB;;AAEpE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,IAAI;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,iDAAiD,EAAE;AACnD,sCAAsC;;AAEtC;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;ACzLA,gC;;;;;;ACAA,iC;;;;;;;ACAa;AACb,WAAW,mBAAO,CAAC,EAAI;AACvB,gBAAgB,mBAAO,CAAC,EAAU;;AAElC;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,iCAAiC,GAAG;AACpC;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;AClIA,+B;;;;;;;ACAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACPA,iC;;;;;;;;;;;;;ACAa;;AAEb,aAAa,mBAAO,CAAC,EAAU;;AAE/B;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxDa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,WAAW,SAAS;AACpB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1BA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA,CAAC;;;;;;;AChBD,qBAAqB,mBAAO,CAAC,CAAkB;;AAE/C,qBAAqB,mBAAO,CAAC,EAAkB;;AAE/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C9M,OAFD,YAGIwB,mBAAU/H,QAAV,CAAmB1D,aAHvB,cAGwCgO,MAHxC,cAGkDvC,mBAAU/H,QAAV,CAAmBE,sBAHrE,GAICuG,WAJD,CAAP;AAMH;AAxOU,C;;;;;;;ACvBf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,KAAK;AACL,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,WAAW;AACX;;AAEA;AACA;AACA,wCAAwC,WAAW;AACnD;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS;AACT;AACA;AACA;AACA;;AAEA;;AAEA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC,cAAc;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC,kBAAkB;AACnD;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB;;AAEjB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,YAAY;AACZ;AACA;;AAEA;AACA,YAAY;AACZ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,8CAA8C,QAAQ;AACtD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA,WAAW;AACX;AACA;AACA;;AAEA,WAAW;AACX;AACA;AACA;;AAEA,WAAW;AACX;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA,KAAK;;AAEL;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA,EAAE,KAA0B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AAAA;AAAA;AAAA;AAC3B1D,yBAD2B,GACb,EADa;;AAAA,mBAG7B0D,MAH6B;AAAA;AAAA;AAAA;;AAAA,kBAIxB9G,oBAAWjC,OAAX,CAAmB+I,MAAnB,CAJwB;AAAA;AAAA;AAAA;;AAAA,oBAKnB,IAAIrI,SAAJ,gCAAsCqI,MAAtC,EALmB;;AAAA;AAO7B1D,yBAAW,CAACsB,mBAAU/M,MAAX,CAAX,GAAgC,OAAOmP,MAAP,KAAkB,QAAlB,GAA6BA,MAA7B,GAAsCyH,qBAAY1H,MAAZ,CAAmBC,MAAnB,CAAtE;;AAP6B;AAAA;AAAA,qBAUV/D,iBAClB3C,GADkB,CAEf8C,OAFe,YAGZwB,mBAAUrH,OAAV,CAAkBpE,aAHN,cAGuByL,mBAAUrH,OAAV,CAAkBG,uBAHzC,GAIf4F,WAJe,CAVU;;AAAA;AAAA;AAUzBe,kBAVyB,SAUzBA,IAVyB;AAAA,gDAiB1B,mBACHA,IAAI,CAAC+L,KAAL,CAAWtR,IAAX,CAAgB8L,GAAhB,CAAoB,UAACrE,CAAD;AAAA,uBAAO,4BAAcA,CAAd,CAAP;AAAA,eAApB,CADG,EAEHlC,IAAI,CAAC+L,KAAL,CAAWC,UAFR,EAGHhM,IAAI,CAAC+L,KAAL,CAAWE,WAHR,EAIHjM,IAAI,CAAC+L,KAAL,CAAWG,UAJR,EAKHlM,IAAI,CAAC+L,KAAL,CAAWI,UALR,CAjB0B;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBpC;AAnFU,C","file":"netlicensing-client.node.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"NetLicensing\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"NetLicensing\"] = factory();\n\telse\n\t\troot[\"NetLicensing\"] = factory();\n})(this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 59);\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","'use strict';\n\nvar bind = require('./helpers/bind');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = merge(result[key], val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Function equal to merge with the difference being that no reference\n * to original objects is kept.\n *\n * @see merge\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction deepMerge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = deepMerge(result[key], val);\n } else if (typeof val === 'object') {\n result[key] = deepMerge({}, val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n deepMerge: deepMerge,\n extend: extend,\n trim: trim\n};\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nexport default {\r\n BASIC_AUTHENTICATION: 'BASIC_AUTH',\r\n APIKEY_IDENTIFICATION: 'APIKEY',\r\n ANONYMOUS_IDENTIFICATION: 'ANONYMOUS',\r\n\r\n ACTIVE: 'active',\r\n NUMBER: 'number',\r\n NAME: 'name',\r\n VERSION: 'version',\r\n DELETED: 'deleted',\r\n CASCADE: 'forceCascade',\r\n PRICE: 'price',\r\n DISCOUNT: 'discount',\r\n CURRENCY: 'currency',\r\n IN_USE: 'inUse',\r\n FILTER: 'filter',\r\n BASE_URL: 'baseUrl',\r\n USERNAME: 'username',\r\n PASSWORD: 'password',\r\n SECURITY_MODE: 'securityMode',\r\n\r\n LicensingModel: {\r\n VALID: 'valid',\r\n TryAndBuy: {\r\n NAME: 'TryAndBuy',\r\n },\r\n Rental: {\r\n NAME: 'Rental',\r\n RED_THRESHOLD: 'redThreshold',\r\n YELLOW_THRESHOLD: 'yellowThreshold',\r\n },\r\n Subscription: {\r\n NAME: 'Subscription',\r\n },\r\n Floating: {\r\n NAME: 'Floating',\r\n },\r\n MultiFeature: {\r\n NAME: 'MultiFeature',\r\n },\r\n PayPerUse: {\r\n NAME: 'PayPerUse',\r\n },\r\n PricingTable: {\r\n NAME: 'PricingTable',\r\n },\r\n Quota: {\r\n NAME: 'Quota',\r\n },\r\n NodeLocked: {\r\n NAME: 'NodeLocked',\r\n },\r\n },\r\n\r\n Vendor: {\r\n VENDOR_NUMBER: 'vendorNumber',\r\n VENDOR_TYPE: 'Vendor',\r\n },\r\n\r\n Product: {\r\n ENDPOINT_PATH: 'product',\r\n PRODUCT_NUMBER: 'productNumber',\r\n LICENSEE_AUTO_CREATE: 'licenseeAutoCreate',\r\n DESCRIPTION: 'description',\r\n LICENSING_INFO: 'licensingInfo',\r\n DISCOUNTS: 'discounts',\r\n /**\r\n * @deprecated use ProductModule.PROP_LICENSEE_SECRET_MODE instead\r\n */\r\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\r\n PROP_VAT_MODE: 'vatMode',\r\n\r\n Discount: {\r\n TOTAL_PRICE: 'totalPrice',\r\n AMOUNT_FIX: 'amountFix',\r\n AMOUNT_PERCENT: 'amountPercent',\r\n },\r\n\r\n LicenseeSecretMode: {\r\n /**\r\n * @deprecated DISABLED mode is deprecated\r\n */\r\n DISABLED: 'DISABLED',\r\n PREDEFINED: 'PREDEFINED',\r\n CLIENT: 'CLIENT',\r\n },\r\n },\r\n\r\n ProductModule: {\r\n ENDPOINT_PATH: 'productmodule',\r\n PRODUCT_MODULE_NUMBER: 'productModuleNumber',\r\n PRODUCT_MODULE_NAME: 'productModuleName',\r\n LICENSING_MODEL: 'licensingModel',\r\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\r\n },\r\n\r\n LicenseTemplate: {\r\n ENDPOINT_PATH: 'licensetemplate',\r\n LICENSE_TEMPLATE_NUMBER: 'licenseTemplateNumber',\r\n LICENSE_TYPE: 'licenseType',\r\n AUTOMATIC: 'automatic',\r\n HIDDEN: 'hidden',\r\n HIDE_LICENSES: 'hideLicenses',\r\n PROP_LICENSEE_SECRET: 'licenseeSecret',\r\n LicenseType: {\r\n FEATURE: 'FEATURE',\r\n TIMEVOLUME: 'TIMEVOLUME',\r\n FLOATING: 'FLOATING',\r\n QUANTITY: 'QUANTITY',\r\n },\r\n },\r\n\r\n Token: {\r\n ENDPOINT_PATH: 'token',\r\n EXPIRATION_TIME: 'expirationTime',\r\n TOKEN_TYPE: 'tokenType',\r\n API_KEY: 'apiKey',\r\n TOKEN_PROP_EMAIL: 'email',\r\n TOKEN_PROP_VENDORNUMBER: 'vendorNumber',\r\n TOKEN_PROP_SHOP_URL: 'shopURL',\r\n Type: {\r\n DEFAULT: 'DEFAULT',\r\n SHOP: 'SHOP',\r\n APIKEY: 'APIKEY',\r\n },\r\n },\r\n\r\n Transaction: {\r\n ENDPOINT_PATH: 'transaction',\r\n TRANSACTION_NUMBER: 'transactionNumber',\r\n GRAND_TOTAL: 'grandTotal',\r\n STATUS: 'status',\r\n SOURCE: 'source',\r\n DATE_CREATED: 'datecreated',\r\n DATE_CLOSED: 'dateclosed',\r\n VAT: 'vat',\r\n VAT_MODE: 'vatMode',\r\n LICENSE_TRANSACTION_JOIN: 'licenseTransactionJoin',\r\n SOURCE_SHOP_ONLY: 'shopOnly',\r\n /**\r\n * @deprecated\r\n */\r\n Status: {\r\n CANCELLED: 'CANCELLED',\r\n CLOSED: 'CLOSED',\r\n PENDING: 'PENDING',\r\n },\r\n },\r\n\r\n Licensee: {\r\n ENDPOINT_PATH: 'licensee',\r\n ENDPOINT_PATH_VALIDATE: 'validate',\r\n ENDPOINT_PATH_TRANSFER: 'transfer',\r\n LICENSEE_NUMBER: 'licenseeNumber',\r\n SOURCE_LICENSEE_NUMBER: 'sourceLicenseeNumber',\r\n PROP_LICENSEE_NAME: 'licenseeName',\r\n /**\r\n * @deprecated use License.PROP_LICENSEE_SECRET\r\n */\r\n PROP_LICENSEE_SECRET: 'licenseeSecret',\r\n PROP_MARKED_FOR_TRANSFER: 'markedForTransfer',\r\n },\r\n\r\n License: {\r\n ENDPOINT_PATH: 'license',\r\n LICENSE_NUMBER: 'licenseNumber',\r\n HIDDEN: 'hidden',\r\n PROP_LICENSEE_SECRET: 'licenseeSecret',\r\n },\r\n\r\n PaymentMethod: {\r\n ENDPOINT_PATH: 'paymentmethod',\r\n },\r\n\r\n Utility: {\r\n ENDPOINT_PATH: 'utility',\r\n ENDPOINT_PATH_LICENSE_TYPES: 'licenseTypes',\r\n ENDPOINT_PATH_LICENSING_MODELS: 'licensingModels',\r\n ENDPOINT_PATH_COUNTRIES: 'countries',\r\n LICENSING_MODEL_PROPERTIES: 'LicensingModelProperties',\r\n LICENSE_TYPE: 'LicenseType',\r\n },\r\n\r\n APIKEY: {\r\n ROLE_APIKEY_LICENSEE: 'ROLE_APIKEY_LICENSEE',\r\n ROLE_APIKEY_ANALYTICS: 'ROLE_APIKEY_ANALYTICS',\r\n ROLE_APIKEY_OPERATION: 'ROLE_APIKEY_OPERATION',\r\n ROLE_APIKEY_MAINTENANCE: 'ROLE_APIKEY_MAINTENANCE',\r\n ROLE_APIKEY_ADMIN: 'ROLE_APIKEY_ADMIN',\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nexport default {\r\n isValid(value) {\r\n let valid = (value !== undefined && typeof value !== 'function');\r\n if (typeof value === 'number') valid = Number.isFinite(value) && !Number.isNaN(value);\r\n return valid;\r\n },\r\n\r\n paramNotNull(parameter, parameterName) {\r\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\r\n if (parameter === null) throw new TypeError(`Parameter ${parameterName} cannot be null`);\r\n },\r\n\r\n paramNotEmpty(parameter, parameterName) {\r\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\r\n if (!parameter) throw new TypeError(`Parameter ${parameterName} cannot be null or empty string`);\r\n },\r\n};\r\n","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","const itemToObject = (item) => {\r\n const object = {};\r\n const { property, list } = item;\r\n\r\n if (property && Array.isArray(property)) {\r\n property.forEach((p) => {\r\n const { name, value } = p;\r\n if (name) object[name] = value;\r\n });\r\n }\r\n\r\n if (list && Array.isArray(list)) {\r\n list.forEach((l) => {\r\n const { name } = l;\r\n if (name) {\r\n object[name] = object[name] || [];\r\n object[name].push(itemToObject(l));\r\n }\r\n });\r\n }\r\n\r\n return object;\r\n};\r\n\r\nexport default itemToObject;\r\n","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport CastsUtils from '../util/CastsUtils';\r\n\r\n/**\r\n * The entity properties.\r\n * @type {{}}\r\n * @private\r\n */\r\nconst propertiesMap = new WeakMap();\r\n\r\n/**\r\n * List of properties that was defined\r\n * @type {{}}\r\n * @private\r\n */\r\n\r\nconst definedMap = new WeakMap();\r\n\r\n/**\r\n * List of properties that need be casts\r\n * @type {{}}\r\n * @private\r\n */\r\nconst castsMap = new WeakMap();\r\n\r\nexport default class BaseEntity {\r\n constructor({ properties, casts }) {\r\n propertiesMap.set(this, {});\r\n definedMap.set(this, {});\r\n castsMap.set(this, casts || []);\r\n\r\n if (properties) {\r\n this.setProperties(properties);\r\n }\r\n }\r\n\r\n /**\r\n * Set a given property on the entity.\r\n * @param property\r\n * @param value\r\n * @returns {BaseEntity}\r\n */\r\n setProperty(property, value) {\r\n // if property name has bad native type\r\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\r\n throw new TypeError(`Bad property name:${property}`);\r\n }\r\n\r\n const castedValue = this.cast(property, value);\r\n\r\n // define to property\r\n this.define(property);\r\n\r\n // save property to propertiesMap\r\n const properties = propertiesMap.get(this);\r\n properties[property] = castedValue;\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Alias for setProperty\r\n * @param property\r\n * @param value\r\n * @returns {BaseEntity}\r\n */\r\n addProperty(property, value) {\r\n return this.setProperty(property, value);\r\n }\r\n\r\n /**\r\n * Set the entity properties.\r\n * @param properties\r\n * @returns {BaseEntity}\r\n */\r\n setProperties(properties) {\r\n this.removeProperties();\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(properties).forEach((key) => {\r\n if (has.call(properties, key)) {\r\n this.setProperty(key, properties[key]);\r\n }\r\n });\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Check if we has property\r\n * @param property\r\n * @protected\r\n */\r\n hasProperty(property) {\r\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property);\r\n }\r\n\r\n /**\r\n * Get an property from the entity.\r\n * @param property\r\n * @param def\r\n * @returns {*}\r\n */\r\n getProperty(property, def) {\r\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property)\r\n ? propertiesMap.get(this)[property]\r\n : def;\r\n }\r\n\r\n /**\r\n * Get all of the current properties on the entity.\r\n */\r\n getProperties() {\r\n return { ...propertiesMap.get(this) };\r\n }\r\n\r\n /**\r\n * Remove property\r\n * @param property\r\n * @returns {BaseEntity}\r\n */\r\n removeProperty(property) {\r\n const properties = propertiesMap.get(this);\r\n delete properties[property];\r\n this.removeDefine(property);\r\n return this;\r\n }\r\n\r\n /**\r\n * Remove properties\r\n * @param properties\r\n */\r\n removeProperties(properties) {\r\n const propertiesForRemove = properties || Object.keys(propertiesMap.get(this));\r\n\r\n propertiesForRemove.forEach((property) => {\r\n this.removeProperty(property);\r\n });\r\n }\r\n\r\n cast(property, value) {\r\n if (!castsMap.get(this)[property]) return value;\r\n\r\n return CastsUtils(castsMap.get(this)[property], value);\r\n }\r\n\r\n /**\r\n * Check if property has defined\r\n * @param property\r\n * @protected\r\n */\r\n hasDefine(property) {\r\n return Boolean(definedMap.get(this)[property]);\r\n }\r\n\r\n /**\r\n * Define property getter and setter\r\n * @param property\r\n * @protected\r\n */\r\n define(property) {\r\n if (this.hasDefine(property)) return;\r\n\r\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\r\n throw new TypeError(`Bad property name:${property}`);\r\n }\r\n\r\n const self = this;\r\n\r\n // delete property\r\n delete this[property];\r\n\r\n const descriptors = {\r\n enumerable: true,\r\n configurable: true,\r\n get() {\r\n return self.getProperty(property);\r\n },\r\n\r\n set(value) {\r\n self.setProperty(property, value);\r\n },\r\n };\r\n\r\n const defined = definedMap.get(this);\r\n defined[property] = true;\r\n\r\n Object.defineProperty(this, property, descriptors);\r\n }\r\n\r\n /**\r\n * Remove property getter and setter\r\n * @param property\r\n * @protected\r\n */\r\n removeDefine(property) {\r\n if (!this.hasDefine(property)) return;\r\n\r\n const defined = definedMap.get(this);\r\n delete defined[property];\r\n\r\n delete this[property];\r\n }\r\n\r\n /**\r\n * Get properties map\r\n */\r\n asPropertiesMap() {\r\n const properties = this.getProperties();\r\n const customProperties = {};\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(this).forEach((key) => {\r\n if (!has.call(this, key)) return;\r\n\r\n customProperties[key] = this[key];\r\n });\r\n\r\n return { ...customProperties, ...properties };\r\n }\r\n}\r\n","export default (content = [], pageNumber = 0, itemsNumber = 0, totalPages = 0, totalItems = 0) => {\r\n const paginator = {\r\n getContent() {\r\n return content;\r\n },\r\n\r\n getPageNumber() {\r\n return pageNumber;\r\n },\r\n\r\n getItemsNumber() {\r\n return itemsNumber;\r\n },\r\n\r\n getTotalPages() {\r\n return totalPages;\r\n },\r\n\r\n getTotalItems() {\r\n return totalItems;\r\n },\r\n\r\n hasNext() {\r\n return (totalPages > pageNumber + 1);\r\n },\r\n };\r\n\r\n const paginatorKeys = Object.keys(paginator);\r\n\r\n return new Proxy(content, {\r\n get(target, key) {\r\n if (paginatorKeys.indexOf(key) !== -1) {\r\n return paginator[key];\r\n }\r\n return target[key];\r\n },\r\n });\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nimport axios from 'axios';\r\nimport btoa from 'btoa';\r\nimport Constants from '../Constants';\r\nimport NlicError from '../errors/NlicError';\r\nimport pkg from '../../package.json';\r\n\r\nlet httpXHR = {};\r\nlet axiosInstance = null;\r\n\r\nexport default class Service {\r\n static getAxiosInstance() {\r\n return axiosInstance || axios;\r\n }\r\n\r\n static setAxiosInstance(instanse) {\r\n axiosInstance = instanse;\r\n }\r\n\r\n static getLastHttpRequestInfo() {\r\n return httpXHR;\r\n }\r\n\r\n /**\r\n * Helper method for performing GET request to N\r\n etLicensing API services. Finds and returns first suitable item with\r\n * type resultType from the response.\r\n *\r\n * Context for the NetLicensing API call\r\n * @param context\r\n *\r\n * the REST URL template\r\n * @param urlTemplate\r\n *\r\n * The REST query parameters values. May be null if there are no parameters.\r\n * @param queryParams\r\n *\r\n * @returns {Promise}\r\n */\r\n static get(context, urlTemplate, queryParams) {\r\n return Service.request(context, 'get', urlTemplate, queryParams);\r\n }\r\n\r\n /**\r\n * Helper method for performing POST request to NetLicensing API services. Finds and returns first suitable item\r\n * with type resultType from the response.\r\n *\r\n * context for the NetLicensing API call\r\n * @param context\r\n *\r\n * the REST URL template\r\n * @param urlTemplate\r\n *\r\n * The REST query parameters values. May be null if there are no parameters.\r\n * @param queryParams\r\n *\r\n * @returns {Promise}\r\n */\r\n static post(context, urlTemplate, queryParams) {\r\n return Service.request(context, 'post', urlTemplate, queryParams);\r\n }\r\n\r\n /**\r\n *\r\n * @param context\r\n * @param urlTemplate\r\n * @param queryParams\r\n * @returns {Promise}\r\n */\r\n static delete(context, urlTemplate, queryParams) {\r\n return Service.request(context, 'delete', urlTemplate, queryParams);\r\n }\r\n\r\n /**\r\n * Send request to NetLicensing RestApi\r\n * @param context\r\n * @param method\r\n * @param urlTemplate\r\n * @param queryParams\r\n * @returns {Promise}\r\n */\r\n static request(context, method, urlTemplate, queryParams) {\r\n const template = String(urlTemplate);\r\n const params = queryParams || {};\r\n\r\n if (!template) throw new TypeError('Url template must be specified');\r\n\r\n // validate http method\r\n if (['get', 'post', 'delete'].indexOf(method.toLowerCase()) < 0) {\r\n throw new Error(`Invalid request type:${method}, allowed requests types: GET, POST, DELETE.`);\r\n }\r\n\r\n // validate context\r\n if (!context.getBaseUrl(null)) {\r\n throw new Error('Base url must be specified');\r\n }\r\n\r\n const request = {\r\n url: encodeURI(`${context.getBaseUrl()}/${template}`),\r\n method: method.toLowerCase(),\r\n responseType: 'json',\r\n headers: {\r\n Accept: 'application/json',\r\n },\r\n transformRequest: [(data, headers) => {\r\n if (headers['Content-Type'] === 'application/x-www-form-urlencoded') {\r\n return Service.toQueryString(data);\r\n }\r\n\r\n if (!headers['NetLicensing-Origin']) {\r\n // eslint-disable-next-line no-param-reassign\r\n headers['NetLicensing-Origin'] = `NetLicensing/Javascript ${pkg.version}`;\r\n }\r\n return data;\r\n }],\r\n };\r\n\r\n // only node.js has a process variable that is of [[Class]] process\r\n if (!typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\r\n request.headers['User-agent'] = `NetLicensing/Javascript ${pkg.version}/node&${process.version}`;\r\n }\r\n\r\n if (['put', 'post', 'patch'].indexOf(request.method) >= 0) {\r\n if (request.method === 'post') {\r\n request.headers['Content-Type'] = 'application/x-www-form-urlencoded';\r\n }\r\n request.data = params;\r\n } else {\r\n request.params = params;\r\n }\r\n\r\n switch (context.getSecurityMode()) {\r\n // Basic Auth\r\n case Constants.BASIC_AUTHENTICATION:\r\n if (!context.getUsername()) throw new Error('Missing parameter \"username\"');\r\n if (!context.getPassword()) throw new Error('Missing parameter \"password\"');\r\n\r\n request.auth = {\r\n username: context.getUsername(),\r\n password: context.getPassword(),\r\n };\r\n break;\r\n // ApiKey Auth\r\n case Constants.APIKEY_IDENTIFICATION:\r\n if (!context.getApiKey()) throw new Error('Missing parameter \"apiKey\"');\r\n\r\n request.headers.Authorization = `Basic ${btoa(`apiKey:${context.getApiKey()}`)}`;\r\n break;\r\n // without authorization\r\n case Constants.ANONYMOUS_IDENTIFICATION:\r\n break;\r\n default:\r\n throw new Error('Unknown security mode');\r\n }\r\n\r\n return Service.getAxiosInstance()(request)\r\n .then((response) => {\r\n httpXHR = response;\r\n return response;\r\n })\r\n .catch((e) => {\r\n httpXHR = e;\r\n\r\n if (e.response) {\r\n // The request was made and the server responded with a status code\r\n // that falls out of the range of 2xx\r\n\r\n const error = new NlicError(e);\r\n\r\n error.config = e.config;\r\n error.code = e.code;\r\n error.request = e.request;\r\n error.response = e.response;\r\n\r\n // The request was made and the server responded with a status code\r\n // that falls out of the range of 2xx\r\n const { data } = e.response;\r\n\r\n if (data) {\r\n const info = Service.getInfo(e.response, [])[0] || {};\r\n error.message = info.value || 'Unknown';\r\n }\r\n\r\n throw error;\r\n }\r\n\r\n throw e;\r\n });\r\n }\r\n\r\n static getInfo(response, def) {\r\n try {\r\n return response.data.infos.info || def;\r\n } catch (e) {\r\n return def;\r\n }\r\n }\r\n\r\n static isValidUrl(url) {\r\n const pattern = new RegExp('^(https?:\\\\/\\\\/)?' // protocol\r\n + '((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.?)+[a-z]{2,}|' // domain name\r\n + '((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))' // OR ip (v4) address\r\n + '(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*' // port and path\r\n + '(\\\\?[;&a-z\\\\d%_.~+=-]*)?' // query string\r\n + '(\\\\#[-a-z\\\\d_]*)?$', 'i'); // fragment locator\r\n\r\n return pattern.test(url);\r\n }\r\n\r\n static toQueryString(data, prefix) {\r\n const query = [];\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(data)\r\n .forEach((key) => {\r\n if (has.call(data, key)) {\r\n const k = prefix ? `${prefix}[${key}]` : key;\r\n let v = data[key];\r\n v = (v instanceof Date) ? v.toISOString() : v;\r\n query.push((v !== null && typeof v === 'object')\r\n ? Service.toQueryString(v, k)\r\n : `${encodeURIComponent(k)}=${encodeURIComponent(v)}`);\r\n }\r\n });\r\n\r\n return query.join('&')\r\n .replace(/%5B[0-9]+%5D=/g, '=');\r\n }\r\n}\r\n","export default {\r\n FILTER_DELIMITER: ';',\r\n FILTER_PAIR_DELIMITER: '=',\r\n encode(filter = {}) {\r\n const query = [];\r\n const has = Object.prototype.hasOwnProperty;\r\n Object.keys(filter).forEach((key) => {\r\n if (has.call(filter, key)) {\r\n query.push(`${key}${this.FILTER_PAIR_DELIMITER}${filter[key]}`);\r\n }\r\n });\r\n return query.join(this.FILTER_DELIMITER);\r\n },\r\n decode(query = '') {\r\n const filter = {};\r\n query.split(this.FILTER_DELIMITER).forEach((v) => {\r\n const [name, value] = v.split(this.FILTER_PAIR_DELIMITER);\r\n filter[name] = value;\r\n });\r\n return filter;\r\n },\r\n};\r\n","module.exports = require(\"regenerator-runtime\");\n","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * License entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products/licensees of a vendor) that identifies the license. Vendor can\r\n * assign this number when creating a license or let NetLicensing generate one. Read-only after corresponding creation\r\n * transaction status is set to closed.\r\n * @property string number\r\n *\r\n * Name for the licensed item. Set from license template on creation, if not specified explicitly.\r\n * @property string name\r\n *\r\n * If set to false, the license is disabled. License can be re-enabled, but as long as it is disabled,\r\n * the license is excluded from the validation process.\r\n * @property boolean active\r\n *\r\n * price for the license. If >0, it must always be accompanied by the currency specification. Read-only,\r\n * set from license template on creation.\r\n * @property float price\r\n *\r\n * specifies currency for the license price. Check data types to discover which currencies are\r\n * supported. Read-only, set from license template on creation.\r\n * @property string currency\r\n *\r\n * If set to true, this license is not shown in NetLicensing Shop as purchased license. Set from license\r\n * template on creation, if not specified explicitly.\r\n * @property boolean $hidden\r\n *\r\n * @property string startDate\r\n *\r\n * Arbitrary additional user properties of string type may be associated with each license. The name of user property\r\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, licenseeNumber,\r\n * licenseTemplateNumber.\r\n */\r\nexport default class License extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n price: 'float',\r\n hidden: 'boolean',\r\n parentfeature: 'string',\r\n timeVolume: 'int',\r\n startDate: 'date',\r\n inUse: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setHidden(hidden) {\r\n return this.setProperty('hidden', hidden);\r\n }\r\n\r\n getHidden(def) {\r\n return this.getProperty('hidden', def);\r\n }\r\n\r\n setParentfeature(parentfeature) {\r\n return this.setProperty('parentfeature', parentfeature);\r\n }\r\n\r\n getParentfeature(def) {\r\n return this.getProperty('parentfeature', def);\r\n }\r\n\r\n setTimeVolume(timeVolume) {\r\n return this.setProperty('timeVolume', timeVolume);\r\n }\r\n\r\n getTimeVolume(def) {\r\n return this.getProperty('timeVolume', def);\r\n }\r\n\r\n setStartDate(startDate) {\r\n return this.setProperty('startDate', startDate);\r\n }\r\n\r\n getStartDate(def) {\r\n return this.getProperty('startDate', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n\r\n getPrice(def) {\r\n return this.getProperty('price', def);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n}\r\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nexport default class LicenseTransactionJoin {\r\n constructor(transaction, license) {\r\n this.transaction = transaction;\r\n this.license = license;\r\n }\r\n\r\n setTransaction(transaction) {\r\n this.transaction = transaction;\r\n return this;\r\n }\r\n\r\n getTransaction(def) {\r\n return this.transaction || def;\r\n }\r\n\r\n setLicense(license) {\r\n this.license = license;\r\n return this;\r\n }\r\n\r\n getLicense(def) {\r\n return this.license || def;\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\n\r\n/**\r\n * Validation result map\r\n * @type {WeakMap}\r\n */\r\nconst vr = new WeakMap();\r\n\r\nexport default class ValidationResults {\r\n constructor() {\r\n vr.set(this, { validators: {} });\r\n }\r\n\r\n getValidators() {\r\n return { ...vr.get(this).validators };\r\n }\r\n\r\n setProductModuleValidation(productModuleNumber, productModuleValidation) {\r\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\r\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\r\n }\r\n\r\n vr.get(this).validators[productModuleNumber] = productModuleValidation;\r\n\r\n return this;\r\n }\r\n\r\n getProductModuleValidation(productModuleNumber) {\r\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\r\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\r\n }\r\n\r\n return vr.get(this).validators[productModuleNumber];\r\n }\r\n\r\n setTtl(ttl) {\r\n if (!CheckUtils.isValid(ttl) || typeof ttl === 'object') {\r\n throw new TypeError(`Bad ttl:${ttl}`);\r\n }\r\n vr.get(this).ttl = new Date(String(ttl));\r\n\r\n return this;\r\n }\r\n\r\n getTtl() {\r\n return (vr.get(this).ttl) ? new Date(vr.get(this).ttl) : undefined;\r\n }\r\n\r\n toString() {\r\n let data = 'ValidationResult [';\r\n\r\n const validators = this.getValidators();\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(validators).forEach((productModuleNumber) => {\r\n data += `ProductModule<${productModuleNumber}>`;\r\n if (has.call(validators, productModuleNumber)) {\r\n data += JSON.stringify(validators[productModuleNumber]);\r\n }\r\n });\r\n\r\n data += ']';\r\n\r\n return data;\r\n }\r\n}\r\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","module.exports = require(\"http\");","module.exports = require(\"https\");","var url = require(\"url\");\nvar http = require(\"http\");\nvar https = require(\"https\");\nvar assert = require(\"assert\");\nvar Writable = require(\"stream\").Writable;\nvar debug = require(\"debug\")(\"follow-redirects\");\n\n// RFC7231§4.2.1: Of the request methods defined by this specification,\n// the GET, HEAD, OPTIONS, and TRACE methods are defined to be safe.\nvar SAFE_METHODS = { GET: true, HEAD: true, OPTIONS: true, TRACE: true };\n\n// Create handlers that pass events from native requests\nvar eventHandlers = Object.create(null);\n[\"abort\", \"aborted\", \"error\", \"socket\", \"timeout\"].forEach(function (event) {\n eventHandlers[event] = function (arg) {\n this._redirectable.emit(event, arg);\n };\n});\n\n// An HTTP(S) request that can be redirected\nfunction RedirectableRequest(options, responseCallback) {\n // Initialize the request\n Writable.call(this);\n options.headers = options.headers || {};\n this._options = options;\n this._redirectCount = 0;\n this._redirects = [];\n this._requestBodyLength = 0;\n this._requestBodyBuffers = [];\n\n // Since http.request treats host as an alias of hostname,\n // but the url module interprets host as hostname plus port,\n // eliminate the host property to avoid confusion.\n if (options.host) {\n // Use hostname if set, because it has precedence\n if (!options.hostname) {\n options.hostname = options.host;\n }\n delete options.host;\n }\n\n // Attach a callback if passed\n if (responseCallback) {\n this.on(\"response\", responseCallback);\n }\n\n // React to responses of native requests\n var self = this;\n this._onNativeResponse = function (response) {\n self._processResponse(response);\n };\n\n // Complete the URL object when necessary\n if (!options.pathname && options.path) {\n var searchPos = options.path.indexOf(\"?\");\n if (searchPos < 0) {\n options.pathname = options.path;\n }\n else {\n options.pathname = options.path.substring(0, searchPos);\n options.search = options.path.substring(searchPos);\n }\n }\n\n // Perform the first request\n this._performRequest();\n}\nRedirectableRequest.prototype = Object.create(Writable.prototype);\n\n// Writes buffered data to the current native request\nRedirectableRequest.prototype.write = function (data, encoding, callback) {\n // Validate input and shift parameters if necessary\n if (!(typeof data === \"string\" || typeof data === \"object\" && (\"length\" in data))) {\n throw new Error(\"data should be a string, Buffer or Uint8Array\");\n }\n if (typeof encoding === \"function\") {\n callback = encoding;\n encoding = null;\n }\n\n // Ignore empty buffers, since writing them doesn't invoke the callback\n // https://github.com/nodejs/node/issues/22066\n if (data.length === 0) {\n if (callback) {\n callback();\n }\n return;\n }\n // Only write when we don't exceed the maximum body length\n if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {\n this._requestBodyLength += data.length;\n this._requestBodyBuffers.push({ data: data, encoding: encoding });\n this._currentRequest.write(data, encoding, callback);\n }\n // Error when we exceed the maximum body length\n else {\n this.emit(\"error\", new Error(\"Request body larger than maxBodyLength limit\"));\n this.abort();\n }\n};\n\n// Ends the current native request\nRedirectableRequest.prototype.end = function (data, encoding, callback) {\n // Shift parameters if necessary\n if (typeof data === \"function\") {\n callback = data;\n data = encoding = null;\n }\n else if (typeof encoding === \"function\") {\n callback = encoding;\n encoding = null;\n }\n\n // Write data and end\n var currentRequest = this._currentRequest;\n this.write(data || \"\", encoding, function () {\n currentRequest.end(null, null, callback);\n });\n};\n\n// Sets a header value on the current native request\nRedirectableRequest.prototype.setHeader = function (name, value) {\n this._options.headers[name] = value;\n this._currentRequest.setHeader(name, value);\n};\n\n// Clears a header value on the current native request\nRedirectableRequest.prototype.removeHeader = function (name) {\n delete this._options.headers[name];\n this._currentRequest.removeHeader(name);\n};\n\n// Proxy all other public ClientRequest methods\n[\n \"abort\", \"flushHeaders\", \"getHeader\",\n \"setNoDelay\", \"setSocketKeepAlive\", \"setTimeout\",\n].forEach(function (method) {\n RedirectableRequest.prototype[method] = function (a, b) {\n return this._currentRequest[method](a, b);\n };\n});\n\n// Proxy all public ClientRequest properties\n[\"aborted\", \"connection\", \"socket\"].forEach(function (property) {\n Object.defineProperty(RedirectableRequest.prototype, property, {\n get: function () { return this._currentRequest[property]; },\n });\n});\n\n// Executes the next native request (initial or redirect)\nRedirectableRequest.prototype._performRequest = function () {\n // Load the native protocol\n var protocol = this._options.protocol;\n var nativeProtocol = this._options.nativeProtocols[protocol];\n if (!nativeProtocol) {\n this.emit(\"error\", new Error(\"Unsupported protocol \" + protocol));\n return;\n }\n\n // If specified, use the agent corresponding to the protocol\n // (HTTP and HTTPS use different types of agents)\n if (this._options.agents) {\n var scheme = protocol.substr(0, protocol.length - 1);\n this._options.agent = this._options.agents[scheme];\n }\n\n // Create the native request\n var request = this._currentRequest =\n nativeProtocol.request(this._options, this._onNativeResponse);\n this._currentUrl = url.format(this._options);\n\n // Set up event handlers\n request._redirectable = this;\n for (var event in eventHandlers) {\n /* istanbul ignore else */\n if (event) {\n request.on(event, eventHandlers[event]);\n }\n }\n\n // End a redirected request\n // (The first request must be ended explicitly with RedirectableRequest#end)\n if (this._isRedirect) {\n // Write the request entity and end.\n var i = 0;\n var buffers = this._requestBodyBuffers;\n (function writeNext() {\n if (i < buffers.length) {\n var buffer = buffers[i++];\n request.write(buffer.data, buffer.encoding, writeNext);\n }\n else {\n request.end();\n }\n }());\n }\n};\n\n// Processes a response from the current native request\nRedirectableRequest.prototype._processResponse = function (response) {\n // Store the redirected response\n if (this._options.trackRedirects) {\n this._redirects.push({\n url: this._currentUrl,\n headers: response.headers,\n statusCode: response.statusCode,\n });\n }\n\n // RFC7231§6.4: The 3xx (Redirection) class of status code indicates\n // that further action needs to be taken by the user agent in order to\n // fulfill the request. If a Location header field is provided,\n // the user agent MAY automatically redirect its request to the URI\n // referenced by the Location field value,\n // even if the specific status code is not understood.\n var location = response.headers.location;\n if (location && this._options.followRedirects !== false &&\n response.statusCode >= 300 && response.statusCode < 400) {\n // RFC7231§6.4: A client SHOULD detect and intervene\n // in cyclical redirections (i.e., \"infinite\" redirection loops).\n if (++this._redirectCount > this._options.maxRedirects) {\n this.emit(\"error\", new Error(\"Max redirects exceeded.\"));\n return;\n }\n\n // RFC7231§6.4: Automatic redirection needs to done with\n // care for methods not known to be safe […],\n // since the user might not wish to redirect an unsafe request.\n // RFC7231§6.4.7: The 307 (Temporary Redirect) status code indicates\n // that the target resource resides temporarily under a different URI\n // and the user agent MUST NOT change the request method\n // if it performs an automatic redirection to that URI.\n var header;\n var headers = this._options.headers;\n if (response.statusCode !== 307 && !(this._options.method in SAFE_METHODS)) {\n this._options.method = \"GET\";\n // Drop a possible entity and headers related to it\n this._requestBodyBuffers = [];\n for (header in headers) {\n if (/^content-/i.test(header)) {\n delete headers[header];\n }\n }\n }\n\n // Drop the Host header, as the redirect might lead to a different host\n if (!this._isRedirect) {\n for (header in headers) {\n if (/^host$/i.test(header)) {\n delete headers[header];\n }\n }\n }\n\n // Perform the redirected request\n var redirectUrl = url.resolve(this._currentUrl, location);\n debug(\"redirecting to\", redirectUrl);\n Object.assign(this._options, url.parse(redirectUrl));\n this._isRedirect = true;\n this._performRequest();\n\n // Discard the remainder of the response to avoid waiting for data\n response.destroy();\n }\n else {\n // The response is not a redirect; return it as-is\n response.responseUrl = this._currentUrl;\n response.redirects = this._redirects;\n this.emit(\"response\", response);\n\n // Clean up\n this._requestBodyBuffers = [];\n }\n};\n\n// Wraps the key/value object of protocols with redirect functionality\nfunction wrap(protocols) {\n // Default settings\n var exports = {\n maxRedirects: 21,\n maxBodyLength: 10 * 1024 * 1024,\n };\n\n // Wrap each protocol\n var nativeProtocols = {};\n Object.keys(protocols).forEach(function (scheme) {\n var protocol = scheme + \":\";\n var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];\n var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);\n\n // Executes a request, following redirects\n wrappedProtocol.request = function (options, callback) {\n if (typeof options === \"string\") {\n options = url.parse(options);\n options.maxRedirects = exports.maxRedirects;\n }\n else {\n options = Object.assign({\n protocol: protocol,\n maxRedirects: exports.maxRedirects,\n maxBodyLength: exports.maxBodyLength,\n }, options);\n }\n options.nativeProtocols = nativeProtocols;\n assert.equal(options.protocol, protocol, \"protocol mismatch\");\n debug(\"options\", options);\n return new RedirectableRequest(options, callback);\n };\n\n // Executes a GET request, following redirects\n wrappedProtocol.get = function (options, callback) {\n var request = wrappedProtocol.request(options, callback);\n request.end();\n return request;\n };\n });\n return exports;\n}\n\n// Exports\nmodule.exports = wrap({ http: http, https: https });\nmodule.exports.wrap = wrap;\n","module.exports = require(\"url\");","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = createDebug.debug = createDebug['default'] = createDebug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = require('ms');\n\n/**\n * Active `debug` instances.\n */\nexports.instances = [];\n\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\nexports.formatters = {};\n\n/**\n * Select a color.\n * @param {String} namespace\n * @return {Number}\n * @api private\n */\n\nfunction selectColor(namespace) {\n var hash = 0, i;\n\n for (i in namespace) {\n hash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return exports.colors[Math.abs(hash) % exports.colors.length];\n}\n\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\nfunction createDebug(namespace) {\n\n var prevTime;\n\n function debug() {\n // disabled?\n if (!debug.enabled) return;\n\n var self = debug;\n\n // set `diff` timestamp\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n\n // turn the `arguments` into a proper Array\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %O\n args.unshift('%O');\n }\n\n // apply any `formatters` transformations\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val);\n\n // now we need to remove `args[index]` since it's inlined in the `format`\n args.splice(index, 1);\n index--;\n }\n return match;\n });\n\n // apply env-specific formatting (colors, etc.)\n exports.formatArgs.call(self, args);\n\n var logFn = debug.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = exports.enabled(namespace);\n debug.useColors = exports.useColors();\n debug.color = selectColor(namespace);\n debug.destroy = destroy;\n\n // env-specific initialization logic for debug instances\n if ('function' === typeof exports.init) {\n exports.init(debug);\n }\n\n exports.instances.push(debug);\n\n return debug;\n}\n\nfunction destroy () {\n var index = exports.instances.indexOf(this);\n if (index !== -1) {\n exports.instances.splice(index, 1);\n return true;\n } else {\n return false;\n }\n}\n\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n\n exports.names = [];\n exports.skips = [];\n\n var i;\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n namespaces = split[i].replace(/\\*/g, '.*?');\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n\n for (i = 0; i < exports.instances.length; i++) {\n var instance = exports.instances[i];\n instance.enabled = exports.enabled(instance.namespace);\n }\n}\n\n/**\n * Disable debug output.\n *\n * @api public\n */\n\nfunction disable() {\n exports.enable('');\n}\n\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\nfunction enabled(name) {\n if (name[name.length - 1] === '*') {\n return true;\n }\n var i, len;\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];\n var defaultToConfig2Keys = [\n 'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',\n 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath'\n ];\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {\n if (utils.isObject(config2[prop])) {\n config[prop] = utils.deepMerge(config1[prop], config2[prop]);\n } else if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (utils.isObject(config1[prop])) {\n config[prop] = utils.deepMerge(config1[prop]);\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys);\n\n var otherKeys = Object\n .keys(config2)\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n return config;\n};\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","export default class NlicError extends Error {\r\n constructor(...args) {\r\n super(...args);\r\n\r\n this.config = {};\r\n this.response = {};\r\n this.request = {};\r\n this.code = '';\r\n\r\n this.isNlicError = true;\r\n this.isAxiosError = true;\r\n }\r\n}\r\n","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","import itemToObject from './itemToObject';\r\nimport Licensee from '../entities/Licensee';\r\n\r\nexport default (item) => new Licensee(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Licensee entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the licensee. Vendor can assign this\r\n * number when creating a licensee or let NetLicensing generate one. Read-only after creation of the first license for\r\n * the licensee.\r\n * @property string number\r\n *\r\n * Licensee name.\r\n * @property string name\r\n *\r\n * If set to false, the licensee is disabled. Licensee can not obtain new licenses, and validation is\r\n * disabled (tbd).\r\n * @property boolean active\r\n *\r\n * Licensee Secret for licensee\r\n * @property string licenseeSecret\r\n *\r\n * Mark licensee for transfer.\r\n * @property boolean markedForTransfer\r\n *\r\n * Arbitrary additional user properties of string type may be associated with each licensee. The name of user property\r\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, productNumber\r\n *\r\n * @constructor\r\n */\r\nexport default class Licensee extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n licenseeSecret: 'string',\r\n markedForTransfer: 'boolean',\r\n inUse: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n */\r\n setLicenseeSecret(licenseeSecret) {\r\n return this.setProperty('licenseeSecret', licenseeSecret);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n */\r\n getLicenseeSecret(def) {\r\n return this.getProperty('licenseeSecret', def);\r\n }\r\n\r\n setMarkedForTransfer(markedForTransfer) {\r\n return this.setProperty('markedForTransfer', markedForTransfer);\r\n }\r\n\r\n getMarkedForTransfer(def) {\r\n return this.getProperty('markedForTransfer', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\n// Cast an attribute to a native JS type.\r\nexport default (key, value) => {\r\n switch (key.trim().toLowerCase()) {\r\n case 'str':\r\n case 'string':\r\n return String(value);\r\n case 'int':\r\n case 'integer':\r\n return parseInt(value, 10);\r\n case 'float':\r\n case 'double':\r\n return parseFloat(value);\r\n case 'bool':\r\n case 'boolean':\r\n switch (value) {\r\n case 'true':\r\n case 'TRUE':\r\n return true;\r\n case 'false':\r\n case 'FALSE':\r\n return false;\r\n default:\r\n return Boolean(value);\r\n }\r\n case 'date':\r\n return (value === 'now') ? 'now' : new Date(String(value));\r\n default:\r\n return value;\r\n }\r\n};\r\n","import itemToObject from './itemToObject';\r\nimport License from '../entities/License';\r\n\r\nexport default (item) => new License(itemToObject(item));\r\n","import itemToObject from './itemToObject';\r\nimport LicenseTemplate from '../entities/LicenseTemplate';\r\n\r\nexport default (item) => new LicenseTemplate(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * License template entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the license template. Vendor can\r\n * assign this number when creating a license template or let NetLicensing generate one.\r\n * Read-only after creation of the first license from this license template.\r\n * @property string number\r\n *\r\n * If set to false, the license template is disabled. Licensee can not obtain any new licenses off this\r\n * license template.\r\n * @property boolean active\r\n *\r\n * Name for the licensed item.\r\n * @property string name\r\n *\r\n * Type of licenses created from this license template. Supported types: \"FEATURE\", \"TIMEVOLUME\",\r\n * \"FLOATING\", \"QUANTITY\"\r\n * @property string licenseType\r\n *\r\n * Price for the license. If >0, it must always be accompanied by the currency specification.\r\n * @property double price\r\n *\r\n * Specifies currency for the license price. Check data types to discover which currencies are\r\n * supported.\r\n * @property string currency\r\n *\r\n * If set to true, every new licensee automatically gets one license out of this license template on\r\n * creation. Automatic licenses must have their price set to 0.\r\n * @property boolean automatic\r\n *\r\n * If set to true, this license template is not shown in NetLicensing Shop as offered for purchase.\r\n * @property boolean hidden\r\n *\r\n * If set to true, licenses from this license template are not visible to the end customer, but\r\n * participate in validation.\r\n * @property boolean hideLicenses\r\n *\r\n * If set to true, this license template defines grace period of validity granted after subscription expiration.\r\n * @property boolean gracePeriod\r\n *\r\n * Mandatory for 'TIMEVOLUME' license type.\r\n * @property integer timeVolume\r\n *\r\n * Time volume period for 'TIMEVOLUME' license type. Supported types: \"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"\r\n * @property integer timeVolumePeriod\r\n *\r\n * Mandatory for 'FLOATING' license type.\r\n * @property integer maxSessions\r\n *\r\n * Mandatory for 'QUANTITY' license type.\r\n * @property integer quantity\r\n *\r\n * @constructor\r\n */\r\nexport default class LicenseTemplate extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n licenseType: 'string',\r\n price: 'double',\r\n currency: 'string',\r\n automatic: 'boolean',\r\n hidden: 'boolean',\r\n hideLicenses: 'boolean',\r\n gracePeriod: 'boolean',\r\n timeVolume: 'int',\r\n timeVolumePeriod: 'string',\r\n maxSessions: 'int',\r\n quantity: 'int',\r\n inUse: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setLicenseType(licenseType) {\r\n return this.setProperty('licenseType', licenseType);\r\n }\r\n\r\n getLicenseType(def) {\r\n return this.getProperty('licenseType', def);\r\n }\r\n\r\n setPrice(price) {\r\n return this.setProperty('price', price);\r\n }\r\n\r\n getPrice(def) {\r\n return this.getProperty('price', def);\r\n }\r\n\r\n setCurrency(currency) {\r\n return this.setProperty('currency', currency);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n\r\n setAutomatic(automatic) {\r\n return this.setProperty('automatic', automatic);\r\n }\r\n\r\n getAutomatic(def) {\r\n return this.getProperty('automatic', def);\r\n }\r\n\r\n setHidden(hidden) {\r\n return this.setProperty('hidden', hidden);\r\n }\r\n\r\n getHidden(def) {\r\n return this.getProperty('hidden', def);\r\n }\r\n\r\n setHideLicenses(hideLicenses) {\r\n return this.setProperty('hideLicenses', hideLicenses);\r\n }\r\n\r\n getHideLicenses(def) {\r\n return this.getProperty('hideLicenses', def);\r\n }\r\n\r\n setTimeVolume(timeVolume) {\r\n return this.setProperty('timeVolume', timeVolume);\r\n }\r\n\r\n getTimeVolume(def) {\r\n return this.getProperty('timeVolume', def);\r\n }\r\n\r\n setTimeVolumePeriod(timeVolumePeriod) {\r\n return this.setProperty('timeVolumePeriod', timeVolumePeriod);\r\n }\r\n\r\n getTimeVolumePeriod(def) {\r\n return this.getProperty('timeVolumePeriod', def);\r\n }\r\n\r\n setMaxSessions(maxSessions) {\r\n return this.setProperty('maxSessions', maxSessions);\r\n }\r\n\r\n getMaxSessions(def) {\r\n return this.getProperty('maxSessions', def);\r\n }\r\n\r\n setQuantity(quantity) {\r\n return this.setProperty('quantity', quantity);\r\n }\r\n\r\n getQuantity(def) {\r\n return this.getProperty('quantity', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport PaymentMethod from '../entities/PaymentMethod';\r\n\r\nexport default (item) => new PaymentMethod(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * PaymentMethod entity used internally by NetLicensing.\r\n *\r\n * @property string number\r\n * @property boolean active\r\n *\r\n * @constructor\r\n */\r\nexport default class PaymentMethod extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n 'paypal.subject': 'string',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setPaypalSubject(paypalSubject) {\r\n return this.setProperty('paypal.subject', paypalSubject);\r\n }\r\n\r\n getPaypalSubject(def) {\r\n return this.getProperty('paypal.subject', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport ProductModule from '../entities/ProductModule';\r\n\r\nexport default (item) => new ProductModule(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Product module entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the product module. Vendor can assign\r\n * this number when creating a product module or let NetLicensing generate one. Read-only after creation of the first\r\n * licensee for the product.\r\n * @property string number\r\n *\r\n * If set to false, the product module is disabled. Licensees can not obtain any new licenses for this\r\n * product module.\r\n * @property boolean active\r\n *\r\n * Product module name that is visible to the end customers in NetLicensing Shop.\r\n * @property string name\r\n *\r\n * Licensing model applied to this product module. Defines what license templates can be\r\n * configured for the product module and how licenses for this product module are processed during validation.\r\n * @property string licensingModel\r\n *\r\n * Maximum checkout validity (days). Mandatory for 'Floating' licensing model.\r\n * @property integer maxCheckoutValidity\r\n *\r\n * Remaining time volume for yellow level. Mandatory for 'Rental' licensing model.\r\n * @property integer yellowThreshold\r\n *\r\n * Remaining time volume for red level. Mandatory for 'Rental' licensing model.\r\n * @property integer redThreshold\r\n *\r\n * License template. Mandatory for 'Try & Buy' licensing model. Supported types: \"TIMEVOLUME\", \"FEATURE\".\r\n * @property string licenseTemplate\r\n *\r\n * Licensee secret mode for product.Supported types: \"PREDEFINED\", \"CLIENT\"\r\n * @property boolean licenseeSecretMode\r\n *\r\n * @constructor\r\n */\r\nexport default class ProductModule extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n licensingModel: 'string',\r\n maxCheckoutValidity: 'int',\r\n yellowThreshold: 'int',\r\n redThreshold: 'int',\r\n licenseTemplate: 'string',\r\n inUse: 'boolean',\r\n licenseeSecretMode: 'string',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setLicensingModel(licensingModel) {\r\n return this.setProperty('licensingModel', licensingModel);\r\n }\r\n\r\n getLicensingModel(def) {\r\n return this.getProperty('licensingModel', def);\r\n }\r\n\r\n setMaxCheckoutValidity(maxCheckoutValidity) {\r\n return this.setProperty('maxCheckoutValidity', maxCheckoutValidity);\r\n }\r\n\r\n getMaxCheckoutValidity(def) {\r\n return this.getProperty('maxCheckoutValidity', def);\r\n }\r\n\r\n setYellowThreshold(yellowThreshold) {\r\n return this.setProperty('yellowThreshold', yellowThreshold);\r\n }\r\n\r\n getYellowThreshold(def) {\r\n return this.getProperty('yellowThreshold', def);\r\n }\r\n\r\n setRedThreshold(redThreshold) {\r\n return this.setProperty('redThreshold', redThreshold);\r\n }\r\n\r\n getRedThreshold(def) {\r\n return this.getProperty('redThreshold', def);\r\n }\r\n\r\n setLicenseTemplate(licenseTemplate) {\r\n return this.setProperty('licenseTemplate', licenseTemplate);\r\n }\r\n\r\n getLicenseTemplate(def) {\r\n return this.getProperty('licenseTemplate', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n\r\n setLicenseeSecretMode(licenseeSecretMode) {\r\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\r\n }\r\n\r\n getLicenseeSecretMode(def) {\r\n return this.getProperty('licenseeSecretMode', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Product from '../entities/Product';\r\n\r\nexport default (item) => {\r\n const object = itemToObject(item);\r\n\r\n const discounts = object.discount;\r\n\r\n delete object.discount;\r\n\r\n const product = new Product(object);\r\n product.setProductDiscounts(discounts);\r\n\r\n return product;\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\nimport ProductDiscount from './ProductDiscount';\r\n\r\n/**\r\n * The discounts map\r\n * @type {{}}\r\n * @private\r\n */\r\nconst discountsMap = new WeakMap();\r\n\r\n/**\r\n * An identifier that show if discounts was touched\r\n * @type {{}}\r\n * @private\r\n */\r\nconst discountsTouched = new WeakMap();\r\n\r\n/**\r\n * NetLicensing Product entity.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number that identifies the product. Vendor can assign this number when creating a product or\r\n * let NetLicensing generate one. Read-only after creation of the first licensee for the product.\r\n * @property string number\r\n *\r\n * If set to false, the product is disabled. No new licensees can be registered for the product,\r\n * existing licensees can not obtain new licenses.\r\n * @property boolean active\r\n *\r\n * Product name. Together with the version identifies the product for the end customer.\r\n * @property string name\r\n *\r\n * Product version. Convenience parameter, additional to the product name.\r\n * @property float version\r\n *\r\n * If set to 'true', non-existing licensees will be created at first validation attempt.\r\n * @property boolean licenseeAutoCreate\r\n *\r\n * Licensee secret mode for product.Supported types: \"DISABLED\", \"PREDEFINED\", \"CLIENT\"\r\n * @property boolean licenseeSecretMode\r\n *\r\n * Product description. Optional.\r\n * @property string description\r\n *\r\n * Licensing information. Optional.\r\n * @property string licensingInfo\r\n *\r\n * @property boolean inUse\r\n *\r\n * Arbitrary additional user properties of string type may be associated with each product. The name of user property\r\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted.\r\n *\r\n * @constructor\r\n */\r\nexport default class Product extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n version: 'string',\r\n description: 'string',\r\n licensingInfo: 'string',\r\n licenseeAutoCreate: 'boolean',\r\n licenseeSecretMode: 'string',\r\n inUse: 'boolean',\r\n },\r\n });\r\n\r\n discountsMap.set(this, []);\r\n discountsTouched.set(this, false);\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setVersion(version) {\r\n return this.setProperty('version', version);\r\n }\r\n\r\n getVersion(def) {\r\n return this.getProperty('version', def);\r\n }\r\n\r\n setLicenseeAutoCreate(licenseeAutoCreate) {\r\n return this.setProperty('licenseeAutoCreate', licenseeAutoCreate);\r\n }\r\n\r\n getLicenseeAutoCreate(def) {\r\n return this.getProperty('licenseeAutoCreate', def);\r\n }\r\n\r\n /**\r\n * @deprecated use ProductModule.setLicenseeSecretMode instead\r\n */\r\n setLicenseeSecretMode(licenseeSecretMode) {\r\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\r\n }\r\n\r\n /**\r\n * @deprecated use ProductModule.getLicenseeSecretMode instead\r\n */\r\n getLicenseeSecretMode(def) {\r\n return this.getProperty('licenseeSecretMode', def);\r\n }\r\n\r\n setDescription(description) {\r\n return this.setProperty('description', description);\r\n }\r\n\r\n getDescription(def) {\r\n return this.getProperty('description', def);\r\n }\r\n\r\n setLicensingInfo(licensingInfo) {\r\n return this.setProperty('licensingInfo', licensingInfo);\r\n }\r\n\r\n getLicensingInfo(def) {\r\n return this.getProperty('licensingInfo', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n\r\n /**\r\n * Add discount to product\r\n *\r\n * @param discount NetLicensing.ProductDiscount\r\n * @returns {NetLicensing.Product}\r\n */\r\n addDiscount(discount) {\r\n const discounts = discountsMap.get(this);\r\n\r\n let productDiscount = discount;\r\n\r\n if (typeof productDiscount !== 'string' && !(productDiscount instanceof ProductDiscount)) {\r\n productDiscount = new ProductDiscount(productDiscount);\r\n }\r\n\r\n discounts.push(productDiscount);\r\n discountsMap.set(this, discounts);\r\n discountsTouched.set(this, true);\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set discounts to product\r\n * @param discounts\r\n */\r\n setProductDiscounts(discounts) {\r\n discountsMap.set(this, []);\r\n discountsTouched.set(this, true);\r\n\r\n if (!discounts) return this;\r\n\r\n if (Array.isArray(discounts)) {\r\n discounts.forEach((discount) => {\r\n this.addDiscount(discount);\r\n });\r\n\r\n return this;\r\n }\r\n\r\n this.addDiscount(discounts);\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Get array of objects discounts\r\n * @returns {Array}\r\n */\r\n getProductDiscounts() {\r\n return Object.assign([], discountsMap.get(this));\r\n }\r\n\r\n asPropertiesMap() {\r\n const propertiesMap = super.asPropertiesMap();\r\n\r\n if (discountsMap.get(this).length) {\r\n propertiesMap.discount = discountsMap.get(this).map((discount) => discount.toString());\r\n }\r\n\r\n if (!propertiesMap.discount && discountsTouched.get(this)) {\r\n propertiesMap.discount = '';\r\n }\r\n\r\n return propertiesMap;\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nimport BaseEntity from './BaseEntity';\r\n\r\nexport default class ProductDiscount extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n totalPrice: 'float',\r\n currency: 'string',\r\n amountFix: 'float',\r\n amountPercent: 'int',\r\n },\r\n });\r\n }\r\n\r\n setTotalPrice(totalPrice) {\r\n return this.setProperty('totalPrice', totalPrice);\r\n }\r\n\r\n getTotalPrice(def) {\r\n return this.getProperty('totalPrice', def);\r\n }\r\n\r\n setCurrency(currency) {\r\n return this.setProperty('currency', currency);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n\r\n setAmountFix(amountFix) {\r\n return this.setProperty('amountFix', amountFix).removeProperty('amountPercent');\r\n }\r\n\r\n getAmountFix(def) {\r\n return this.getProperty('amountFix', def);\r\n }\r\n\r\n setAmountPercent(amountPercent) {\r\n return this.setProperty('amountPercent', amountPercent).removeProperty('amountFix');\r\n }\r\n\r\n getAmountPercent(def) {\r\n return this.getProperty('amountPercent', def);\r\n }\r\n\r\n toString() {\r\n const totalPrice = this.getTotalPrice();\r\n const currency = this.getCurrency();\r\n let amount = 0;\r\n\r\n if (this.getAmountFix(null)) amount = this.getAmountFix();\r\n if (this.getAmountPercent(null)) amount = `${this.getAmountPercent()}%`;\r\n\r\n return `${totalPrice};${currency};${amount}`;\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Token from '../entities/Token';\r\n\r\nexport default (item) => new Token(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Product module entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number\r\n * @property string number\r\n *\r\n * If set to false, the token is disabled.\r\n * @property boolean active\r\n *\r\n * Expiration Time\r\n * @property string expirationTime\r\n *\r\n * @property string vendorNumber\r\n *\r\n * Token type to be generated.\r\n * DEFAULT - default one-time token (will be expired after first request)\r\n * SHOP - shop token is used to redirect customer to the netlicensingShop(licenseeNumber is mandatory)\r\n * APIKEY - APIKey-token\r\n * @property string tokenType\r\n *\r\n * @property string licenseeNumber\r\n *\r\n * @constructor\r\n */\r\nexport default class Token extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n expirationTime: 'date',\r\n vendorNumber: 'string',\r\n tokenType: 'string',\r\n licenseeNumber: 'string',\r\n successURL: 'string',\r\n successURLTitle: 'string',\r\n cancelURL: 'string',\r\n cancelURLTitle: 'string',\r\n shopURL: 'string',\r\n },\r\n });\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setExpirationTime(expirationTime) {\r\n return this.setProperty('expirationTime', expirationTime);\r\n }\r\n\r\n getExpirationTime(def) {\r\n return this.getProperty('expirationTime', def);\r\n }\r\n\r\n setVendorNumber(vendorNumber) {\r\n return this.setProperty('vendorNumber', vendorNumber);\r\n }\r\n\r\n getVendorNumber(def) {\r\n return this.getProperty('vendorNumber', def);\r\n }\r\n\r\n setTokenType(tokenType) {\r\n return this.setProperty('tokenType', tokenType);\r\n }\r\n\r\n getTokenType(def) {\r\n return this.getProperty('tokenType', def);\r\n }\r\n\r\n setLicenseeNumber(licenseeNumber) {\r\n return this.setProperty('licenseeNumber', licenseeNumber);\r\n }\r\n\r\n getLicenseeNumber(def) {\r\n return this.getProperty('licenseeNumber', def);\r\n }\r\n\r\n setSuccessURL(successURL) {\r\n return this.setProperty('successURL', successURL);\r\n }\r\n\r\n getSuccessURL(def) {\r\n return this.getProperty('successURL', def);\r\n }\r\n\r\n setSuccessURLTitle(successURLTitle) {\r\n return this.setProperty('successURLTitle', successURLTitle);\r\n }\r\n\r\n getSuccessURLTitle(def) {\r\n return this.getProperty('successURLTitle', def);\r\n }\r\n\r\n setCancelURL(cancelURL) {\r\n return this.setProperty('cancelURL', cancelURL);\r\n }\r\n\r\n getCancelURL(def) {\r\n return this.getProperty('cancelURL', def);\r\n }\r\n\r\n setCancelURLTitle(cancelURLTitle) {\r\n return this.setProperty('cancelURLTitle', cancelURLTitle);\r\n }\r\n\r\n getCancelURLTitle(def) {\r\n return this.getProperty('cancelURLTitle', def);\r\n }\r\n\r\n getShopURL(def) {\r\n return this.getProperty('shopURL', def);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n * @alias setApiKeyRole\r\n * @param role\r\n * @returns {*}\r\n */\r\n setRole(role) {\r\n return this.setApiKeyRole(role);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n * @alias getApiKeyRole\r\n * @param def\r\n * @returns {*}\r\n */\r\n getRole(def) {\r\n return this.getApiKeyRole(def);\r\n }\r\n\r\n setApiKeyRole(apiKeyRole) {\r\n return this.setProperty('apiKeyRole', apiKeyRole);\r\n }\r\n\r\n getApiKeyRole(def) {\r\n return this.getProperty('apiKeyRole', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Transaction from '../entities/Transaction';\r\nimport License from '../entities/License';\r\nimport LicenseTransactionJoin from '../entities/LicenseTransactionJoin';\r\nimport Constants from '../Constants';\r\n\r\nexport default (item) => {\r\n const object = itemToObject(item);\r\n\r\n const { licenseTransactionJoin } = object;\r\n\r\n delete object.licenseTransactionJoin;\r\n\r\n const transaction = new Transaction(object);\r\n\r\n if (licenseTransactionJoin) {\r\n const joins = [];\r\n\r\n licenseTransactionJoin.forEach((v) => {\r\n const join = new LicenseTransactionJoin();\r\n join.setLicense(new License({ number: v[Constants.License.LICENSE_NUMBER] }));\r\n join.setTransaction(new Transaction({ number: v[Constants.Transaction.TRANSACTION_NUMBER] }));\r\n\r\n joins.push(join);\r\n });\r\n\r\n transaction.setLicenseTransactionJoins(joins);\r\n }\r\n\r\n return transaction;\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\nimport LicenseTransactionJoin from './LicenseTransactionJoin';\r\nimport License from './License';\r\n\r\n/**\r\n * Transaction entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the transaction. This number is\r\n * always generated by NetLicensing.\r\n * @property string number\r\n *\r\n * always true for transactions\r\n * @property boolean active\r\n *\r\n * Status of transaction. \"CANCELLED\", \"CLOSED\", \"PENDING\".\r\n * @property string status\r\n *\r\n * \"SHOP\". AUTO transaction for internal use only.\r\n * @property string source\r\n *\r\n * grand total for SHOP transaction (see source).\r\n * @property float grandTotal\r\n *\r\n * discount for SHOP transaction (see source).\r\n * @property float discount\r\n *\r\n * specifies currency for money fields (grandTotal and discount). Check data types to discover which\r\n * @property string currency\r\n *\r\n * Date created. Optional.\r\n * @property string dateCreated\r\n *\r\n * Date closed. Optional.\r\n * @property string dateClosed\r\n *\r\n * @constructor\r\n */\r\nexport default class Transaction extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n name: 'string',\r\n status: 'string',\r\n source: 'string',\r\n grandTotal: 'float',\r\n discount: 'float',\r\n currency: 'string',\r\n dateCreated: 'date',\r\n dateClosed: 'date',\r\n active: 'boolean',\r\n paymentMethod: 'string',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setStatus(status) {\r\n return this.setProperty('status', status);\r\n }\r\n\r\n getStatus(def) {\r\n return this.getProperty('status', def);\r\n }\r\n\r\n setSource(source) {\r\n return this.setProperty('source', source);\r\n }\r\n\r\n getSource(def) {\r\n return this.getProperty('source', def);\r\n }\r\n\r\n setGrandTotal(grandTotal) {\r\n return this.setProperty('grandTotal', grandTotal);\r\n }\r\n\r\n getGrandTotal(def) {\r\n return this.getProperty('grandTotal', def);\r\n }\r\n\r\n setDiscount(discount) {\r\n return this.setProperty('discount', discount);\r\n }\r\n\r\n getDiscount(def) {\r\n return this.getProperty('discount', def);\r\n }\r\n\r\n setCurrency(currency) {\r\n return this.setProperty('currency', currency);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n\r\n setDateCreated(dateCreated) {\r\n return this.setProperty('dateCreated', dateCreated);\r\n }\r\n\r\n getDateCreated(def) {\r\n return this.getProperty('dateCreated', def);\r\n }\r\n\r\n setDateClosed(dateClosed) {\r\n return this.setProperty('dateClosed', dateClosed);\r\n }\r\n\r\n getDateClosed(def) {\r\n return this.getProperty('dateClosed', def);\r\n }\r\n\r\n setPaymentMethod(paymentMethod) {\r\n return this.setProperty('paymentMethod', paymentMethod);\r\n }\r\n\r\n getPaymentMethod(def) {\r\n return this.getProperty('paymentMethod', def);\r\n }\r\n\r\n setActive() {\r\n return this.setProperty('active', true);\r\n }\r\n\r\n getLicenseTransactionJoins(def) {\r\n return this.getProperty('licenseTransactionJoins', def);\r\n }\r\n\r\n setLicenseTransactionJoins(licenseTransactionJoins) {\r\n return this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\r\n }\r\n\r\n setListLicenseTransactionJoin(properties) {\r\n if (!properties) return;\r\n\r\n const licenseTransactionJoins = this.getProperty('licenseTransactionJoins', []);\r\n const licenseTransactionJoin = new LicenseTransactionJoin();\r\n\r\n properties.forEach((property) => {\r\n if (property.name === 'licenseNumber') {\r\n licenseTransactionJoin.setLicense(new License({ number: property.value }));\r\n }\r\n\r\n if (property.name === 'transactionNumber') {\r\n licenseTransactionJoin.setTransaction(new Transaction({ number: property.value }));\r\n }\r\n });\r\n\r\n licenseTransactionJoins.push(licenseTransactionJoin);\r\n this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Country from '../entities/Country';\r\n\r\nexport default (item) => new Country(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Country entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * @property code - Unique code of country.\r\n *\r\n * @property name - Unique name of country\r\n *\r\n * @property vatPercent - Country vat.\r\n *\r\n * @property isEu - is country in EU.\r\n */\r\nexport default class Country extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n code: 'string',\r\n name: 'string',\r\n vatPercent: 'int',\r\n isEu: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setCode(code) {\r\n return this.setProperty('code', code);\r\n }\r\n\r\n getCode(def) {\r\n return this.getProperty('code', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setVatPercent(vat) {\r\n return this.setProperty('vatPercent', vat);\r\n }\r\n\r\n getVatPercent(def) {\r\n return this.getProperty('vatPercent', def);\r\n }\r\n\r\n setIsEu(isEu) {\r\n return this.setProperty('isEu', isEu);\r\n }\r\n\r\n getIsEu(def) {\r\n return this.getProperty('isEu', def);\r\n }\r\n}\r\n","// Constants\r\nimport Constants from './Constants';\r\n\r\n// VO\r\nimport Context from './vo/Context';\r\nimport Page from './vo/Page';\r\nimport ValidationParameters from './vo/ValidationParameters';\r\nimport ValidationResults from './vo/ValidationResults';\r\n\r\n// Services\r\nimport Service from './services/Service';\r\nimport LicenseeService from './services/LicenseeService';\r\nimport LicenseService from './services/LicenseService';\r\nimport LicenseTemplateService from './services/LicenseTemplateService';\r\nimport PaymentMethodService from './services/PaymentMethodService';\r\nimport ProductModuleService from './services/ProductModuleService';\r\nimport ProductService from './services/ProductService';\r\nimport TokenService from './services/TokenService';\r\nimport TransactionService from './services/TransactionService';\r\nimport UtilityService from './services/UtilityService';\r\n\r\n// Entities\r\nimport BaseEntity from './entities/BaseEntity';\r\nimport Country from './entities/Country';\r\nimport License from './entities/License';\r\nimport Licensee from './entities/Licensee';\r\nimport LicenseTemplate from './entities/LicenseTemplate';\r\nimport PaymentMethod from './entities/PaymentMethod';\r\nimport Product from './entities/Product';\r\nimport ProductDiscount from './entities/ProductDiscount';\r\nimport ProductModule from './entities/ProductModule';\r\nimport Token from './entities/Token';\r\nimport Transaction from './entities/Transaction';\r\nimport LicenseTransactionJoin from './entities/LicenseTransactionJoin';\r\n\r\n// Converters\r\nimport itemToCountry from './converters/itemToCountry';\r\nimport itemToLicense from './converters/itemToLicense';\r\nimport itemToLicensee from './converters/itemToLicensee';\r\nimport itemToLicenseTemplate from './converters/itemToLicenseTemplate';\r\nimport itemToObject from './converters/itemToObject';\r\nimport itemToPaymentMethod from './converters/itemToPaymentMethod';\r\nimport itemToProduct from './converters/itemToProduct';\r\nimport itemToProductModule from './converters/itemToProductModule';\r\nimport itemToToken from './converters/itemToToken';\r\nimport itemToTransaction from './converters/itemToTransaction';\r\n\r\n// Utils\r\nimport CastsUtils from './util/CastsUtils';\r\nimport CheckUtils from './util/CheckUtils';\r\nimport FilterUtils from './util/FilterUtils';\r\n\r\n// Errors\r\nimport NlicError from './errors/NlicError';\r\n\r\n// Create the default instance to be exported\r\nconst NetLicensing = {\r\n // Constants\r\n Constants,\r\n\r\n // Expose VO\r\n Context,\r\n Page,\r\n ValidationParameters,\r\n ValidationResults,\r\n\r\n // Expose Services\r\n Service,\r\n LicenseeService,\r\n LicenseService,\r\n LicenseTemplateService,\r\n PaymentMethodService,\r\n ProductModuleService,\r\n ProductService,\r\n TokenService,\r\n TransactionService,\r\n UtilityService,\r\n\r\n // Expose Entities\r\n BaseEntity,\r\n Country,\r\n License,\r\n Licensee,\r\n LicenseTemplate,\r\n PaymentMethod,\r\n Product,\r\n ProductDiscount,\r\n ProductModule,\r\n Token,\r\n Transaction,\r\n LicenseTransactionJoin,\r\n\r\n // Expose Converters\r\n itemToCountry,\r\n itemToLicense,\r\n itemToLicensee,\r\n itemToLicenseTemplate,\r\n itemToObject,\r\n itemToPaymentMethod,\r\n itemToProduct,\r\n itemToProductModule,\r\n itemToToken,\r\n itemToTransaction,\r\n\r\n // Expose Utils\r\n CastsUtils,\r\n CheckUtils,\r\n FilterUtils,\r\n\r\n // Errors\r\n NlicError,\r\n};\r\n\r\nmodule.exports = NetLicensing;\r\n\r\n// Allow use of default import syntax in TypeScript\r\nmodule.exports.default = NetLicensing;\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nimport Constants from '../Constants';\r\nimport CheckUtils from '../util/CheckUtils';\r\n\r\n/**\r\n * The context values.\r\n * @type {{}}\r\n * @private\r\n */\r\nconst valuesMap = new WeakMap();\r\n\r\n/**\r\n * List of values that was defined\r\n * @type {{}}\r\n * @private\r\n */\r\nconst definedMap = new WeakMap();\r\n\r\n/**\r\n * Context defaults\r\n * @type {{baseUrl: string, securityMode}}\r\n * @private\r\n */\r\nconst defaultsMap = new WeakMap();\r\n\r\nexport default class Context {\r\n constructor(values) {\r\n defaultsMap.set(this, {\r\n baseUrl: 'https://go.netlicensing.io/core/v2/rest',\r\n securityMode: Constants.BASIC_AUTHENTICATION,\r\n });\r\n\r\n valuesMap.set(this, {});\r\n\r\n definedMap.set(this, {});\r\n\r\n this.setValues({ ...defaultsMap.get(this), ...values });\r\n }\r\n\r\n setBaseUrl(baseUrl) {\r\n return this.setValue('baseUrl', baseUrl);\r\n }\r\n\r\n getBaseUrl(def) {\r\n return this.getValue('baseUrl', def);\r\n }\r\n\r\n setUsername(username) {\r\n return this.setValue('username', username);\r\n }\r\n\r\n getUsername(def) {\r\n return this.getValue('username', def);\r\n }\r\n\r\n setPassword(password) {\r\n return this.setValue('password', password);\r\n }\r\n\r\n getPassword(def) {\r\n return this.getValue('password', def);\r\n }\r\n\r\n setApiKey(apiKey) {\r\n return this.setValue('apiKey', apiKey);\r\n }\r\n\r\n getApiKey(def) {\r\n return this.getValue('apiKey', def);\r\n }\r\n\r\n setSecurityMode(securityMode) {\r\n return this.setValue('securityMode', securityMode);\r\n }\r\n\r\n getSecurityMode(def) {\r\n return this.getValue('securityMode', def);\r\n }\r\n\r\n setVendorNumber(vendorNumber) {\r\n return this.setValue('vendorNumber', vendorNumber);\r\n }\r\n\r\n getVendorNumber(def) {\r\n return this.getValue('vendorNumber', def);\r\n }\r\n\r\n /**\r\n * Set a given values on the context.\r\n * @param key\r\n * @param value\r\n * @returns {Context}\r\n */\r\n setValue(key, value) {\r\n // check values\r\n if (!CheckUtils.isValid(key) || typeof key === 'object') throw new Error(`Bad value key:${key}`);\r\n if (!CheckUtils.isValid(value)) throw new Error(`Value ${key} has wrong value${value}`);\r\n\r\n // define keys\r\n this.define(key);\r\n\r\n let copedValue = value;\r\n\r\n if (typeof value === 'object' && value !== null) {\r\n copedValue = (Array.isArray(value)) ? Object.assign([], value) : ({ ...value });\r\n }\r\n\r\n const values = valuesMap.get(this);\r\n values[key] = copedValue;\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the array of context values.\r\n * @param values\r\n * @returns {Context}\r\n */\r\n setValues(values) {\r\n this.removeValues();\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(values).forEach((key) => {\r\n if (has.call(values, key)) {\r\n this.setValue(key, values[key]);\r\n }\r\n });\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Get an value from the context.\r\n * @param key\r\n * @param def\r\n * @returns {*}\r\n */\r\n getValue(key, def) {\r\n return (key in valuesMap.get(this))\r\n ? valuesMap.get(this)[key]\r\n : def;\r\n }\r\n\r\n /**\r\n * Get all of the current value on the context.\r\n */\r\n getValues() {\r\n return { ...valuesMap.get(this) };\r\n }\r\n\r\n /**\r\n * Remove value\r\n * @param key\r\n * @returns {Context}\r\n */\r\n removeValue(key) {\r\n const values = valuesMap.get(this);\r\n delete values[key];\r\n\r\n this.removeDefine(key);\r\n return this;\r\n }\r\n\r\n /**\r\n * Remove values\r\n * @param keys\r\n */\r\n removeValues(keys) {\r\n const keysAr = keys || Object.keys(valuesMap.get(this));\r\n keysAr.forEach((key) => this.removeValue(key));\r\n }\r\n\r\n /**\r\n * Define value getter and setter\r\n * @param key\r\n * @param onlyGetter\r\n * @private\r\n */\r\n define(key, onlyGetter) {\r\n if (this.hasDefine(key)) return;\r\n\r\n if (!CheckUtils.isValid(key) || typeof property === 'object') {\r\n throw new TypeError(`Bad value name:${key}`);\r\n }\r\n\r\n const self = this;\r\n\r\n // delete property\r\n delete this[key];\r\n\r\n const descriptors = {\r\n enumerable: true,\r\n configurable: true,\r\n get() {\r\n return self.getValue(key);\r\n },\r\n };\r\n\r\n if (!onlyGetter) {\r\n descriptors.set = (value) => self.setValue(key, value);\r\n }\r\n\r\n const defined = definedMap.get(this);\r\n defined[key] = true;\r\n\r\n Object.defineProperty(this, key, descriptors);\r\n }\r\n\r\n /**\r\n * Check if value has defined\r\n * @param key\r\n * @private\r\n */\r\n hasDefine(key) {\r\n return Boolean(definedMap.get(this)[key]);\r\n }\r\n\r\n /**\r\n * Remove value getter and setter\r\n * @param key\r\n * @private\r\n */\r\n removeDefine(key) {\r\n if (!this.hasDefine(key)) return;\r\n\r\n const defined = definedMap.get(this);\r\n delete defined[key];\r\n\r\n delete this[key];\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\n/**\r\n * Validation parameters map\r\n *\r\n * @type {WeakMap}\r\n */\r\nconst vpMap = new WeakMap();\r\n\r\nexport default class ValidationParameters {\r\n constructor() {\r\n vpMap.set(this, { parameters: {} });\r\n }\r\n\r\n /**\r\n * Sets the target product\r\n *\r\n * optional productNumber, must be provided in case licensee auto-create is enabled\r\n * @param productNumber\r\n * @returns {ValidationParameters}\r\n */\r\n setProductNumber(productNumber) {\r\n vpMap.get(this).productNumber = productNumber;\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the target product\r\n * @returns {*}\r\n */\r\n getProductNumber() {\r\n return vpMap.get(this).productNumber;\r\n }\r\n\r\n /**\r\n * Sets the name for the new licensee\r\n *\r\n * optional human-readable licensee name in case licensee will be auto-created. This parameter must not\r\n * be the name, but can be used to store any other useful string information with new licensees, up to\r\n * 1000 characters.\r\n * @param licenseeName\r\n * @returns {NetLicensing.ValidationParameters}\r\n */\r\n setLicenseeName(licenseeName) {\r\n vpMap.get(this).licenseeName = licenseeName;\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the licensee name\r\n * @returns {*}\r\n */\r\n getLicenseeName() {\r\n return vpMap.get(this).licenseeName;\r\n }\r\n\r\n /**\r\n * Sets the licensee secret\r\n *\r\n * licensee secret stored on the client side. Refer to Licensee Secret documentation for details.\r\n * @param licenseeSecret\r\n * @returns {ValidationParameters}\r\n * @deprecated use 'NodeLocked' licensingModel instead\r\n */\r\n setLicenseeSecret(licenseeSecret) {\r\n vpMap.get(this).licenseeSecret = licenseeSecret;\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the licensee secret\r\n * @returns {*}\r\n * @deprecated use 'NodeLocked' licensingModel instead\r\n */\r\n getLicenseeSecret() {\r\n return vpMap.get(this).licenseeSecret;\r\n }\r\n\r\n /**\r\n * Get validation parameters\r\n * @returns {*}\r\n */\r\n getParameters() {\r\n return { ...vpMap.get(this).parameters };\r\n }\r\n\r\n getProductModuleValidationParameters(productModuleNumber) {\r\n return { ...vpMap.get(this).parameters[productModuleNumber] };\r\n }\r\n\r\n setProductModuleValidationParameters(productModuleNumber, productModuleParameters) {\r\n const { parameters } = vpMap.get(this);\r\n\r\n if (parameters[productModuleNumber] === undefined || !Object.keys(parameters[productModuleNumber]).length) {\r\n parameters[productModuleNumber] = {};\r\n }\r\n\r\n parameters[productModuleNumber] = Object.assign(parameters[productModuleNumber], productModuleParameters);\r\n\r\n return this;\r\n }\r\n}\r\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n var cookies = require('./../helpers/cookies');\n\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (requestData === undefined) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildFullPath = require('../core/buildFullPath');\nvar buildURL = require('./../helpers/buildURL');\nvar http = require('http');\nvar https = require('https');\nvar httpFollow = require('follow-redirects').http;\nvar httpsFollow = require('follow-redirects').https;\nvar url = require('url');\nvar zlib = require('zlib');\nvar pkg = require('./../../package.json');\nvar createError = require('../core/createError');\nvar enhanceError = require('../core/enhanceError');\n\nvar isHttps = /https:?/;\n\n/*eslint consistent-return:0*/\nmodule.exports = function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n var resolve = function resolve(value) {\n resolvePromise(value);\n };\n var reject = function reject(value) {\n rejectPromise(value);\n };\n var data = config.data;\n var headers = config.headers;\n\n // Set User-Agent (required by some servers)\n // Only set header if it hasn't been set in config\n // See https://github.com/axios/axios/issues/69\n if (!headers['User-Agent'] && !headers['user-agent']) {\n headers['User-Agent'] = 'axios/' + pkg.version;\n }\n\n if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(createError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers['Content-Length'] = data.length;\n }\n\n // HTTP basic authentication\n var auth = undefined;\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n // Parse url\n var fullPath = buildFullPath(config.baseURL, config.url);\n var parsed = url.parse(fullPath);\n var protocol = parsed.protocol || 'http:';\n\n if (!auth && parsed.auth) {\n var urlAuth = parsed.auth.split(':');\n var urlUsername = urlAuth[0] || '';\n var urlPassword = urlAuth[1] || '';\n auth = urlUsername + ':' + urlPassword;\n }\n\n if (auth) {\n delete headers.Authorization;\n }\n\n var isHttpsRequest = isHttps.test(protocol);\n var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n\n var options = {\n path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\\?/, ''),\n method: config.method.toUpperCase(),\n headers: headers,\n agent: agent,\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth: auth\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n }\n\n var proxy = config.proxy;\n if (!proxy && proxy !== false) {\n var proxyEnv = protocol.slice(0, -1) + '_proxy';\n var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];\n if (proxyUrl) {\n var parsedProxyUrl = url.parse(proxyUrl);\n var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;\n var shouldProxy = true;\n\n if (noProxyEnv) {\n var noProxy = noProxyEnv.split(',').map(function trim(s) {\n return s.trim();\n });\n\n shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {\n if (!proxyElement) {\n return false;\n }\n if (proxyElement === '*') {\n return true;\n }\n if (proxyElement[0] === '.' &&\n parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {\n return true;\n }\n\n return parsed.hostname === proxyElement;\n });\n }\n\n\n if (shouldProxy) {\n proxy = {\n host: parsedProxyUrl.hostname,\n port: parsedProxyUrl.port\n };\n\n if (parsedProxyUrl.auth) {\n var proxyUrlAuth = parsedProxyUrl.auth.split(':');\n proxy.auth = {\n username: proxyUrlAuth[0],\n password: proxyUrlAuth[1]\n };\n }\n }\n }\n }\n\n if (proxy) {\n options.hostname = proxy.host;\n options.host = proxy.host;\n options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');\n options.port = proxy.port;\n options.path = protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path;\n\n // Basic proxy authorization\n if (proxy.auth) {\n var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n }\n\n var transport;\n var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsProxy ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n transport = isHttpsProxy ? httpsFollow : httpFollow;\n }\n\n if (config.maxContentLength && config.maxContentLength > -1) {\n options.maxBodyLength = config.maxContentLength;\n }\n\n // Create the request\n var req = transport.request(options, function handleResponse(res) {\n if (req.aborted) return;\n\n // uncompress the response body transparently if required\n var stream = res;\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n stream = (res.statusCode === 204) ? stream : stream.pipe(zlib.createUnzip());\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n }\n\n // return the last request in case of redirects\n var lastRequest = res.req || req;\n\n var response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: res.headers,\n config: config,\n request: lastRequest\n };\n\n if (config.responseType === 'stream') {\n response.data = stream;\n settle(resolve, reject, response);\n } else {\n var responseBuffer = [];\n stream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && Buffer.concat(responseBuffer).length > config.maxContentLength) {\n stream.destroy();\n reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n config, null, lastRequest));\n }\n });\n\n stream.on('error', function handleStreamError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, lastRequest));\n });\n\n stream.on('end', function handleStreamEnd() {\n var responseData = Buffer.concat(responseBuffer);\n if (config.responseType !== 'arraybuffer') {\n responseData = responseData.toString(config.responseEncoding);\n }\n\n response.data = responseData;\n settle(resolve, reject, response);\n });\n }\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, req));\n });\n\n // Handle request timeout\n if (config.timeout) {\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devoring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(config.timeout, function handleRequestTimeout() {\n req.abort();\n reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED', req));\n });\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (req.aborted) return;\n\n req.abort();\n reject(cancel);\n });\n }\n\n // Send the request\n if (utils.isStream(data)) {\n data.on('error', function handleStreamError(err) {\n reject(enhanceError(err, config, null, req));\n }).pipe(req);\n } else {\n req.end(data);\n }\n });\n};\n","module.exports = require(\"assert\");","module.exports = require(\"stream\");","/**\n * Detect Electron renderer process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer') {\n module.exports = require('./browser.js');\n} else {\n module.exports = require('./node.js');\n}\n","/**\n * This is the web browser implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = require('./debug');\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome\n && 'undefined' != typeof chrome.storage\n ? chrome.storage.local\n : localstorage();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n '#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC',\n '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF',\n '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC',\n '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF',\n '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC',\n '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033',\n '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366',\n '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933',\n '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC',\n '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF',\n '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {\n return true;\n }\n\n // Internet Explorer and Edge do not support colors.\n if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n return false;\n }\n\n // is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n // is firebug? http://stackoverflow.com/a/398120/376773\n (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n // is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n // double check webkit in userAgent just in case we are in a worker\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nexports.formatters.j = function(v) {\n try {\n return JSON.stringify(v);\n } catch (err) {\n return '[UnexpectedJSONParseError]: ' + err.message;\n }\n};\n\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var useColors = this.useColors;\n\n args[0] = (useColors ? '%c' : '')\n + this.namespace\n + (useColors ? ' %c' : ' ')\n + args[0]\n + (useColors ? '%c ' : ' ')\n + '+' + exports.humanize(this.diff);\n\n if (!useColors) return;\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit')\n\n // the final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function(match) {\n if ('%%' === match) return;\n index++;\n if ('%c' === match) {\n // we only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n\n args.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\nfunction log() {\n // this hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return 'object' === typeof console\n && console.log\n && Function.prototype.apply.call(console.log, console, arguments);\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch(e) {}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n var r;\n try {\n r = exports.storage.debug;\n } catch(e) {}\n\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n\n/**\n * Enable namespaces listed in `localStorage.debug` initially.\n */\n\nexports.enable(load());\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isNaN(val) === false) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^((?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n if (ms >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (ms >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (ms >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (ms >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n return plural(ms, d, 'day') ||\n plural(ms, h, 'hour') ||\n plural(ms, m, 'minute') ||\n plural(ms, s, 'second') ||\n ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, n, name) {\n if (ms < n) {\n return;\n }\n if (ms < n * 1.5) {\n return Math.floor(ms / n) + ' ' + name;\n }\n return Math.ceil(ms / n) + ' ' + name + 's';\n}\n","/**\n * Module dependencies.\n */\n\nvar tty = require('tty');\nvar util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = require('./debug');\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\n\n/**\n * Colors.\n */\n\nexports.colors = [ 6, 2, 3, 4, 5, 1 ];\n\ntry {\n var supportsColor = require('supports-color');\n if (supportsColor && supportsColor.level >= 2) {\n exports.colors = [\n 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68,\n 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134,\n 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171,\n 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204,\n 205, 206, 207, 208, 209, 214, 215, 220, 221\n ];\n }\n} catch (err) {\n // swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(function (key) {\n return /^debug_/i.test(key);\n}).reduce(function (obj, key) {\n // camel-case\n var prop = key\n .substring(6)\n .toLowerCase()\n .replace(/_([a-z])/g, function (_, k) { return k.toUpperCase() });\n\n // coerce string value into JS value\n var val = process.env[key];\n if (/^(yes|on|true|enabled)$/i.test(val)) val = true;\n else if (/^(no|off|false|disabled)$/i.test(val)) val = false;\n else if (val === 'null') val = null;\n else val = Number(val);\n\n obj[prop] = val;\n return obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n return 'colors' in exports.inspectOpts\n ? Boolean(exports.inspectOpts.colors)\n : tty.isatty(process.stderr.fd);\n}\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nexports.formatters.o = function(v) {\n this.inspectOpts.colors = this.useColors;\n return util.inspect(v, this.inspectOpts)\n .split('\\n').map(function(str) {\n return str.trim()\n }).join(' ');\n};\n\n/**\n * Map %o to `util.inspect()`, allowing multiple lines if needed.\n */\n\nexports.formatters.O = function(v) {\n this.inspectOpts.colors = this.useColors;\n return util.inspect(v, this.inspectOpts);\n};\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var name = this.namespace;\n var useColors = this.useColors;\n\n if (useColors) {\n var c = this.color;\n var colorCode = '\\u001b[3' + (c < 8 ? c : '8;5;' + c);\n var prefix = ' ' + colorCode + ';1m' + name + ' ' + '\\u001b[0m';\n\n args[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n args.push(colorCode + 'm+' + exports.humanize(this.diff) + '\\u001b[0m');\n } else {\n args[0] = getDate() + name + ' ' + args[0];\n }\n}\n\nfunction getDate() {\n if (exports.inspectOpts.hideDate) {\n return '';\n } else {\n return new Date().toISOString() + ' ';\n }\n}\n\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\nfunction log() {\n return process.stderr.write(util.format.apply(util, arguments) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n if (null == namespaces) {\n // If you set a process.env field to null or undefined, it gets cast to the\n // string 'null' or 'undefined'. Just delete instead.\n delete process.env.DEBUG;\n } else {\n process.env.DEBUG = namespaces;\n }\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n return process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init (debug) {\n debug.inspectOpts = {};\n\n var keys = Object.keys(exports.inspectOpts);\n for (var i = 0; i < keys.length; i++) {\n debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n }\n}\n\n/**\n * Enable namespaces listed in `process.env.DEBUG` initially.\n */\n\nexports.enable(load());\n","module.exports = require(\"tty\");","module.exports = require(\"util\");","'use strict';\nconst os = require('os');\nconst hasFlag = require('has-flag');\n\nconst env = process.env;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false')) {\n\tforceColor = false;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = true;\n}\nif ('FORCE_COLOR' in env) {\n\tforceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(stream) {\n\tif (forceColor === false) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (stream && !stream.isTTY && forceColor !== true) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor ? 1 : 0;\n\n\tif (process.platform === 'win32') {\n\t\t// Node.js 7.5.0 is the first version of Node.js to include a patch to\n\t\t// libuv that enables 256 color output on Windows. Anything earlier and it\n\t\t// won't work. However, here we target Node.js 8 at minimum as it is an LTS\n\t\t// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows\n\t\t// release that supports 256 colors. Windows 10 build 14931 is the first release\n\t\t// that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(process.versions.node.split('.')[0]) >= 8 &&\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: getSupportLevel(process.stdout),\n\tstderr: getSupportLevel(process.stderr)\n};\n","module.exports = require(\"os\");","'use strict';\nmodule.exports = (flag, argv) => {\n\targv = argv || process.argv;\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst pos = argv.indexOf(prefix + flag);\n\tconst terminatorPos = argv.indexOf('--');\n\treturn pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);\n};\n","module.exports = require(\"zlib\");","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","(function () {\n \"use strict\";\n\n function btoa(str) {\n var buffer;\n\n if (str instanceof Buffer) {\n buffer = str;\n } else {\n buffer = Buffer.from(str.toString(), 'binary');\n }\n\n return buffer.toString('base64');\n }\n\n module.exports = btoa;\n}());\n","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeFunction = require(\"./isNativeFunction\");\n\nvar construct = require(\"./construct\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;","function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport ValidationResults from '../vo/ValidationResults';\r\nimport itemToLicensee from '../converters/itemToLicensee';\r\nimport Page from '../vo/Page';\r\nimport itemToObject from '../converters/itemToObject';\r\n\r\n/**\r\n * JS representation of the Licensee Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/licensee-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new licensee object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#create-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent product to which the new licensee is to be added\r\n * @param productNumber string\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param licensee NetLicensing.Licensee\r\n *\r\n * return the newly created licensee object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, productNumber, licensee) {\r\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\r\n\r\n licensee.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Licensee.ENDPOINT_PATH, licensee.asPropertiesMap());\r\n\r\n return itemToLicensee(item);\r\n },\r\n\r\n /**\r\n * Gets licensee by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#get-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the licensee number\r\n * @param number string\r\n *\r\n * return the licensee in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToLicensee(item);\r\n },\r\n\r\n /**\r\n * Returns all licensees of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#licensees-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of licensees (of all products) or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.Licensee.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToLicensee(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates licensee properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#update-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * licensee number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param licensee NetLicensing.Licensee\r\n *\r\n * return updated licensee in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, licensee) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, licensee.asPropertiesMap());\r\n\r\n return itemToLicensee(item);\r\n },\r\n\r\n /**\r\n * Deletes licensee.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#delete-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * licensee number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service\r\n .delete(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n\r\n /**\r\n * Validates active licenses of the licensee. See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#validate-licensee\r\n *\r\n * @param context NetLicensing.Context\r\n *\r\n * licensee number\r\n * @param number string\r\n *\r\n * optional validation parameters. See ValidationParameters and licensing model documentation for\r\n * details.\r\n * @param validationParameters NetLicensing.ValidationParameters.\r\n *\r\n * @returns {ValidationResults}\r\n */\r\n async validate(context, number, validationParameters) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = {};\r\n\r\n if (validationParameters.getProductNumber()) {\r\n queryParams.productNumber = validationParameters.getProductNumber();\r\n }\r\n\r\n if (validationParameters.getLicenseeName()) {\r\n queryParams.licenseeName = validationParameters.getLicenseeName();\r\n }\r\n\r\n if (validationParameters.getLicenseeSecret()) {\r\n queryParams.licenseeSecret = validationParameters.getLicenseeSecret();\r\n }\r\n\r\n let pmIndex = 0;\r\n const parameters = validationParameters.getParameters();\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(parameters).forEach((productModuleName) => {\r\n queryParams[`${Constants.ProductModule.PRODUCT_MODULE_NUMBER}${pmIndex}`] = productModuleName;\r\n if (!has.call(parameters, productModuleName)) return;\r\n\r\n const parameter = parameters[productModuleName];\r\n\r\n Object.keys(parameter).forEach((key) => {\r\n if (has.call(parameter, key)) {\r\n queryParams[key + pmIndex] = parameter[key];\r\n }\r\n });\r\n pmIndex += 1;\r\n });\r\n\r\n const { data: { items: { item: items }, ttl } } = await Service.post(\r\n context,\r\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_VALIDATE}`,\r\n queryParams,\r\n );\r\n\r\n const validationResults = new ValidationResults();\r\n validationResults.setTtl(ttl);\r\n\r\n items.forEach((v) => {\r\n const item = itemToObject(v);\r\n validationResults.setProductModuleValidation(item[Constants.ProductModule.PRODUCT_MODULE_NUMBER], item);\r\n });\r\n\r\n return validationResults;\r\n },\r\n\r\n\r\n /**\r\n * Transfer licenses between licensees.\r\n * @see https://netlicensing.io/wiki/licensee-services#transfer-licenses\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the number of the licensee receiving licenses\r\n * @param number string\r\n *\r\n * the number of the licensee delivering licenses\r\n * @param sourceLicenseeNumber string\r\n *\r\n * @returns {Promise}\r\n */\r\n transfer(context, number, sourceLicenseeNumber) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n CheckUtils.paramNotEmpty(sourceLicenseeNumber, Constants.Licensee.SOURCE_LICENSEE_NUMBER);\r\n\r\n const queryParams = { sourceLicenseeNumber };\r\n\r\n return Service\r\n .post(\r\n context,\r\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_TRANSFER}`,\r\n queryParams,\r\n );\r\n },\r\n};\r\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) {\n return;\n }\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nmodule.exports = _nonIterableRest;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToLicense from '../converters/itemToLicense';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the License Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/license-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new license object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#create-license\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent licensee to which the new license is to be added\r\n * @param licenseeNumber string\r\n *\r\n * license template that the license is created from\r\n * @param licenseTemplateNumber string\r\n *\r\n * For privileged logins specifies transaction for the license creation. For regular logins new\r\n * transaction always created implicitly, and the operation will be in a separate transaction.\r\n * Transaction is generated with the provided transactionNumber, or, if transactionNumber is null, with\r\n * auto-generated number.\r\n * @param transactionNumber null|string\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param license NetLicensing.License\r\n *\r\n * return the newly created license object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, licenseeNumber, licenseTemplateNumber, transactionNumber, license) {\r\n CheckUtils.paramNotEmpty(licenseeNumber, Constants.Licensee.LICENSEE_NUMBER);\r\n CheckUtils.paramNotEmpty(licenseTemplateNumber, Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER);\r\n\r\n license.setProperty(Constants.Licensee.LICENSEE_NUMBER, licenseeNumber);\r\n license.setProperty(Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER, licenseTemplateNumber);\r\n\r\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.License.ENDPOINT_PATH, license.asPropertiesMap());\r\n\r\n return itemToLicense(item);\r\n },\r\n\r\n\r\n /**\r\n * Gets license by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#get-license\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the license number\r\n * @param number string\r\n *\r\n * return the license in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.License.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToLicense(item);\r\n },\r\n\r\n /**\r\n * Returns licenses of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#licenses-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * return array of licenses (of all products) or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.License.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToLicense(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates license properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#update-license\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license number\r\n * @param number string\r\n *\r\n * transaction for the license update. Created implicitly if transactionNumber is null. In this case the\r\n * operation will be in a separate transaction.\r\n * @param transactionNumber string|null\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param license NetLicensing.License\r\n *\r\n * return updated license in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, transactionNumber, license) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.License.ENDPOINT_PATH}/${number}`, license.asPropertiesMap());\r\n\r\n return itemToLicense(item);\r\n },\r\n\r\n /**\r\n * Deletes license.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#delete-license\r\n *\r\n * When any license is deleted, corresponding transaction is created automatically.\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service\r\n .delete(context, `${Constants.License.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToLicenseTemplate from '../converters/itemToLicenseTemplate';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/license-template-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new license template object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#create-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent product module to which the new license template is to be added\r\n * @param productModuleNumber\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param licenseTemplate NetLicensing.LicenseTemplate\r\n *\r\n * the newly created license template object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, productModuleNumber, licenseTemplate) {\r\n CheckUtils.paramNotEmpty(productModuleNumber, Constants.ProductModule.PRODUCT_MODULE_NUMBER);\r\n\r\n licenseTemplate.setProperty(Constants.ProductModule.PRODUCT_MODULE_NUMBER, productModuleNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.LicenseTemplate.ENDPOINT_PATH, licenseTemplate.asPropertiesMap());\r\n\r\n return itemToLicenseTemplate(item);\r\n },\r\n\r\n /**\r\n * Gets license template by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#get-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the license template number\r\n * @param number string\r\n *\r\n * return the license template object in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToLicenseTemplate(item);\r\n },\r\n\r\n /**\r\n * Returns all license templates of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#license-templates-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of license templates (of all products/modules) or null/empty list if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.LicenseTemplate.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToLicenseTemplate(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates license template properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#update-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license template number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param licenseTemplate NetLicensing.LicenseTemplate\r\n *\r\n * updated license template in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, licenseTemplate) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const path = `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`;\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, path, licenseTemplate.asPropertiesMap());\r\n\r\n return itemToLicenseTemplate(item);\r\n },\r\n\r\n /**\r\n * Deletes license template.See NetLicensingAPI JavaDoc for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#delete-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license template number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service\r\n .delete(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToPaymentMethod from '../converters/itemToPaymentMethod';\r\nimport Page from '../vo/Page';\r\n\r\nexport default {\r\n /**\r\n * Gets payment method by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/payment-method-services#get-payment-method\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the payment method number\r\n * @param number string\r\n *\r\n * return the payment method in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToPaymentMethod(item);\r\n },\r\n\r\n /**\r\n * Returns payment methods of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/payment-method-services#payment-methods-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of payment method entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.PaymentMethod.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToPaymentMethod(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates payment method properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/payment-method-services#update-payment-method\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the payment method number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param paymentMethod NetLicensing.PaymentMethod\r\n *\r\n * return updated payment method in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, paymentMethod) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const path = `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`;\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, path, paymentMethod.asPropertiesMap());\r\n\r\n return itemToPaymentMethod(item);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToProductModule from '../converters/itemToProductModule';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/product-module-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new product module object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#create-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent product to which the new product module is to be added\r\n * @param productNumber string\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param productModule NetLicensing.ProductModule\r\n *\r\n * the newly created product module object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, productNumber, productModule) {\r\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\r\n\r\n productModule.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.ProductModule.ENDPOINT_PATH, productModule.asPropertiesMap());\r\n\r\n return itemToProductModule(item);\r\n },\r\n\r\n /**\r\n * Gets product module by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#get-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the product module number\r\n * @param number string\r\n *\r\n * return the product module object in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToProductModule(item);\r\n },\r\n\r\n /**\r\n * Returns products of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#product-modules-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of product modules entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service.get(context, Constants.ProductModule.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToProductModule(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates product module properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#update-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product module number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param productModule NetLicensing.ProductModule\r\n *\r\n * updated product module in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, productModule) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, productModule.asPropertiesMap());\r\n\r\n return itemToProductModule(item);\r\n },\r\n\r\n /**\r\n * Deletes product module.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#delete-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product module number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service.delete(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Service from './Service';\r\nimport Constants from '../Constants';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToProduct from '../converters/itemToProduct';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the Product Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/product-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new product with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#create-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param product NetLicensing.Product\r\n *\r\n * return the newly created product object in promise\r\n * @returns {Promise}\r\n */\r\n\r\n async create(context, product) {\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Product.ENDPOINT_PATH, product.asPropertiesMap());\r\n return itemToProduct(item);\r\n },\r\n\r\n /**\r\n * Gets product by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#get-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the product number\r\n * @param number string\r\n *\r\n * return the product object in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Product.ENDPOINT_PATH}/${number}`);\r\n return itemToProduct(item);\r\n },\r\n\r\n /**\r\n * Returns products of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#products-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of product entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) throw new TypeError(`filter has bad value ${filter}`);\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service.get(context, Constants.Product.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToProduct(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates product properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#update-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param product NetLicensing.Product\r\n *\r\n * updated product in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, product) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, product.asPropertiesMap());\r\n\r\n return itemToProduct(item);\r\n },\r\n\r\n /**\r\n * Deletes product.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#delete-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service.delete(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","var superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToToken from '../converters/itemToToken';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the Token Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/token-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new token.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#create-token\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param token NetLicensing.Token\r\n *\r\n * return created token in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, token) {\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Token.ENDPOINT_PATH, token.asPropertiesMap());\r\n\r\n return itemToToken(item);\r\n },\r\n\r\n /**\r\n * Gets token by its number..See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#get-token\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the token number\r\n * @param number\r\n *\r\n * return the token in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToToken(item);\r\n },\r\n\r\n /**\r\n * Returns tokens of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#tokens-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of token entities or empty array if nothing found.\r\n * @return array\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.Token.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToToken(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Delete token by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#delete-token\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the token number\r\n * @param number string\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n return Service\r\n .delete(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToTransaction from '../converters/itemToTransaction';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the Transaction Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/transaction-services\r\n *\r\n * Transaction is created each time change to LicenseService licenses happens. For instance licenses are\r\n * obtained by a licensee, licenses disabled by vendor, licenses deleted, etc. Transaction is created no matter what\r\n * source has initiated the change to licenses: it can be either a direct purchase of licenses by a licensee via\r\n * NetLicensing Shop, or licenses can be given to a licensee by a vendor. Licenses can also be assigned implicitly by\r\n * NetLicensing if it is defined so by a license model (e.g. evaluation license may be given automatically). All these\r\n * events are reflected in transactions. Of all the transaction handling routines only read-only routines are exposed to\r\n * the public API, as transactions are only allowed to be created and modified by NetLicensing internally.\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new transaction object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#create-transaction\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param transaction NetLicensing.Transaction\r\n *\r\n * return the newly created transaction object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, transaction) {\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Transaction.ENDPOINT_PATH, transaction.asPropertiesMap());\r\n\r\n return itemToTransaction(item);\r\n },\r\n\r\n /**\r\n * Gets transaction by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#get-transaction\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the transaction number\r\n * @param number string\r\n *\r\n * return the transaction in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToTransaction(item);\r\n },\r\n\r\n /**\r\n * Returns all transactions of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#transactions-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string\r\n *\r\n * array of transaction entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.Transaction.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToTransaction(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates transaction properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#update-transaction\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * transaction number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param transaction NetLicensing.Transaction\r\n *\r\n * return updated transaction in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, transaction) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`, transaction.asPropertiesMap());\r\n\r\n return itemToTransaction(item);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToObject from '../converters/itemToObject';\r\nimport Page from '../vo/Page';\r\nimport itemToCountry from '../converters/itemToCountry';\r\n\r\n/**\r\n * JS representation of the Utility Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/utility-services\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Returns all license types. See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/utility-services#license-types-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * array of available license types or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async listLicenseTypes(context) {\r\n const { data } = await Service\r\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSE_TYPES}`);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToObject(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Returns all license models. See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/utility-services#licensing-models-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * array of available license models or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async listLicensingModels(context) {\r\n const { data } = await Service\r\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSING_MODELS}`);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToObject(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Returns all countries.\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter\r\n *\r\n * collection of available countries or null/empty list if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async listCountries(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(\r\n context,\r\n `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_COUNTRIES}`,\r\n queryParams,\r\n );\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToCountry(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n};\r\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://NetLicensing/webpack/universalModuleDefinition","webpack://NetLicensing/webpack/bootstrap","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/createClass.js","webpack://NetLicensing/./node_modules/axios/lib/utils.js","webpack://NetLicensing/./src/Constants.js","webpack://NetLicensing/./src/util/CheckUtils.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://NetLicensing/./src/converters/itemToObject.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/inherits.js","webpack://NetLicensing/./src/entities/BaseEntity.js","webpack://NetLicensing/./src/vo/Page.js","webpack://NetLicensing/./src/services/Service.js","webpack://NetLicensing/./src/util/FilterUtils.js","webpack://NetLicensing/./node_modules/@babel/runtime/regenerator/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/asyncToGenerator.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/typeof.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://NetLicensing/./src/entities/License.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/buildURL.js","webpack://NetLicensing/./node_modules/axios/lib/core/createError.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://NetLicensing/./src/entities/LicenseTransactionJoin.js","webpack://NetLicensing/./src/vo/ValidationResults.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/bind.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/isCancel.js","webpack://NetLicensing/./node_modules/axios/lib/defaults.js","webpack://NetLicensing/./node_modules/axios/lib/core/settle.js","webpack://NetLicensing/./node_modules/axios/lib/core/enhanceError.js","webpack://NetLicensing/./node_modules/axios/lib/core/buildFullPath.js","webpack://NetLicensing/external \"http\"","webpack://NetLicensing/external \"https\"","webpack://NetLicensing/./node_modules/follow-redirects/index.js","webpack://NetLicensing/external \"url\"","webpack://NetLicensing/./node_modules/debug/src/debug.js","webpack://NetLicensing/./node_modules/axios/lib/core/mergeConfig.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/Cancel.js","webpack://NetLicensing/./src/errors/NlicError.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://NetLicensing/./src/converters/itemToLicensee.js","webpack://NetLicensing/./src/entities/Licensee.js","webpack://NetLicensing/./src/util/CastsUtils.js","webpack://NetLicensing/./src/converters/itemToLicense.js","webpack://NetLicensing/./src/converters/itemToLicenseTemplate.js","webpack://NetLicensing/./src/entities/LicenseTemplate.js","webpack://NetLicensing/./src/converters/itemToPaymentMethod.js","webpack://NetLicensing/./src/entities/PaymentMethod.js","webpack://NetLicensing/./src/converters/itemToProductModule.js","webpack://NetLicensing/./src/entities/ProductModule.js","webpack://NetLicensing/./src/converters/itemToProduct.js","webpack://NetLicensing/./src/entities/Product.js","webpack://NetLicensing/./src/entities/ProductDiscount.js","webpack://NetLicensing/./src/converters/itemToToken.js","webpack://NetLicensing/./src/entities/Token.js","webpack://NetLicensing/./src/converters/itemToTransaction.js","webpack://NetLicensing/./src/entities/Transaction.js","webpack://NetLicensing/./src/converters/itemToCountry.js","webpack://NetLicensing/./src/entities/Country.js","webpack://NetLicensing/./src/index.js","webpack://NetLicensing/./src/vo/Context.js","webpack://NetLicensing/./src/vo/ValidationParameters.js","webpack://NetLicensing/./node_modules/axios/index.js","webpack://NetLicensing/./node_modules/axios/lib/axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/Axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/InterceptorManager.js","webpack://NetLicensing/./node_modules/axios/lib/core/dispatchRequest.js","webpack://NetLicensing/./node_modules/axios/lib/core/transformData.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://NetLicensing/./node_modules/axios/lib/adapters/xhr.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/combineURLs.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/cookies.js","webpack://NetLicensing/./node_modules/axios/lib/adapters/http.js","webpack://NetLicensing/external \"assert\"","webpack://NetLicensing/external \"stream\"","webpack://NetLicensing/./node_modules/debug/src/index.js","webpack://NetLicensing/./node_modules/debug/src/browser.js","webpack://NetLicensing/./node_modules/ms/index.js","webpack://NetLicensing/./node_modules/debug/src/node.js","webpack://NetLicensing/external \"tty\"","webpack://NetLicensing/external \"util\"","webpack://NetLicensing/./node_modules/supports-color/index.js","webpack://NetLicensing/external \"os\"","webpack://NetLicensing/./node_modules/has-flag/index.js","webpack://NetLicensing/external \"zlib\"","webpack://NetLicensing/./node_modules/axios/lib/cancel/CancelToken.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/spread.js","webpack://NetLicensing/./node_modules/btoa/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/isNativeFunction.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/construct.js","webpack://NetLicensing/./src/services/LicenseeService.js","webpack://NetLicensing/./node_modules/regenerator-runtime/runtime.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://NetLicensing/./src/services/LicenseService.js","webpack://NetLicensing/./src/services/LicenseTemplateService.js","webpack://NetLicensing/./src/services/PaymentMethodService.js","webpack://NetLicensing/./src/services/ProductModuleService.js","webpack://NetLicensing/./src/services/ProductService.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/get.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/superPropBase.js","webpack://NetLicensing/./src/services/TokenService.js","webpack://NetLicensing/./src/services/TransactionService.js","webpack://NetLicensing/./src/services/UtilityService.js"],"names":["BASIC_AUTHENTICATION","APIKEY_IDENTIFICATION","ANONYMOUS_IDENTIFICATION","ACTIVE","NUMBER","NAME","VERSION","DELETED","CASCADE","PRICE","DISCOUNT","CURRENCY","IN_USE","FILTER","BASE_URL","USERNAME","PASSWORD","SECURITY_MODE","LicensingModel","VALID","TryAndBuy","Rental","RED_THRESHOLD","YELLOW_THRESHOLD","Subscription","Floating","MultiFeature","PayPerUse","PricingTable","Quota","NodeLocked","Vendor","VENDOR_NUMBER","VENDOR_TYPE","Product","ENDPOINT_PATH","PRODUCT_NUMBER","LICENSEE_AUTO_CREATE","DESCRIPTION","LICENSING_INFO","DISCOUNTS","PROP_LICENSEE_SECRET_MODE","PROP_VAT_MODE","Discount","TOTAL_PRICE","AMOUNT_FIX","AMOUNT_PERCENT","LicenseeSecretMode","DISABLED","PREDEFINED","CLIENT","ProductModule","PRODUCT_MODULE_NUMBER","PRODUCT_MODULE_NAME","LICENSING_MODEL","LicenseTemplate","LICENSE_TEMPLATE_NUMBER","LICENSE_TYPE","AUTOMATIC","HIDDEN","HIDE_LICENSES","PROP_LICENSEE_SECRET","LicenseType","FEATURE","TIMEVOLUME","FLOATING","QUANTITY","Token","EXPIRATION_TIME","TOKEN_TYPE","API_KEY","TOKEN_PROP_EMAIL","TOKEN_PROP_VENDORNUMBER","TOKEN_PROP_SHOP_URL","Type","DEFAULT","SHOP","APIKEY","Transaction","TRANSACTION_NUMBER","GRAND_TOTAL","STATUS","SOURCE","DATE_CREATED","DATE_CLOSED","VAT","VAT_MODE","LICENSE_TRANSACTION_JOIN","SOURCE_SHOP_ONLY","Status","CANCELLED","CLOSED","PENDING","Licensee","ENDPOINT_PATH_VALIDATE","ENDPOINT_PATH_TRANSFER","LICENSEE_NUMBER","SOURCE_LICENSEE_NUMBER","PROP_LICENSEE_NAME","PROP_MARKED_FOR_TRANSFER","License","LICENSE_NUMBER","PaymentMethod","Utility","ENDPOINT_PATH_LICENSE_TYPES","ENDPOINT_PATH_LICENSING_MODELS","ENDPOINT_PATH_COUNTRIES","LICENSING_MODEL_PROPERTIES","ROLE_APIKEY_LICENSEE","ROLE_APIKEY_ANALYTICS","ROLE_APIKEY_OPERATION","ROLE_APIKEY_MAINTENANCE","ROLE_APIKEY_ADMIN","isValid","value","valid","undefined","Number","isFinite","isNaN","paramNotNull","parameter","parameterName","TypeError","paramNotEmpty","itemToObject","item","object","property","list","Array","isArray","forEach","p","name","l","push","propertiesMap","WeakMap","definedMap","castsMap","BaseEntity","properties","casts","set","setProperties","CheckUtils","castedValue","cast","define","get","setProperty","removeProperties","has","Object","prototype","hasOwnProperty","keys","key","call","def","removeDefine","propertiesForRemove","removeProperty","Boolean","hasDefine","self","descriptors","enumerable","configurable","getProperty","defined","defineProperty","getProperties","customProperties","content","pageNumber","itemsNumber","totalPages","totalItems","paginator","getContent","getPageNumber","getItemsNumber","getTotalPages","getTotalItems","hasNext","paginatorKeys","Proxy","target","indexOf","httpXHR","axiosInstance","Service","axios","instanse","context","urlTemplate","queryParams","request","method","template","String","params","toLowerCase","Error","getBaseUrl","url","encodeURI","responseType","headers","Accept","transformRequest","data","toQueryString","pkg","version","process","toString","getSecurityMode","Constants","getUsername","getPassword","auth","username","password","getApiKey","Authorization","getAxiosInstance","then","response","catch","e","error","NlicError","config","code","info","getInfo","message","infos","pattern","RegExp","test","prefix","query","k","v","Date","toISOString","encodeURIComponent","join","replace","FILTER_DELIMITER","FILTER_PAIR_DELIMITER","encode","filter","decode","split","number","active","price","hidden","parentfeature","timeVolume","startDate","inUse","LicenseTransactionJoin","transaction","license","vr","ValidationResults","validators","productModuleNumber","productModuleValidation","ttl","getValidators","JSON","stringify","args","isNlicError","isAxiosError","licenseeSecret","markedForTransfer","trim","parseInt","parseFloat","licenseType","currency","automatic","hideLicenses","gracePeriod","timeVolumePeriod","maxSessions","quantity","paypalSubject","licensingModel","maxCheckoutValidity","yellowThreshold","redThreshold","licenseTemplate","licenseeSecretMode","discounts","discount","product","setProductDiscounts","discountsMap","discountsTouched","description","licensingInfo","licenseeAutoCreate","productDiscount","ProductDiscount","addDiscount","assign","length","map","totalPrice","amountFix","amountPercent","getTotalPrice","getCurrency","amount","getAmountFix","getAmountPercent","expirationTime","vendorNumber","tokenType","licenseeNumber","successURL","successURLTitle","cancelURL","cancelURLTitle","shopURL","role","setApiKeyRole","getApiKeyRole","apiKeyRole","licenseTransactionJoin","joins","setLicense","setTransaction","setLicenseTransactionJoins","status","source","grandTotal","dateCreated","dateClosed","paymentMethod","licenseTransactionJoins","Country","vatPercent","isEu","vat","NetLicensing","Context","Page","ValidationParameters","LicenseeService","LicenseService","LicenseTemplateService","PaymentMethodService","ProductModuleService","ProductService","TokenService","TransactionService","UtilityService","itemToCountry","itemToLicense","itemToLicensee","itemToLicenseTemplate","itemToPaymentMethod","itemToProduct","itemToProductModule","itemToToken","itemToTransaction","CastsUtils","FilterUtils","module","exports","default","valuesMap","defaultsMap","values","baseUrl","securityMode","setValues","setValue","getValue","apiKey","copedValue","removeValues","keysAr","removeValue","onlyGetter","vpMap","parameters","productNumber","licenseeName","productModuleParameters","create","licensee","post","asPropertiesMap","items","pagenumber","itemsnumber","totalpages","totalitems","update","delete","forceCascade","validate","validationParameters","getProductNumber","getLicenseeName","getLicenseeSecret","pmIndex","getParameters","productModuleName","validationResults","setTtl","setProductModuleValidation","transfer","sourceLicenseeNumber","licenseTemplateNumber","transactionNumber","path","productModule","token","listLicenseTypes","listLicensingModels","listCountries"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;AClFA;AACA;AACA;AACA;AACA;;AAEA,wC;;;;;;ACNA;AACA;AACA;AACA;AACA;;AAEA,iC;;;;;;ACNA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,8B;;;;;;;AChBa;;AAEb,WAAW,mBAAO,CAAC,EAAgB;;AAEnC;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mCAAmC,OAAO;AAC1C;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,SAAS,GAAG,SAAS;AAC5C,2BAA2B;AAC3B;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,uCAAuC,OAAO;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,gCAAgC;AAChC,KAAK;AACL;AACA;AACA;;AAEA,uCAAuC,OAAO;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB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;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc,mBAAO,CAAC,EAAgB;AACtC,GAAG;AACH;AACA,cAAc,mBAAO,CAAC,EAAiB;AACvC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,OAAO,YAAY;AACnB;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA,CAAC;;AAED;;;;;;;;AChGa;;AAEb,kBAAkB,mBAAO,CAAC,EAAe;;AAEzC;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxBa;;AAEb;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzCa;;AAEb,oBAAoB,mBAAO,CAAC,EAA0B;AACtD,kBAAkB,mBAAO,CAAC,EAAwB;;AAElD;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnBA,iC;;;;;;ACAA,kC;;;;;;ACAA,UAAU,mBAAO,CAAC,EAAK;AACvB,WAAW,mBAAO,CAAC,EAAM;AACzB,YAAY,mBAAO,CAAC,EAAO;AAC3B,aAAa,mBAAO,CAAC,EAAQ;AAC7B,eAAe,mBAAO,CAAC,EAAQ;AAC/B,YAAY,mBAAO,CAAC,EAAO;;AAE3B;AACA;AACA,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iCAAiC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,sBAAsB,uCAAuC,EAAE;AAC/D,GAAG;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA,uBAAuB,2BAA2B;AAClD;;;;;;;ACjUA,gC;;;;;;;ACCA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAO,CAAC,EAAI;;AAE/B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,aAAa,SAAS;AACtB,4BAA4B;AAC5B;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,aAAa,8BAA8B;AAC3C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yCAAyC,SAAS;AAClD;AACA;AACA;AACA;AACA,yCAAyC,SAAS;AAClD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;;;;;;;;AChOa;;AAEb,YAAY,mBAAO,CAAC,CAAU;;AAE9B;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;ACxEa;;AAEb;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;IClBqBqB,S;;;;;AACjB,uBAAqB;AAAA;;AAAA;;AAAA;;AAAA,sCAAN6C,IAAM;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AACA,gDAAgD;AAChD;AACA;AACA,KAAK;AACL;AACA,CAAC;;AAED;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;AAED;;;;;;;;AC7Fa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;ACnDa;;AAEb,YAAY,mBAAO,CAAC,CAAY;AAChC,oBAAoB,mBAAO,CAAC,EAAiB;AAC7C,eAAe,mBAAO,CAAC,EAAoB;AAC3C,eAAe,mBAAO,CAAC,EAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B;AAC/B,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;;;;;;;AC9Ea;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,MAAM;AACjB,WAAW,eAAe;AAC1B,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;ACnBa;;AAEb,YAAY,mBAAO,CAAC,CAAU;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;ACXa;;AAEb,YAAY,mBAAO,CAAC,CAAY;AAChC,aAAa,mBAAO,CAAC,EAAkB;AACvC,eAAe,mBAAO,CAAC,EAAuB;AAC9C,oBAAoB,mBAAO,CAAC,EAAuB;AACnD,mBAAmB,mBAAO,CAAC,EAA2B;AACtD,sBAAsB,mBAAO,CAAC,EAA8B;AAC5D,kBAAkB,mBAAO,CAAC,EAAqB;;AAE/C;AACA;AACA;AACA;;AAEA;AACA,4CAA4C;AAC5C;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB,mBAAO,CAAC,EAAsB;;AAElD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;;;;;;;ACnLa;;AAEb;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACba;;AAEb;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACba;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,eAAe;;AAEhC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;ACpDa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,OAAO;AACrB,gBAAgB;AAChB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,cAAc,OAAO;AACrB,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;;;;;;;ACnEa;;AAEb,YAAY,mBAAO,CAAC,CAAY;;AAEhC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,0CAA0C;AAC1C,SAAS;;AAET;AACA,4DAA4D,wBAAwB;AACpF;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,kCAAkC;AAClC,+BAA+B,aAAa,EAAE;AAC9C;AACA;AACA,KAAK;AACL;;;;;;;;ACpDa;;AAEb,YAAY,mBAAO,CAAC,CAAY;AAChC,aAAa,mBAAO,CAAC,EAAkB;AACvC,oBAAoB,mBAAO,CAAC,EAAuB;AACnD,eAAe,mBAAO,CAAC,EAAuB;AAC9C,WAAW,mBAAO,CAAC,EAAM;AACzB,YAAY,mBAAO,CAAC,EAAO;AAC3B,iBAAiB,mBAAO,CAAC,EAAkB;AAC3C,kBAAkB,mBAAO,CAAC,EAAkB;AAC5C,UAAU,mBAAO,CAAC,EAAK;AACvB,WAAW,mBAAO,CAAC,EAAM;AACzB,UAAU,mBAAO,CAAC,EAAsB;AACxC,kBAAkB,mBAAO,CAAC,EAAqB;AAC/C,mBAAmB,mBAAO,CAAC,EAAsB;;AAEjD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,mDAAmD;AAClE;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW;;AAEX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW;AACX;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA,GAAG;AACH;;;;;;;ACtRA,mC;;;;;;ACAA,mC;;;;;;ACAA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,mBAAO,CAAC,EAAc;AACzC,CAAC;AACD,mBAAmB,mBAAO,CAAC,EAAW;AACtC;;;;;;;ACTA;AACA;AACA;AACA;AACA;;AAEA,2BAA2B,mBAAO,CAAC,EAAS;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;;;;;;AClMA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,OAAO;AAClB,YAAY,MAAM;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvJA;AACA;AACA;;AAEA,UAAU,mBAAO,CAAC,EAAK;AACvB,WAAW,mBAAO,CAAC,EAAM;;AAEzB;AACA;AACA;AACA;AACA;;AAEA,2BAA2B,mBAAO,CAAC,EAAS;AAC5C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,sBAAsB,mBAAO,CAAC,EAAgB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,6DAA6D;AAC7D;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,2CAA2C,yBAAyB;;AAEpE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,IAAI;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,iDAAiD,EAAE;AACnD,sCAAsC;;AAEtC;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;ACzLA,gC;;;;;;ACAA,iC;;;;;;;ACAa;AACb,WAAW,mBAAO,CAAC,EAAI;AACvB,gBAAgB,mBAAO,CAAC,EAAU;;AAElC;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,iCAAiC,GAAG;AACpC;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;AClIA,+B;;;;;;;ACAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACPA,iC;;;;;;;;;;;;;ACAa;;AAEb,aAAa,mBAAO,CAAC,EAAU;;AAE/B;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxDa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,WAAW,SAAS;AACpB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1BA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA,CAAC;;;;;;;AChBD,qBAAqB,mB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O,0BAAoB,EAApBA;AAAF,KAApB;AAEA,WAAOvO,iBACFiN,IADE,CAEC9M,OAFD,YAGIwB,mBAAU/H,QAAV,CAAmB1D,aAHvB,cAGwCgO,MAHxC,cAGkDvC,mBAAU/H,QAAV,CAAmBE,sBAHrE,GAICuG,WAJD,CAAP;AAMH;AAxOU,C;;;;;;;ACvBf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,KAAK;AACL,cAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,WAAW;AACX;;AAEA;AACA;AACA,wCAAwC,WAAW;AACnD;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS;AACT;AACA;AACA;AACA;;AAEA;;AAEA,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC,cAAc;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC,kBAAkB;AACnD;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB;;AAEjB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,YAAY;AACZ;AACA;;AAEA;AACA,YAAY;AACZ;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,8CAA8C,QAAQ;AACtD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA,WAAW;AACX;AACA;AACA;;AAEA,WAAW;AACX;AACA;AACA;;AAEA,WAAW;AACX;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA,KAAK;;AAEL;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,8CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAC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T,EA2DkB4D,MA3DlB,EA2D0B;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAC3B1D,yBAD2B,GACb,EADa;;AAAA,mBAG7B0D,MAH6B;AAAA;AAAA;AAAA;;AAAA,kBAIxB9G,oBAAWjC,OAAX,CAAmB+I,MAAnB,CAJwB;AAAA;AAAA;AAAA;;AAAA,oBAKnB,IAAIrI,SAAJ,gCAAsCqI,MAAtC,EALmB;;AAAA;AAO7B1D,yBAAW,CAACsB,mBAAU/M,MAAX,CAAX,GAAgC,OAAOmP,MAAP,KAAkB,QAAlB,GAA6BA,MAA7B,GAAsCyH,qBAAY1H,MAAZ,CAAmBC,MAAnB,CAAtE;;AAP6B;AAAA;AAAA,qBAUV/D,iBAClB3C,GADkB,CAEf8C,OAFe,YAGZwB,mBAAUrH,OAAV,CAAkBpE,aAHN,cAGuByL,mBAAUrH,OAAV,CAAkBG,uBAHzC,GAIf4F,WAJe,CAVU;;AAAA;AAAA;AAUzBe,kBAVyB,SAUzBA,IAVyB;AAAA,gDAiB1B,mBACHA,IAAI,CAAC+L,KAAL,CAAWtR,IAAX,CAAgB8L,GAAhB,CAAoB,UAACrE,CAAD;AAAA,uBAAO,4BAAcA,CAAd,CAAP;AAAA,eAApB,CADG,EAEHlC,IAAI,CAAC+L,KAAL,CAAWC,UAFR,EAGHhM,IAAI,CAAC+L,KAAL,CAAWE,WAHR,EAIHjM,IAAI,CAAC+L,KAAL,CAAWG,UAJR,EAKHlM,IAAI,CAAC+L,KAAL,CAAWI,UALR,CAjB0B;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBpC;AAnFU,C","file":"netlicensing-client.node.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"NetLicensing\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"NetLicensing\"] = factory();\n\telse\n\t\troot[\"NetLicensing\"] = factory();\n})(this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 59);\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","'use strict';\n\nvar bind = require('./helpers/bind');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = merge(result[key], val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Function equal to merge with the difference being that no reference\n * to original objects is kept.\n *\n * @see merge\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction deepMerge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = deepMerge(result[key], val);\n } else if (typeof val === 'object') {\n result[key] = deepMerge({}, val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n deepMerge: deepMerge,\n extend: extend,\n trim: trim\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nexport default {\n BASIC_AUTHENTICATION: 'BASIC_AUTH',\n APIKEY_IDENTIFICATION: 'APIKEY',\n ANONYMOUS_IDENTIFICATION: 'ANONYMOUS',\n\n ACTIVE: 'active',\n NUMBER: 'number',\n NAME: 'name',\n VERSION: 'version',\n DELETED: 'deleted',\n CASCADE: 'forceCascade',\n PRICE: 'price',\n DISCOUNT: 'discount',\n CURRENCY: 'currency',\n IN_USE: 'inUse',\n FILTER: 'filter',\n BASE_URL: 'baseUrl',\n USERNAME: 'username',\n PASSWORD: 'password',\n SECURITY_MODE: 'securityMode',\n\n LicensingModel: {\n VALID: 'valid',\n TryAndBuy: {\n NAME: 'TryAndBuy',\n },\n Rental: {\n NAME: 'Rental',\n RED_THRESHOLD: 'redThreshold',\n YELLOW_THRESHOLD: 'yellowThreshold',\n },\n Subscription: {\n NAME: 'Subscription',\n },\n Floating: {\n NAME: 'Floating',\n },\n MultiFeature: {\n NAME: 'MultiFeature',\n },\n PayPerUse: {\n NAME: 'PayPerUse',\n },\n PricingTable: {\n NAME: 'PricingTable',\n },\n Quota: {\n NAME: 'Quota',\n },\n NodeLocked: {\n NAME: 'NodeLocked',\n },\n },\n\n Vendor: {\n VENDOR_NUMBER: 'vendorNumber',\n VENDOR_TYPE: 'Vendor',\n },\n\n Product: {\n ENDPOINT_PATH: 'product',\n PRODUCT_NUMBER: 'productNumber',\n LICENSEE_AUTO_CREATE: 'licenseeAutoCreate',\n DESCRIPTION: 'description',\n LICENSING_INFO: 'licensingInfo',\n DISCOUNTS: 'discounts',\n /**\n * @deprecated use ProductModule.PROP_LICENSEE_SECRET_MODE instead\n */\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\n PROP_VAT_MODE: 'vatMode',\n\n Discount: {\n TOTAL_PRICE: 'totalPrice',\n AMOUNT_FIX: 'amountFix',\n AMOUNT_PERCENT: 'amountPercent',\n },\n\n LicenseeSecretMode: {\n /**\n * @deprecated DISABLED mode is deprecated\n */\n DISABLED: 'DISABLED',\n PREDEFINED: 'PREDEFINED',\n CLIENT: 'CLIENT',\n },\n },\n\n ProductModule: {\n ENDPOINT_PATH: 'productmodule',\n PRODUCT_MODULE_NUMBER: 'productModuleNumber',\n PRODUCT_MODULE_NAME: 'productModuleName',\n LICENSING_MODEL: 'licensingModel',\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\n },\n\n LicenseTemplate: {\n ENDPOINT_PATH: 'licensetemplate',\n LICENSE_TEMPLATE_NUMBER: 'licenseTemplateNumber',\n LICENSE_TYPE: 'licenseType',\n AUTOMATIC: 'automatic',\n HIDDEN: 'hidden',\n HIDE_LICENSES: 'hideLicenses',\n PROP_LICENSEE_SECRET: 'licenseeSecret',\n LicenseType: {\n FEATURE: 'FEATURE',\n TIMEVOLUME: 'TIMEVOLUME',\n FLOATING: 'FLOATING',\n QUANTITY: 'QUANTITY',\n },\n },\n\n Token: {\n ENDPOINT_PATH: 'token',\n EXPIRATION_TIME: 'expirationTime',\n TOKEN_TYPE: 'tokenType',\n API_KEY: 'apiKey',\n TOKEN_PROP_EMAIL: 'email',\n TOKEN_PROP_VENDORNUMBER: 'vendorNumber',\n TOKEN_PROP_SHOP_URL: 'shopURL',\n Type: {\n DEFAULT: 'DEFAULT',\n SHOP: 'SHOP',\n APIKEY: 'APIKEY',\n },\n },\n\n Transaction: {\n ENDPOINT_PATH: 'transaction',\n TRANSACTION_NUMBER: 'transactionNumber',\n GRAND_TOTAL: 'grandTotal',\n STATUS: 'status',\n SOURCE: 'source',\n DATE_CREATED: 'datecreated',\n DATE_CLOSED: 'dateclosed',\n VAT: 'vat',\n VAT_MODE: 'vatMode',\n LICENSE_TRANSACTION_JOIN: 'licenseTransactionJoin',\n SOURCE_SHOP_ONLY: 'shopOnly',\n /**\n * @deprecated\n */\n Status: {\n CANCELLED: 'CANCELLED',\n CLOSED: 'CLOSED',\n PENDING: 'PENDING',\n },\n },\n\n Licensee: {\n ENDPOINT_PATH: 'licensee',\n ENDPOINT_PATH_VALIDATE: 'validate',\n ENDPOINT_PATH_TRANSFER: 'transfer',\n LICENSEE_NUMBER: 'licenseeNumber',\n SOURCE_LICENSEE_NUMBER: 'sourceLicenseeNumber',\n PROP_LICENSEE_NAME: 'licenseeName',\n /**\n * @deprecated use License.PROP_LICENSEE_SECRET\n */\n PROP_LICENSEE_SECRET: 'licenseeSecret',\n PROP_MARKED_FOR_TRANSFER: 'markedForTransfer',\n },\n\n License: {\n ENDPOINT_PATH: 'license',\n LICENSE_NUMBER: 'licenseNumber',\n HIDDEN: 'hidden',\n PROP_LICENSEE_SECRET: 'licenseeSecret',\n },\n\n PaymentMethod: {\n ENDPOINT_PATH: 'paymentmethod',\n },\n\n Utility: {\n ENDPOINT_PATH: 'utility',\n ENDPOINT_PATH_LICENSE_TYPES: 'licenseTypes',\n ENDPOINT_PATH_LICENSING_MODELS: 'licensingModels',\n ENDPOINT_PATH_COUNTRIES: 'countries',\n LICENSING_MODEL_PROPERTIES: 'LicensingModelProperties',\n LICENSE_TYPE: 'LicenseType',\n },\n\n APIKEY: {\n ROLE_APIKEY_LICENSEE: 'ROLE_APIKEY_LICENSEE',\n ROLE_APIKEY_ANALYTICS: 'ROLE_APIKEY_ANALYTICS',\n ROLE_APIKEY_OPERATION: 'ROLE_APIKEY_OPERATION',\n ROLE_APIKEY_MAINTENANCE: 'ROLE_APIKEY_MAINTENANCE',\n ROLE_APIKEY_ADMIN: 'ROLE_APIKEY_ADMIN',\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nexport default {\n isValid(value) {\n let valid = (value !== undefined && typeof value !== 'function');\n if (typeof value === 'number') valid = Number.isFinite(value) && !Number.isNaN(value);\n return valid;\n },\n\n paramNotNull(parameter, parameterName) {\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\n if (parameter === null) throw new TypeError(`Parameter ${parameterName} cannot be null`);\n },\n\n paramNotEmpty(parameter, parameterName) {\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\n if (!parameter) throw new TypeError(`Parameter ${parameterName} cannot be null or empty string`);\n },\n};\n","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","const itemToObject = (item) => {\n const object = {};\n const { property, list } = item;\n\n if (property && Array.isArray(property)) {\n property.forEach((p) => {\n const { name, value } = p;\n if (name) object[name] = value;\n });\n }\n\n if (list && Array.isArray(list)) {\n list.forEach((l) => {\n const { name } = l;\n if (name) {\n object[name] = object[name] || [];\n object[name].push(itemToObject(l));\n }\n });\n }\n\n return object;\n};\n\nexport default itemToObject;\n","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport CastsUtils from '../util/CastsUtils';\n\n/**\n * The entity properties.\n * @type {{}}\n * @private\n */\nconst propertiesMap = new WeakMap();\n\n/**\n * List of properties that was defined\n * @type {{}}\n * @private\n */\n\nconst definedMap = new WeakMap();\n\n/**\n * List of properties that need be casts\n * @type {{}}\n * @private\n */\nconst castsMap = new WeakMap();\n\nexport default class BaseEntity {\n constructor({ properties, casts }) {\n propertiesMap.set(this, {});\n definedMap.set(this, {});\n castsMap.set(this, casts || []);\n\n if (properties) {\n this.setProperties(properties);\n }\n }\n\n /**\n * Set a given property on the entity.\n * @param property\n * @param value\n * @returns {BaseEntity}\n */\n setProperty(property, value) {\n // if property name has bad native type\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\n throw new TypeError(`Bad property name:${property}`);\n }\n\n const castedValue = this.cast(property, value);\n\n // define to property\n this.define(property);\n\n // save property to propertiesMap\n const properties = propertiesMap.get(this);\n properties[property] = castedValue;\n\n return this;\n }\n\n /**\n * Alias for setProperty\n * @param property\n * @param value\n * @returns {BaseEntity}\n */\n addProperty(property, value) {\n return this.setProperty(property, value);\n }\n\n /**\n * Set the entity properties.\n * @param properties\n * @returns {BaseEntity}\n */\n setProperties(properties) {\n this.removeProperties();\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(properties).forEach((key) => {\n if (has.call(properties, key)) {\n this.setProperty(key, properties[key]);\n }\n });\n\n return this;\n }\n\n /**\n * Check if we has property\n * @param property\n * @protected\n */\n hasProperty(property) {\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property);\n }\n\n /**\n * Get an property from the entity.\n * @param property\n * @param def\n * @returns {*}\n */\n getProperty(property, def) {\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property)\n ? propertiesMap.get(this)[property]\n : def;\n }\n\n /**\n * Get all of the current properties on the entity.\n */\n getProperties() {\n return { ...propertiesMap.get(this) };\n }\n\n /**\n * Remove property\n * @param property\n * @returns {BaseEntity}\n */\n removeProperty(property) {\n const properties = propertiesMap.get(this);\n delete properties[property];\n this.removeDefine(property);\n return this;\n }\n\n /**\n * Remove properties\n * @param properties\n */\n removeProperties(properties) {\n const propertiesForRemove = properties || Object.keys(propertiesMap.get(this));\n\n propertiesForRemove.forEach((property) => {\n this.removeProperty(property);\n });\n }\n\n cast(property, value) {\n if (!castsMap.get(this)[property]) return value;\n\n return CastsUtils(castsMap.get(this)[property], value);\n }\n\n /**\n * Check if property has defined\n * @param property\n * @protected\n */\n hasDefine(property) {\n return Boolean(definedMap.get(this)[property]);\n }\n\n /**\n * Define property getter and setter\n * @param property\n * @protected\n */\n define(property) {\n if (this.hasDefine(property)) return;\n\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\n throw new TypeError(`Bad property name:${property}`);\n }\n\n const self = this;\n\n // delete property\n delete this[property];\n\n const descriptors = {\n enumerable: true,\n configurable: true,\n get() {\n return self.getProperty(property);\n },\n\n set(value) {\n self.setProperty(property, value);\n },\n };\n\n const defined = definedMap.get(this);\n defined[property] = true;\n\n Object.defineProperty(this, property, descriptors);\n }\n\n /**\n * Remove property getter and setter\n * @param property\n * @protected\n */\n removeDefine(property) {\n if (!this.hasDefine(property)) return;\n\n const defined = definedMap.get(this);\n delete defined[property];\n\n delete this[property];\n }\n\n /**\n * Get properties map\n */\n asPropertiesMap() {\n const properties = this.getProperties();\n const customProperties = {};\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(this).forEach((key) => {\n if (!has.call(this, key)) return;\n\n customProperties[key] = this[key];\n });\n\n return { ...customProperties, ...properties };\n }\n}\n","export default (content = [], pageNumber = 0, itemsNumber = 0, totalPages = 0, totalItems = 0) => {\n const paginator = {\n getContent() {\n return content;\n },\n\n getPageNumber() {\n return pageNumber;\n },\n\n getItemsNumber() {\n return itemsNumber;\n },\n\n getTotalPages() {\n return totalPages;\n },\n\n getTotalItems() {\n return totalItems;\n },\n\n hasNext() {\n return (totalPages > pageNumber + 1);\n },\n };\n\n const paginatorKeys = Object.keys(paginator);\n\n return new Proxy(content, {\n get(target, key) {\n if (paginatorKeys.indexOf(key) !== -1) {\n return paginator[key];\n }\n return target[key];\n },\n });\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nimport axios from 'axios';\nimport btoa from 'btoa';\nimport Constants from '../Constants';\nimport NlicError from '../errors/NlicError';\nimport pkg from '../../package.json';\n\nlet httpXHR = {};\nlet axiosInstance = null;\n\nexport default class Service {\n static getAxiosInstance() {\n return axiosInstance || axios;\n }\n\n static setAxiosInstance(instanse) {\n axiosInstance = instanse;\n }\n\n static getLastHttpRequestInfo() {\n return httpXHR;\n }\n\n /**\n * Helper method for performing GET request to N\n etLicensing API services. Finds and returns first suitable item with\n * type resultType from the response.\n *\n * Context for the NetLicensing API call\n * @param context\n *\n * the REST URL template\n * @param urlTemplate\n *\n * The REST query parameters values. May be null if there are no parameters.\n * @param queryParams\n *\n * @returns {Promise}\n */\n static get(context, urlTemplate, queryParams) {\n return Service.request(context, 'get', urlTemplate, queryParams);\n }\n\n /**\n * Helper method for performing POST request to NetLicensing API services. Finds and returns first suitable item\n * with type resultType from the response.\n *\n * context for the NetLicensing API call\n * @param context\n *\n * the REST URL template\n * @param urlTemplate\n *\n * The REST query parameters values. May be null if there are no parameters.\n * @param queryParams\n *\n * @returns {Promise}\n */\n static post(context, urlTemplate, queryParams) {\n return Service.request(context, 'post', urlTemplate, queryParams);\n }\n\n /**\n *\n * @param context\n * @param urlTemplate\n * @param queryParams\n * @returns {Promise}\n */\n static delete(context, urlTemplate, queryParams) {\n return Service.request(context, 'delete', urlTemplate, queryParams);\n }\n\n /**\n * Send request to NetLicensing RestApi\n * @param context\n * @param method\n * @param urlTemplate\n * @param queryParams\n * @returns {Promise}\n */\n static request(context, method, urlTemplate, queryParams) {\n const template = String(urlTemplate);\n const params = queryParams || {};\n\n if (!template) throw new TypeError('Url template must be specified');\n\n // validate http method\n if (['get', 'post', 'delete'].indexOf(method.toLowerCase()) < 0) {\n throw new Error(`Invalid request type:${method}, allowed requests types: GET, POST, DELETE.`);\n }\n\n // validate context\n if (!context.getBaseUrl(null)) {\n throw new Error('Base url must be specified');\n }\n\n const request = {\n url: encodeURI(`${context.getBaseUrl()}/${template}`),\n method: method.toLowerCase(),\n responseType: 'json',\n headers: {\n Accept: 'application/json',\n },\n transformRequest: [(data, headers) => {\n if (headers['Content-Type'] === 'application/x-www-form-urlencoded') {\n return Service.toQueryString(data);\n }\n\n if (!headers['NetLicensing-Origin']) {\n // eslint-disable-next-line no-param-reassign\n headers['NetLicensing-Origin'] = `NetLicensing/Javascript ${pkg.version}`;\n }\n return data;\n }],\n };\n\n // only node.js has a process variable that is of [[Class]] process\n if (!typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n request.headers['User-agent'] = `NetLicensing/Javascript ${pkg.version}/node&${process.version}`;\n }\n\n if (['put', 'post', 'patch'].indexOf(request.method) >= 0) {\n if (request.method === 'post') {\n request.headers['Content-Type'] = 'application/x-www-form-urlencoded';\n }\n request.data = params;\n } else {\n request.params = params;\n }\n\n switch (context.getSecurityMode()) {\n // Basic Auth\n case Constants.BASIC_AUTHENTICATION:\n if (!context.getUsername()) throw new Error('Missing parameter \"username\"');\n if (!context.getPassword()) throw new Error('Missing parameter \"password\"');\n\n request.auth = {\n username: context.getUsername(),\n password: context.getPassword(),\n };\n break;\n // ApiKey Auth\n case Constants.APIKEY_IDENTIFICATION:\n if (!context.getApiKey()) throw new Error('Missing parameter \"apiKey\"');\n\n request.headers.Authorization = `Basic ${btoa(`apiKey:${context.getApiKey()}`)}`;\n break;\n // without authorization\n case Constants.ANONYMOUS_IDENTIFICATION:\n break;\n default:\n throw new Error('Unknown security mode');\n }\n\n return Service.getAxiosInstance()(request)\n .then((response) => {\n httpXHR = response;\n return response;\n })\n .catch((e) => {\n httpXHR = e;\n\n if (e.response) {\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n\n const error = new NlicError(e);\n\n error.config = e.config;\n error.code = e.code;\n error.request = e.request;\n error.response = e.response;\n\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n const { data } = e.response;\n\n if (data) {\n const info = Service.getInfo(e.response, [])[0] || {};\n error.message = info.value || 'Unknown';\n }\n\n throw error;\n }\n\n throw e;\n });\n }\n\n static getInfo(response, def) {\n try {\n return response.data.infos.info || def;\n } catch (e) {\n return def;\n }\n }\n\n static isValidUrl(url) {\n const pattern = new RegExp('^(https?:\\\\/\\\\/)?' // protocol\n + '((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.?)+[a-z]{2,}|' // domain name\n + '((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))' // OR ip (v4) address\n + '(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*' // port and path\n + '(\\\\?[;&a-z\\\\d%_.~+=-]*)?' // query string\n + '(\\\\#[-a-z\\\\d_]*)?$', 'i'); // fragment locator\n\n return pattern.test(url);\n }\n\n static toQueryString(data, prefix) {\n const query = [];\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(data)\n .forEach((key) => {\n if (has.call(data, key)) {\n const k = prefix ? `${prefix}[${key}]` : key;\n let v = data[key];\n v = (v instanceof Date) ? v.toISOString() : v;\n query.push((v !== null && typeof v === 'object')\n ? Service.toQueryString(v, k)\n : `${encodeURIComponent(k)}=${encodeURIComponent(v)}`);\n }\n });\n\n return query.join('&')\n .replace(/%5B[0-9]+%5D=/g, '=');\n }\n}\n","export default {\n FILTER_DELIMITER: ';',\n FILTER_PAIR_DELIMITER: '=',\n encode(filter = {}) {\n const query = [];\n const has = Object.prototype.hasOwnProperty;\n Object.keys(filter).forEach((key) => {\n if (has.call(filter, key)) {\n query.push(`${key}${this.FILTER_PAIR_DELIMITER}${filter[key]}`);\n }\n });\n return query.join(this.FILTER_DELIMITER);\n },\n decode(query = '') {\n const filter = {};\n query.split(this.FILTER_DELIMITER).forEach((v) => {\n const [name, value] = v.split(this.FILTER_PAIR_DELIMITER);\n filter[name] = value;\n });\n return filter;\n },\n};\n","module.exports = require(\"regenerator-runtime\");\n","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * License entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products/licensees of a vendor) that identifies the license. Vendor can\n * assign this number when creating a license or let NetLicensing generate one. Read-only after corresponding creation\n * transaction status is set to closed.\n * @property string number\n *\n * Name for the licensed item. Set from license template on creation, if not specified explicitly.\n * @property string name\n *\n * If set to false, the license is disabled. License can be re-enabled, but as long as it is disabled,\n * the license is excluded from the validation process.\n * @property boolean active\n *\n * price for the license. If >0, it must always be accompanied by the currency specification. Read-only,\n * set from license template on creation.\n * @property float price\n *\n * specifies currency for the license price. Check data types to discover which currencies are\n * supported. Read-only, set from license template on creation.\n * @property string currency\n *\n * If set to true, this license is not shown in NetLicensing Shop as purchased license. Set from license\n * template on creation, if not specified explicitly.\n * @property boolean $hidden\n *\n * @property string startDate\n *\n * Arbitrary additional user properties of string type may be associated with each license. The name of user property\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, licenseeNumber,\n * licenseTemplateNumber.\n */\nexport default class License extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n price: 'float',\n hidden: 'boolean',\n parentfeature: 'string',\n timeVolume: 'int',\n startDate: 'date',\n inUse: 'boolean',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setHidden(hidden) {\n return this.setProperty('hidden', hidden);\n }\n\n getHidden(def) {\n return this.getProperty('hidden', def);\n }\n\n setParentfeature(parentfeature) {\n return this.setProperty('parentfeature', parentfeature);\n }\n\n getParentfeature(def) {\n return this.getProperty('parentfeature', def);\n }\n\n setTimeVolume(timeVolume) {\n return this.setProperty('timeVolume', timeVolume);\n }\n\n getTimeVolume(def) {\n return this.getProperty('timeVolume', def);\n }\n\n setStartDate(startDate) {\n return this.setProperty('startDate', startDate);\n }\n\n getStartDate(def) {\n return this.getProperty('startDate', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n\n getPrice(def) {\n return this.getProperty('price', def);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n}\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nexport default class LicenseTransactionJoin {\n constructor(transaction, license) {\n this.transaction = transaction;\n this.license = license;\n }\n\n setTransaction(transaction) {\n this.transaction = transaction;\n return this;\n }\n\n getTransaction(def) {\n return this.transaction || def;\n }\n\n setLicense(license) {\n this.license = license;\n return this;\n }\n\n getLicense(def) {\n return this.license || def;\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\n\n/**\n * Validation result map\n * @type {WeakMap}\n */\nconst vr = new WeakMap();\n\nexport default class ValidationResults {\n constructor() {\n vr.set(this, { validators: {} });\n }\n\n getValidators() {\n return { ...vr.get(this).validators };\n }\n\n setProductModuleValidation(productModuleNumber, productModuleValidation) {\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\n }\n\n vr.get(this).validators[productModuleNumber] = productModuleValidation;\n\n return this;\n }\n\n getProductModuleValidation(productModuleNumber) {\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\n }\n\n return vr.get(this).validators[productModuleNumber];\n }\n\n setTtl(ttl) {\n if (!CheckUtils.isValid(ttl) || typeof ttl === 'object') {\n throw new TypeError(`Bad ttl:${ttl}`);\n }\n vr.get(this).ttl = new Date(String(ttl));\n\n return this;\n }\n\n getTtl() {\n return (vr.get(this).ttl) ? new Date(vr.get(this).ttl) : undefined;\n }\n\n toString() {\n let data = 'ValidationResult [';\n\n const validators = this.getValidators();\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(validators).forEach((productModuleNumber) => {\n data += `ProductModule<${productModuleNumber}>`;\n if (has.call(validators, productModuleNumber)) {\n data += JSON.stringify(validators[productModuleNumber]);\n }\n });\n\n data += ']';\n\n return data;\n }\n}\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","module.exports = require(\"http\");","module.exports = require(\"https\");","var url = require(\"url\");\nvar http = require(\"http\");\nvar https = require(\"https\");\nvar assert = require(\"assert\");\nvar Writable = require(\"stream\").Writable;\nvar debug = require(\"debug\")(\"follow-redirects\");\n\n// RFC7231§4.2.1: Of the request methods defined by this specification,\n// the GET, HEAD, OPTIONS, and TRACE methods are defined to be safe.\nvar SAFE_METHODS = { GET: true, HEAD: true, OPTIONS: true, TRACE: true };\n\n// Create handlers that pass events from native requests\nvar eventHandlers = Object.create(null);\n[\"abort\", \"aborted\", \"error\", \"socket\", \"timeout\"].forEach(function (event) {\n eventHandlers[event] = function (arg) {\n this._redirectable.emit(event, arg);\n };\n});\n\n// An HTTP(S) request that can be redirected\nfunction RedirectableRequest(options, responseCallback) {\n // Initialize the request\n Writable.call(this);\n options.headers = options.headers || {};\n this._options = options;\n this._redirectCount = 0;\n this._redirects = [];\n this._requestBodyLength = 0;\n this._requestBodyBuffers = [];\n\n // Since http.request treats host as an alias of hostname,\n // but the url module interprets host as hostname plus port,\n // eliminate the host property to avoid confusion.\n if (options.host) {\n // Use hostname if set, because it has precedence\n if (!options.hostname) {\n options.hostname = options.host;\n }\n delete options.host;\n }\n\n // Attach a callback if passed\n if (responseCallback) {\n this.on(\"response\", responseCallback);\n }\n\n // React to responses of native requests\n var self = this;\n this._onNativeResponse = function (response) {\n self._processResponse(response);\n };\n\n // Complete the URL object when necessary\n if (!options.pathname && options.path) {\n var searchPos = options.path.indexOf(\"?\");\n if (searchPos < 0) {\n options.pathname = options.path;\n }\n else {\n options.pathname = options.path.substring(0, searchPos);\n options.search = options.path.substring(searchPos);\n }\n }\n\n // Perform the first request\n this._performRequest();\n}\nRedirectableRequest.prototype = Object.create(Writable.prototype);\n\n// Writes buffered data to the current native request\nRedirectableRequest.prototype.write = function (data, encoding, callback) {\n // Validate input and shift parameters if necessary\n if (!(typeof data === \"string\" || typeof data === \"object\" && (\"length\" in data))) {\n throw new Error(\"data should be a string, Buffer or Uint8Array\");\n }\n if (typeof encoding === \"function\") {\n callback = encoding;\n encoding = null;\n }\n\n // Ignore empty buffers, since writing them doesn't invoke the callback\n // https://github.com/nodejs/node/issues/22066\n if (data.length === 0) {\n if (callback) {\n callback();\n }\n return;\n }\n // Only write when we don't exceed the maximum body length\n if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {\n this._requestBodyLength += data.length;\n this._requestBodyBuffers.push({ data: data, encoding: encoding });\n this._currentRequest.write(data, encoding, callback);\n }\n // Error when we exceed the maximum body length\n else {\n this.emit(\"error\", new Error(\"Request body larger than maxBodyLength limit\"));\n this.abort();\n }\n};\n\n// Ends the current native request\nRedirectableRequest.prototype.end = function (data, encoding, callback) {\n // Shift parameters if necessary\n if (typeof data === \"function\") {\n callback = data;\n data = encoding = null;\n }\n else if (typeof encoding === \"function\") {\n callback = encoding;\n encoding = null;\n }\n\n // Write data and end\n var currentRequest = this._currentRequest;\n this.write(data || \"\", encoding, function () {\n currentRequest.end(null, null, callback);\n });\n};\n\n// Sets a header value on the current native request\nRedirectableRequest.prototype.setHeader = function (name, value) {\n this._options.headers[name] = value;\n this._currentRequest.setHeader(name, value);\n};\n\n// Clears a header value on the current native request\nRedirectableRequest.prototype.removeHeader = function (name) {\n delete this._options.headers[name];\n this._currentRequest.removeHeader(name);\n};\n\n// Proxy all other public ClientRequest methods\n[\n \"abort\", \"flushHeaders\", \"getHeader\",\n \"setNoDelay\", \"setSocketKeepAlive\", \"setTimeout\",\n].forEach(function (method) {\n RedirectableRequest.prototype[method] = function (a, b) {\n return this._currentRequest[method](a, b);\n };\n});\n\n// Proxy all public ClientRequest properties\n[\"aborted\", \"connection\", \"socket\"].forEach(function (property) {\n Object.defineProperty(RedirectableRequest.prototype, property, {\n get: function () { return this._currentRequest[property]; },\n });\n});\n\n// Executes the next native request (initial or redirect)\nRedirectableRequest.prototype._performRequest = function () {\n // Load the native protocol\n var protocol = this._options.protocol;\n var nativeProtocol = this._options.nativeProtocols[protocol];\n if (!nativeProtocol) {\n this.emit(\"error\", new Error(\"Unsupported protocol \" + protocol));\n return;\n }\n\n // If specified, use the agent corresponding to the protocol\n // (HTTP and HTTPS use different types of agents)\n if (this._options.agents) {\n var scheme = protocol.substr(0, protocol.length - 1);\n this._options.agent = this._options.agents[scheme];\n }\n\n // Create the native request\n var request = this._currentRequest =\n nativeProtocol.request(this._options, this._onNativeResponse);\n this._currentUrl = url.format(this._options);\n\n // Set up event handlers\n request._redirectable = this;\n for (var event in eventHandlers) {\n /* istanbul ignore else */\n if (event) {\n request.on(event, eventHandlers[event]);\n }\n }\n\n // End a redirected request\n // (The first request must be ended explicitly with RedirectableRequest#end)\n if (this._isRedirect) {\n // Write the request entity and end.\n var i = 0;\n var buffers = this._requestBodyBuffers;\n (function writeNext() {\n if (i < buffers.length) {\n var buffer = buffers[i++];\n request.write(buffer.data, buffer.encoding, writeNext);\n }\n else {\n request.end();\n }\n }());\n }\n};\n\n// Processes a response from the current native request\nRedirectableRequest.prototype._processResponse = function (response) {\n // Store the redirected response\n if (this._options.trackRedirects) {\n this._redirects.push({\n url: this._currentUrl,\n headers: response.headers,\n statusCode: response.statusCode,\n });\n }\n\n // RFC7231§6.4: The 3xx (Redirection) class of status code indicates\n // that further action needs to be taken by the user agent in order to\n // fulfill the request. If a Location header field is provided,\n // the user agent MAY automatically redirect its request to the URI\n // referenced by the Location field value,\n // even if the specific status code is not understood.\n var location = response.headers.location;\n if (location && this._options.followRedirects !== false &&\n response.statusCode >= 300 && response.statusCode < 400) {\n // RFC7231§6.4: A client SHOULD detect and intervene\n // in cyclical redirections (i.e., \"infinite\" redirection loops).\n if (++this._redirectCount > this._options.maxRedirects) {\n this.emit(\"error\", new Error(\"Max redirects exceeded.\"));\n return;\n }\n\n // RFC7231§6.4: Automatic redirection needs to done with\n // care for methods not known to be safe […],\n // since the user might not wish to redirect an unsafe request.\n // RFC7231§6.4.7: The 307 (Temporary Redirect) status code indicates\n // that the target resource resides temporarily under a different URI\n // and the user agent MUST NOT change the request method\n // if it performs an automatic redirection to that URI.\n var header;\n var headers = this._options.headers;\n if (response.statusCode !== 307 && !(this._options.method in SAFE_METHODS)) {\n this._options.method = \"GET\";\n // Drop a possible entity and headers related to it\n this._requestBodyBuffers = [];\n for (header in headers) {\n if (/^content-/i.test(header)) {\n delete headers[header];\n }\n }\n }\n\n // Drop the Host header, as the redirect might lead to a different host\n if (!this._isRedirect) {\n for (header in headers) {\n if (/^host$/i.test(header)) {\n delete headers[header];\n }\n }\n }\n\n // Perform the redirected request\n var redirectUrl = url.resolve(this._currentUrl, location);\n debug(\"redirecting to\", redirectUrl);\n Object.assign(this._options, url.parse(redirectUrl));\n this._isRedirect = true;\n this._performRequest();\n\n // Discard the remainder of the response to avoid waiting for data\n response.destroy();\n }\n else {\n // The response is not a redirect; return it as-is\n response.responseUrl = this._currentUrl;\n response.redirects = this._redirects;\n this.emit(\"response\", response);\n\n // Clean up\n this._requestBodyBuffers = [];\n }\n};\n\n// Wraps the key/value object of protocols with redirect functionality\nfunction wrap(protocols) {\n // Default settings\n var exports = {\n maxRedirects: 21,\n maxBodyLength: 10 * 1024 * 1024,\n };\n\n // Wrap each protocol\n var nativeProtocols = {};\n Object.keys(protocols).forEach(function (scheme) {\n var protocol = scheme + \":\";\n var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];\n var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);\n\n // Executes a request, following redirects\n wrappedProtocol.request = function (options, callback) {\n if (typeof options === \"string\") {\n options = url.parse(options);\n options.maxRedirects = exports.maxRedirects;\n }\n else {\n options = Object.assign({\n protocol: protocol,\n maxRedirects: exports.maxRedirects,\n maxBodyLength: exports.maxBodyLength,\n }, options);\n }\n options.nativeProtocols = nativeProtocols;\n assert.equal(options.protocol, protocol, \"protocol mismatch\");\n debug(\"options\", options);\n return new RedirectableRequest(options, callback);\n };\n\n // Executes a GET request, following redirects\n wrappedProtocol.get = function (options, callback) {\n var request = wrappedProtocol.request(options, callback);\n request.end();\n return request;\n };\n });\n return exports;\n}\n\n// Exports\nmodule.exports = wrap({ http: http, https: https });\nmodule.exports.wrap = wrap;\n","module.exports = require(\"url\");","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = createDebug.debug = createDebug['default'] = createDebug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = require('ms');\n\n/**\n * Active `debug` instances.\n */\nexports.instances = [];\n\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\nexports.formatters = {};\n\n/**\n * Select a color.\n * @param {String} namespace\n * @return {Number}\n * @api private\n */\n\nfunction selectColor(namespace) {\n var hash = 0, i;\n\n for (i in namespace) {\n hash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return exports.colors[Math.abs(hash) % exports.colors.length];\n}\n\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\nfunction createDebug(namespace) {\n\n var prevTime;\n\n function debug() {\n // disabled?\n if (!debug.enabled) return;\n\n var self = debug;\n\n // set `diff` timestamp\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n\n // turn the `arguments` into a proper Array\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %O\n args.unshift('%O');\n }\n\n // apply any `formatters` transformations\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val);\n\n // now we need to remove `args[index]` since it's inlined in the `format`\n args.splice(index, 1);\n index--;\n }\n return match;\n });\n\n // apply env-specific formatting (colors, etc.)\n exports.formatArgs.call(self, args);\n\n var logFn = debug.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = exports.enabled(namespace);\n debug.useColors = exports.useColors();\n debug.color = selectColor(namespace);\n debug.destroy = destroy;\n\n // env-specific initialization logic for debug instances\n if ('function' === typeof exports.init) {\n exports.init(debug);\n }\n\n exports.instances.push(debug);\n\n return debug;\n}\n\nfunction destroy () {\n var index = exports.instances.indexOf(this);\n if (index !== -1) {\n exports.instances.splice(index, 1);\n return true;\n } else {\n return false;\n }\n}\n\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n\n exports.names = [];\n exports.skips = [];\n\n var i;\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n namespaces = split[i].replace(/\\*/g, '.*?');\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n\n for (i = 0; i < exports.instances.length; i++) {\n var instance = exports.instances[i];\n instance.enabled = exports.enabled(instance.namespace);\n }\n}\n\n/**\n * Disable debug output.\n *\n * @api public\n */\n\nfunction disable() {\n exports.enable('');\n}\n\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\nfunction enabled(name) {\n if (name[name.length - 1] === '*') {\n return true;\n }\n var i, len;\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];\n var defaultToConfig2Keys = [\n 'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',\n 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath'\n ];\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {\n if (utils.isObject(config2[prop])) {\n config[prop] = utils.deepMerge(config1[prop], config2[prop]);\n } else if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (utils.isObject(config1[prop])) {\n config[prop] = utils.deepMerge(config1[prop]);\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys);\n\n var otherKeys = Object\n .keys(config2)\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n return config;\n};\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","export default class NlicError extends Error {\n constructor(...args) {\n super(...args);\n\n this.config = {};\n this.response = {};\n this.request = {};\n this.code = '';\n\n this.isNlicError = true;\n this.isAxiosError = true;\n }\n}\n","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","import itemToObject from './itemToObject';\nimport Licensee from '../entities/Licensee';\n\nexport default (item) => new Licensee(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Licensee entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the licensee. Vendor can assign this\n * number when creating a licensee or let NetLicensing generate one. Read-only after creation of the first license for\n * the licensee.\n * @property string number\n *\n * Licensee name.\n * @property string name\n *\n * If set to false, the licensee is disabled. Licensee can not obtain new licenses, and validation is\n * disabled (tbd).\n * @property boolean active\n *\n * Licensee Secret for licensee\n * @property string licenseeSecret\n *\n * Mark licensee for transfer.\n * @property boolean markedForTransfer\n *\n * Arbitrary additional user properties of string type may be associated with each licensee. The name of user property\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, productNumber\n *\n * @constructor\n */\nexport default class Licensee extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n licenseeSecret: 'string',\n markedForTransfer: 'boolean',\n inUse: 'boolean',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n /**\n * @deprecated\n */\n setLicenseeSecret(licenseeSecret) {\n return this.setProperty('licenseeSecret', licenseeSecret);\n }\n\n /**\n * @deprecated\n */\n getLicenseeSecret(def) {\n return this.getProperty('licenseeSecret', def);\n }\n\n setMarkedForTransfer(markedForTransfer) {\n return this.setProperty('markedForTransfer', markedForTransfer);\n }\n\n getMarkedForTransfer(def) {\n return this.getProperty('markedForTransfer', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\n// Cast an attribute to a native JS type.\nexport default (key, value) => {\n switch (key.trim().toLowerCase()) {\n case 'str':\n case 'string':\n return String(value);\n case 'int':\n case 'integer':\n return parseInt(value, 10);\n case 'float':\n case 'double':\n return parseFloat(value);\n case 'bool':\n case 'boolean':\n switch (value) {\n case 'true':\n case 'TRUE':\n return true;\n case 'false':\n case 'FALSE':\n return false;\n default:\n return Boolean(value);\n }\n case 'date':\n return (value === 'now') ? 'now' : new Date(String(value));\n default:\n return value;\n }\n};\n","import itemToObject from './itemToObject';\nimport License from '../entities/License';\n\nexport default (item) => new License(itemToObject(item));\n","import itemToObject from './itemToObject';\nimport LicenseTemplate from '../entities/LicenseTemplate';\n\nexport default (item) => new LicenseTemplate(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * License template entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the license template. Vendor can\n * assign this number when creating a license template or let NetLicensing generate one.\n * Read-only after creation of the first license from this license template.\n * @property string number\n *\n * If set to false, the license template is disabled. Licensee can not obtain any new licenses off this\n * license template.\n * @property boolean active\n *\n * Name for the licensed item.\n * @property string name\n *\n * Type of licenses created from this license template. Supported types: \"FEATURE\", \"TIMEVOLUME\",\n * \"FLOATING\", \"QUANTITY\"\n * @property string licenseType\n *\n * Price for the license. If >0, it must always be accompanied by the currency specification.\n * @property double price\n *\n * Specifies currency for the license price. Check data types to discover which currencies are\n * supported.\n * @property string currency\n *\n * If set to true, every new licensee automatically gets one license out of this license template on\n * creation. Automatic licenses must have their price set to 0.\n * @property boolean automatic\n *\n * If set to true, this license template is not shown in NetLicensing Shop as offered for purchase.\n * @property boolean hidden\n *\n * If set to true, licenses from this license template are not visible to the end customer, but\n * participate in validation.\n * @property boolean hideLicenses\n *\n * If set to true, this license template defines grace period of validity granted after subscription expiration.\n * @property boolean gracePeriod\n *\n * Mandatory for 'TIMEVOLUME' license type.\n * @property integer timeVolume\n *\n * Time volume period for 'TIMEVOLUME' license type. Supported types: \"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"\n * @property integer timeVolumePeriod\n *\n * Mandatory for 'FLOATING' license type.\n * @property integer maxSessions\n *\n * Mandatory for 'QUANTITY' license type.\n * @property integer quantity\n *\n * @constructor\n */\nexport default class LicenseTemplate extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n licenseType: 'string',\n price: 'double',\n currency: 'string',\n automatic: 'boolean',\n hidden: 'boolean',\n hideLicenses: 'boolean',\n gracePeriod: 'boolean',\n timeVolume: 'int',\n timeVolumePeriod: 'string',\n maxSessions: 'int',\n quantity: 'int',\n inUse: 'boolean',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setLicenseType(licenseType) {\n return this.setProperty('licenseType', licenseType);\n }\n\n getLicenseType(def) {\n return this.getProperty('licenseType', def);\n }\n\n setPrice(price) {\n return this.setProperty('price', price);\n }\n\n getPrice(def) {\n return this.getProperty('price', def);\n }\n\n setCurrency(currency) {\n return this.setProperty('currency', currency);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n\n setAutomatic(automatic) {\n return this.setProperty('automatic', automatic);\n }\n\n getAutomatic(def) {\n return this.getProperty('automatic', def);\n }\n\n setHidden(hidden) {\n return this.setProperty('hidden', hidden);\n }\n\n getHidden(def) {\n return this.getProperty('hidden', def);\n }\n\n setHideLicenses(hideLicenses) {\n return this.setProperty('hideLicenses', hideLicenses);\n }\n\n getHideLicenses(def) {\n return this.getProperty('hideLicenses', def);\n }\n\n setTimeVolume(timeVolume) {\n return this.setProperty('timeVolume', timeVolume);\n }\n\n getTimeVolume(def) {\n return this.getProperty('timeVolume', def);\n }\n\n setTimeVolumePeriod(timeVolumePeriod) {\n return this.setProperty('timeVolumePeriod', timeVolumePeriod);\n }\n\n getTimeVolumePeriod(def) {\n return this.getProperty('timeVolumePeriod', def);\n }\n\n setMaxSessions(maxSessions) {\n return this.setProperty('maxSessions', maxSessions);\n }\n\n getMaxSessions(def) {\n return this.getProperty('maxSessions', def);\n }\n\n setQuantity(quantity) {\n return this.setProperty('quantity', quantity);\n }\n\n getQuantity(def) {\n return this.getProperty('quantity', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport PaymentMethod from '../entities/PaymentMethod';\n\nexport default (item) => new PaymentMethod(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * PaymentMethod entity used internally by NetLicensing.\n *\n * @property string number\n * @property boolean active\n *\n * @constructor\n */\nexport default class PaymentMethod extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n 'paypal.subject': 'string',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setPaypalSubject(paypalSubject) {\n return this.setProperty('paypal.subject', paypalSubject);\n }\n\n getPaypalSubject(def) {\n return this.getProperty('paypal.subject', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport ProductModule from '../entities/ProductModule';\n\nexport default (item) => new ProductModule(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Product module entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the product module. Vendor can assign\n * this number when creating a product module or let NetLicensing generate one. Read-only after creation of the first\n * licensee for the product.\n * @property string number\n *\n * If set to false, the product module is disabled. Licensees can not obtain any new licenses for this\n * product module.\n * @property boolean active\n *\n * Product module name that is visible to the end customers in NetLicensing Shop.\n * @property string name\n *\n * Licensing model applied to this product module. Defines what license templates can be\n * configured for the product module and how licenses for this product module are processed during validation.\n * @property string licensingModel\n *\n * Maximum checkout validity (days). Mandatory for 'Floating' licensing model.\n * @property integer maxCheckoutValidity\n *\n * Remaining time volume for yellow level. Mandatory for 'Rental' licensing model.\n * @property integer yellowThreshold\n *\n * Remaining time volume for red level. Mandatory for 'Rental' licensing model.\n * @property integer redThreshold\n *\n * License template. Mandatory for 'Try & Buy' licensing model. Supported types: \"TIMEVOLUME\", \"FEATURE\".\n * @property string licenseTemplate\n *\n * Licensee secret mode for product.Supported types: \"PREDEFINED\", \"CLIENT\"\n * @property boolean licenseeSecretMode\n *\n * @constructor\n */\nexport default class ProductModule extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n licensingModel: 'string',\n maxCheckoutValidity: 'int',\n yellowThreshold: 'int',\n redThreshold: 'int',\n licenseTemplate: 'string',\n inUse: 'boolean',\n licenseeSecretMode: 'string',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setLicensingModel(licensingModel) {\n return this.setProperty('licensingModel', licensingModel);\n }\n\n getLicensingModel(def) {\n return this.getProperty('licensingModel', def);\n }\n\n setMaxCheckoutValidity(maxCheckoutValidity) {\n return this.setProperty('maxCheckoutValidity', maxCheckoutValidity);\n }\n\n getMaxCheckoutValidity(def) {\n return this.getProperty('maxCheckoutValidity', def);\n }\n\n setYellowThreshold(yellowThreshold) {\n return this.setProperty('yellowThreshold', yellowThreshold);\n }\n\n getYellowThreshold(def) {\n return this.getProperty('yellowThreshold', def);\n }\n\n setRedThreshold(redThreshold) {\n return this.setProperty('redThreshold', redThreshold);\n }\n\n getRedThreshold(def) {\n return this.getProperty('redThreshold', def);\n }\n\n setLicenseTemplate(licenseTemplate) {\n return this.setProperty('licenseTemplate', licenseTemplate);\n }\n\n getLicenseTemplate(def) {\n return this.getProperty('licenseTemplate', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n\n setLicenseeSecretMode(licenseeSecretMode) {\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\n }\n\n getLicenseeSecretMode(def) {\n return this.getProperty('licenseeSecretMode', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport Product from '../entities/Product';\n\nexport default (item) => {\n const object = itemToObject(item);\n\n const discounts = object.discount;\n\n delete object.discount;\n\n const product = new Product(object);\n product.setProductDiscounts(discounts);\n\n return product;\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\nimport ProductDiscount from './ProductDiscount';\n\n/**\n * The discounts map\n * @type {{}}\n * @private\n */\nconst discountsMap = new WeakMap();\n\n/**\n * An identifier that show if discounts was touched\n * @type {{}}\n * @private\n */\nconst discountsTouched = new WeakMap();\n\n/**\n * NetLicensing Product entity.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number that identifies the product. Vendor can assign this number when creating a product or\n * let NetLicensing generate one. Read-only after creation of the first licensee for the product.\n * @property string number\n *\n * If set to false, the product is disabled. No new licensees can be registered for the product,\n * existing licensees can not obtain new licenses.\n * @property boolean active\n *\n * Product name. Together with the version identifies the product for the end customer.\n * @property string name\n *\n * Product version. Convenience parameter, additional to the product name.\n * @property float version\n *\n * If set to 'true', non-existing licensees will be created at first validation attempt.\n * @property boolean licenseeAutoCreate\n *\n * Licensee secret mode for product.Supported types: \"DISABLED\", \"PREDEFINED\", \"CLIENT\"\n * @property boolean licenseeSecretMode\n *\n * Product description. Optional.\n * @property string description\n *\n * Licensing information. Optional.\n * @property string licensingInfo\n *\n * @property boolean inUse\n *\n * Arbitrary additional user properties of string type may be associated with each product. The name of user property\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted.\n *\n * @constructor\n */\nexport default class Product extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n version: 'string',\n description: 'string',\n licensingInfo: 'string',\n licenseeAutoCreate: 'boolean',\n licenseeSecretMode: 'string',\n inUse: 'boolean',\n },\n });\n\n discountsMap.set(this, []);\n discountsTouched.set(this, false);\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setVersion(version) {\n return this.setProperty('version', version);\n }\n\n getVersion(def) {\n return this.getProperty('version', def);\n }\n\n setLicenseeAutoCreate(licenseeAutoCreate) {\n return this.setProperty('licenseeAutoCreate', licenseeAutoCreate);\n }\n\n getLicenseeAutoCreate(def) {\n return this.getProperty('licenseeAutoCreate', def);\n }\n\n /**\n * @deprecated use ProductModule.setLicenseeSecretMode instead\n */\n setLicenseeSecretMode(licenseeSecretMode) {\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\n }\n\n /**\n * @deprecated use ProductModule.getLicenseeSecretMode instead\n */\n getLicenseeSecretMode(def) {\n return this.getProperty('licenseeSecretMode', def);\n }\n\n setDescription(description) {\n return this.setProperty('description', description);\n }\n\n getDescription(def) {\n return this.getProperty('description', def);\n }\n\n setLicensingInfo(licensingInfo) {\n return this.setProperty('licensingInfo', licensingInfo);\n }\n\n getLicensingInfo(def) {\n return this.getProperty('licensingInfo', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n\n /**\n * Add discount to product\n *\n * @param discount NetLicensing.ProductDiscount\n * @returns {NetLicensing.Product}\n */\n addDiscount(discount) {\n const discounts = discountsMap.get(this);\n\n let productDiscount = discount;\n\n if (typeof productDiscount !== 'string' && !(productDiscount instanceof ProductDiscount)) {\n productDiscount = new ProductDiscount(productDiscount);\n }\n\n discounts.push(productDiscount);\n discountsMap.set(this, discounts);\n discountsTouched.set(this, true);\n\n return this;\n }\n\n /**\n * Set discounts to product\n * @param discounts\n */\n setProductDiscounts(discounts) {\n discountsMap.set(this, []);\n discountsTouched.set(this, true);\n\n if (!discounts) return this;\n\n if (Array.isArray(discounts)) {\n discounts.forEach((discount) => {\n this.addDiscount(discount);\n });\n\n return this;\n }\n\n this.addDiscount(discounts);\n\n return this;\n }\n\n /**\n * Get array of objects discounts\n * @returns {Array}\n */\n getProductDiscounts() {\n return Object.assign([], discountsMap.get(this));\n }\n\n asPropertiesMap() {\n const propertiesMap = super.asPropertiesMap();\n\n if (discountsMap.get(this).length) {\n propertiesMap.discount = discountsMap.get(this).map((discount) => discount.toString());\n }\n\n if (!propertiesMap.discount && discountsTouched.get(this)) {\n propertiesMap.discount = '';\n }\n\n return propertiesMap;\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nimport BaseEntity from './BaseEntity';\n\nexport default class ProductDiscount extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n totalPrice: 'float',\n currency: 'string',\n amountFix: 'float',\n amountPercent: 'int',\n },\n });\n }\n\n setTotalPrice(totalPrice) {\n return this.setProperty('totalPrice', totalPrice);\n }\n\n getTotalPrice(def) {\n return this.getProperty('totalPrice', def);\n }\n\n setCurrency(currency) {\n return this.setProperty('currency', currency);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n\n setAmountFix(amountFix) {\n return this.setProperty('amountFix', amountFix).removeProperty('amountPercent');\n }\n\n getAmountFix(def) {\n return this.getProperty('amountFix', def);\n }\n\n setAmountPercent(amountPercent) {\n return this.setProperty('amountPercent', amountPercent).removeProperty('amountFix');\n }\n\n getAmountPercent(def) {\n return this.getProperty('amountPercent', def);\n }\n\n toString() {\n const totalPrice = this.getTotalPrice();\n const currency = this.getCurrency();\n let amount = 0;\n\n if (this.getAmountFix(null)) amount = this.getAmountFix();\n if (this.getAmountPercent(null)) amount = `${this.getAmountPercent()}%`;\n\n return `${totalPrice};${currency};${amount}`;\n }\n}\n","import itemToObject from './itemToObject';\nimport Token from '../entities/Token';\n\nexport default (item) => new Token(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Product module entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number\n * @property string number\n *\n * If set to false, the token is disabled.\n * @property boolean active\n *\n * Expiration Time\n * @property string expirationTime\n *\n * @property string vendorNumber\n *\n * Token type to be generated.\n * DEFAULT - default one-time token (will be expired after first request)\n * SHOP - shop token is used to redirect customer to the netlicensingShop(licenseeNumber is mandatory)\n * APIKEY - APIKey-token\n * @property string tokenType\n *\n * @property string licenseeNumber\n *\n * @constructor\n */\nexport default class Token extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n expirationTime: 'date',\n vendorNumber: 'string',\n tokenType: 'string',\n licenseeNumber: 'string',\n successURL: 'string',\n successURLTitle: 'string',\n cancelURL: 'string',\n cancelURLTitle: 'string',\n shopURL: 'string',\n },\n });\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setExpirationTime(expirationTime) {\n return this.setProperty('expirationTime', expirationTime);\n }\n\n getExpirationTime(def) {\n return this.getProperty('expirationTime', def);\n }\n\n setVendorNumber(vendorNumber) {\n return this.setProperty('vendorNumber', vendorNumber);\n }\n\n getVendorNumber(def) {\n return this.getProperty('vendorNumber', def);\n }\n\n setTokenType(tokenType) {\n return this.setProperty('tokenType', tokenType);\n }\n\n getTokenType(def) {\n return this.getProperty('tokenType', def);\n }\n\n setLicenseeNumber(licenseeNumber) {\n return this.setProperty('licenseeNumber', licenseeNumber);\n }\n\n getLicenseeNumber(def) {\n return this.getProperty('licenseeNumber', def);\n }\n\n setSuccessURL(successURL) {\n return this.setProperty('successURL', successURL);\n }\n\n getSuccessURL(def) {\n return this.getProperty('successURL', def);\n }\n\n setSuccessURLTitle(successURLTitle) {\n return this.setProperty('successURLTitle', successURLTitle);\n }\n\n getSuccessURLTitle(def) {\n return this.getProperty('successURLTitle', def);\n }\n\n setCancelURL(cancelURL) {\n return this.setProperty('cancelURL', cancelURL);\n }\n\n getCancelURL(def) {\n return this.getProperty('cancelURL', def);\n }\n\n setCancelURLTitle(cancelURLTitle) {\n return this.setProperty('cancelURLTitle', cancelURLTitle);\n }\n\n getCancelURLTitle(def) {\n return this.getProperty('cancelURLTitle', def);\n }\n\n getShopURL(def) {\n return this.getProperty('shopURL', def);\n }\n\n /**\n * @deprecated\n * @alias setApiKeyRole\n * @param role\n * @returns {*}\n */\n setRole(role) {\n return this.setApiKeyRole(role);\n }\n\n /**\n * @deprecated\n * @alias getApiKeyRole\n * @param def\n * @returns {*}\n */\n getRole(def) {\n return this.getApiKeyRole(def);\n }\n\n setApiKeyRole(apiKeyRole) {\n return this.setProperty('apiKeyRole', apiKeyRole);\n }\n\n getApiKeyRole(def) {\n return this.getProperty('apiKeyRole', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport Transaction from '../entities/Transaction';\nimport License from '../entities/License';\nimport LicenseTransactionJoin from '../entities/LicenseTransactionJoin';\nimport Constants from '../Constants';\n\nexport default (item) => {\n const object = itemToObject(item);\n\n const { licenseTransactionJoin } = object;\n\n delete object.licenseTransactionJoin;\n\n const transaction = new Transaction(object);\n\n if (licenseTransactionJoin) {\n const joins = [];\n\n licenseTransactionJoin.forEach((v) => {\n const join = new LicenseTransactionJoin();\n join.setLicense(new License({ number: v[Constants.License.LICENSE_NUMBER] }));\n join.setTransaction(new Transaction({ number: v[Constants.Transaction.TRANSACTION_NUMBER] }));\n\n joins.push(join);\n });\n\n transaction.setLicenseTransactionJoins(joins);\n }\n\n return transaction;\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\nimport LicenseTransactionJoin from './LicenseTransactionJoin';\nimport License from './License';\n\n/**\n * Transaction entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the transaction. This number is\n * always generated by NetLicensing.\n * @property string number\n *\n * always true for transactions\n * @property boolean active\n *\n * Status of transaction. \"CANCELLED\", \"CLOSED\", \"PENDING\".\n * @property string status\n *\n * \"SHOP\". AUTO transaction for internal use only.\n * @property string source\n *\n * grand total for SHOP transaction (see source).\n * @property float grandTotal\n *\n * discount for SHOP transaction (see source).\n * @property float discount\n *\n * specifies currency for money fields (grandTotal and discount). Check data types to discover which\n * @property string currency\n *\n * Date created. Optional.\n * @property string dateCreated\n *\n * Date closed. Optional.\n * @property string dateClosed\n *\n * @constructor\n */\nexport default class Transaction extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n name: 'string',\n status: 'string',\n source: 'string',\n grandTotal: 'float',\n discount: 'float',\n currency: 'string',\n dateCreated: 'date',\n dateClosed: 'date',\n active: 'boolean',\n paymentMethod: 'string',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setStatus(status) {\n return this.setProperty('status', status);\n }\n\n getStatus(def) {\n return this.getProperty('status', def);\n }\n\n setSource(source) {\n return this.setProperty('source', source);\n }\n\n getSource(def) {\n return this.getProperty('source', def);\n }\n\n setGrandTotal(grandTotal) {\n return this.setProperty('grandTotal', grandTotal);\n }\n\n getGrandTotal(def) {\n return this.getProperty('grandTotal', def);\n }\n\n setDiscount(discount) {\n return this.setProperty('discount', discount);\n }\n\n getDiscount(def) {\n return this.getProperty('discount', def);\n }\n\n setCurrency(currency) {\n return this.setProperty('currency', currency);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n\n setDateCreated(dateCreated) {\n return this.setProperty('dateCreated', dateCreated);\n }\n\n getDateCreated(def) {\n return this.getProperty('dateCreated', def);\n }\n\n setDateClosed(dateClosed) {\n return this.setProperty('dateClosed', dateClosed);\n }\n\n getDateClosed(def) {\n return this.getProperty('dateClosed', def);\n }\n\n setPaymentMethod(paymentMethod) {\n return this.setProperty('paymentMethod', paymentMethod);\n }\n\n getPaymentMethod(def) {\n return this.getProperty('paymentMethod', def);\n }\n\n setActive() {\n return this.setProperty('active', true);\n }\n\n getLicenseTransactionJoins(def) {\n return this.getProperty('licenseTransactionJoins', def);\n }\n\n setLicenseTransactionJoins(licenseTransactionJoins) {\n return this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\n }\n\n setListLicenseTransactionJoin(properties) {\n if (!properties) return;\n\n const licenseTransactionJoins = this.getProperty('licenseTransactionJoins', []);\n const licenseTransactionJoin = new LicenseTransactionJoin();\n\n properties.forEach((property) => {\n if (property.name === 'licenseNumber') {\n licenseTransactionJoin.setLicense(new License({ number: property.value }));\n }\n\n if (property.name === 'transactionNumber') {\n licenseTransactionJoin.setTransaction(new Transaction({ number: property.value }));\n }\n });\n\n licenseTransactionJoins.push(licenseTransactionJoin);\n this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\n }\n}\n","import itemToObject from './itemToObject';\nimport Country from '../entities/Country';\n\nexport default (item) => new Country(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Country entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * @property code - Unique code of country.\n *\n * @property name - Unique name of country\n *\n * @property vatPercent - Country vat.\n *\n * @property isEu - is country in EU.\n */\nexport default class Country extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n code: 'string',\n name: 'string',\n vatPercent: 'int',\n isEu: 'boolean',\n },\n });\n }\n\n setCode(code) {\n return this.setProperty('code', code);\n }\n\n getCode(def) {\n return this.getProperty('code', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setVatPercent(vat) {\n return this.setProperty('vatPercent', vat);\n }\n\n getVatPercent(def) {\n return this.getProperty('vatPercent', def);\n }\n\n setIsEu(isEu) {\n return this.setProperty('isEu', isEu);\n }\n\n getIsEu(def) {\n return this.getProperty('isEu', def);\n }\n}\n","// Constants\nimport Constants from './Constants';\n\n// VO\nimport Context from './vo/Context';\nimport Page from './vo/Page';\nimport ValidationParameters from './vo/ValidationParameters';\nimport ValidationResults from './vo/ValidationResults';\n\n// Services\nimport Service from './services/Service';\nimport LicenseeService from './services/LicenseeService';\nimport LicenseService from './services/LicenseService';\nimport LicenseTemplateService from './services/LicenseTemplateService';\nimport PaymentMethodService from './services/PaymentMethodService';\nimport ProductModuleService from './services/ProductModuleService';\nimport ProductService from './services/ProductService';\nimport TokenService from './services/TokenService';\nimport TransactionService from './services/TransactionService';\nimport UtilityService from './services/UtilityService';\n\n// Entities\nimport BaseEntity from './entities/BaseEntity';\nimport Country from './entities/Country';\nimport License from './entities/License';\nimport Licensee from './entities/Licensee';\nimport LicenseTemplate from './entities/LicenseTemplate';\nimport PaymentMethod from './entities/PaymentMethod';\nimport Product from './entities/Product';\nimport ProductDiscount from './entities/ProductDiscount';\nimport ProductModule from './entities/ProductModule';\nimport Token from './entities/Token';\nimport Transaction from './entities/Transaction';\nimport LicenseTransactionJoin from './entities/LicenseTransactionJoin';\n\n// Converters\nimport itemToCountry from './converters/itemToCountry';\nimport itemToLicense from './converters/itemToLicense';\nimport itemToLicensee from './converters/itemToLicensee';\nimport itemToLicenseTemplate from './converters/itemToLicenseTemplate';\nimport itemToObject from './converters/itemToObject';\nimport itemToPaymentMethod from './converters/itemToPaymentMethod';\nimport itemToProduct from './converters/itemToProduct';\nimport itemToProductModule from './converters/itemToProductModule';\nimport itemToToken from './converters/itemToToken';\nimport itemToTransaction from './converters/itemToTransaction';\n\n// Utils\nimport CastsUtils from './util/CastsUtils';\nimport CheckUtils from './util/CheckUtils';\nimport FilterUtils from './util/FilterUtils';\n\n// Errors\nimport NlicError from './errors/NlicError';\n\n// Create the default instance to be exported\nconst NetLicensing = {\n // Constants\n Constants,\n\n // Expose VO\n Context,\n Page,\n ValidationParameters,\n ValidationResults,\n\n // Expose Services\n Service,\n LicenseeService,\n LicenseService,\n LicenseTemplateService,\n PaymentMethodService,\n ProductModuleService,\n ProductService,\n TokenService,\n TransactionService,\n UtilityService,\n\n // Expose Entities\n BaseEntity,\n Country,\n License,\n Licensee,\n LicenseTemplate,\n PaymentMethod,\n Product,\n ProductDiscount,\n ProductModule,\n Token,\n Transaction,\n LicenseTransactionJoin,\n\n // Expose Converters\n itemToCountry,\n itemToLicense,\n itemToLicensee,\n itemToLicenseTemplate,\n itemToObject,\n itemToPaymentMethod,\n itemToProduct,\n itemToProductModule,\n itemToToken,\n itemToTransaction,\n\n // Expose Utils\n CastsUtils,\n CheckUtils,\n FilterUtils,\n\n // Errors\n NlicError,\n};\n\nmodule.exports = NetLicensing;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = NetLicensing;\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nimport Constants from '../Constants';\nimport CheckUtils from '../util/CheckUtils';\n\n/**\n * The context values.\n * @type {{}}\n * @private\n */\nconst valuesMap = new WeakMap();\n\n/**\n * List of values that was defined\n * @type {{}}\n * @private\n */\nconst definedMap = new WeakMap();\n\n/**\n * Context defaults\n * @type {{baseUrl: string, securityMode}}\n * @private\n */\nconst defaultsMap = new WeakMap();\n\nexport default class Context {\n constructor(values) {\n defaultsMap.set(this, {\n baseUrl: 'https://go.netlicensing.io/core/v2/rest',\n securityMode: Constants.BASIC_AUTHENTICATION,\n });\n\n valuesMap.set(this, {});\n\n definedMap.set(this, {});\n\n this.setValues({ ...defaultsMap.get(this), ...values });\n }\n\n setBaseUrl(baseUrl) {\n return this.setValue('baseUrl', baseUrl);\n }\n\n getBaseUrl(def) {\n return this.getValue('baseUrl', def);\n }\n\n setUsername(username) {\n return this.setValue('username', username);\n }\n\n getUsername(def) {\n return this.getValue('username', def);\n }\n\n setPassword(password) {\n return this.setValue('password', password);\n }\n\n getPassword(def) {\n return this.getValue('password', def);\n }\n\n setApiKey(apiKey) {\n return this.setValue('apiKey', apiKey);\n }\n\n getApiKey(def) {\n return this.getValue('apiKey', def);\n }\n\n setSecurityMode(securityMode) {\n return this.setValue('securityMode', securityMode);\n }\n\n getSecurityMode(def) {\n return this.getValue('securityMode', def);\n }\n\n setVendorNumber(vendorNumber) {\n return this.setValue('vendorNumber', vendorNumber);\n }\n\n getVendorNumber(def) {\n return this.getValue('vendorNumber', def);\n }\n\n /**\n * Set a given values on the context.\n * @param key\n * @param value\n * @returns {Context}\n */\n setValue(key, value) {\n // check values\n if (!CheckUtils.isValid(key) || typeof key === 'object') throw new Error(`Bad value key:${key}`);\n if (!CheckUtils.isValid(value)) throw new Error(`Value ${key} has wrong value${value}`);\n\n // define keys\n this.define(key);\n\n let copedValue = value;\n\n if (typeof value === 'object' && value !== null) {\n copedValue = (Array.isArray(value)) ? Object.assign([], value) : ({ ...value });\n }\n\n const values = valuesMap.get(this);\n values[key] = copedValue;\n\n return this;\n }\n\n /**\n * Set the array of context values.\n * @param values\n * @returns {Context}\n */\n setValues(values) {\n this.removeValues();\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(values).forEach((key) => {\n if (has.call(values, key)) {\n this.setValue(key, values[key]);\n }\n });\n\n return this;\n }\n\n /**\n * Get an value from the context.\n * @param key\n * @param def\n * @returns {*}\n */\n getValue(key, def) {\n return (key in valuesMap.get(this))\n ? valuesMap.get(this)[key]\n : def;\n }\n\n /**\n * Get all of the current value on the context.\n */\n getValues() {\n return { ...valuesMap.get(this) };\n }\n\n /**\n * Remove value\n * @param key\n * @returns {Context}\n */\n removeValue(key) {\n const values = valuesMap.get(this);\n delete values[key];\n\n this.removeDefine(key);\n return this;\n }\n\n /**\n * Remove values\n * @param keys\n */\n removeValues(keys) {\n const keysAr = keys || Object.keys(valuesMap.get(this));\n keysAr.forEach((key) => this.removeValue(key));\n }\n\n /**\n * Define value getter and setter\n * @param key\n * @param onlyGetter\n * @private\n */\n define(key, onlyGetter) {\n if (this.hasDefine(key)) return;\n\n if (!CheckUtils.isValid(key) || typeof property === 'object') {\n throw new TypeError(`Bad value name:${key}`);\n }\n\n const self = this;\n\n // delete property\n delete this[key];\n\n const descriptors = {\n enumerable: true,\n configurable: true,\n get() {\n return self.getValue(key);\n },\n };\n\n if (!onlyGetter) {\n descriptors.set = (value) => self.setValue(key, value);\n }\n\n const defined = definedMap.get(this);\n defined[key] = true;\n\n Object.defineProperty(this, key, descriptors);\n }\n\n /**\n * Check if value has defined\n * @param key\n * @private\n */\n hasDefine(key) {\n return Boolean(definedMap.get(this)[key]);\n }\n\n /**\n * Remove value getter and setter\n * @param key\n * @private\n */\n removeDefine(key) {\n if (!this.hasDefine(key)) return;\n\n const defined = definedMap.get(this);\n delete defined[key];\n\n delete this[key];\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\n/**\n * Validation parameters map\n *\n * @type {WeakMap}\n */\nconst vpMap = new WeakMap();\n\nexport default class ValidationParameters {\n constructor() {\n vpMap.set(this, { parameters: {} });\n }\n\n /**\n * Sets the target product\n *\n * optional productNumber, must be provided in case licensee auto-create is enabled\n * @param productNumber\n * @returns {ValidationParameters}\n */\n setProductNumber(productNumber) {\n vpMap.get(this).productNumber = productNumber;\n return this;\n }\n\n /**\n * Get the target product\n * @returns {*}\n */\n getProductNumber() {\n return vpMap.get(this).productNumber;\n }\n\n /**\n * Sets the name for the new licensee\n *\n * optional human-readable licensee name in case licensee will be auto-created. This parameter must not\n * be the name, but can be used to store any other useful string information with new licensees, up to\n * 1000 characters.\n * @param licenseeName\n * @returns {NetLicensing.ValidationParameters}\n */\n setLicenseeName(licenseeName) {\n vpMap.get(this).licenseeName = licenseeName;\n return this;\n }\n\n /**\n * Get the licensee name\n * @returns {*}\n */\n getLicenseeName() {\n return vpMap.get(this).licenseeName;\n }\n\n /**\n * Sets the licensee secret\n *\n * licensee secret stored on the client side. Refer to Licensee Secret documentation for details.\n * @param licenseeSecret\n * @returns {ValidationParameters}\n * @deprecated use 'NodeLocked' licensingModel instead\n */\n setLicenseeSecret(licenseeSecret) {\n vpMap.get(this).licenseeSecret = licenseeSecret;\n return this;\n }\n\n /**\n * Get the licensee secret\n * @returns {*}\n * @deprecated use 'NodeLocked' licensingModel instead\n */\n getLicenseeSecret() {\n return vpMap.get(this).licenseeSecret;\n }\n\n /**\n * Get validation parameters\n * @returns {*}\n */\n getParameters() {\n return { ...vpMap.get(this).parameters };\n }\n\n getProductModuleValidationParameters(productModuleNumber) {\n return { ...vpMap.get(this).parameters[productModuleNumber] };\n }\n\n setProductModuleValidationParameters(productModuleNumber, productModuleParameters) {\n const { parameters } = vpMap.get(this);\n\n if (parameters[productModuleNumber] === undefined || !Object.keys(parameters[productModuleNumber]).length) {\n parameters[productModuleNumber] = {};\n }\n\n parameters[productModuleNumber] = Object.assign(parameters[productModuleNumber], productModuleParameters);\n\n return this;\n }\n}\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n var cookies = require('./../helpers/cookies');\n\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (requestData === undefined) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildFullPath = require('../core/buildFullPath');\nvar buildURL = require('./../helpers/buildURL');\nvar http = require('http');\nvar https = require('https');\nvar httpFollow = require('follow-redirects').http;\nvar httpsFollow = require('follow-redirects').https;\nvar url = require('url');\nvar zlib = require('zlib');\nvar pkg = require('./../../package.json');\nvar createError = require('../core/createError');\nvar enhanceError = require('../core/enhanceError');\n\nvar isHttps = /https:?/;\n\n/*eslint consistent-return:0*/\nmodule.exports = function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n var resolve = function resolve(value) {\n resolvePromise(value);\n };\n var reject = function reject(value) {\n rejectPromise(value);\n };\n var data = config.data;\n var headers = config.headers;\n\n // Set User-Agent (required by some servers)\n // Only set header if it hasn't been set in config\n // See https://github.com/axios/axios/issues/69\n if (!headers['User-Agent'] && !headers['user-agent']) {\n headers['User-Agent'] = 'axios/' + pkg.version;\n }\n\n if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(createError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers['Content-Length'] = data.length;\n }\n\n // HTTP basic authentication\n var auth = undefined;\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n // Parse url\n var fullPath = buildFullPath(config.baseURL, config.url);\n var parsed = url.parse(fullPath);\n var protocol = parsed.protocol || 'http:';\n\n if (!auth && parsed.auth) {\n var urlAuth = parsed.auth.split(':');\n var urlUsername = urlAuth[0] || '';\n var urlPassword = urlAuth[1] || '';\n auth = urlUsername + ':' + urlPassword;\n }\n\n if (auth) {\n delete headers.Authorization;\n }\n\n var isHttpsRequest = isHttps.test(protocol);\n var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n\n var options = {\n path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\\?/, ''),\n method: config.method.toUpperCase(),\n headers: headers,\n agent: agent,\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth: auth\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n }\n\n var proxy = config.proxy;\n if (!proxy && proxy !== false) {\n var proxyEnv = protocol.slice(0, -1) + '_proxy';\n var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];\n if (proxyUrl) {\n var parsedProxyUrl = url.parse(proxyUrl);\n var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;\n var shouldProxy = true;\n\n if (noProxyEnv) {\n var noProxy = noProxyEnv.split(',').map(function trim(s) {\n return s.trim();\n });\n\n shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {\n if (!proxyElement) {\n return false;\n }\n if (proxyElement === '*') {\n return true;\n }\n if (proxyElement[0] === '.' &&\n parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {\n return true;\n }\n\n return parsed.hostname === proxyElement;\n });\n }\n\n\n if (shouldProxy) {\n proxy = {\n host: parsedProxyUrl.hostname,\n port: parsedProxyUrl.port\n };\n\n if (parsedProxyUrl.auth) {\n var proxyUrlAuth = parsedProxyUrl.auth.split(':');\n proxy.auth = {\n username: proxyUrlAuth[0],\n password: proxyUrlAuth[1]\n };\n }\n }\n }\n }\n\n if (proxy) {\n options.hostname = proxy.host;\n options.host = proxy.host;\n options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');\n options.port = proxy.port;\n options.path = protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path;\n\n // Basic proxy authorization\n if (proxy.auth) {\n var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n }\n\n var transport;\n var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsProxy ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n transport = isHttpsProxy ? httpsFollow : httpFollow;\n }\n\n if (config.maxContentLength && config.maxContentLength > -1) {\n options.maxBodyLength = config.maxContentLength;\n }\n\n // Create the request\n var req = transport.request(options, function handleResponse(res) {\n if (req.aborted) return;\n\n // uncompress the response body transparently if required\n var stream = res;\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n stream = (res.statusCode === 204) ? stream : stream.pipe(zlib.createUnzip());\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n }\n\n // return the last request in case of redirects\n var lastRequest = res.req || req;\n\n var response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: res.headers,\n config: config,\n request: lastRequest\n };\n\n if (config.responseType === 'stream') {\n response.data = stream;\n settle(resolve, reject, response);\n } else {\n var responseBuffer = [];\n stream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && Buffer.concat(responseBuffer).length > config.maxContentLength) {\n stream.destroy();\n reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n config, null, lastRequest));\n }\n });\n\n stream.on('error', function handleStreamError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, lastRequest));\n });\n\n stream.on('end', function handleStreamEnd() {\n var responseData = Buffer.concat(responseBuffer);\n if (config.responseType !== 'arraybuffer') {\n responseData = responseData.toString(config.responseEncoding);\n }\n\n response.data = responseData;\n settle(resolve, reject, response);\n });\n }\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, req));\n });\n\n // Handle request timeout\n if (config.timeout) {\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devoring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(config.timeout, function handleRequestTimeout() {\n req.abort();\n reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED', req));\n });\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (req.aborted) return;\n\n req.abort();\n reject(cancel);\n });\n }\n\n // Send the request\n if (utils.isStream(data)) {\n data.on('error', function handleStreamError(err) {\n reject(enhanceError(err, config, null, req));\n }).pipe(req);\n } else {\n req.end(data);\n }\n });\n};\n","module.exports = require(\"assert\");","module.exports = require(\"stream\");","/**\n * Detect Electron renderer process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer') {\n module.exports = require('./browser.js');\n} else {\n module.exports = require('./node.js');\n}\n","/**\n * This is the web browser implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = require('./debug');\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome\n && 'undefined' != typeof chrome.storage\n ? chrome.storage.local\n : localstorage();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n '#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC',\n '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF',\n '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC',\n '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF',\n '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC',\n '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033',\n '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366',\n '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933',\n '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC',\n '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF',\n '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {\n return true;\n }\n\n // Internet Explorer and Edge do not support colors.\n if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n return false;\n }\n\n // is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n // is firebug? http://stackoverflow.com/a/398120/376773\n (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n // is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n // double check webkit in userAgent just in case we are in a worker\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nexports.formatters.j = function(v) {\n try {\n return JSON.stringify(v);\n } catch (err) {\n return '[UnexpectedJSONParseError]: ' + err.message;\n }\n};\n\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var useColors = this.useColors;\n\n args[0] = (useColors ? '%c' : '')\n + this.namespace\n + (useColors ? ' %c' : ' ')\n + args[0]\n + (useColors ? '%c ' : ' ')\n + '+' + exports.humanize(this.diff);\n\n if (!useColors) return;\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit')\n\n // the final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function(match) {\n if ('%%' === match) return;\n index++;\n if ('%c' === match) {\n // we only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n\n args.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\nfunction log() {\n // this hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return 'object' === typeof console\n && console.log\n && Function.prototype.apply.call(console.log, console, arguments);\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch(e) {}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n var r;\n try {\n r = exports.storage.debug;\n } catch(e) {}\n\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n\n/**\n * Enable namespaces listed in `localStorage.debug` initially.\n */\n\nexports.enable(load());\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isNaN(val) === false) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^((?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n if (ms >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (ms >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (ms >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (ms >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n return plural(ms, d, 'day') ||\n plural(ms, h, 'hour') ||\n plural(ms, m, 'minute') ||\n plural(ms, s, 'second') ||\n ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, n, name) {\n if (ms < n) {\n return;\n }\n if (ms < n * 1.5) {\n return Math.floor(ms / n) + ' ' + name;\n }\n return Math.ceil(ms / n) + ' ' + name + 's';\n}\n","/**\n * Module dependencies.\n */\n\nvar tty = require('tty');\nvar util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = require('./debug');\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\n\n/**\n * Colors.\n */\n\nexports.colors = [ 6, 2, 3, 4, 5, 1 ];\n\ntry {\n var supportsColor = require('supports-color');\n if (supportsColor && supportsColor.level >= 2) {\n exports.colors = [\n 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68,\n 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134,\n 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171,\n 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204,\n 205, 206, 207, 208, 209, 214, 215, 220, 221\n ];\n }\n} catch (err) {\n // swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(function (key) {\n return /^debug_/i.test(key);\n}).reduce(function (obj, key) {\n // camel-case\n var prop = key\n .substring(6)\n .toLowerCase()\n .replace(/_([a-z])/g, function (_, k) { return k.toUpperCase() });\n\n // coerce string value into JS value\n var val = process.env[key];\n if (/^(yes|on|true|enabled)$/i.test(val)) val = true;\n else if (/^(no|off|false|disabled)$/i.test(val)) val = false;\n else if (val === 'null') val = null;\n else val = Number(val);\n\n obj[prop] = val;\n return obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n return 'colors' in exports.inspectOpts\n ? Boolean(exports.inspectOpts.colors)\n : tty.isatty(process.stderr.fd);\n}\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nexports.formatters.o = function(v) {\n this.inspectOpts.colors = this.useColors;\n return util.inspect(v, this.inspectOpts)\n .split('\\n').map(function(str) {\n return str.trim()\n }).join(' ');\n};\n\n/**\n * Map %o to `util.inspect()`, allowing multiple lines if needed.\n */\n\nexports.formatters.O = function(v) {\n this.inspectOpts.colors = this.useColors;\n return util.inspect(v, this.inspectOpts);\n};\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var name = this.namespace;\n var useColors = this.useColors;\n\n if (useColors) {\n var c = this.color;\n var colorCode = '\\u001b[3' + (c < 8 ? c : '8;5;' + c);\n var prefix = ' ' + colorCode + ';1m' + name + ' ' + '\\u001b[0m';\n\n args[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n args.push(colorCode + 'm+' + exports.humanize(this.diff) + '\\u001b[0m');\n } else {\n args[0] = getDate() + name + ' ' + args[0];\n }\n}\n\nfunction getDate() {\n if (exports.inspectOpts.hideDate) {\n return '';\n } else {\n return new Date().toISOString() + ' ';\n }\n}\n\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\nfunction log() {\n return process.stderr.write(util.format.apply(util, arguments) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n if (null == namespaces) {\n // If you set a process.env field to null or undefined, it gets cast to the\n // string 'null' or 'undefined'. Just delete instead.\n delete process.env.DEBUG;\n } else {\n process.env.DEBUG = namespaces;\n }\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n return process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init (debug) {\n debug.inspectOpts = {};\n\n var keys = Object.keys(exports.inspectOpts);\n for (var i = 0; i < keys.length; i++) {\n debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n }\n}\n\n/**\n * Enable namespaces listed in `process.env.DEBUG` initially.\n */\n\nexports.enable(load());\n","module.exports = require(\"tty\");","module.exports = require(\"util\");","'use strict';\nconst os = require('os');\nconst hasFlag = require('has-flag');\n\nconst env = process.env;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false')) {\n\tforceColor = false;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = true;\n}\nif ('FORCE_COLOR' in env) {\n\tforceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(stream) {\n\tif (forceColor === false) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (stream && !stream.isTTY && forceColor !== true) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor ? 1 : 0;\n\n\tif (process.platform === 'win32') {\n\t\t// Node.js 7.5.0 is the first version of Node.js to include a patch to\n\t\t// libuv that enables 256 color output on Windows. Anything earlier and it\n\t\t// won't work. However, here we target Node.js 8 at minimum as it is an LTS\n\t\t// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows\n\t\t// release that supports 256 colors. Windows 10 build 14931 is the first release\n\t\t// that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(process.versions.node.split('.')[0]) >= 8 &&\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: getSupportLevel(process.stdout),\n\tstderr: getSupportLevel(process.stderr)\n};\n","module.exports = require(\"os\");","'use strict';\nmodule.exports = (flag, argv) => {\n\targv = argv || process.argv;\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst pos = argv.indexOf(prefix + flag);\n\tconst terminatorPos = argv.indexOf('--');\n\treturn pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);\n};\n","module.exports = require(\"zlib\");","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","(function () {\n \"use strict\";\n\n function btoa(str) {\n var buffer;\n\n if (str instanceof Buffer) {\n buffer = str;\n } else {\n buffer = Buffer.from(str.toString(), 'binary');\n }\n\n return buffer.toString('base64');\n }\n\n module.exports = btoa;\n}());\n","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeFunction = require(\"./isNativeFunction\");\n\nvar construct = require(\"./construct\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;","function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport ValidationResults from '../vo/ValidationResults';\nimport itemToLicensee from '../converters/itemToLicensee';\nimport Page from '../vo/Page';\nimport itemToObject from '../converters/itemToObject';\n\n/**\n * JS representation of the Licensee Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/licensee-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new licensee object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#create-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent product to which the new licensee is to be added\n * @param productNumber string\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param licensee NetLicensing.Licensee\n *\n * return the newly created licensee object in promise\n * @returns {Promise}\n */\n async create(context, productNumber, licensee) {\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\n\n licensee.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Licensee.ENDPOINT_PATH, licensee.asPropertiesMap());\n\n return itemToLicensee(item);\n },\n\n /**\n * Gets licensee by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#get-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the licensee number\n * @param number string\n *\n * return the licensee in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`);\n\n return itemToLicensee(item);\n },\n\n /**\n * Returns all licensees of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#licensees-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of licensees (of all products) or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.Licensee.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToLicensee(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates licensee properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#update-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * licensee number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param licensee NetLicensing.Licensee\n *\n * return updated licensee in promise.\n * @returns {Promise}\n */\n async update(context, number, licensee) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, licensee.asPropertiesMap());\n\n return itemToLicensee(item);\n },\n\n /**\n * Deletes licensee.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#delete-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * licensee number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service\n .delete(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, queryParams);\n },\n\n /**\n * Validates active licenses of the licensee. See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#validate-licensee\n *\n * @param context NetLicensing.Context\n *\n * licensee number\n * @param number string\n *\n * optional validation parameters. See ValidationParameters and licensing model documentation for\n * details.\n * @param validationParameters NetLicensing.ValidationParameters.\n *\n * @returns {ValidationResults}\n */\n async validate(context, number, validationParameters) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = {};\n\n if (validationParameters.getProductNumber()) {\n queryParams.productNumber = validationParameters.getProductNumber();\n }\n\n if (validationParameters.getLicenseeName()) {\n queryParams.licenseeName = validationParameters.getLicenseeName();\n }\n\n if (validationParameters.getLicenseeSecret()) {\n queryParams.licenseeSecret = validationParameters.getLicenseeSecret();\n }\n\n let pmIndex = 0;\n const parameters = validationParameters.getParameters();\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(parameters).forEach((productModuleName) => {\n queryParams[`${Constants.ProductModule.PRODUCT_MODULE_NUMBER}${pmIndex}`] = productModuleName;\n if (!has.call(parameters, productModuleName)) return;\n\n const parameter = parameters[productModuleName];\n\n Object.keys(parameter).forEach((key) => {\n if (has.call(parameter, key)) {\n queryParams[key + pmIndex] = parameter[key];\n }\n });\n pmIndex += 1;\n });\n\n const { data: { items: { item: items }, ttl } } = await Service.post(\n context,\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_VALIDATE}`,\n queryParams,\n );\n\n const validationResults = new ValidationResults();\n validationResults.setTtl(ttl);\n\n items.forEach((v) => {\n const item = itemToObject(v);\n validationResults.setProductModuleValidation(item[Constants.ProductModule.PRODUCT_MODULE_NUMBER], item);\n });\n\n return validationResults;\n },\n\n\n /**\n * Transfer licenses between licensees.\n * @see https://netlicensing.io/wiki/licensee-services#transfer-licenses\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the number of the licensee receiving licenses\n * @param number string\n *\n * the number of the licensee delivering licenses\n * @param sourceLicenseeNumber string\n *\n * @returns {Promise}\n */\n transfer(context, number, sourceLicenseeNumber) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n CheckUtils.paramNotEmpty(sourceLicenseeNumber, Constants.Licensee.SOURCE_LICENSEE_NUMBER);\n\n const queryParams = { sourceLicenseeNumber };\n\n return Service\n .post(\n context,\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_TRANSFER}`,\n queryParams,\n );\n },\n};\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) {\n return;\n }\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nmodule.exports = _nonIterableRest;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToLicense from '../converters/itemToLicense';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the License Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/license-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new license object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#create-license\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent licensee to which the new license is to be added\n * @param licenseeNumber string\n *\n * license template that the license is created from\n * @param licenseTemplateNumber string\n *\n * For privileged logins specifies transaction for the license creation. For regular logins new\n * transaction always created implicitly, and the operation will be in a separate transaction.\n * Transaction is generated with the provided transactionNumber, or, if transactionNumber is null, with\n * auto-generated number.\n * @param transactionNumber null|string\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param license NetLicensing.License\n *\n * return the newly created license object in promise\n * @returns {Promise}\n */\n async create(context, licenseeNumber, licenseTemplateNumber, transactionNumber, license) {\n CheckUtils.paramNotEmpty(licenseeNumber, Constants.Licensee.LICENSEE_NUMBER);\n CheckUtils.paramNotEmpty(licenseTemplateNumber, Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER);\n\n license.setProperty(Constants.Licensee.LICENSEE_NUMBER, licenseeNumber);\n license.setProperty(Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER, licenseTemplateNumber);\n\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.License.ENDPOINT_PATH, license.asPropertiesMap());\n\n return itemToLicense(item);\n },\n\n\n /**\n * Gets license by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#get-license\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the license number\n * @param number string\n *\n * return the license in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.License.ENDPOINT_PATH}/${number}`);\n\n return itemToLicense(item);\n },\n\n /**\n * Returns licenses of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#licenses-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * return array of licenses (of all products) or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.License.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToLicense(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates license properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#update-license\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license number\n * @param number string\n *\n * transaction for the license update. Created implicitly if transactionNumber is null. In this case the\n * operation will be in a separate transaction.\n * @param transactionNumber string|null\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param license NetLicensing.License\n *\n * return updated license in promise.\n * @returns {Promise}\n */\n async update(context, number, transactionNumber, license) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.License.ENDPOINT_PATH}/${number}`, license.asPropertiesMap());\n\n return itemToLicense(item);\n },\n\n /**\n * Deletes license.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#delete-license\n *\n * When any license is deleted, corresponding transaction is created automatically.\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service\n .delete(context, `${Constants.License.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToLicenseTemplate from '../converters/itemToLicenseTemplate';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/license-template-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new license template object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#create-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent product module to which the new license template is to be added\n * @param productModuleNumber\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param licenseTemplate NetLicensing.LicenseTemplate\n *\n * the newly created license template object in promise\n * @returns {Promise}\n */\n async create(context, productModuleNumber, licenseTemplate) {\n CheckUtils.paramNotEmpty(productModuleNumber, Constants.ProductModule.PRODUCT_MODULE_NUMBER);\n\n licenseTemplate.setProperty(Constants.ProductModule.PRODUCT_MODULE_NUMBER, productModuleNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.LicenseTemplate.ENDPOINT_PATH, licenseTemplate.asPropertiesMap());\n\n return itemToLicenseTemplate(item);\n },\n\n /**\n * Gets license template by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#get-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the license template number\n * @param number string\n *\n * return the license template object in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`);\n\n return itemToLicenseTemplate(item);\n },\n\n /**\n * Returns all license templates of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#license-templates-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of license templates (of all products/modules) or null/empty list if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.LicenseTemplate.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToLicenseTemplate(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates license template properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#update-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license template number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param licenseTemplate NetLicensing.LicenseTemplate\n *\n * updated license template in promise.\n * @returns {Promise}\n */\n async update(context, number, licenseTemplate) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const path = `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`;\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, path, licenseTemplate.asPropertiesMap());\n\n return itemToLicenseTemplate(item);\n },\n\n /**\n * Deletes license template.See NetLicensingAPI JavaDoc for details:\n * @see https://netlicensing.io/wiki/license-template-services#delete-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license template number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service\n .delete(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport CheckUtils from '../util/CheckUtils';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToPaymentMethod from '../converters/itemToPaymentMethod';\nimport Page from '../vo/Page';\n\nexport default {\n /**\n * Gets payment method by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/payment-method-services#get-payment-method\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the payment method number\n * @param number string\n *\n * return the payment method in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`);\n\n return itemToPaymentMethod(item);\n },\n\n /**\n * Returns payment methods of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/payment-method-services#payment-methods-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of payment method entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.PaymentMethod.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToPaymentMethod(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates payment method properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/payment-method-services#update-payment-method\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the payment method number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param paymentMethod NetLicensing.PaymentMethod\n *\n * return updated payment method in promise.\n * @returns {Promise}\n */\n async update(context, number, paymentMethod) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const path = `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`;\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, path, paymentMethod.asPropertiesMap());\n\n return itemToPaymentMethod(item);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToProductModule from '../converters/itemToProductModule';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/product-module-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new product module object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#create-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent product to which the new product module is to be added\n * @param productNumber string\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param productModule NetLicensing.ProductModule\n *\n * the newly created product module object in promise\n * @returns {Promise}\n */\n async create(context, productNumber, productModule) {\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\n\n productModule.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.ProductModule.ENDPOINT_PATH, productModule.asPropertiesMap());\n\n return itemToProductModule(item);\n },\n\n /**\n * Gets product module by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#get-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the product module number\n * @param number string\n *\n * return the product module object in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`);\n\n return itemToProductModule(item);\n },\n\n /**\n * Returns products of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#product-modules-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of product modules entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service.get(context, Constants.ProductModule.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToProductModule(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates product module properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#update-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product module number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param productModule NetLicensing.ProductModule\n *\n * updated product module in promise.\n * @returns {Promise}\n */\n async update(context, number, productModule) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, productModule.asPropertiesMap());\n\n return itemToProductModule(item);\n },\n\n /**\n * Deletes product module.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#delete-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product module number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service.delete(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Service from './Service';\nimport Constants from '../Constants';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToProduct from '../converters/itemToProduct';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the Product Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/product-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new product with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#create-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param product NetLicensing.Product\n *\n * return the newly created product object in promise\n * @returns {Promise}\n */\n\n async create(context, product) {\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Product.ENDPOINT_PATH, product.asPropertiesMap());\n return itemToProduct(item);\n },\n\n /**\n * Gets product by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#get-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the product number\n * @param number string\n *\n * return the product object in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Product.ENDPOINT_PATH}/${number}`);\n return itemToProduct(item);\n },\n\n /**\n * Returns products of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#products-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of product entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) throw new TypeError(`filter has bad value ${filter}`);\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service.get(context, Constants.Product.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToProduct(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates product properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#update-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param product NetLicensing.Product\n *\n * updated product in promise.\n * @returns {Promise}\n */\n async update(context, number, product) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, product.asPropertiesMap());\n\n return itemToProduct(item);\n },\n\n /**\n * Deletes product.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#delete-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service.delete(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","var superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport Service from './Service';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToToken from '../converters/itemToToken';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the Token Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/token-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new token.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#create-token\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param token NetLicensing.Token\n *\n * return created token in promise\n * @returns {Promise}\n */\n async create(context, token) {\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Token.ENDPOINT_PATH, token.asPropertiesMap());\n\n return itemToToken(item);\n },\n\n /**\n * Gets token by its number..See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#get-token\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the token number\n * @param number\n *\n * return the token in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\n\n return itemToToken(item);\n },\n\n /**\n * Returns tokens of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#tokens-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of token entities or empty array if nothing found.\n * @return array\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.Token.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToToken(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Delete token by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#delete-token\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the token number\n * @param number string\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n return Service\n .delete(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport Service from './Service';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToTransaction from '../converters/itemToTransaction';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the Transaction Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/transaction-services\n *\n * Transaction is created each time change to LicenseService licenses happens. For instance licenses are\n * obtained by a licensee, licenses disabled by vendor, licenses deleted, etc. Transaction is created no matter what\n * source has initiated the change to licenses: it can be either a direct purchase of licenses by a licensee via\n * NetLicensing Shop, or licenses can be given to a licensee by a vendor. Licenses can also be assigned implicitly by\n * NetLicensing if it is defined so by a license model (e.g. evaluation license may be given automatically). All these\n * events are reflected in transactions. Of all the transaction handling routines only read-only routines are exposed to\n * the public API, as transactions are only allowed to be created and modified by NetLicensing internally.\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new transaction object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#create-transaction\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param transaction NetLicensing.Transaction\n *\n * return the newly created transaction object in promise\n * @returns {Promise}\n */\n async create(context, transaction) {\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Transaction.ENDPOINT_PATH, transaction.asPropertiesMap());\n\n return itemToTransaction(item);\n },\n\n /**\n * Gets transaction by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#get-transaction\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the transaction number\n * @param number string\n *\n * return the transaction in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`);\n\n return itemToTransaction(item);\n },\n\n /**\n * Returns all transactions of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#transactions-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string\n *\n * array of transaction entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.Transaction.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToTransaction(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates transaction properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#update-transaction\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * transaction number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param transaction NetLicensing.Transaction\n *\n * return updated transaction in promise.\n * @returns {Promise}\n */\n async update(context, number, transaction) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`, transaction.asPropertiesMap());\n\n return itemToTransaction(item);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport Service from './Service';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToObject from '../converters/itemToObject';\nimport Page from '../vo/Page';\nimport itemToCountry from '../converters/itemToCountry';\n\n/**\n * JS representation of the Utility Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/utility-services\n * @constructor\n */\n\nexport default {\n /**\n * Returns all license types. See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/utility-services#license-types-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * array of available license types or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async listLicenseTypes(context) {\n const { data } = await Service\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSE_TYPES}`);\n\n return Page(\n data.items.item.map((v) => itemToObject(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Returns all license models. See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/utility-services#licensing-models-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * array of available license models or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async listLicensingModels(context) {\n const { data } = await Service\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSING_MODELS}`);\n\n return Page(\n data.items.item.map((v) => itemToObject(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Returns all countries.\n *\n * determines the vendor on whose behalf the call is performed\n * @param context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter\n *\n * collection of available countries or null/empty list if nothing found in promise.\n * @returns {Promise}\n */\n async listCountries(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(\n context,\n `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_COUNTRIES}`,\n queryParams,\n );\n\n return Page(\n data.items.item.map((v) => itemToCountry(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n};\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/netlicensing-client.node.min.js b/dist/netlicensing-client.node.min.js index 5d1b64d..bc27a93 100644 --- a/dist/netlicensing-client.node.min.js +++ b/dist/netlicensing-client.node.min.js @@ -5,11 +5,11 @@ * @link https://netlicensing.io * @copyright 2017 Labs64 NetLicensing */ -var n={isValid:function(e){var t=void 0!==e&&"function"!=typeof e;return"number"==typeof e&&(t=Number.isFinite(e)&&!Number.isNaN(e)),t},paramNotNull:function(e,t){if(!this.isValid(e))throw new TypeError("Parameter ".concat(t," has bad value ").concat(e));if(null===e)throw new TypeError("Parameter ".concat(t," cannot be null"))},paramNotEmpty:function(e,t){if(!this.isValid(e))throw new TypeError("Parameter ".concat(t," has bad value ").concat(e));if(!e)throw new TypeError("Parameter ".concat(t," cannot be null or empty string"))}};t.default=n},function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(t)}e.exports=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function e(t){var r={},n=t.property,a=t.list;return n&&Array.isArray(n)&&n.forEach(function(e){var t=e.name,n=e.value;t&&(r[t]=n)}),a&&Array.isArray(a)&&a.forEach(function(t){var n=t.name;n&&(r[n]=r[n]||[],r[n].push(e(t)))}),r};t.default=n},function(e,t,r){var n=r(17),a=r(39);e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?a(e):t}},function(e,t,r){var n=r(22);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(18)),o=n(r(17)),u=n(r(1)),i=n(r(2)),s=n(r(5)),c=n(r(42));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o={getContent:function(){return e},getPageNumber:function(){return t},getItemsNumber:function(){return r},getTotalPages:function(){return n},getTotalItems:function(){return a},hasNext:function(){return n>t+1}},u=Object.keys(o);return new Proxy(e,{get:function(e,t){return-1!==u.indexOf(t)?o[t]:e[t]}})}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(17)),o=n(r(1)),u=n(r(2)),i=n(r(62)),s=n(r(91)),c=n(r(4)),l=n(r(38)),f=n(r(95)),d={},p=null,h=function(){function e(){(0,o.default)(this,e)}return(0,u.default)(e,null,[{key:"getAxiosInstance",value:function(){return p||i.default}},{key:"setAxiosInstance",value:function(e){p=e}},{key:"getLastHttpRequestInfo",value:function(){return d}},{key:"get",value:function(t,r,n){return e.request(t,"get",r,n)}},{key:"post",value:function(t,r,n){return e.request(t,"post",r,n)}},{key:"delete",value:function(t,r,n){return e.request(t,"delete",r,n)}},{key:"request",value:function(t,r,n,o){var u=String(n),i=o||{};if(!u)throw new TypeError("Url template must be specified");if(["get","post","delete"].indexOf(r.toLowerCase())<0)throw new Error("Invalid request type:".concat(r,", allowed requests types: GET, POST, DELETE."));if(!t.getBaseUrl(null))throw new Error("Base url must be specified");var p={url:encodeURI("".concat(t.getBaseUrl(),"/").concat(u)),method:r.toLowerCase(),responseType:"json",headers:{Accept:"application/json"},transformRequest:[function(t,r){return"application/x-www-form-urlencoded"===r["Content-Type"]?e.toQueryString(t):(r["NetLicensing-Origin"]||(r["NetLicensing-Origin"]="NetLicensing/Javascript ".concat(f.default.version)),t)}]};switch("undefined"!==!("undefined"==typeof process||(0,a.default)(process))&&"[object process]"===Object.prototype.toString.call(process)&&(p.headers["User-agent"]="NetLicensing/Javascript ".concat(f.default.version,"/node&").concat(process.version)),["put","post","patch"].indexOf(p.method)>=0?("post"===p.method&&(p.headers["Content-Type"]="application/x-www-form-urlencoded"),p.data=i):p.params=i,t.getSecurityMode()){case c.default.BASIC_AUTHENTICATION:if(!t.getUsername())throw new Error('Missing parameter "username"');if(!t.getPassword())throw new Error('Missing parameter "password"');p.auth={username:t.getUsername(),password:t.getPassword()};break;case c.default.APIKEY_IDENTIFICATION:if(!t.getApiKey())throw new Error('Missing parameter "apiKey"');p.headers.Authorization="Basic ".concat((0,s.default)("apiKey:".concat(t.getApiKey())));break;case c.default.ANONYMOUS_IDENTIFICATION:break;default:throw new Error("Unknown security mode")}return e.getAxiosInstance()(p).then(function(e){return d=e,e}).catch(function(t){if(d=t,t.response){var r=new l.default(t);if(r.config=t.config,r.code=t.code,r.request=t.request,r.response=t.response,t.response.data){var n=e.getInfo(t.response,[])[0]||{};r.message=n.value||"Unknown"}throw r}throw t})}},{key:"getInfo",value:function(e,t){try{return e.data.infos.info||t}catch(e){return t}}},{key:"isValidUrl",value:function(e){return new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}},{key:"toQueryString",value:function(t,r){var n=[],o=Object.prototype.hasOwnProperty;return Object.keys(t).forEach(function(u){if(o.call(t,u)){var i=r?"".concat(r,"[").concat(u,"]"):u,s=t[u];s=s instanceof Date?s.toISOString():s,n.push(null!==s&&"object"===(0,a.default)(s)?e.toQueryString(s,i):"".concat(encodeURIComponent(i),"=").concat(encodeURIComponent(s)))}}),n.join("&").replace(/%5B[0-9]+%5D=/g,"=")}}]),e}();t.default=h},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(15)),o={FILTER_DELIMITER:";",FILTER_PAIR_DELIMITER:"=",encode:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=[],n=Object.prototype.hasOwnProperty;return Object.keys(t).forEach(function(a){n.call(t,a)&&r.push("".concat(a).concat(e.FILTER_PAIR_DELIMITER).concat(t[a]))}),r.join(this.FILTER_DELIMITER)},decode:function(){var e=this,t={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(this.FILTER_DELIMITER).forEach(function(r){var n=r.split(e.FILTER_PAIR_DELIMITER),o=(0,a.default)(n,2),u=o[0],i=o[1];t[u]=i}),t}};t.default=o},function(e,t,r){e.exports=r(97)},function(e,t,r){var n=r(98),a=r(99),o=r(100);e.exports=function(e,t){return n(e)||a(e,t)||o()}},function(e,t){function r(e,t,r,n,a,o,u){try{var i=e[o](u),s=i.value}catch(e){return void r(e)}i.done?t(s):Promise.resolve(s).then(n,a)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise(function(a,o){var u=e.apply(t,n);function i(e){r(u,a,o,i,s,"next",e)}function s(e){r(u,a,o,i,s,"throw",e)}i(void 0)})}}},function(e,t){function r(t){"@babel/helpers - typeof";return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}e.exports=r},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(1)),o=n(r(2)),u=n(r(8)),i=n(r(6)),s=n(r(9)),c=function(e){function t(e){return(0,a.default)(this,t),(0,u.default)(this,(0,i.default)(t).call(this,{properties:e,casts:{number:"string",active:"boolean",name:"string",price:"float",hidden:"boolean",parentfeature:"string",timeVolume:"int",startDate:"date",inUse:"boolean"}}))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"setNumber",value:function(e){return this.setProperty("number",e)}},{key:"getNumber",value:function(e){return this.getProperty("number",e)}},{key:"setActive",value:function(e){return this.setProperty("active",e)}},{key:"getActive",value:function(e){return this.getProperty("active",e)}},{key:"setName",value:function(e){return this.setProperty("name",e)}},{key:"getName",value:function(e){return this.getProperty("name",e)}},{key:"setHidden",value:function(e){return this.setProperty("hidden",e)}},{key:"getHidden",value:function(e){return this.getProperty("hidden",e)}},{key:"setParentfeature",value:function(e){return this.setProperty("parentfeature",e)}},{key:"getParentfeature",value:function(e){return this.getProperty("parentfeature",e)}},{key:"setTimeVolume",value:function(e){return this.setProperty("timeVolume",e)}},{key:"getTimeVolume",value:function(e){return this.getProperty("timeVolume",e)}},{key:"setStartDate",value:function(e){return this.setProperty("startDate",e)}},{key:"getStartDate",value:function(e){return this.getProperty("startDate",e)}},{key:"getInUse",value:function(e){return this.getProperty("inUse",e)}},{key:"getPrice",value:function(e){return this.getProperty("price",e)}},{key:"getCurrency",value:function(e){return this.getProperty("currency",e)}}]),t}(n(r(10)).default);t.default=c},function(e,t,r){"use strict";var n=r(3);function a(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var u=[];n.forEach(t,function(e,t){null!==e&&void 0!==e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),u.push(a(t)+"="+a(e))}))}),o=u.join("&")}if(o){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,r){"use strict";var n=r(29);e.exports=function(e,t,r,a,o){var u=new Error(e);return n(u,t,r,a,o)}},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,n)}e.exports=r},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(1)),o=n(r(2)),u=function(){function e(t,r){(0,a.default)(this,e),this.transaction=t,this.license=r}return(0,o.default)(e,[{key:"setTransaction",value:function(e){return this.transaction=e,this}},{key:"getTransaction",value:function(e){return this.transaction||e}},{key:"setLicense",value:function(e){return this.license=e,this}},{key:"getLicense",value:function(e){return this.license||e}}]),e}();t.default=u},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(17)),o=n(r(18)),u=n(r(1)),i=n(r(2)),s=n(r(5));function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var l=new WeakMap,f=function(){function e(){(0,u.default)(this,e),l.set(this,{validators:{}})}return(0,i.default)(e,[{key:"getValidators",value:function(){return function(e){for(var t=1;t"),r.call(t,n)&&(e+=JSON.stringify(t[n]))}),e+="]"}}]),e}();t.default=f},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){s.headers[e]={}}),n.forEach(["post","put","patch"],function(e){s.headers[e]=n.merge(o)}),e.exports=s},function(e,t,r){"use strict";var n=r(21);e.exports=function(e,t,r){var a=r.config.validateStatus;!a||a(r.status)?e(r):t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,a){return e.config=t,r&&(e.code=r),e.request=n,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,r){"use strict";var n=r(70),a=r(71);e.exports=function(e,t){return e&&!n(t)?a(e,t):t}},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t,r){var n=r(34),a=r(31),o=r(32),u=r(76),i=r(77).Writable,s=r(78)("follow-redirects"),c={GET:!0,HEAD:!0,OPTIONS:!0,TRACE:!0},l=Object.create(null);function f(e,t){i.call(this),e.headers=e.headers||{},this._options=e,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e.host&&(e.hostname||(e.hostname=e.host),delete e.host),t&&this.on("response",t);var r=this;if(this._onNativeResponse=function(e){r._processResponse(e)},!e.pathname&&e.path){var n=e.path.indexOf("?");n<0?e.pathname=e.path:(e.pathname=e.path.substring(0,n),e.search=e.path.substring(n))}this._performRequest()}function d(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(a){var o=a+":",i=r[o]=e[a],c=t[a]=Object.create(i);c.request=function(e,a){return"string"==typeof e?(e=n.parse(e)).maxRedirects=t.maxRedirects:e=Object.assign({protocol:o,maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e),e.nativeProtocols=r,u.equal(e.protocol,o,"protocol mismatch"),s("options",e),new f(e,a)},c.get=function(e,t){var r=c.request(e,t);return r.end(),r}}),t}["abort","aborted","error","socket","timeout"].forEach(function(e){l[e]=function(t){this._redirectable.emit(e,t)}}),f.prototype=Object.create(i.prototype),f.prototype.write=function(e,t,r){if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new Error("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Error("Request body larger than maxBodyLength limit")),this.abort()):r&&r()},f.prototype.end=function(e,t,r){"function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null);var n=this._currentRequest;this.write(e||"",t,function(){n.end(null,null,r)})},f.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},f.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].forEach(function(e){f.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(f.prototype,e,{get:function(){return this._currentRequest[e]}})}),f.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var a=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o in this._currentUrl=n.format(this._options),a._redirectable=this,l)o&&a.on(o,l[o]);if(this._isRedirect){var u=0,i=this._requestBodyBuffers;!function e(){if(u=300&&e.statusCode<400){if(++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Error("Max redirects exceeded."));var r,a=this._options.headers;if(307!==e.statusCode&&!(this._options.method in c))for(r in this._options.method="GET",this._requestBodyBuffers=[],a)/^content-/i.test(r)&&delete a[r];if(!this._isRedirect)for(r in a)/^host$/i.test(r)&&delete a[r];var o=n.resolve(this._currentUrl,t);s("redirecting to",o),Object.assign(this._options,n.parse(o)),this._isRedirect=!0,this._performRequest(),e.destroy()}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},e.exports=d({http:a,https:o}),e.exports.wrap=d},function(e,t){e.exports=require("url")},function(e,t,r){function n(e){var r;function n(){if(n.enabled){var e=n,a=+new Date,o=a-(r||a);e.diff=o,e.prev=r,e.curr=a,r=a;for(var u=new Array(arguments.length),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o={getContent:function(){return e},getPageNumber:function(){return t},getItemsNumber:function(){return r},getTotalPages:function(){return n},getTotalItems:function(){return a},hasNext:function(){return n>t+1}},u=Object.keys(o);return new Proxy(e,{get:function(e,t){return-1!==u.indexOf(t)?o[t]:e[t]}})}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(17)),o=n(r(1)),u=n(r(2)),i=n(r(62)),s=n(r(91)),c=n(r(4)),l=n(r(38)),f=n(r(95)),d={},p=null,h=function(){function e(){(0,o.default)(this,e)}return(0,u.default)(e,null,[{key:"getAxiosInstance",value:function(){return p||i.default}},{key:"setAxiosInstance",value:function(e){p=e}},{key:"getLastHttpRequestInfo",value:function(){return d}},{key:"get",value:function(t,r,n){return e.request(t,"get",r,n)}},{key:"post",value:function(t,r,n){return e.request(t,"post",r,n)}},{key:"delete",value:function(t,r,n){return e.request(t,"delete",r,n)}},{key:"request",value:function(t,r,n,o){var u=String(n),i=o||{};if(!u)throw new TypeError("Url template must be specified");if(["get","post","delete"].indexOf(r.toLowerCase())<0)throw new Error("Invalid request type:".concat(r,", allowed requests types: GET, POST, DELETE."));if(!t.getBaseUrl(null))throw new Error("Base url must be specified");var p={url:encodeURI("".concat(t.getBaseUrl(),"/").concat(u)),method:r.toLowerCase(),responseType:"json",headers:{Accept:"application/json"},transformRequest:[function(t,r){return"application/x-www-form-urlencoded"===r["Content-Type"]?e.toQueryString(t):(r["NetLicensing-Origin"]||(r["NetLicensing-Origin"]="NetLicensing/Javascript ".concat(f.default.version)),t)}]};switch("undefined"!==!("undefined"==typeof process||(0,a.default)(process))&&"[object process]"===Object.prototype.toString.call(process)&&(p.headers["User-agent"]="NetLicensing/Javascript ".concat(f.default.version,"/node&").concat(process.version)),["put","post","patch"].indexOf(p.method)>=0?("post"===p.method&&(p.headers["Content-Type"]="application/x-www-form-urlencoded"),p.data=i):p.params=i,t.getSecurityMode()){case c.default.BASIC_AUTHENTICATION:if(!t.getUsername())throw new Error('Missing parameter "username"');if(!t.getPassword())throw new Error('Missing parameter "password"');p.auth={username:t.getUsername(),password:t.getPassword()};break;case c.default.APIKEY_IDENTIFICATION:if(!t.getApiKey())throw new Error('Missing parameter "apiKey"');p.headers.Authorization="Basic ".concat((0,s.default)("apiKey:".concat(t.getApiKey())));break;case c.default.ANONYMOUS_IDENTIFICATION:break;default:throw new Error("Unknown security mode")}return e.getAxiosInstance()(p).then(function(e){return d=e,e}).catch(function(t){if(d=t,t.response){var r=new l.default(t);if(r.config=t.config,r.code=t.code,r.request=t.request,r.response=t.response,t.response.data){var n=e.getInfo(t.response,[])[0]||{};r.message=n.value||"Unknown"}throw r}throw t})}},{key:"getInfo",value:function(e,t){try{return e.data.infos.info||t}catch(e){return t}}},{key:"isValidUrl",value:function(e){return new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}},{key:"toQueryString",value:function(t,r){var n=[],o=Object.prototype.hasOwnProperty;return Object.keys(t).forEach(function(u){if(o.call(t,u)){var i=r?"".concat(r,"[").concat(u,"]"):u,s=t[u];s=s instanceof Date?s.toISOString():s,n.push(null!==s&&"object"===(0,a.default)(s)?e.toQueryString(s,i):"".concat(encodeURIComponent(i),"=").concat(encodeURIComponent(s)))}}),n.join("&").replace(/%5B[0-9]+%5D=/g,"=")}}]),e}();t.default=h},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(15)),o={FILTER_DELIMITER:";",FILTER_PAIR_DELIMITER:"=",encode:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=[],n=Object.prototype.hasOwnProperty;return Object.keys(t).forEach(function(a){n.call(t,a)&&r.push("".concat(a).concat(e.FILTER_PAIR_DELIMITER).concat(t[a]))}),r.join(this.FILTER_DELIMITER)},decode:function(){var e=this,t={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(this.FILTER_DELIMITER).forEach(function(r){var n=r.split(e.FILTER_PAIR_DELIMITER),o=(0,a.default)(n,2),u=o[0],i=o[1];t[u]=i}),t}};t.default=o},function(e,t,r){e.exports=r(97)},function(e,t,r){var n=r(98),a=r(99),o=r(100);e.exports=function(e,t){return n(e)||a(e,t)||o()}},function(e,t){function r(e,t,r,n,a,o,u){try{var i=e[o](u),s=i.value}catch(e){return void r(e)}i.done?t(s):Promise.resolve(s).then(n,a)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise(function(a,o){var u=e.apply(t,n);function i(e){r(u,a,o,i,s,"next",e)}function s(e){r(u,a,o,i,s,"throw",e)}i(void 0)})}}},function(e,t){function r(t){"@babel/helpers - typeof";return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}e.exports=r},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(1)),o=n(r(2)),u=n(r(8)),i=n(r(6)),s=n(r(9)),c=function(e){function t(e){return(0,a.default)(this,t),(0,u.default)(this,(0,i.default)(t).call(this,{properties:e,casts:{number:"string",active:"boolean",name:"string",price:"float",hidden:"boolean",parentfeature:"string",timeVolume:"int",startDate:"date",inUse:"boolean"}}))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"setNumber",value:function(e){return this.setProperty("number",e)}},{key:"getNumber",value:function(e){return this.getProperty("number",e)}},{key:"setActive",value:function(e){return this.setProperty("active",e)}},{key:"getActive",value:function(e){return this.getProperty("active",e)}},{key:"setName",value:function(e){return this.setProperty("name",e)}},{key:"getName",value:function(e){return this.getProperty("name",e)}},{key:"setHidden",value:function(e){return this.setProperty("hidden",e)}},{key:"getHidden",value:function(e){return this.getProperty("hidden",e)}},{key:"setParentfeature",value:function(e){return this.setProperty("parentfeature",e)}},{key:"getParentfeature",value:function(e){return this.getProperty("parentfeature",e)}},{key:"setTimeVolume",value:function(e){return this.setProperty("timeVolume",e)}},{key:"getTimeVolume",value:function(e){return this.getProperty("timeVolume",e)}},{key:"setStartDate",value:function(e){return this.setProperty("startDate",e)}},{key:"getStartDate",value:function(e){return this.getProperty("startDate",e)}},{key:"getInUse",value:function(e){return this.getProperty("inUse",e)}},{key:"getPrice",value:function(e){return this.getProperty("price",e)}},{key:"getCurrency",value:function(e){return this.getProperty("currency",e)}}]),t}(n(r(10)).default);t.default=c},function(e,t,r){"use strict";var n=r(3);function a(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var u=[];n.forEach(t,function(e,t){null!==e&&void 0!==e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),u.push(a(t)+"="+a(e))}))}),o=u.join("&")}if(o){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,r){"use strict";var n=r(29);e.exports=function(e,t,r,a,o){var u=new Error(e);return n(u,t,r,a,o)}},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,n)}e.exports=r},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(1)),o=n(r(2)),u=function(){function e(t,r){(0,a.default)(this,e),this.transaction=t,this.license=r}return(0,o.default)(e,[{key:"setTransaction",value:function(e){return this.transaction=e,this}},{key:"getTransaction",value:function(e){return this.transaction||e}},{key:"setLicense",value:function(e){return this.license=e,this}},{key:"getLicense",value:function(e){return this.license||e}}]),e}();t.default=u},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(17)),o=n(r(18)),u=n(r(1)),i=n(r(2)),s=n(r(5));function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var l=new WeakMap,f=function(){function e(){(0,u.default)(this,e),l.set(this,{validators:{}})}return(0,i.default)(e,[{key:"getValidators",value:function(){return function(e){for(var t=1;t"),r.call(t,n)&&(e+=JSON.stringify(t[n]))}),e+="]"}}]),e}();t.default=f},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){s.headers[e]={}}),n.forEach(["post","put","patch"],function(e){s.headers[e]=n.merge(o)}),e.exports=s},function(e,t,r){"use strict";var n=r(21);e.exports=function(e,t,r){var a=r.config.validateStatus;!a||a(r.status)?e(r):t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,a){return e.config=t,r&&(e.code=r),e.request=n,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,r){"use strict";var n=r(70),a=r(71);e.exports=function(e,t){return e&&!n(t)?a(e,t):t}},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t,r){var n=r(34),a=r(31),o=r(32),u=r(76),i=r(77).Writable,s=r(78)("follow-redirects"),c={GET:!0,HEAD:!0,OPTIONS:!0,TRACE:!0},l=Object.create(null);function f(e,t){i.call(this),e.headers=e.headers||{},this._options=e,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e.host&&(e.hostname||(e.hostname=e.host),delete e.host),t&&this.on("response",t);var r=this;if(this._onNativeResponse=function(e){r._processResponse(e)},!e.pathname&&e.path){var n=e.path.indexOf("?");n<0?e.pathname=e.path:(e.pathname=e.path.substring(0,n),e.search=e.path.substring(n))}this._performRequest()}function d(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(a){var o=a+":",i=r[o]=e[a],c=t[a]=Object.create(i);c.request=function(e,a){return"string"==typeof e?(e=n.parse(e)).maxRedirects=t.maxRedirects:e=Object.assign({protocol:o,maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e),e.nativeProtocols=r,u.equal(e.protocol,o,"protocol mismatch"),s("options",e),new f(e,a)},c.get=function(e,t){var r=c.request(e,t);return r.end(),r}}),t}["abort","aborted","error","socket","timeout"].forEach(function(e){l[e]=function(t){this._redirectable.emit(e,t)}}),f.prototype=Object.create(i.prototype),f.prototype.write=function(e,t,r){if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new Error("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Error("Request body larger than maxBodyLength limit")),this.abort()):r&&r()},f.prototype.end=function(e,t,r){"function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null);var n=this._currentRequest;this.write(e||"",t,function(){n.end(null,null,r)})},f.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},f.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].forEach(function(e){f.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(f.prototype,e,{get:function(){return this._currentRequest[e]}})}),f.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var a=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o in this._currentUrl=n.format(this._options),a._redirectable=this,l)o&&a.on(o,l[o]);if(this._isRedirect){var u=0,i=this._requestBodyBuffers;!function e(){if(u=300&&e.statusCode<400){if(++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new Error("Max redirects exceeded."));var r,a=this._options.headers;if(307!==e.statusCode&&!(this._options.method in c))for(r in this._options.method="GET",this._requestBodyBuffers=[],a)/^content-/i.test(r)&&delete a[r];if(!this._isRedirect)for(r in a)/^host$/i.test(r)&&delete a[r];var o=n.resolve(this._currentUrl,t);s("redirecting to",o),Object.assign(this._options,n.parse(o)),this._isRedirect=!0,this._performRequest(),e.destroy()}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},e.exports=d({http:a,https:o}),e.exports.wrap=d},function(e,t){e.exports=require("url")},function(e,t,r){function n(e){var r;function n(){if(n.enabled){var e=n,a=+new Date,o=a-(r||a);e.diff=o,e.prev=r,e.curr=a,r=a;for(var u=new Array(arguments.length),i=0;i * @license Apache-2.0 * @link https://netlicensing.io * @copyright 2017 Labs64 NetLicensing - */var c=new WeakMap,l=function(){function e(){(0,o.default)(this,e),c.set(this,{parameters:{}})}return(0,u.default)(e,[{key:"setProductNumber",value:function(e){return c.get(this).productNumber=e,this}},{key:"getProductNumber",value:function(){return c.get(this).productNumber}},{key:"setLicenseeName",value:function(e){return c.get(this).licenseeName=e,this}},{key:"getLicenseeName",value:function(){return c.get(this).licenseeName}},{key:"setLicenseeSecret",value:function(e){return c.get(this).licenseeSecret=e,this}},{key:"getLicenseeSecret",value:function(){return c.get(this).licenseeSecret}},{key:"getParameters",value:function(){return s({},c.get(this).parameters)}},{key:"getProductModuleValidationParameters",value:function(e){return s({},c.get(this).parameters[e])}},{key:"setProductModuleValidationParameters",value:function(e,t){var r=c.get(this).parameters;return void 0!==r[e]&&Object.keys(r[e]).length||(r[e]={}),r[e]=Object.assign(r[e],t),this}}]),e}();t.default=l},function(e,t,r){e.exports=r(63)},function(e,t,r){"use strict";var n=r(3),a=r(25),o=r(64),u=r(36);function i(e){var t=new o(e),r=a(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r}var s=i(r(27));s.Axios=o,s.create=function(e){return i(u(s.defaults,e))},s.Cancel=r(37),s.CancelToken=r(89),s.isCancel=r(26),s.all=function(e){return Promise.all(e)},s.spread=r(90),e.exports=s,e.exports.default=s},function(e,t,r){"use strict";var n=r(3),a=r(20),o=r(65),u=r(66),i=r(36);function s(e){this.defaults=e,this.interceptors={request:new o,response:new o}}s.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=i(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[u,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},s.prototype.getUri=function(e){return e=i(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){s.prototype[e]=function(t,r){return this.request(n.merge(r||{},{method:e,url:t}))}}),n.forEach(["post","put","patch"],function(e){s.prototype[e]=function(t,r,a){return this.request(n.merge(a||{},{method:e,url:t,data:r}))}}),e.exports=s},function(e,t,r){"use strict";var n=r(3);function a(){this.handlers=[]}a.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=a},function(e,t,r){"use strict";var n=r(3),a=r(67),o=r(26),u=r(27);function i(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return i(e),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||u.adapter)(e).then(function(t){return i(e),t.data=a(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(i(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,r){"use strict";var n=r(3);e.exports=function(e,t,r){return n.forEach(r,function(r){e=r(e,t)}),e}},function(e,t,r){"use strict";var n=r(3);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},function(e,t,r){"use strict";var n=r(3),a=r(28),o=r(20),u=r(30),i=r(72),s=r(73),c=r(21);e.exports=function(e){return new Promise(function(t,l){var f=e.data,d=e.headers;n.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",y=e.auth.password||"";d.Authorization="Basic "+btoa(h+":"+y)}var m=u(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),o(m,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?i(p.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};a(t,l,n),p=null}},p.onabort=function(){p&&(l(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){l(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),l(c(t,e,"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var v=r(74),g=(e.withCredentials||s(m))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&n.forEach(d,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),l(e),p=null)}),void 0===f&&(f=null),p.send(f)})}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";var n=r(3),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,u={};return e?(n.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(u[t]&&a.indexOf(t)>=0)return;u[t]="set-cookie"===t?(u[t]?u[t]:[]).concat([r]):u[t]?u[t]+", "+r:r}}),u):u}},function(e,t,r){"use strict";var n=r(3);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function a(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=a(window.location.href),function(t){var r=n.isString(t)?a(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(3);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,a,o,u){var i=[];i.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),n.isString(a)&&i.push("path="+a),n.isString(o)&&i.push("domain="+o),!0===u&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,r){"use strict";var n=r(3),a=r(28),o=r(30),u=r(20),i=r(31),s=r(32),c=r(33).http,l=r(33).https,f=r(34),d=r(87),p=r(88),h=r(21),y=r(29),m=/https:?/;e.exports=function(e){return new Promise(function(t,r){var v=function(e){t(e)},g=function(e){r(e)},P=e.data,b=e.headers;if(b["User-Agent"]||b["user-agent"]||(b["User-Agent"]="axios/"+p.version),P&&!n.isStream(P)){if(Buffer.isBuffer(P));else if(n.isArrayBuffer(P))P=Buffer.from(new Uint8Array(P));else{if(!n.isString(P))return g(h("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));P=Buffer.from(P,"utf-8")}b["Content-Length"]=P.length}var E=void 0;e.auth&&(E=(e.auth.username||"")+":"+(e.auth.password||""));var T=o(e.baseURL,e.url),N=f.parse(T),O=N.protocol||"http:";if(!E&&N.auth){var k=N.auth.split(":");E=(k[0]||"")+":"+(k[1]||"")}E&&delete b.Authorization;var w=m.test(O),_=w?e.httpsAgent:e.httpAgent,x={path:u(N.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:b,agent:_,agents:{http:e.httpAgent,https:e.httpsAgent},auth:E};e.socketPath?x.socketPath=e.socketPath:(x.hostname=N.hostname,x.port=N.port);var C,R=e.proxy;if(!R&&!1!==R){var L=O.slice(0,-1)+"_proxy",A=process.env[L]||process.env[L.toUpperCase()];if(A){var M=f.parse(A),I=process.env.no_proxy||process.env.NO_PROXY,S=!0;if(I)S=!I.split(",").map(function(e){return e.trim()}).some(function(e){return!!e&&("*"===e||("."===e[0]&&N.hostname.substr(N.hostname.length-e.length)===e||N.hostname===e))});if(S&&(R={host:M.hostname,port:M.port},M.auth)){var j=M.auth.split(":");R.auth={username:j[0],password:j[1]}}}}if(R&&(x.hostname=R.host,x.host=R.host,x.headers.host=N.hostname+(N.port?":"+N.port:""),x.port=R.port,x.path=O+"//"+N.hostname+(N.port?":"+N.port:"")+x.path,R.auth)){var D=Buffer.from(R.auth.username+":"+R.auth.password,"utf8").toString("base64");x.headers["Proxy-Authorization"]="Basic "+D}var U=w&&(!R||m.test(R.protocol));e.transport?C=e.transport:0===e.maxRedirects?C=U?s:i:(e.maxRedirects&&(x.maxRedirects=e.maxRedirects),C=U?l:c),e.maxContentLength&&e.maxContentLength>-1&&(x.maxBodyLength=e.maxContentLength);var F=C.request(x,function(t){if(!F.aborted){var r=t;switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=204===t.statusCode?r:r.pipe(d.createUnzip()),delete t.headers["content-encoding"]}var n=t.req||F,o={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:n};if("stream"===e.responseType)o.data=r,a(v,g,o);else{var u=[];r.on("data",function(t){u.push(t),e.maxContentLength>-1&&Buffer.concat(u).length>e.maxContentLength&&(r.destroy(),g(h("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n)))}),r.on("error",function(t){F.aborted||g(y(t,e,null,n))}),r.on("end",function(){var t=Buffer.concat(u);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding)),o.data=t,a(v,g,o)})}}});F.on("error",function(t){F.aborted||g(y(t,e,null,F))}),e.timeout&&F.setTimeout(e.timeout,function(){F.abort(),g(h("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",F))}),e.cancelToken&&e.cancelToken.promise.then(function(e){F.aborted||(F.abort(),g(e))}),n.isStream(P)?P.on("error",function(t){g(y(t,e,null,F))}).pipe(F):F.end(P)})}},function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("stream")},function(e,t,r){"undefined"==typeof process||"renderer"===process.type?e.exports=r(79):e.exports=r(81)},function(e,t,r){function n(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=r(35)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var a=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&"%c"===e&&(o=++a)}),e.splice(o,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=n,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(n())},function(e,t){var r=1e3,n=60*r,a=60*n,o=24*a,u=365.25*o;function i(e,t,r){if(!(e0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var i=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*u;case"days":case"day":case"d":return i*o;case"hours":case"hour":case"hrs":case"hr":case"h":return i*a;case"minutes":case"minute":case"mins":case"min":case"m":return i*n;case"seconds":case"second":case"secs":case"sec":case"s":return i*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}(e);if("number"===c&&!1===isNaN(e))return t.long?i(s=e,o,"day")||i(s,a,"hour")||i(s,n,"minute")||i(s,r,"second")||s+" ms":function(e){if(e>=o)return Math.round(e/o)+"d";if(e>=a)return Math.round(e/a)+"h";if(e>=n)return Math.round(e/n)+"m";if(e>=r)return Math.round(e/r)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,r){var n=r(82),a=r(83);(t=e.exports=r(35)).init=function(e){e.inspectOpts={};for(var r=Object.keys(t.inspectOpts),n=0;n=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function u(){return process.env.DEBUG}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)},t.enable(u())},function(e,t){e.exports=require("tty")},function(e,t){e.exports=require("util")},function(e,t,r){"use strict";const n=r(85),a=r(86),o=process.env;let u;function i(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===u)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(e&&!e.isTTY&&!0!==u)return 0;const t=u?1:0;if("win32"===process.platform){const e=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in o)||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)?1:"COLORTERM"in o?1:(o.TERM,t)}(e))}a("no-color")||a("no-colors")||a("color=false")?u=!1:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(u=!0),"FORCE_COLOR"in o&&(u=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:i,stdout:i(process.stdout),stderr:i(process.stderr)}},function(e,t){e.exports=require("os")},function(e,t,r){"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),a=t.indexOf("--");return-1!==n&&(-1===a||n= 8.0.0","npm":">= 6.0.0"},"browserslist":["> 1%","last 2 versions","not ie <= 10"]}')},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(5)),s=n(r(13)),c=n(r(4)),l=n(r(12)),f=n(r(24)),d=n(r(40)),p=n(r(11)),h=n(r(7)),y={create:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,s,f;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,c.default.Product.PRODUCT_NUMBER),r.setProperty(c.default.Product.PRODUCT_NUMBER,t),n.next=4,l.default.post(e,c.default.Licensee.ENDPOINT_PATH,r.asPropertiesMap());case 4:return u=n.sent,s=(0,o.default)(u.data.items.item,1),f=s[0],n.abrupt("return",(0,d.default)(f));case 8:case"end":return n.stop()}},n)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,s;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i.default.paramNotEmpty(t,c.default.NUMBER),r.next=3,l.default.get(e,"".concat(c.default.Licensee.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),s=u[0],r.abrupt("return",(0,d.default)(s));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(i.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[c.default.FILTER]="string"==typeof t?t:s.default.encode(t);case 5:return r.next=7,l.default.get(e,c.default.Licensee.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,p.default)(u.items.item.map(function(e){return(0,d.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,s,f;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,c.default.NUMBER),n.next=3,l.default.post(e,"".concat(c.default.Licensee.ENDPOINT_PATH,"/").concat(t),r.asPropertiesMap());case 3:return u=n.sent,s=(0,o.default)(u.data.items.item,1),f=s[0],n.abrupt("return",(0,d.default)(f));case 7:case"end":return n.stop()}},n)}))()},delete:function(e,t,r){i.default.paramNotEmpty(t,c.default.NUMBER);var n={forceCascade:Boolean(r)};return l.default.delete(e,"".concat(c.default.Licensee.ENDPOINT_PATH,"/").concat(t),n)},validate:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var o,u,s,d,p,y,m,v,g;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,c.default.NUMBER),o={},r.getProductNumber()&&(o.productNumber=r.getProductNumber()),r.getLicenseeName()&&(o.licenseeName=r.getLicenseeName()),r.getLicenseeSecret()&&(o.licenseeSecret=r.getLicenseeSecret()),u=0,s=r.getParameters(),d=Object.prototype.hasOwnProperty,Object.keys(s).forEach(function(e){if(o["".concat(c.default.ProductModule.PRODUCT_MODULE_NUMBER).concat(u)]=e,d.call(s,e)){var t=s[e];Object.keys(t).forEach(function(e){d.call(t,e)&&(o[e+u]=t[e])}),u+=1}}),n.next=11,l.default.post(e,"".concat(c.default.Licensee.ENDPOINT_PATH,"/").concat(t,"/").concat(c.default.Licensee.ENDPOINT_PATH_VALIDATE),o);case 11:return p=n.sent,y=p.data,m=y.items.item,v=y.ttl,(g=new f.default).setTtl(v),m.forEach(function(e){var t=(0,h.default)(e);g.setProductModuleValidation(t[c.default.ProductModule.PRODUCT_MODULE_NUMBER],t)}),n.abrupt("return",g);case 19:case"end":return n.stop()}},n)}))()},transfer:function(e,t,r){i.default.paramNotEmpty(t,c.default.NUMBER),i.default.paramNotEmpty(r,c.default.Licensee.SOURCE_LICENSEE_NUMBER);var n={sourceLicenseeNumber:r};return l.default.post(e,"".concat(c.default.Licensee.ENDPOINT_PATH,"/").concat(t,"/").concat(c.default.Licensee.ENDPOINT_PATH_TRANSFER),n)}};t.default=y},function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function s(e,t,r,n){var a=t&&t.prototype instanceof y?t:y,o=Object.create(a.prototype),u=new _(n||[]);return o._invoke=function(e,t,r){var n=l;return function(a,o){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===a)throw o;return C()}for(r.method=a,r.arg=o;;){var u=r.delegate;if(u){var i=O(u,r);if(i){if(i===h)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var s=c(e,t,r);if("normal"===s.type){if(n=r.done?p:f,s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=p,r.method="throw",r.arg=s.arg)}}}(e,r,u),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function y(){}function m(){}function v(){}var g={};g[o]=function(){return this};var P=Object.getPrototypeOf,b=P&&P(P(x([])));b&&b!==r&&n.call(b,o)&&(g=b);var E=v.prototype=y.prototype=Object.create(g);function T(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function N(e){var t;this._invoke=function(r,a){function o(){return new Promise(function(t,o){!function t(r,a,o,u){var i=c(e[r],e,a);if("throw"!==i.type){var s=i.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,o,u)},function(e){t("throw",e,o,u)}):Promise.resolve(l).then(function(e){s.value=e,o(s)},function(e){return t("throw",e,o,u)})}u(i.arg)}(r,a,t,o)})}return t=t?t.then(o,o):o()}}function O(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var a=c(n,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,h;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,u=function r(){for(;++a=0;--o){var u=this.tryEntries[o],i=u.completion;if("root"===u.tryLoc)return a("end");if(u.tryLoc<=this.prev){var s=n.call(u,"catchLoc"),c=n.call(u,"finallyLoc");if(s&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;w(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(a)throw o}}return r}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(5)),s=n(r(4)),c=n(r(12)),l=n(r(13)),f=n(r(43)),d=n(r(11)),p={create:function(e,t,r,n,l){return(0,u.default)(a.default.mark(function u(){var d,p,h;return a.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i.default.paramNotEmpty(t,s.default.Licensee.LICENSEE_NUMBER),i.default.paramNotEmpty(r,s.default.LicenseTemplate.LICENSE_TEMPLATE_NUMBER),l.setProperty(s.default.Licensee.LICENSEE_NUMBER,t),l.setProperty(s.default.LicenseTemplate.LICENSE_TEMPLATE_NUMBER,r),n&&l.setProperty(s.default.Transaction.TRANSACTION_NUMBER,n),a.next=7,c.default.post(e,s.default.License.ENDPOINT_PATH,l.asPropertiesMap());case 7:return d=a.sent,p=(0,o.default)(d.data.items.item,1),h=p[0],a.abrupt("return",(0,f.default)(h));case 11:case"end":return a.stop()}},u)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i.default.paramNotEmpty(t,s.default.NUMBER),r.next=3,c.default.get(e,"".concat(s.default.License.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(i.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[s.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,c.default.get(e,s.default.License.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r,n){return(0,u.default)(a.default.mark(function u(){var l,d,p;return a.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i.default.paramNotEmpty(t,s.default.NUMBER),r&&n.setProperty(s.default.Transaction.TRANSACTION_NUMBER,r),a.next=4,c.default.post(e,"".concat(s.default.License.ENDPOINT_PATH,"/").concat(t),n.asPropertiesMap());case 4:return l=a.sent,d=(0,o.default)(l.data.items.item,1),p=d[0],a.abrupt("return",(0,f.default)(p));case 8:case"end":return a.stop()}},u)}))()},delete:function(e,t,r){i.default.paramNotEmpty(t,s.default.NUMBER);var n={forceCascade:Boolean(r)};return c.default.delete(e,"".concat(s.default.License.ENDPOINT_PATH,"/").concat(t),n)}};t.default=p},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(5)),s=n(r(4)),c=n(r(12)),l=n(r(13)),f=n(r(44)),d=n(r(11)),p={create:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,s.default.ProductModule.PRODUCT_MODULE_NUMBER),r.setProperty(s.default.ProductModule.PRODUCT_MODULE_NUMBER,t),n.next=4,c.default.post(e,s.default.LicenseTemplate.ENDPOINT_PATH,r.asPropertiesMap());case 4:return u=n.sent,l=(0,o.default)(u.data.items.item,1),d=l[0],n.abrupt("return",(0,f.default)(d));case 8:case"end":return n.stop()}},n)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i.default.paramNotEmpty(t,s.default.NUMBER),r.next=3,c.default.get(e,"".concat(s.default.LicenseTemplate.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(i.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[s.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,c.default.get(e,s.default.LicenseTemplate.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d,p;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,s.default.NUMBER),u="".concat(s.default.LicenseTemplate.ENDPOINT_PATH,"/").concat(t),n.next=4,c.default.post(e,u,r.asPropertiesMap());case 4:return l=n.sent,d=(0,o.default)(l.data.items.item,1),p=d[0],n.abrupt("return",(0,f.default)(p));case 8:case"end":return n.stop()}},n)}))()},delete:function(e,t,r){i.default.paramNotEmpty(t,s.default.NUMBER);var n={forceCascade:Boolean(r)};return c.default.delete(e,"".concat(s.default.LicenseTemplate.ENDPOINT_PATH,"/").concat(t),n)}};t.default=p},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(4)),s=n(r(5)),c=n(r(12)),l=n(r(13)),f=n(r(46)),d=n(r(11)),p={get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return s.default.paramNotEmpty(t,i.default.NUMBER),r.next=3,c.default.get(e,"".concat(i.default.PaymentMethod.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(s.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[i.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,c.default.get(e,i.default.PaymentMethod.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d,p;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return s.default.paramNotEmpty(t,i.default.NUMBER),u="".concat(i.default.PaymentMethod.ENDPOINT_PATH,"/").concat(t),n.next=4,c.default.post(e,u,r.asPropertiesMap());case 4:return l=n.sent,d=(0,o.default)(l.data.items.item,1),p=d[0],n.abrupt("return",(0,f.default)(p));case 8:case"end":return n.stop()}},n)}))()}};t.default=p},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(5)),s=n(r(4)),c=n(r(12)),l=n(r(13)),f=n(r(48)),d=n(r(11)),p={create:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,s.default.Product.PRODUCT_NUMBER),r.setProperty(s.default.Product.PRODUCT_NUMBER,t),n.next=4,c.default.post(e,s.default.ProductModule.ENDPOINT_PATH,r.asPropertiesMap());case 4:return u=n.sent,l=(0,o.default)(u.data.items.item,1),d=l[0],n.abrupt("return",(0,f.default)(d));case 8:case"end":return n.stop()}},n)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i.default.paramNotEmpty(t,s.default.NUMBER),r.next=3,c.default.get(e,"".concat(s.default.ProductModule.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(i.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[s.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,c.default.get(e,s.default.ProductModule.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,s.default.NUMBER),n.next=3,c.default.post(e,"".concat(s.default.ProductModule.ENDPOINT_PATH,"/").concat(t),r.asPropertiesMap());case 3:return u=n.sent,l=(0,o.default)(u.data.items.item,1),d=l[0],n.abrupt("return",(0,f.default)(d));case 7:case"end":return n.stop()}},n)}))()},delete:function(e,t,r){i.default.paramNotEmpty(t,s.default.NUMBER);var n={forceCascade:Boolean(r)};return c.default.delete(e,"".concat(s.default.ProductModule.ENDPOINT_PATH,"/").concat(t),n)}};t.default=p},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(12)),s=n(r(4)),c=n(r(5)),l=n(r(13)),f=n(r(50)),d=n(r(11)),p={create:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,c;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,i.default.post(e,s.default.Product.ENDPOINT_PATH,t.asPropertiesMap());case 2:return n=r.sent,u=(0,o.default)(n.data.items.item,1),c=u[0],r.abrupt("return",(0,f.default)(c));case 6:case"end":return r.stop()}},r)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return c.default.paramNotEmpty(t,s.default.NUMBER),r.next=3,i.default.get(e,"".concat(s.default.Product.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(c.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[s.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,i.default.get(e,s.default.Product.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c.default.paramNotEmpty(t,s.default.NUMBER),n.next=3,i.default.post(e,"".concat(s.default.Product.ENDPOINT_PATH,"/").concat(t),r.asPropertiesMap());case 3:return u=n.sent,l=(0,o.default)(u.data.items.item,1),d=l[0],n.abrupt("return",(0,f.default)(d));case 7:case"end":return n.stop()}},n)}))()},delete:function(e,t,r){c.default.paramNotEmpty(t,s.default.NUMBER);var n={forceCascade:Boolean(r)};return i.default.delete(e,"".concat(s.default.Product.ENDPOINT_PATH,"/").concat(t),n)}};t.default=p},function(e,t,r){var n=r(107);function a(t,r,o){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=a=Reflect.get:e.exports=a=function(e,t,r){var a=n(e,t);if(a){var o=Object.getOwnPropertyDescriptor(a,t);return o.get?o.get.call(r):o.value}},a(t,r,o||t)}e.exports=a},function(e,t,r){var n=r(6);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(4)),s=n(r(12)),c=n(r(5)),l=n(r(13)),f=n(r(53)),d=n(r(11)),p={create:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,c;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s.default.post(e,i.default.Token.ENDPOINT_PATH,t.asPropertiesMap());case 2:return n=r.sent,u=(0,o.default)(n.data.items.item,1),c=u[0],r.abrupt("return",(0,f.default)(c));case 6:case"end":return r.stop()}},r)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return c.default.paramNotEmpty(t,i.default.NUMBER),r.next=3,s.default.get(e,"".concat(i.default.Token.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(c.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[i.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,s.default.get(e,i.default.Token.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},delete:function(e,t){return c.default.paramNotEmpty(t,i.default.NUMBER),s.default.delete(e,"".concat(i.default.Token.ENDPOINT_PATH,"/").concat(t))}};t.default=p},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(4)),s=n(r(12)),c=n(r(5)),l=n(r(13)),f=n(r(55)),d=n(r(11)),p={create:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,c;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s.default.post(e,i.default.Transaction.ENDPOINT_PATH,t.asPropertiesMap());case 2:return n=r.sent,u=(0,o.default)(n.data.items.item,1),c=u[0],r.abrupt("return",(0,f.default)(c));case 6:case"end":return r.stop()}},r)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return c.default.paramNotEmpty(t,i.default.NUMBER),r.next=3,s.default.get(e,"".concat(i.default.Transaction.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(c.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[i.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,s.default.get(e,i.default.Transaction.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c.default.paramNotEmpty(t,i.default.NUMBER),n.next=3,s.default.post(e,"".concat(i.default.Transaction.ENDPOINT_PATH,"/").concat(t),r.asPropertiesMap());case 3:return u=n.sent,l=(0,o.default)(u.data.items.item,1),d=l[0],n.abrupt("return",(0,f.default)(d));case 7:case"end":return n.stop()}},n)}))()}};t.default=p},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(16)),u=n(r(4)),i=n(r(12)),s=n(r(5)),c=n(r(13)),l=n(r(7)),f=n(r(11)),d=n(r(57)),p={listLicenseTypes:function(e){return(0,o.default)(a.default.mark(function t(){var r,n;return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.get(e,"".concat(u.default.Utility.ENDPOINT_PATH,"/").concat(u.default.Utility.ENDPOINT_PATH_LICENSE_TYPES));case 2:return r=t.sent,n=r.data,t.abrupt("return",(0,f.default)(n.items.item.map(function(e){return(0,l.default)(e)}),n.items.pagenumber,n.items.itemsnumber,n.items.totalpages,n.items.totalitems));case 5:case"end":return t.stop()}},t)}))()},listLicensingModels:function(e){return(0,o.default)(a.default.mark(function t(){var r,n;return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.get(e,"".concat(u.default.Utility.ENDPOINT_PATH,"/").concat(u.default.Utility.ENDPOINT_PATH_LICENSING_MODELS));case 2:return r=t.sent,n=r.data,t.abrupt("return",(0,f.default)(n.items.item.map(function(e){return(0,l.default)(e)}),n.items.pagenumber,n.items.itemsnumber,n.items.totalpages,n.items.totalitems));case 5:case"end":return t.stop()}},t)}))()},listCountries:function(e,t){return(0,o.default)(a.default.mark(function r(){var n,o,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(s.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[u.default.FILTER]="string"==typeof t?t:c.default.encode(t);case 5:return r.next=7,i.default.get(e,"".concat(u.default.Utility.ENDPOINT_PATH,"/").concat(u.default.Utility.ENDPOINT_PATH_COUNTRIES),n);case 7:return o=r.sent,l=o.data,r.abrupt("return",(0,f.default)(l.items.item.map(function(e){return(0,d.default)(e)}),l.items.pagenumber,l.items.itemsnumber,l.items.totalpages,l.items.totalitems));case 10:case"end":return r.stop()}},r)}))()}};t.default=p}])}); + */var c=new WeakMap,l=function(){function e(){(0,o.default)(this,e),c.set(this,{parameters:{}})}return(0,u.default)(e,[{key:"setProductNumber",value:function(e){return c.get(this).productNumber=e,this}},{key:"getProductNumber",value:function(){return c.get(this).productNumber}},{key:"setLicenseeName",value:function(e){return c.get(this).licenseeName=e,this}},{key:"getLicenseeName",value:function(){return c.get(this).licenseeName}},{key:"setLicenseeSecret",value:function(e){return c.get(this).licenseeSecret=e,this}},{key:"getLicenseeSecret",value:function(){return c.get(this).licenseeSecret}},{key:"getParameters",value:function(){return s({},c.get(this).parameters)}},{key:"getProductModuleValidationParameters",value:function(e){return s({},c.get(this).parameters[e])}},{key:"setProductModuleValidationParameters",value:function(e,t){var r=c.get(this).parameters;return void 0!==r[e]&&Object.keys(r[e]).length||(r[e]={}),r[e]=Object.assign(r[e],t),this}}]),e}();t.default=l},function(e,t,r){e.exports=r(63)},function(e,t,r){"use strict";var n=r(3),a=r(25),o=r(64),u=r(36);function i(e){var t=new o(e),r=a(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r}var s=i(r(27));s.Axios=o,s.create=function(e){return i(u(s.defaults,e))},s.Cancel=r(37),s.CancelToken=r(89),s.isCancel=r(26),s.all=function(e){return Promise.all(e)},s.spread=r(90),e.exports=s,e.exports.default=s},function(e,t,r){"use strict";var n=r(3),a=r(20),o=r(65),u=r(66),i=r(36);function s(e){this.defaults=e,this.interceptors={request:new o,response:new o}}s.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=i(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[u,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},s.prototype.getUri=function(e){return e=i(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){s.prototype[e]=function(t,r){return this.request(n.merge(r||{},{method:e,url:t}))}}),n.forEach(["post","put","patch"],function(e){s.prototype[e]=function(t,r,a){return this.request(n.merge(a||{},{method:e,url:t,data:r}))}}),e.exports=s},function(e,t,r){"use strict";var n=r(3);function a(){this.handlers=[]}a.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=a},function(e,t,r){"use strict";var n=r(3),a=r(67),o=r(26),u=r(27);function i(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return i(e),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||u.adapter)(e).then(function(t){return i(e),t.data=a(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(i(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,r){"use strict";var n=r(3);e.exports=function(e,t,r){return n.forEach(r,function(r){e=r(e,t)}),e}},function(e,t,r){"use strict";var n=r(3);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},function(e,t,r){"use strict";var n=r(3),a=r(28),o=r(20),u=r(30),i=r(72),s=r(73),c=r(21);e.exports=function(e){return new Promise(function(t,l){var f=e.data,d=e.headers;n.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",y=e.auth.password||"";d.Authorization="Basic "+btoa(h+":"+y)}var m=u(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),o(m,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?i(p.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};a(t,l,n),p=null}},p.onabort=function(){p&&(l(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){l(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),l(c(t,e,"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var v=r(74),g=(e.withCredentials||s(m))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&n.forEach(d,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),l(e),p=null)}),void 0===f&&(f=null),p.send(f)})}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";var n=r(3),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,u={};return e?(n.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(u[t]&&a.indexOf(t)>=0)return;u[t]="set-cookie"===t?(u[t]?u[t]:[]).concat([r]):u[t]?u[t]+", "+r:r}}),u):u}},function(e,t,r){"use strict";var n=r(3);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function a(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=a(window.location.href),function(t){var r=n.isString(t)?a(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(3);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,a,o,u){var i=[];i.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),n.isString(a)&&i.push("path="+a),n.isString(o)&&i.push("domain="+o),!0===u&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,r){"use strict";var n=r(3),a=r(28),o=r(30),u=r(20),i=r(31),s=r(32),c=r(33).http,l=r(33).https,f=r(34),d=r(87),p=r(88),h=r(21),y=r(29),m=/https:?/;e.exports=function(e){return new Promise(function(t,r){var v=function(e){t(e)},g=function(e){r(e)},P=e.data,b=e.headers;if(b["User-Agent"]||b["user-agent"]||(b["User-Agent"]="axios/"+p.version),P&&!n.isStream(P)){if(Buffer.isBuffer(P));else if(n.isArrayBuffer(P))P=Buffer.from(new Uint8Array(P));else{if(!n.isString(P))return g(h("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));P=Buffer.from(P,"utf-8")}b["Content-Length"]=P.length}var E=void 0;e.auth&&(E=(e.auth.username||"")+":"+(e.auth.password||""));var T=o(e.baseURL,e.url),N=f.parse(T),O=N.protocol||"http:";if(!E&&N.auth){var k=N.auth.split(":");E=(k[0]||"")+":"+(k[1]||"")}E&&delete b.Authorization;var w=m.test(O),_=w?e.httpsAgent:e.httpAgent,x={path:u(N.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:b,agent:_,agents:{http:e.httpAgent,https:e.httpsAgent},auth:E};e.socketPath?x.socketPath=e.socketPath:(x.hostname=N.hostname,x.port=N.port);var C,L=e.proxy;if(!L&&!1!==L){var R=O.slice(0,-1)+"_proxy",A=process.env[R]||process.env[R.toUpperCase()];if(A){var M=f.parse(A),I=process.env.no_proxy||process.env.NO_PROXY,S=!0;if(I)S=!I.split(",").map(function(e){return e.trim()}).some(function(e){return!!e&&("*"===e||("."===e[0]&&N.hostname.substr(N.hostname.length-e.length)===e||N.hostname===e))});if(S&&(L={host:M.hostname,port:M.port},M.auth)){var j=M.auth.split(":");L.auth={username:j[0],password:j[1]}}}}if(L&&(x.hostname=L.host,x.host=L.host,x.headers.host=N.hostname+(N.port?":"+N.port:""),x.port=L.port,x.path=O+"//"+N.hostname+(N.port?":"+N.port:"")+x.path,L.auth)){var D=Buffer.from(L.auth.username+":"+L.auth.password,"utf8").toString("base64");x.headers["Proxy-Authorization"]="Basic "+D}var U=w&&(!L||m.test(L.protocol));e.transport?C=e.transport:0===e.maxRedirects?C=U?s:i:(e.maxRedirects&&(x.maxRedirects=e.maxRedirects),C=U?l:c),e.maxContentLength&&e.maxContentLength>-1&&(x.maxBodyLength=e.maxContentLength);var F=C.request(x,function(t){if(!F.aborted){var r=t;switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=204===t.statusCode?r:r.pipe(d.createUnzip()),delete t.headers["content-encoding"]}var n=t.req||F,o={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:n};if("stream"===e.responseType)o.data=r,a(v,g,o);else{var u=[];r.on("data",function(t){u.push(t),e.maxContentLength>-1&&Buffer.concat(u).length>e.maxContentLength&&(r.destroy(),g(h("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n)))}),r.on("error",function(t){F.aborted||g(y(t,e,null,n))}),r.on("end",function(){var t=Buffer.concat(u);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding)),o.data=t,a(v,g,o)})}}});F.on("error",function(t){F.aborted||g(y(t,e,null,F))}),e.timeout&&F.setTimeout(e.timeout,function(){F.abort(),g(h("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",F))}),e.cancelToken&&e.cancelToken.promise.then(function(e){F.aborted||(F.abort(),g(e))}),n.isStream(P)?P.on("error",function(t){g(y(t,e,null,F))}).pipe(F):F.end(P)})}},function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("stream")},function(e,t,r){"undefined"==typeof process||"renderer"===process.type?e.exports=r(79):e.exports=r(81)},function(e,t,r){function n(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=r(35)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var a=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&"%c"===e&&(o=++a)}),e.splice(o,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=n,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(n())},function(e,t){var r=1e3,n=60*r,a=60*n,o=24*a,u=365.25*o;function i(e,t,r){if(!(e0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var i=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*u;case"days":case"day":case"d":return i*o;case"hours":case"hour":case"hrs":case"hr":case"h":return i*a;case"minutes":case"minute":case"mins":case"min":case"m":return i*n;case"seconds":case"second":case"secs":case"sec":case"s":return i*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}(e);if("number"===c&&!1===isNaN(e))return t.long?i(s=e,o,"day")||i(s,a,"hour")||i(s,n,"minute")||i(s,r,"second")||s+" ms":function(e){if(e>=o)return Math.round(e/o)+"d";if(e>=a)return Math.round(e/a)+"h";if(e>=n)return Math.round(e/n)+"m";if(e>=r)return Math.round(e/r)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,r){var n=r(82),a=r(83);(t=e.exports=r(35)).init=function(e){e.inspectOpts={};for(var r=Object.keys(t.inspectOpts),n=0;n=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function u(){return process.env.DEBUG}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)},t.enable(u())},function(e,t){e.exports=require("tty")},function(e,t){e.exports=require("util")},function(e,t,r){"use strict";const n=r(85),a=r(86),o=process.env;let u;function i(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===u)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(e&&!e.isTTY&&!0!==u)return 0;const t=u?1:0;if("win32"===process.platform){const e=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in o)||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)?1:"COLORTERM"in o?1:(o.TERM,t)}(e))}a("no-color")||a("no-colors")||a("color=false")?u=!1:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(u=!0),"FORCE_COLOR"in o&&(u=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:i,stdout:i(process.stdout),stderr:i(process.stderr)}},function(e,t){e.exports=require("os")},function(e,t,r){"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),a=t.indexOf("--");return-1!==n&&(-1===a||n= 8.0.0","npm":">= 6.0.0"},"browserslist":["> 1%","last 2 versions","not ie <= 10"]}')},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(5)),s=n(r(13)),c=n(r(4)),l=n(r(12)),f=n(r(24)),d=n(r(40)),p=n(r(11)),h=n(r(7)),y={create:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,s,f;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,c.default.Product.PRODUCT_NUMBER),r.setProperty(c.default.Product.PRODUCT_NUMBER,t),n.next=4,l.default.post(e,c.default.Licensee.ENDPOINT_PATH,r.asPropertiesMap());case 4:return u=n.sent,s=(0,o.default)(u.data.items.item,1),f=s[0],n.abrupt("return",(0,d.default)(f));case 8:case"end":return n.stop()}},n)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,s;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i.default.paramNotEmpty(t,c.default.NUMBER),r.next=3,l.default.get(e,"".concat(c.default.Licensee.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),s=u[0],r.abrupt("return",(0,d.default)(s));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(i.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[c.default.FILTER]="string"==typeof t?t:s.default.encode(t);case 5:return r.next=7,l.default.get(e,c.default.Licensee.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,p.default)(u.items.item.map(function(e){return(0,d.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,s,f;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,c.default.NUMBER),n.next=3,l.default.post(e,"".concat(c.default.Licensee.ENDPOINT_PATH,"/").concat(t),r.asPropertiesMap());case 3:return u=n.sent,s=(0,o.default)(u.data.items.item,1),f=s[0],n.abrupt("return",(0,d.default)(f));case 7:case"end":return n.stop()}},n)}))()},delete:function(e,t,r){i.default.paramNotEmpty(t,c.default.NUMBER);var n={forceCascade:Boolean(r)};return l.default.delete(e,"".concat(c.default.Licensee.ENDPOINT_PATH,"/").concat(t),n)},validate:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var o,u,s,d,p,y,m,v,g;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,c.default.NUMBER),o={},r.getProductNumber()&&(o.productNumber=r.getProductNumber()),r.getLicenseeName()&&(o.licenseeName=r.getLicenseeName()),r.getLicenseeSecret()&&(o.licenseeSecret=r.getLicenseeSecret()),u=0,s=r.getParameters(),d=Object.prototype.hasOwnProperty,Object.keys(s).forEach(function(e){if(o["".concat(c.default.ProductModule.PRODUCT_MODULE_NUMBER).concat(u)]=e,d.call(s,e)){var t=s[e];Object.keys(t).forEach(function(e){d.call(t,e)&&(o[e+u]=t[e])}),u+=1}}),n.next=11,l.default.post(e,"".concat(c.default.Licensee.ENDPOINT_PATH,"/").concat(t,"/").concat(c.default.Licensee.ENDPOINT_PATH_VALIDATE),o);case 11:return p=n.sent,y=p.data,m=y.items.item,v=y.ttl,(g=new f.default).setTtl(v),m.forEach(function(e){var t=(0,h.default)(e);g.setProductModuleValidation(t[c.default.ProductModule.PRODUCT_MODULE_NUMBER],t)}),n.abrupt("return",g);case 19:case"end":return n.stop()}},n)}))()},transfer:function(e,t,r){i.default.paramNotEmpty(t,c.default.NUMBER),i.default.paramNotEmpty(r,c.default.Licensee.SOURCE_LICENSEE_NUMBER);var n={sourceLicenseeNumber:r};return l.default.post(e,"".concat(c.default.Licensee.ENDPOINT_PATH,"/").concat(t,"/").concat(c.default.Licensee.ENDPOINT_PATH_TRANSFER),n)}};t.default=y},function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function s(e,t,r,n){var a=t&&t.prototype instanceof y?t:y,o=Object.create(a.prototype),u=new _(n||[]);return o._invoke=function(e,t,r){var n=l;return function(a,o){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===a)throw o;return C()}for(r.method=a,r.arg=o;;){var u=r.delegate;if(u){var i=O(u,r);if(i){if(i===h)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var s=c(e,t,r);if("normal"===s.type){if(n=r.done?p:f,s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=p,r.method="throw",r.arg=s.arg)}}}(e,r,u),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function y(){}function m(){}function v(){}var g={};g[o]=function(){return this};var P=Object.getPrototypeOf,b=P&&P(P(x([])));b&&b!==r&&n.call(b,o)&&(g=b);var E=v.prototype=y.prototype=Object.create(g);function T(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function N(e){var t;this._invoke=function(r,a){function o(){return new Promise(function(t,o){!function t(r,a,o,u){var i=c(e[r],e,a);if("throw"!==i.type){var s=i.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,o,u)},function(e){t("throw",e,o,u)}):Promise.resolve(l).then(function(e){s.value=e,o(s)},function(e){return t("throw",e,o,u)})}u(i.arg)}(r,a,t,o)})}return t=t?t.then(o,o):o()}}function O(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var a=c(n,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,h;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,u=function r(){for(;++a=0;--o){var u=this.tryEntries[o],i=u.completion;if("root"===u.tryLoc)return a("end");if(u.tryLoc<=this.prev){var s=n.call(u,"catchLoc"),c=n.call(u,"finallyLoc");if(s&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;w(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(a)throw o}}return r}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(5)),s=n(r(4)),c=n(r(12)),l=n(r(13)),f=n(r(43)),d=n(r(11)),p={create:function(e,t,r,n,l){return(0,u.default)(a.default.mark(function u(){var d,p,h;return a.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i.default.paramNotEmpty(t,s.default.Licensee.LICENSEE_NUMBER),i.default.paramNotEmpty(r,s.default.LicenseTemplate.LICENSE_TEMPLATE_NUMBER),l.setProperty(s.default.Licensee.LICENSEE_NUMBER,t),l.setProperty(s.default.LicenseTemplate.LICENSE_TEMPLATE_NUMBER,r),n&&l.setProperty(s.default.Transaction.TRANSACTION_NUMBER,n),a.next=7,c.default.post(e,s.default.License.ENDPOINT_PATH,l.asPropertiesMap());case 7:return d=a.sent,p=(0,o.default)(d.data.items.item,1),h=p[0],a.abrupt("return",(0,f.default)(h));case 11:case"end":return a.stop()}},u)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i.default.paramNotEmpty(t,s.default.NUMBER),r.next=3,c.default.get(e,"".concat(s.default.License.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(i.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[s.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,c.default.get(e,s.default.License.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r,n){return(0,u.default)(a.default.mark(function u(){var l,d,p;return a.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i.default.paramNotEmpty(t,s.default.NUMBER),r&&n.setProperty(s.default.Transaction.TRANSACTION_NUMBER,r),a.next=4,c.default.post(e,"".concat(s.default.License.ENDPOINT_PATH,"/").concat(t),n.asPropertiesMap());case 4:return l=a.sent,d=(0,o.default)(l.data.items.item,1),p=d[0],a.abrupt("return",(0,f.default)(p));case 8:case"end":return a.stop()}},u)}))()},delete:function(e,t,r){i.default.paramNotEmpty(t,s.default.NUMBER);var n={forceCascade:Boolean(r)};return c.default.delete(e,"".concat(s.default.License.ENDPOINT_PATH,"/").concat(t),n)}};t.default=p},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(5)),s=n(r(4)),c=n(r(12)),l=n(r(13)),f=n(r(44)),d=n(r(11)),p={create:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,s.default.ProductModule.PRODUCT_MODULE_NUMBER),r.setProperty(s.default.ProductModule.PRODUCT_MODULE_NUMBER,t),n.next=4,c.default.post(e,s.default.LicenseTemplate.ENDPOINT_PATH,r.asPropertiesMap());case 4:return u=n.sent,l=(0,o.default)(u.data.items.item,1),d=l[0],n.abrupt("return",(0,f.default)(d));case 8:case"end":return n.stop()}},n)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i.default.paramNotEmpty(t,s.default.NUMBER),r.next=3,c.default.get(e,"".concat(s.default.LicenseTemplate.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(i.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[s.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,c.default.get(e,s.default.LicenseTemplate.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d,p;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,s.default.NUMBER),u="".concat(s.default.LicenseTemplate.ENDPOINT_PATH,"/").concat(t),n.next=4,c.default.post(e,u,r.asPropertiesMap());case 4:return l=n.sent,d=(0,o.default)(l.data.items.item,1),p=d[0],n.abrupt("return",(0,f.default)(p));case 8:case"end":return n.stop()}},n)}))()},delete:function(e,t,r){i.default.paramNotEmpty(t,s.default.NUMBER);var n={forceCascade:Boolean(r)};return c.default.delete(e,"".concat(s.default.LicenseTemplate.ENDPOINT_PATH,"/").concat(t),n)}};t.default=p},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(4)),s=n(r(5)),c=n(r(12)),l=n(r(13)),f=n(r(46)),d=n(r(11)),p={get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return s.default.paramNotEmpty(t,i.default.NUMBER),r.next=3,c.default.get(e,"".concat(i.default.PaymentMethod.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(s.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[i.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,c.default.get(e,i.default.PaymentMethod.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d,p;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return s.default.paramNotEmpty(t,i.default.NUMBER),u="".concat(i.default.PaymentMethod.ENDPOINT_PATH,"/").concat(t),n.next=4,c.default.post(e,u,r.asPropertiesMap());case 4:return l=n.sent,d=(0,o.default)(l.data.items.item,1),p=d[0],n.abrupt("return",(0,f.default)(p));case 8:case"end":return n.stop()}},n)}))()}};t.default=p},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(5)),s=n(r(4)),c=n(r(12)),l=n(r(13)),f=n(r(48)),d=n(r(11)),p={create:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,s.default.Product.PRODUCT_NUMBER),r.setProperty(s.default.Product.PRODUCT_NUMBER,t),n.next=4,c.default.post(e,s.default.ProductModule.ENDPOINT_PATH,r.asPropertiesMap());case 4:return u=n.sent,l=(0,o.default)(u.data.items.item,1),d=l[0],n.abrupt("return",(0,f.default)(d));case 8:case"end":return n.stop()}},n)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i.default.paramNotEmpty(t,s.default.NUMBER),r.next=3,c.default.get(e,"".concat(s.default.ProductModule.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(i.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[s.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,c.default.get(e,s.default.ProductModule.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i.default.paramNotEmpty(t,s.default.NUMBER),n.next=3,c.default.post(e,"".concat(s.default.ProductModule.ENDPOINT_PATH,"/").concat(t),r.asPropertiesMap());case 3:return u=n.sent,l=(0,o.default)(u.data.items.item,1),d=l[0],n.abrupt("return",(0,f.default)(d));case 7:case"end":return n.stop()}},n)}))()},delete:function(e,t,r){i.default.paramNotEmpty(t,s.default.NUMBER);var n={forceCascade:Boolean(r)};return c.default.delete(e,"".concat(s.default.ProductModule.ENDPOINT_PATH,"/").concat(t),n)}};t.default=p},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(12)),s=n(r(4)),c=n(r(5)),l=n(r(13)),f=n(r(50)),d=n(r(11)),p={create:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,c;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,i.default.post(e,s.default.Product.ENDPOINT_PATH,t.asPropertiesMap());case 2:return n=r.sent,u=(0,o.default)(n.data.items.item,1),c=u[0],r.abrupt("return",(0,f.default)(c));case 6:case"end":return r.stop()}},r)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return c.default.paramNotEmpty(t,s.default.NUMBER),r.next=3,i.default.get(e,"".concat(s.default.Product.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(c.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[s.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,i.default.get(e,s.default.Product.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c.default.paramNotEmpty(t,s.default.NUMBER),n.next=3,i.default.post(e,"".concat(s.default.Product.ENDPOINT_PATH,"/").concat(t),r.asPropertiesMap());case 3:return u=n.sent,l=(0,o.default)(u.data.items.item,1),d=l[0],n.abrupt("return",(0,f.default)(d));case 7:case"end":return n.stop()}},n)}))()},delete:function(e,t,r){c.default.paramNotEmpty(t,s.default.NUMBER);var n={forceCascade:Boolean(r)};return i.default.delete(e,"".concat(s.default.Product.ENDPOINT_PATH,"/").concat(t),n)}};t.default=p},function(e,t,r){var n=r(107);function a(t,r,o){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=a=Reflect.get:e.exports=a=function(e,t,r){var a=n(e,t);if(a){var o=Object.getOwnPropertyDescriptor(a,t);return o.get?o.get.call(r):o.value}},a(t,r,o||t)}e.exports=a},function(e,t,r){var n=r(6);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e}},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(4)),s=n(r(12)),c=n(r(5)),l=n(r(13)),f=n(r(53)),d=n(r(11)),p={create:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,c;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s.default.post(e,i.default.Token.ENDPOINT_PATH,t.asPropertiesMap());case 2:return n=r.sent,u=(0,o.default)(n.data.items.item,1),c=u[0],r.abrupt("return",(0,f.default)(c));case 6:case"end":return r.stop()}},r)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return c.default.paramNotEmpty(t,i.default.NUMBER),r.next=3,s.default.get(e,"".concat(i.default.Token.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(c.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[i.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,s.default.get(e,i.default.Token.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},delete:function(e,t){return c.default.paramNotEmpty(t,i.default.NUMBER),s.default.delete(e,"".concat(i.default.Token.ENDPOINT_PATH,"/").concat(t))}};t.default=p},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(15)),u=n(r(16)),i=n(r(4)),s=n(r(12)),c=n(r(5)),l=n(r(13)),f=n(r(55)),d=n(r(11)),p={create:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,c;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s.default.post(e,i.default.Transaction.ENDPOINT_PATH,t.asPropertiesMap());case 2:return n=r.sent,u=(0,o.default)(n.data.items.item,1),c=u[0],r.abrupt("return",(0,f.default)(c));case 6:case"end":return r.stop()}},r)}))()},get:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,u,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return c.default.paramNotEmpty(t,i.default.NUMBER),r.next=3,s.default.get(e,"".concat(i.default.Transaction.ENDPOINT_PATH,"/").concat(t));case 3:return n=r.sent,u=(0,o.default)(n.data.items.item,1),l=u[0],r.abrupt("return",(0,f.default)(l));case 7:case"end":return r.stop()}},r)}))()},list:function(e,t){return(0,u.default)(a.default.mark(function r(){var n,o,u;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(c.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[i.default.FILTER]="string"==typeof t?t:l.default.encode(t);case 5:return r.next=7,s.default.get(e,i.default.Transaction.ENDPOINT_PATH,n);case 7:return o=r.sent,u=o.data,r.abrupt("return",(0,d.default)(u.items.item.map(function(e){return(0,f.default)(e)}),u.items.pagenumber,u.items.itemsnumber,u.items.totalpages,u.items.totalitems));case 10:case"end":return r.stop()}},r)}))()},update:function(e,t,r){return(0,u.default)(a.default.mark(function n(){var u,l,d;return a.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c.default.paramNotEmpty(t,i.default.NUMBER),n.next=3,s.default.post(e,"".concat(i.default.Transaction.ENDPOINT_PATH,"/").concat(t),r.asPropertiesMap());case 3:return u=n.sent,l=(0,o.default)(u.data.items.item,1),d=l[0],n.abrupt("return",(0,f.default)(d));case 7:case"end":return n.stop()}},n)}))()}};t.default=p},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(14)),o=n(r(16)),u=n(r(4)),i=n(r(12)),s=n(r(5)),c=n(r(13)),l=n(r(7)),f=n(r(11)),d=n(r(57)),p={listLicenseTypes:function(e){return(0,o.default)(a.default.mark(function t(){var r,n;return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.get(e,"".concat(u.default.Utility.ENDPOINT_PATH,"/").concat(u.default.Utility.ENDPOINT_PATH_LICENSE_TYPES));case 2:return r=t.sent,n=r.data,t.abrupt("return",(0,f.default)(n.items.item.map(function(e){return(0,l.default)(e)}),n.items.pagenumber,n.items.itemsnumber,n.items.totalpages,n.items.totalitems));case 5:case"end":return t.stop()}},t)}))()},listLicensingModels:function(e){return(0,o.default)(a.default.mark(function t(){var r,n;return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.default.get(e,"".concat(u.default.Utility.ENDPOINT_PATH,"/").concat(u.default.Utility.ENDPOINT_PATH_LICENSING_MODELS));case 2:return r=t.sent,n=r.data,t.abrupt("return",(0,f.default)(n.items.item.map(function(e){return(0,l.default)(e)}),n.items.pagenumber,n.items.itemsnumber,n.items.totalpages,n.items.totalitems));case 5:case"end":return t.stop()}},t)}))()},listCountries:function(e,t){return(0,o.default)(a.default.mark(function r(){var n,o,l;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={},!t){r.next=5;break}if(s.default.isValid(t)){r.next=4;break}throw new TypeError("filter has bad value ".concat(t));case 4:n[u.default.FILTER]="string"==typeof t?t:c.default.encode(t);case 5:return r.next=7,i.default.get(e,"".concat(u.default.Utility.ENDPOINT_PATH,"/").concat(u.default.Utility.ENDPOINT_PATH_COUNTRIES),n);case 7:return o=r.sent,l=o.data,r.abrupt("return",(0,f.default)(l.items.item.map(function(e){return(0,d.default)(e)}),l.items.pagenumber,l.items.itemsnumber,l.items.totalpages,l.items.totalitems));case 10:case"end":return r.stop()}},r)}))()}};t.default=p}])}); //# sourceMappingURL=netlicensing-client.node.min.js.map \ No newline at end of file diff --git a/dist/netlicensing-client.node.min.js.map b/dist/netlicensing-client.node.min.js.map index 2965d6c..d98380a 100644 --- a/dist/netlicensing-client.node.min.js.map +++ b/dist/netlicensing-client.node.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://NetLicensing/webpack/universalModuleDefinition","webpack://NetLicensing/webpack/bootstrap","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/createClass.js","webpack://NetLicensing/./node_modules/axios/lib/utils.js","webpack://NetLicensing/./src/Constants.js","webpack://NetLicensing/./src/util/CheckUtils.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://NetLicensing/./src/converters/itemToObject.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/inherits.js","webpack://NetLicensing/./src/entities/BaseEntity.js","webpack://NetLicensing/./src/vo/Page.js","webpack://NetLicensing/./src/services/Service.js","webpack://NetLicensing/./src/util/FilterUtils.js","webpack://NetLicensing/./node_modules/@babel/runtime/regenerator/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/asyncToGenerator.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/typeof.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://NetLicensing/./src/entities/License.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/buildURL.js","webpack://NetLicensing/./node_modules/axios/lib/core/createError.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://NetLicensing/./src/entities/LicenseTransactionJoin.js","webpack://NetLicensing/./src/vo/ValidationResults.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/bind.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/isCancel.js","webpack://NetLicensing/./node_modules/axios/lib/defaults.js","webpack://NetLicensing/./node_modules/axios/lib/core/settle.js","webpack://NetLicensing/./node_modules/axios/lib/core/enhanceError.js","webpack://NetLicensing/./node_modules/axios/lib/core/buildFullPath.js","webpack://NetLicensing/external \"http\"","webpack://NetLicensing/external \"https\"","webpack://NetLicensing/./node_modules/follow-redirects/index.js","webpack://NetLicensing/external \"url\"","webpack://NetLicensing/./node_modules/follow-redirects/node_modules/debug/src/debug.js","webpack://NetLicensing/./node_modules/axios/lib/core/mergeConfig.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/Cancel.js","webpack://NetLicensing/./src/errors/NlicError.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://NetLicensing/./src/converters/itemToLicensee.js","webpack://NetLicensing/./src/entities/Licensee.js","webpack://NetLicensing/./src/util/CastsUtils.js","webpack://NetLicensing/./src/converters/itemToLicense.js","webpack://NetLicensing/./src/converters/itemToLicenseTemplate.js","webpack://NetLicensing/./src/entities/LicenseTemplate.js","webpack://NetLicensing/./src/converters/itemToPaymentMethod.js","webpack://NetLicensing/./src/entities/PaymentMethod.js","webpack://NetLicensing/./src/converters/itemToProductModule.js","webpack://NetLicensing/./src/entities/ProductModule.js","webpack://NetLicensing/./src/converters/itemToProduct.js","webpack://NetLicensing/./src/entities/Product.js","webpack://NetLicensing/./src/entities/ProductDiscount.js","webpack://NetLicensing/./src/converters/itemToToken.js","webpack://NetLicensing/./src/entities/Token.js","webpack://NetLicensing/./src/converters/itemToTransaction.js","webpack://NetLicensing/./src/entities/Transaction.js","webpack://NetLicensing/./src/converters/itemToCountry.js","webpack://NetLicensing/./src/entities/Country.js","webpack://NetLicensing/./src/index.js","webpack://NetLicensing/./src/vo/Context.js","webpack://NetLicensing/./src/vo/ValidationParameters.js","webpack://NetLicensing/./node_modules/axios/index.js","webpack://NetLicensing/./node_modules/axios/lib/axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/Axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/InterceptorManager.js","webpack://NetLicensing/./node_modules/axios/lib/core/dispatchRequest.js","webpack://NetLicensing/./node_modules/axios/lib/core/transformData.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://NetLicensing/./node_modules/axios/lib/adapters/xhr.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/combineURLs.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/cookies.js","webpack://NetLicensing/./node_modules/axios/lib/adapters/http.js","webpack://NetLicensing/external \"assert\"","webpack://NetLicensing/external \"stream\"","webpack://NetLicensing/./node_modules/follow-redirects/node_modules/debug/src/index.js","webpack://NetLicensing/./node_modules/follow-redirects/node_modules/debug/src/browser.js","webpack://NetLicensing/./node_modules/follow-redirects/node_modules/ms/index.js","webpack://NetLicensing/./node_modules/follow-redirects/node_modules/debug/src/node.js","webpack://NetLicensing/external \"tty\"","webpack://NetLicensing/external \"util\"","webpack://NetLicensing/./node_modules/supports-color/index.js","webpack://NetLicensing/external \"os\"","webpack://NetLicensing/./node_modules/has-flag/index.js","webpack://NetLicensing/external \"zlib\"","webpack://NetLicensing/./node_modules/axios/lib/cancel/CancelToken.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/spread.js","webpack://NetLicensing/./node_modules/btoa/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/isNativeFunction.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/construct.js","webpack://NetLicensing/./src/services/LicenseeService.js","webpack://NetLicensing/./node_modules/regenerator-runtime/runtime.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://NetLicensing/./src/services/LicenseService.js","webpack://NetLicensing/./src/services/LicenseTemplateService.js","webpack://NetLicensing/./src/services/PaymentMethodService.js","webpack://NetLicensing/./src/services/ProductModuleService.js","webpack://NetLicensing/./src/services/ProductService.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/get.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/superPropBase.js","webpack://NetLicensing/./src/services/TokenService.js","webpack://NetLicensing/./src/services/TransactionService.js","webpack://NetLicensing/./src/services/UtilityService.js"],"names":["root","factory","exports","module","define","amd","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","obj","default","instance","Constructor","TypeError","_defineProperties","target","props","length","descriptor","configurable","writable","protoProps","staticProps","toString","isArray","val","isUndefined","isObject","isFunction","forEach","fn","isArrayBuffer","isBuffer","constructor","isFormData","FormData","isArrayBufferView","ArrayBuffer","isView","buffer","isString","isNumber","isDate","isFile","isBlob","isStream","pipe","isURLSearchParams","URLSearchParams","isStandardBrowserEnv","navigator","product","window","document","merge","result","assignValue","arguments","deepMerge","extend","a","b","thisArg","trim","str","replace","BASIC_AUTHENTICATION","APIKEY_IDENTIFICATION","ANONYMOUS_IDENTIFICATION","ACTIVE","NUMBER","NAME","VERSION","DELETED","CASCADE","PRICE","DISCOUNT","CURRENCY","IN_USE","FILTER","BASE_URL","USERNAME","PASSWORD","SECURITY_MODE","LicensingModel","VALID","TryAndBuy","Rental","RED_THRESHOLD","YELLOW_THRESHOLD","Subscription","Floating","MultiFeature","PayPerUse","PricingTable","Quota","NodeLocked","Vendor","VENDOR_NUMBER","VENDOR_TYPE","Product","ENDPOINT_PATH","PRODUCT_NUMBER","LICENSEE_AUTO_CREATE","DESCRIPTION","LICENSING_INFO","DISCOUNTS","PROP_LICENSEE_SECRET_MODE","PROP_VAT_MODE","Discount","TOTAL_PRICE","AMOUNT_FIX","AMOUNT_PERCENT","LicenseeSecretMode","DISABLED","PREDEFINED","CLIENT","ProductModule","PRODUCT_MODULE_NUMBER","PRODUCT_MODULE_NAME","LICENSING_MODEL","LicenseTemplate","LICENSE_TEMPLATE_NUMBER","LICENSE_TYPE","AUTOMATIC","HIDDEN","HIDE_LICENSES","PROP_LICENSEE_SECRET","LicenseType","FEATURE","TIMEVOLUME","FLOATING","QUANTITY","Token","EXPIRATION_TIME","TOKEN_TYPE","API_KEY","TOKEN_PROP_EMAIL","TOKEN_PROP_VENDORNUMBER","TOKEN_PROP_SHOP_URL","Type","DEFAULT","SHOP","APIKEY","Transaction","TRANSACTION_NUMBER","GRAND_TOTAL","STATUS","SOURCE","DATE_CREATED","DATE_CLOSED","VAT","VAT_MODE","LICENSE_TRANSACTION_JOIN","SOURCE_SHOP_ONLY","Status","CANCELLED","CLOSED","PENDING","Licensee","ENDPOINT_PATH_VALIDATE","ENDPOINT_PATH_TRANSFER","LICENSEE_NUMBER","SOURCE_LICENSEE_NUMBER","PROP_LICENSEE_NAME","PROP_MARKED_FOR_TRANSFER","License","LICENSE_NUMBER","PaymentMethod","Utility","ENDPOINT_PATH_LICENSE_TYPES","ENDPOINT_PATH_LICENSING_MODELS","ENDPOINT_PATH_COUNTRIES","LICENSING_MODEL_PROPERTIES","ROLE_APIKEY_LICENSEE","ROLE_APIKEY_ANALYTICS","ROLE_APIKEY_OPERATION","ROLE_APIKEY_MAINTENANCE","ROLE_APIKEY_ADMIN","isValid","valid","undefined","Number","isFinite","isNaN","paramNotNull","parameter","parameterName","concat","paramNotEmpty","_getPrototypeOf","setPrototypeOf","getPrototypeOf","__proto__","itemToObject","item","list","Array","push","_typeof","assertThisInitialized","self","subClass","superClass","_CheckUtils","_interopRequireDefault","_CastsUtils","propertiesMap","WeakMap","definedMap","castsMap","BaseEntity","_ref","properties","casts","_classCallCheck2","set","setProperties","CheckUtils","_typeof2","castedValue","cast","setProperty","_this","removeProperties","has","keys","def","_objectSpread","removeDefine","_this2","removeProperty","Boolean","hasDefine","descriptors","getProperty","_this3","getProperties","customProperties","content","pageNumber","itemsNumber","totalPages","totalItems","paginator","getContent","getPageNumber","getItemsNumber","getTotalPages","getTotalItems","hasNext","paginatorKeys","Proxy","indexOf","_axios","_btoa","_Constants","_NlicError","_package","httpXHR","axiosInstance","Service","axios","instanse","context","urlTemplate","queryParams","request","method","template","String","params","toLowerCase","Error","getBaseUrl","url","encodeURI","responseType","headers","Accept","transformRequest","data","toQueryString","pkg","version","process","getSecurityMode","Constants","getUsername","getPassword","auth","username","password","getApiKey","Authorization","getAxiosInstance","then","response","catch","e","error","NlicError","config","code","info","getInfo","message","infos","RegExp","test","prefix","query","k","v","Date","toISOString","encodeURIComponent","join","FILTER_DELIMITER","FILTER_PAIR_DELIMITER","encode","filter","decode","split","_v$split","_v$split2","_slicedToArray2","arrayWithHoles","iterableToArrayLimit","nonIterableRest","arr","asyncGeneratorStep","gen","resolve","reject","_next","_throw","arg","done","Promise","args","apply","err","iterator","_possibleConstructorReturn2","_getPrototypeOf2","number","active","price","hidden","parentfeature","timeVolume","startDate","inUse","utils","paramsSerializer","serializedParams","parts","JSON","stringify","hashmarkIndex","slice","enhanceError","_setPrototypeOf","LicenseTransactionJoin","transaction","license","vr","ValidationResults","validators","productModuleNumber","productModuleValidation","ttl","getValidators","__CANCEL__","normalizeHeaderName","DEFAULT_CONTENT_TYPE","Content-Type","setContentTypeIfUnset","adapter","defaults","XMLHttpRequest","transformResponse","parse","timeout","xsrfCookieName","xsrfHeaderName","maxContentLength","validateStatus","status","common","createError","isAxiosError","toJSON","description","fileName","lineNumber","columnNumber","stack","isAbsoluteURL","combineURLs","baseURL","requestedURL","require","http","https","assert","Writable","debug","SAFE_METHODS","GET","HEAD","OPTIONS","TRACE","eventHandlers","RedirectableRequest","options","responseCallback","_options","_redirectCount","_redirects","_requestBodyLength","_requestBodyBuffers","host","hostname","on","_onNativeResponse","_processResponse","pathname","path","searchPos","substring","search","_performRequest","wrap","protocols","maxRedirects","maxBodyLength","nativeProtocols","scheme","protocol","nativeProtocol","wrappedProtocol","callback","assign","equal","end","event","_redirectable","emit","write","encoding","_currentRequest","abort","currentRequest","setHeader","removeHeader","agents","substr","agent","_currentUrl","format","_isRedirect","buffers","writeNext","trackRedirects","statusCode","location","followRedirects","header","redirectUrl","destroy","responseUrl","redirects","createDebug","namespace","prevTime","enabled","curr","ms","diff","prev","coerce","unshift","index","match","formatter","formatters","splice","formatArgs","log","console","useColors","color","hash","charCodeAt","colors","Math","abs","selectColor","init","instances","disable","enable","namespaces","save","names","skips","len","humanize","config1","config2","valueFromConfig2Keys","mergeDeepPropertiesKeys","defaultToConfig2Keys","prop","axiosKeys","otherKeys","Cancel","_len","_key","_getPrototypeOf3","isNlicError","ReferenceError","_itemToObject","_Licensee","licenseeSecret","markedForTransfer","parseInt","parseFloat","_License","_LicenseTemplate","licenseType","currency","automatic","hideLicenses","gracePeriod","timeVolumePeriod","maxSessions","quantity","_PaymentMethod","paypal.subject","paypalSubject","_ProductModule","licensingModel","maxCheckoutValidity","yellowThreshold","redThreshold","licenseTemplate","licenseeSecretMode","_Product","discounts","discount","setProductDiscounts","_BaseEntity2","_ProductDiscount","discountsMap","discountsTouched","licensingInfo","licenseeAutoCreate","_assertThisInitialized2","productDiscount","ProductDiscount","addDiscount","_get2","map","totalPrice","amountFix","amountPercent","getTotalPrice","getCurrency","amount","getAmountFix","getAmountPercent","_Token","expirationTime","vendorNumber","tokenType","licenseeNumber","successURL","successURLTitle","cancelURL","cancelURLTitle","shopURL","role","setApiKeyRole","getApiKeyRole","apiKeyRole","_Transaction","_LicenseTransactionJoin","licenseTransactionJoin","joins","setLicense","setTransaction","setLicenseTransactionJoins","source","grandTotal","dateCreated","dateClosed","paymentMethod","licenseTransactionJoins","_Country","Country","vatPercent","isEu","vat","_Context","_Page","_ValidationParameters","_ValidationResults","_Service","_LicenseeService","_LicenseService","_LicenseTemplateService","_PaymentMethodService","_ProductModuleService","_ProductService","_TokenService","_TransactionService","_UtilityService","_BaseEntity","_itemToCountry","_itemToLicense","_itemToLicensee","_itemToLicenseTemplate","_itemToPaymentMethod","_itemToProduct","_itemToProductModule","_itemToToken","_itemToTransaction","_FilterUtils","NetLicensing","Context","Page","ValidationParameters","LicenseeService","LicenseService","LicenseTemplateService","PaymentMethodService","ProductModuleService","ProductService","TokenService","TransactionService","UtilityService","itemToCountry","itemToLicense","itemToLicensee","itemToLicenseTemplate","itemToPaymentMethod","itemToProduct","itemToProductModule","itemToToken","itemToTransaction","CastsUtils","FilterUtils","valuesMap","defaultsMap","values","baseUrl","securityMode","setValues","setValue","getValue","apiKey","copedValue","removeValues","removeValue","onlyGetter","vpMap","parameters","productNumber","licenseeName","productModuleParameters","Axios","mergeConfig","createInstance","defaultConfig","instanceConfig","CancelToken","isCancel","all","promises","spread","buildURL","InterceptorManager","dispatchRequest","interceptors","chain","promise","interceptor","fulfilled","rejected","shift","getUri","handlers","use","eject","id","h","transformData","throwIfCancellationRequested","cancelToken","throwIfRequested","reason","fns","normalizedName","toUpperCase","settle","buildFullPath","parseHeaders","isURLSameOrigin","requestData","requestHeaders","btoa","fullPath","open","onreadystatechange","readyState","responseURL","responseHeaders","getAllResponseHeaders","responseText","statusText","onabort","onerror","ontimeout","timeoutErrorMessage","cookies","xsrfValue","withCredentials","read","setRequestHeader","onDownloadProgress","addEventListener","onUploadProgress","upload","cancel","send","relativeURL","ignoreDuplicateOf","parsed","line","originURL","msie","userAgent","urlParsingNode","createElement","resolveURL","href","setAttribute","port","charAt","requestURL","expires","domain","secure","cookie","toGMTString","decodeURIComponent","remove","now","httpFollow","httpsFollow","zlib","isHttps","resolvePromise","rejectPromise","Buffer","from","Uint8Array","urlAuth","isHttpsRequest","httpsAgent","httpAgent","socketPath","transport","proxy","proxyEnv","proxyUrl","env","parsedProxyUrl","noProxyEnv","no_proxy","NO_PROXY","shouldProxy","some","proxyElement","proxyUrlAuth","base64","isHttpsProxy","req","res","aborted","stream","createUnzip","lastRequest","statusMessage","responseBuffer","chunk","responseData","responseEncoding","setTimeout","type","load","storage","DEBUG","Function","lastC","removeItem","documentElement","style","WebkitAppearance","firebug","exception","table","$1","chrome","local","localStorage","localstorage","j","y","plural","floor","ceil","exec","long","round","fmtShort","tty","util","inspectOpts","stderr","colorCode","hideDate","isatty","fd","supportsColor","level","reduce","_","inspect","O","os","hasFlag","forceColor","getSupportLevel","hasBasic","has256","has16m","translateLevel","isTTY","min","platform","osRelease","release","versions","node","sign","CI_NAME","TEAMCITY_VERSION","COLORTERM","TERM_PROGRAM_VERSION","TERM_PROGRAM","TERM","FORCE_COLOR","stdout","flag","argv","startsWith","pos","terminatorPos","executor","token","isNativeFunction","construct","_wrapNativeSuper","Class","_cache","Map","Wrapper","_construct","Parent","Reflect","sham","isNativeReflectConstruct","licensee","_asyncToGenerator2","_regenerator","mark","_callee","_ref$data$items$item","_context","next","post","asPropertiesMap","sent","items","abrupt","stop","_callee2","_ref2","_ref2$data$items$item","_context2","_callee3","_ref3","_context3","pagenumber","itemsnumber","totalpages","totalitems","update","_callee4","_ref4","_ref4$data$items$item","_context4","delete","forceCascade","validate","validationParameters","_callee5","pmIndex","_ref5","_ref5$data","validationResults","_context5","getProductNumber","getLicenseeName","getLicenseeSecret","getParameters","productModuleName","setTtl","setProductModuleValidation","transfer","sourceLicenseeNumber","runtime","Op","hasOwn","$Symbol","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","_invoke","state","GenStateSuspendedStart","GenStateExecuting","GenStateCompleted","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","_sent","dispatchException","record","tryCatch","GenStateSuspendedYield","makeInvokeMethod","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","NativeIteratorPrototype","Gp","defineIteratorMethods","AsyncIterator","previousPromise","callInvokeWithMethodAndArg","invoke","__await","unwrapped","resultName","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","iterable","iteratorMethod","displayName","isGeneratorFunction","genFun","ctor","awrap","async","iter","reverse","pop","skipTempReset","rootRecord","rval","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","_arr","_n","_d","_e","_s","_i","licenseTemplateNumber","transactionNumber","_ref3$data$items$item","productModule","superPropBase","_get","receiver","base","desc","getOwnPropertyDescriptor","listLicenseTypes","listLicensingModels","listCountries"],"mappings":"CAAA,SAAAA,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,Q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SAAAe,IAAA,IAAA9nB,EAAA+nB,EAAAhnB,EAAA,OAAA+lB,EAAA92B,QAAAwa,KAAA,SAAAwd,GAAA,cAAAA,EAAAza,KAAAya,EAAAb,MAAA,UAC3BnnB,MAEFuD,EAH6B,CAAAykB,EAAAb,KAAA,WAIxBnqB,UAAWvC,QAAQ8I,GAJK,CAAAykB,EAAAb,KAAA,cAKnB,IAAIh3B,UAAJ,wBAAA+K,OAAsCqI,IALnB,OAO7BvD,EAAYqB,UAAUhN,QAA4B,iBAAXkP,EAAsBA,EAAS6U,UAAY9U,OAAOC,GAP5D,cAAAykB,EAAAb,KAAA,EAUVxnB,UAClB/Q,IACGkR,EAFe,GAAA5E,OAGZmG,UAAUtH,QAAQpE,cAHN,KAAAuF,OAGuBmG,UAAUtH,QAAQG,yBACxD8F,GAdyB,cAAA+nB,EAAAC,EAAAV,KAUzBvmB,EAVyBgnB,EAUzBhnB,KAVyBinB,EAAAR,OAAA,UAiB1B,EAAAnS,EAAArlB,SACH+Q,EAAKwmB,MAAM9rB,KAAKkX,IAAI,SAAC5P,GAAD,OAAO,EAAAoT,EAAAnmB,SAAc+S,KACzChC,EAAKwmB,MAAMU,WACXlnB,EAAKwmB,MAAMW,YACXnnB,EAAKwmB,MAAMY,WACXpnB,EAAKwmB,MAAMa,aAtBkB,yBAAAJ,EAAAP,SAAAK,KAAA","file":"netlicensing-client.node.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"NetLicensing\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"NetLicensing\"] = factory();\n\telse\n\t\troot[\"NetLicensing\"] = factory();\n})(this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 59);\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","'use strict';\n\nvar bind = require('./helpers/bind');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = merge(result[key], val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Function equal to merge with the difference being that no reference\n * to original objects is kept.\n *\n * @see merge\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction deepMerge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = deepMerge(result[key], val);\n } else if (typeof val === 'object') {\n result[key] = deepMerge({}, val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n deepMerge: deepMerge,\n extend: extend,\n trim: trim\n};\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nexport default {\r\n BASIC_AUTHENTICATION: 'BASIC_AUTH',\r\n APIKEY_IDENTIFICATION: 'APIKEY',\r\n ANONYMOUS_IDENTIFICATION: 'ANONYMOUS',\r\n\r\n ACTIVE: 'active',\r\n NUMBER: 'number',\r\n NAME: 'name',\r\n VERSION: 'version',\r\n DELETED: 'deleted',\r\n CASCADE: 'forceCascade',\r\n PRICE: 'price',\r\n DISCOUNT: 'discount',\r\n CURRENCY: 'currency',\r\n IN_USE: 'inUse',\r\n FILTER: 'filter',\r\n BASE_URL: 'baseUrl',\r\n USERNAME: 'username',\r\n PASSWORD: 'password',\r\n SECURITY_MODE: 'securityMode',\r\n\r\n LicensingModel: {\r\n VALID: 'valid',\r\n TryAndBuy: {\r\n NAME: 'TryAndBuy',\r\n },\r\n Rental: {\r\n NAME: 'Rental',\r\n RED_THRESHOLD: 'redThreshold',\r\n YELLOW_THRESHOLD: 'yellowThreshold',\r\n },\r\n Subscription: {\r\n NAME: 'Subscription',\r\n },\r\n Floating: {\r\n NAME: 'Floating',\r\n },\r\n MultiFeature: {\r\n NAME: 'MultiFeature',\r\n },\r\n PayPerUse: {\r\n NAME: 'PayPerUse',\r\n },\r\n PricingTable: {\r\n NAME: 'PricingTable',\r\n },\r\n Quota: {\r\n NAME: 'Quota',\r\n },\r\n NodeLocked: {\r\n NAME: 'NodeLocked',\r\n },\r\n },\r\n\r\n Vendor: {\r\n VENDOR_NUMBER: 'vendorNumber',\r\n VENDOR_TYPE: 'Vendor',\r\n },\r\n\r\n Product: {\r\n ENDPOINT_PATH: 'product',\r\n PRODUCT_NUMBER: 'productNumber',\r\n LICENSEE_AUTO_CREATE: 'licenseeAutoCreate',\r\n DESCRIPTION: 'description',\r\n LICENSING_INFO: 'licensingInfo',\r\n DISCOUNTS: 'discounts',\r\n /**\r\n * @deprecated use ProductModule.PROP_LICENSEE_SECRET_MODE instead\r\n */\r\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\r\n PROP_VAT_MODE: 'vatMode',\r\n\r\n Discount: {\r\n TOTAL_PRICE: 'totalPrice',\r\n AMOUNT_FIX: 'amountFix',\r\n AMOUNT_PERCENT: 'amountPercent',\r\n },\r\n\r\n LicenseeSecretMode: {\r\n /**\r\n * @deprecated DISABLED mode is deprecated\r\n */\r\n DISABLED: 'DISABLED',\r\n PREDEFINED: 'PREDEFINED',\r\n CLIENT: 'CLIENT',\r\n },\r\n },\r\n\r\n ProductModule: {\r\n ENDPOINT_PATH: 'productmodule',\r\n PRODUCT_MODULE_NUMBER: 'productModuleNumber',\r\n PRODUCT_MODULE_NAME: 'productModuleName',\r\n LICENSING_MODEL: 'licensingModel',\r\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\r\n },\r\n\r\n LicenseTemplate: {\r\n ENDPOINT_PATH: 'licensetemplate',\r\n LICENSE_TEMPLATE_NUMBER: 'licenseTemplateNumber',\r\n LICENSE_TYPE: 'licenseType',\r\n AUTOMATIC: 'automatic',\r\n HIDDEN: 'hidden',\r\n HIDE_LICENSES: 'hideLicenses',\r\n PROP_LICENSEE_SECRET: 'licenseeSecret',\r\n LicenseType: {\r\n FEATURE: 'FEATURE',\r\n TIMEVOLUME: 'TIMEVOLUME',\r\n FLOATING: 'FLOATING',\r\n QUANTITY: 'QUANTITY',\r\n },\r\n },\r\n\r\n Token: {\r\n ENDPOINT_PATH: 'token',\r\n EXPIRATION_TIME: 'expirationTime',\r\n TOKEN_TYPE: 'tokenType',\r\n API_KEY: 'apiKey',\r\n TOKEN_PROP_EMAIL: 'email',\r\n TOKEN_PROP_VENDORNUMBER: 'vendorNumber',\r\n TOKEN_PROP_SHOP_URL: 'shopURL',\r\n Type: {\r\n DEFAULT: 'DEFAULT',\r\n SHOP: 'SHOP',\r\n APIKEY: 'APIKEY',\r\n },\r\n },\r\n\r\n Transaction: {\r\n ENDPOINT_PATH: 'transaction',\r\n TRANSACTION_NUMBER: 'transactionNumber',\r\n GRAND_TOTAL: 'grandTotal',\r\n STATUS: 'status',\r\n SOURCE: 'source',\r\n DATE_CREATED: 'datecreated',\r\n DATE_CLOSED: 'dateclosed',\r\n VAT: 'vat',\r\n VAT_MODE: 'vatMode',\r\n LICENSE_TRANSACTION_JOIN: 'licenseTransactionJoin',\r\n SOURCE_SHOP_ONLY: 'shopOnly',\r\n /**\r\n * @deprecated\r\n */\r\n Status: {\r\n CANCELLED: 'CANCELLED',\r\n CLOSED: 'CLOSED',\r\n PENDING: 'PENDING',\r\n },\r\n },\r\n\r\n Licensee: {\r\n ENDPOINT_PATH: 'licensee',\r\n ENDPOINT_PATH_VALIDATE: 'validate',\r\n ENDPOINT_PATH_TRANSFER: 'transfer',\r\n LICENSEE_NUMBER: 'licenseeNumber',\r\n SOURCE_LICENSEE_NUMBER: 'sourceLicenseeNumber',\r\n PROP_LICENSEE_NAME: 'licenseeName',\r\n /**\r\n * @deprecated use License.PROP_LICENSEE_SECRET\r\n */\r\n PROP_LICENSEE_SECRET: 'licenseeSecret',\r\n PROP_MARKED_FOR_TRANSFER: 'markedForTransfer',\r\n },\r\n\r\n License: {\r\n ENDPOINT_PATH: 'license',\r\n LICENSE_NUMBER: 'licenseNumber',\r\n HIDDEN: 'hidden',\r\n PROP_LICENSEE_SECRET: 'licenseeSecret',\r\n },\r\n\r\n PaymentMethod: {\r\n ENDPOINT_PATH: 'paymentmethod',\r\n },\r\n\r\n Utility: {\r\n ENDPOINT_PATH: 'utility',\r\n ENDPOINT_PATH_LICENSE_TYPES: 'licenseTypes',\r\n ENDPOINT_PATH_LICENSING_MODELS: 'licensingModels',\r\n ENDPOINT_PATH_COUNTRIES: 'countries',\r\n LICENSING_MODEL_PROPERTIES: 'LicensingModelProperties',\r\n LICENSE_TYPE: 'LicenseType',\r\n },\r\n\r\n APIKEY: {\r\n ROLE_APIKEY_LICENSEE: 'ROLE_APIKEY_LICENSEE',\r\n ROLE_APIKEY_ANALYTICS: 'ROLE_APIKEY_ANALYTICS',\r\n ROLE_APIKEY_OPERATION: 'ROLE_APIKEY_OPERATION',\r\n ROLE_APIKEY_MAINTENANCE: 'ROLE_APIKEY_MAINTENANCE',\r\n ROLE_APIKEY_ADMIN: 'ROLE_APIKEY_ADMIN',\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nexport default {\r\n isValid(value) {\r\n let valid = (value !== undefined && typeof value !== 'function');\r\n if (typeof value === 'number') valid = Number.isFinite(value) && !Number.isNaN(value);\r\n return valid;\r\n },\r\n\r\n paramNotNull(parameter, parameterName) {\r\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\r\n if (parameter === null) throw new TypeError(`Parameter ${parameterName} cannot be null`);\r\n },\r\n\r\n paramNotEmpty(parameter, parameterName) {\r\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\r\n if (!parameter) throw new TypeError(`Parameter ${parameterName} cannot be null or empty string`);\r\n },\r\n};\r\n","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","const itemToObject = (item) => {\r\n const object = {};\r\n const { property, list } = item;\r\n\r\n if (property && Array.isArray(property)) {\r\n property.forEach((p) => {\r\n const { name, value } = p;\r\n if (name) object[name] = value;\r\n });\r\n }\r\n\r\n if (list && Array.isArray(list)) {\r\n list.forEach((l) => {\r\n const { name } = l;\r\n if (name) {\r\n object[name] = object[name] || [];\r\n object[name].push(itemToObject(l));\r\n }\r\n });\r\n }\r\n\r\n return object;\r\n};\r\n\r\nexport default itemToObject;\r\n","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport CastsUtils from '../util/CastsUtils';\r\n\r\n/**\r\n * The entity properties.\r\n * @type {{}}\r\n * @private\r\n */\r\nconst propertiesMap = new WeakMap();\r\n\r\n/**\r\n * List of properties that was defined\r\n * @type {{}}\r\n * @private\r\n */\r\n\r\nconst definedMap = new WeakMap();\r\n\r\n/**\r\n * List of properties that need be casts\r\n * @type {{}}\r\n * @private\r\n */\r\nconst castsMap = new WeakMap();\r\n\r\nexport default class BaseEntity {\r\n constructor({ properties, casts }) {\r\n propertiesMap.set(this, {});\r\n definedMap.set(this, {});\r\n castsMap.set(this, casts || []);\r\n\r\n if (properties) {\r\n this.setProperties(properties);\r\n }\r\n }\r\n\r\n /**\r\n * Set a given property on the entity.\r\n * @param property\r\n * @param value\r\n * @returns {BaseEntity}\r\n */\r\n setProperty(property, value) {\r\n // if property name has bad native type\r\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\r\n throw new TypeError(`Bad property name:${property}`);\r\n }\r\n\r\n const castedValue = this.cast(property, value);\r\n\r\n // define to property\r\n this.define(property);\r\n\r\n // save property to propertiesMap\r\n const properties = propertiesMap.get(this);\r\n properties[property] = castedValue;\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Alias for setProperty\r\n * @param property\r\n * @param value\r\n * @returns {BaseEntity}\r\n */\r\n addProperty(property, value) {\r\n return this.setProperty(property, value);\r\n }\r\n\r\n /**\r\n * Set the entity properties.\r\n * @param properties\r\n * @returns {BaseEntity}\r\n */\r\n setProperties(properties) {\r\n this.removeProperties();\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(properties).forEach((key) => {\r\n if (has.call(properties, key)) {\r\n this.setProperty(key, properties[key]);\r\n }\r\n });\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Check if we has property\r\n * @param property\r\n * @protected\r\n */\r\n hasProperty(property) {\r\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property);\r\n }\r\n\r\n /**\r\n * Get an property from the entity.\r\n * @param property\r\n * @param def\r\n * @returns {*}\r\n */\r\n getProperty(property, def) {\r\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property)\r\n ? propertiesMap.get(this)[property]\r\n : def;\r\n }\r\n\r\n /**\r\n * Get all of the current properties on the entity.\r\n */\r\n getProperties() {\r\n return { ...propertiesMap.get(this) };\r\n }\r\n\r\n /**\r\n * Remove property\r\n * @param property\r\n * @returns {BaseEntity}\r\n */\r\n removeProperty(property) {\r\n const properties = propertiesMap.get(this);\r\n delete properties[property];\r\n this.removeDefine(property);\r\n return this;\r\n }\r\n\r\n /**\r\n * Remove properties\r\n * @param properties\r\n */\r\n removeProperties(properties) {\r\n const propertiesForRemove = properties || Object.keys(propertiesMap.get(this));\r\n\r\n propertiesForRemove.forEach((property) => {\r\n this.removeProperty(property);\r\n });\r\n }\r\n\r\n cast(property, value) {\r\n if (!castsMap.get(this)[property]) return value;\r\n\r\n return CastsUtils(castsMap.get(this)[property], value);\r\n }\r\n\r\n /**\r\n * Check if property has defined\r\n * @param property\r\n * @protected\r\n */\r\n hasDefine(property) {\r\n return Boolean(definedMap.get(this)[property]);\r\n }\r\n\r\n /**\r\n * Define property getter and setter\r\n * @param property\r\n * @protected\r\n */\r\n define(property) {\r\n if (this.hasDefine(property)) return;\r\n\r\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\r\n throw new TypeError(`Bad property name:${property}`);\r\n }\r\n\r\n const self = this;\r\n\r\n // delete property\r\n delete this[property];\r\n\r\n const descriptors = {\r\n enumerable: true,\r\n configurable: true,\r\n get() {\r\n return self.getProperty(property);\r\n },\r\n\r\n set(value) {\r\n self.setProperty(property, value);\r\n },\r\n };\r\n\r\n const defined = definedMap.get(this);\r\n defined[property] = true;\r\n\r\n Object.defineProperty(this, property, descriptors);\r\n }\r\n\r\n /**\r\n * Remove property getter and setter\r\n * @param property\r\n * @protected\r\n */\r\n removeDefine(property) {\r\n if (!this.hasDefine(property)) return;\r\n\r\n const defined = definedMap.get(this);\r\n delete defined[property];\r\n\r\n delete this[property];\r\n }\r\n\r\n /**\r\n * Get properties map\r\n */\r\n asPropertiesMap() {\r\n const properties = this.getProperties();\r\n const customProperties = {};\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(this).forEach((key) => {\r\n if (!has.call(this, key)) return;\r\n\r\n customProperties[key] = this[key];\r\n });\r\n\r\n return { ...customProperties, ...properties };\r\n }\r\n}\r\n","export default (content = [], pageNumber = 0, itemsNumber = 0, totalPages = 0, totalItems = 0) => {\r\n const paginator = {\r\n getContent() {\r\n return content;\r\n },\r\n\r\n getPageNumber() {\r\n return pageNumber;\r\n },\r\n\r\n getItemsNumber() {\r\n return itemsNumber;\r\n },\r\n\r\n getTotalPages() {\r\n return totalPages;\r\n },\r\n\r\n getTotalItems() {\r\n return totalItems;\r\n },\r\n\r\n hasNext() {\r\n return (totalPages > pageNumber + 1);\r\n },\r\n };\r\n\r\n const paginatorKeys = Object.keys(paginator);\r\n\r\n return new Proxy(content, {\r\n get(target, key) {\r\n if (paginatorKeys.indexOf(key) !== -1) {\r\n return paginator[key];\r\n }\r\n return target[key];\r\n },\r\n });\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nimport axios from 'axios';\r\nimport btoa from 'btoa';\r\nimport Constants from '../Constants';\r\nimport NlicError from '../errors/NlicError';\r\nimport pkg from '../../package.json';\r\n\r\nlet httpXHR = {};\r\nlet axiosInstance = null;\r\n\r\nexport default class Service {\r\n static getAxiosInstance() {\r\n return axiosInstance || axios;\r\n }\r\n\r\n static setAxiosInstance(instanse) {\r\n axiosInstance = instanse;\r\n }\r\n\r\n static getLastHttpRequestInfo() {\r\n return httpXHR;\r\n }\r\n\r\n /**\r\n * Helper method for performing GET request to N\r\n etLicensing API services. Finds and returns first suitable item with\r\n * type resultType from the response.\r\n *\r\n * Context for the NetLicensing API call\r\n * @param context\r\n *\r\n * the REST URL template\r\n * @param urlTemplate\r\n *\r\n * The REST query parameters values. May be null if there are no parameters.\r\n * @param queryParams\r\n *\r\n * @returns {Promise}\r\n */\r\n static get(context, urlTemplate, queryParams) {\r\n return Service.request(context, 'get', urlTemplate, queryParams);\r\n }\r\n\r\n /**\r\n * Helper method for performing POST request to NetLicensing API services. Finds and returns first suitable item\r\n * with type resultType from the response.\r\n *\r\n * context for the NetLicensing API call\r\n * @param context\r\n *\r\n * the REST URL template\r\n * @param urlTemplate\r\n *\r\n * The REST query parameters values. May be null if there are no parameters.\r\n * @param queryParams\r\n *\r\n * @returns {Promise}\r\n */\r\n static post(context, urlTemplate, queryParams) {\r\n return Service.request(context, 'post', urlTemplate, queryParams);\r\n }\r\n\r\n /**\r\n *\r\n * @param context\r\n * @param urlTemplate\r\n * @param queryParams\r\n * @returns {Promise}\r\n */\r\n static delete(context, urlTemplate, queryParams) {\r\n return Service.request(context, 'delete', urlTemplate, queryParams);\r\n }\r\n\r\n /**\r\n * Send request to NetLicensing RestApi\r\n * @param context\r\n * @param method\r\n * @param urlTemplate\r\n * @param queryParams\r\n * @returns {Promise}\r\n */\r\n static request(context, method, urlTemplate, queryParams) {\r\n const template = String(urlTemplate);\r\n const params = queryParams || {};\r\n\r\n if (!template) throw new TypeError('Url template must be specified');\r\n\r\n // validate http method\r\n if (['get', 'post', 'delete'].indexOf(method.toLowerCase()) < 0) {\r\n throw new Error(`Invalid request type:${method}, allowed requests types: GET, POST, DELETE.`);\r\n }\r\n\r\n // validate context\r\n if (!context.getBaseUrl(null)) {\r\n throw new Error('Base url must be specified');\r\n }\r\n\r\n const request = {\r\n url: encodeURI(`${context.getBaseUrl()}/${template}`),\r\n method: method.toLowerCase(),\r\n responseType: 'json',\r\n headers: {\r\n Accept: 'application/json',\r\n },\r\n transformRequest: [(data, headers) => {\r\n if (headers['Content-Type'] === 'application/x-www-form-urlencoded') {\r\n return Service.toQueryString(data);\r\n }\r\n\r\n if (!headers['NetLicensing-Origin']) {\r\n // eslint-disable-next-line no-param-reassign\r\n headers['NetLicensing-Origin'] = `NetLicensing/Javascript ${pkg.version}`;\r\n }\r\n return data;\r\n }],\r\n };\r\n\r\n // only node.js has a process variable that is of [[Class]] process\r\n if (!typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\r\n request.headers['User-agent'] = `NetLicensing/Javascript ${pkg.version}/node&${process.version}`;\r\n }\r\n\r\n if (['put', 'post', 'patch'].indexOf(request.method) >= 0) {\r\n if (request.method === 'post') {\r\n request.headers['Content-Type'] = 'application/x-www-form-urlencoded';\r\n }\r\n request.data = params;\r\n } else {\r\n request.params = params;\r\n }\r\n\r\n switch (context.getSecurityMode()) {\r\n // Basic Auth\r\n case Constants.BASIC_AUTHENTICATION:\r\n if (!context.getUsername()) throw new Error('Missing parameter \"username\"');\r\n if (!context.getPassword()) throw new Error('Missing parameter \"password\"');\r\n\r\n request.auth = {\r\n username: context.getUsername(),\r\n password: context.getPassword(),\r\n };\r\n break;\r\n // ApiKey Auth\r\n case Constants.APIKEY_IDENTIFICATION:\r\n if (!context.getApiKey()) throw new Error('Missing parameter \"apiKey\"');\r\n\r\n request.headers.Authorization = `Basic ${btoa(`apiKey:${context.getApiKey()}`)}`;\r\n break;\r\n // without authorization\r\n case Constants.ANONYMOUS_IDENTIFICATION:\r\n break;\r\n default:\r\n throw new Error('Unknown security mode');\r\n }\r\n\r\n return Service.getAxiosInstance()(request)\r\n .then((response) => {\r\n httpXHR = response;\r\n return response;\r\n })\r\n .catch((e) => {\r\n httpXHR = e;\r\n\r\n if (e.response) {\r\n // The request was made and the server responded with a status code\r\n // that falls out of the range of 2xx\r\n\r\n const error = new NlicError(e);\r\n\r\n error.config = e.config;\r\n error.code = e.code;\r\n error.request = e.request;\r\n error.response = e.response;\r\n\r\n // The request was made and the server responded with a status code\r\n // that falls out of the range of 2xx\r\n const { data } = e.response;\r\n\r\n if (data) {\r\n const info = Service.getInfo(e.response, [])[0] || {};\r\n error.message = info.value || 'Unknown';\r\n }\r\n\r\n throw error;\r\n }\r\n\r\n throw e;\r\n });\r\n }\r\n\r\n static getInfo(response, def) {\r\n try {\r\n return response.data.infos.info || def;\r\n } catch (e) {\r\n return def;\r\n }\r\n }\r\n\r\n static isValidUrl(url) {\r\n const pattern = new RegExp('^(https?:\\\\/\\\\/)?' // protocol\r\n + '((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.?)+[a-z]{2,}|' // domain name\r\n + '((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))' // OR ip (v4) address\r\n + '(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*' // port and path\r\n + '(\\\\?[;&a-z\\\\d%_.~+=-]*)?' // query string\r\n + '(\\\\#[-a-z\\\\d_]*)?$', 'i'); // fragment locator\r\n\r\n return pattern.test(url);\r\n }\r\n\r\n static toQueryString(data, prefix) {\r\n const query = [];\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(data)\r\n .forEach((key) => {\r\n if (has.call(data, key)) {\r\n const k = prefix ? `${prefix}[${key}]` : key;\r\n let v = data[key];\r\n v = (v instanceof Date) ? v.toISOString() : v;\r\n query.push((v !== null && typeof v === 'object')\r\n ? Service.toQueryString(v, k)\r\n : `${encodeURIComponent(k)}=${encodeURIComponent(v)}`);\r\n }\r\n });\r\n\r\n return query.join('&')\r\n .replace(/%5B[0-9]+%5D=/g, '=');\r\n }\r\n}\r\n","export default {\r\n FILTER_DELIMITER: ';',\r\n FILTER_PAIR_DELIMITER: '=',\r\n encode(filter = {}) {\r\n const query = [];\r\n const has = Object.prototype.hasOwnProperty;\r\n Object.keys(filter).forEach((key) => {\r\n if (has.call(filter, key)) {\r\n query.push(`${key}${this.FILTER_PAIR_DELIMITER}${filter[key]}`);\r\n }\r\n });\r\n return query.join(this.FILTER_DELIMITER);\r\n },\r\n decode(query = '') {\r\n const filter = {};\r\n query.split(this.FILTER_DELIMITER).forEach((v) => {\r\n const [name, value] = v.split(this.FILTER_PAIR_DELIMITER);\r\n filter[name] = value;\r\n });\r\n return filter;\r\n },\r\n};\r\n","module.exports = require(\"regenerator-runtime\");\n","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * License entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products/licensees of a vendor) that identifies the license. Vendor can\r\n * assign this number when creating a license or let NetLicensing generate one. Read-only after corresponding creation\r\n * transaction status is set to closed.\r\n * @property string number\r\n *\r\n * Name for the licensed item. Set from license template on creation, if not specified explicitly.\r\n * @property string name\r\n *\r\n * If set to false, the license is disabled. License can be re-enabled, but as long as it is disabled,\r\n * the license is excluded from the validation process.\r\n * @property boolean active\r\n *\r\n * price for the license. If >0, it must always be accompanied by the currency specification. Read-only,\r\n * set from license template on creation.\r\n * @property float price\r\n *\r\n * specifies currency for the license price. Check data types to discover which currencies are\r\n * supported. Read-only, set from license template on creation.\r\n * @property string currency\r\n *\r\n * If set to true, this license is not shown in NetLicensing Shop as purchased license. Set from license\r\n * template on creation, if not specified explicitly.\r\n * @property boolean $hidden\r\n *\r\n * @property string startDate\r\n *\r\n * Arbitrary additional user properties of string type may be associated with each license. The name of user property\r\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, licenseeNumber,\r\n * licenseTemplateNumber.\r\n */\r\nexport default class License extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n price: 'float',\r\n hidden: 'boolean',\r\n parentfeature: 'string',\r\n timeVolume: 'int',\r\n startDate: 'date',\r\n inUse: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setHidden(hidden) {\r\n return this.setProperty('hidden', hidden);\r\n }\r\n\r\n getHidden(def) {\r\n return this.getProperty('hidden', def);\r\n }\r\n\r\n setParentfeature(parentfeature) {\r\n return this.setProperty('parentfeature', parentfeature);\r\n }\r\n\r\n getParentfeature(def) {\r\n return this.getProperty('parentfeature', def);\r\n }\r\n\r\n setTimeVolume(timeVolume) {\r\n return this.setProperty('timeVolume', timeVolume);\r\n }\r\n\r\n getTimeVolume(def) {\r\n return this.getProperty('timeVolume', def);\r\n }\r\n\r\n setStartDate(startDate) {\r\n return this.setProperty('startDate', startDate);\r\n }\r\n\r\n getStartDate(def) {\r\n return this.getProperty('startDate', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n\r\n getPrice(def) {\r\n return this.getProperty('price', def);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n}\r\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nexport default class LicenseTransactionJoin {\r\n constructor(transaction, license) {\r\n this.transaction = transaction;\r\n this.license = license;\r\n }\r\n\r\n setTransaction(transaction) {\r\n this.transaction = transaction;\r\n return this;\r\n }\r\n\r\n getTransaction(def) {\r\n return this.transaction || def;\r\n }\r\n\r\n setLicense(license) {\r\n this.license = license;\r\n return this;\r\n }\r\n\r\n getLicense(def) {\r\n return this.license || def;\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\n\r\n/**\r\n * Validation result map\r\n * @type {WeakMap}\r\n */\r\nconst vr = new WeakMap();\r\n\r\nexport default class ValidationResults {\r\n constructor() {\r\n vr.set(this, { validators: {} });\r\n }\r\n\r\n getValidators() {\r\n return { ...vr.get(this).validators };\r\n }\r\n\r\n setProductModuleValidation(productModuleNumber, productModuleValidation) {\r\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\r\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\r\n }\r\n\r\n vr.get(this).validators[productModuleNumber] = productModuleValidation;\r\n\r\n return this;\r\n }\r\n\r\n getProductModuleValidation(productModuleNumber) {\r\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\r\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\r\n }\r\n\r\n return vr.get(this).validators[productModuleNumber];\r\n }\r\n\r\n setTtl(ttl) {\r\n if (!CheckUtils.isValid(ttl) || typeof ttl === 'object') {\r\n throw new TypeError(`Bad ttl:${ttl}`);\r\n }\r\n vr.get(this).ttl = new Date(String(ttl));\r\n\r\n return this;\r\n }\r\n\r\n getTtl() {\r\n return (vr.get(this).ttl) ? new Date(vr.get(this).ttl) : undefined;\r\n }\r\n\r\n toString() {\r\n let data = 'ValidationResult [';\r\n\r\n const validators = this.getValidators();\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(validators).forEach((productModuleNumber) => {\r\n data += `ProductModule<${productModuleNumber}>`;\r\n if (has.call(validators, productModuleNumber)) {\r\n data += JSON.stringify(validators[productModuleNumber]);\r\n }\r\n });\r\n\r\n data += ']';\r\n\r\n return data;\r\n }\r\n}\r\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","module.exports = require(\"http\");","module.exports = require(\"https\");","var url = require(\"url\");\nvar http = require(\"http\");\nvar https = require(\"https\");\nvar assert = require(\"assert\");\nvar Writable = require(\"stream\").Writable;\nvar debug = require(\"debug\")(\"follow-redirects\");\n\n// RFC7231§4.2.1: Of the request methods defined by this specification,\n// the GET, HEAD, OPTIONS, and TRACE methods are defined to be safe.\nvar SAFE_METHODS = { GET: true, HEAD: true, OPTIONS: true, TRACE: true };\n\n// Create handlers that pass events from native requests\nvar eventHandlers = Object.create(null);\n[\"abort\", \"aborted\", \"error\", \"socket\", \"timeout\"].forEach(function (event) {\n eventHandlers[event] = function (arg) {\n this._redirectable.emit(event, arg);\n };\n});\n\n// An HTTP(S) request that can be redirected\nfunction RedirectableRequest(options, responseCallback) {\n // Initialize the request\n Writable.call(this);\n options.headers = options.headers || {};\n this._options = options;\n this._redirectCount = 0;\n this._redirects = [];\n this._requestBodyLength = 0;\n this._requestBodyBuffers = [];\n\n // Since http.request treats host as an alias of hostname,\n // but the url module interprets host as hostname plus port,\n // eliminate the host property to avoid confusion.\n if (options.host) {\n // Use hostname if set, because it has precedence\n if (!options.hostname) {\n options.hostname = options.host;\n }\n delete options.host;\n }\n\n // Attach a callback if passed\n if (responseCallback) {\n this.on(\"response\", responseCallback);\n }\n\n // React to responses of native requests\n var self = this;\n this._onNativeResponse = function (response) {\n self._processResponse(response);\n };\n\n // Complete the URL object when necessary\n if (!options.pathname && options.path) {\n var searchPos = options.path.indexOf(\"?\");\n if (searchPos < 0) {\n options.pathname = options.path;\n }\n else {\n options.pathname = options.path.substring(0, searchPos);\n options.search = options.path.substring(searchPos);\n }\n }\n\n // Perform the first request\n this._performRequest();\n}\nRedirectableRequest.prototype = Object.create(Writable.prototype);\n\n// Writes buffered data to the current native request\nRedirectableRequest.prototype.write = function (data, encoding, callback) {\n // Validate input and shift parameters if necessary\n if (!(typeof data === \"string\" || typeof data === \"object\" && (\"length\" in data))) {\n throw new Error(\"data should be a string, Buffer or Uint8Array\");\n }\n if (typeof encoding === \"function\") {\n callback = encoding;\n encoding = null;\n }\n\n // Ignore empty buffers, since writing them doesn't invoke the callback\n // https://github.com/nodejs/node/issues/22066\n if (data.length === 0) {\n if (callback) {\n callback();\n }\n return;\n }\n // Only write when we don't exceed the maximum body length\n if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {\n this._requestBodyLength += data.length;\n this._requestBodyBuffers.push({ data: data, encoding: encoding });\n this._currentRequest.write(data, encoding, callback);\n }\n // Error when we exceed the maximum body length\n else {\n this.emit(\"error\", new Error(\"Request body larger than maxBodyLength limit\"));\n this.abort();\n }\n};\n\n// Ends the current native request\nRedirectableRequest.prototype.end = function (data, encoding, callback) {\n // Shift parameters if necessary\n if (typeof data === \"function\") {\n callback = data;\n data = encoding = null;\n }\n else if (typeof encoding === \"function\") {\n callback = encoding;\n encoding = null;\n }\n\n // Write data and end\n var currentRequest = this._currentRequest;\n this.write(data || \"\", encoding, function () {\n currentRequest.end(null, null, callback);\n });\n};\n\n// Sets a header value on the current native request\nRedirectableRequest.prototype.setHeader = function (name, value) {\n this._options.headers[name] = value;\n this._currentRequest.setHeader(name, value);\n};\n\n// Clears a header value on the current native request\nRedirectableRequest.prototype.removeHeader = function (name) {\n delete this._options.headers[name];\n this._currentRequest.removeHeader(name);\n};\n\n// Proxy all other public ClientRequest methods\n[\n \"abort\", \"flushHeaders\", \"getHeader\",\n \"setNoDelay\", \"setSocketKeepAlive\", \"setTimeout\",\n].forEach(function (method) {\n RedirectableRequest.prototype[method] = function (a, b) {\n return this._currentRequest[method](a, b);\n };\n});\n\n// Proxy all public ClientRequest properties\n[\"aborted\", \"connection\", \"socket\"].forEach(function (property) {\n Object.defineProperty(RedirectableRequest.prototype, property, {\n get: function () { return this._currentRequest[property]; },\n });\n});\n\n// Executes the next native request (initial or redirect)\nRedirectableRequest.prototype._performRequest = function () {\n // Load the native protocol\n var protocol = this._options.protocol;\n var nativeProtocol = this._options.nativeProtocols[protocol];\n if (!nativeProtocol) {\n this.emit(\"error\", new Error(\"Unsupported protocol \" + protocol));\n return;\n }\n\n // If specified, use the agent corresponding to the protocol\n // (HTTP and HTTPS use different types of agents)\n if (this._options.agents) {\n var scheme = protocol.substr(0, protocol.length - 1);\n this._options.agent = this._options.agents[scheme];\n }\n\n // Create the native request\n var request = this._currentRequest =\n nativeProtocol.request(this._options, this._onNativeResponse);\n this._currentUrl = url.format(this._options);\n\n // Set up event handlers\n request._redirectable = this;\n for (var event in eventHandlers) {\n /* istanbul ignore else */\n if (event) {\n request.on(event, eventHandlers[event]);\n }\n }\n\n // End a redirected request\n // (The first request must be ended explicitly with RedirectableRequest#end)\n if (this._isRedirect) {\n // Write the request entity and end.\n var i = 0;\n var buffers = this._requestBodyBuffers;\n (function writeNext() {\n if (i < buffers.length) {\n var buffer = buffers[i++];\n request.write(buffer.data, buffer.encoding, writeNext);\n }\n else {\n request.end();\n }\n }());\n }\n};\n\n// Processes a response from the current native request\nRedirectableRequest.prototype._processResponse = function (response) {\n // Store the redirected response\n if (this._options.trackRedirects) {\n this._redirects.push({\n url: this._currentUrl,\n headers: response.headers,\n statusCode: response.statusCode,\n });\n }\n\n // RFC7231§6.4: The 3xx (Redirection) class of status code indicates\n // that further action needs to be taken by the user agent in order to\n // fulfill the request. If a Location header field is provided,\n // the user agent MAY automatically redirect its request to the URI\n // referenced by the Location field value,\n // even if the specific status code is not understood.\n var location = response.headers.location;\n if (location && this._options.followRedirects !== false &&\n response.statusCode >= 300 && response.statusCode < 400) {\n // RFC7231§6.4: A client SHOULD detect and intervene\n // in cyclical redirections (i.e., \"infinite\" redirection loops).\n if (++this._redirectCount > this._options.maxRedirects) {\n this.emit(\"error\", new Error(\"Max redirects exceeded.\"));\n return;\n }\n\n // RFC7231§6.4: Automatic redirection needs to done with\n // care for methods not known to be safe […],\n // since the user might not wish to redirect an unsafe request.\n // RFC7231§6.4.7: The 307 (Temporary Redirect) status code indicates\n // that the target resource resides temporarily under a different URI\n // and the user agent MUST NOT change the request method\n // if it performs an automatic redirection to that URI.\n var header;\n var headers = this._options.headers;\n if (response.statusCode !== 307 && !(this._options.method in SAFE_METHODS)) {\n this._options.method = \"GET\";\n // Drop a possible entity and headers related to it\n this._requestBodyBuffers = [];\n for (header in headers) {\n if (/^content-/i.test(header)) {\n delete headers[header];\n }\n }\n }\n\n // Drop the Host header, as the redirect might lead to a different host\n if (!this._isRedirect) {\n for (header in headers) {\n if (/^host$/i.test(header)) {\n delete headers[header];\n }\n }\n }\n\n // Perform the redirected request\n var redirectUrl = url.resolve(this._currentUrl, location);\n debug(\"redirecting to\", redirectUrl);\n Object.assign(this._options, url.parse(redirectUrl));\n this._isRedirect = true;\n this._performRequest();\n\n // Discard the remainder of the response to avoid waiting for data\n response.destroy();\n }\n else {\n // The response is not a redirect; return it as-is\n response.responseUrl = this._currentUrl;\n response.redirects = this._redirects;\n this.emit(\"response\", response);\n\n // Clean up\n this._requestBodyBuffers = [];\n }\n};\n\n// Wraps the key/value object of protocols with redirect functionality\nfunction wrap(protocols) {\n // Default settings\n var exports = {\n maxRedirects: 21,\n maxBodyLength: 10 * 1024 * 1024,\n };\n\n // Wrap each protocol\n var nativeProtocols = {};\n Object.keys(protocols).forEach(function (scheme) {\n var protocol = scheme + \":\";\n var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];\n var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);\n\n // Executes a request, following redirects\n wrappedProtocol.request = function (options, callback) {\n if (typeof options === \"string\") {\n options = url.parse(options);\n options.maxRedirects = exports.maxRedirects;\n }\n else {\n options = Object.assign({\n protocol: protocol,\n maxRedirects: exports.maxRedirects,\n maxBodyLength: exports.maxBodyLength,\n }, options);\n }\n options.nativeProtocols = nativeProtocols;\n assert.equal(options.protocol, protocol, \"protocol mismatch\");\n debug(\"options\", options);\n return new RedirectableRequest(options, callback);\n };\n\n // Executes a GET request, following redirects\n wrappedProtocol.get = function (options, callback) {\n var request = wrappedProtocol.request(options, callback);\n request.end();\n return request;\n };\n });\n return exports;\n}\n\n// Exports\nmodule.exports = wrap({ http: http, https: https });\nmodule.exports.wrap = wrap;\n","module.exports = require(\"url\");","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = createDebug.debug = createDebug['default'] = createDebug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = require('ms');\n\n/**\n * Active `debug` instances.\n */\nexports.instances = [];\n\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\nexports.formatters = {};\n\n/**\n * Select a color.\n * @param {String} namespace\n * @return {Number}\n * @api private\n */\n\nfunction selectColor(namespace) {\n var hash = 0, i;\n\n for (i in namespace) {\n hash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return exports.colors[Math.abs(hash) % exports.colors.length];\n}\n\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\nfunction createDebug(namespace) {\n\n var prevTime;\n\n function debug() {\n // disabled?\n if (!debug.enabled) return;\n\n var self = debug;\n\n // set `diff` timestamp\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n\n // turn the `arguments` into a proper Array\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %O\n args.unshift('%O');\n }\n\n // apply any `formatters` transformations\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val);\n\n // now we need to remove `args[index]` since it's inlined in the `format`\n args.splice(index, 1);\n index--;\n }\n return match;\n });\n\n // apply env-specific formatting (colors, etc.)\n exports.formatArgs.call(self, args);\n\n var logFn = debug.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = exports.enabled(namespace);\n debug.useColors = exports.useColors();\n debug.color = selectColor(namespace);\n debug.destroy = destroy;\n\n // env-specific initialization logic for debug instances\n if ('function' === typeof exports.init) {\n exports.init(debug);\n }\n\n exports.instances.push(debug);\n\n return debug;\n}\n\nfunction destroy () {\n var index = exports.instances.indexOf(this);\n if (index !== -1) {\n exports.instances.splice(index, 1);\n return true;\n } else {\n return false;\n }\n}\n\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n\n exports.names = [];\n exports.skips = [];\n\n var i;\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n namespaces = split[i].replace(/\\*/g, '.*?');\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n\n for (i = 0; i < exports.instances.length; i++) {\n var instance = exports.instances[i];\n instance.enabled = exports.enabled(instance.namespace);\n }\n}\n\n/**\n * Disable debug output.\n *\n * @api public\n */\n\nfunction disable() {\n exports.enable('');\n}\n\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\nfunction enabled(name) {\n if (name[name.length - 1] === '*') {\n return true;\n }\n var i, len;\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];\n var defaultToConfig2Keys = [\n 'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',\n 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath'\n ];\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {\n if (utils.isObject(config2[prop])) {\n config[prop] = utils.deepMerge(config1[prop], config2[prop]);\n } else if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (utils.isObject(config1[prop])) {\n config[prop] = utils.deepMerge(config1[prop]);\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys);\n\n var otherKeys = Object\n .keys(config2)\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n return config;\n};\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","export default class NlicError extends Error {\r\n constructor(...args) {\r\n super(...args);\r\n\r\n this.config = {};\r\n this.response = {};\r\n this.request = {};\r\n this.code = '';\r\n\r\n this.isNlicError = true;\r\n this.isAxiosError = true;\r\n }\r\n}\r\n","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","import itemToObject from './itemToObject';\r\nimport Licensee from '../entities/Licensee';\r\n\r\nexport default (item) => new Licensee(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Licensee entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the licensee. Vendor can assign this\r\n * number when creating a licensee or let NetLicensing generate one. Read-only after creation of the first license for\r\n * the licensee.\r\n * @property string number\r\n *\r\n * Licensee name.\r\n * @property string name\r\n *\r\n * If set to false, the licensee is disabled. Licensee can not obtain new licenses, and validation is\r\n * disabled (tbd).\r\n * @property boolean active\r\n *\r\n * Licensee Secret for licensee\r\n * @property string licenseeSecret\r\n *\r\n * Mark licensee for transfer.\r\n * @property boolean markedForTransfer\r\n *\r\n * Arbitrary additional user properties of string type may be associated with each licensee. The name of user property\r\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, productNumber\r\n *\r\n * @constructor\r\n */\r\nexport default class Licensee extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n licenseeSecret: 'string',\r\n markedForTransfer: 'boolean',\r\n inUse: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n */\r\n setLicenseeSecret(licenseeSecret) {\r\n return this.setProperty('licenseeSecret', licenseeSecret);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n */\r\n getLicenseeSecret(def) {\r\n return this.getProperty('licenseeSecret', def);\r\n }\r\n\r\n setMarkedForTransfer(markedForTransfer) {\r\n return this.setProperty('markedForTransfer', markedForTransfer);\r\n }\r\n\r\n getMarkedForTransfer(def) {\r\n return this.getProperty('markedForTransfer', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\n// Cast an attribute to a native JS type.\r\nexport default (key, value) => {\r\n switch (key.trim().toLowerCase()) {\r\n case 'str':\r\n case 'string':\r\n return String(value);\r\n case 'int':\r\n case 'integer':\r\n return parseInt(value, 10);\r\n case 'float':\r\n case 'double':\r\n return parseFloat(value);\r\n case 'bool':\r\n case 'boolean':\r\n switch (value) {\r\n case 'true':\r\n case 'TRUE':\r\n return true;\r\n case 'false':\r\n case 'FALSE':\r\n return false;\r\n default:\r\n return Boolean(value);\r\n }\r\n case 'date':\r\n return (value === 'now') ? 'now' : new Date(String(value));\r\n default:\r\n return value;\r\n }\r\n};\r\n","import itemToObject from './itemToObject';\r\nimport License from '../entities/License';\r\n\r\nexport default (item) => new License(itemToObject(item));\r\n","import itemToObject from './itemToObject';\r\nimport LicenseTemplate from '../entities/LicenseTemplate';\r\n\r\nexport default (item) => new LicenseTemplate(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * License template entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the license template. Vendor can\r\n * assign this number when creating a license template or let NetLicensing generate one.\r\n * Read-only after creation of the first license from this license template.\r\n * @property string number\r\n *\r\n * If set to false, the license template is disabled. Licensee can not obtain any new licenses off this\r\n * license template.\r\n * @property boolean active\r\n *\r\n * Name for the licensed item.\r\n * @property string name\r\n *\r\n * Type of licenses created from this license template. Supported types: \"FEATURE\", \"TIMEVOLUME\",\r\n * \"FLOATING\", \"QUANTITY\"\r\n * @property string licenseType\r\n *\r\n * Price for the license. If >0, it must always be accompanied by the currency specification.\r\n * @property double price\r\n *\r\n * Specifies currency for the license price. Check data types to discover which currencies are\r\n * supported.\r\n * @property string currency\r\n *\r\n * If set to true, every new licensee automatically gets one license out of this license template on\r\n * creation. Automatic licenses must have their price set to 0.\r\n * @property boolean automatic\r\n *\r\n * If set to true, this license template is not shown in NetLicensing Shop as offered for purchase.\r\n * @property boolean hidden\r\n *\r\n * If set to true, licenses from this license template are not visible to the end customer, but\r\n * participate in validation.\r\n * @property boolean hideLicenses\r\n *\r\n * If set to true, this license template defines grace period of validity granted after subscription expiration.\r\n * @property boolean gracePeriod\r\n *\r\n * Mandatory for 'TIMEVOLUME' license type.\r\n * @property integer timeVolume\r\n *\r\n * Time volume period for 'TIMEVOLUME' license type. Supported types: \"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"\r\n * @property integer timeVolumePeriod\r\n *\r\n * Mandatory for 'FLOATING' license type.\r\n * @property integer maxSessions\r\n *\r\n * Mandatory for 'QUANTITY' license type.\r\n * @property integer quantity\r\n *\r\n * @constructor\r\n */\r\nexport default class LicenseTemplate extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n licenseType: 'string',\r\n price: 'double',\r\n currency: 'string',\r\n automatic: 'boolean',\r\n hidden: 'boolean',\r\n hideLicenses: 'boolean',\r\n gracePeriod: 'boolean',\r\n timeVolume: 'int',\r\n timeVolumePeriod: 'string',\r\n maxSessions: 'int',\r\n quantity: 'int',\r\n inUse: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setLicenseType(licenseType) {\r\n return this.setProperty('licenseType', licenseType);\r\n }\r\n\r\n getLicenseType(def) {\r\n return this.getProperty('licenseType', def);\r\n }\r\n\r\n setPrice(price) {\r\n return this.setProperty('price', price);\r\n }\r\n\r\n getPrice(def) {\r\n return this.getProperty('price', def);\r\n }\r\n\r\n setCurrency(currency) {\r\n return this.setProperty('currency', currency);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n\r\n setAutomatic(automatic) {\r\n return this.setProperty('automatic', automatic);\r\n }\r\n\r\n getAutomatic(def) {\r\n return this.getProperty('automatic', def);\r\n }\r\n\r\n setHidden(hidden) {\r\n return this.setProperty('hidden', hidden);\r\n }\r\n\r\n getHidden(def) {\r\n return this.getProperty('hidden', def);\r\n }\r\n\r\n setHideLicenses(hideLicenses) {\r\n return this.setProperty('hideLicenses', hideLicenses);\r\n }\r\n\r\n getHideLicenses(def) {\r\n return this.getProperty('hideLicenses', def);\r\n }\r\n\r\n setTimeVolume(timeVolume) {\r\n return this.setProperty('timeVolume', timeVolume);\r\n }\r\n\r\n getTimeVolume(def) {\r\n return this.getProperty('timeVolume', def);\r\n }\r\n\r\n setTimeVolumePeriod(timeVolumePeriod) {\r\n return this.setProperty('timeVolumePeriod', timeVolumePeriod);\r\n }\r\n\r\n getTimeVolumePeriod(def) {\r\n return this.getProperty('timeVolumePeriod', def);\r\n }\r\n\r\n setMaxSessions(maxSessions) {\r\n return this.setProperty('maxSessions', maxSessions);\r\n }\r\n\r\n getMaxSessions(def) {\r\n return this.getProperty('maxSessions', def);\r\n }\r\n\r\n setQuantity(quantity) {\r\n return this.setProperty('quantity', quantity);\r\n }\r\n\r\n getQuantity(def) {\r\n return this.getProperty('quantity', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport PaymentMethod from '../entities/PaymentMethod';\r\n\r\nexport default (item) => new PaymentMethod(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * PaymentMethod entity used internally by NetLicensing.\r\n *\r\n * @property string number\r\n * @property boolean active\r\n *\r\n * @constructor\r\n */\r\nexport default class PaymentMethod extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n 'paypal.subject': 'string',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setPaypalSubject(paypalSubject) {\r\n return this.setProperty('paypal.subject', paypalSubject);\r\n }\r\n\r\n getPaypalSubject(def) {\r\n return this.getProperty('paypal.subject', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport ProductModule from '../entities/ProductModule';\r\n\r\nexport default (item) => new ProductModule(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Product module entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the product module. Vendor can assign\r\n * this number when creating a product module or let NetLicensing generate one. Read-only after creation of the first\r\n * licensee for the product.\r\n * @property string number\r\n *\r\n * If set to false, the product module is disabled. Licensees can not obtain any new licenses for this\r\n * product module.\r\n * @property boolean active\r\n *\r\n * Product module name that is visible to the end customers in NetLicensing Shop.\r\n * @property string name\r\n *\r\n * Licensing model applied to this product module. Defines what license templates can be\r\n * configured for the product module and how licenses for this product module are processed during validation.\r\n * @property string licensingModel\r\n *\r\n * Maximum checkout validity (days). Mandatory for 'Floating' licensing model.\r\n * @property integer maxCheckoutValidity\r\n *\r\n * Remaining time volume for yellow level. Mandatory for 'Rental' licensing model.\r\n * @property integer yellowThreshold\r\n *\r\n * Remaining time volume for red level. Mandatory for 'Rental' licensing model.\r\n * @property integer redThreshold\r\n *\r\n * License template. Mandatory for 'Try & Buy' licensing model. Supported types: \"TIMEVOLUME\", \"FEATURE\".\r\n * @property string licenseTemplate\r\n *\r\n * Licensee secret mode for product.Supported types: \"PREDEFINED\", \"CLIENT\"\r\n * @property boolean licenseeSecretMode\r\n *\r\n * @constructor\r\n */\r\nexport default class ProductModule extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n licensingModel: 'string',\r\n maxCheckoutValidity: 'int',\r\n yellowThreshold: 'int',\r\n redThreshold: 'int',\r\n licenseTemplate: 'string',\r\n inUse: 'boolean',\r\n licenseeSecretMode: 'string',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setLicensingModel(licensingModel) {\r\n return this.setProperty('licensingModel', licensingModel);\r\n }\r\n\r\n getLicensingModel(def) {\r\n return this.getProperty('licensingModel', def);\r\n }\r\n\r\n setMaxCheckoutValidity(maxCheckoutValidity) {\r\n return this.setProperty('maxCheckoutValidity', maxCheckoutValidity);\r\n }\r\n\r\n getMaxCheckoutValidity(def) {\r\n return this.getProperty('maxCheckoutValidity', def);\r\n }\r\n\r\n setYellowThreshold(yellowThreshold) {\r\n return this.setProperty('yellowThreshold', yellowThreshold);\r\n }\r\n\r\n getYellowThreshold(def) {\r\n return this.getProperty('yellowThreshold', def);\r\n }\r\n\r\n setRedThreshold(redThreshold) {\r\n return this.setProperty('redThreshold', redThreshold);\r\n }\r\n\r\n getRedThreshold(def) {\r\n return this.getProperty('redThreshold', def);\r\n }\r\n\r\n setLicenseTemplate(licenseTemplate) {\r\n return this.setProperty('licenseTemplate', licenseTemplate);\r\n }\r\n\r\n getLicenseTemplate(def) {\r\n return this.getProperty('licenseTemplate', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n\r\n setLicenseeSecretMode(licenseeSecretMode) {\r\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\r\n }\r\n\r\n getLicenseeSecretMode(def) {\r\n return this.getProperty('licenseeSecretMode', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Product from '../entities/Product';\r\n\r\nexport default (item) => {\r\n const object = itemToObject(item);\r\n\r\n const discounts = object.discount;\r\n\r\n delete object.discount;\r\n\r\n const product = new Product(object);\r\n product.setProductDiscounts(discounts);\r\n\r\n return product;\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\nimport ProductDiscount from './ProductDiscount';\r\n\r\n/**\r\n * The discounts map\r\n * @type {{}}\r\n * @private\r\n */\r\nconst discountsMap = new WeakMap();\r\n\r\n/**\r\n * An identifier that show if discounts was touched\r\n * @type {{}}\r\n * @private\r\n */\r\nconst discountsTouched = new WeakMap();\r\n\r\n/**\r\n * NetLicensing Product entity.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number that identifies the product. Vendor can assign this number when creating a product or\r\n * let NetLicensing generate one. Read-only after creation of the first licensee for the product.\r\n * @property string number\r\n *\r\n * If set to false, the product is disabled. No new licensees can be registered for the product,\r\n * existing licensees can not obtain new licenses.\r\n * @property boolean active\r\n *\r\n * Product name. Together with the version identifies the product for the end customer.\r\n * @property string name\r\n *\r\n * Product version. Convenience parameter, additional to the product name.\r\n * @property float version\r\n *\r\n * If set to 'true', non-existing licensees will be created at first validation attempt.\r\n * @property boolean licenseeAutoCreate\r\n *\r\n * Licensee secret mode for product.Supported types: \"DISABLED\", \"PREDEFINED\", \"CLIENT\"\r\n * @property boolean licenseeSecretMode\r\n *\r\n * Product description. Optional.\r\n * @property string description\r\n *\r\n * Licensing information. Optional.\r\n * @property string licensingInfo\r\n *\r\n * @property boolean inUse\r\n *\r\n * Arbitrary additional user properties of string type may be associated with each product. The name of user property\r\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted.\r\n *\r\n * @constructor\r\n */\r\nexport default class Product extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n name: 'string',\r\n version: 'string',\r\n description: 'string',\r\n licensingInfo: 'string',\r\n licenseeAutoCreate: 'boolean',\r\n licenseeSecretMode: 'string',\r\n inUse: 'boolean',\r\n },\r\n });\r\n\r\n discountsMap.set(this, []);\r\n discountsTouched.set(this, false);\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setVersion(version) {\r\n return this.setProperty('version', version);\r\n }\r\n\r\n getVersion(def) {\r\n return this.getProperty('version', def);\r\n }\r\n\r\n setLicenseeAutoCreate(licenseeAutoCreate) {\r\n return this.setProperty('licenseeAutoCreate', licenseeAutoCreate);\r\n }\r\n\r\n getLicenseeAutoCreate(def) {\r\n return this.getProperty('licenseeAutoCreate', def);\r\n }\r\n\r\n /**\r\n * @deprecated use ProductModule.setLicenseeSecretMode instead\r\n */\r\n setLicenseeSecretMode(licenseeSecretMode) {\r\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\r\n }\r\n\r\n /**\r\n * @deprecated use ProductModule.getLicenseeSecretMode instead\r\n */\r\n getLicenseeSecretMode(def) {\r\n return this.getProperty('licenseeSecretMode', def);\r\n }\r\n\r\n setDescription(description) {\r\n return this.setProperty('description', description);\r\n }\r\n\r\n getDescription(def) {\r\n return this.getProperty('description', def);\r\n }\r\n\r\n setLicensingInfo(licensingInfo) {\r\n return this.setProperty('licensingInfo', licensingInfo);\r\n }\r\n\r\n getLicensingInfo(def) {\r\n return this.getProperty('licensingInfo', def);\r\n }\r\n\r\n getInUse(def) {\r\n return this.getProperty('inUse', def);\r\n }\r\n\r\n /**\r\n * Add discount to product\r\n *\r\n * @param discount NetLicensing.ProductDiscount\r\n * @returns {NetLicensing.Product}\r\n */\r\n addDiscount(discount) {\r\n const discounts = discountsMap.get(this);\r\n\r\n let productDiscount = discount;\r\n\r\n if (typeof productDiscount !== 'string' && !(productDiscount instanceof ProductDiscount)) {\r\n productDiscount = new ProductDiscount(productDiscount);\r\n }\r\n\r\n discounts.push(productDiscount);\r\n discountsMap.set(this, discounts);\r\n discountsTouched.set(this, true);\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set discounts to product\r\n * @param discounts\r\n */\r\n setProductDiscounts(discounts) {\r\n discountsMap.set(this, []);\r\n discountsTouched.set(this, true);\r\n\r\n if (!discounts) return this;\r\n\r\n if (Array.isArray(discounts)) {\r\n discounts.forEach((discount) => {\r\n this.addDiscount(discount);\r\n });\r\n\r\n return this;\r\n }\r\n\r\n this.addDiscount(discounts);\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Get array of objects discounts\r\n * @returns {Array}\r\n */\r\n getProductDiscounts() {\r\n return Object.assign([], discountsMap.get(this));\r\n }\r\n\r\n asPropertiesMap() {\r\n const propertiesMap = super.asPropertiesMap();\r\n\r\n if (discountsMap.get(this).length) {\r\n propertiesMap.discount = discountsMap.get(this).map((discount) => discount.toString());\r\n }\r\n\r\n if (!propertiesMap.discount && discountsTouched.get(this)) {\r\n propertiesMap.discount = '';\r\n }\r\n\r\n return propertiesMap;\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nimport BaseEntity from './BaseEntity';\r\n\r\nexport default class ProductDiscount extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n totalPrice: 'float',\r\n currency: 'string',\r\n amountFix: 'float',\r\n amountPercent: 'int',\r\n },\r\n });\r\n }\r\n\r\n setTotalPrice(totalPrice) {\r\n return this.setProperty('totalPrice', totalPrice);\r\n }\r\n\r\n getTotalPrice(def) {\r\n return this.getProperty('totalPrice', def);\r\n }\r\n\r\n setCurrency(currency) {\r\n return this.setProperty('currency', currency);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n\r\n setAmountFix(amountFix) {\r\n return this.setProperty('amountFix', amountFix).removeProperty('amountPercent');\r\n }\r\n\r\n getAmountFix(def) {\r\n return this.getProperty('amountFix', def);\r\n }\r\n\r\n setAmountPercent(amountPercent) {\r\n return this.setProperty('amountPercent', amountPercent).removeProperty('amountFix');\r\n }\r\n\r\n getAmountPercent(def) {\r\n return this.getProperty('amountPercent', def);\r\n }\r\n\r\n toString() {\r\n const totalPrice = this.getTotalPrice();\r\n const currency = this.getCurrency();\r\n let amount = 0;\r\n\r\n if (this.getAmountFix(null)) amount = this.getAmountFix();\r\n if (this.getAmountPercent(null)) amount = `${this.getAmountPercent()}%`;\r\n\r\n return `${totalPrice};${currency};${amount}`;\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Token from '../entities/Token';\r\n\r\nexport default (item) => new Token(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Product module entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number\r\n * @property string number\r\n *\r\n * If set to false, the token is disabled.\r\n * @property boolean active\r\n *\r\n * Expiration Time\r\n * @property string expirationTime\r\n *\r\n * @property string vendorNumber\r\n *\r\n * Token type to be generated.\r\n * DEFAULT - default one-time token (will be expired after first request)\r\n * SHOP - shop token is used to redirect customer to the netlicensingShop(licenseeNumber is mandatory)\r\n * APIKEY - APIKey-token\r\n * @property string tokenType\r\n *\r\n * @property string licenseeNumber\r\n *\r\n * @constructor\r\n */\r\nexport default class Token extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n active: 'boolean',\r\n expirationTime: 'date',\r\n vendorNumber: 'string',\r\n tokenType: 'string',\r\n licenseeNumber: 'string',\r\n successURL: 'string',\r\n successURLTitle: 'string',\r\n cancelURL: 'string',\r\n cancelURLTitle: 'string',\r\n shopURL: 'string',\r\n },\r\n });\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setActive(active) {\r\n return this.setProperty('active', active);\r\n }\r\n\r\n getActive(def) {\r\n return this.getProperty('active', def);\r\n }\r\n\r\n setExpirationTime(expirationTime) {\r\n return this.setProperty('expirationTime', expirationTime);\r\n }\r\n\r\n getExpirationTime(def) {\r\n return this.getProperty('expirationTime', def);\r\n }\r\n\r\n setVendorNumber(vendorNumber) {\r\n return this.setProperty('vendorNumber', vendorNumber);\r\n }\r\n\r\n getVendorNumber(def) {\r\n return this.getProperty('vendorNumber', def);\r\n }\r\n\r\n setTokenType(tokenType) {\r\n return this.setProperty('tokenType', tokenType);\r\n }\r\n\r\n getTokenType(def) {\r\n return this.getProperty('tokenType', def);\r\n }\r\n\r\n setLicenseeNumber(licenseeNumber) {\r\n return this.setProperty('licenseeNumber', licenseeNumber);\r\n }\r\n\r\n getLicenseeNumber(def) {\r\n return this.getProperty('licenseeNumber', def);\r\n }\r\n\r\n setSuccessURL(successURL) {\r\n return this.setProperty('successURL', successURL);\r\n }\r\n\r\n getSuccessURL(def) {\r\n return this.getProperty('successURL', def);\r\n }\r\n\r\n setSuccessURLTitle(successURLTitle) {\r\n return this.setProperty('successURLTitle', successURLTitle);\r\n }\r\n\r\n getSuccessURLTitle(def) {\r\n return this.getProperty('successURLTitle', def);\r\n }\r\n\r\n setCancelURL(cancelURL) {\r\n return this.setProperty('cancelURL', cancelURL);\r\n }\r\n\r\n getCancelURL(def) {\r\n return this.getProperty('cancelURL', def);\r\n }\r\n\r\n setCancelURLTitle(cancelURLTitle) {\r\n return this.setProperty('cancelURLTitle', cancelURLTitle);\r\n }\r\n\r\n getCancelURLTitle(def) {\r\n return this.getProperty('cancelURLTitle', def);\r\n }\r\n\r\n getShopURL(def) {\r\n return this.getProperty('shopURL', def);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n * @alias setApiKeyRole\r\n * @param role\r\n * @returns {*}\r\n */\r\n setRole(role) {\r\n return this.setApiKeyRole(role);\r\n }\r\n\r\n /**\r\n * @deprecated\r\n * @alias getApiKeyRole\r\n * @param def\r\n * @returns {*}\r\n */\r\n getRole(def) {\r\n return this.getApiKeyRole(def);\r\n }\r\n\r\n setApiKeyRole(apiKeyRole) {\r\n return this.setProperty('apiKeyRole', apiKeyRole);\r\n }\r\n\r\n getApiKeyRole(def) {\r\n return this.getProperty('apiKeyRole', def);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Transaction from '../entities/Transaction';\r\nimport License from '../entities/License';\r\nimport LicenseTransactionJoin from '../entities/LicenseTransactionJoin';\r\nimport Constants from '../Constants';\r\n\r\nexport default (item) => {\r\n const object = itemToObject(item);\r\n\r\n const { licenseTransactionJoin } = object;\r\n\r\n delete object.licenseTransactionJoin;\r\n\r\n const transaction = new Transaction(object);\r\n\r\n if (licenseTransactionJoin) {\r\n const joins = [];\r\n\r\n licenseTransactionJoin.forEach((v) => {\r\n const join = new LicenseTransactionJoin();\r\n join.setLicense(new License({ number: v[Constants.License.LICENSE_NUMBER] }));\r\n join.setTransaction(new Transaction({ number: v[Constants.Transaction.TRANSACTION_NUMBER] }));\r\n\r\n joins.push(join);\r\n });\r\n\r\n transaction.setLicenseTransactionJoins(joins);\r\n }\r\n\r\n return transaction;\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\nimport LicenseTransactionJoin from './LicenseTransactionJoin';\r\nimport License from './License';\r\n\r\n/**\r\n * Transaction entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * Unique number (across all products of a vendor) that identifies the transaction. This number is\r\n * always generated by NetLicensing.\r\n * @property string number\r\n *\r\n * always true for transactions\r\n * @property boolean active\r\n *\r\n * Status of transaction. \"CANCELLED\", \"CLOSED\", \"PENDING\".\r\n * @property string status\r\n *\r\n * \"SHOP\". AUTO transaction for internal use only.\r\n * @property string source\r\n *\r\n * grand total for SHOP transaction (see source).\r\n * @property float grandTotal\r\n *\r\n * discount for SHOP transaction (see source).\r\n * @property float discount\r\n *\r\n * specifies currency for money fields (grandTotal and discount). Check data types to discover which\r\n * @property string currency\r\n *\r\n * Date created. Optional.\r\n * @property string dateCreated\r\n *\r\n * Date closed. Optional.\r\n * @property string dateClosed\r\n *\r\n * @constructor\r\n */\r\nexport default class Transaction extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n number: 'string',\r\n name: 'string',\r\n status: 'string',\r\n source: 'string',\r\n grandTotal: 'float',\r\n discount: 'float',\r\n currency: 'string',\r\n dateCreated: 'date',\r\n dateClosed: 'date',\r\n active: 'boolean',\r\n paymentMethod: 'string',\r\n },\r\n });\r\n }\r\n\r\n setNumber(number) {\r\n return this.setProperty('number', number);\r\n }\r\n\r\n getNumber(def) {\r\n return this.getProperty('number', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setStatus(status) {\r\n return this.setProperty('status', status);\r\n }\r\n\r\n getStatus(def) {\r\n return this.getProperty('status', def);\r\n }\r\n\r\n setSource(source) {\r\n return this.setProperty('source', source);\r\n }\r\n\r\n getSource(def) {\r\n return this.getProperty('source', def);\r\n }\r\n\r\n setGrandTotal(grandTotal) {\r\n return this.setProperty('grandTotal', grandTotal);\r\n }\r\n\r\n getGrandTotal(def) {\r\n return this.getProperty('grandTotal', def);\r\n }\r\n\r\n setDiscount(discount) {\r\n return this.setProperty('discount', discount);\r\n }\r\n\r\n getDiscount(def) {\r\n return this.getProperty('discount', def);\r\n }\r\n\r\n setCurrency(currency) {\r\n return this.setProperty('currency', currency);\r\n }\r\n\r\n getCurrency(def) {\r\n return this.getProperty('currency', def);\r\n }\r\n\r\n setDateCreated(dateCreated) {\r\n return this.setProperty('dateCreated', dateCreated);\r\n }\r\n\r\n getDateCreated(def) {\r\n return this.getProperty('dateCreated', def);\r\n }\r\n\r\n setDateClosed(dateClosed) {\r\n return this.setProperty('dateClosed', dateClosed);\r\n }\r\n\r\n getDateClosed(def) {\r\n return this.getProperty('dateClosed', def);\r\n }\r\n\r\n setPaymentMethod(paymentMethod) {\r\n return this.setProperty('paymentMethod', paymentMethod);\r\n }\r\n\r\n getPaymentMethod(def) {\r\n return this.getProperty('paymentMethod', def);\r\n }\r\n\r\n setActive() {\r\n return this.setProperty('active', true);\r\n }\r\n\r\n getLicenseTransactionJoins(def) {\r\n return this.getProperty('licenseTransactionJoins', def);\r\n }\r\n\r\n setLicenseTransactionJoins(licenseTransactionJoins) {\r\n return this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\r\n }\r\n\r\n setListLicenseTransactionJoin(properties) {\r\n if (!properties) return;\r\n\r\n const licenseTransactionJoins = this.getProperty('licenseTransactionJoins', []);\r\n const licenseTransactionJoin = new LicenseTransactionJoin();\r\n\r\n properties.forEach((property) => {\r\n if (property.name === 'licenseNumber') {\r\n licenseTransactionJoin.setLicense(new License({ number: property.value }));\r\n }\r\n\r\n if (property.name === 'transactionNumber') {\r\n licenseTransactionJoin.setTransaction(new Transaction({ number: property.value }));\r\n }\r\n });\r\n\r\n licenseTransactionJoins.push(licenseTransactionJoin);\r\n this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\r\n }\r\n}\r\n","import itemToObject from './itemToObject';\r\nimport Country from '../entities/Country';\r\n\r\nexport default (item) => new Country(itemToObject(item));\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport BaseEntity from './BaseEntity';\r\n\r\n/**\r\n * Country entity used internally by NetLicensing.\r\n *\r\n * Properties visible via NetLicensing API:\r\n *\r\n * @property code - Unique code of country.\r\n *\r\n * @property name - Unique name of country\r\n *\r\n * @property vatPercent - Country vat.\r\n *\r\n * @property isEu - is country in EU.\r\n */\r\nexport default class Country extends BaseEntity {\r\n constructor(properties) {\r\n super({\r\n properties,\r\n // The attributes that should be cast to native types.\r\n casts: {\r\n code: 'string',\r\n name: 'string',\r\n vatPercent: 'int',\r\n isEu: 'boolean',\r\n },\r\n });\r\n }\r\n\r\n setCode(code) {\r\n return this.setProperty('code', code);\r\n }\r\n\r\n getCode(def) {\r\n return this.getProperty('code', def);\r\n }\r\n\r\n setName(name) {\r\n return this.setProperty('name', name);\r\n }\r\n\r\n getName(def) {\r\n return this.getProperty('name', def);\r\n }\r\n\r\n setVatPercent(vat) {\r\n return this.setProperty('vatPercent', vat);\r\n }\r\n\r\n getVatPercent(def) {\r\n return this.getProperty('vatPercent', def);\r\n }\r\n\r\n setIsEu(isEu) {\r\n return this.setProperty('isEu', isEu);\r\n }\r\n\r\n getIsEu(def) {\r\n return this.getProperty('isEu', def);\r\n }\r\n}\r\n","// Constants\r\nimport Constants from './Constants';\r\n\r\n// VO\r\nimport Context from './vo/Context';\r\nimport Page from './vo/Page';\r\nimport ValidationParameters from './vo/ValidationParameters';\r\nimport ValidationResults from './vo/ValidationResults';\r\n\r\n// Services\r\nimport Service from './services/Service';\r\nimport LicenseeService from './services/LicenseeService';\r\nimport LicenseService from './services/LicenseService';\r\nimport LicenseTemplateService from './services/LicenseTemplateService';\r\nimport PaymentMethodService from './services/PaymentMethodService';\r\nimport ProductModuleService from './services/ProductModuleService';\r\nimport ProductService from './services/ProductService';\r\nimport TokenService from './services/TokenService';\r\nimport TransactionService from './services/TransactionService';\r\nimport UtilityService from './services/UtilityService';\r\n\r\n// Entities\r\nimport BaseEntity from './entities/BaseEntity';\r\nimport Country from './entities/Country';\r\nimport License from './entities/License';\r\nimport Licensee from './entities/Licensee';\r\nimport LicenseTemplate from './entities/LicenseTemplate';\r\nimport PaymentMethod from './entities/PaymentMethod';\r\nimport Product from './entities/Product';\r\nimport ProductDiscount from './entities/ProductDiscount';\r\nimport ProductModule from './entities/ProductModule';\r\nimport Token from './entities/Token';\r\nimport Transaction from './entities/Transaction';\r\nimport LicenseTransactionJoin from './entities/LicenseTransactionJoin';\r\n\r\n// Converters\r\nimport itemToCountry from './converters/itemToCountry';\r\nimport itemToLicense from './converters/itemToLicense';\r\nimport itemToLicensee from './converters/itemToLicensee';\r\nimport itemToLicenseTemplate from './converters/itemToLicenseTemplate';\r\nimport itemToObject from './converters/itemToObject';\r\nimport itemToPaymentMethod from './converters/itemToPaymentMethod';\r\nimport itemToProduct from './converters/itemToProduct';\r\nimport itemToProductModule from './converters/itemToProductModule';\r\nimport itemToToken from './converters/itemToToken';\r\nimport itemToTransaction from './converters/itemToTransaction';\r\n\r\n// Utils\r\nimport CastsUtils from './util/CastsUtils';\r\nimport CheckUtils from './util/CheckUtils';\r\nimport FilterUtils from './util/FilterUtils';\r\n\r\n// Errors\r\nimport NlicError from './errors/NlicError';\r\n\r\n// Create the default instance to be exported\r\nconst NetLicensing = {\r\n // Constants\r\n Constants,\r\n\r\n // Expose VO\r\n Context,\r\n Page,\r\n ValidationParameters,\r\n ValidationResults,\r\n\r\n // Expose Services\r\n Service,\r\n LicenseeService,\r\n LicenseService,\r\n LicenseTemplateService,\r\n PaymentMethodService,\r\n ProductModuleService,\r\n ProductService,\r\n TokenService,\r\n TransactionService,\r\n UtilityService,\r\n\r\n // Expose Entities\r\n BaseEntity,\r\n Country,\r\n License,\r\n Licensee,\r\n LicenseTemplate,\r\n PaymentMethod,\r\n Product,\r\n ProductDiscount,\r\n ProductModule,\r\n Token,\r\n Transaction,\r\n LicenseTransactionJoin,\r\n\r\n // Expose Converters\r\n itemToCountry,\r\n itemToLicense,\r\n itemToLicensee,\r\n itemToLicenseTemplate,\r\n itemToObject,\r\n itemToPaymentMethod,\r\n itemToProduct,\r\n itemToProductModule,\r\n itemToToken,\r\n itemToTransaction,\r\n\r\n // Expose Utils\r\n CastsUtils,\r\n CheckUtils,\r\n FilterUtils,\r\n\r\n // Errors\r\n NlicError,\r\n};\r\n\r\nmodule.exports = NetLicensing;\r\n\r\n// Allow use of default import syntax in TypeScript\r\nmodule.exports.default = NetLicensing;\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\nimport Constants from '../Constants';\r\nimport CheckUtils from '../util/CheckUtils';\r\n\r\n/**\r\n * The context values.\r\n * @type {{}}\r\n * @private\r\n */\r\nconst valuesMap = new WeakMap();\r\n\r\n/**\r\n * List of values that was defined\r\n * @type {{}}\r\n * @private\r\n */\r\nconst definedMap = new WeakMap();\r\n\r\n/**\r\n * Context defaults\r\n * @type {{baseUrl: string, securityMode}}\r\n * @private\r\n */\r\nconst defaultsMap = new WeakMap();\r\n\r\nexport default class Context {\r\n constructor(values) {\r\n defaultsMap.set(this, {\r\n baseUrl: 'https://go.netlicensing.io/core/v2/rest',\r\n securityMode: Constants.BASIC_AUTHENTICATION,\r\n });\r\n\r\n valuesMap.set(this, {});\r\n\r\n definedMap.set(this, {});\r\n\r\n this.setValues({ ...defaultsMap.get(this), ...values });\r\n }\r\n\r\n setBaseUrl(baseUrl) {\r\n return this.setValue('baseUrl', baseUrl);\r\n }\r\n\r\n getBaseUrl(def) {\r\n return this.getValue('baseUrl', def);\r\n }\r\n\r\n setUsername(username) {\r\n return this.setValue('username', username);\r\n }\r\n\r\n getUsername(def) {\r\n return this.getValue('username', def);\r\n }\r\n\r\n setPassword(password) {\r\n return this.setValue('password', password);\r\n }\r\n\r\n getPassword(def) {\r\n return this.getValue('password', def);\r\n }\r\n\r\n setApiKey(apiKey) {\r\n return this.setValue('apiKey', apiKey);\r\n }\r\n\r\n getApiKey(def) {\r\n return this.getValue('apiKey', def);\r\n }\r\n\r\n setSecurityMode(securityMode) {\r\n return this.setValue('securityMode', securityMode);\r\n }\r\n\r\n getSecurityMode(def) {\r\n return this.getValue('securityMode', def);\r\n }\r\n\r\n setVendorNumber(vendorNumber) {\r\n return this.setValue('vendorNumber', vendorNumber);\r\n }\r\n\r\n getVendorNumber(def) {\r\n return this.getValue('vendorNumber', def);\r\n }\r\n\r\n /**\r\n * Set a given values on the context.\r\n * @param key\r\n * @param value\r\n * @returns {Context}\r\n */\r\n setValue(key, value) {\r\n // check values\r\n if (!CheckUtils.isValid(key) || typeof key === 'object') throw new Error(`Bad value key:${key}`);\r\n if (!CheckUtils.isValid(value)) throw new Error(`Value ${key} has wrong value${value}`);\r\n\r\n // define keys\r\n this.define(key);\r\n\r\n let copedValue = value;\r\n\r\n if (typeof value === 'object' && value !== null) {\r\n copedValue = (Array.isArray(value)) ? Object.assign([], value) : ({ ...value });\r\n }\r\n\r\n const values = valuesMap.get(this);\r\n values[key] = copedValue;\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Set the array of context values.\r\n * @param values\r\n * @returns {Context}\r\n */\r\n setValues(values) {\r\n this.removeValues();\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(values).forEach((key) => {\r\n if (has.call(values, key)) {\r\n this.setValue(key, values[key]);\r\n }\r\n });\r\n\r\n return this;\r\n }\r\n\r\n /**\r\n * Get an value from the context.\r\n * @param key\r\n * @param def\r\n * @returns {*}\r\n */\r\n getValue(key, def) {\r\n return (key in valuesMap.get(this))\r\n ? valuesMap.get(this)[key]\r\n : def;\r\n }\r\n\r\n /**\r\n * Get all of the current value on the context.\r\n */\r\n getValues() {\r\n return { ...valuesMap.get(this) };\r\n }\r\n\r\n /**\r\n * Remove value\r\n * @param key\r\n * @returns {Context}\r\n */\r\n removeValue(key) {\r\n const values = valuesMap.get(this);\r\n delete values[key];\r\n\r\n this.removeDefine(key);\r\n return this;\r\n }\r\n\r\n /**\r\n * Remove values\r\n * @param keys\r\n */\r\n removeValues(keys) {\r\n const keysAr = keys || Object.keys(valuesMap.get(this));\r\n keysAr.forEach((key) => this.removeValue(key));\r\n }\r\n\r\n /**\r\n * Define value getter and setter\r\n * @param key\r\n * @param onlyGetter\r\n * @private\r\n */\r\n define(key, onlyGetter) {\r\n if (this.hasDefine(key)) return;\r\n\r\n if (!CheckUtils.isValid(key) || typeof property === 'object') {\r\n throw new TypeError(`Bad value name:${key}`);\r\n }\r\n\r\n const self = this;\r\n\r\n // delete property\r\n delete this[key];\r\n\r\n const descriptors = {\r\n enumerable: true,\r\n configurable: true,\r\n get() {\r\n return self.getValue(key);\r\n },\r\n };\r\n\r\n if (!onlyGetter) {\r\n descriptors.set = (value) => self.setValue(key, value);\r\n }\r\n\r\n const defined = definedMap.get(this);\r\n defined[key] = true;\r\n\r\n Object.defineProperty(this, key, descriptors);\r\n }\r\n\r\n /**\r\n * Check if value has defined\r\n * @param key\r\n * @private\r\n */\r\n hasDefine(key) {\r\n return Boolean(definedMap.get(this)[key]);\r\n }\r\n\r\n /**\r\n * Remove value getter and setter\r\n * @param key\r\n * @private\r\n */\r\n removeDefine(key) {\r\n if (!this.hasDefine(key)) return;\r\n\r\n const defined = definedMap.get(this);\r\n delete defined[key];\r\n\r\n delete this[key];\r\n }\r\n}\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\n/**\r\n * Validation parameters map\r\n *\r\n * @type {WeakMap}\r\n */\r\nconst vpMap = new WeakMap();\r\n\r\nexport default class ValidationParameters {\r\n constructor() {\r\n vpMap.set(this, { parameters: {} });\r\n }\r\n\r\n /**\r\n * Sets the target product\r\n *\r\n * optional productNumber, must be provided in case licensee auto-create is enabled\r\n * @param productNumber\r\n * @returns {ValidationParameters}\r\n */\r\n setProductNumber(productNumber) {\r\n vpMap.get(this).productNumber = productNumber;\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the target product\r\n * @returns {*}\r\n */\r\n getProductNumber() {\r\n return vpMap.get(this).productNumber;\r\n }\r\n\r\n /**\r\n * Sets the name for the new licensee\r\n *\r\n * optional human-readable licensee name in case licensee will be auto-created. This parameter must not\r\n * be the name, but can be used to store any other useful string information with new licensees, up to\r\n * 1000 characters.\r\n * @param licenseeName\r\n * @returns {NetLicensing.ValidationParameters}\r\n */\r\n setLicenseeName(licenseeName) {\r\n vpMap.get(this).licenseeName = licenseeName;\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the licensee name\r\n * @returns {*}\r\n */\r\n getLicenseeName() {\r\n return vpMap.get(this).licenseeName;\r\n }\r\n\r\n /**\r\n * Sets the licensee secret\r\n *\r\n * licensee secret stored on the client side. Refer to Licensee Secret documentation for details.\r\n * @param licenseeSecret\r\n * @returns {ValidationParameters}\r\n * @deprecated use 'NodeLocked' licensingModel instead\r\n */\r\n setLicenseeSecret(licenseeSecret) {\r\n vpMap.get(this).licenseeSecret = licenseeSecret;\r\n return this;\r\n }\r\n\r\n /**\r\n * Get the licensee secret\r\n * @returns {*}\r\n * @deprecated use 'NodeLocked' licensingModel instead\r\n */\r\n getLicenseeSecret() {\r\n return vpMap.get(this).licenseeSecret;\r\n }\r\n\r\n /**\r\n * Get validation parameters\r\n * @returns {*}\r\n */\r\n getParameters() {\r\n return { ...vpMap.get(this).parameters };\r\n }\r\n\r\n getProductModuleValidationParameters(productModuleNumber) {\r\n return { ...vpMap.get(this).parameters[productModuleNumber] };\r\n }\r\n\r\n setProductModuleValidationParameters(productModuleNumber, productModuleParameters) {\r\n const { parameters } = vpMap.get(this);\r\n\r\n if (parameters[productModuleNumber] === undefined || !Object.keys(parameters[productModuleNumber]).length) {\r\n parameters[productModuleNumber] = {};\r\n }\r\n\r\n parameters[productModuleNumber] = Object.assign(parameters[productModuleNumber], productModuleParameters);\r\n\r\n return this;\r\n }\r\n}\r\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n var cookies = require('./../helpers/cookies');\n\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (requestData === undefined) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildFullPath = require('../core/buildFullPath');\nvar buildURL = require('./../helpers/buildURL');\nvar http = require('http');\nvar https = require('https');\nvar httpFollow = require('follow-redirects').http;\nvar httpsFollow = require('follow-redirects').https;\nvar url = require('url');\nvar zlib = require('zlib');\nvar pkg = require('./../../package.json');\nvar createError = require('../core/createError');\nvar enhanceError = require('../core/enhanceError');\n\nvar isHttps = /https:?/;\n\n/*eslint consistent-return:0*/\nmodule.exports = function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n var resolve = function resolve(value) {\n resolvePromise(value);\n };\n var reject = function reject(value) {\n rejectPromise(value);\n };\n var data = config.data;\n var headers = config.headers;\n\n // Set User-Agent (required by some servers)\n // Only set header if it hasn't been set in config\n // See https://github.com/axios/axios/issues/69\n if (!headers['User-Agent'] && !headers['user-agent']) {\n headers['User-Agent'] = 'axios/' + pkg.version;\n }\n\n if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(createError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers['Content-Length'] = data.length;\n }\n\n // HTTP basic authentication\n var auth = undefined;\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n // Parse url\n var fullPath = buildFullPath(config.baseURL, config.url);\n var parsed = url.parse(fullPath);\n var protocol = parsed.protocol || 'http:';\n\n if (!auth && parsed.auth) {\n var urlAuth = parsed.auth.split(':');\n var urlUsername = urlAuth[0] || '';\n var urlPassword = urlAuth[1] || '';\n auth = urlUsername + ':' + urlPassword;\n }\n\n if (auth) {\n delete headers.Authorization;\n }\n\n var isHttpsRequest = isHttps.test(protocol);\n var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n\n var options = {\n path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\\?/, ''),\n method: config.method.toUpperCase(),\n headers: headers,\n agent: agent,\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth: auth\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n }\n\n var proxy = config.proxy;\n if (!proxy && proxy !== false) {\n var proxyEnv = protocol.slice(0, -1) + '_proxy';\n var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];\n if (proxyUrl) {\n var parsedProxyUrl = url.parse(proxyUrl);\n var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;\n var shouldProxy = true;\n\n if (noProxyEnv) {\n var noProxy = noProxyEnv.split(',').map(function trim(s) {\n return s.trim();\n });\n\n shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {\n if (!proxyElement) {\n return false;\n }\n if (proxyElement === '*') {\n return true;\n }\n if (proxyElement[0] === '.' &&\n parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {\n return true;\n }\n\n return parsed.hostname === proxyElement;\n });\n }\n\n\n if (shouldProxy) {\n proxy = {\n host: parsedProxyUrl.hostname,\n port: parsedProxyUrl.port\n };\n\n if (parsedProxyUrl.auth) {\n var proxyUrlAuth = parsedProxyUrl.auth.split(':');\n proxy.auth = {\n username: proxyUrlAuth[0],\n password: proxyUrlAuth[1]\n };\n }\n }\n }\n }\n\n if (proxy) {\n options.hostname = proxy.host;\n options.host = proxy.host;\n options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');\n options.port = proxy.port;\n options.path = protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path;\n\n // Basic proxy authorization\n if (proxy.auth) {\n var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n }\n\n var transport;\n var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsProxy ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n transport = isHttpsProxy ? httpsFollow : httpFollow;\n }\n\n if (config.maxContentLength && config.maxContentLength > -1) {\n options.maxBodyLength = config.maxContentLength;\n }\n\n // Create the request\n var req = transport.request(options, function handleResponse(res) {\n if (req.aborted) return;\n\n // uncompress the response body transparently if required\n var stream = res;\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n stream = (res.statusCode === 204) ? stream : stream.pipe(zlib.createUnzip());\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n }\n\n // return the last request in case of redirects\n var lastRequest = res.req || req;\n\n var response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: res.headers,\n config: config,\n request: lastRequest\n };\n\n if (config.responseType === 'stream') {\n response.data = stream;\n settle(resolve, reject, response);\n } else {\n var responseBuffer = [];\n stream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && Buffer.concat(responseBuffer).length > config.maxContentLength) {\n stream.destroy();\n reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n config, null, lastRequest));\n }\n });\n\n stream.on('error', function handleStreamError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, lastRequest));\n });\n\n stream.on('end', function handleStreamEnd() {\n var responseData = Buffer.concat(responseBuffer);\n if (config.responseType !== 'arraybuffer') {\n responseData = responseData.toString(config.responseEncoding);\n }\n\n response.data = responseData;\n settle(resolve, reject, response);\n });\n }\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, req));\n });\n\n // Handle request timeout\n if (config.timeout) {\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devoring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(config.timeout, function handleRequestTimeout() {\n req.abort();\n reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED', req));\n });\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (req.aborted) return;\n\n req.abort();\n reject(cancel);\n });\n }\n\n // Send the request\n if (utils.isStream(data)) {\n data.on('error', function handleStreamError(err) {\n reject(enhanceError(err, config, null, req));\n }).pipe(req);\n } else {\n req.end(data);\n }\n });\n};\n","module.exports = require(\"assert\");","module.exports = require(\"stream\");","/**\n * Detect Electron renderer process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer') {\n module.exports = require('./browser.js');\n} else {\n module.exports = require('./node.js');\n}\n","/**\n * This is the web browser implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = require('./debug');\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome\n && 'undefined' != typeof chrome.storage\n ? chrome.storage.local\n : localstorage();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n '#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC',\n '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF',\n '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC',\n '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF',\n '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC',\n '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033',\n '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366',\n '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933',\n '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC',\n '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF',\n '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {\n return true;\n }\n\n // Internet Explorer and Edge do not support colors.\n if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n return false;\n }\n\n // is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n // is firebug? http://stackoverflow.com/a/398120/376773\n (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n // is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n // double check webkit in userAgent just in case we are in a worker\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nexports.formatters.j = function(v) {\n try {\n return JSON.stringify(v);\n } catch (err) {\n return '[UnexpectedJSONParseError]: ' + err.message;\n }\n};\n\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var useColors = this.useColors;\n\n args[0] = (useColors ? '%c' : '')\n + this.namespace\n + (useColors ? ' %c' : ' ')\n + args[0]\n + (useColors ? '%c ' : ' ')\n + '+' + exports.humanize(this.diff);\n\n if (!useColors) return;\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit')\n\n // the final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function(match) {\n if ('%%' === match) return;\n index++;\n if ('%c' === match) {\n // we only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n\n args.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\nfunction log() {\n // this hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return 'object' === typeof console\n && console.log\n && Function.prototype.apply.call(console.log, console, arguments);\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch(e) {}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n var r;\n try {\n r = exports.storage.debug;\n } catch(e) {}\n\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n\n/**\n * Enable namespaces listed in `localStorage.debug` initially.\n */\n\nexports.enable(load());\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isNaN(val) === false) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^((?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n if (ms >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (ms >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (ms >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (ms >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n return plural(ms, d, 'day') ||\n plural(ms, h, 'hour') ||\n plural(ms, m, 'minute') ||\n plural(ms, s, 'second') ||\n ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, n, name) {\n if (ms < n) {\n return;\n }\n if (ms < n * 1.5) {\n return Math.floor(ms / n) + ' ' + name;\n }\n return Math.ceil(ms / n) + ' ' + name + 's';\n}\n","/**\n * Module dependencies.\n */\n\nvar tty = require('tty');\nvar util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = require('./debug');\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\n\n/**\n * Colors.\n */\n\nexports.colors = [ 6, 2, 3, 4, 5, 1 ];\n\ntry {\n var supportsColor = require('supports-color');\n if (supportsColor && supportsColor.level >= 2) {\n exports.colors = [\n 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68,\n 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134,\n 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171,\n 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204,\n 205, 206, 207, 208, 209, 214, 215, 220, 221\n ];\n }\n} catch (err) {\n // swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(function (key) {\n return /^debug_/i.test(key);\n}).reduce(function (obj, key) {\n // camel-case\n var prop = key\n .substring(6)\n .toLowerCase()\n .replace(/_([a-z])/g, function (_, k) { return k.toUpperCase() });\n\n // coerce string value into JS value\n var val = process.env[key];\n if (/^(yes|on|true|enabled)$/i.test(val)) val = true;\n else if (/^(no|off|false|disabled)$/i.test(val)) val = false;\n else if (val === 'null') val = null;\n else val = Number(val);\n\n obj[prop] = val;\n return obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n return 'colors' in exports.inspectOpts\n ? Boolean(exports.inspectOpts.colors)\n : tty.isatty(process.stderr.fd);\n}\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nexports.formatters.o = function(v) {\n this.inspectOpts.colors = this.useColors;\n return util.inspect(v, this.inspectOpts)\n .split('\\n').map(function(str) {\n return str.trim()\n }).join(' ');\n};\n\n/**\n * Map %o to `util.inspect()`, allowing multiple lines if needed.\n */\n\nexports.formatters.O = function(v) {\n this.inspectOpts.colors = this.useColors;\n return util.inspect(v, this.inspectOpts);\n};\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var name = this.namespace;\n var useColors = this.useColors;\n\n if (useColors) {\n var c = this.color;\n var colorCode = '\\u001b[3' + (c < 8 ? c : '8;5;' + c);\n var prefix = ' ' + colorCode + ';1m' + name + ' ' + '\\u001b[0m';\n\n args[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n args.push(colorCode + 'm+' + exports.humanize(this.diff) + '\\u001b[0m');\n } else {\n args[0] = getDate() + name + ' ' + args[0];\n }\n}\n\nfunction getDate() {\n if (exports.inspectOpts.hideDate) {\n return '';\n } else {\n return new Date().toISOString() + ' ';\n }\n}\n\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\nfunction log() {\n return process.stderr.write(util.format.apply(util, arguments) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n if (null == namespaces) {\n // If you set a process.env field to null or undefined, it gets cast to the\n // string 'null' or 'undefined'. Just delete instead.\n delete process.env.DEBUG;\n } else {\n process.env.DEBUG = namespaces;\n }\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n return process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init (debug) {\n debug.inspectOpts = {};\n\n var keys = Object.keys(exports.inspectOpts);\n for (var i = 0; i < keys.length; i++) {\n debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n }\n}\n\n/**\n * Enable namespaces listed in `process.env.DEBUG` initially.\n */\n\nexports.enable(load());\n","module.exports = require(\"tty\");","module.exports = require(\"util\");","'use strict';\nconst os = require('os');\nconst hasFlag = require('has-flag');\n\nconst env = process.env;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false')) {\n\tforceColor = false;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = true;\n}\nif ('FORCE_COLOR' in env) {\n\tforceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(stream) {\n\tif (forceColor === false) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (stream && !stream.isTTY && forceColor !== true) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor ? 1 : 0;\n\n\tif (process.platform === 'win32') {\n\t\t// Node.js 7.5.0 is the first version of Node.js to include a patch to\n\t\t// libuv that enables 256 color output on Windows. Anything earlier and it\n\t\t// won't work. However, here we target Node.js 8 at minimum as it is an LTS\n\t\t// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows\n\t\t// release that supports 256 colors. Windows 10 build 14931 is the first release\n\t\t// that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(process.versions.node.split('.')[0]) >= 8 &&\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: getSupportLevel(process.stdout),\n\tstderr: getSupportLevel(process.stderr)\n};\n","module.exports = require(\"os\");","'use strict';\nmodule.exports = (flag, argv) => {\n\targv = argv || process.argv;\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst pos = argv.indexOf(prefix + flag);\n\tconst terminatorPos = argv.indexOf('--');\n\treturn pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);\n};\n","module.exports = require(\"zlib\");","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","(function () {\n \"use strict\";\n\n function btoa(str) {\n var buffer;\n\n if (str instanceof Buffer) {\n buffer = str;\n } else {\n buffer = Buffer.from(str.toString(), 'binary');\n }\n\n return buffer.toString('base64');\n }\n\n module.exports = btoa;\n}());\n","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeFunction = require(\"./isNativeFunction\");\n\nvar construct = require(\"./construct\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;","function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport ValidationResults from '../vo/ValidationResults';\r\nimport itemToLicensee from '../converters/itemToLicensee';\r\nimport Page from '../vo/Page';\r\nimport itemToObject from '../converters/itemToObject';\r\n\r\n/**\r\n * JS representation of the Licensee Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/licensee-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new licensee object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#create-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent product to which the new licensee is to be added\r\n * @param productNumber string\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param licensee NetLicensing.Licensee\r\n *\r\n * return the newly created licensee object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, productNumber, licensee) {\r\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\r\n\r\n licensee.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Licensee.ENDPOINT_PATH, licensee.asPropertiesMap());\r\n\r\n return itemToLicensee(item);\r\n },\r\n\r\n /**\r\n * Gets licensee by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#get-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the licensee number\r\n * @param number string\r\n *\r\n * return the licensee in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToLicensee(item);\r\n },\r\n\r\n /**\r\n * Returns all licensees of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#licensees-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of licensees (of all products) or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.Licensee.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToLicensee(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates licensee properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#update-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * licensee number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param licensee NetLicensing.Licensee\r\n *\r\n * return updated licensee in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, licensee) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, licensee.asPropertiesMap());\r\n\r\n return itemToLicensee(item);\r\n },\r\n\r\n /**\r\n * Deletes licensee.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#delete-licensee\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * licensee number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service\r\n .delete(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n\r\n /**\r\n * Validates active licenses of the licensee. See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/licensee-services#validate-licensee\r\n *\r\n * @param context NetLicensing.Context\r\n *\r\n * licensee number\r\n * @param number string\r\n *\r\n * optional validation parameters. See ValidationParameters and licensing model documentation for\r\n * details.\r\n * @param validationParameters NetLicensing.ValidationParameters.\r\n *\r\n * @returns {ValidationResults}\r\n */\r\n async validate(context, number, validationParameters) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = {};\r\n\r\n if (validationParameters.getProductNumber()) {\r\n queryParams.productNumber = validationParameters.getProductNumber();\r\n }\r\n\r\n if (validationParameters.getLicenseeName()) {\r\n queryParams.licenseeName = validationParameters.getLicenseeName();\r\n }\r\n\r\n if (validationParameters.getLicenseeSecret()) {\r\n queryParams.licenseeSecret = validationParameters.getLicenseeSecret();\r\n }\r\n\r\n let pmIndex = 0;\r\n const parameters = validationParameters.getParameters();\r\n\r\n const has = Object.prototype.hasOwnProperty;\r\n\r\n Object.keys(parameters).forEach((productModuleName) => {\r\n queryParams[`${Constants.ProductModule.PRODUCT_MODULE_NUMBER}${pmIndex}`] = productModuleName;\r\n if (!has.call(parameters, productModuleName)) return;\r\n\r\n const parameter = parameters[productModuleName];\r\n\r\n Object.keys(parameter).forEach((key) => {\r\n if (has.call(parameter, key)) {\r\n queryParams[key + pmIndex] = parameter[key];\r\n }\r\n });\r\n pmIndex += 1;\r\n });\r\n\r\n const { data: { items: { item: items }, ttl } } = await Service.post(\r\n context,\r\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_VALIDATE}`,\r\n queryParams,\r\n );\r\n\r\n const validationResults = new ValidationResults();\r\n validationResults.setTtl(ttl);\r\n\r\n items.forEach((v) => {\r\n const item = itemToObject(v);\r\n validationResults.setProductModuleValidation(item[Constants.ProductModule.PRODUCT_MODULE_NUMBER], item);\r\n });\r\n\r\n return validationResults;\r\n },\r\n\r\n\r\n /**\r\n * Transfer licenses between licensees.\r\n * @see https://netlicensing.io/wiki/licensee-services#transfer-licenses\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the number of the licensee receiving licenses\r\n * @param number string\r\n *\r\n * the number of the licensee delivering licenses\r\n * @param sourceLicenseeNumber string\r\n *\r\n * @returns {Promise}\r\n */\r\n transfer(context, number, sourceLicenseeNumber) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n CheckUtils.paramNotEmpty(sourceLicenseeNumber, Constants.Licensee.SOURCE_LICENSEE_NUMBER);\r\n\r\n const queryParams = { sourceLicenseeNumber };\r\n\r\n return Service\r\n .post(\r\n context,\r\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_TRANSFER}`,\r\n queryParams,\r\n );\r\n },\r\n};\r\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) {\n return;\n }\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nmodule.exports = _nonIterableRest;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToLicense from '../converters/itemToLicense';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the License Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/license-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new license object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#create-license\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent licensee to which the new license is to be added\r\n * @param licenseeNumber string\r\n *\r\n * license template that the license is created from\r\n * @param licenseTemplateNumber string\r\n *\r\n * For privileged logins specifies transaction for the license creation. For regular logins new\r\n * transaction always created implicitly, and the operation will be in a separate transaction.\r\n * Transaction is generated with the provided transactionNumber, or, if transactionNumber is null, with\r\n * auto-generated number.\r\n * @param transactionNumber null|string\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param license NetLicensing.License\r\n *\r\n * return the newly created license object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, licenseeNumber, licenseTemplateNumber, transactionNumber, license) {\r\n CheckUtils.paramNotEmpty(licenseeNumber, Constants.Licensee.LICENSEE_NUMBER);\r\n CheckUtils.paramNotEmpty(licenseTemplateNumber, Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER);\r\n\r\n license.setProperty(Constants.Licensee.LICENSEE_NUMBER, licenseeNumber);\r\n license.setProperty(Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER, licenseTemplateNumber);\r\n\r\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.License.ENDPOINT_PATH, license.asPropertiesMap());\r\n\r\n return itemToLicense(item);\r\n },\r\n\r\n\r\n /**\r\n * Gets license by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#get-license\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the license number\r\n * @param number string\r\n *\r\n * return the license in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.License.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToLicense(item);\r\n },\r\n\r\n /**\r\n * Returns licenses of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#licenses-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * return array of licenses (of all products) or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.License.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToLicense(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates license properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#update-license\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license number\r\n * @param number string\r\n *\r\n * transaction for the license update. Created implicitly if transactionNumber is null. In this case the\r\n * operation will be in a separate transaction.\r\n * @param transactionNumber string|null\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param license NetLicensing.License\r\n *\r\n * return updated license in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, transactionNumber, license) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.License.ENDPOINT_PATH}/${number}`, license.asPropertiesMap());\r\n\r\n return itemToLicense(item);\r\n },\r\n\r\n /**\r\n * Deletes license.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-services#delete-license\r\n *\r\n * When any license is deleted, corresponding transaction is created automatically.\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service\r\n .delete(context, `${Constants.License.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToLicenseTemplate from '../converters/itemToLicenseTemplate';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/license-template-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new license template object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#create-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent product module to which the new license template is to be added\r\n * @param productModuleNumber\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param licenseTemplate NetLicensing.LicenseTemplate\r\n *\r\n * the newly created license template object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, productModuleNumber, licenseTemplate) {\r\n CheckUtils.paramNotEmpty(productModuleNumber, Constants.ProductModule.PRODUCT_MODULE_NUMBER);\r\n\r\n licenseTemplate.setProperty(Constants.ProductModule.PRODUCT_MODULE_NUMBER, productModuleNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.LicenseTemplate.ENDPOINT_PATH, licenseTemplate.asPropertiesMap());\r\n\r\n return itemToLicenseTemplate(item);\r\n },\r\n\r\n /**\r\n * Gets license template by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#get-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the license template number\r\n * @param number string\r\n *\r\n * return the license template object in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToLicenseTemplate(item);\r\n },\r\n\r\n /**\r\n * Returns all license templates of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#license-templates-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of license templates (of all products/modules) or null/empty list if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.LicenseTemplate.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToLicenseTemplate(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates license template properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#update-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license template number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param licenseTemplate NetLicensing.LicenseTemplate\r\n *\r\n * updated license template in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, licenseTemplate) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const path = `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`;\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, path, licenseTemplate.asPropertiesMap());\r\n\r\n return itemToLicenseTemplate(item);\r\n },\r\n\r\n /**\r\n * Deletes license template.See NetLicensingAPI JavaDoc for details:\r\n * @see https://netlicensing.io/wiki/license-template-services#delete-license-template\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * license template number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service\r\n .delete(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToPaymentMethod from '../converters/itemToPaymentMethod';\r\nimport Page from '../vo/Page';\r\n\r\nexport default {\r\n /**\r\n * Gets payment method by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/payment-method-services#get-payment-method\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the payment method number\r\n * @param number string\r\n *\r\n * return the payment method in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToPaymentMethod(item);\r\n },\r\n\r\n /**\r\n * Returns payment methods of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/payment-method-services#payment-methods-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of payment method entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.PaymentMethod.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToPaymentMethod(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates payment method properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/payment-method-services#update-payment-method\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the payment method number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param paymentMethod NetLicensing.PaymentMethod\r\n *\r\n * return updated payment method in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, paymentMethod) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const path = `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`;\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, path, paymentMethod.asPropertiesMap());\r\n\r\n return itemToPaymentMethod(item);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToProductModule from '../converters/itemToProductModule';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/product-module-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new product module object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#create-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * parent product to which the new product module is to be added\r\n * @param productNumber string\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param productModule NetLicensing.ProductModule\r\n *\r\n * the newly created product module object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, productNumber, productModule) {\r\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\r\n\r\n productModule.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.ProductModule.ENDPOINT_PATH, productModule.asPropertiesMap());\r\n\r\n return itemToProductModule(item);\r\n },\r\n\r\n /**\r\n * Gets product module by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#get-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the product module number\r\n * @param number string\r\n *\r\n * return the product module object in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToProductModule(item);\r\n },\r\n\r\n /**\r\n * Returns products of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#product-modules-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of product modules entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service.get(context, Constants.ProductModule.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToProductModule(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates product module properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#update-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product module number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param productModule NetLicensing.ProductModule\r\n *\r\n * updated product module in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, productModule) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, productModule.asPropertiesMap());\r\n\r\n return itemToProductModule(item);\r\n },\r\n\r\n /**\r\n * Deletes product module.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-module-services#delete-product-module\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product module number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service.delete(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Service from './Service';\r\nimport Constants from '../Constants';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToProduct from '../converters/itemToProduct';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the Product Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/product-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new product with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#create-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param product NetLicensing.Product\r\n *\r\n * return the newly created product object in promise\r\n * @returns {Promise}\r\n */\r\n\r\n async create(context, product) {\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Product.ENDPOINT_PATH, product.asPropertiesMap());\r\n return itemToProduct(item);\r\n },\r\n\r\n /**\r\n * Gets product by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#get-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the product number\r\n * @param number string\r\n *\r\n * return the product object in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Product.ENDPOINT_PATH}/${number}`);\r\n return itemToProduct(item);\r\n },\r\n\r\n /**\r\n * Returns products of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#products-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of product entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) throw new TypeError(`filter has bad value ${filter}`);\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service.get(context, Constants.Product.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToProduct(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates product properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#update-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param product NetLicensing.Product\r\n *\r\n * updated product in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, product) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, product.asPropertiesMap());\r\n\r\n return itemToProduct(item);\r\n },\r\n\r\n /**\r\n * Deletes product.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/product-services#delete-product\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * product number\r\n * @param number string\r\n *\r\n * if true, any entities that depend on the one being deleted will be deleted too\r\n * @param forceCascade boolean\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number, forceCascade) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const queryParams = { forceCascade: Boolean(forceCascade) };\r\n\r\n return Service.delete(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, queryParams);\r\n },\r\n};\r\n","var superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToToken from '../converters/itemToToken';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the Token Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/token-services\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new token.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#create-token\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param token NetLicensing.Token\r\n *\r\n * return created token in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, token) {\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Token.ENDPOINT_PATH, token.asPropertiesMap());\r\n\r\n return itemToToken(item);\r\n },\r\n\r\n /**\r\n * Gets token by its number..See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#get-token\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the token number\r\n * @param number\r\n *\r\n * return the token in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToToken(item);\r\n },\r\n\r\n /**\r\n * Returns tokens of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#tokens-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string|null\r\n *\r\n * array of token entities or empty array if nothing found.\r\n * @return array\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.Token.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToToken(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Delete token by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/token-services#delete-token\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the token number\r\n * @param number string\r\n *\r\n * return boolean state of delete in promise\r\n * @returns {Promise}\r\n */\r\n delete(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n return Service\r\n .delete(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToTransaction from '../converters/itemToTransaction';\r\nimport Page from '../vo/Page';\r\n\r\n/**\r\n * JS representation of the Transaction Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/transaction-services\r\n *\r\n * Transaction is created each time change to LicenseService licenses happens. For instance licenses are\r\n * obtained by a licensee, licenses disabled by vendor, licenses deleted, etc. Transaction is created no matter what\r\n * source has initiated the change to licenses: it can be either a direct purchase of licenses by a licensee via\r\n * NetLicensing Shop, or licenses can be given to a licensee by a vendor. Licenses can also be assigned implicitly by\r\n * NetLicensing if it is defined so by a license model (e.g. evaluation license may be given automatically). All these\r\n * events are reflected in transactions. Of all the transaction handling routines only read-only routines are exposed to\r\n * the public API, as transactions are only allowed to be created and modified by NetLicensing internally.\r\n *\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Creates new transaction object with given properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#create-transaction\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * non-null properties will be taken for the new object, null properties will either stay null, or will\r\n * be set to a default value, depending on property.\r\n * @param transaction NetLicensing.Transaction\r\n *\r\n * return the newly created transaction object in promise\r\n * @returns {Promise}\r\n */\r\n async create(context, transaction) {\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, Constants.Transaction.ENDPOINT_PATH, transaction.asPropertiesMap());\r\n\r\n return itemToTransaction(item);\r\n },\r\n\r\n /**\r\n * Gets transaction by its number.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#get-transaction\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * the transaction number\r\n * @param number string\r\n *\r\n * return the transaction in promise\r\n * @returns {Promise}\r\n */\r\n async get(context, number) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .get(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`);\r\n\r\n return itemToTransaction(item);\r\n },\r\n\r\n /**\r\n * Returns all transactions of a vendor.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#transactions-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter string\r\n *\r\n * array of transaction entities or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async list(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(context, Constants.Transaction.ENDPOINT_PATH, queryParams);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToTransaction(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Updates transaction properties.See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/transaction-services#update-transaction\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * transaction number\r\n * @param number string\r\n *\r\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\r\n * @param transaction NetLicensing.Transaction\r\n *\r\n * return updated transaction in promise.\r\n * @returns {Promise}\r\n */\r\n async update(context, number, transaction) {\r\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\r\n\r\n const { data: { items: { item: [item] } } } = await Service\r\n .post(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`, transaction.asPropertiesMap());\r\n\r\n return itemToTransaction(item);\r\n },\r\n};\r\n","/**\r\n * @author Labs64 \r\n * @license Apache-2.0\r\n * @link https://netlicensing.io\r\n * @copyright 2017 Labs64 NetLicensing\r\n */\r\n\r\nimport Constants from '../Constants';\r\nimport Service from './Service';\r\nimport CheckUtils from '../util/CheckUtils';\r\nimport FilterUtils from '../util/FilterUtils';\r\nimport itemToObject from '../converters/itemToObject';\r\nimport Page from '../vo/Page';\r\nimport itemToCountry from '../converters/itemToCountry';\r\n\r\n/**\r\n * JS representation of the Utility Service. See NetLicensingAPI for details:\r\n * https://netlicensing.io/wiki/utility-services\r\n * @constructor\r\n */\r\n\r\nexport default {\r\n /**\r\n * Returns all license types. See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/utility-services#license-types-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * array of available license types or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async listLicenseTypes(context) {\r\n const { data } = await Service\r\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSE_TYPES}`);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToObject(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Returns all license models. See NetLicensingAPI for details:\r\n * @see https://netlicensing.io/wiki/utility-services#licensing-models-list\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context NetLicensing.Context\r\n *\r\n * array of available license models or empty array if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async listLicensingModels(context) {\r\n const { data } = await Service\r\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSING_MODELS}`);\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToObject(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n\r\n /**\r\n * Returns all countries.\r\n *\r\n * determines the vendor on whose behalf the call is performed\r\n * @param context\r\n *\r\n * reserved for the future use, must be omitted / set to NULL\r\n * @param filter\r\n *\r\n * collection of available countries or null/empty list if nothing found in promise.\r\n * @returns {Promise}\r\n */\r\n async listCountries(context, filter) {\r\n const queryParams = {};\r\n\r\n if (filter) {\r\n if (!CheckUtils.isValid(filter)) {\r\n throw new TypeError(`filter has bad value ${filter}`);\r\n }\r\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\r\n }\r\n\r\n const { data } = await Service\r\n .get(\r\n context,\r\n `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_COUNTRIES}`,\r\n queryParams,\r\n );\r\n\r\n return Page(\r\n data.items.item.map((v) => itemToCountry(v)),\r\n data.items.pagenumber,\r\n data.items.itemsnumber,\r\n data.items.totalpages,\r\n data.items.totalitems,\r\n );\r\n },\r\n};\r\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://NetLicensing/webpack/universalModuleDefinition","webpack://NetLicensing/webpack/bootstrap","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/createClass.js","webpack://NetLicensing/./node_modules/axios/lib/utils.js","webpack://NetLicensing/./src/Constants.js","webpack://NetLicensing/./src/util/CheckUtils.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://NetLicensing/./src/converters/itemToObject.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/inherits.js","webpack://NetLicensing/./src/entities/BaseEntity.js","webpack://NetLicensing/./src/vo/Page.js","webpack://NetLicensing/./src/services/Service.js","webpack://NetLicensing/./src/util/FilterUtils.js","webpack://NetLicensing/./node_modules/@babel/runtime/regenerator/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/asyncToGenerator.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/typeof.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://NetLicensing/./src/entities/License.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/buildURL.js","webpack://NetLicensing/./node_modules/axios/lib/core/createError.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://NetLicensing/./src/entities/LicenseTransactionJoin.js","webpack://NetLicensing/./src/vo/ValidationResults.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/bind.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/isCancel.js","webpack://NetLicensing/./node_modules/axios/lib/defaults.js","webpack://NetLicensing/./node_modules/axios/lib/core/settle.js","webpack://NetLicensing/./node_modules/axios/lib/core/enhanceError.js","webpack://NetLicensing/./node_modules/axios/lib/core/buildFullPath.js","webpack://NetLicensing/external \"http\"","webpack://NetLicensing/external \"https\"","webpack://NetLicensing/./node_modules/follow-redirects/index.js","webpack://NetLicensing/external \"url\"","webpack://NetLicensing/./node_modules/debug/src/debug.js","webpack://NetLicensing/./node_modules/axios/lib/core/mergeConfig.js","webpack://NetLicensing/./node_modules/axios/lib/cancel/Cancel.js","webpack://NetLicensing/./src/errors/NlicError.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://NetLicensing/./src/converters/itemToLicensee.js","webpack://NetLicensing/./src/entities/Licensee.js","webpack://NetLicensing/./src/util/CastsUtils.js","webpack://NetLicensing/./src/converters/itemToLicense.js","webpack://NetLicensing/./src/converters/itemToLicenseTemplate.js","webpack://NetLicensing/./src/entities/LicenseTemplate.js","webpack://NetLicensing/./src/converters/itemToPaymentMethod.js","webpack://NetLicensing/./src/entities/PaymentMethod.js","webpack://NetLicensing/./src/converters/itemToProductModule.js","webpack://NetLicensing/./src/entities/ProductModule.js","webpack://NetLicensing/./src/converters/itemToProduct.js","webpack://NetLicensing/./src/entities/Product.js","webpack://NetLicensing/./src/entities/ProductDiscount.js","webpack://NetLicensing/./src/converters/itemToToken.js","webpack://NetLicensing/./src/entities/Token.js","webpack://NetLicensing/./src/converters/itemToTransaction.js","webpack://NetLicensing/./src/entities/Transaction.js","webpack://NetLicensing/./src/converters/itemToCountry.js","webpack://NetLicensing/./src/entities/Country.js","webpack://NetLicensing/./src/index.js","webpack://NetLicensing/./src/vo/Context.js","webpack://NetLicensing/./src/vo/ValidationParameters.js","webpack://NetLicensing/./node_modules/axios/index.js","webpack://NetLicensing/./node_modules/axios/lib/axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/Axios.js","webpack://NetLicensing/./node_modules/axios/lib/core/InterceptorManager.js","webpack://NetLicensing/./node_modules/axios/lib/core/dispatchRequest.js","webpack://NetLicensing/./node_modules/axios/lib/core/transformData.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://NetLicensing/./node_modules/axios/lib/adapters/xhr.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/combineURLs.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/cookies.js","webpack://NetLicensing/./node_modules/axios/lib/adapters/http.js","webpack://NetLicensing/external \"assert\"","webpack://NetLicensing/external \"stream\"","webpack://NetLicensing/./node_modules/debug/src/index.js","webpack://NetLicensing/./node_modules/debug/src/browser.js","webpack://NetLicensing/./node_modules/ms/index.js","webpack://NetLicensing/./node_modules/debug/src/node.js","webpack://NetLicensing/external \"tty\"","webpack://NetLicensing/external \"util\"","webpack://NetLicensing/./node_modules/supports-color/index.js","webpack://NetLicensing/external \"os\"","webpack://NetLicensing/./node_modules/has-flag/index.js","webpack://NetLicensing/external \"zlib\"","webpack://NetLicensing/./node_modules/axios/lib/cancel/CancelToken.js","webpack://NetLicensing/./node_modules/axios/lib/helpers/spread.js","webpack://NetLicensing/./node_modules/btoa/index.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/isNativeFunction.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/construct.js","webpack://NetLicensing/./src/services/LicenseeService.js","webpack://NetLicensing/./node_modules/regenerator-runtime/runtime.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://NetLicensing/./src/services/LicenseService.js","webpack://NetLicensing/./src/services/LicenseTemplateService.js","webpack://NetLicensing/./src/services/PaymentMethodService.js","webpack://NetLicensing/./src/services/ProductModuleService.js","webpack://NetLicensing/./src/services/ProductService.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/get.js","webpack://NetLicensing/./node_modules/@babel/runtime/helpers/superPropBase.js","webpack://NetLicensing/./src/services/TokenService.js","webpack://NetLicensing/./src/services/TransactionService.js","webpack://NetLicensing/./src/services/UtilityService.js"],"names":["root","factory","exports","module","define","amd","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","obj","default","instance","Constructor","TypeError","_defineProperties","target","props","length","descriptor","configurable","writable","protoProps","staticProps","toString","isArray","val","isUndefined","isObject","isFunction","forEach","fn","isArrayBuffer","isBuffer","constructor","isFormData","FormData","isArrayBufferView","ArrayBuffer","isView","buffer","isString","isNumber","isDate","isFile","isBlob","isStream","pipe","isURLSearchParams","URLSearchParams","isStandardBrowserEnv","navigator","product","window","document","merge","result","assignValue","arguments","deepMerge","extend","a","b","thisArg","trim","str","replace","BASIC_AUTHENTICATION","APIKEY_IDENTIFICATION","ANONYMOUS_IDENTIFICATION","ACTIVE","NUMBER","NAME","VERSION","DELETED","CASCADE","PRICE","DISCOUNT","CURRENCY","IN_USE","FILTER","BASE_URL","USERNAME","PASSWORD","SECURITY_MODE","LicensingModel","VALID","TryAndBuy","Rental","RED_THRESHOLD","YELLOW_THRESHOLD","Subscription","Floating","MultiFeature","PayPerUse","PricingTable","Quota","NodeLocked","Vendor","VENDOR_NUMBER","VENDOR_TYPE","Product","ENDPOINT_PATH","PRODUCT_NUMBER","LICENSEE_AUTO_CREATE","DESCRIPTION","LICENSING_INFO","DISCOUNTS","PROP_LICENSEE_SECRET_MODE","PROP_VAT_MODE","Discount","TOTAL_PRICE","AMOUNT_FIX","AMOUNT_PERCENT","LicenseeSecretMode","DISABLED","PREDEFINED","CLIENT","ProductModule","PRODUCT_MODULE_NUMBER","PRODUCT_MODULE_NAME","LICENSING_MODEL","LicenseTemplate","LICENSE_TEMPLATE_NUMBER","LICENSE_TYPE","AUTOMATIC","HIDDEN","HIDE_LICENSES","PROP_LICENSEE_SECRET","LicenseType","FEATURE","TIMEVOLUME","FLOATING","QUANTITY","Token","EXPIRATION_TIME","TOKEN_TYPE","API_KEY","TOKEN_PROP_EMAIL","TOKEN_PROP_VENDORNUMBER","TOKEN_PROP_SHOP_URL","Type","DEFAULT","SHOP","APIKEY","Transaction","TRANSACTION_NUMBER","GRAND_TOTAL","STATUS","SOURCE","DATE_CREATED","DATE_CLOSED","VAT","VAT_MODE","LICENSE_TRANSACTION_JOIN","SOURCE_SHOP_ONLY","Status","CANCELLED","CLOSED","PENDING","Licensee","ENDPOINT_PATH_VALIDATE","ENDPOINT_PATH_TRANSFER","LICENSEE_NUMBER","SOURCE_LICENSEE_NUMBER","PROP_LICENSEE_NAME","PROP_MARKED_FOR_TRANSFER","License","LICENSE_NUMBER","PaymentMethod","Utility","ENDPOINT_PATH_LICENSE_TYPES","ENDPOINT_PATH_LICENSING_MODELS","ENDPOINT_PATH_COUNTRIES","LICENSING_MODEL_PROPERTIES","ROLE_APIKEY_LICENSEE","ROLE_APIKEY_ANALYTICS","ROLE_APIKEY_OPERATION","ROLE_APIKEY_MAINTENANCE","ROLE_APIKEY_ADMIN","isValid","valid","undefined","Number","isFinite","isNaN","paramNotNull","parameter","parameterName","concat","paramNotEmpty","_getPrototypeOf","setPrototypeOf","getPrototypeOf","__proto__","itemToObject","item","list","Array","push","_typeof","assertThisInitialized","self","subClass","superClass","_CheckUtils","_interopRequireDefault","_CastsUtils","propertiesMap","WeakMap","definedMap","castsMap","BaseEntity","_ref","properties","casts","_classCallCheck2","set","setProperties","CheckUtils","_typeof2","castedValue","cast","setProperty","_this","removeProperties","has","keys","def","_objectSpread","removeDefine","_this2","removeProperty","Boolean","hasDefine","descriptors","getProperty","_this3","getProperties","customProperties","content","pageNumber","itemsNumber","totalPages","totalItems","paginator","getContent","getPageNumber","getItemsNumber","getTotalPages","getTotalItems","hasNext","paginatorKeys","Proxy","indexOf","_axios","_btoa","_Constants","_NlicError","_package","httpXHR","axiosInstance","Service","axios","instanse","context","urlTemplate","queryParams","request","method","template","String","params","toLowerCase","Error","getBaseUrl","url","encodeURI","responseType","headers","Accept","transformRequest","data","toQueryString","pkg","version","process","getSecurityMode","Constants","getUsername","getPassword","auth","username","password","getApiKey","Authorization","getAxiosInstance","then","response","catch","e","error","NlicError","config","code","info","getInfo","message","infos","RegExp","test","prefix","query","k","v","Date","toISOString","encodeURIComponent","join","FILTER_DELIMITER","FILTER_PAIR_DELIMITER","encode","filter","decode","split","_v$split","_v$split2","_slicedToArray2","arrayWithHoles","iterableToArrayLimit","nonIterableRest","arr","asyncGeneratorStep","gen","resolve","reject","_next","_throw","arg","done","Promise","args","apply","err","iterator","_possibleConstructorReturn2","_getPrototypeOf2","number","active","price","hidden","parentfeature","timeVolume","startDate","inUse","utils","paramsSerializer","serializedParams","parts","JSON","stringify","hashmarkIndex","slice","enhanceError","_setPrototypeOf","LicenseTransactionJoin","transaction","license","vr","ValidationResults","validators","productModuleNumber","productModuleValidation","ttl","getValidators","__CANCEL__","normalizeHeaderName","DEFAULT_CONTENT_TYPE","Content-Type","setContentTypeIfUnset","adapter","defaults","XMLHttpRequest","transformResponse","parse","timeout","xsrfCookieName","xsrfHeaderName","maxContentLength","validateStatus","status","common","createError","isAxiosError","toJSON","description","fileName","lineNumber","columnNumber","stack","isAbsoluteURL","combineURLs","baseURL","requestedURL","require","http","https","assert","Writable","debug","SAFE_METHODS","GET","HEAD","OPTIONS","TRACE","eventHandlers","RedirectableRequest","options","responseCallback","_options","_redirectCount","_redirects","_requestBodyLength","_requestBodyBuffers","host","hostname","on","_onNativeResponse","_processResponse","pathname","path","searchPos","substring","search","_performRequest","wrap","protocols","maxRedirects","maxBodyLength","nativeProtocols","scheme","protocol","nativeProtocol","wrappedProtocol","callback","assign","equal","end","event","_redirectable","emit","write","encoding","_currentRequest","abort","currentRequest","setHeader","removeHeader","agents","substr","agent","_currentUrl","format","_isRedirect","buffers","writeNext","trackRedirects","statusCode","location","followRedirects","header","redirectUrl","destroy","responseUrl","redirects","createDebug","namespace","prevTime","enabled","curr","ms","diff","prev","coerce","unshift","index","match","formatter","formatters","splice","formatArgs","log","console","useColors","color","hash","charCodeAt","colors","Math","abs","selectColor","init","instances","disable","enable","namespaces","save","names","skips","len","humanize","config1","config2","valueFromConfig2Keys","mergeDeepPropertiesKeys","defaultToConfig2Keys","prop","axiosKeys","otherKeys","Cancel","_len","_key","_getPrototypeOf3","isNlicError","ReferenceError","_itemToObject","_Licensee","licenseeSecret","markedForTransfer","parseInt","parseFloat","_License","_LicenseTemplate","licenseType","currency","automatic","hideLicenses","gracePeriod","timeVolumePeriod","maxSessions","quantity","_PaymentMethod","paypal.subject","paypalSubject","_ProductModule","licensingModel","maxCheckoutValidity","yellowThreshold","redThreshold","licenseTemplate","licenseeSecretMode","_Product","discounts","discount","setProductDiscounts","_BaseEntity2","_ProductDiscount","discountsMap","discountsTouched","licensingInfo","licenseeAutoCreate","_assertThisInitialized2","productDiscount","ProductDiscount","addDiscount","_get2","map","totalPrice","amountFix","amountPercent","getTotalPrice","getCurrency","amount","getAmountFix","getAmountPercent","_Token","expirationTime","vendorNumber","tokenType","licenseeNumber","successURL","successURLTitle","cancelURL","cancelURLTitle","shopURL","role","setApiKeyRole","getApiKeyRole","apiKeyRole","_Transaction","_LicenseTransactionJoin","licenseTransactionJoin","joins","setLicense","setTransaction","setLicenseTransactionJoins","source","grandTotal","dateCreated","dateClosed","paymentMethod","licenseTransactionJoins","_Country","Country","vatPercent","isEu","vat","_Context","_Page","_ValidationParameters","_ValidationResults","_Service","_LicenseeService","_LicenseService","_LicenseTemplateService","_PaymentMethodService","_ProductModuleService","_ProductService","_TokenService","_TransactionService","_UtilityService","_BaseEntity","_itemToCountry","_itemToLicense","_itemToLicensee","_itemToLicenseTemplate","_itemToPaymentMethod","_itemToProduct","_itemToProductModule","_itemToToken","_itemToTransaction","_FilterUtils","NetLicensing","Context","Page","ValidationParameters","LicenseeService","LicenseService","LicenseTemplateService","PaymentMethodService","ProductModuleService","ProductService","TokenService","TransactionService","UtilityService","itemToCountry","itemToLicense","itemToLicensee","itemToLicenseTemplate","itemToPaymentMethod","itemToProduct","itemToProductModule","itemToToken","itemToTransaction","CastsUtils","FilterUtils","valuesMap","defaultsMap","values","baseUrl","securityMode","setValues","setValue","getValue","apiKey","copedValue","removeValues","removeValue","onlyGetter","vpMap","parameters","productNumber","licenseeName","productModuleParameters","Axios","mergeConfig","createInstance","defaultConfig","instanceConfig","CancelToken","isCancel","all","promises","spread","buildURL","InterceptorManager","dispatchRequest","interceptors","chain","promise","interceptor","fulfilled","rejected","shift","getUri","handlers","use","eject","id","h","transformData","throwIfCancellationRequested","cancelToken","throwIfRequested","reason","fns","normalizedName","toUpperCase","settle","buildFullPath","parseHeaders","isURLSameOrigin","requestData","requestHeaders","btoa","fullPath","open","onreadystatechange","readyState","responseURL","responseHeaders","getAllResponseHeaders","responseText","statusText","onabort","onerror","ontimeout","timeoutErrorMessage","cookies","xsrfValue","withCredentials","read","setRequestHeader","onDownloadProgress","addEventListener","onUploadProgress","upload","cancel","send","relativeURL","ignoreDuplicateOf","parsed","line","originURL","msie","userAgent","urlParsingNode","createElement","resolveURL","href","setAttribute","port","charAt","requestURL","expires","domain","secure","cookie","toGMTString","decodeURIComponent","remove","now","httpFollow","httpsFollow","zlib","isHttps","resolvePromise","rejectPromise","Buffer","from","Uint8Array","urlAuth","isHttpsRequest","httpsAgent","httpAgent","socketPath","transport","proxy","proxyEnv","proxyUrl","env","parsedProxyUrl","noProxyEnv","no_proxy","NO_PROXY","shouldProxy","some","proxyElement","proxyUrlAuth","base64","isHttpsProxy","req","res","aborted","stream","createUnzip","lastRequest","statusMessage","responseBuffer","chunk","responseData","responseEncoding","setTimeout","type","load","storage","DEBUG","Function","lastC","removeItem","documentElement","style","WebkitAppearance","firebug","exception","table","$1","chrome","local","localStorage","localstorage","j","y","plural","floor","ceil","exec","long","round","fmtShort","tty","util","inspectOpts","stderr","colorCode","hideDate","isatty","fd","supportsColor","level","reduce","_","inspect","O","os","hasFlag","forceColor","getSupportLevel","hasBasic","has256","has16m","translateLevel","isTTY","min","platform","osRelease","release","versions","node","sign","CI_NAME","TEAMCITY_VERSION","COLORTERM","TERM_PROGRAM_VERSION","TERM_PROGRAM","TERM","FORCE_COLOR","stdout","flag","argv","startsWith","pos","terminatorPos","executor","token","isNativeFunction","construct","_wrapNativeSuper","Class","_cache","Map","Wrapper","_construct","Parent","Reflect","sham","isNativeReflectConstruct","licensee","_asyncToGenerator2","_regenerator","mark","_callee","_ref$data$items$item","_context","next","post","asPropertiesMap","sent","items","abrupt","stop","_callee2","_ref2","_ref2$data$items$item","_context2","_callee3","_ref3","_context3","pagenumber","itemsnumber","totalpages","totalitems","update","_callee4","_ref4","_ref4$data$items$item","_context4","delete","forceCascade","validate","validationParameters","_callee5","pmIndex","_ref5","_ref5$data","validationResults","_context5","getProductNumber","getLicenseeName","getLicenseeSecret","getParameters","productModuleName","setTtl","setProductModuleValidation","transfer","sourceLicenseeNumber","runtime","Op","hasOwn","$Symbol","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","_invoke","state","GenStateSuspendedStart","GenStateExecuting","GenStateCompleted","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","_sent","dispatchException","record","tryCatch","GenStateSuspendedYield","makeInvokeMethod","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","NativeIteratorPrototype","Gp","defineIteratorMethods","AsyncIterator","previousPromise","callInvokeWithMethodAndArg","invoke","__await","unwrapped","resultName","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","iterable","iteratorMethod","displayName","isGeneratorFunction","genFun","ctor","awrap","async","iter","reverse","pop","skipTempReset","rootRecord","rval","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","_arr","_n","_d","_e","_s","_i","licenseTemplateNumber","transactionNumber","_ref3$data$items$item","productModule","superPropBase","_get","receiver","base","desc","getOwnPropertyDescriptor","listLicenseTypes","listLicensingModels","listCountries"],"mappings":"CAAA,SAAAA,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,IACA,mBAAAG,eAAAC,IACAD,OAAA,kBAAAH,GACA,iBAAAC,QACAA,QAAA,aAAAD,IAEAD,EAAA,aAAAC,IARA,CASCK,KAAA,WACD,mBCTA,IAAAC,KAGA,SAAAC,EAAAC,GAGA,GAAA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AAAb,KAAA,WAIxBnqB,UAAWvC,QAAQ8I,GAJK,CAAAykB,EAAAb,KAAA,cAKnB,IAAIh3B,UAAJ,wBAAA+K,OAAsCqI,IALnB,OAO7BvD,EAAYqB,UAAUhN,QAA4B,iBAAXkP,EAAsBA,EAAS6U,UAAY9U,OAAOC,GAP5D,cAAAykB,EAAAb,KAAA,EAUVxnB,UAClB/Q,IACGkR,EAFe,GAAA5E,OAGZmG,UAAUtH,QAAQpE,cAHN,KAAAuF,OAGuBmG,UAAUtH,QAAQG,yBACxD8F,GAdyB,cAAA+nB,EAAAC,EAAAV,KAUzBvmB,EAVyBgnB,EAUzBhnB,KAVyBinB,EAAAR,OAAA,UAiB1B,EAAAnS,EAAArlB,SACH+Q,EAAKwmB,MAAM9rB,KAAKkX,IAAI,SAAC5P,GAAD,OAAO,EAAAoT,EAAAnmB,SAAc+S,KACzChC,EAAKwmB,MAAMU,WACXlnB,EAAKwmB,MAAMW,YACXnnB,EAAKwmB,MAAMY,WACXpnB,EAAKwmB,MAAMa,aAtBkB,yBAAAJ,EAAAP,SAAAK,KAAA","file":"netlicensing-client.node.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"NetLicensing\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"NetLicensing\"] = factory();\n\telse\n\t\troot[\"NetLicensing\"] = factory();\n})(this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 59);\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","'use strict';\n\nvar bind = require('./helpers/bind');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = merge(result[key], val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Function equal to merge with the difference being that no reference\n * to original objects is kept.\n *\n * @see merge\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction deepMerge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (typeof result[key] === 'object' && typeof val === 'object') {\n result[key] = deepMerge(result[key], val);\n } else if (typeof val === 'object') {\n result[key] = deepMerge({}, val);\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n deepMerge: deepMerge,\n extend: extend,\n trim: trim\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nexport default {\n BASIC_AUTHENTICATION: 'BASIC_AUTH',\n APIKEY_IDENTIFICATION: 'APIKEY',\n ANONYMOUS_IDENTIFICATION: 'ANONYMOUS',\n\n ACTIVE: 'active',\n NUMBER: 'number',\n NAME: 'name',\n VERSION: 'version',\n DELETED: 'deleted',\n CASCADE: 'forceCascade',\n PRICE: 'price',\n DISCOUNT: 'discount',\n CURRENCY: 'currency',\n IN_USE: 'inUse',\n FILTER: 'filter',\n BASE_URL: 'baseUrl',\n USERNAME: 'username',\n PASSWORD: 'password',\n SECURITY_MODE: 'securityMode',\n\n LicensingModel: {\n VALID: 'valid',\n TryAndBuy: {\n NAME: 'TryAndBuy',\n },\n Rental: {\n NAME: 'Rental',\n RED_THRESHOLD: 'redThreshold',\n YELLOW_THRESHOLD: 'yellowThreshold',\n },\n Subscription: {\n NAME: 'Subscription',\n },\n Floating: {\n NAME: 'Floating',\n },\n MultiFeature: {\n NAME: 'MultiFeature',\n },\n PayPerUse: {\n NAME: 'PayPerUse',\n },\n PricingTable: {\n NAME: 'PricingTable',\n },\n Quota: {\n NAME: 'Quota',\n },\n NodeLocked: {\n NAME: 'NodeLocked',\n },\n },\n\n Vendor: {\n VENDOR_NUMBER: 'vendorNumber',\n VENDOR_TYPE: 'Vendor',\n },\n\n Product: {\n ENDPOINT_PATH: 'product',\n PRODUCT_NUMBER: 'productNumber',\n LICENSEE_AUTO_CREATE: 'licenseeAutoCreate',\n DESCRIPTION: 'description',\n LICENSING_INFO: 'licensingInfo',\n DISCOUNTS: 'discounts',\n /**\n * @deprecated use ProductModule.PROP_LICENSEE_SECRET_MODE instead\n */\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\n PROP_VAT_MODE: 'vatMode',\n\n Discount: {\n TOTAL_PRICE: 'totalPrice',\n AMOUNT_FIX: 'amountFix',\n AMOUNT_PERCENT: 'amountPercent',\n },\n\n LicenseeSecretMode: {\n /**\n * @deprecated DISABLED mode is deprecated\n */\n DISABLED: 'DISABLED',\n PREDEFINED: 'PREDEFINED',\n CLIENT: 'CLIENT',\n },\n },\n\n ProductModule: {\n ENDPOINT_PATH: 'productmodule',\n PRODUCT_MODULE_NUMBER: 'productModuleNumber',\n PRODUCT_MODULE_NAME: 'productModuleName',\n LICENSING_MODEL: 'licensingModel',\n PROP_LICENSEE_SECRET_MODE: 'licenseeSecretMode',\n },\n\n LicenseTemplate: {\n ENDPOINT_PATH: 'licensetemplate',\n LICENSE_TEMPLATE_NUMBER: 'licenseTemplateNumber',\n LICENSE_TYPE: 'licenseType',\n AUTOMATIC: 'automatic',\n HIDDEN: 'hidden',\n HIDE_LICENSES: 'hideLicenses',\n PROP_LICENSEE_SECRET: 'licenseeSecret',\n LicenseType: {\n FEATURE: 'FEATURE',\n TIMEVOLUME: 'TIMEVOLUME',\n FLOATING: 'FLOATING',\n QUANTITY: 'QUANTITY',\n },\n },\n\n Token: {\n ENDPOINT_PATH: 'token',\n EXPIRATION_TIME: 'expirationTime',\n TOKEN_TYPE: 'tokenType',\n API_KEY: 'apiKey',\n TOKEN_PROP_EMAIL: 'email',\n TOKEN_PROP_VENDORNUMBER: 'vendorNumber',\n TOKEN_PROP_SHOP_URL: 'shopURL',\n Type: {\n DEFAULT: 'DEFAULT',\n SHOP: 'SHOP',\n APIKEY: 'APIKEY',\n },\n },\n\n Transaction: {\n ENDPOINT_PATH: 'transaction',\n TRANSACTION_NUMBER: 'transactionNumber',\n GRAND_TOTAL: 'grandTotal',\n STATUS: 'status',\n SOURCE: 'source',\n DATE_CREATED: 'datecreated',\n DATE_CLOSED: 'dateclosed',\n VAT: 'vat',\n VAT_MODE: 'vatMode',\n LICENSE_TRANSACTION_JOIN: 'licenseTransactionJoin',\n SOURCE_SHOP_ONLY: 'shopOnly',\n /**\n * @deprecated\n */\n Status: {\n CANCELLED: 'CANCELLED',\n CLOSED: 'CLOSED',\n PENDING: 'PENDING',\n },\n },\n\n Licensee: {\n ENDPOINT_PATH: 'licensee',\n ENDPOINT_PATH_VALIDATE: 'validate',\n ENDPOINT_PATH_TRANSFER: 'transfer',\n LICENSEE_NUMBER: 'licenseeNumber',\n SOURCE_LICENSEE_NUMBER: 'sourceLicenseeNumber',\n PROP_LICENSEE_NAME: 'licenseeName',\n /**\n * @deprecated use License.PROP_LICENSEE_SECRET\n */\n PROP_LICENSEE_SECRET: 'licenseeSecret',\n PROP_MARKED_FOR_TRANSFER: 'markedForTransfer',\n },\n\n License: {\n ENDPOINT_PATH: 'license',\n LICENSE_NUMBER: 'licenseNumber',\n HIDDEN: 'hidden',\n PROP_LICENSEE_SECRET: 'licenseeSecret',\n },\n\n PaymentMethod: {\n ENDPOINT_PATH: 'paymentmethod',\n },\n\n Utility: {\n ENDPOINT_PATH: 'utility',\n ENDPOINT_PATH_LICENSE_TYPES: 'licenseTypes',\n ENDPOINT_PATH_LICENSING_MODELS: 'licensingModels',\n ENDPOINT_PATH_COUNTRIES: 'countries',\n LICENSING_MODEL_PROPERTIES: 'LicensingModelProperties',\n LICENSE_TYPE: 'LicenseType',\n },\n\n APIKEY: {\n ROLE_APIKEY_LICENSEE: 'ROLE_APIKEY_LICENSEE',\n ROLE_APIKEY_ANALYTICS: 'ROLE_APIKEY_ANALYTICS',\n ROLE_APIKEY_OPERATION: 'ROLE_APIKEY_OPERATION',\n ROLE_APIKEY_MAINTENANCE: 'ROLE_APIKEY_MAINTENANCE',\n ROLE_APIKEY_ADMIN: 'ROLE_APIKEY_ADMIN',\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nexport default {\n isValid(value) {\n let valid = (value !== undefined && typeof value !== 'function');\n if (typeof value === 'number') valid = Number.isFinite(value) && !Number.isNaN(value);\n return valid;\n },\n\n paramNotNull(parameter, parameterName) {\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\n if (parameter === null) throw new TypeError(`Parameter ${parameterName} cannot be null`);\n },\n\n paramNotEmpty(parameter, parameterName) {\n if (!this.isValid(parameter)) throw new TypeError(`Parameter ${parameterName} has bad value ${parameter}`);\n if (!parameter) throw new TypeError(`Parameter ${parameterName} cannot be null or empty string`);\n },\n};\n","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","const itemToObject = (item) => {\n const object = {};\n const { property, list } = item;\n\n if (property && Array.isArray(property)) {\n property.forEach((p) => {\n const { name, value } = p;\n if (name) object[name] = value;\n });\n }\n\n if (list && Array.isArray(list)) {\n list.forEach((l) => {\n const { name } = l;\n if (name) {\n object[name] = object[name] || [];\n object[name].push(itemToObject(l));\n }\n });\n }\n\n return object;\n};\n\nexport default itemToObject;\n","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport CastsUtils from '../util/CastsUtils';\n\n/**\n * The entity properties.\n * @type {{}}\n * @private\n */\nconst propertiesMap = new WeakMap();\n\n/**\n * List of properties that was defined\n * @type {{}}\n * @private\n */\n\nconst definedMap = new WeakMap();\n\n/**\n * List of properties that need be casts\n * @type {{}}\n * @private\n */\nconst castsMap = new WeakMap();\n\nexport default class BaseEntity {\n constructor({ properties, casts }) {\n propertiesMap.set(this, {});\n definedMap.set(this, {});\n castsMap.set(this, casts || []);\n\n if (properties) {\n this.setProperties(properties);\n }\n }\n\n /**\n * Set a given property on the entity.\n * @param property\n * @param value\n * @returns {BaseEntity}\n */\n setProperty(property, value) {\n // if property name has bad native type\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\n throw new TypeError(`Bad property name:${property}`);\n }\n\n const castedValue = this.cast(property, value);\n\n // define to property\n this.define(property);\n\n // save property to propertiesMap\n const properties = propertiesMap.get(this);\n properties[property] = castedValue;\n\n return this;\n }\n\n /**\n * Alias for setProperty\n * @param property\n * @param value\n * @returns {BaseEntity}\n */\n addProperty(property, value) {\n return this.setProperty(property, value);\n }\n\n /**\n * Set the entity properties.\n * @param properties\n * @returns {BaseEntity}\n */\n setProperties(properties) {\n this.removeProperties();\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(properties).forEach((key) => {\n if (has.call(properties, key)) {\n this.setProperty(key, properties[key]);\n }\n });\n\n return this;\n }\n\n /**\n * Check if we has property\n * @param property\n * @protected\n */\n hasProperty(property) {\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property);\n }\n\n /**\n * Get an property from the entity.\n * @param property\n * @param def\n * @returns {*}\n */\n getProperty(property, def) {\n return Object.prototype.hasOwnProperty.call(propertiesMap.get(this), property)\n ? propertiesMap.get(this)[property]\n : def;\n }\n\n /**\n * Get all of the current properties on the entity.\n */\n getProperties() {\n return { ...propertiesMap.get(this) };\n }\n\n /**\n * Remove property\n * @param property\n * @returns {BaseEntity}\n */\n removeProperty(property) {\n const properties = propertiesMap.get(this);\n delete properties[property];\n this.removeDefine(property);\n return this;\n }\n\n /**\n * Remove properties\n * @param properties\n */\n removeProperties(properties) {\n const propertiesForRemove = properties || Object.keys(propertiesMap.get(this));\n\n propertiesForRemove.forEach((property) => {\n this.removeProperty(property);\n });\n }\n\n cast(property, value) {\n if (!castsMap.get(this)[property]) return value;\n\n return CastsUtils(castsMap.get(this)[property], value);\n }\n\n /**\n * Check if property has defined\n * @param property\n * @protected\n */\n hasDefine(property) {\n return Boolean(definedMap.get(this)[property]);\n }\n\n /**\n * Define property getter and setter\n * @param property\n * @protected\n */\n define(property) {\n if (this.hasDefine(property)) return;\n\n if (!CheckUtils.isValid(property) || typeof property === 'object') {\n throw new TypeError(`Bad property name:${property}`);\n }\n\n const self = this;\n\n // delete property\n delete this[property];\n\n const descriptors = {\n enumerable: true,\n configurable: true,\n get() {\n return self.getProperty(property);\n },\n\n set(value) {\n self.setProperty(property, value);\n },\n };\n\n const defined = definedMap.get(this);\n defined[property] = true;\n\n Object.defineProperty(this, property, descriptors);\n }\n\n /**\n * Remove property getter and setter\n * @param property\n * @protected\n */\n removeDefine(property) {\n if (!this.hasDefine(property)) return;\n\n const defined = definedMap.get(this);\n delete defined[property];\n\n delete this[property];\n }\n\n /**\n * Get properties map\n */\n asPropertiesMap() {\n const properties = this.getProperties();\n const customProperties = {};\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(this).forEach((key) => {\n if (!has.call(this, key)) return;\n\n customProperties[key] = this[key];\n });\n\n return { ...customProperties, ...properties };\n }\n}\n","export default (content = [], pageNumber = 0, itemsNumber = 0, totalPages = 0, totalItems = 0) => {\n const paginator = {\n getContent() {\n return content;\n },\n\n getPageNumber() {\n return pageNumber;\n },\n\n getItemsNumber() {\n return itemsNumber;\n },\n\n getTotalPages() {\n return totalPages;\n },\n\n getTotalItems() {\n return totalItems;\n },\n\n hasNext() {\n return (totalPages > pageNumber + 1);\n },\n };\n\n const paginatorKeys = Object.keys(paginator);\n\n return new Proxy(content, {\n get(target, key) {\n if (paginatorKeys.indexOf(key) !== -1) {\n return paginator[key];\n }\n return target[key];\n },\n });\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nimport axios from 'axios';\nimport btoa from 'btoa';\nimport Constants from '../Constants';\nimport NlicError from '../errors/NlicError';\nimport pkg from '../../package.json';\n\nlet httpXHR = {};\nlet axiosInstance = null;\n\nexport default class Service {\n static getAxiosInstance() {\n return axiosInstance || axios;\n }\n\n static setAxiosInstance(instanse) {\n axiosInstance = instanse;\n }\n\n static getLastHttpRequestInfo() {\n return httpXHR;\n }\n\n /**\n * Helper method for performing GET request to N\n etLicensing API services. Finds and returns first suitable item with\n * type resultType from the response.\n *\n * Context for the NetLicensing API call\n * @param context\n *\n * the REST URL template\n * @param urlTemplate\n *\n * The REST query parameters values. May be null if there are no parameters.\n * @param queryParams\n *\n * @returns {Promise}\n */\n static get(context, urlTemplate, queryParams) {\n return Service.request(context, 'get', urlTemplate, queryParams);\n }\n\n /**\n * Helper method for performing POST request to NetLicensing API services. Finds and returns first suitable item\n * with type resultType from the response.\n *\n * context for the NetLicensing API call\n * @param context\n *\n * the REST URL template\n * @param urlTemplate\n *\n * The REST query parameters values. May be null if there are no parameters.\n * @param queryParams\n *\n * @returns {Promise}\n */\n static post(context, urlTemplate, queryParams) {\n return Service.request(context, 'post', urlTemplate, queryParams);\n }\n\n /**\n *\n * @param context\n * @param urlTemplate\n * @param queryParams\n * @returns {Promise}\n */\n static delete(context, urlTemplate, queryParams) {\n return Service.request(context, 'delete', urlTemplate, queryParams);\n }\n\n /**\n * Send request to NetLicensing RestApi\n * @param context\n * @param method\n * @param urlTemplate\n * @param queryParams\n * @returns {Promise}\n */\n static request(context, method, urlTemplate, queryParams) {\n const template = String(urlTemplate);\n const params = queryParams || {};\n\n if (!template) throw new TypeError('Url template must be specified');\n\n // validate http method\n if (['get', 'post', 'delete'].indexOf(method.toLowerCase()) < 0) {\n throw new Error(`Invalid request type:${method}, allowed requests types: GET, POST, DELETE.`);\n }\n\n // validate context\n if (!context.getBaseUrl(null)) {\n throw new Error('Base url must be specified');\n }\n\n const request = {\n url: encodeURI(`${context.getBaseUrl()}/${template}`),\n method: method.toLowerCase(),\n responseType: 'json',\n headers: {\n Accept: 'application/json',\n },\n transformRequest: [(data, headers) => {\n if (headers['Content-Type'] === 'application/x-www-form-urlencoded') {\n return Service.toQueryString(data);\n }\n\n if (!headers['NetLicensing-Origin']) {\n // eslint-disable-next-line no-param-reassign\n headers['NetLicensing-Origin'] = `NetLicensing/Javascript ${pkg.version}`;\n }\n return data;\n }],\n };\n\n // only node.js has a process variable that is of [[Class]] process\n if (!typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n request.headers['User-agent'] = `NetLicensing/Javascript ${pkg.version}/node&${process.version}`;\n }\n\n if (['put', 'post', 'patch'].indexOf(request.method) >= 0) {\n if (request.method === 'post') {\n request.headers['Content-Type'] = 'application/x-www-form-urlencoded';\n }\n request.data = params;\n } else {\n request.params = params;\n }\n\n switch (context.getSecurityMode()) {\n // Basic Auth\n case Constants.BASIC_AUTHENTICATION:\n if (!context.getUsername()) throw new Error('Missing parameter \"username\"');\n if (!context.getPassword()) throw new Error('Missing parameter \"password\"');\n\n request.auth = {\n username: context.getUsername(),\n password: context.getPassword(),\n };\n break;\n // ApiKey Auth\n case Constants.APIKEY_IDENTIFICATION:\n if (!context.getApiKey()) throw new Error('Missing parameter \"apiKey\"');\n\n request.headers.Authorization = `Basic ${btoa(`apiKey:${context.getApiKey()}`)}`;\n break;\n // without authorization\n case Constants.ANONYMOUS_IDENTIFICATION:\n break;\n default:\n throw new Error('Unknown security mode');\n }\n\n return Service.getAxiosInstance()(request)\n .then((response) => {\n httpXHR = response;\n return response;\n })\n .catch((e) => {\n httpXHR = e;\n\n if (e.response) {\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n\n const error = new NlicError(e);\n\n error.config = e.config;\n error.code = e.code;\n error.request = e.request;\n error.response = e.response;\n\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n const { data } = e.response;\n\n if (data) {\n const info = Service.getInfo(e.response, [])[0] || {};\n error.message = info.value || 'Unknown';\n }\n\n throw error;\n }\n\n throw e;\n });\n }\n\n static getInfo(response, def) {\n try {\n return response.data.infos.info || def;\n } catch (e) {\n return def;\n }\n }\n\n static isValidUrl(url) {\n const pattern = new RegExp('^(https?:\\\\/\\\\/)?' // protocol\n + '((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.?)+[a-z]{2,}|' // domain name\n + '((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))' // OR ip (v4) address\n + '(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*' // port and path\n + '(\\\\?[;&a-z\\\\d%_.~+=-]*)?' // query string\n + '(\\\\#[-a-z\\\\d_]*)?$', 'i'); // fragment locator\n\n return pattern.test(url);\n }\n\n static toQueryString(data, prefix) {\n const query = [];\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(data)\n .forEach((key) => {\n if (has.call(data, key)) {\n const k = prefix ? `${prefix}[${key}]` : key;\n let v = data[key];\n v = (v instanceof Date) ? v.toISOString() : v;\n query.push((v !== null && typeof v === 'object')\n ? Service.toQueryString(v, k)\n : `${encodeURIComponent(k)}=${encodeURIComponent(v)}`);\n }\n });\n\n return query.join('&')\n .replace(/%5B[0-9]+%5D=/g, '=');\n }\n}\n","export default {\n FILTER_DELIMITER: ';',\n FILTER_PAIR_DELIMITER: '=',\n encode(filter = {}) {\n const query = [];\n const has = Object.prototype.hasOwnProperty;\n Object.keys(filter).forEach((key) => {\n if (has.call(filter, key)) {\n query.push(`${key}${this.FILTER_PAIR_DELIMITER}${filter[key]}`);\n }\n });\n return query.join(this.FILTER_DELIMITER);\n },\n decode(query = '') {\n const filter = {};\n query.split(this.FILTER_DELIMITER).forEach((v) => {\n const [name, value] = v.split(this.FILTER_PAIR_DELIMITER);\n filter[name] = value;\n });\n return filter;\n },\n};\n","module.exports = require(\"regenerator-runtime\");\n","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * License entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products/licensees of a vendor) that identifies the license. Vendor can\n * assign this number when creating a license or let NetLicensing generate one. Read-only after corresponding creation\n * transaction status is set to closed.\n * @property string number\n *\n * Name for the licensed item. Set from license template on creation, if not specified explicitly.\n * @property string name\n *\n * If set to false, the license is disabled. License can be re-enabled, but as long as it is disabled,\n * the license is excluded from the validation process.\n * @property boolean active\n *\n * price for the license. If >0, it must always be accompanied by the currency specification. Read-only,\n * set from license template on creation.\n * @property float price\n *\n * specifies currency for the license price. Check data types to discover which currencies are\n * supported. Read-only, set from license template on creation.\n * @property string currency\n *\n * If set to true, this license is not shown in NetLicensing Shop as purchased license. Set from license\n * template on creation, if not specified explicitly.\n * @property boolean $hidden\n *\n * @property string startDate\n *\n * Arbitrary additional user properties of string type may be associated with each license. The name of user property\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, licenseeNumber,\n * licenseTemplateNumber.\n */\nexport default class License extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n price: 'float',\n hidden: 'boolean',\n parentfeature: 'string',\n timeVolume: 'int',\n startDate: 'date',\n inUse: 'boolean',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setHidden(hidden) {\n return this.setProperty('hidden', hidden);\n }\n\n getHidden(def) {\n return this.getProperty('hidden', def);\n }\n\n setParentfeature(parentfeature) {\n return this.setProperty('parentfeature', parentfeature);\n }\n\n getParentfeature(def) {\n return this.getProperty('parentfeature', def);\n }\n\n setTimeVolume(timeVolume) {\n return this.setProperty('timeVolume', timeVolume);\n }\n\n getTimeVolume(def) {\n return this.getProperty('timeVolume', def);\n }\n\n setStartDate(startDate) {\n return this.setProperty('startDate', startDate);\n }\n\n getStartDate(def) {\n return this.getProperty('startDate', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n\n getPrice(def) {\n return this.getProperty('price', def);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n}\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nexport default class LicenseTransactionJoin {\n constructor(transaction, license) {\n this.transaction = transaction;\n this.license = license;\n }\n\n setTransaction(transaction) {\n this.transaction = transaction;\n return this;\n }\n\n getTransaction(def) {\n return this.transaction || def;\n }\n\n setLicense(license) {\n this.license = license;\n return this;\n }\n\n getLicense(def) {\n return this.license || def;\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\n\n/**\n * Validation result map\n * @type {WeakMap}\n */\nconst vr = new WeakMap();\n\nexport default class ValidationResults {\n constructor() {\n vr.set(this, { validators: {} });\n }\n\n getValidators() {\n return { ...vr.get(this).validators };\n }\n\n setProductModuleValidation(productModuleNumber, productModuleValidation) {\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\n }\n\n vr.get(this).validators[productModuleNumber] = productModuleValidation;\n\n return this;\n }\n\n getProductModuleValidation(productModuleNumber) {\n if (!CheckUtils.isValid(productModuleNumber) || typeof productModuleNumber === 'object') {\n throw new TypeError(`Bad productModuleNumber:${productModuleNumber}`);\n }\n\n return vr.get(this).validators[productModuleNumber];\n }\n\n setTtl(ttl) {\n if (!CheckUtils.isValid(ttl) || typeof ttl === 'object') {\n throw new TypeError(`Bad ttl:${ttl}`);\n }\n vr.get(this).ttl = new Date(String(ttl));\n\n return this;\n }\n\n getTtl() {\n return (vr.get(this).ttl) ? new Date(vr.get(this).ttl) : undefined;\n }\n\n toString() {\n let data = 'ValidationResult [';\n\n const validators = this.getValidators();\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(validators).forEach((productModuleNumber) => {\n data += `ProductModule<${productModuleNumber}>`;\n if (has.call(validators, productModuleNumber)) {\n data += JSON.stringify(validators[productModuleNumber]);\n }\n });\n\n data += ']';\n\n return data;\n }\n}\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","module.exports = require(\"http\");","module.exports = require(\"https\");","var url = require(\"url\");\nvar http = require(\"http\");\nvar https = require(\"https\");\nvar assert = require(\"assert\");\nvar Writable = require(\"stream\").Writable;\nvar debug = require(\"debug\")(\"follow-redirects\");\n\n// RFC7231§4.2.1: Of the request methods defined by this specification,\n// the GET, HEAD, OPTIONS, and TRACE methods are defined to be safe.\nvar SAFE_METHODS = { GET: true, HEAD: true, OPTIONS: true, TRACE: true };\n\n// Create handlers that pass events from native requests\nvar eventHandlers = Object.create(null);\n[\"abort\", \"aborted\", \"error\", \"socket\", \"timeout\"].forEach(function (event) {\n eventHandlers[event] = function (arg) {\n this._redirectable.emit(event, arg);\n };\n});\n\n// An HTTP(S) request that can be redirected\nfunction RedirectableRequest(options, responseCallback) {\n // Initialize the request\n Writable.call(this);\n options.headers = options.headers || {};\n this._options = options;\n this._redirectCount = 0;\n this._redirects = [];\n this._requestBodyLength = 0;\n this._requestBodyBuffers = [];\n\n // Since http.request treats host as an alias of hostname,\n // but the url module interprets host as hostname plus port,\n // eliminate the host property to avoid confusion.\n if (options.host) {\n // Use hostname if set, because it has precedence\n if (!options.hostname) {\n options.hostname = options.host;\n }\n delete options.host;\n }\n\n // Attach a callback if passed\n if (responseCallback) {\n this.on(\"response\", responseCallback);\n }\n\n // React to responses of native requests\n var self = this;\n this._onNativeResponse = function (response) {\n self._processResponse(response);\n };\n\n // Complete the URL object when necessary\n if (!options.pathname && options.path) {\n var searchPos = options.path.indexOf(\"?\");\n if (searchPos < 0) {\n options.pathname = options.path;\n }\n else {\n options.pathname = options.path.substring(0, searchPos);\n options.search = options.path.substring(searchPos);\n }\n }\n\n // Perform the first request\n this._performRequest();\n}\nRedirectableRequest.prototype = Object.create(Writable.prototype);\n\n// Writes buffered data to the current native request\nRedirectableRequest.prototype.write = function (data, encoding, callback) {\n // Validate input and shift parameters if necessary\n if (!(typeof data === \"string\" || typeof data === \"object\" && (\"length\" in data))) {\n throw new Error(\"data should be a string, Buffer or Uint8Array\");\n }\n if (typeof encoding === \"function\") {\n callback = encoding;\n encoding = null;\n }\n\n // Ignore empty buffers, since writing them doesn't invoke the callback\n // https://github.com/nodejs/node/issues/22066\n if (data.length === 0) {\n if (callback) {\n callback();\n }\n return;\n }\n // Only write when we don't exceed the maximum body length\n if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {\n this._requestBodyLength += data.length;\n this._requestBodyBuffers.push({ data: data, encoding: encoding });\n this._currentRequest.write(data, encoding, callback);\n }\n // Error when we exceed the maximum body length\n else {\n this.emit(\"error\", new Error(\"Request body larger than maxBodyLength limit\"));\n this.abort();\n }\n};\n\n// Ends the current native request\nRedirectableRequest.prototype.end = function (data, encoding, callback) {\n // Shift parameters if necessary\n if (typeof data === \"function\") {\n callback = data;\n data = encoding = null;\n }\n else if (typeof encoding === \"function\") {\n callback = encoding;\n encoding = null;\n }\n\n // Write data and end\n var currentRequest = this._currentRequest;\n this.write(data || \"\", encoding, function () {\n currentRequest.end(null, null, callback);\n });\n};\n\n// Sets a header value on the current native request\nRedirectableRequest.prototype.setHeader = function (name, value) {\n this._options.headers[name] = value;\n this._currentRequest.setHeader(name, value);\n};\n\n// Clears a header value on the current native request\nRedirectableRequest.prototype.removeHeader = function (name) {\n delete this._options.headers[name];\n this._currentRequest.removeHeader(name);\n};\n\n// Proxy all other public ClientRequest methods\n[\n \"abort\", \"flushHeaders\", \"getHeader\",\n \"setNoDelay\", \"setSocketKeepAlive\", \"setTimeout\",\n].forEach(function (method) {\n RedirectableRequest.prototype[method] = function (a, b) {\n return this._currentRequest[method](a, b);\n };\n});\n\n// Proxy all public ClientRequest properties\n[\"aborted\", \"connection\", \"socket\"].forEach(function (property) {\n Object.defineProperty(RedirectableRequest.prototype, property, {\n get: function () { return this._currentRequest[property]; },\n });\n});\n\n// Executes the next native request (initial or redirect)\nRedirectableRequest.prototype._performRequest = function () {\n // Load the native protocol\n var protocol = this._options.protocol;\n var nativeProtocol = this._options.nativeProtocols[protocol];\n if (!nativeProtocol) {\n this.emit(\"error\", new Error(\"Unsupported protocol \" + protocol));\n return;\n }\n\n // If specified, use the agent corresponding to the protocol\n // (HTTP and HTTPS use different types of agents)\n if (this._options.agents) {\n var scheme = protocol.substr(0, protocol.length - 1);\n this._options.agent = this._options.agents[scheme];\n }\n\n // Create the native request\n var request = this._currentRequest =\n nativeProtocol.request(this._options, this._onNativeResponse);\n this._currentUrl = url.format(this._options);\n\n // Set up event handlers\n request._redirectable = this;\n for (var event in eventHandlers) {\n /* istanbul ignore else */\n if (event) {\n request.on(event, eventHandlers[event]);\n }\n }\n\n // End a redirected request\n // (The first request must be ended explicitly with RedirectableRequest#end)\n if (this._isRedirect) {\n // Write the request entity and end.\n var i = 0;\n var buffers = this._requestBodyBuffers;\n (function writeNext() {\n if (i < buffers.length) {\n var buffer = buffers[i++];\n request.write(buffer.data, buffer.encoding, writeNext);\n }\n else {\n request.end();\n }\n }());\n }\n};\n\n// Processes a response from the current native request\nRedirectableRequest.prototype._processResponse = function (response) {\n // Store the redirected response\n if (this._options.trackRedirects) {\n this._redirects.push({\n url: this._currentUrl,\n headers: response.headers,\n statusCode: response.statusCode,\n });\n }\n\n // RFC7231§6.4: The 3xx (Redirection) class of status code indicates\n // that further action needs to be taken by the user agent in order to\n // fulfill the request. If a Location header field is provided,\n // the user agent MAY automatically redirect its request to the URI\n // referenced by the Location field value,\n // even if the specific status code is not understood.\n var location = response.headers.location;\n if (location && this._options.followRedirects !== false &&\n response.statusCode >= 300 && response.statusCode < 400) {\n // RFC7231§6.4: A client SHOULD detect and intervene\n // in cyclical redirections (i.e., \"infinite\" redirection loops).\n if (++this._redirectCount > this._options.maxRedirects) {\n this.emit(\"error\", new Error(\"Max redirects exceeded.\"));\n return;\n }\n\n // RFC7231§6.4: Automatic redirection needs to done with\n // care for methods not known to be safe […],\n // since the user might not wish to redirect an unsafe request.\n // RFC7231§6.4.7: The 307 (Temporary Redirect) status code indicates\n // that the target resource resides temporarily under a different URI\n // and the user agent MUST NOT change the request method\n // if it performs an automatic redirection to that URI.\n var header;\n var headers = this._options.headers;\n if (response.statusCode !== 307 && !(this._options.method in SAFE_METHODS)) {\n this._options.method = \"GET\";\n // Drop a possible entity and headers related to it\n this._requestBodyBuffers = [];\n for (header in headers) {\n if (/^content-/i.test(header)) {\n delete headers[header];\n }\n }\n }\n\n // Drop the Host header, as the redirect might lead to a different host\n if (!this._isRedirect) {\n for (header in headers) {\n if (/^host$/i.test(header)) {\n delete headers[header];\n }\n }\n }\n\n // Perform the redirected request\n var redirectUrl = url.resolve(this._currentUrl, location);\n debug(\"redirecting to\", redirectUrl);\n Object.assign(this._options, url.parse(redirectUrl));\n this._isRedirect = true;\n this._performRequest();\n\n // Discard the remainder of the response to avoid waiting for data\n response.destroy();\n }\n else {\n // The response is not a redirect; return it as-is\n response.responseUrl = this._currentUrl;\n response.redirects = this._redirects;\n this.emit(\"response\", response);\n\n // Clean up\n this._requestBodyBuffers = [];\n }\n};\n\n// Wraps the key/value object of protocols with redirect functionality\nfunction wrap(protocols) {\n // Default settings\n var exports = {\n maxRedirects: 21,\n maxBodyLength: 10 * 1024 * 1024,\n };\n\n // Wrap each protocol\n var nativeProtocols = {};\n Object.keys(protocols).forEach(function (scheme) {\n var protocol = scheme + \":\";\n var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];\n var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);\n\n // Executes a request, following redirects\n wrappedProtocol.request = function (options, callback) {\n if (typeof options === \"string\") {\n options = url.parse(options);\n options.maxRedirects = exports.maxRedirects;\n }\n else {\n options = Object.assign({\n protocol: protocol,\n maxRedirects: exports.maxRedirects,\n maxBodyLength: exports.maxBodyLength,\n }, options);\n }\n options.nativeProtocols = nativeProtocols;\n assert.equal(options.protocol, protocol, \"protocol mismatch\");\n debug(\"options\", options);\n return new RedirectableRequest(options, callback);\n };\n\n // Executes a GET request, following redirects\n wrappedProtocol.get = function (options, callback) {\n var request = wrappedProtocol.request(options, callback);\n request.end();\n return request;\n };\n });\n return exports;\n}\n\n// Exports\nmodule.exports = wrap({ http: http, https: https });\nmodule.exports.wrap = wrap;\n","module.exports = require(\"url\");","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = createDebug.debug = createDebug['default'] = createDebug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = require('ms');\n\n/**\n * Active `debug` instances.\n */\nexports.instances = [];\n\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\nexports.formatters = {};\n\n/**\n * Select a color.\n * @param {String} namespace\n * @return {Number}\n * @api private\n */\n\nfunction selectColor(namespace) {\n var hash = 0, i;\n\n for (i in namespace) {\n hash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return exports.colors[Math.abs(hash) % exports.colors.length];\n}\n\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\nfunction createDebug(namespace) {\n\n var prevTime;\n\n function debug() {\n // disabled?\n if (!debug.enabled) return;\n\n var self = debug;\n\n // set `diff` timestamp\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n\n // turn the `arguments` into a proper Array\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %O\n args.unshift('%O');\n }\n\n // apply any `formatters` transformations\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val);\n\n // now we need to remove `args[index]` since it's inlined in the `format`\n args.splice(index, 1);\n index--;\n }\n return match;\n });\n\n // apply env-specific formatting (colors, etc.)\n exports.formatArgs.call(self, args);\n\n var logFn = debug.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = exports.enabled(namespace);\n debug.useColors = exports.useColors();\n debug.color = selectColor(namespace);\n debug.destroy = destroy;\n\n // env-specific initialization logic for debug instances\n if ('function' === typeof exports.init) {\n exports.init(debug);\n }\n\n exports.instances.push(debug);\n\n return debug;\n}\n\nfunction destroy () {\n var index = exports.instances.indexOf(this);\n if (index !== -1) {\n exports.instances.splice(index, 1);\n return true;\n } else {\n return false;\n }\n}\n\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n\n exports.names = [];\n exports.skips = [];\n\n var i;\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n namespaces = split[i].replace(/\\*/g, '.*?');\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n\n for (i = 0; i < exports.instances.length; i++) {\n var instance = exports.instances[i];\n instance.enabled = exports.enabled(instance.namespace);\n }\n}\n\n/**\n * Disable debug output.\n *\n * @api public\n */\n\nfunction disable() {\n exports.enable('');\n}\n\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\nfunction enabled(name) {\n if (name[name.length - 1] === '*') {\n return true;\n }\n var i, len;\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];\n var defaultToConfig2Keys = [\n 'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',\n 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath'\n ];\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {\n if (utils.isObject(config2[prop])) {\n config[prop] = utils.deepMerge(config1[prop], config2[prop]);\n } else if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (utils.isObject(config1[prop])) {\n config[prop] = utils.deepMerge(config1[prop]);\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys);\n\n var otherKeys = Object\n .keys(config2)\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n\n return config;\n};\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","export default class NlicError extends Error {\n constructor(...args) {\n super(...args);\n\n this.config = {};\n this.response = {};\n this.request = {};\n this.code = '';\n\n this.isNlicError = true;\n this.isAxiosError = true;\n }\n}\n","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","import itemToObject from './itemToObject';\nimport Licensee from '../entities/Licensee';\n\nexport default (item) => new Licensee(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Licensee entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the licensee. Vendor can assign this\n * number when creating a licensee or let NetLicensing generate one. Read-only after creation of the first license for\n * the licensee.\n * @property string number\n *\n * Licensee name.\n * @property string name\n *\n * If set to false, the licensee is disabled. Licensee can not obtain new licenses, and validation is\n * disabled (tbd).\n * @property boolean active\n *\n * Licensee Secret for licensee\n * @property string licenseeSecret\n *\n * Mark licensee for transfer.\n * @property boolean markedForTransfer\n *\n * Arbitrary additional user properties of string type may be associated with each licensee. The name of user property\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted, productNumber\n *\n * @constructor\n */\nexport default class Licensee extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n licenseeSecret: 'string',\n markedForTransfer: 'boolean',\n inUse: 'boolean',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n /**\n * @deprecated\n */\n setLicenseeSecret(licenseeSecret) {\n return this.setProperty('licenseeSecret', licenseeSecret);\n }\n\n /**\n * @deprecated\n */\n getLicenseeSecret(def) {\n return this.getProperty('licenseeSecret', def);\n }\n\n setMarkedForTransfer(markedForTransfer) {\n return this.setProperty('markedForTransfer', markedForTransfer);\n }\n\n getMarkedForTransfer(def) {\n return this.getProperty('markedForTransfer', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\n// Cast an attribute to a native JS type.\nexport default (key, value) => {\n switch (key.trim().toLowerCase()) {\n case 'str':\n case 'string':\n return String(value);\n case 'int':\n case 'integer':\n return parseInt(value, 10);\n case 'float':\n case 'double':\n return parseFloat(value);\n case 'bool':\n case 'boolean':\n switch (value) {\n case 'true':\n case 'TRUE':\n return true;\n case 'false':\n case 'FALSE':\n return false;\n default:\n return Boolean(value);\n }\n case 'date':\n return (value === 'now') ? 'now' : new Date(String(value));\n default:\n return value;\n }\n};\n","import itemToObject from './itemToObject';\nimport License from '../entities/License';\n\nexport default (item) => new License(itemToObject(item));\n","import itemToObject from './itemToObject';\nimport LicenseTemplate from '../entities/LicenseTemplate';\n\nexport default (item) => new LicenseTemplate(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * License template entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the license template. Vendor can\n * assign this number when creating a license template or let NetLicensing generate one.\n * Read-only after creation of the first license from this license template.\n * @property string number\n *\n * If set to false, the license template is disabled. Licensee can not obtain any new licenses off this\n * license template.\n * @property boolean active\n *\n * Name for the licensed item.\n * @property string name\n *\n * Type of licenses created from this license template. Supported types: \"FEATURE\", \"TIMEVOLUME\",\n * \"FLOATING\", \"QUANTITY\"\n * @property string licenseType\n *\n * Price for the license. If >0, it must always be accompanied by the currency specification.\n * @property double price\n *\n * Specifies currency for the license price. Check data types to discover which currencies are\n * supported.\n * @property string currency\n *\n * If set to true, every new licensee automatically gets one license out of this license template on\n * creation. Automatic licenses must have their price set to 0.\n * @property boolean automatic\n *\n * If set to true, this license template is not shown in NetLicensing Shop as offered for purchase.\n * @property boolean hidden\n *\n * If set to true, licenses from this license template are not visible to the end customer, but\n * participate in validation.\n * @property boolean hideLicenses\n *\n * If set to true, this license template defines grace period of validity granted after subscription expiration.\n * @property boolean gracePeriod\n *\n * Mandatory for 'TIMEVOLUME' license type.\n * @property integer timeVolume\n *\n * Time volume period for 'TIMEVOLUME' license type. Supported types: \"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"\n * @property integer timeVolumePeriod\n *\n * Mandatory for 'FLOATING' license type.\n * @property integer maxSessions\n *\n * Mandatory for 'QUANTITY' license type.\n * @property integer quantity\n *\n * @constructor\n */\nexport default class LicenseTemplate extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n licenseType: 'string',\n price: 'double',\n currency: 'string',\n automatic: 'boolean',\n hidden: 'boolean',\n hideLicenses: 'boolean',\n gracePeriod: 'boolean',\n timeVolume: 'int',\n timeVolumePeriod: 'string',\n maxSessions: 'int',\n quantity: 'int',\n inUse: 'boolean',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setLicenseType(licenseType) {\n return this.setProperty('licenseType', licenseType);\n }\n\n getLicenseType(def) {\n return this.getProperty('licenseType', def);\n }\n\n setPrice(price) {\n return this.setProperty('price', price);\n }\n\n getPrice(def) {\n return this.getProperty('price', def);\n }\n\n setCurrency(currency) {\n return this.setProperty('currency', currency);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n\n setAutomatic(automatic) {\n return this.setProperty('automatic', automatic);\n }\n\n getAutomatic(def) {\n return this.getProperty('automatic', def);\n }\n\n setHidden(hidden) {\n return this.setProperty('hidden', hidden);\n }\n\n getHidden(def) {\n return this.getProperty('hidden', def);\n }\n\n setHideLicenses(hideLicenses) {\n return this.setProperty('hideLicenses', hideLicenses);\n }\n\n getHideLicenses(def) {\n return this.getProperty('hideLicenses', def);\n }\n\n setTimeVolume(timeVolume) {\n return this.setProperty('timeVolume', timeVolume);\n }\n\n getTimeVolume(def) {\n return this.getProperty('timeVolume', def);\n }\n\n setTimeVolumePeriod(timeVolumePeriod) {\n return this.setProperty('timeVolumePeriod', timeVolumePeriod);\n }\n\n getTimeVolumePeriod(def) {\n return this.getProperty('timeVolumePeriod', def);\n }\n\n setMaxSessions(maxSessions) {\n return this.setProperty('maxSessions', maxSessions);\n }\n\n getMaxSessions(def) {\n return this.getProperty('maxSessions', def);\n }\n\n setQuantity(quantity) {\n return this.setProperty('quantity', quantity);\n }\n\n getQuantity(def) {\n return this.getProperty('quantity', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport PaymentMethod from '../entities/PaymentMethod';\n\nexport default (item) => new PaymentMethod(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * PaymentMethod entity used internally by NetLicensing.\n *\n * @property string number\n * @property boolean active\n *\n * @constructor\n */\nexport default class PaymentMethod extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n 'paypal.subject': 'string',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setPaypalSubject(paypalSubject) {\n return this.setProperty('paypal.subject', paypalSubject);\n }\n\n getPaypalSubject(def) {\n return this.getProperty('paypal.subject', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport ProductModule from '../entities/ProductModule';\n\nexport default (item) => new ProductModule(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Product module entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the product module. Vendor can assign\n * this number when creating a product module or let NetLicensing generate one. Read-only after creation of the first\n * licensee for the product.\n * @property string number\n *\n * If set to false, the product module is disabled. Licensees can not obtain any new licenses for this\n * product module.\n * @property boolean active\n *\n * Product module name that is visible to the end customers in NetLicensing Shop.\n * @property string name\n *\n * Licensing model applied to this product module. Defines what license templates can be\n * configured for the product module and how licenses for this product module are processed during validation.\n * @property string licensingModel\n *\n * Maximum checkout validity (days). Mandatory for 'Floating' licensing model.\n * @property integer maxCheckoutValidity\n *\n * Remaining time volume for yellow level. Mandatory for 'Rental' licensing model.\n * @property integer yellowThreshold\n *\n * Remaining time volume for red level. Mandatory for 'Rental' licensing model.\n * @property integer redThreshold\n *\n * License template. Mandatory for 'Try & Buy' licensing model. Supported types: \"TIMEVOLUME\", \"FEATURE\".\n * @property string licenseTemplate\n *\n * Licensee secret mode for product.Supported types: \"PREDEFINED\", \"CLIENT\"\n * @property boolean licenseeSecretMode\n *\n * @constructor\n */\nexport default class ProductModule extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n licensingModel: 'string',\n maxCheckoutValidity: 'int',\n yellowThreshold: 'int',\n redThreshold: 'int',\n licenseTemplate: 'string',\n inUse: 'boolean',\n licenseeSecretMode: 'string',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setLicensingModel(licensingModel) {\n return this.setProperty('licensingModel', licensingModel);\n }\n\n getLicensingModel(def) {\n return this.getProperty('licensingModel', def);\n }\n\n setMaxCheckoutValidity(maxCheckoutValidity) {\n return this.setProperty('maxCheckoutValidity', maxCheckoutValidity);\n }\n\n getMaxCheckoutValidity(def) {\n return this.getProperty('maxCheckoutValidity', def);\n }\n\n setYellowThreshold(yellowThreshold) {\n return this.setProperty('yellowThreshold', yellowThreshold);\n }\n\n getYellowThreshold(def) {\n return this.getProperty('yellowThreshold', def);\n }\n\n setRedThreshold(redThreshold) {\n return this.setProperty('redThreshold', redThreshold);\n }\n\n getRedThreshold(def) {\n return this.getProperty('redThreshold', def);\n }\n\n setLicenseTemplate(licenseTemplate) {\n return this.setProperty('licenseTemplate', licenseTemplate);\n }\n\n getLicenseTemplate(def) {\n return this.getProperty('licenseTemplate', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n\n setLicenseeSecretMode(licenseeSecretMode) {\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\n }\n\n getLicenseeSecretMode(def) {\n return this.getProperty('licenseeSecretMode', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport Product from '../entities/Product';\n\nexport default (item) => {\n const object = itemToObject(item);\n\n const discounts = object.discount;\n\n delete object.discount;\n\n const product = new Product(object);\n product.setProductDiscounts(discounts);\n\n return product;\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\nimport ProductDiscount from './ProductDiscount';\n\n/**\n * The discounts map\n * @type {{}}\n * @private\n */\nconst discountsMap = new WeakMap();\n\n/**\n * An identifier that show if discounts was touched\n * @type {{}}\n * @private\n */\nconst discountsTouched = new WeakMap();\n\n/**\n * NetLicensing Product entity.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number that identifies the product. Vendor can assign this number when creating a product or\n * let NetLicensing generate one. Read-only after creation of the first licensee for the product.\n * @property string number\n *\n * If set to false, the product is disabled. No new licensees can be registered for the product,\n * existing licensees can not obtain new licenses.\n * @property boolean active\n *\n * Product name. Together with the version identifies the product for the end customer.\n * @property string name\n *\n * Product version. Convenience parameter, additional to the product name.\n * @property float version\n *\n * If set to 'true', non-existing licensees will be created at first validation attempt.\n * @property boolean licenseeAutoCreate\n *\n * Licensee secret mode for product.Supported types: \"DISABLED\", \"PREDEFINED\", \"CLIENT\"\n * @property boolean licenseeSecretMode\n *\n * Product description. Optional.\n * @property string description\n *\n * Licensing information. Optional.\n * @property string licensingInfo\n *\n * @property boolean inUse\n *\n * Arbitrary additional user properties of string type may be associated with each product. The name of user property\n * must not be equal to any of the fixed property names listed above and must be none of id, deleted.\n *\n * @constructor\n */\nexport default class Product extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n name: 'string',\n version: 'string',\n description: 'string',\n licensingInfo: 'string',\n licenseeAutoCreate: 'boolean',\n licenseeSecretMode: 'string',\n inUse: 'boolean',\n },\n });\n\n discountsMap.set(this, []);\n discountsTouched.set(this, false);\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setVersion(version) {\n return this.setProperty('version', version);\n }\n\n getVersion(def) {\n return this.getProperty('version', def);\n }\n\n setLicenseeAutoCreate(licenseeAutoCreate) {\n return this.setProperty('licenseeAutoCreate', licenseeAutoCreate);\n }\n\n getLicenseeAutoCreate(def) {\n return this.getProperty('licenseeAutoCreate', def);\n }\n\n /**\n * @deprecated use ProductModule.setLicenseeSecretMode instead\n */\n setLicenseeSecretMode(licenseeSecretMode) {\n return this.setProperty('licenseeSecretMode', licenseeSecretMode);\n }\n\n /**\n * @deprecated use ProductModule.getLicenseeSecretMode instead\n */\n getLicenseeSecretMode(def) {\n return this.getProperty('licenseeSecretMode', def);\n }\n\n setDescription(description) {\n return this.setProperty('description', description);\n }\n\n getDescription(def) {\n return this.getProperty('description', def);\n }\n\n setLicensingInfo(licensingInfo) {\n return this.setProperty('licensingInfo', licensingInfo);\n }\n\n getLicensingInfo(def) {\n return this.getProperty('licensingInfo', def);\n }\n\n getInUse(def) {\n return this.getProperty('inUse', def);\n }\n\n /**\n * Add discount to product\n *\n * @param discount NetLicensing.ProductDiscount\n * @returns {NetLicensing.Product}\n */\n addDiscount(discount) {\n const discounts = discountsMap.get(this);\n\n let productDiscount = discount;\n\n if (typeof productDiscount !== 'string' && !(productDiscount instanceof ProductDiscount)) {\n productDiscount = new ProductDiscount(productDiscount);\n }\n\n discounts.push(productDiscount);\n discountsMap.set(this, discounts);\n discountsTouched.set(this, true);\n\n return this;\n }\n\n /**\n * Set discounts to product\n * @param discounts\n */\n setProductDiscounts(discounts) {\n discountsMap.set(this, []);\n discountsTouched.set(this, true);\n\n if (!discounts) return this;\n\n if (Array.isArray(discounts)) {\n discounts.forEach((discount) => {\n this.addDiscount(discount);\n });\n\n return this;\n }\n\n this.addDiscount(discounts);\n\n return this;\n }\n\n /**\n * Get array of objects discounts\n * @returns {Array}\n */\n getProductDiscounts() {\n return Object.assign([], discountsMap.get(this));\n }\n\n asPropertiesMap() {\n const propertiesMap = super.asPropertiesMap();\n\n if (discountsMap.get(this).length) {\n propertiesMap.discount = discountsMap.get(this).map((discount) => discount.toString());\n }\n\n if (!propertiesMap.discount && discountsTouched.get(this)) {\n propertiesMap.discount = '';\n }\n\n return propertiesMap;\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nimport BaseEntity from './BaseEntity';\n\nexport default class ProductDiscount extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n totalPrice: 'float',\n currency: 'string',\n amountFix: 'float',\n amountPercent: 'int',\n },\n });\n }\n\n setTotalPrice(totalPrice) {\n return this.setProperty('totalPrice', totalPrice);\n }\n\n getTotalPrice(def) {\n return this.getProperty('totalPrice', def);\n }\n\n setCurrency(currency) {\n return this.setProperty('currency', currency);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n\n setAmountFix(amountFix) {\n return this.setProperty('amountFix', amountFix).removeProperty('amountPercent');\n }\n\n getAmountFix(def) {\n return this.getProperty('amountFix', def);\n }\n\n setAmountPercent(amountPercent) {\n return this.setProperty('amountPercent', amountPercent).removeProperty('amountFix');\n }\n\n getAmountPercent(def) {\n return this.getProperty('amountPercent', def);\n }\n\n toString() {\n const totalPrice = this.getTotalPrice();\n const currency = this.getCurrency();\n let amount = 0;\n\n if (this.getAmountFix(null)) amount = this.getAmountFix();\n if (this.getAmountPercent(null)) amount = `${this.getAmountPercent()}%`;\n\n return `${totalPrice};${currency};${amount}`;\n }\n}\n","import itemToObject from './itemToObject';\nimport Token from '../entities/Token';\n\nexport default (item) => new Token(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Product module entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number\n * @property string number\n *\n * If set to false, the token is disabled.\n * @property boolean active\n *\n * Expiration Time\n * @property string expirationTime\n *\n * @property string vendorNumber\n *\n * Token type to be generated.\n * DEFAULT - default one-time token (will be expired after first request)\n * SHOP - shop token is used to redirect customer to the netlicensingShop(licenseeNumber is mandatory)\n * APIKEY - APIKey-token\n * @property string tokenType\n *\n * @property string licenseeNumber\n *\n * @constructor\n */\nexport default class Token extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n active: 'boolean',\n expirationTime: 'date',\n vendorNumber: 'string',\n tokenType: 'string',\n licenseeNumber: 'string',\n successURL: 'string',\n successURLTitle: 'string',\n cancelURL: 'string',\n cancelURLTitle: 'string',\n shopURL: 'string',\n },\n });\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setActive(active) {\n return this.setProperty('active', active);\n }\n\n getActive(def) {\n return this.getProperty('active', def);\n }\n\n setExpirationTime(expirationTime) {\n return this.setProperty('expirationTime', expirationTime);\n }\n\n getExpirationTime(def) {\n return this.getProperty('expirationTime', def);\n }\n\n setVendorNumber(vendorNumber) {\n return this.setProperty('vendorNumber', vendorNumber);\n }\n\n getVendorNumber(def) {\n return this.getProperty('vendorNumber', def);\n }\n\n setTokenType(tokenType) {\n return this.setProperty('tokenType', tokenType);\n }\n\n getTokenType(def) {\n return this.getProperty('tokenType', def);\n }\n\n setLicenseeNumber(licenseeNumber) {\n return this.setProperty('licenseeNumber', licenseeNumber);\n }\n\n getLicenseeNumber(def) {\n return this.getProperty('licenseeNumber', def);\n }\n\n setSuccessURL(successURL) {\n return this.setProperty('successURL', successURL);\n }\n\n getSuccessURL(def) {\n return this.getProperty('successURL', def);\n }\n\n setSuccessURLTitle(successURLTitle) {\n return this.setProperty('successURLTitle', successURLTitle);\n }\n\n getSuccessURLTitle(def) {\n return this.getProperty('successURLTitle', def);\n }\n\n setCancelURL(cancelURL) {\n return this.setProperty('cancelURL', cancelURL);\n }\n\n getCancelURL(def) {\n return this.getProperty('cancelURL', def);\n }\n\n setCancelURLTitle(cancelURLTitle) {\n return this.setProperty('cancelURLTitle', cancelURLTitle);\n }\n\n getCancelURLTitle(def) {\n return this.getProperty('cancelURLTitle', def);\n }\n\n getShopURL(def) {\n return this.getProperty('shopURL', def);\n }\n\n /**\n * @deprecated\n * @alias setApiKeyRole\n * @param role\n * @returns {*}\n */\n setRole(role) {\n return this.setApiKeyRole(role);\n }\n\n /**\n * @deprecated\n * @alias getApiKeyRole\n * @param def\n * @returns {*}\n */\n getRole(def) {\n return this.getApiKeyRole(def);\n }\n\n setApiKeyRole(apiKeyRole) {\n return this.setProperty('apiKeyRole', apiKeyRole);\n }\n\n getApiKeyRole(def) {\n return this.getProperty('apiKeyRole', def);\n }\n}\n","import itemToObject from './itemToObject';\nimport Transaction from '../entities/Transaction';\nimport License from '../entities/License';\nimport LicenseTransactionJoin from '../entities/LicenseTransactionJoin';\nimport Constants from '../Constants';\n\nexport default (item) => {\n const object = itemToObject(item);\n\n const { licenseTransactionJoin } = object;\n\n delete object.licenseTransactionJoin;\n\n const transaction = new Transaction(object);\n\n if (licenseTransactionJoin) {\n const joins = [];\n\n licenseTransactionJoin.forEach((v) => {\n const join = new LicenseTransactionJoin();\n join.setLicense(new License({ number: v[Constants.License.LICENSE_NUMBER] }));\n join.setTransaction(new Transaction({ number: v[Constants.Transaction.TRANSACTION_NUMBER] }));\n\n joins.push(join);\n });\n\n transaction.setLicenseTransactionJoins(joins);\n }\n\n return transaction;\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\nimport LicenseTransactionJoin from './LicenseTransactionJoin';\nimport License from './License';\n\n/**\n * Transaction entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * Unique number (across all products of a vendor) that identifies the transaction. This number is\n * always generated by NetLicensing.\n * @property string number\n *\n * always true for transactions\n * @property boolean active\n *\n * Status of transaction. \"CANCELLED\", \"CLOSED\", \"PENDING\".\n * @property string status\n *\n * \"SHOP\". AUTO transaction for internal use only.\n * @property string source\n *\n * grand total for SHOP transaction (see source).\n * @property float grandTotal\n *\n * discount for SHOP transaction (see source).\n * @property float discount\n *\n * specifies currency for money fields (grandTotal and discount). Check data types to discover which\n * @property string currency\n *\n * Date created. Optional.\n * @property string dateCreated\n *\n * Date closed. Optional.\n * @property string dateClosed\n *\n * @constructor\n */\nexport default class Transaction extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n number: 'string',\n name: 'string',\n status: 'string',\n source: 'string',\n grandTotal: 'float',\n discount: 'float',\n currency: 'string',\n dateCreated: 'date',\n dateClosed: 'date',\n active: 'boolean',\n paymentMethod: 'string',\n },\n });\n }\n\n setNumber(number) {\n return this.setProperty('number', number);\n }\n\n getNumber(def) {\n return this.getProperty('number', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setStatus(status) {\n return this.setProperty('status', status);\n }\n\n getStatus(def) {\n return this.getProperty('status', def);\n }\n\n setSource(source) {\n return this.setProperty('source', source);\n }\n\n getSource(def) {\n return this.getProperty('source', def);\n }\n\n setGrandTotal(grandTotal) {\n return this.setProperty('grandTotal', grandTotal);\n }\n\n getGrandTotal(def) {\n return this.getProperty('grandTotal', def);\n }\n\n setDiscount(discount) {\n return this.setProperty('discount', discount);\n }\n\n getDiscount(def) {\n return this.getProperty('discount', def);\n }\n\n setCurrency(currency) {\n return this.setProperty('currency', currency);\n }\n\n getCurrency(def) {\n return this.getProperty('currency', def);\n }\n\n setDateCreated(dateCreated) {\n return this.setProperty('dateCreated', dateCreated);\n }\n\n getDateCreated(def) {\n return this.getProperty('dateCreated', def);\n }\n\n setDateClosed(dateClosed) {\n return this.setProperty('dateClosed', dateClosed);\n }\n\n getDateClosed(def) {\n return this.getProperty('dateClosed', def);\n }\n\n setPaymentMethod(paymentMethod) {\n return this.setProperty('paymentMethod', paymentMethod);\n }\n\n getPaymentMethod(def) {\n return this.getProperty('paymentMethod', def);\n }\n\n setActive() {\n return this.setProperty('active', true);\n }\n\n getLicenseTransactionJoins(def) {\n return this.getProperty('licenseTransactionJoins', def);\n }\n\n setLicenseTransactionJoins(licenseTransactionJoins) {\n return this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\n }\n\n setListLicenseTransactionJoin(properties) {\n if (!properties) return;\n\n const licenseTransactionJoins = this.getProperty('licenseTransactionJoins', []);\n const licenseTransactionJoin = new LicenseTransactionJoin();\n\n properties.forEach((property) => {\n if (property.name === 'licenseNumber') {\n licenseTransactionJoin.setLicense(new License({ number: property.value }));\n }\n\n if (property.name === 'transactionNumber') {\n licenseTransactionJoin.setTransaction(new Transaction({ number: property.value }));\n }\n });\n\n licenseTransactionJoins.push(licenseTransactionJoin);\n this.setProperty('licenseTransactionJoins', licenseTransactionJoins);\n }\n}\n","import itemToObject from './itemToObject';\nimport Country from '../entities/Country';\n\nexport default (item) => new Country(itemToObject(item));\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport BaseEntity from './BaseEntity';\n\n/**\n * Country entity used internally by NetLicensing.\n *\n * Properties visible via NetLicensing API:\n *\n * @property code - Unique code of country.\n *\n * @property name - Unique name of country\n *\n * @property vatPercent - Country vat.\n *\n * @property isEu - is country in EU.\n */\nexport default class Country extends BaseEntity {\n constructor(properties) {\n super({\n properties,\n // The attributes that should be cast to native types.\n casts: {\n code: 'string',\n name: 'string',\n vatPercent: 'int',\n isEu: 'boolean',\n },\n });\n }\n\n setCode(code) {\n return this.setProperty('code', code);\n }\n\n getCode(def) {\n return this.getProperty('code', def);\n }\n\n setName(name) {\n return this.setProperty('name', name);\n }\n\n getName(def) {\n return this.getProperty('name', def);\n }\n\n setVatPercent(vat) {\n return this.setProperty('vatPercent', vat);\n }\n\n getVatPercent(def) {\n return this.getProperty('vatPercent', def);\n }\n\n setIsEu(isEu) {\n return this.setProperty('isEu', isEu);\n }\n\n getIsEu(def) {\n return this.getProperty('isEu', def);\n }\n}\n","// Constants\nimport Constants from './Constants';\n\n// VO\nimport Context from './vo/Context';\nimport Page from './vo/Page';\nimport ValidationParameters from './vo/ValidationParameters';\nimport ValidationResults from './vo/ValidationResults';\n\n// Services\nimport Service from './services/Service';\nimport LicenseeService from './services/LicenseeService';\nimport LicenseService from './services/LicenseService';\nimport LicenseTemplateService from './services/LicenseTemplateService';\nimport PaymentMethodService from './services/PaymentMethodService';\nimport ProductModuleService from './services/ProductModuleService';\nimport ProductService from './services/ProductService';\nimport TokenService from './services/TokenService';\nimport TransactionService from './services/TransactionService';\nimport UtilityService from './services/UtilityService';\n\n// Entities\nimport BaseEntity from './entities/BaseEntity';\nimport Country from './entities/Country';\nimport License from './entities/License';\nimport Licensee from './entities/Licensee';\nimport LicenseTemplate from './entities/LicenseTemplate';\nimport PaymentMethod from './entities/PaymentMethod';\nimport Product from './entities/Product';\nimport ProductDiscount from './entities/ProductDiscount';\nimport ProductModule from './entities/ProductModule';\nimport Token from './entities/Token';\nimport Transaction from './entities/Transaction';\nimport LicenseTransactionJoin from './entities/LicenseTransactionJoin';\n\n// Converters\nimport itemToCountry from './converters/itemToCountry';\nimport itemToLicense from './converters/itemToLicense';\nimport itemToLicensee from './converters/itemToLicensee';\nimport itemToLicenseTemplate from './converters/itemToLicenseTemplate';\nimport itemToObject from './converters/itemToObject';\nimport itemToPaymentMethod from './converters/itemToPaymentMethod';\nimport itemToProduct from './converters/itemToProduct';\nimport itemToProductModule from './converters/itemToProductModule';\nimport itemToToken from './converters/itemToToken';\nimport itemToTransaction from './converters/itemToTransaction';\n\n// Utils\nimport CastsUtils from './util/CastsUtils';\nimport CheckUtils from './util/CheckUtils';\nimport FilterUtils from './util/FilterUtils';\n\n// Errors\nimport NlicError from './errors/NlicError';\n\n// Create the default instance to be exported\nconst NetLicensing = {\n // Constants\n Constants,\n\n // Expose VO\n Context,\n Page,\n ValidationParameters,\n ValidationResults,\n\n // Expose Services\n Service,\n LicenseeService,\n LicenseService,\n LicenseTemplateService,\n PaymentMethodService,\n ProductModuleService,\n ProductService,\n TokenService,\n TransactionService,\n UtilityService,\n\n // Expose Entities\n BaseEntity,\n Country,\n License,\n Licensee,\n LicenseTemplate,\n PaymentMethod,\n Product,\n ProductDiscount,\n ProductModule,\n Token,\n Transaction,\n LicenseTransactionJoin,\n\n // Expose Converters\n itemToCountry,\n itemToLicense,\n itemToLicensee,\n itemToLicenseTemplate,\n itemToObject,\n itemToPaymentMethod,\n itemToProduct,\n itemToProductModule,\n itemToToken,\n itemToTransaction,\n\n // Expose Utils\n CastsUtils,\n CheckUtils,\n FilterUtils,\n\n // Errors\n NlicError,\n};\n\nmodule.exports = NetLicensing;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = NetLicensing;\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\nimport Constants from '../Constants';\nimport CheckUtils from '../util/CheckUtils';\n\n/**\n * The context values.\n * @type {{}}\n * @private\n */\nconst valuesMap = new WeakMap();\n\n/**\n * List of values that was defined\n * @type {{}}\n * @private\n */\nconst definedMap = new WeakMap();\n\n/**\n * Context defaults\n * @type {{baseUrl: string, securityMode}}\n * @private\n */\nconst defaultsMap = new WeakMap();\n\nexport default class Context {\n constructor(values) {\n defaultsMap.set(this, {\n baseUrl: 'https://go.netlicensing.io/core/v2/rest',\n securityMode: Constants.BASIC_AUTHENTICATION,\n });\n\n valuesMap.set(this, {});\n\n definedMap.set(this, {});\n\n this.setValues({ ...defaultsMap.get(this), ...values });\n }\n\n setBaseUrl(baseUrl) {\n return this.setValue('baseUrl', baseUrl);\n }\n\n getBaseUrl(def) {\n return this.getValue('baseUrl', def);\n }\n\n setUsername(username) {\n return this.setValue('username', username);\n }\n\n getUsername(def) {\n return this.getValue('username', def);\n }\n\n setPassword(password) {\n return this.setValue('password', password);\n }\n\n getPassword(def) {\n return this.getValue('password', def);\n }\n\n setApiKey(apiKey) {\n return this.setValue('apiKey', apiKey);\n }\n\n getApiKey(def) {\n return this.getValue('apiKey', def);\n }\n\n setSecurityMode(securityMode) {\n return this.setValue('securityMode', securityMode);\n }\n\n getSecurityMode(def) {\n return this.getValue('securityMode', def);\n }\n\n setVendorNumber(vendorNumber) {\n return this.setValue('vendorNumber', vendorNumber);\n }\n\n getVendorNumber(def) {\n return this.getValue('vendorNumber', def);\n }\n\n /**\n * Set a given values on the context.\n * @param key\n * @param value\n * @returns {Context}\n */\n setValue(key, value) {\n // check values\n if (!CheckUtils.isValid(key) || typeof key === 'object') throw new Error(`Bad value key:${key}`);\n if (!CheckUtils.isValid(value)) throw new Error(`Value ${key} has wrong value${value}`);\n\n // define keys\n this.define(key);\n\n let copedValue = value;\n\n if (typeof value === 'object' && value !== null) {\n copedValue = (Array.isArray(value)) ? Object.assign([], value) : ({ ...value });\n }\n\n const values = valuesMap.get(this);\n values[key] = copedValue;\n\n return this;\n }\n\n /**\n * Set the array of context values.\n * @param values\n * @returns {Context}\n */\n setValues(values) {\n this.removeValues();\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(values).forEach((key) => {\n if (has.call(values, key)) {\n this.setValue(key, values[key]);\n }\n });\n\n return this;\n }\n\n /**\n * Get an value from the context.\n * @param key\n * @param def\n * @returns {*}\n */\n getValue(key, def) {\n return (key in valuesMap.get(this))\n ? valuesMap.get(this)[key]\n : def;\n }\n\n /**\n * Get all of the current value on the context.\n */\n getValues() {\n return { ...valuesMap.get(this) };\n }\n\n /**\n * Remove value\n * @param key\n * @returns {Context}\n */\n removeValue(key) {\n const values = valuesMap.get(this);\n delete values[key];\n\n this.removeDefine(key);\n return this;\n }\n\n /**\n * Remove values\n * @param keys\n */\n removeValues(keys) {\n const keysAr = keys || Object.keys(valuesMap.get(this));\n keysAr.forEach((key) => this.removeValue(key));\n }\n\n /**\n * Define value getter and setter\n * @param key\n * @param onlyGetter\n * @private\n */\n define(key, onlyGetter) {\n if (this.hasDefine(key)) return;\n\n if (!CheckUtils.isValid(key) || typeof property === 'object') {\n throw new TypeError(`Bad value name:${key}`);\n }\n\n const self = this;\n\n // delete property\n delete this[key];\n\n const descriptors = {\n enumerable: true,\n configurable: true,\n get() {\n return self.getValue(key);\n },\n };\n\n if (!onlyGetter) {\n descriptors.set = (value) => self.setValue(key, value);\n }\n\n const defined = definedMap.get(this);\n defined[key] = true;\n\n Object.defineProperty(this, key, descriptors);\n }\n\n /**\n * Check if value has defined\n * @param key\n * @private\n */\n hasDefine(key) {\n return Boolean(definedMap.get(this)[key]);\n }\n\n /**\n * Remove value getter and setter\n * @param key\n * @private\n */\n removeDefine(key) {\n if (!this.hasDefine(key)) return;\n\n const defined = definedMap.get(this);\n delete defined[key];\n\n delete this[key];\n }\n}\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\n/**\n * Validation parameters map\n *\n * @type {WeakMap}\n */\nconst vpMap = new WeakMap();\n\nexport default class ValidationParameters {\n constructor() {\n vpMap.set(this, { parameters: {} });\n }\n\n /**\n * Sets the target product\n *\n * optional productNumber, must be provided in case licensee auto-create is enabled\n * @param productNumber\n * @returns {ValidationParameters}\n */\n setProductNumber(productNumber) {\n vpMap.get(this).productNumber = productNumber;\n return this;\n }\n\n /**\n * Get the target product\n * @returns {*}\n */\n getProductNumber() {\n return vpMap.get(this).productNumber;\n }\n\n /**\n * Sets the name for the new licensee\n *\n * optional human-readable licensee name in case licensee will be auto-created. This parameter must not\n * be the name, but can be used to store any other useful string information with new licensees, up to\n * 1000 characters.\n * @param licenseeName\n * @returns {NetLicensing.ValidationParameters}\n */\n setLicenseeName(licenseeName) {\n vpMap.get(this).licenseeName = licenseeName;\n return this;\n }\n\n /**\n * Get the licensee name\n * @returns {*}\n */\n getLicenseeName() {\n return vpMap.get(this).licenseeName;\n }\n\n /**\n * Sets the licensee secret\n *\n * licensee secret stored on the client side. Refer to Licensee Secret documentation for details.\n * @param licenseeSecret\n * @returns {ValidationParameters}\n * @deprecated use 'NodeLocked' licensingModel instead\n */\n setLicenseeSecret(licenseeSecret) {\n vpMap.get(this).licenseeSecret = licenseeSecret;\n return this;\n }\n\n /**\n * Get the licensee secret\n * @returns {*}\n * @deprecated use 'NodeLocked' licensingModel instead\n */\n getLicenseeSecret() {\n return vpMap.get(this).licenseeSecret;\n }\n\n /**\n * Get validation parameters\n * @returns {*}\n */\n getParameters() {\n return { ...vpMap.get(this).parameters };\n }\n\n getProductModuleValidationParameters(productModuleNumber) {\n return { ...vpMap.get(this).parameters[productModuleNumber] };\n }\n\n setProductModuleValidationParameters(productModuleNumber, productModuleParameters) {\n const { parameters } = vpMap.get(this);\n\n if (parameters[productModuleNumber] === undefined || !Object.keys(parameters[productModuleNumber]).length) {\n parameters[productModuleNumber] = {};\n }\n\n parameters[productModuleNumber] = Object.assign(parameters[productModuleNumber], productModuleParameters);\n\n return this;\n }\n}\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n var cookies = require('./../helpers/cookies');\n\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (requestData === undefined) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildFullPath = require('../core/buildFullPath');\nvar buildURL = require('./../helpers/buildURL');\nvar http = require('http');\nvar https = require('https');\nvar httpFollow = require('follow-redirects').http;\nvar httpsFollow = require('follow-redirects').https;\nvar url = require('url');\nvar zlib = require('zlib');\nvar pkg = require('./../../package.json');\nvar createError = require('../core/createError');\nvar enhanceError = require('../core/enhanceError');\n\nvar isHttps = /https:?/;\n\n/*eslint consistent-return:0*/\nmodule.exports = function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n var resolve = function resolve(value) {\n resolvePromise(value);\n };\n var reject = function reject(value) {\n rejectPromise(value);\n };\n var data = config.data;\n var headers = config.headers;\n\n // Set User-Agent (required by some servers)\n // Only set header if it hasn't been set in config\n // See https://github.com/axios/axios/issues/69\n if (!headers['User-Agent'] && !headers['user-agent']) {\n headers['User-Agent'] = 'axios/' + pkg.version;\n }\n\n if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(createError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers['Content-Length'] = data.length;\n }\n\n // HTTP basic authentication\n var auth = undefined;\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n // Parse url\n var fullPath = buildFullPath(config.baseURL, config.url);\n var parsed = url.parse(fullPath);\n var protocol = parsed.protocol || 'http:';\n\n if (!auth && parsed.auth) {\n var urlAuth = parsed.auth.split(':');\n var urlUsername = urlAuth[0] || '';\n var urlPassword = urlAuth[1] || '';\n auth = urlUsername + ':' + urlPassword;\n }\n\n if (auth) {\n delete headers.Authorization;\n }\n\n var isHttpsRequest = isHttps.test(protocol);\n var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n\n var options = {\n path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\\?/, ''),\n method: config.method.toUpperCase(),\n headers: headers,\n agent: agent,\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth: auth\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n }\n\n var proxy = config.proxy;\n if (!proxy && proxy !== false) {\n var proxyEnv = protocol.slice(0, -1) + '_proxy';\n var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];\n if (proxyUrl) {\n var parsedProxyUrl = url.parse(proxyUrl);\n var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;\n var shouldProxy = true;\n\n if (noProxyEnv) {\n var noProxy = noProxyEnv.split(',').map(function trim(s) {\n return s.trim();\n });\n\n shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {\n if (!proxyElement) {\n return false;\n }\n if (proxyElement === '*') {\n return true;\n }\n if (proxyElement[0] === '.' &&\n parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {\n return true;\n }\n\n return parsed.hostname === proxyElement;\n });\n }\n\n\n if (shouldProxy) {\n proxy = {\n host: parsedProxyUrl.hostname,\n port: parsedProxyUrl.port\n };\n\n if (parsedProxyUrl.auth) {\n var proxyUrlAuth = parsedProxyUrl.auth.split(':');\n proxy.auth = {\n username: proxyUrlAuth[0],\n password: proxyUrlAuth[1]\n };\n }\n }\n }\n }\n\n if (proxy) {\n options.hostname = proxy.host;\n options.host = proxy.host;\n options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');\n options.port = proxy.port;\n options.path = protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path;\n\n // Basic proxy authorization\n if (proxy.auth) {\n var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n }\n\n var transport;\n var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsProxy ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n transport = isHttpsProxy ? httpsFollow : httpFollow;\n }\n\n if (config.maxContentLength && config.maxContentLength > -1) {\n options.maxBodyLength = config.maxContentLength;\n }\n\n // Create the request\n var req = transport.request(options, function handleResponse(res) {\n if (req.aborted) return;\n\n // uncompress the response body transparently if required\n var stream = res;\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n stream = (res.statusCode === 204) ? stream : stream.pipe(zlib.createUnzip());\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n }\n\n // return the last request in case of redirects\n var lastRequest = res.req || req;\n\n var response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: res.headers,\n config: config,\n request: lastRequest\n };\n\n if (config.responseType === 'stream') {\n response.data = stream;\n settle(resolve, reject, response);\n } else {\n var responseBuffer = [];\n stream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && Buffer.concat(responseBuffer).length > config.maxContentLength) {\n stream.destroy();\n reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n config, null, lastRequest));\n }\n });\n\n stream.on('error', function handleStreamError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, lastRequest));\n });\n\n stream.on('end', function handleStreamEnd() {\n var responseData = Buffer.concat(responseBuffer);\n if (config.responseType !== 'arraybuffer') {\n responseData = responseData.toString(config.responseEncoding);\n }\n\n response.data = responseData;\n settle(resolve, reject, response);\n });\n }\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, req));\n });\n\n // Handle request timeout\n if (config.timeout) {\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devoring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(config.timeout, function handleRequestTimeout() {\n req.abort();\n reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED', req));\n });\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (req.aborted) return;\n\n req.abort();\n reject(cancel);\n });\n }\n\n // Send the request\n if (utils.isStream(data)) {\n data.on('error', function handleStreamError(err) {\n reject(enhanceError(err, config, null, req));\n }).pipe(req);\n } else {\n req.end(data);\n }\n });\n};\n","module.exports = require(\"assert\");","module.exports = require(\"stream\");","/**\n * Detect Electron renderer process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer') {\n module.exports = require('./browser.js');\n} else {\n module.exports = require('./node.js');\n}\n","/**\n * This is the web browser implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = require('./debug');\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome\n && 'undefined' != typeof chrome.storage\n ? chrome.storage.local\n : localstorage();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n '#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC',\n '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF',\n '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC',\n '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF',\n '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC',\n '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033',\n '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366',\n '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933',\n '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC',\n '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF',\n '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {\n return true;\n }\n\n // Internet Explorer and Edge do not support colors.\n if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n return false;\n }\n\n // is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n // is firebug? http://stackoverflow.com/a/398120/376773\n (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n // is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n // double check webkit in userAgent just in case we are in a worker\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nexports.formatters.j = function(v) {\n try {\n return JSON.stringify(v);\n } catch (err) {\n return '[UnexpectedJSONParseError]: ' + err.message;\n }\n};\n\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var useColors = this.useColors;\n\n args[0] = (useColors ? '%c' : '')\n + this.namespace\n + (useColors ? ' %c' : ' ')\n + args[0]\n + (useColors ? '%c ' : ' ')\n + '+' + exports.humanize(this.diff);\n\n if (!useColors) return;\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit')\n\n // the final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function(match) {\n if ('%%' === match) return;\n index++;\n if ('%c' === match) {\n // we only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n\n args.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\nfunction log() {\n // this hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return 'object' === typeof console\n && console.log\n && Function.prototype.apply.call(console.log, console, arguments);\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch(e) {}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n var r;\n try {\n r = exports.storage.debug;\n } catch(e) {}\n\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n\n/**\n * Enable namespaces listed in `localStorage.debug` initially.\n */\n\nexports.enable(load());\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isNaN(val) === false) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^((?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n if (ms >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (ms >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (ms >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (ms >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n return plural(ms, d, 'day') ||\n plural(ms, h, 'hour') ||\n plural(ms, m, 'minute') ||\n plural(ms, s, 'second') ||\n ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, n, name) {\n if (ms < n) {\n return;\n }\n if (ms < n * 1.5) {\n return Math.floor(ms / n) + ' ' + name;\n }\n return Math.ceil(ms / n) + ' ' + name + 's';\n}\n","/**\n * Module dependencies.\n */\n\nvar tty = require('tty');\nvar util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = require('./debug');\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\n\n/**\n * Colors.\n */\n\nexports.colors = [ 6, 2, 3, 4, 5, 1 ];\n\ntry {\n var supportsColor = require('supports-color');\n if (supportsColor && supportsColor.level >= 2) {\n exports.colors = [\n 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68,\n 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134,\n 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171,\n 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204,\n 205, 206, 207, 208, 209, 214, 215, 220, 221\n ];\n }\n} catch (err) {\n // swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(function (key) {\n return /^debug_/i.test(key);\n}).reduce(function (obj, key) {\n // camel-case\n var prop = key\n .substring(6)\n .toLowerCase()\n .replace(/_([a-z])/g, function (_, k) { return k.toUpperCase() });\n\n // coerce string value into JS value\n var val = process.env[key];\n if (/^(yes|on|true|enabled)$/i.test(val)) val = true;\n else if (/^(no|off|false|disabled)$/i.test(val)) val = false;\n else if (val === 'null') val = null;\n else val = Number(val);\n\n obj[prop] = val;\n return obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n return 'colors' in exports.inspectOpts\n ? Boolean(exports.inspectOpts.colors)\n : tty.isatty(process.stderr.fd);\n}\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nexports.formatters.o = function(v) {\n this.inspectOpts.colors = this.useColors;\n return util.inspect(v, this.inspectOpts)\n .split('\\n').map(function(str) {\n return str.trim()\n }).join(' ');\n};\n\n/**\n * Map %o to `util.inspect()`, allowing multiple lines if needed.\n */\n\nexports.formatters.O = function(v) {\n this.inspectOpts.colors = this.useColors;\n return util.inspect(v, this.inspectOpts);\n};\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var name = this.namespace;\n var useColors = this.useColors;\n\n if (useColors) {\n var c = this.color;\n var colorCode = '\\u001b[3' + (c < 8 ? c : '8;5;' + c);\n var prefix = ' ' + colorCode + ';1m' + name + ' ' + '\\u001b[0m';\n\n args[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n args.push(colorCode + 'm+' + exports.humanize(this.diff) + '\\u001b[0m');\n } else {\n args[0] = getDate() + name + ' ' + args[0];\n }\n}\n\nfunction getDate() {\n if (exports.inspectOpts.hideDate) {\n return '';\n } else {\n return new Date().toISOString() + ' ';\n }\n}\n\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\nfunction log() {\n return process.stderr.write(util.format.apply(util, arguments) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n if (null == namespaces) {\n // If you set a process.env field to null or undefined, it gets cast to the\n // string 'null' or 'undefined'. Just delete instead.\n delete process.env.DEBUG;\n } else {\n process.env.DEBUG = namespaces;\n }\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n return process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init (debug) {\n debug.inspectOpts = {};\n\n var keys = Object.keys(exports.inspectOpts);\n for (var i = 0; i < keys.length; i++) {\n debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n }\n}\n\n/**\n * Enable namespaces listed in `process.env.DEBUG` initially.\n */\n\nexports.enable(load());\n","module.exports = require(\"tty\");","module.exports = require(\"util\");","'use strict';\nconst os = require('os');\nconst hasFlag = require('has-flag');\n\nconst env = process.env;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false')) {\n\tforceColor = false;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = true;\n}\nif ('FORCE_COLOR' in env) {\n\tforceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(stream) {\n\tif (forceColor === false) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (stream && !stream.isTTY && forceColor !== true) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor ? 1 : 0;\n\n\tif (process.platform === 'win32') {\n\t\t// Node.js 7.5.0 is the first version of Node.js to include a patch to\n\t\t// libuv that enables 256 color output on Windows. Anything earlier and it\n\t\t// won't work. However, here we target Node.js 8 at minimum as it is an LTS\n\t\t// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows\n\t\t// release that supports 256 colors. Windows 10 build 14931 is the first release\n\t\t// that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(process.versions.node.split('.')[0]) >= 8 &&\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: getSupportLevel(process.stdout),\n\tstderr: getSupportLevel(process.stderr)\n};\n","module.exports = require(\"os\");","'use strict';\nmodule.exports = (flag, argv) => {\n\targv = argv || process.argv;\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst pos = argv.indexOf(prefix + flag);\n\tconst terminatorPos = argv.indexOf('--');\n\treturn pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);\n};\n","module.exports = require(\"zlib\");","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","(function () {\n \"use strict\";\n\n function btoa(str) {\n var buffer;\n\n if (str instanceof Buffer) {\n buffer = str;\n } else {\n buffer = Buffer.from(str.toString(), 'binary');\n }\n\n return buffer.toString('base64');\n }\n\n module.exports = btoa;\n}());\n","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeFunction = require(\"./isNativeFunction\");\n\nvar construct = require(\"./construct\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;","function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport ValidationResults from '../vo/ValidationResults';\nimport itemToLicensee from '../converters/itemToLicensee';\nimport Page from '../vo/Page';\nimport itemToObject from '../converters/itemToObject';\n\n/**\n * JS representation of the Licensee Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/licensee-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new licensee object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#create-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent product to which the new licensee is to be added\n * @param productNumber string\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param licensee NetLicensing.Licensee\n *\n * return the newly created licensee object in promise\n * @returns {Promise}\n */\n async create(context, productNumber, licensee) {\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\n\n licensee.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Licensee.ENDPOINT_PATH, licensee.asPropertiesMap());\n\n return itemToLicensee(item);\n },\n\n /**\n * Gets licensee by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#get-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the licensee number\n * @param number string\n *\n * return the licensee in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`);\n\n return itemToLicensee(item);\n },\n\n /**\n * Returns all licensees of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#licensees-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of licensees (of all products) or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.Licensee.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToLicensee(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates licensee properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#update-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * licensee number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param licensee NetLicensing.Licensee\n *\n * return updated licensee in promise.\n * @returns {Promise}\n */\n async update(context, number, licensee) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, licensee.asPropertiesMap());\n\n return itemToLicensee(item);\n },\n\n /**\n * Deletes licensee.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#delete-licensee\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * licensee number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service\n .delete(context, `${Constants.Licensee.ENDPOINT_PATH}/${number}`, queryParams);\n },\n\n /**\n * Validates active licenses of the licensee. See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/licensee-services#validate-licensee\n *\n * @param context NetLicensing.Context\n *\n * licensee number\n * @param number string\n *\n * optional validation parameters. See ValidationParameters and licensing model documentation for\n * details.\n * @param validationParameters NetLicensing.ValidationParameters.\n *\n * @returns {ValidationResults}\n */\n async validate(context, number, validationParameters) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = {};\n\n if (validationParameters.getProductNumber()) {\n queryParams.productNumber = validationParameters.getProductNumber();\n }\n\n if (validationParameters.getLicenseeName()) {\n queryParams.licenseeName = validationParameters.getLicenseeName();\n }\n\n if (validationParameters.getLicenseeSecret()) {\n queryParams.licenseeSecret = validationParameters.getLicenseeSecret();\n }\n\n let pmIndex = 0;\n const parameters = validationParameters.getParameters();\n\n const has = Object.prototype.hasOwnProperty;\n\n Object.keys(parameters).forEach((productModuleName) => {\n queryParams[`${Constants.ProductModule.PRODUCT_MODULE_NUMBER}${pmIndex}`] = productModuleName;\n if (!has.call(parameters, productModuleName)) return;\n\n const parameter = parameters[productModuleName];\n\n Object.keys(parameter).forEach((key) => {\n if (has.call(parameter, key)) {\n queryParams[key + pmIndex] = parameter[key];\n }\n });\n pmIndex += 1;\n });\n\n const { data: { items: { item: items }, ttl } } = await Service.post(\n context,\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_VALIDATE}`,\n queryParams,\n );\n\n const validationResults = new ValidationResults();\n validationResults.setTtl(ttl);\n\n items.forEach((v) => {\n const item = itemToObject(v);\n validationResults.setProductModuleValidation(item[Constants.ProductModule.PRODUCT_MODULE_NUMBER], item);\n });\n\n return validationResults;\n },\n\n\n /**\n * Transfer licenses between licensees.\n * @see https://netlicensing.io/wiki/licensee-services#transfer-licenses\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the number of the licensee receiving licenses\n * @param number string\n *\n * the number of the licensee delivering licenses\n * @param sourceLicenseeNumber string\n *\n * @returns {Promise}\n */\n transfer(context, number, sourceLicenseeNumber) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n CheckUtils.paramNotEmpty(sourceLicenseeNumber, Constants.Licensee.SOURCE_LICENSEE_NUMBER);\n\n const queryParams = { sourceLicenseeNumber };\n\n return Service\n .post(\n context,\n `${Constants.Licensee.ENDPOINT_PATH}/${number}/${Constants.Licensee.ENDPOINT_PATH_TRANSFER}`,\n queryParams,\n );\n },\n};\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) {\n return;\n }\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nmodule.exports = _nonIterableRest;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToLicense from '../converters/itemToLicense';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the License Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/license-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new license object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#create-license\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent licensee to which the new license is to be added\n * @param licenseeNumber string\n *\n * license template that the license is created from\n * @param licenseTemplateNumber string\n *\n * For privileged logins specifies transaction for the license creation. For regular logins new\n * transaction always created implicitly, and the operation will be in a separate transaction.\n * Transaction is generated with the provided transactionNumber, or, if transactionNumber is null, with\n * auto-generated number.\n * @param transactionNumber null|string\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param license NetLicensing.License\n *\n * return the newly created license object in promise\n * @returns {Promise}\n */\n async create(context, licenseeNumber, licenseTemplateNumber, transactionNumber, license) {\n CheckUtils.paramNotEmpty(licenseeNumber, Constants.Licensee.LICENSEE_NUMBER);\n CheckUtils.paramNotEmpty(licenseTemplateNumber, Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER);\n\n license.setProperty(Constants.Licensee.LICENSEE_NUMBER, licenseeNumber);\n license.setProperty(Constants.LicenseTemplate.LICENSE_TEMPLATE_NUMBER, licenseTemplateNumber);\n\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.License.ENDPOINT_PATH, license.asPropertiesMap());\n\n return itemToLicense(item);\n },\n\n\n /**\n * Gets license by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#get-license\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the license number\n * @param number string\n *\n * return the license in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.License.ENDPOINT_PATH}/${number}`);\n\n return itemToLicense(item);\n },\n\n /**\n * Returns licenses of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#licenses-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * return array of licenses (of all products) or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.License.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToLicense(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates license properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#update-license\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license number\n * @param number string\n *\n * transaction for the license update. Created implicitly if transactionNumber is null. In this case the\n * operation will be in a separate transaction.\n * @param transactionNumber string|null\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param license NetLicensing.License\n *\n * return updated license in promise.\n * @returns {Promise}\n */\n async update(context, number, transactionNumber, license) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n if (transactionNumber) license.setProperty(Constants.Transaction.TRANSACTION_NUMBER, transactionNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.License.ENDPOINT_PATH}/${number}`, license.asPropertiesMap());\n\n return itemToLicense(item);\n },\n\n /**\n * Deletes license.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-services#delete-license\n *\n * When any license is deleted, corresponding transaction is created automatically.\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service\n .delete(context, `${Constants.License.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToLicenseTemplate from '../converters/itemToLicenseTemplate';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/license-template-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new license template object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#create-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent product module to which the new license template is to be added\n * @param productModuleNumber\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param licenseTemplate NetLicensing.LicenseTemplate\n *\n * the newly created license template object in promise\n * @returns {Promise}\n */\n async create(context, productModuleNumber, licenseTemplate) {\n CheckUtils.paramNotEmpty(productModuleNumber, Constants.ProductModule.PRODUCT_MODULE_NUMBER);\n\n licenseTemplate.setProperty(Constants.ProductModule.PRODUCT_MODULE_NUMBER, productModuleNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.LicenseTemplate.ENDPOINT_PATH, licenseTemplate.asPropertiesMap());\n\n return itemToLicenseTemplate(item);\n },\n\n /**\n * Gets license template by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#get-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the license template number\n * @param number string\n *\n * return the license template object in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`);\n\n return itemToLicenseTemplate(item);\n },\n\n /**\n * Returns all license templates of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#license-templates-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of license templates (of all products/modules) or null/empty list if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.LicenseTemplate.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToLicenseTemplate(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates license template properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/license-template-services#update-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license template number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param licenseTemplate NetLicensing.LicenseTemplate\n *\n * updated license template in promise.\n * @returns {Promise}\n */\n async update(context, number, licenseTemplate) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const path = `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`;\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, path, licenseTemplate.asPropertiesMap());\n\n return itemToLicenseTemplate(item);\n },\n\n /**\n * Deletes license template.See NetLicensingAPI JavaDoc for details:\n * @see https://netlicensing.io/wiki/license-template-services#delete-license-template\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * license template number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service\n .delete(context, `${Constants.LicenseTemplate.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport CheckUtils from '../util/CheckUtils';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToPaymentMethod from '../converters/itemToPaymentMethod';\nimport Page from '../vo/Page';\n\nexport default {\n /**\n * Gets payment method by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/payment-method-services#get-payment-method\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the payment method number\n * @param number string\n *\n * return the payment method in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`);\n\n return itemToPaymentMethod(item);\n },\n\n /**\n * Returns payment methods of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/payment-method-services#payment-methods-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of payment method entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.PaymentMethod.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToPaymentMethod(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates payment method properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/payment-method-services#update-payment-method\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the payment method number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param paymentMethod NetLicensing.PaymentMethod\n *\n * return updated payment method in promise.\n * @returns {Promise}\n */\n async update(context, number, paymentMethod) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const path = `${Constants.PaymentMethod.ENDPOINT_PATH}/${number}`;\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, path, paymentMethod.asPropertiesMap());\n\n return itemToPaymentMethod(item);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport CheckUtils from '../util/CheckUtils';\nimport Constants from '../Constants';\nimport Service from './Service';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToProductModule from '../converters/itemToProductModule';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the ProductModule Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/product-module-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new product module object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#create-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * parent product to which the new product module is to be added\n * @param productNumber string\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param productModule NetLicensing.ProductModule\n *\n * the newly created product module object in promise\n * @returns {Promise}\n */\n async create(context, productNumber, productModule) {\n CheckUtils.paramNotEmpty(productNumber, Constants.Product.PRODUCT_NUMBER);\n\n productModule.setProperty(Constants.Product.PRODUCT_NUMBER, productNumber);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.ProductModule.ENDPOINT_PATH, productModule.asPropertiesMap());\n\n return itemToProductModule(item);\n },\n\n /**\n * Gets product module by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#get-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the product module number\n * @param number string\n *\n * return the product module object in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`);\n\n return itemToProductModule(item);\n },\n\n /**\n * Returns products of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#product-modules-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of product modules entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service.get(context, Constants.ProductModule.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToProductModule(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates product module properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#update-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product module number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param productModule NetLicensing.ProductModule\n *\n * updated product module in promise.\n * @returns {Promise}\n */\n async update(context, number, productModule) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, productModule.asPropertiesMap());\n\n return itemToProductModule(item);\n },\n\n /**\n * Deletes product module.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-module-services#delete-product-module\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product module number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service.delete(context, `${Constants.ProductModule.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Service from './Service';\nimport Constants from '../Constants';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToProduct from '../converters/itemToProduct';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the Product Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/product-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new product with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#create-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param product NetLicensing.Product\n *\n * return the newly created product object in promise\n * @returns {Promise}\n */\n\n async create(context, product) {\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Product.ENDPOINT_PATH, product.asPropertiesMap());\n return itemToProduct(item);\n },\n\n /**\n * Gets product by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#get-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the product number\n * @param number string\n *\n * return the product object in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Product.ENDPOINT_PATH}/${number}`);\n return itemToProduct(item);\n },\n\n /**\n * Returns products of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#products-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of product entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) throw new TypeError(`filter has bad value ${filter}`);\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service.get(context, Constants.Product.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToProduct(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates product properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#update-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param product NetLicensing.Product\n *\n * updated product in promise.\n * @returns {Promise}\n */\n async update(context, number, product) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, product.asPropertiesMap());\n\n return itemToProduct(item);\n },\n\n /**\n * Deletes product.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/product-services#delete-product\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * product number\n * @param number string\n *\n * if true, any entities that depend on the one being deleted will be deleted too\n * @param forceCascade boolean\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number, forceCascade) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const queryParams = { forceCascade: Boolean(forceCascade) };\n\n return Service.delete(context, `${Constants.Product.ENDPOINT_PATH}/${number}`, queryParams);\n },\n};\n","var superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport Service from './Service';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToToken from '../converters/itemToToken';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the Token Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/token-services\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new token.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#create-token\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param token NetLicensing.Token\n *\n * return created token in promise\n * @returns {Promise}\n */\n async create(context, token) {\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Token.ENDPOINT_PATH, token.asPropertiesMap());\n\n return itemToToken(item);\n },\n\n /**\n * Gets token by its number..See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#get-token\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the token number\n * @param number\n *\n * return the token in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\n\n return itemToToken(item);\n },\n\n /**\n * Returns tokens of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#tokens-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string|null\n *\n * array of token entities or empty array if nothing found.\n * @return array\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.Token.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToToken(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Delete token by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/token-services#delete-token\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the token number\n * @param number string\n *\n * return boolean state of delete in promise\n * @returns {Promise}\n */\n delete(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n return Service\n .delete(context, `${Constants.Token.ENDPOINT_PATH}/${number}`);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport Service from './Service';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToTransaction from '../converters/itemToTransaction';\nimport Page from '../vo/Page';\n\n/**\n * JS representation of the Transaction Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/transaction-services\n *\n * Transaction is created each time change to LicenseService licenses happens. For instance licenses are\n * obtained by a licensee, licenses disabled by vendor, licenses deleted, etc. Transaction is created no matter what\n * source has initiated the change to licenses: it can be either a direct purchase of licenses by a licensee via\n * NetLicensing Shop, or licenses can be given to a licensee by a vendor. Licenses can also be assigned implicitly by\n * NetLicensing if it is defined so by a license model (e.g. evaluation license may be given automatically). All these\n * events are reflected in transactions. Of all the transaction handling routines only read-only routines are exposed to\n * the public API, as transactions are only allowed to be created and modified by NetLicensing internally.\n *\n * @constructor\n */\n\nexport default {\n /**\n * Creates new transaction object with given properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#create-transaction\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * non-null properties will be taken for the new object, null properties will either stay null, or will\n * be set to a default value, depending on property.\n * @param transaction NetLicensing.Transaction\n *\n * return the newly created transaction object in promise\n * @returns {Promise}\n */\n async create(context, transaction) {\n const { data: { items: { item: [item] } } } = await Service\n .post(context, Constants.Transaction.ENDPOINT_PATH, transaction.asPropertiesMap());\n\n return itemToTransaction(item);\n },\n\n /**\n * Gets transaction by its number.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#get-transaction\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * the transaction number\n * @param number string\n *\n * return the transaction in promise\n * @returns {Promise}\n */\n async get(context, number) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .get(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`);\n\n return itemToTransaction(item);\n },\n\n /**\n * Returns all transactions of a vendor.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#transactions-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter string\n *\n * array of transaction entities or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async list(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(context, Constants.Transaction.ENDPOINT_PATH, queryParams);\n\n return Page(\n data.items.item.map((v) => itemToTransaction(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Updates transaction properties.See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/transaction-services#update-transaction\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * transaction number\n * @param number string\n *\n * non-null properties will be updated to the provided values, null properties will stay unchanged.\n * @param transaction NetLicensing.Transaction\n *\n * return updated transaction in promise.\n * @returns {Promise}\n */\n async update(context, number, transaction) {\n CheckUtils.paramNotEmpty(number, Constants.NUMBER);\n\n const { data: { items: { item: [item] } } } = await Service\n .post(context, `${Constants.Transaction.ENDPOINT_PATH}/${number}`, transaction.asPropertiesMap());\n\n return itemToTransaction(item);\n },\n};\n","/**\n * @author Labs64 \n * @license Apache-2.0\n * @link https://netlicensing.io\n * @copyright 2017 Labs64 NetLicensing\n */\n\nimport Constants from '../Constants';\nimport Service from './Service';\nimport CheckUtils from '../util/CheckUtils';\nimport FilterUtils from '../util/FilterUtils';\nimport itemToObject from '../converters/itemToObject';\nimport Page from '../vo/Page';\nimport itemToCountry from '../converters/itemToCountry';\n\n/**\n * JS representation of the Utility Service. See NetLicensingAPI for details:\n * https://netlicensing.io/wiki/utility-services\n * @constructor\n */\n\nexport default {\n /**\n * Returns all license types. See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/utility-services#license-types-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * array of available license types or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async listLicenseTypes(context) {\n const { data } = await Service\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSE_TYPES}`);\n\n return Page(\n data.items.item.map((v) => itemToObject(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Returns all license models. See NetLicensingAPI for details:\n * @see https://netlicensing.io/wiki/utility-services#licensing-models-list\n *\n * determines the vendor on whose behalf the call is performed\n * @param context NetLicensing.Context\n *\n * array of available license models or empty array if nothing found in promise.\n * @returns {Promise}\n */\n async listLicensingModels(context) {\n const { data } = await Service\n .get(context, `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_LICENSING_MODELS}`);\n\n return Page(\n data.items.item.map((v) => itemToObject(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n\n /**\n * Returns all countries.\n *\n * determines the vendor on whose behalf the call is performed\n * @param context\n *\n * reserved for the future use, must be omitted / set to NULL\n * @param filter\n *\n * collection of available countries or null/empty list if nothing found in promise.\n * @returns {Promise}\n */\n async listCountries(context, filter) {\n const queryParams = {};\n\n if (filter) {\n if (!CheckUtils.isValid(filter)) {\n throw new TypeError(`filter has bad value ${filter}`);\n }\n queryParams[Constants.FILTER] = typeof filter === 'string' ? filter : FilterUtils.encode(filter);\n }\n\n const { data } = await Service\n .get(\n context,\n `${Constants.Utility.ENDPOINT_PATH}/${Constants.Utility.ENDPOINT_PATH_COUNTRIES}`,\n queryParams,\n );\n\n return Page(\n data.items.item.map((v) => itemToCountry(v)),\n data.items.pagenumber,\n data.items.itemsnumber,\n data.items.totalpages,\n data.items.totalitems,\n );\n },\n};\n"],"sourceRoot":""} \ No newline at end of file