103,6,148,23,17541,17,253,28,455,15,646,24,131,32,143,32,114,22,198,22,184,26,192,26,134,22,309,21,734 _info {"project":"qrcode","branch":"master","version":32,"versionDate":"2022-06-29T12:49:41.000Z","fromVersion":0,"reset":true,"checksumDocs":"13-21318"} external/qrious.min.js /*! QRious v4.0.2 | (C) 2017 Alasdair Mercer | GPL v3 License Based on jsqrencode | (C) 2010 tz@execpc.com | GPL v3 License */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.QRious=e()}(this,function(){"use strict";function t(t,e){var n;return"function"==typeof Object.create?n=Object.create(t):(s.prototype=t,n=new s,s.prototype=null),e&&i(!0,n,e),n}function e(e,n,s,r){var o=this;return"string"!=typeof e&&(r=s,s=n,n=e,e=null),"function"!=typeof n&&(r=s,s=n,n=function(){return o.apply(this,arguments)}),i(!1,n,o,r),n.prototype=t(o.prototype,s),n.prototype.constructor=n,n.class_=e||o.class_,n.super_=o,n}function i(t,e,i){for(var n,s,a=0,h=(i=o.call(arguments,2)).length;a>1&1,n=0;n0;e--)n[e]=n[e]?n[e-1]^_.EXPONENT[v._modN(_.LOG[n[e]]+t)]:n[e-1];n[0]=_.EXPONENT[v._modN(_.LOG[n[0]]+t)]}for(t=0;t<=i;t++)n[t]=_.LOG[n[t]]},_checkBadness:function(){var t,e,i,n,s,r=0,o=this._badness,a=this.buffer,h=this.width;for(s=0;sh*h;)u-=h*h,c++;for(r+=c*v.N4,n=0;n=o-2&&(t=o-2,s>9&&t--);var a=t;if(s>9){for(r[a+2]=0,r[a+3]=0;a--;)e=r[a],r[a+3]|=255&e<<4,r[a+2]=e>>4;r[2]|=255&t<<4,r[1]=t>>4,r[0]=64|t>>12}else{for(r[a+1]=0,r[a+2]=0;a--;)e=r[a],r[a+2]|=255&e<<4,r[a+1]=e>>4;r[1]|=255&t<<4,r[0]=64|t>>4}for(a=t+3-(s<10);a=5&&(i+=v.N1+n[e]-5);for(e=3;et||3*n[e-3]>=4*n[e]||3*n[e+3]>=4*n[e])&&(i+=v.N3);return i},_finish:function(){this._stringBuffer=this.buffer.slice();var t,e,i=0,n=3e4;for(e=0;e<8&&(this._applyMask(e),(t=this._checkBadness())>=1)1&n&&(s[r-1-e+8*r]=1,e<6?s[8+r*e]=1:s[8+r*(e+1)]=1);for(e=0;e<7;e++,n>>=1)1&n&&(s[8+r*(r-7+e)]=1,e?s[6-e+8*r]=1:s[7+8*r]=1)},_interleaveBlocks:function(){var t,e,i=this._dataBlock,n=this._ecc,s=this._eccBlock,r=0,o=this._calculateMaxLength(),a=this._neccBlock1,h=this._neccBlock2,f=this._stringBuffer;for(t=0;t1)for(t=u.BLOCK[n],i=s-7;;){for(e=s-7;e>t-3&&(this._addAlignment(e,i),!(e6)for(t=d.BLOCK[r-7],e=17,i=0;i<6;i++)for(n=0;n<3;n++,e--)1&(e>11?r>>e-12:t>>e)?(s[5-i+o*(2-n+o-11)]=1,s[2-n+o-11+o*(5-i)]=1):(this._setMask(5-i,2-n+o-11),this._setMask(2-n+o-11,5-i))},_isMasked:function(t,e){var i=v._getMaskBit(t,e);return 1===this._mask[i]},_pack:function(){var t,e,i,n=1,s=1,r=this.width,o=r-1,a=r-1,h=(this._dataBlock+this._eccBlock)*(this._neccBlock1+this._neccBlock2)+this._neccBlock2;for(e=0;ee&&(i=t,t=e,e=i),i=e,i+=e*e,i>>=1,i+=t},_modN:function(t){for(;t>=255;)t=((t-=255)>>8)+(255&t);return t},N1:3,N2:3,N3:40,N4:10}),p=v,m=f.extend({draw:function(){this.element.src=this.qrious.toDataURL()},reset:function(){this.element.src=""},resize:function(){var t=this.element;t.width=t.height=this.qrious.size}}),g=h.extend(function(t,e,i,n){this.name=t,this.modifiable=Boolean(e),this.defaultValue=i,this._valueTransformer=n},{transform:function(t){var e=this._valueTransformer;return"function"==typeof e?e(t,this):t}}),k=h.extend(null,{abs:function(t){return null!=t?Math.abs(t):null},hasOwn:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},noop:function(){},toUpperCase:function(t){return null!=t?t.toUpperCase():null}}),w=h.extend(function(t){this.options={},t.forEach(function(t){this.options[t.name]=t},this)},{exists:function(t){return null!=this.options[t]},get:function(t,e){return w._get(this.options[t],e)},getAll:function(t){var e,i=this.options,n={};for(e in i)k.hasOwn(i,e)&&(n[e]=w._get(i[e],t));return n},init:function(t,e,i){"function"!=typeof i&&(i=k.noop);var n,s;for(n in this.options)k.hasOwn(this.options,n)&&(s=this.options[n],w._set(s,s.defaultValue,e),w._createAccessor(s,e,i));this._setAll(t,e,!0)},set:function(t,e,i){return this._set(t,e,i)},setAll:function(t,e){return this._setAll(t,e)},_set:function(t,e,i,n){var s=this.options[t];if(!s)throw new Error("Invalid option: "+t);if(!s.modifiable&&!n)throw new Error("Option cannot be modified: "+t);return w._set(s,e,i)},_setAll:function(t,e,i){if(!t)return!1;var n,s=!1;for(n in t)k.hasOwn(t,n)&&this._set(n,t[n],e,i)&&(s=!0);return s}},{_createAccessor:function(t,e,i){var n={get:function(){return w._get(t,e)}};t.modifiable&&(n.set=function(n){w._set(t,n,e)&&i(n,t)}),Object.defineProperty(e,t.name,n)},_get:function(t,e){return e["_"+t.name]},_set:function(t,e,i){var n="_"+t.name,s=i[n],r=t.transform(null!=e?e:t.defaultValue);return i[n]=r,r!==s}}),M=w,b=h.extend(function(){this._services={}},{getService:function(t){var e=this._services[t];if(!e)throw new Error("Service is not being managed with name: "+t);return e},setService:function(t,e){if(this._services[t])throw new Error("Service is already managed with name: "+t);e&&(this._services[t]=e)}}),B=new M([new g("background",!0,"white"),new g("backgroundAlpha",!0,1,k.abs),new g("element"),new g("foreground",!0,"black"),new g("foregroundAlpha",!0,1,k.abs),new g("level",!0,"L",k.toUpperCase),new g("mime",!0,"image/png"),new g("padding",!0,null,k.abs),new g("size",!0,100,k.abs),new g("value",!0,"")]),y=new b,O=h.extend(function(t){B.init(t,this,this.update.bind(this));var e=B.get("element",this),i=y.getService("element"),n=e&&i.isCanvas(e)?e:i.createCanvas(),s=e&&i.isImage(e)?e:i.createImage();this._canvasRenderer=new c(this,n,!0),this._imageRenderer=new m(this,s,s===e),this.update()},{get:function(){return B.getAll(this)},set:function(t){B.setAll(t,this)&&this.update()},toDataURL:function(t){return this.canvas.toDataURL(t||this.mime)},update:function(){var t=new p({level:this.level,value:this.value});this._canvasRenderer.render(t),this._imageRenderer.render(t)}},{use:function(t){y.setService(t.getName(),t)}});Object.defineProperties(O.prototype,{canvas:{get:function(){return this._canvasRenderer.getElement()}},image:{get:function(){return this._imageRenderer.getElement()}}});var A=O,L=h.extend({getName:function(){}}).extend({createCanvas:function(){},createImage:function(){},getName:function(){return"element"},isCanvas:function(t){},isImage:function(t){}}).extend({createCanvas:function(){return document.createElement("canvas")},createImage:function(){return document.createElement("img")},isCanvas:function(t){return t instanceof HTMLCanvasElement},isImage:function(t){return t instanceof HTMLImageElement}});return A.use(new L),A}); qrCode/qrCode.ls (function(){ if (!window.QRious) { inc("../external/qrious.min.js"); } return function(text, size){ var qr; qr = new QRious({ value: text, size: size, level: "H" }); return Div().css({ width: size + "px", height: size + "px" }).html(qr.image); }; })(); userCard/_shared/row/row.ls (function(){ return function(label1, label2){ return Div({ textAlign: "left", display: "flex", flex: "0 0 auto", minHeight: "1em", fontSize: "0.8em", paddingBottom: "0.1em" }).html(Div({ flex: twitch({ es: "0 0 4.1em", fr: "0 0 4.2em", def: "0 0 3.8em" }), textAlign: "left" }).html(label1 + ":"), Div({ flex: "1 1 auto", textAlign: "left", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", userSelect: "text" }).text(label2)); }; })(); userCard/_t.ls (function(){ return { appOrWeb: { de: "Als App oder unter www.anton.app", en: "As an app or at www.anton.app", fr: "Comme appli ou sur www.anton.app", es: "Como app o en www.anton.app", pt: "No App ou em www.anton.app" }, learnList: { de: "Lernliste", en: "Study set", fr: "Mes listes ", es: "Mis listas", pt: "Minhas listas" }, school: { de: "Schule", en: "School", fr: "École ", es: "Escuela ", pt: "Escola" }, name: { de: "Name", en: "Name", fr: "Nom ", es: "Nombre", pt: "Nome" }, group: { de: "Gruppe", en: "Group", fr: "Groupe ", es: "Grupo", pt: "Grupo" }, code: { de: "Code", en: "Code", fr: "Code ", es: "Clave", pt: "Código" } }; })(); userCard/group/group.ls (function(){ return function(o){ if (!o.groupName) { return; } return inc("../_shared/row/row")(T("group"), o.groupName); }; })(); userCard/learnList/learnList.ls (function(){ return function(o){ if (!o.learnListName) { return; } return inc("../_shared/row/row")(T("learnList"), o.learnListName); }; })(); userCard/loginCode/loginCode.ls (function(){ return function(o){ return inc("../_shared/row/row")(T("code"), o.loginCode.toLowerCase()); }; })(); userCard/logo/logo.ls (function(){ return function(){ return Svg({ svg: path("/../app01/lib/svg/logo/anton-logo-vertical.svg"), width: "4.6em", height: "1em" }).css({ flex: "0 0 auto", marginBottom: "0.3em" }); }; })(); userCard/name/name.ls (function(){ return function(o){ var label2; if (!(o.name || o.surname)) { return; } label2 = o.name + (o.surname || ""); return inc("../_shared/row/row")(T("name"), label2); }; })(); userCard/qrCode/qrCode.ls (function(){ return function(text){ var size, div; size = 110; return div = Div().css({ flex: "0 0 " + size + "px", display: "flex" }).append(inc("../../qrCode/qrCode")(text, size)); }; })(); userCard/school/school.ls (function(){ return function(o){ if (!o.schoolName) { return; } return inc("../_shared/row/row")(T("school"), o.schoolName); }; })(); userCard/text/text.ls (function(){ return function(user){ return Div().css({ flex: "0 0 auto", fontSize: "0.6em", color: Color.grey[500] + "", lineHeight: "1em", paddingTop: "0.2em", paddingBottom: "0.6em", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }).html(user.cardDescription || T("appOrWeb")); }; })(); userCard/userCard.ls (function(){ return function(user){ var loginCodeUrl; loginCodeUrl = "anton://login/" + user.loginCode; return Div({ display: "inline-flex", border: "1px dashed " + Color.grey[150], padding: "0.85em", fontFamily: "sans-serif", width: "20em", maxWidth: "100%", position: "relative", boxSizing: "border-box", alignItems: "center", backgroundColor: "white", margin: "0 auto" }).append(inc("qrCode/qrCode")(loginCodeUrl), Div({ flex: "1 1 auto", display: "flex", flexDirection: "column", alignItems: "stretch", textAlign: "left" }).html(inc("loginCode/loginCode")(user), inc("name/name")(user), inc("group/group")(user), inc("school/school")(user), inc("learnList/learnList")(user), inc("text/text")(user), inc("logo/logo")())); }; })();