@icanbwell/composite 1.1058.0 → 1.1058.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/native.js CHANGED
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import{ComponentView as o}from"@icanbwell/native-components";var s="@icanbwell/composite",p="1.1058.0",c="icanbwell",v="module",l="index.js",m="types/index.d.ts",b="UNLICENSED",d={url:"https://github.com/icanbwell/ui-platform.git"},y={"*":{native:["types/native.d.ts"]}},u={lint:"eslint .","lint:eslint":"npm run lint"},w={"@icanbwell/native-components":"6.7.1"},f={react:"^17.0.0 || ^18.0.0","react-dom":"^17.0.0 || ^18.0.0","react-native":"^0.71.2","react-native-webview":"^11.4.2"},O={"react-native":{optional:!0},react:{optional:!0},"react-dom":{optional:!0},"react-native-webview":{optional:!0}},j="0.1304.0",D="@icanbwell/composite. repo version: 0.1304.0",V={name:s,version:p,author:c,type:v,main:l,types:m,license:b,repository:d,typesVersions:y,scripts:u,dependencies:w,peerDependencies:f,peerDependenciesMeta:O,repoVersion:j,description:D};const g="composite";var h=Object.defineProperty,P=Object.defineProperties,x=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,i=(r,e,t)=>e in r?h(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,M=(r,e)=>{for(var t in e||(e={}))C.call(e,t)&&i(r,t,e[t]);if(n)for(var t of n(e))E.call(e,t)&&i(r,t,e[t]);return r},N=(r,e)=>P(r,x(e));const I=r=>a(o,N(M({},r),{version:V.version,name:g}));export{I as Composite};
1
+ import{jsx as a}from"react/jsx-runtime";import{ComponentView as o}from"@icanbwell/native-components";var p="@icanbwell/composite",s="1.1058.1-alpha.2",c="icanbwell",v="module",l="index.js",m="types/index.d.ts",b="UNLICENSED",d={url:"https://github.com/icanbwell/ui-platform.git"},y={"*":{native:["types/native.d.ts"]}},u={lint:"eslint .","lint:eslint":"npm run lint"},w={"@icanbwell/native-components":"6.8.1"},f={react:"^17.0.0 || ^18.0.0","react-dom":"^17.0.0 || ^18.0.0","react-native":"^0.71.2","react-native-webview":"^11.4.2"},O={"react-native":{optional:!0},react:{optional:!0},"react-dom":{optional:!0},"react-native-webview":{optional:!0}},j="0.1304.0",h="@icanbwell/composite. repo version: 0.1304.0",D={name:p,version:s,author:c,type:v,main:l,types:m,license:b,repository:d,typesVersions:y,scripts:u,dependencies:w,peerDependencies:f,peerDependenciesMeta:O,repoVersion:j,description:h};const V="composite";var g=Object.defineProperty,P=Object.defineProperties,x=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,i=(r,e,t)=>e in r?g(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,M=(r,e)=>{for(var t in e||(e={}))C.call(e,t)&&i(r,t,e[t]);if(n)for(var t of n(e))E.call(e,t)&&i(r,t,e[t]);return r},N=(r,e)=>P(r,x(e));const I=r=>a(o,N(M({},r),{version:D.version,name:V}));export{I as Composite};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/composite",
3
- "version": "1.1058.0",
3
+ "version": "1.1058.1-alpha.2",
4
4
  "author": "icanbwell",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -21,7 +21,7 @@
21
21
  "lint:eslint": "npm run lint"
22
22
  },
23
23
  "dependencies": {
24
- "@icanbwell/native-components": "6.7.1"
24
+ "@icanbwell/native-components": "6.8.1"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": "^17.0.0 || ^18.0.0",
package/897.index.js DELETED
@@ -1,19 +0,0 @@
1
- (globalThis.webpackChunk_icanbwell_composite=globalThis.webpackChunk_icanbwell_composite||[]).push([[897],{1677:(F,p,h)=>{"use strict";h.d(p,{b:()=>on});var u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},u(t,e)};function m(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");u(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var E=function(){return E=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},E.apply(this,arguments)};function w(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function A(t,e,n,r){var a=arguments.length,c=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(t,e,n,r);else for(var U=t.length-1;U>=0;U--)(_=t[U])&&(c=(a<3?_(c):a>3?_(e,n,c):_(e,n))||c);return a>3&&c&&Object.defineProperty(e,n,c),c}function g(t,e){return function(n,r){e(n,r,t)}}function v(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function o(t,e,n,r){function a(c){return c instanceof n?c:new n(function(_){_(c)})}return new(n||(n=Promise))(function(c,_){function U($){try{j(r.next($))}catch(ue){_(ue)}}function X($){try{j(r.throw($))}catch(ue){_(ue)}}function j($){$.done?c($.value):a($.value).then(U,X)}j((r=r.apply(t,e||[])).next())})}function l(t,e){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,a,c,_;return _={next:U(0),throw:U(1),return:U(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function U(j){return function($){return X([j,$])}}function X(j){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(c=j[0]&2?a.return:j[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,j[1])).done)return c;switch(a=0,c&&(j=[j[0]&2,c.value]),j[0]){case 0:case 1:c=j;break;case 4:return n.label++,{value:j[1],done:!1};case 5:n.label++,a=j[1],j=[0];continue;case 7:j=n.ops.pop(),n.trys.pop();continue;default:if(c=n.trys,!(c=c.length>0&&c[c.length-1])&&(j[0]===6||j[0]===2)){n=0;continue}if(j[0]===3&&(!c||j[1]>c[0]&&j[1]<c[3])){n.label=j[1];break}if(j[0]===6&&n.label<c[1]){n.label=c[1],c=j;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(j);break}c[2]&&n.ops.pop(),n.trys.pop();continue}j=e.call(t,n)}catch($){j=[6,$],a=0}finally{r=c=0}if(j[0]&5)throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}var O=Object.create?function(t,e,n,r){r===void 0&&(r=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,a)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]};function M(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&O(e,t,n)}function s(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,c=[],_;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)c.push(a.value)}catch(U){_={error:U}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(_)throw _.error}}return c}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function S(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),a=0,e=0;e<n;e++)for(var c=arguments[e],_=0,U=c.length;_<U;_++,a++)r[a]=c[_];return r}function P(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,c;r<a;r++)(c||!(r in e))&&(c||(c=Array.prototype.slice.call(e,0,r)),c[r]=e[r]);return t.concat(c||Array.prototype.slice.call(e))}function I(t){return this instanceof I?(this.v=t,this):new I(t)}function R(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),a,c=[];return a={},_("next"),_("throw"),_("return"),a[Symbol.asyncIterator]=function(){return this},a;function _(K){r[K]&&(a[K]=function(fe){return new Promise(function(ft,sn){c.push([K,fe,ft,sn])>1||U(K,fe)})})}function U(K,fe){try{X(r[K](fe))}catch(ft){ue(c[0][3],ft)}}function X(K){K.value instanceof I?Promise.resolve(K.value.v).then(j,$):ue(c[0][2],K)}function j(K){U("next",K)}function $(K){U("throw",K)}function ue(K,fe){K(fe),c.shift(),c.length&&U(c[0][0],c[0][1])}}function z(t){var e,n;return e={},r("next"),r("throw",function(a){throw a}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(a,c){e[a]=t[a]?function(_){return(n=!n)?{value:I(t[a](_)),done:a==="return"}:c?c(_):_}:c}}function re(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof s=="function"?s(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(c){n[c]=t[c]&&function(_){return new Promise(function(U,X){_=t[c](_),a(U,X,_.done,_.value)})}}function a(c,_,U,X){Promise.resolve(X).then(function(j){c({value:j,done:U})},_)}}function V(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var de=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function We(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&O(e,t,n);return de(e,t),e}function Ne(t){return t&&t.__esModule?t:{default:t}}function y(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)}function x(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n}function dt(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}var q;class he{constructor(e){q.set(this,void 0),x(this,q,e,"f")}get isWithin(){return!!window.ReactNativeWebView}open(e){y(this,q,"f").emit("openwebview",e)}close(e){y(this,q,"f").emit("closewebview",e)}reload(e=!1){y(this,q,"f").emit("reloadwebview",e)}}q=new WeakMap;var oe=h(692),se=h.n(oe);const Ce=(t,e)=>se().bind(`${t}.${String(e)}`),N=t=>e=>Ce(t,e);var Z,pe;const G=N("biometrics");class i{constructor(e){Z.set(this,void 0),pe.set(this,G("isAvailable")),this.isAvailable=()=>o(this,void 0,void 0,function*(){return y(this,Z,"f").isWithin?yield y(this,pe,"f").call(this):!1}),this.getBiometryInformation=G("getBiometryInformation"),this.biometricKeysExist=G("biometricKeysExist"),this.createKeys=G("createKeys"),this.createSignature=G("createSignature"),this.deleteKeys=G("deleteKeys"),this.checkPermission=G("checkPermission"),this.requestPermission=G("requestPermission"),x(this,Z,e,"f")}}Z=new WeakMap,pe=new WeakMap;const d=N("events");class W{constructor(){this.emit=d("emit")}}var C=h(5057);const k=C.bind({concatArrays:!0,ignoreUndefined:!0});function B(t,e){const n=window.localStorage.getItem(t);if(n){const r=JSON.parse(n),a=JSON.parse(e),c=JSON.stringify(k(r,a));window.localStorage.setItem(t,c)}else window.localStorage.setItem(t,e)}function L(t,e){return new Promise((n,r)=>{try{const a=t();e?.(null,a),n(a)}catch(a){e?.(a),r(a)}})}function T(t,e,n){return Promise.all(t).then(r=>{const a=n?.(r)??null;return e?.(null,a),Promise.resolve(a)},r=>(e?.(r),Promise.reject(r)))}const H={getItem:(t,e)=>L(()=>window.localStorage.getItem(t),e),setItem:(t,e,n)=>L(()=>window.localStorage.setItem(t,e),n),removeItem:(t,e)=>L(()=>window.localStorage.removeItem(t),e),mergeItem:(t,e,n)=>L(()=>B(t,e),n),clear:t=>L(()=>window.localStorage.clear(),t),getAllKeys:t=>L(()=>{const e=window.localStorage.length,n=[];for(let r=0;r<e;r+=1){const a=window.localStorage.key(r)||"";n.push(a)}return n},t),flushGetRequests:()=>{},multiGet:(t,e)=>{const n=t.map(a=>H.getItem(a));return T(n,e,a=>a.map((c,_)=>[t[_],c]))},multiSet:(t,e)=>{const n=t.map(r=>H.setItem(r[0],r[1]));return T(n,e)},multiRemove:(t,e)=>{const n=t.map(r=>H.removeItem(r));return T(n,e)},multiMerge:(t,e)=>{const n=t.map(r=>H.mergeItem(r[0],r[1]));return T(n,e)}},gt=H;function ln(t){return{getItem:(...e)=>AsyncStorage.getItem(t,...e),setItem:(...e)=>AsyncStorage.setItem(t,...e),mergeItem:(...e)=>AsyncStorage.mergeItem(t,...e),removeItem:(...e)=>AsyncStorage.removeItem(t,...e)}}const De=gt;var le,Le,Te,Re;const ke=N("storage");class Pt{constructor(e){le.set(this,void 0),Le.set(this,ke("setItem")),Te.set(this,ke("getItem")),Re.set(this,ke("removeItem")),x(this,le,e,"f")}setItem(e,n){return o(this,void 0,void 0,function*(){y(this,le,"f").isWithin?yield y(this,Le,"f").call(this,e,n):De.setItem(e,n)})}getItem(e){return y(this,le,"f").isWithin?y(this,Te,"f").call(this,e):De.getItem(e)}removeItem(e){return o(this,void 0,void 0,function*(){y(this,le,"f").isWithin?yield y(this,Re,"f").call(this,e):De.removeItem(e)})}}le=new WeakMap,Le=new WeakMap,Te=new WeakMap,Re=new WeakMap;var be,Ue;const ye=N("camera");class Et{constructor(e){be.set(this,void 0),Ue.set(this,ye("isAvailable")),this.isAvailable=()=>o(this,void 0,void 0,function*(){return y(this,be,"f").isWithin?yield y(this,Ue,"f").call(this):!1}),this.checkPermission=ye("checkPermission"),this.checkRollPermission=ye("checkRollPermission"),this.requestPermission=ye("requestPermission"),this.requestRollPermission=ye("requestRollPermission"),x(this,be,e,"f")}}be=new WeakMap,Ue=new WeakMap;var Y=h(934),Q=h(3758),ee,Be,xe,He,Ke;const we=N("geolocation");class St{constructor(e){ee.set(this,void 0),Be.set(this,we("isAvailable")),xe.set(this,we("getCurrentPosition")),He.set(this,we("checkPermission")),Ke.set(this,we("requestPermission")),this.isAvailable=()=>o(this,void 0,void 0,function*(){return y(this,ee,"f").isWithin?y(this,Be,"f").call(this):!!navigator.geolocation}),this.getCurrentPosition=n=>o(this,void 0,void 0,function*(){if(y(this,ee,"f").isWithin)return y(this,xe,"f").call(this,n);try{const{state:r}=yield navigator.permissions.query({name:"geolocation"});if(r==="granted"||r==="prompt")return yield new Promise((a,c)=>navigator.geolocation.getCurrentPosition(a,c,n))}catch(r){throw new Y.b(`Failed to retrieve the permission or the position is unavailable. ${r.message}`,{errorCode:Q.O.UNKNOWN})}throw new Y.b("Permission Denied.",{errorCode:Q.O.INSUFFICIENT_PERMISSIONS})}),this.checkPermission=()=>o(this,void 0,void 0,function*(){return y(this,ee,"f").isWithin?y(this,He,"f").call(this):(yield navigator.permissions.query({name:"geolocation"})).state}),this.requestPermission=()=>o(this,void 0,void 0,function*(){if(y(this,ee,"f").isWithin)return yield y(this,Ke,"f").call(this);{const{state:n}=yield navigator.permissions.query({name:"geolocation"});return(n==="granted"||n==="prompt")&&(yield new Promise((r,a)=>navigator.geolocation.getCurrentPosition(r,a))),n}}),x(this,ee,e,"f")}}ee=new WeakMap,Be=new WeakMap,xe=new WeakMap,He=new WeakMap,Ke=new WeakMap;var Ot=h(1204),_t=h.n(Ot),Mt=h(7931),ht=h.n(Mt),me,ge;const jt=t=>{if(!_t()(t))return!1;try{return new URL(t).protocol==="https:"}catch{return!1}},At=N("print");class It{constructor(e){me.set(this,void 0),ge.set(this,At("print")),x(this,me,e,"f")}print(e){return o(this,void 0,void 0,function*(){if(e.html){if(y(this,me,"f").isWithin)return yield y(this,ge,"f").call(this,{html:e.html});ht()({type:"raw-html",printable:e.html})}else if(e.filePath&&jt(e.filePath)){const n={filePath:e.filePath};if(y(this,me,"f").isWithin)return yield y(this,ge,"f").call(this,n);ht()({type:"pdf",printable:n.filePath})}else throw new Y.b("Filepath must be an https URL.",{errorCode:Q.O.UNKNOWN})})}}me=new WeakMap,ge=new WeakMap;var te,Fe,ze,$e,Ve;const Pe=N("documentDownload"),Ge={"image/jpeg":"jpeg","image/png":"png","image/svg+xml":"svg","application/pdf":"pdf","text/calendar":"ics"},Wt=t=>{const e=t.trim();if(!e||e==="."||e==="..")throw new Y.b("Invalid filename.",{errorCode:Q.O.UNKNOWN});if(/[\\/]/.test(e)||e.includes("\0"))throw new Y.b("Invalid filename.",{errorCode:Q.O.UNKNOWN});return e},Nt=t=>{const e=/^\s*data:([a-z]+\/[a-z0-9\-+]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i;return!!t.match(e)},Ct=t=>t.substring(t.indexOf(":")+1,t.indexOf(";")),Dt=(t,e)=>{if(!Nt(e))throw new Y.b("Invalid Data URL Format.",{errorCode:Q.O.UNKNOWN});const n=Ct(e);return Ee(n),`${t}.${Ge[n]}`},Ee=t=>{if(!Object.keys(Ge).includes(t))throw new Y.b("Invalid or unallowed file type.",{errorCode:Q.O.UNKNOWN})};class Lt{constructor(e){te.set(this,void 0),Fe.set(this,Pe("isAvailable")),ze.set(this,Pe("writeFile")),$e.set(this,Pe("checkPermission")),Ve.set(this,Pe("requestPermission")),this.isAvailable=n=>o(this,void 0,void 0,function*(){return Ee(n),y(this,te,"f").isWithin?y(this,Fe,"f").call(this,n):!0}),this.writeFile=(n,r)=>o(this,void 0,void 0,function*(){const a=Wt(n);if(Object.values(Ge).some(_=>a.includes(_)))throw new Y.b("Filename should not contain extension",{errorCode:Q.O.UNKNOWN});const c=Dt(a,r);if(y(this,te,"f").isWithin)return y(this,ze,"f").call(this,c,r);{const _=document.createElement("a");return _.href=r,_.download=c,_.click(),"Files"}}),this.checkPermission=n=>o(this,void 0,void 0,function*(){return Ee(n),y(this,te,"f").isWithin?y(this,$e,"f").call(this,n):"granted"}),this.requestPermission=n=>o(this,void 0,void 0,function*(){return Ee(n),y(this,te,"f").isWithin?yield y(this,Ve,"f").call(this,n):"granted"}),x(this,te,e,"f")}}te=new WeakMap,Fe=new WeakMap,ze=new WeakMap,$e=new WeakMap,Ve=new WeakMap;const ae=Object.freeze({UNAVAILABLE:"unavailable",BLOCKED:"blocked",DENIED:"denied",GRANTED:"granted",LIMITED:"limited"}),Je="Only supported by iOS 14 and above";async function Tt(){throw new Error(Je)}async function Rt(t){throw new Error(Je)}async function kt(){throw new Error(Je)}async function pt(){return ae.UNAVAILABLE}async function yt(){return{status:ae.UNAVAILABLE,settings:{}}}async function mt(t){return t.reduce((e,n)=>(e[n]=ae.UNAVAILABLE,e),{})}const J={check:pt,checkLocationAccuracy:Tt,checkMultiple:mt,checkNotifications:yt,openLimitedPhotoLibraryPicker:kt,openSettings:Promise.reject,request:pt,requestLocationAccuracy:Rt,requestMultiple:mt,requestNotifications:yt},Ut=Object.freeze({ANDROID:{},IOS:{},WINDOWS:{}}),Bt=J.check,xt=J.checkLocationAccuracy,Ht=J.checkMultiple,Kt=J.checkNotifications,Ft=J.openLimitedPhotoLibraryPicker,zt=J.openSettings,$t=J.request,Vt=J.requestLocationAccuracy,Gt=J.requestMultiple,Jt=J.requestNotifications,an={PERMISSIONS:Ut,RESULTS:ae,check:Bt,checkLocationAccuracy:xt,checkMultiple:Ht,checkNotifications:Kt,openLimitedPhotoLibraryPicker:Ft,openSettings:zt,request:$t,requestLocationAccuracy:Vt,requestMultiple:Gt,requestNotifications:Jt};var ne,qe,Ze,Xe,Ye;const Se=N("documentPicker"),qt=t=>new Promise((e,n)=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>e(r.result.replace("data:","").replace(/^.+,/,"")),r.onerror=n}),vt=t=>new Promise((e,n)=>{const r=document.createElement("input");r.type="file",t===!0&&(r.multiple=t),r.onchange=({target:a})=>o(void 0,void 0,void 0,function*(){try{e(yield Promise.all(Object.values(a.files).map(c=>o(void 0,void 0,void 0,function*(){return{type:c.type,name:c.name,size:c.size,base64:yield qt(c)}}))))}catch(c){n(c)}}),r.click()});class Zt{constructor(e){ne.set(this,void 0),qe.set(this,Se("pickMultiple")),Ze.set(this,Se("pickSingle")),Xe.set(this,Se("checkPermission")),Ye.set(this,Se("requestPermission")),this.pickMultiple=()=>y(this,ne,"f").isWithin?y(this,qe,"f").call(this):vt(!0),this.checkPermission=()=>o(this,void 0,void 0,function*(){return y(this,ne,"f").isWithin?yield y(this,Xe,"f").call(this):Promise.resolve(ae.GRANTED)}),this.requestPermission=()=>o(this,void 0,void 0,function*(){return y(this,ne,"f").isWithin?yield y(this,Ye,"f").call(this):Promise.resolve(ae.GRANTED)}),x(this,ne,e,"f")}pickSingle(){return o(this,void 0,void 0,function*(){return y(this,ne,"f").isWithin?y(this,Ze,"f").call(this):(yield vt(!1))[0]})}}ne=new WeakMap,qe=new WeakMap,Ze=new WeakMap,Xe=new WeakMap,Ye=new WeakMap;var ie,Qe,et,tt,nt;const Oe=N("pushNotifications");class Xt{constructor(e){ie.set(this,void 0),Qe.set(this,Oe("isAvailable")),et.set(this,Oe("getDeviceToken")),tt.set(this,Oe("checkPermission")),nt.set(this,Oe("requestPermission")),this.isAvailable=()=>o(this,void 0,void 0,function*(){return y(this,ie,"f").isWithin?y(this,Qe,"f").call(this):!1}),this.getDeviceToken=()=>o(this,void 0,void 0,function*(){if(y(this,ie,"f").isWithin)return y(this,et,"f").call(this);throw new Error("This method is currently not supported on web")}),this.checkPermission=()=>o(this,void 0,void 0,function*(){return y(this,ie,"f").isWithin?y(this,tt,"f").call(this):"unavailable"}),this.requestPermission=()=>o(this,void 0,void 0,function*(){return y(this,ie,"f").isWithin?yield y(this,nt,"f").call(this):"unavailable"}),x(this,ie,e,"f")}}ie=new WeakMap,Qe=new WeakMap,et=new WeakMap,tt=new WeakMap,nt=new WeakMap;var _e,it;const Yt=N("deepLink");class Qt{constructor(e){_e.set(this,void 0),it.set(this,Yt("openLink")),this.openLink=(n,r="_blank")=>o(this,void 0,void 0,function*(){if(y(this,_e,"f").isWithin)return y(this,it,"f").call(this,n,r);window.open(n.webUrl,r)}),x(this,_e,e,"f")}}_e=new WeakMap,it=new WeakMap;var Me,rt;const en=N("system");class tn{constructor(e){Me.set(this,void 0),rt.set(this,en("openSettings")),this.openSettings=()=>o(this,void 0,void 0,function*(){if(y(this,Me,"f").isWithin)return yield y(this,rt,"f").call(this)}),x(this,Me,e,"f")}}Me=new WeakMap,rt=new WeakMap;var ve,ot,st;const bt=N("utils");class wt{constructor(e){ve.set(this,void 0),ot.set(this,bt("getPlatform")),st.set(this,bt("getBundleId")),x(this,ve,e,"f")}getPlatform(){return o(this,void 0,void 0,function*(){return y(this,ve,"f").isWithin?y(this,ot,"f").call(this):"web"})}getBundleId(){return o(this,void 0,void 0,function*(){if(y(this,ve,"f").isWithin)return y(this,st,"f").call(this);console.warn("bundleId not available on the web")})}}ve=new WeakMap,ot=new WeakMap,st=new WeakMap;var je,Ae,lt,at,ct,ut,ce;const Ie=N("samsungHealth");class nn{constructor(e){je.set(this,void 0),Ae.set(this,void 0),lt.set(this,Ie("connect")),at.set(this,Ie("checkPermissions")),ct.set(this,Ie("readHeartRate")),ut.set(this,Ie("readBloodPressure")),ce.set(this,()=>o(this,void 0,void 0,function*(){return y(this,je,"f").isWithin?(yield y(this,Ae,"f").getPlatform())==="android":!1})),this.connect=()=>o(this,void 0,void 0,function*(){return(yield y(this,ce,"f").call(this))?y(this,lt,"f").call(this):(console.warn("Samsung Health: Connect is only available in the Android Native App"),!1)}),this.checkPermissions=()=>o(this,void 0,void 0,function*(){return(yield y(this,ce,"f").call(this))?y(this,at,"f").call(this):(console.warn("Samsung Health: Check permissions is only available in the Android Native App"),!1)}),this.readHeartRate=n=>o(this,void 0,void 0,function*(){return(yield y(this,ce,"f").call(this))?y(this,ct,"f").call(this,n):(console.warn("Samsung Health: Read data is only available in the Android Native App"),[])}),this.readBloodPressure=n=>o(this,void 0,void 0,function*(){return(yield y(this,ce,"f").call(this))?y(this,ut,"f").call(this,n):(console.warn("Samsung Health: Read data is only available in the Android Native App"),[])}),x(this,je,e,"f"),x(this,Ae,new wt(e),"f")}}je=new WeakMap,Ae=new WeakMap,lt=new WeakMap,at=new WeakMap,ct=new WeakMap,ut=new WeakMap,ce=new WeakMap;class rn{constructor(){this.events=new W,this.webview=new he(this.events),this.biometrics=new i(this.webview),this.storage=new Pt(this.webview),this.camera=new Et(this.webview),this.geolocation=new St(this.webview),this.print=new It(this.webview),this.documentDownload=new Lt(this.webview),this.documentPicker=new Zt(this.webview),this.pushNotifications=new Xt(this.webview),this.deepLink=new Qt(this.webview),this.utils=new wt(this.webview),this.system=new tn(this.webview),this.samsungHealth=new nn(this.webview)}reloadView(e=!1){this.webview.isWithin?this.webview.reload(e):globalThis.location.reload()}}const on=new rn},1204:F=>{"use strict";F.exports=p=>{if(typeof p!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof p}\``);return/^[a-zA-Z]:\\/.test(p)?!1:/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(p)}},5057:function(F,p,h){"use strict";const u=h(4428),{hasOwnProperty:m}=Object.prototype,{propertyIsEnumerable:E}=Object,w=(f,S,P)=>Object.defineProperty(f,S,{value:P,writable:!0,enumerable:!0,configurable:!0}),A=this,g={concatArrays:!1,ignoreUndefined:!1},v=f=>{const S=[];for(const P in f)m.call(f,P)&&S.push(P);if(Object.getOwnPropertySymbols){const P=Object.getOwnPropertySymbols(f);for(const I of P)E.call(f,I)&&S.push(I)}return S};function o(f){return Array.isArray(f)?l(f):u(f)?O(f):f}function l(f){const S=f.slice(0,0);return v(f).forEach(P=>{w(S,P,o(f[P]))}),S}function O(f){const S=Object.getPrototypeOf(f)===null?Object.create(null):{};return v(f).forEach(P=>{w(S,P,o(f[P]))}),S}const M=(f,S,P,I)=>(P.forEach(R=>{typeof S[R]>"u"&&I.ignoreUndefined||(R in f&&f[R]!==Object.getPrototypeOf(f)?w(f,R,b(f[R],S[R],I)):w(f,R,o(S[R])))}),f),s=(f,S,P)=>{let I=f.slice(0,0),R=0;return[f,S].forEach(z=>{const re=[];for(let V=0;V<z.length;V++)!m.call(z,V)||(re.push(String(V)),z===f?w(I,R++,z[V]):w(I,R++,o(z[V])));I=M(I,z,v(z).filter(V=>!re.includes(V)),P)}),I};function b(f,S,P){return P.concatArrays&&Array.isArray(f)&&Array.isArray(S)?s(f,S,P):!u(S)||!u(f)?o(S):M(f,S,v(S),P)}F.exports=function(...f){const S=b(o(g),this!==A&&this||{},g);let P={_:{}};for(const I of f)if(I!==void 0){if(!u(I))throw new TypeError("`"+I+"` is not an Option Object");P=b(P,{_:I},S)}return P._}},4428:F=>{"use strict";F.exports=p=>{if(Object.prototype.toString.call(p)!=="[object Object]")return!1;const h=Object.getPrototypeOf(p);return h===null||h===Object.prototype}},7931:F=>{(function(h,u){F.exports=u()})(window,function(){return function(p){var h={};function u(m){if(h[m])return h[m].exports;var E=h[m]={i:m,l:!1,exports:{}};return p[m].call(E.exports,E,E.exports,u),E.l=!0,E.exports}return u.m=p,u.c=h,u.d=function(m,E,w){u.o(m,E)||Object.defineProperty(m,E,{enumerable:!0,get:w})},u.r=function(m){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})},u.t=function(m,E){if(E&1&&(m=u(m)),E&8||E&4&&typeof m=="object"&&m&&m.__esModule)return m;var w=Object.create(null);if(u.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:m}),E&2&&typeof m!="string")for(var A in m)u.d(w,A,function(g){return m[g]}.bind(null,A));return w},u.n=function(m){var E=m&&m.__esModule?function(){return m.default}:function(){return m};return u.d(E,"a",E),E},u.o=function(m,E){return Object.prototype.hasOwnProperty.call(m,E)},u.p="",u(u.s=0)}({"./src/index.js":function(p,h,u){"use strict";u.r(h);var m=u("./src/sass/index.scss"),E=u.n(m),w=u("./src/js/init.js"),A=w.default.init;typeof window<"u"&&(window.printJS=A),h.default=A},"./src/js/browser.js":function(p,h,u){"use strict";u.r(h);var m={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!m.isIE()&&!!window.StyleMedia},isChrome:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!w.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};h.default=m},"./src/js/functions.js":function(p,h,u){"use strict";u.r(h),u.d(h,"addWrapper",function(){return A}),u.d(h,"capitalizePrint",function(){return g}),u.d(h,"collectStyles",function(){return v}),u.d(h,"addHeader",function(){return l}),u.d(h,"cleanUp",function(){return O}),u.d(h,"isRawHTML",function(){return M});var m=u("./src/js/modal.js"),E=u("./src/js/browser.js");function w(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(f){return typeof f}:w=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},w(s)}function A(s,b){var f="font-family:"+b.font+" !important; font-size: "+b.font_size+" !important; width:100%;";return'<div style="'+f+'">'+s+"</div>"}function g(s){return s.charAt(0).toUpperCase()+s.slice(1)}function v(s,b){for(var f=document.defaultView||window,S="",P=f.getComputedStyle(s,""),I=0;I<P.length;I++)(b.targetStyles.indexOf("*")!==-1||b.targetStyle.indexOf(P[I])!==-1||o(b.targetStyles,P[I]))&&P.getPropertyValue(P[I])&&(S+=P[I]+":"+P.getPropertyValue(P[I])+";");return S+="max-width: "+b.maxWidth+"px !important; font-size: "+b.font_size+" !important;",S}function o(s,b){for(var f=0;f<s.length;f++)if(w(b)==="object"&&b.indexOf(s[f])!==-1)return!0;return!1}function l(s,b){var f=document.createElement("div");if(M(b.header))f.innerHTML=b.header;else{var S=document.createElement("h1"),P=document.createTextNode(b.header);S.appendChild(P),S.setAttribute("style",b.headerStyle),f.appendChild(S)}s.insertBefore(f,s.childNodes[0])}function O(s){s.showModal&&m.default.close(),s.onLoadingEnd&&s.onLoadingEnd(),(s.showModal||s.onLoadingStart)&&window.URL.revokeObjectURL(s.printable);var b="mouseover";(E.default.isChrome()||E.default.isFirefox())&&(b="focus");var f=function S(){window.removeEventListener(b,S),s.onPrintDialogClose();var P=document.getElementById(s.frameId);P&&P.remove()};window.addEventListener(b,f)}function M(s){var b=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return b.test(s)}},"./src/js/html.js":function(p,h,u){"use strict";u.r(h);var m=u("./src/js/functions.js"),E=u("./src/js/print.js");function w(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(l){return typeof l}:w=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},w(v)}h.default={print:function(o,l){var O=g(o.printable)?o.printable:document.getElementById(o.printable);if(!O){window.console.error("Invalid HTML element id: "+o.printable);return}o.printableElement=A(O,o),o.header&&Object(m.addHeader)(o.printableElement,o),E.default.send(o,l)}};function A(v,o){for(var l=v.cloneNode(),O=Array.prototype.slice.call(v.childNodes),M=0;M<O.length;M++)if(o.ignoreElements.indexOf(O[M].id)===-1){var s=A(O[M],o);l.appendChild(s)}switch(o.scanStyles&&v.nodeType===1&&l.setAttribute("style",Object(m.collectStyles)(v,o)),v.tagName){case"SELECT":l.value=v.value;break;case"CANVAS":l.getContext("2d").drawImage(v,0,0);break}return l}function g(v){return w(v)==="object"&&v&&(v instanceof HTMLElement||v.nodeType===1)}},"./src/js/image.js":function(p,h,u){"use strict";u.r(h);var m=u("./src/js/functions.js"),E=u("./src/js/print.js"),w=u("./src/js/browser.js");h.default={print:function(g,v){g.printable.constructor!==Array&&(g.printable=[g.printable]),g.printableElement=document.createElement("div"),g.printable.forEach(function(o){var l=document.createElement("img");if(l.setAttribute("style",g.imageStyle),l.src=o,w.default.isFirefox()){var O=l.src;l.src=O}var M=document.createElement("div");M.appendChild(l),g.printableElement.appendChild(M)}),g.header&&Object(m.addHeader)(g.printableElement,g),E.default.send(g,v)}}},"./src/js/init.js":function(p,h,u){"use strict";u.r(h);var m=u("./src/js/browser.js"),E=u("./src/js/modal.js"),w=u("./src/js/pdf.js"),A=u("./src/js/html.js"),g=u("./src/js/raw-html.js"),v=u("./src/js/image.js"),o=u("./src/js/json.js");function l(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(b){return typeof b}:l=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},l(M)}var O=["pdf","html","image","json","raw-html"];h.default={init:function(){var s={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(z){throw z},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},b=arguments[0];if(b===void 0)throw new Error("printJS expects at least 1 attribute.");switch(l(b)){case"string":s.printable=encodeURI(b),s.fallbackPrintable=s.printable,s.type=arguments[1]||s.type;break;case"object":s.printable=b.printable,s.fallbackPrintable=typeof b.fallbackPrintable<"u"?b.fallbackPrintable:s.printable,s.fallbackPrintable=s.base64?"data:application/pdf;base64,".concat(s.fallbackPrintable):s.fallbackPrintable;for(var f in s)f==="printable"||f==="fallbackPrintable"||(s[f]=typeof b[f]<"u"?b[f]:s[f]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+l(b))}if(!s.printable)throw new Error("Missing printable information.");if(!s.type||typeof s.type!="string"||O.indexOf(s.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");s.showModal&&E.default.show(s),s.onLoadingStart&&s.onLoadingStart();var S=document.getElementById(s.frameId);S&&S.parentNode.removeChild(S);var P=document.createElement("iframe");switch(m.default.isFirefox()?P.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):P.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),P.setAttribute("id",s.frameId),s.type!=="pdf"&&(P.srcdoc="<html><head><title>"+s.documentTitle+"</title>",s.css&&(Array.isArray(s.css)||(s.css=[s.css]),s.css.forEach(function(R){P.srcdoc+='<link rel="stylesheet" href="'+R+'">'})),P.srcdoc+="</head><body></body></html>"),s.type){case"pdf":if(m.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var I=window.open(s.fallbackPrintable,"_blank");I.focus(),s.onIncompatibleBrowser()}catch(R){s.onError(R)}finally{s.showModal&&E.default.close(),s.onLoadingEnd&&s.onLoadingEnd()}else w.default.print(s,P);break;case"image":v.default.print(s,P);break;case"html":A.default.print(s,P);break;case"raw-html":g.default.print(s,P);break;case"json":o.default.print(s,P);break}}}},"./src/js/json.js":function(p,h,u){"use strict";u.r(h);var m=u("./src/js/functions.js"),E=u("./src/js/print.js");function w(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(o){return typeof o}:w=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},w(g)}h.default={print:function(v,o){if(w(v.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof v.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!v.properties||!Array.isArray(v.properties))throw new Error("Invalid properties array for your JSON data.");v.properties=v.properties.map(function(l){return{field:w(l)==="object"?l.field:l,displayName:w(l)==="object"?l.displayName:l,columnSize:w(l)==="object"&&l.columnSize?l.columnSize+";":100/v.properties.length+"%;"}}),v.printableElement=document.createElement("div"),v.header&&Object(m.addHeader)(v.printableElement,v),v.printableElement.innerHTML+=A(v),E.default.send(v,o)}};function A(g){var v=g.printable,o=g.properties,l='<table style="border-collapse: collapse; width: 100%;">';g.repeatTableHeader&&(l+="<thead>"),l+="<tr>";for(var O=0;O<o.length;O++)l+='<th style="width:'+o[O].columnSize+";"+g.gridHeaderStyle+'">'+Object(m.capitalizePrint)(o[O].displayName)+"</th>";l+="</tr>",g.repeatTableHeader&&(l+="</thead>"),l+="<tbody>";for(var M=0;M<v.length;M++){l+="<tr>";for(var s=0;s<o.length;s++){var b=v[M],f=o[s].field.split(".");if(f.length>1)for(var S=0;S<f.length;S++)b=b[f[S]];else b=b[o[s].field];l+='<td style="width:'+o[s].columnSize+g.gridStyle+'">'+b+"</td>"}l+="</tr>"}return l+="</tbody></table>",l}},"./src/js/modal.js":function(p,h,u){"use strict";u.r(h);var m={show:function(w){var A="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",g=document.createElement("div");g.setAttribute("style",A),g.setAttribute("id","printJS-Modal");var v=document.createElement("div");v.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var o=document.createElement("div");o.setAttribute("class","printClose"),o.setAttribute("id","printClose"),v.appendChild(o);var l=document.createElement("span");l.setAttribute("class","printSpinner"),v.appendChild(l);var O=document.createTextNode(w.modalMessage);v.appendChild(O),g.appendChild(v),document.getElementsByTagName("body")[0].appendChild(g),document.getElementById("printClose").addEventListener("click",function(){m.close()})},close:function(){var w=document.getElementById("printJS-Modal");w&&w.parentNode.removeChild(w)}};h.default=m},"./src/js/pdf.js":function(p,h,u){"use strict";u.r(h);var m=u("./src/js/print.js"),E=u("./src/js/functions.js");h.default={print:function(g,v){if(g.base64){var o=Uint8Array.from(atob(g.printable),function(O){return O.charCodeAt(0)});w(g,v,o);return}g.printable=/^(blob|http|\/\/)/i.test(g.printable)?g.printable:window.location.origin+(g.printable.charAt(0)!=="/"?"/"+g.printable:g.printable);var l=new window.XMLHttpRequest;l.responseType="arraybuffer",l.addEventListener("error",function(){Object(E.cleanUp)(g),g.onError(l.statusText,l)}),l.addEventListener("load",function(){if([200,201].indexOf(l.status)===-1){Object(E.cleanUp)(g),g.onError(l.statusText,l);return}w(g,v,l.response)}),l.open("GET",g.printable,!0),l.send()}};function w(A,g,v){var o=new window.Blob([v],{type:"application/pdf"});o=window.URL.createObjectURL(o),g.setAttribute("src",o),m.default.send(A,g)}},"./src/js/print.js":function(p,h,u){"use strict";u.r(h);var m=u("./src/js/browser.js"),E=u("./src/js/functions.js"),w={send:function(l,O){document.getElementsByTagName("body")[0].appendChild(O);var M=document.getElementById(l.frameId);M.onload=function(){if(l.type==="pdf"){m.default.isFirefox()?setTimeout(function(){return A(M,l)},1e3):A(M,l);return}var s=M.contentWindow||M.contentDocument;if(s.document&&(s=s.document),s.body.appendChild(l.printableElement),l.type!=="pdf"&&l.style){var b=document.createElement("style");b.innerHTML=l.style,s.head.appendChild(b)}var f=s.getElementsByTagName("img");f.length>0?g(Array.from(f)).then(function(){return A(M,l)}):A(M,l)}}};function A(o,l){try{if(o.focus(),m.default.isEdge()||m.default.isIE())try{o.contentWindow.document.execCommand("print",!1,null)}catch{o.contentWindow.print()}else o.contentWindow.print()}catch(O){l.onError(O)}finally{m.default.isFirefox()&&(o.style.visibility="hidden",o.style.left="-1px"),Object(E.cleanUp)(l)}}function g(o){var l=o.map(function(O){if(O.src&&O.src!==window.location.href)return v(O)});return Promise.all(l)}function v(o){return new Promise(function(l){var O=function M(){!o||typeof o.naturalWidth>"u"||o.naturalWidth===0||!o.complete?setTimeout(M,500):l()};O()})}h.default=w},"./src/js/raw-html.js":function(p,h,u){"use strict";u.r(h);var m=u("./src/js/print.js");h.default={print:function(w,A){w.printableElement=document.createElement("div"),w.printableElement.setAttribute("style","width:100%"),w.printableElement.innerHTML=w.printable,m.default.send(w,A)}}},"./src/sass/index.scss":function(p,h,u){},0:function(p,h,u){p.exports=u("./src/index.js")}}).default})},3335:(F,p,h)=>{"use strict";var u;/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var m=h(4041),E=Symbol.for("react.element"),w=Symbol.for("react.fragment"),A=Object.prototype.hasOwnProperty,g=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function o(l,O,M){var s,b={},f=null,S=null;M!==void 0&&(f=""+M),O.key!==void 0&&(f=""+O.key),O.ref!==void 0&&(S=O.ref);for(s in O)A.call(O,s)&&!v.hasOwnProperty(s)&&(b[s]=O[s]);if(l&&l.defaultProps)for(s in O=l.defaultProps,O)b[s]===void 0&&(b[s]=O[s]);return{$$typeof:E,type:l,key:f,ref:S,props:b,_owner:g.current}}u=w,p.jsx=o,u=o},4304:(F,p)=>{"use strict";/**
10
- * @license React
11
- * react.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var h=Symbol.for("react.element"),u=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),g=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),M=Symbol.iterator;function s(i){return i===null||typeof i!="object"?null:(i=M&&i[M]||i["@@iterator"],typeof i=="function"?i:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,S={};function P(i,d,W){this.props=i,this.context=d,this.refs=S,this.updater=W||b}P.prototype.isReactComponent={},P.prototype.setState=function(i,d){if(typeof i!="object"&&typeof i!="function"&&i!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,i,d,"setState")},P.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function I(){}I.prototype=P.prototype;function R(i,d,W){this.props=i,this.context=d,this.refs=S,this.updater=W||b}var z=R.prototype=new I;z.constructor=R,f(z,P.prototype),z.isPureReactComponent=!0;var re=Array.isArray,V=Object.prototype.hasOwnProperty,de={current:null},We={key:!0,ref:!0,__self:!0,__source:!0};function Ne(i,d,W){var C,D={},k=null,B=null;if(d!=null)for(C in d.ref!==void 0&&(B=d.ref),d.key!==void 0&&(k=""+d.key),d)V.call(d,C)&&!We.hasOwnProperty(C)&&(D[C]=d[C]);var L=arguments.length-2;if(L===1)D.children=W;else if(1<L){for(var T=Array(L),H=0;H<L;H++)T[H]=arguments[H+2];D.children=T}if(i&&i.defaultProps)for(C in L=i.defaultProps,L)D[C]===void 0&&(D[C]=L[C]);return{$$typeof:h,type:i,key:k,ref:B,props:D,_owner:de.current}}function y(i,d){return{$$typeof:h,type:i.type,key:d,ref:i.ref,props:i.props,_owner:i._owner}}function x(i){return typeof i=="object"&&i!==null&&i.$$typeof===h}function dt(i){var d={"=":"=0",":":"=2"};return"$"+i.replace(/[=:]/g,function(W){return d[W]})}var q=/\/+/g;function he(i,d){return typeof i=="object"&&i!==null&&i.key!=null?dt(""+i.key):d.toString(36)}function oe(i,d,W,C,D){var k=typeof i;(k==="undefined"||k==="boolean")&&(i=null);var B=!1;if(i===null)B=!0;else switch(k){case"string":case"number":B=!0;break;case"object":switch(i.$$typeof){case h:case u:B=!0}}if(B)return B=i,D=D(B),i=C===""?"."+he(B,0):C,re(D)?(W="",i!=null&&(W=i.replace(q,"$&/")+"/"),oe(D,d,W,"",function(H){return H})):D!=null&&(x(D)&&(D=y(D,W+(!D.key||B&&B.key===D.key?"":(""+D.key).replace(q,"$&/")+"/")+i)),d.push(D)),1;if(B=0,C=C===""?".":C+":",re(i))for(var L=0;L<i.length;L++){k=i[L];var T=C+he(k,L);B+=oe(k,d,W,T,D)}else if(T=s(i),typeof T=="function")for(i=T.call(i),L=0;!(k=i.next()).done;)k=k.value,T=C+he(k,L++),B+=oe(k,d,W,T,D);else if(k==="object")throw d=String(i),Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.");return B}function se(i,d,W){if(i==null)return i;var C=[],D=0;return oe(i,C,"","",function(k){return d.call(W,k,D++)}),C}function Ce(i){if(i._status===-1){var d=i._result;d=d(),d.then(function(W){(i._status===0||i._status===-1)&&(i._status=1,i._result=W)},function(W){(i._status===0||i._status===-1)&&(i._status=2,i._result=W)}),i._status===-1&&(i._status=0,i._result=d)}if(i._status===1)return i._result.default;throw i._result}var N={current:null},Z={transition:null},pe={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:Z,ReactCurrentOwner:de};function G(){throw Error("act(...) is not supported in production builds of React.")}p.Children={map:se,forEach:function(i,d,W){se(i,function(){d.apply(this,arguments)},W)},count:function(i){var d=0;return se(i,function(){d++}),d},toArray:function(i){return se(i,function(d){return d})||[]},only:function(i){if(!x(i))throw Error("React.Children.only expected to receive a single React element child.");return i}},p.Component=P,p.Fragment=m,p.Profiler=w,p.PureComponent=R,p.StrictMode=E,p.Suspense=o,p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pe,p.act=G,p.cloneElement=function(i,d,W){if(i==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+i+".");var C=f({},i.props),D=i.key,k=i.ref,B=i._owner;if(d!=null){if(d.ref!==void 0&&(k=d.ref,B=de.current),d.key!==void 0&&(D=""+d.key),i.type&&i.type.defaultProps)var L=i.type.defaultProps;for(T in d)V.call(d,T)&&!We.hasOwnProperty(T)&&(C[T]=d[T]===void 0&&L!==void 0?L[T]:d[T])}var T=arguments.length-2;if(T===1)C.children=W;else if(1<T){L=Array(T);for(var H=0;H<T;H++)L[H]=arguments[H+2];C.children=L}return{$$typeof:h,type:i.type,key:D,ref:k,props:C,_owner:B}},p.createContext=function(i){return i={$$typeof:g,_currentValue:i,_currentValue2:i,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},i.Provider={$$typeof:A,_context:i},i.Consumer=i},p.createElement=Ne,p.createFactory=function(i){var d=Ne.bind(null,i);return d.type=i,d},p.createRef=function(){return{current:null}},p.forwardRef=function(i){return{$$typeof:v,render:i}},p.isValidElement=x,p.lazy=function(i){return{$$typeof:O,_payload:{_status:-1,_result:i},_init:Ce}},p.memo=function(i,d){return{$$typeof:l,type:i,compare:d===void 0?null:d}},p.startTransition=function(i){var d=Z.transition;Z.transition={};try{i()}finally{Z.transition=d}},p.unstable_act=G,p.useCallback=function(i,d){return N.current.useCallback(i,d)},p.useContext=function(i){return N.current.useContext(i)},p.useDebugValue=function(){},p.useDeferredValue=function(i){return N.current.useDeferredValue(i)},p.useEffect=function(i,d){return N.current.useEffect(i,d)},p.useId=function(){return N.current.useId()},p.useImperativeHandle=function(i,d,W){return N.current.useImperativeHandle(i,d,W)},p.useInsertionEffect=function(i,d){return N.current.useInsertionEffect(i,d)},p.useLayoutEffect=function(i,d){return N.current.useLayoutEffect(i,d)},p.useMemo=function(i,d){return N.current.useMemo(i,d)},p.useReducer=function(i,d,W){return N.current.useReducer(i,d,W)},p.useRef=function(i){return N.current.useRef(i)},p.useState=function(i){return N.current.useState(i)},p.useSyncExternalStore=function(i,d,W){return N.current.useSyncExternalStore(i,d,W)},p.useTransition=function(){return N.current.useTransition()},p.version="18.3.1"},4041:(F,p,h)=>{"use strict";F.exports=h(4304)},1085:(F,p,h)=>{"use strict";F.exports=h(3335)}}]);
18
-
19
- //# sourceMappingURL=897.index.js.map