@olympeio/runtime-web 9.0.2 → 9.0.5
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/import/olympe.dm/datamodel/05_permission_schema.updateInst.json +1 -1
- package/import/olympe.dm/datamodel/06_structure.newInst.json +1 -1
- package/import/olympe.sc/datamodel/01_language.newInst.json +1 -1
- package/index.js +366 -366
- package/package.json +1 -1
- package/types/base.d.ts +316 -8
- package/types/cloud.d.ts +885 -35
package/index.js
CHANGED
|
@@ -244,13 +244,13 @@ this.F,a,'#888','debug')}log(...a){this.$()&&$a(this,'log',this.F,a,'#000','log'
|
|
|
244
244
|
(d=!0===this.C.getParameter(c));b=new olympe.rb.Og.Se(a,b,d);this.channels.set(a,b)}return b}};olympe.rb.Og.kb.ua=[olympe.rb.kb];olympe.rb.da={sb:'logging.Manager'};olympe.rb.za={KF:'logging',LF:'logging.showLogLevel',QO:'logging',rS:'showLogLevel'};olympe.ma.Be(function(a){C(a,olympe.rb.za.KF,olympe.rb.Se.C.kG);C(a,olympe.rb.za.LF,!0);ua(a,olympe.rb.da.sb,olympe.rb.Og.kb,olympe.ma.da.zn,new olympe.ma.Ta(olympe.rb.za.KF),new olympe.ma.Ta(olympe.rb.za.LF))},'olympe.logging');olympe.ma.run([olympe.rb.da.sb],a=>{olympe.rb.Eb=b=>a.Mg(b)},'Logging singleton getter initialization');olympe.j={};olympe.j.za={KI:'df.nodeCreationThreshold'};const ab=[];function bb(){}function cb(){}olympe.j.J=class a{constructor(b,c,d){this.C=void 0===b?bb:b;this.F=void 0===c?ab:c;this.ga=d}static C(b){return void 0===b||0===b.length?olympe.j.J.$:new a(cb,b)}R(){return this.C?this.C():void 0}O(){return this.F?this.F:ab}T(){return null===this.C&&null===this.F}V(){return this.C===cb}};olympe.j.J.ga=new olympe.j.J;olympe.j.J.O=new olympe.j.J(null,null);olympe.j.J.$=new olympe.j.J(cb);olympe.j.J.F=new olympe.j.J(()=>olympe.j.aa);
|
|
245
245
|
olympe.j.J.R=new olympe.j.J(()=>olympe.j.lb);olympe.j.J.T=new olympe.j.J(()=>olympe.j.ja);olympe.j.J.V=new olympe.j.J(()=>olympe.j.ia);olympe.j.Gs=class{xa(){return''}nz(){return''}destroy(){}Dc(){return!1}rg(){return!1}run(a,...b){return a(...b)}md(a){return a}getParent(){return null}mf(){}Dr(){}Np(){}detach(){}hz(){}Zk(){}onDestroy(){return''}sl(){}Vd(){return''}Rz(){}};olympe.j.Gs.prototype.offDestroy=olympe.j.Gs.prototype.sl;olympe.j.Gs.prototype.onDestroy=olympe.j.Gs.prototype.onDestroy;let db=0;olympe.ma.run([new olympe.ma.Ta(olympe.j.za.KI)],()=>{});
|
|
246
246
|
olympe.j.Od=class{constructor(a='SimpleContext',b){++db;this.children=new Map;this.ga=new Map;this.V=new Map;this.Qa=0;this.name=a;this.id=String(db);this.ta=this.$=!1;(this.parent=void 0===b?olympe.j.ib():b)&&this.parent.Np(this);this.debug=!1}xa(){return this.id}nz(){return this.name}run(a,...b){if(!this.$){var c=olympe.j.RN(this);a=a(...b);c&&olympe.j.RN(c);return a}}md(a){return(...b)=>this.run(a,...b)}destroy(){if(!this.$&&!this.ta){this.ta=!0;this.Zk();for(const a of this.ga.keys())this.ga.has(a)&&
|
|
247
|
-
this.ga.get(a)();this.ga.clear();this.V.clear();this.parent&&(this.parent.detach(this,!1),this.parent=null);this.$=!0;this.ta=!1;this.Zk()}}Dc(){return this.$}rg(){return this.ta}Np(a){if(!this.$){var b;olympe.j.mc(a)?b=a.
|
|
247
|
+
this.ga.get(a)();this.ga.clear();this.V.clear();this.parent&&(this.parent.detach(this,!1),this.parent=null);this.$=!0;this.ta=!1;this.Zk()}}Dc(){return this.$}rg(){return this.ta}Np(a){if(!this.$){var b;olympe.j.mc(a)?b=a.Zb:olympe.j.UC(a)&&(b=a);b&&this.children.set(b.xa(),b)}}detach(a,b=!0){let c;olympe.j.mc(a)?c=a.Zb:olympe.j.UC(a)&&(c=a);c&&this.children.has(c.xa())&&(b&&c.hz(this),this.children.delete(c.xa()))}hz(){this.parent=null;this.destroy()}Zk(){const a=this.children;for(const b of a.keys())a.has(b)&&
|
|
248
248
|
a.get(b).hz(this);this.children.clear();for(const b of this.V.keys())this.V.has(b)&&this.V.get(b)();this.V.clear()}onDestroy(a,b){void 0===b&&(++this.Qa,b=String(this.Qa));this.ga.set(b,a);return b}sl(a){this.ga.delete(a)}Vd(a,b){void 0===b&&(++this.Qa,b=String(this.Qa));this.V.set(b,a);return b}Rz(a){this.V.delete(a)}mf(a){this.parent&&this.parent.detach(this,!1);(this.parent=a||null)&&this.parent.Np(this)}getParent(){return this.parent}Dr(){return this.children}};
|
|
249
249
|
olympe.j.AJ=class extends olympe.j.Od{constructor(){super('Root',null)}destroy(){}onDestroy(){return''}sl(){}};olympe.j.Gs.ua=[olympe.j.Gs];let eb=0;
|
|
250
250
|
function fb(a,b){a.R||(a.R=new Map);a.R.set(b.xa(),b);switch(b.C){case olympe.j.Node.C.$s:break;case olympe.j.Node.C.jt:break;case olympe.j.Node.C.vy:case olympe.j.Node.C.cp:olympe.j.Y.warn('Not bad as such but should not happen!');break;case olympe.j.Node.C.Hs:gb(a,olympe.j.Node.C.Hs);break;case olympe.j.Node.C.OBSOLETE:a.Ea=!0;a.C!==olympe.j.Node.C.Hs&&gb(a,olympe.j.Node.C.OBSOLETE);break;case olympe.j.Node.C.bp:olympe.j.Y.warn('Adding a destroyed node as upstream => should never happen!');break;
|
|
251
251
|
default:olympe.j.Y.warn('Unknown state, investigate: ',b.C)}hb(b,a)}
|
|
252
252
|
function ib(a){if(a.Gh){var b=[],c=[];if(a.Fo)if(a.Fo instanceof olympe.j.Node)if(jb(a.Fo))b=a.Fo.lg;else return;else b=a.Fo;else b=null;if(null!==a.T){const e=a.Mp;for(let f=0,g=a.T.length;f<g;f++)if(null!==e&&-1<e.indexOf(f)){const k=a.T[f];if(jb(k))c.push(k.lg);else return}else c.push(a.T[f])}if(a.Gh instanceof Function)var d=a.Gh;else b&&(b[a.Gh]||olympe.j.Y.warn('looks like you forget a cast somewhere around '+a.Gh),d=b[a.Gh]);a.run(()=>{a.Zk();if(void 0!==d){const e=d.apply(b,c);e&&e.$K?kb(a,
|
|
253
|
-
e.
|
|
253
|
+
e.Zb):e instanceof olympe.j.Node?kb(a,e):(lb(a,e),void 0===e&&void 0===a.valueType&&gb(a,olympe.j.Node.C.jt))}else mb(a)})}}function nb(a){void 0===a.Ka&&(a.Ka=a.valueType===olympe.j.Proxy?ob(void 0,a.Ha):ob(a.valueType,a.Ha),a.Ka.Zb=a);return a.Ka}function pb(a){void 0!==a.F&&(qb(a.F,a),a.F=void 0)}function rb(a){if(a.C===olympe.j.Node.C.OBSOLETE&&(a.C=olympe.j.Node.C.jt,null!==a.O))for(const b of a.O.values())sb(b)}function gb(a,b){b!==a.C&&(a.C=b)}
|
|
254
254
|
function tb(a){if(a.C!==olympe.j.Node.C.OBSOLETE&&a.C!==olympe.j.Node.C.vy&&a.C!==olympe.j.Node.C.$s&&a.C!==olympe.j.Node.C.Hs){gb(a,olympe.j.Node.C.vy);var b=a.O;if(b)for(const c of b.values())b.has(c.xa())&&tb(c);gb(a,olympe.j.Node.C.OBSOLETE)}}function ub(a,b,c){if(a.C!==olympe.j.Node.C.cp)if(b===a.F)lb(a,c,!0);else{if(a.C===olympe.j.Node.C.OBSOLETE||a.C===olympe.j.Node.C.vy)a.Ea=!0;ib(a)}}
|
|
255
255
|
function lb(a,b,c){b instanceof olympe.j.Node&&(olympe.j.Y.warn('We are setting the value of a node as a node, that should never happen?'),b=b.lg);a.ka||c||void 0===a.F||pb(a);if(void 0!==b){if((a.ka||a.C===olympe.j.Node.C.jt||a.C===olympe.j.Node.C.OBSOLETE)&&!olympe.j.mc(b)&&void 0!==a.lg){if(null===b&&null===a.lg){rb(a);return}if(null!==b&&null!==a.lg&&(b.valueOf()===a.lg.valueOf()||a.lg.Lc&&a.lg.Lc(b))){rb(a);return}}if(!0===a.ka)olympe.j.Y.error("Circular dependency detected: updating a downstream node caused this node's (#"+
|
|
256
256
|
a.xa()+') value to get updated !');else{a.C===olympe.j.Node.C.bp&&olympe.j.Y.warn(`trying to set a value on a destroyed node (#${a.xa()} ${a.yi?', '+a.yi:''})`);a.C===olympe.j.Node.C.cp&&olympe.j.Y.warn(`trying to set a value on a node being destroyed (#${a.xa()} ${a.yi?', '+a.yi:''})`);a.ka=!0;c=b;var d=!1,e=(f,g)=>f instanceof g?!0:!1;void 0===a.valueType||null===c||e(c,a.valueType)||(e=a.valueType&&a.valueType.name?a.valueType.name:'undefined',b='object'===typeof c?b.constructor.name:typeof c,
|
|
@@ -260,27 +260,27 @@ function kb(a,b){b===a?olympe.j.Y.error('Setting a node as provider of itself. I
|
|
|
260
260
|
function hb(a,b){a.O||(a.O=new Map);a.O.set(b.xa(),b);a.C===olympe.j.Node.C.bp&&olympe.j.Y.warn('adding a downstream node on a deleted one (#'+a.xa()+') !')}function qb(a,b){a.O&&(b=b.xa(),a.O.has(b)&&(a.O.delete(b),xb(a)))}function xb(a){if(null===a.getParent()){var b=a.O;b&&0<b.size||a.destroy()}}
|
|
261
261
|
olympe.j.Node=class extends olympe.j.Od{constructor({valueType:a,Gh:b,GW:c=!0,Fo:d,SC:e,debug:f=!1,Mp:g=null,yi:k='Node',Pv:l}={}){++eb;super(String(eb));this.debug=!!f;this.yi=k;k&&'string'===typeof k||(b?this.yi=b.name?b.name:'anon()':this.yi='Node');this.T=e&&0<e.length?e:null;this.Mp=g&&0<g.length?g:null;this.valueType=a;this.lg=void 0;this.ka=!1;this.C=olympe.j.Node.C.$s;this.Ea=!1;this.O=this.R=null;this.Gh=b;this.Fo=d||null;this.defaultValue=this.Ka=this.F=void 0;this.Pv=l;d&&d instanceof olympe.j.Node&&
|
|
262
262
|
fb(this,d);if(g)for(b=0;b<g.length;b++)a=e[g[b]],fb(this,a);c&&ib(this)}th(a){this.defaultValue=a;this.C===olympe.j.Node.C.$s&&lb(this,a,!0);return this}Sv(a){this.valueType=a}Qe(){return this.valueType||Object}Dc(){return this.C===olympe.j.Node.C.bp}rg(){return this.C===olympe.j.Node.C.cp}Ha(...a){if(this.Pv instanceof Function)return this.Pv(...a);var b=a.length;--b;const c=a[b];--b;const d=a[b],e=Array(b);for(var f=0;f<b;f++)e[f]=a[f];a=this.C;a!==olympe.j.Node.C.cp&&a!==olympe.j.Node.C.bp||olympe.j.Y.warn('Calling a function on a destroyed node!!!',
|
|
263
|
-
this);a=d.O();b=[];if(1===a.length&&-1===a[0])for(var g of e)olympe.j.mc(g)&&b.push(g.
|
|
263
|
+
this);a=d.O();b=[];if(1===a.length&&-1===a[0])for(var g of e)olympe.j.mc(g)&&b.push(g.Zb);else for(let k=0,l=a.length;k<l;k++)g=a[k],f=e[g],void 0!==f&&null!==f&&f.Zg&&(e[g]=f.Zb,b.push(g));return nb(new olympe.j.Node({valueType:d.R(),Gh:c,Fo:this,SC:e,debug:!1,Mp:b,yi:'Proxy.'+c+'()'}))}hz(a){if(null===this.getParent())olympe.j.Y.warn('context is undefined, investigate');else if(this.getParent()!==a){olympe.j.Y.warn('Investigate a potential issue in creator-createe link: create node mismatch',a,
|
|
264
264
|
this.getParent());return}this.mf(null);xb(this)}destroy(){var a=this.C;if(a!==olympe.j.Node.C.cp&&a!==olympe.j.Node.C.bp){gb(this,olympe.j.Node.C.cp);if(a=this.O){for(const c of a.values())if(a.has(c.xa())){var b=c;b.R&&b.R.delete(this.xa());b.F&&b.F.xa()===this.xa()?b.F=void 0:b.destroy()}a.clear()}this.O=null;super.destroy();if(this.R){for(const c of this.R.values())this.R.has(c.xa())&&qb(c,this);this.R.clear()}this.R=null;this.F&&(qb(this.F,this),this.F=void 0);this.lg=void 0;this.T&&(this.T.length=
|
|
265
|
-
0,this.T=null);this.Mp&&(this.Mp.length=0,this.Mp=null);this.Pv=this.Gh=void 0;this.defaultValue=this.Fo=null;this.yi=`** Destroyed ** ${this.yi}`;gb(this,olympe.j.Node.C.bp)}}nz(){return this.yi}};olympe.j.Node.F='rootNode';olympe.j.Node.C={$s:0,jt:1,Hs:3,vy:4,OBSOLETE:5,cp:6,bp:7};function ob(a,b){if('function'!==typeof a)return new olympe.j.Proxy(a,b);var c=olympe.j.Proxy.prototype;void 0===a.prototype&&olympe.j.Y.error('investigate');c=Object.create(yb(c,a.prototype));c.Yy=a;c.bL=b;return c}function G(a){return a.
|
|
266
|
-
function Ab(a,b){if(a.Yy===b)return a;a.Yy=b;b.prototype||olympe.j.Y.error('Cast not possible, provided type is not a valid type!');const c=yb(a,b.prototype);Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c;a.
|
|
267
|
-
function zb(a,b){let c={};if(b.prototype)olympe.j.Y.error('first level of prototyping, investigate');else if(b.__proto__)c=Object.create(yb(a,b.__proto__));else return olympe.j.Proxy.prototype;Object.getOwnPropertyNames(b).forEach(d=>{if('function'===typeof b[d]&&'__getReplacementFunction'!==d){var e=b[d].K;null===e||e&&e.T()?c[d]=function(...f){var g=this.
|
|
268
|
-
...f,e,d);const g=e.ga;if(g){const k=this.
|
|
269
|
-
olympe.j.Proxy=class{constructor(a,b){this.
|
|
265
|
+
0,this.T=null);this.Mp&&(this.Mp.length=0,this.Mp=null);this.Pv=this.Gh=void 0;this.defaultValue=this.Fo=null;this.yi=`** Destroyed ** ${this.yi}`;gb(this,olympe.j.Node.C.bp)}}nz(){return this.yi}};olympe.j.Node.F='rootNode';olympe.j.Node.C={$s:0,jt:1,Hs:3,vy:4,OBSOLETE:5,cp:6,bp:7};function ob(a,b){if('function'!==typeof a)return new olympe.j.Proxy(a,b);var c=olympe.j.Proxy.prototype;void 0===a.prototype&&olympe.j.Y.error('investigate');c=Object.create(yb(c,a.prototype));c.Yy=a;c.bL=b;return c}function G(a){return a.Zb.lg}function yb(a,b){Object.prototype.hasOwnProperty.call(b,olympe.j.Proxy.EB)||Object.defineProperty(b,olympe.j.Proxy.EB,{enumerable:!1,configurable:!1,writable:!1,value:zb(a,b)});return b[olympe.j.Proxy.EB]}
|
|
266
|
+
function Ab(a,b){if(a.Yy===b)return a;a.Yy=b;b.prototype||olympe.j.Y.error('Cast not possible, provided type is not a valid type!');const c=yb(a,b.prototype);Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c;a.Zb&&a.Zb.Sv(b);return a}function Bb(a,b,c,d){return nb(olympe.j.createNode(d,b,c,[a.Zb],[0],'onResolved('+(b.name||'')+')'))}
|
|
267
|
+
function zb(a,b){let c={};if(b.prototype)olympe.j.Y.error('first level of prototyping, investigate');else if(b.__proto__)c=Object.create(yb(a,b.__proto__));else return olympe.j.Proxy.prototype;Object.getOwnPropertyNames(b).forEach(d=>{if('function'===typeof b[d]&&'__getReplacementFunction'!==d){var e=b[d].K;null===e||e&&e.T()?c[d]=function(...f){var g=this.Zb;if(g&&jb(g)&&(g=g.lg)&&g[d]&&'function'===typeof g[d])return g[d].apply(g,f)}:(e=e||b[d].__oSig__||olympe.j.J.ga,c[d]=function(...f){f=this.bL.call(this.Zb,
|
|
268
|
+
...f,e,d);const g=e.ga;if(g){const k=this.Zb.lg;k&&k[g]&&Ab(f,k[g])}return e.V()?this:f})}});return c}function I(a,b){lb(a.Zb,b);return a}function Db(a){vb(a.Zb)}function Eb(a,b){olympe.j.ab([b],c=>{a.Zb.th(c)},'setDefaultValue');return a}function Fb(a,b){wb(a.Zb,olympe.j.Gm(b)?b:b.Zb)}function Gb(a){(a=a.Zb)&&void 0!==a.F&&void 0===a.Gh&&void 0!==a.F&&void 0===a.Gh&&pb(a)}function J(a,b){olympe.j.mc(b)||olympe.j.Gm(b)?Fb(a,b):I(a,b);return a}
|
|
269
|
+
olympe.j.Proxy=class{constructor(a,b){this.Zb=null;this.Yy=a;this.bL=b}static mc(a){return!(!a||!a.Zg)}Lc(a){return olympe.j.fb([this,a],(b,c)=>b===c,Boolean)}df(a){return olympe.j.fb([this,a],(b,c)=>null===b||null===c?b===c?olympe.j.ja.C:olympe.j.ja.wb:b.valueOf()===c.valueOf()?olympe.j.ja.C:olympe.j.ja.wb,olympe.j.ja)}$K(){return this.Zb}};olympe.j.Proxy.EB='__opp__';olympe.j.Proxy.prototype.Zg=!0;function Hb(a,b){a.C.th(b);return a}olympe.j.ay=class{constructor(a,b='FlowSource'){this.C=olympe.j.createNode(a,void 0,void 0,void 0,void 0,b)}update(a){olympe.j.mc(a)?lb(this.C,olympe.j.Ua(a)):lb(this.C,a);return this}repeat(a){wb(this.C,olympe.j.mc(a)?a.Zb:a);return this}clear(){vb(this.C);return this}Ba(){return nb(this.C)}getContext(){return this.C}};function Ib(...a){return olympe.j.fb(a,(...b)=>{let c=Infinity;for(let d=0;d<b.length;d++){const e=b[d].valueOf();e<c&&(c=e)}return olympe.j.Ca(c)},olympe.j.aa,'ONumber.minF')}function Jb(...a){return olympe.j.fb(a,(...b)=>{let c=-Infinity;for(let d=0;d<b.length;d++){const e=b[d].valueOf();e>c&&(c=e)}return olympe.j.Ca(c)},olympe.j.aa,'ONumber.maxF')}
|
|
270
270
|
function Kb(a,b,c=1E3,d,e){const f=olympe.j.qb(olympe.j.aa),g=d||olympe.j.aa.wh.uI;let k,l,m,n;f.update(olympe.j.Ca(a));const p=window.performance.now(),r=b.valueOf();m=r-a.valueOf();if(0!==m&&void 0===n){const t=()=>{f.getContext().Dc()||(m=r-a.valueOf(),l=(window.performance.now()-p)/c,1<=l&&(l=1,n=void 0),k=a.valueOf()+m*g(l,0,1,1),f.update(olympe.j.Ca(k)),1===l&&void 0!==e&&e(k),1>l&&(n=window.requestAnimationFrame(t)))};n=window.requestAnimationFrame(t)}return f.Ba()}
|
|
271
271
|
olympe.j.aa=class{constructor(a){this.value=void 0===a||null===a?0:a}toJSON(){return'{ "type": "number", "value": '+JSON.stringify(this.value)+' }'}static gf(a){let b;'string'===typeof a?b=JSON.parse(a):b=a;return olympe.j.Ca(b.value)}YD(){return'number'===typeof this.value&&!isNaN(this.value)}isNaN(){return olympe.j.Mc(!this.YD())}Hg(){return null===this.value||void 0===this.value||void 0===this.value.toString||isNaN(this.value)?olympe.j.jc(''):olympe.j.jc(this.value.toString())}toString(a,b){return void 0!==
|
|
272
272
|
this.value&&null!==this.value?'number'===typeof a?this.value.toString(a):'number'===typeof b?this.value.toFixed(b):this.value.toString():'-'}toFixed(a){return this.YD()?this.valueOf().toFixed(a):''}static max(a){const b=new Map;let c=-Infinity;const d=olympe.j.qb(olympe.j.aa,'ONumber.max result'),e=()=>{c=-Infinity;for(const f of b.values())f>c&&(c=f);d.update(olympe.j.Ca(c))};a.forEach((f,g)=>{olympe.j.ab([f],k=>{b.set(g,k.valueOf());e()})},f=>{if(!d.getContext().Dc()){var g=b.get(f);b.delete(f);
|
|
273
273
|
g===c&&e()}});return d.Ba()}$a(a){return olympe.j.fb([this,a],(b,c)=>olympe.j.Ca(b.valueOf()+c.valueOf()),olympe.j.aa,'ONumber.plus')}Fa(a){return olympe.j.fb([this,a],(b,c)=>olympe.j.Ca(b.valueOf()-c.valueOf()),olympe.j.aa,'ONumber.minus')}round(){return olympe.j.Ca(Math.round(this.valueOf()))}vx(){return olympe.j.Ca(-this.valueOf())}jb(a){return olympe.j.fb([this,a],(b,c)=>olympe.j.Ca(b.valueOf()*c.valueOf()),olympe.j.aa,'ONumber.mul')}Va(a){return olympe.j.fb([this,a],(b,c)=>olympe.j.Ca(b.valueOf()/
|
|
274
|
-
c.valueOf()),olympe.j.aa,'ONumber.div')}Bw(a){return olympe.j.fb([this,a],(b,c)=>olympe.j.Ca(b.valueOf()%c.valueOf()),olympe.j.aa,'ONumber.div')}floor(){return olympe.j.Ca(Math.floor(this.valueOf()))}ceil(){return olympe.j.Ca(Math.ceil(this.valueOf()))}trunc(){return olympe.j.Ca(Math.trunc(this.valueOf()))}log(){return olympe.j.Ca(Math.log(this.valueOf()))}pow(a){return olympe.j.fb([this,a],(b,c)=>olympe.j.Ca(Math.pow(b.valueOf(),c.valueOf())),olympe.j.aa,'ONumber.pow')}exp(){return olympe.j.Ca(Math.exp(this.valueOf()))}
|
|
274
|
+
c.valueOf()),olympe.j.aa,'ONumber.div')}Bw(a){return olympe.j.fb([this,a],(b,c)=>olympe.j.Ca(b.valueOf()%c.valueOf()),olympe.j.aa,'ONumber.div')}floor(){return olympe.j.Ca(Math.floor(this.valueOf()))}ceil(){return olympe.j.Ca(Math.ceil(this.valueOf()))}trunc(){return olympe.j.Ca(Math.trunc(this.valueOf()))}log(){return olympe.j.Ca(Math.log(this.valueOf()))}pow(a){return olympe.j.fb([this,a],(b,c)=>olympe.j.Ca(Math.pow(b.valueOf(),c.valueOf())),olympe.j.aa,'ONumber.pow')}exp(){return olympe.j.Ca(Math.exp(this.valueOf()))}df(a){return olympe.j.fb([this,
|
|
275
275
|
a],(b,c)=>olympe.j.Mc(b.Lc(c)),olympe.j.ja,'ONumber.oEquals')}Lc(a){return this.valueOf()===(void 0!==a&&null!==a?a.valueOf():void 0)}valueOf(){return void 0!==this.value?this.value.valueOf():void 0}iV(){return this.valueOf()}Oj(a){return olympe.j.fb([this,a],(b,c)=>b.valueOf()>c.valueOf()?olympe.j.ja.C:olympe.j.ja.wb,olympe.j.ja,'ONumber.isBiggerThan')}NN(a){return olympe.j.fb([this,a],(b,c)=>b.valueOf()>=c.valueOf()?b:olympe.j.Ca(c),olympe.j.aa,'ONumber.returnsBiggest')}cn(a){return olympe.j.fb([this,
|
|
276
276
|
a],(b,c)=>b.valueOf()<=c.valueOf()?b:olympe.j.Ca(c),olympe.j.aa,'ONumber.returnsSmallest')}VC(a){return olympe.j.fb([this,a],(b,c)=>b.valueOf()<c.valueOf()?olympe.j.ja.C:olympe.j.ja.wb,olympe.j.ja,'ONumber.isSmallerThan')}sin(){return olympe.j.Ca(Math.sin(this.valueOf()))}cos(){return olympe.j.Ca(Math.cos(this.valueOf()))}atan2(a){return olympe.j.mc(a)?olympe.j.Kh([a],b=>olympe.j.Ca(Math.atan2(this.valueOf(),b.valueOf())),olympe.j.aa):olympe.j.Ca(Math.atan2(this.valueOf(),a.valueOf()))}abs(){return olympe.j.Ca(Math.abs(this.valueOf()))}Aw(a,
|
|
277
277
|
b){return olympe.j.mc(a)||olympe.j.mc(b)?olympe.j.Kh([a,b],(c,d)=>olympe.j.Ca(this.valueOf()*d.valueOf()+c.valueOf()*(1-d.valueOf())),olympe.j.aa):olympe.j.Ca(this.valueOf()*b.valueOf()+a.valueOf()*(1-b.valueOf()))}static jT(a,b,c,d){'number'===typeof a&&(a=olympe.j.ha(a));'number'===typeof b&&(b=olympe.j.ha(b));'number'===typeof c&&(c=olympe.j.ha(c));let e=0;const f=olympe.j.ha(0);let g,k;void 0!==b&&void 0!==c&&olympe.j.cb(b.Oj(c),()=>{olympe.rb.Eb('df').warn('You have a min bigger than max, cap your inputs')});
|
|
278
|
-
const l=(m,n)=>{n=olympe.j.ha(n);const p=olympe.j.aa.animate(n,500);Fb(f,p);I(n,olympe.j.Ca(m));e=m};olympe.j.Kh([a],m=>{e+=m.valueOf();e>k?l(k,e):e<g?l(g,e):Fb(f,olympe.j.ha(e))},olympe.j.aa);void 0!==b&&olympe.j.Ef(b.valueOf(),m=>{if(g!==m&&(g=m,g>e)){const n=olympe.j.ha(e),p=olympe.j.aa.animate(n,400,d);m=olympe.j.Ca(g);lb(n.
|
|
278
|
+
const l=(m,n)=>{n=olympe.j.ha(n);const p=olympe.j.aa.animate(n,500);Fb(f,p);I(n,olympe.j.Ca(m));e=m};olympe.j.Kh([a],m=>{e+=m.valueOf();e>k?l(k,e):e<g?l(g,e):Fb(f,olympe.j.ha(e))},olympe.j.aa);void 0!==b&&olympe.j.Ef(b.valueOf(),m=>{if(g!==m&&(g=m,g>e)){const n=olympe.j.ha(e),p=olympe.j.aa.animate(n,400,d);m=olympe.j.Ca(g);lb(n.Zb,m);e=g;Fb(f,p)}});void 0!==c&&olympe.j.Ef(c.valueOf(),m=>{if(k!==m&&(k=m,k<e)){const n=olympe.j.ha(e),p=olympe.j.aa.animate(n,400,d);m=olympe.j.Ca(k);lb(n.Zb,m);e=k;Fb(f,
|
|
279
279
|
p)}});return f}static offset(a){let b;return olympe.j.Kh([a],c=>{void 0===b&&(b=c);return olympe.j.Ca(c-b)},olympe.j.aa,'offset')}static sL(a){let b,c,d;return olympe.j.fb([a],e=>{if(void 0===b)return b=e,c=window.performance.now(),olympe.j.Ca(0);d=window.performance.now();const f=olympe.j.Ca((e.valueOf()-b.valueOf())/(d-c));b=e;c=d;return f},olympe.j.aa,'derivative')}static OV(a){let b=olympe.j.Ca(0),c,d,e;return olympe.j.fb([a],f=>{if(void 0===c)return c=f,d=window.performance.now(),olympe.j.Ca(0);
|
|
280
280
|
e=window.performance.now();b=b.$a((f.valueOf()+c.valueOf())/2*(e-d));c=f;d=e;return b},olympe.j.aa,'integrate')}static WT(a){let b;return olympe.j.fb([a],c=>{void 0===b&&(b=c.valueOf());const d=olympe.j.Ca(c.valueOf()-b.valueOf());b=c;return d},olympe.j.aa,'diff')}static fC(a,b,c){return olympe.j.Kh([a,b,c],(d,e,f)=>{d='number'===typeof d?d:d.valueOf();e='number'===typeof e?e:e.valueOf();f='number'===typeof f?f:f.valueOf();return olympe.j.Ca(d>=e?d<=f?d:f:e)},olympe.j.aa)}static animate(a,b,c,d){let e;
|
|
281
281
|
return e=olympe.j.fb([a],f=>{const g=olympe.j.Ua(b,1E3),k=olympe.j.Ua(e);return void 0===k?olympe.j.Ca(f):Kb(k,f,g,c,l=>{d&&d(l)})},olympe.j.aa)}static wT(a,b,c){let d,e,f,g,k,l,m=olympe.j.ha(),n;olympe.j.ab([a],p=>{void 0===d?g=d=p.valueOf():d=g;f=window.performance.now();e=p.valueOf();l=e-d;0!==l&&void 0===n&&(n=setInterval(()=>{l=e-d;k=(window.performance.now()-f)/b;1<=k&&(k=1);g=d+l*c(k,0,1,1);I(m,olympe.j.Ca(g));1===k&&(clearTimeout(n),n=void 0)},0))});return m}static Hg(a){return olympe.j.mc(a)?
|
|
282
282
|
olympe.j.fb([a],b=>olympe.j.jc(b.valueOf().toString()),olympe.j.lb):olympe.j.jc(a)}static vx(a){return olympe.j.mc(a)?olympe.j.fb([a],b=>olympe.j.Ca(-b.valueOf()),olympe.j.aa):olympe.j.Ca(-a.valueOf())}static $a(a,b){return olympe.j.mc(a)||olympe.j.mc(b)?olympe.j.fb([a,b],(c,d)=>olympe.j.Ca(c.valueOf()+d.valueOf()),olympe.j.aa,'plus'):olympe.j.Ca(a.valueOf()+b.valueOf())}static Fa(a,b){return olympe.j.mc(a)||olympe.j.mc(b)?olympe.j.Kh([a,b],(c,d)=>olympe.j.Ca(c.valueOf()-d.valueOf()),olympe.j.aa,
|
|
283
|
-
'minus'):olympe.j.Ca(a.valueOf()-b.valueOf())}static Va(a,b){return olympe.j.mc(a)||olympe.j.mc(b)?olympe.j.Kh([a,b],(c,d)=>olympe.j.Ca(c.valueOf()/d.valueOf()),olympe.j.aa,'div'):olympe.j.Ca(a.valueOf()/b.valueOf())}static EW(a,b){if(void 0===b)return a;olympe.j.ab([b],c=>{c=olympe.j.Ca(G(a).valueOf()+c.valueOf());lb(a.
|
|
283
|
+
'minus'):olympe.j.Ca(a.valueOf()-b.valueOf())}static Va(a,b){return olympe.j.mc(a)||olympe.j.mc(b)?olympe.j.Kh([a,b],(c,d)=>olympe.j.Ca(c.valueOf()/d.valueOf()),olympe.j.aa,'div'):olympe.j.Ca(a.valueOf()/b.valueOf())}static EW(a,b){if(void 0===b)return a;olympe.j.ab([b],c=>{c=olympe.j.Ca(G(a).valueOf()+c.valueOf());lb(a.Zb,c)},'plusEqual');return a}};olympe.j.aa.ZERO=new olympe.j.aa(0);olympe.j.aa.ONE=new olympe.j.aa(1);olympe.j.aa.gK=new olympe.j.aa(2);olympe.j.aa.PI=new olympe.j.aa(Math.PI);
|
|
284
284
|
olympe.j.aa.UP=new olympe.j.aa(Infinity);olympe.j.aa.yR=new olympe.j.aa(-Infinity);olympe.j.aa.JI=new olympe.j.aa(NaN);olympe.j.aa.QZ=olympe.j.aa.EW;olympe.j.aa.UX=olympe.j.aa.jT;olympe.j.aa.EZ=olympe.j.aa.offset;olympe.j.aa.rY=olympe.j.aa.sL;olympe.j.aa.n0=olympe.j.aa.sL;olympe.j.aa.nZ=olympe.j.aa.OV;olympe.j.aa.sY=olympe.j.aa.WT;olympe.j.aa.fY=olympe.j.aa.fC;olympe.j.aa.WX=olympe.j.aa.animate;olympe.j.aa.XX=olympe.j.aa.wT;olympe.j.aa.Z_=olympe.j.aa.Hg;olympe.j.aa.$_=olympe.j.aa.vx;
|
|
285
285
|
olympe.j.aa.PZ=olympe.j.aa.$a;olympe.j.aa.xZ=olympe.j.aa.Fa;olympe.j.aa.tY=olympe.j.aa.Va;
|
|
286
286
|
olympe.j.aa.wh={uI:function(a,b,c,d){return c*a/d+b},LY:function(a,b,c,d){a/=d;return c*a*a+b},Fs:function(a,b,c,d){a/=d;return-c*a*(a-2)+b},HY:function(a,b,c,d){a/=d/2;if(1>a)return c/2*a*a+b;a--;return-c/2*(a*(a-2)-1)+b},BY:function(a,b,c,d){a/=d;return c*a*a*a+b},RY:function(a,b,c,d){a/=d;a--;return c*(a*a*a+1)+b},fp:function(a,b,c,d){a/=d/2;if(1>a)return c/2*a*a*a+b;a-=2;return c/2*(a*a*a+2)+b},MY:function(a,b,c,d){a/=d;return c*a*a*a*a+b},VY:function(a,b,c,d){a/=d;a--;return-c*(a*a*a*a-1)+b},
|
|
@@ -289,27 +289,27 @@ IY:function(a,b,c,d){a/=d/2;if(1>a)return c/2*a*a*a*a+b;a-=2;return-c/2*(a*a*a*a
|
|
|
289
289
|
c*(2*d*d+2*d*a+-3*d)},pP:function(a,b,c,d){d=(a/=d)*a;return b+c*(4*d*a+-9*d+6*a)},yY:function(a,b,c,d){d=(a/=d)*a;return b+c*(-2*d*d+10*d*a+-15*d+8*a)},TY:function(a,b,c,d){d=(a/=d)*a;const e=d*a;return b+c*(33*e*d+-106*d*d+126*e+-67*d+15*a)},SY:function(a,b,c,d){d=(a/=d)*a;const e=d*a;return b+c*(56*e*d+-175*d*d+200*e+-100*d+20*a)},DY:function(a,b,c,d){d=(a/=d)*a;a*=d;return b+c*(33*a*d+-59*d*d+32*a+-5*d)},CY:function(a,b,c,d){d=(a/=d)*a;a*=d;return b+c*(56*a*d+-105*d*d+60*a+-10*d)},PY:function(a,
|
|
290
290
|
b,c,d){return(a/=d)<1/2.75?7.5625*c*a*a+b:a<2/2.75?c*(7.5625*(a-=1.5/2.75)*a+.75)+b:a<2.5/2.75?c*(7.5625*(a-=2.25/2.75)*a+.9375)+b:c*(7.5625*(a-=2.625/2.75)*a+.984375)+b},zY:function(a,b,c,d){a=d-a;d=(a/=d)<1/2.75?7.5625*c*a*a:a<2/2.75?c*(7.5625*(a-=1.5/2.75)*a+.75):a<2.5/2.75?c*(7.5625*(a-=2.25/2.75)*a+.9375):c*(7.5625*(a-=2.625/2.75)*a+.984375);return c-d+b}};h=olympe.j.aa.prototype;h.toJSON.K=olympe.j.J.O;h.YD.K=olympe.j.J.O;h.isNaN.K=olympe.j.J.T;h.Hg.K=olympe.j.J.R;
|
|
291
291
|
h.toString.K=new olympe.j.J(()=>String,[]);h.toFixed.K=new olympe.j.J(()=>String,[]);h.$a.K=new olympe.j.J(()=>olympe.j.aa,[0]);h.Fa.K=new olympe.j.J(()=>olympe.j.aa,[0]);h.round.K=olympe.j.J.F;h.vx.K=olympe.j.J.F;h.jb.K=new olympe.j.J(()=>olympe.j.aa,[0]);h.Va.K=new olympe.j.J(()=>olympe.j.aa,[0]);h.Bw.K=new olympe.j.J(()=>olympe.j.aa,[0]);h.floor.K=olympe.j.J.F;h.ceil.K=olympe.j.J.F;h.trunc.K=olympe.j.J.F;h.log.K=olympe.j.J.F;h.pow.K=new olympe.j.J(()=>olympe.j.aa,[0]);h.exp.K=olympe.j.J.F;
|
|
292
|
-
h.
|
|
293
|
-
a))}wO(){return olympe.j.Ca(parseFloat(this.value))}toString(){return this.value}valueOf(){return this.value.valueOf()}Lc(a){return this.value===(void 0===a||null===a?void 0:a.valueOf())}
|
|
292
|
+
h.df.K=new olympe.j.J(()=>olympe.j.ja,[0]);h.Lc.K=olympe.j.J.O;h.valueOf.K=olympe.j.J.O;h.iV.K=olympe.j.J.O;h.Oj.K=new olympe.j.J(()=>olympe.j.ja,[0]);h.NN.K=new olympe.j.J(()=>olympe.j.aa,[0]);h.cn.K=new olympe.j.J(()=>olympe.j.aa,[0]);h.VC.K=new olympe.j.J(()=>olympe.j.ja,[0]);h.sin.K=olympe.j.J.F;h.cos.K=olympe.j.J.F;h.atan2.K=new olympe.j.J(()=>olympe.j.aa,[0]);h.abs.K=olympe.j.J.F;h.Aw.K=new olympe.j.J(()=>olympe.j.aa,[0,1]);olympe.j.lb=class{constructor(a){this.value=a}toJSON(){return'{ "type": "string", "value": '+JSON.stringify(this.value)+' }'}static gf(a){let b;'string'===typeof a?b=JSON.parse(a):b=a;return olympe.j.jc(b.value)}gz(a,b){return void 0!==b?olympe.j.lb.concat(this,b,a):olympe.j.lb.concat(this,a)}concat(...a){let b;Array.isArray(a[0])?b=a[0]:b=a;return olympe.j.fb([this,...b],(...c)=>{let d='';for(let e=0,f=c.length;e<f;e++)d=c[e]?d+c[e].valueOf():d+c[e];return olympe.j.jc(d)},olympe.j.lb,'OString.concat')}Hg(){return this}HX(a){return olympe.j.Ca(parseInt(this.value,
|
|
293
|
+
a))}wO(){return olympe.j.Ca(parseFloat(this.value))}toString(){return this.value}valueOf(){return this.value.valueOf()}Lc(a){return this.value===(void 0===a||null===a?void 0:a.valueOf())}df(a){return olympe.j.fb([this,a],(b,c)=>olympe.j.Mc(c&&b.valueOf()===c.valueOf()),olympe.j.ja,'OString.oEquals')}hj(){return olympe.j.Mc(!this.value||0===this.value.length)}contains(a){return olympe.j.fb([this,a],(b,c)=>olympe.j.Mc((c instanceof olympe.j.lb||'string'===typeof c)&&b.valueOf().includes(c.valueOf())),
|
|
294
294
|
olympe.j.ja,'OString.contains')}startsWith(a,b){return olympe.j.fb([this,a,b||0],(c,d,e)=>olympe.j.Mc(c.valueOf().startsWith(d.valueOf(),e.valueOf())),olympe.j.ja,'OString.startsWith')}endsWith(a,b){return olympe.j.fb([this,a,b||-1],(c,d,e)=>{e=0<=e.valueOf()?e.valueOf():this.lo().valueOf()+e.valueOf()+1;return olympe.j.Mc(c.valueOf().endsWith(d.valueOf(),e))},olympe.j.ja,'OString.endsWith')}indexOf(a,b){return olympe.j.fb([this,a,b||0],(c,d,e)=>olympe.j.Ca(c.valueOf().indexOf(d.valueOf(),e.valueOf())),
|
|
295
295
|
olympe.j.aa,'OString.indexOf')}lastIndexOf(a,b){return olympe.j.fb([this,a,b||Infinity],(c,d,e)=>olympe.j.Ca(c.valueOf().lastIndexOf(d.valueOf(),e.valueOf())),olympe.j.aa,'OString.lastIndexOf')}slice(a,b){return olympe.j.fb([this,a,b],(c,d,e)=>olympe.j.jc(c.valueOf().slice(d.valueOf(),e?e.valueOf():void 0)),olympe.j.lb,'OString.slice')}lo(){return olympe.j.Ca(this.value.length)}threshold(a){return olympe.j.fb([this,a],(b,c)=>b.valueOf().length>=c.valueOf()?b:olympe.j.lb.EMPTY,olympe.j.lb,'OString.threshold')}toLowerCase(){return olympe.j.jc(this.value.toLowerCase())}toUpperCase(){return olympe.j.jc(this.value.toUpperCase())}trim(){return olympe.j.jc(this.value.trim())}padStart(a,
|
|
296
296
|
b){return olympe.j.fb([this,a,b],(c,d,e)=>olympe.j.jc(c.valueOf().padStart(d.valueOf(),e.valueOf())),olympe.j.lb,'OString.padStart')}padEnd(a,b){return olympe.j.fb([this,a,b],(c,d,e)=>olympe.j.jc(c.valueOf().padEnd(d.valueOf(),e.valueOf())),olympe.j.lb,'OString.padEnd')}replace(a,b){return olympe.j.fb([this,a,b],(c,d,e)=>olympe.j.jc(c.valueOf().replace(d.valueOf(),e.valueOf())),olympe.j.lb,'OString.replace')}EX(a,b){return olympe.j.fb([this,a,b],(c,d,e)=>olympe.j.jc(c.valueOf().substr(d.valueOf(),
|
|
297
|
-
e.valueOf())),olympe.j.lb,'OString.subOStr')}static concat(...a){return olympe.j.jc('').concat(...a)}};olympe.j.lb.EMPTY=new olympe.j.lb('');olympe.j.lb.GJ=new olympe.j.lb(' ');h=olympe.j.lb.prototype;h.toJSON.K=olympe.j.J.O;h.gz.K=new olympe.j.J(()=>olympe.j.lb,[0,1]);h.concat.K=olympe.j.J.R;h.Hg.K=olympe.j.J.R;h.HX.K=olympe.j.J.F;h.wO.K=olympe.j.J.F;h.toString.K=olympe.j.J.O;h.valueOf.K=olympe.j.J.O;h.Lc.K=olympe.j.J.O;h.
|
|
297
|
+
e.valueOf())),olympe.j.lb,'OString.subOStr')}static concat(...a){return olympe.j.jc('').concat(...a)}};olympe.j.lb.EMPTY=new olympe.j.lb('');olympe.j.lb.GJ=new olympe.j.lb(' ');h=olympe.j.lb.prototype;h.toJSON.K=olympe.j.J.O;h.gz.K=new olympe.j.J(()=>olympe.j.lb,[0,1]);h.concat.K=olympe.j.J.R;h.Hg.K=olympe.j.J.R;h.HX.K=olympe.j.J.F;h.wO.K=olympe.j.J.F;h.toString.K=olympe.j.J.O;h.valueOf.K=olympe.j.J.O;h.Lc.K=olympe.j.J.O;h.df.K=new olympe.j.J(()=>olympe.j.ja,[0]);h.hj.K=olympe.j.J.T;
|
|
298
298
|
h.contains.K=new olympe.j.J(()=>olympe.j.ja,[0]);h.startsWith.K=new olympe.j.J(()=>olympe.j.ja,[0,1]);h.endsWith.K=new olympe.j.J(()=>olympe.j.ja,[0,1]);h.indexOf.K=new olympe.j.J(()=>olympe.j.aa,[0,1]);h.lastIndexOf.K=new olympe.j.J(()=>olympe.j.aa,[0,1]);h.slice.K=new olympe.j.J(()=>olympe.j.lb,[0,1]);h.lo.K=olympe.j.J.F;h.threshold.K=new olympe.j.J(()=>olympe.j.lb,[0]);h.toLowerCase.K=olympe.j.J.R;h.toUpperCase.K=olympe.j.J.R;h.trim.K=olympe.j.J.R;h.padStart.K=olympe.j.J.R;h.padEnd.K=olympe.j.J.R;
|
|
299
|
-
h.replace.K=olympe.j.J.R;h.EX.K=olympe.j.J.R;olympe.j.ja=class{constructor(a){this.value=a}toJSON(){return`{ "type": "boolean", "value": ${this.value.valueOf()}}`}static gf(a){let b;'string'===typeof a?b=JSON.parse(a):b=a;return b.value?olympe.j.ja.C:olympe.j.ja.wb}and(a){if(void 0!==a)return olympe.j.mc(a)?olympe.j.Kh([a],b=>new olympe.j.ja(this.valueOf()&&b.valueOf()),olympe.j.ja,'and'):this.value&&a.valueOf()?olympe.j.ja.C:olympe.j.ja.wb}Lc(a){return this.valueOf()===(void 0!==a?a.valueOf():void 0)}
|
|
299
|
+
h.replace.K=olympe.j.J.R;h.EX.K=olympe.j.J.R;olympe.j.ja=class{constructor(a){this.value=a}toJSON(){return`{ "type": "boolean", "value": ${this.value.valueOf()}}`}static gf(a){let b;'string'===typeof a?b=JSON.parse(a):b=a;return b.value?olympe.j.ja.C:olympe.j.ja.wb}and(a){if(void 0!==a)return olympe.j.mc(a)?olympe.j.Kh([a],b=>new olympe.j.ja(this.valueOf()&&b.valueOf()),olympe.j.ja,'and'):this.value&&a.valueOf()?olympe.j.ja.C:olympe.j.ja.wb}Lc(a){return this.valueOf()===(void 0!==a?a.valueOf():void 0)}df(a){if(void 0!==a)return olympe.j.mc(a)?
|
|
300
300
|
olympe.j.Kh([a],b=>new olympe.j.ja(this.valueOf()===b.valueOf()),olympe.j.ja,'oEquals'):this.Lc(a)?olympe.j.ja.C:olympe.j.ja.wb}Rf(){return this.value?olympe.j.ja.wb:olympe.j.ja.C}vT(a){if(void 0!==a)return olympe.j.mc(a)?olympe.j.Kh([a],b=>new olympe.j.ja(!(this.valueOf()&&b.valueOf())),olympe.j.ja,'andNot'):this.value&&!a.valueOf()?olympe.j.ja.C:olympe.j.ja.wb}or(a){if(void 0!==a)return olympe.j.mc(a)?olympe.j.Kh([a],b=>new olympe.j.ja(this.valueOf()||b.valueOf()),olympe.j.ja,'or'):this.value||
|
|
301
301
|
a.valueOf()?olympe.j.ja.C:olympe.j.ja.wb}xor(a){return olympe.j.fb([this,a],(b,c)=>{b=b.valueOf();c=c.valueOf();return olympe.j.Mc(b&&!c||!b&&c)},olympe.j.ja,'OBoolean.xor')}pU(){return this.value}wM(){return!0===this.value?olympe.j.aa.ONE:olympe.j.aa.ZERO}Hg(){return olympe.j.jc(this.toString())}toString(){return this.value?'true':'false'}valueOf(){return this.value}};olympe.j.ja.C=new olympe.j.ja(!0);olympe.j.ja.wb=new olympe.j.ja(!1);h=olympe.j.ja.prototype;h.toJSON.K=olympe.j.J.O;
|
|
302
|
-
h.and.K=new olympe.j.J(()=>olympe.j.ja,[0]);h.Lc.K=olympe.j.J.O;h.
|
|
302
|
+
h.and.K=new olympe.j.J(()=>olympe.j.ja,[0]);h.Lc.K=olympe.j.J.O;h.df.K=new olympe.j.J(()=>olympe.j.ja,[0]);h.Rf.K=olympe.j.J.T;h.vT.K=new olympe.j.J(()=>olympe.j.ja,[0]);h.or.K=new olympe.j.J(()=>olympe.j.ja,[0]);h.xor.K=new olympe.j.J(()=>olympe.j.ja,[0]);h.pU.K=new olympe.j.J(()=>Boolean,[]);h.wM.K=olympe.j.J.F;h.Hg.K=olympe.j.J.R;h.toString.K=olympe.j.J.O;h.valueOf.K=olympe.j.J.O;function Lb(a){return new olympe.j.cc(new Date(a.valueOf()))}function Mb(a){a=(a=/(\d{2}).(\d{2}).(\d{4})/.exec(a.valueOf()))&&4===a.length?new Date(parseInt(a[3],10),parseInt(a[2],10)-1,parseInt(a[1],10)):new Date(NaN);return isNaN(a.getTime())?null:new olympe.j.cc(a)}function Nb({year:a=1970,month:b=1,day:c=1,hour:d=1,minute:e=0,second:f=0,gW:g=0}={}){return new olympe.j.cc(new Date(a.valueOf(),b.valueOf()-1,c.valueOf(),d.valueOf(),e.valueOf(),f.valueOf(),g.valueOf()))}
|
|
303
303
|
function Ob(a){return new olympe.j.cc(a)}function Pb(a){return new olympe.j.cc(new Date(a))}
|
|
304
304
|
olympe.j.cc=class{constructor(a){this.Ud=a}toJSON(){return'{ "type": "dateTime", "value": "'+this.Ud.toJSON()+'" }'}static gf(a){let b;'string'===typeof a?b=JSON.parse(a):b=a;return Lb(b.value)}static now(){return new olympe.j.cc(new Date)}ql(){return this.Ud&&!isNaN(this.Ud.getTime())?olympe.j.ja.C:olympe.j.ja.wb}hQ(){return olympe.j.Ca(this.Ud.getMilliseconds())}jQ(){return olympe.j.Ca(this.Ud.getSeconds())}iQ(){return olympe.j.Ca(this.Ud.getMinutes())}gQ(){return olympe.j.Ca(this.Ud.getHours())}Wp(){return olympe.j.Ca(this.Ud.getDate())}getMonth(){return olympe.j.Ca(this.Ud.getMonth()+1)}getYear(){return olympe.j.Ca(this.Ud.getFullYear())}getTime(){return this.Ud.getTime()}So(){var a=
|
|
305
305
|
olympe.j,b=a.jc;var c=this.Ud.getDate();c=10>c?'0'+c:c;var d=this.Ud.getMonth()+1;return b.call(a,`${c}.${10>d?'0'+d:d}.${this.Ud.getFullYear()}`)}toLocaleString(a){return void 0===a||'string'===typeof a?olympe.j.jc(this.Ud.toLocaleString(a)):olympe.j.fb([this,a],(b,c)=>olympe.j.jc(b.Ud.toLocaleString(c.valueOf())),olympe.j.lb)}toLocaleDateString(a){return void 0===a||'string'===typeof a?olympe.j.jc(this.Ud.toLocaleDateString(a)):olympe.j.fb([this,a],(b,c)=>olympe.j.jc(b.Ud.toLocaleDateString(c.valueOf())),
|
|
306
306
|
olympe.j.lb)}toLocaleTimeString(a){return void 0===a||'string'===typeof a?olympe.j.jc(this.Ud.toLocaleTimeString(a)):olympe.j.fb([this,a],(b,c)=>olympe.j.jc(b.Ud.toLocaleTimeString(c.valueOf())),olympe.j.lb)}Hg(){return olympe.j.jc(this.Ud.toISOString())}Lq(){return new Date(this.getTime())}GX(){return this}IX(){return this}clone(){return new olympe.j.cc(new Date(this.Ud.getTime()))}xp(a,b){return olympe.j.fb([b],c=>{const d=this.clone();d.Ud['set'+a](this.Ud['get'+a]()+c.valueOf());return d},olympe.j.cc)}nT(a){return this.xp('Milliseconds',
|
|
307
|
-
a)}rT(a){return this.xp('Seconds',a)}oT(a){return this.xp('Minutes',a)}mT(a){return this.xp('Hours',a)}st(a){return this.xp('Date',a)}sT(a){return'number'===typeof a?this.st(7*a):this.st(a.jb(7))}cz(a){return this.xp('Month',a)}Ov(a){return this.xp('FullYear',a)}CX(){let a=this.Ud.getDay();a=0===a?6:a-1;return new olympe.j.cc(new Date(this.Ud.getFullYear(),this.Ud.getMonth(),this.Ud.getDate()-a))}DX(){return new olympe.j.cc(new Date(this.Ud.getFullYear(),this.Ud.getMonth()))}
|
|
307
|
+
a)}rT(a){return this.xp('Seconds',a)}oT(a){return this.xp('Minutes',a)}mT(a){return this.xp('Hours',a)}st(a){return this.xp('Date',a)}sT(a){return'number'===typeof a?this.st(7*a):this.st(a.jb(7))}cz(a){return this.xp('Month',a)}Ov(a){return this.xp('FullYear',a)}CX(){let a=this.Ud.getDay();a=0===a?6:a-1;return new olympe.j.cc(new Date(this.Ud.getFullYear(),this.Ud.getMonth(),this.Ud.getDate()-a))}DX(){return new olympe.j.cc(new Date(this.Ud.getFullYear(),this.Ud.getMonth()))}df(a){return olympe.j.fb([a],
|
|
308
308
|
b=>olympe.j.Mc(this.Lc(b)),olympe.j.ja)}Lc(a){return a instanceof olympe.j.cc?this.getTime()===a.getTime()||isNaN(this.getTime())&&isNaN(a.getTime()):!1}$U(){let a=this.Ud.getDay();0===a&&(a=7);return olympe.j.Ca(a)}IU(a,b){return olympe.j.fb([a,b],(c,d)=>{d=d.valueOf();'years'===d?c=this.Ud.getFullYear()-c.Ud.getFullYear():'months'===d?c=12*(this.Ud.getFullYear()-c.Ud.getFullYear())+(this.Ud.getMonth()-c.Ud.getMonth()):(d={milliseconds:1,seconds:1E3,minutes:6E4,hours:36E5,days:864E5,weeks:6048E5}[d],
|
|
309
309
|
void 0===d&&(olympe.rb.Eb('df').warn("[getDiff] '_unit' is not a valid unit! Defaulting to milliseconds"),d=1),c=Math.trunc((this.Ud.getTime()-c.Ud.getTime())/d));return olympe.j.Ca(c)},olympe.j.aa)}PV(a){return olympe.j.fb([a],b=>olympe.j.Mc(this.getTime()<b.getTime()),olympe.j.ja)}yN(a){return olympe.j.fb([a],b=>olympe.j.Mc(this.getTime()>b.getTime()),olympe.j.ja)}Kz(a,b){return olympe.j.fb([a,b],(c,d)=>olympe.j.Mc(this.getTime()>c.getTime()&&this.getTime()<d.getTime()),olympe.j.ja)}valueOf(){return this.ql().valueOf()?
|
|
310
310
|
new Date(this.getTime()):new Date(0)}};olympe.j.cc.C=Pb(0);olympe.j.cc.F=Pb(Number.NaN);h=olympe.j.cc.prototype;h.ql.K=olympe.j.J.T;h.hQ.K=olympe.j.J.F;h.jQ.K=olympe.j.J.F;h.iQ.K=olympe.j.J.F;h.gQ.K=olympe.j.J.F;h.Wp.K=olympe.j.J.F;h.getMonth.K=olympe.j.J.F;h.getYear.K=olympe.j.J.F;h.getTime.K=olympe.j.J.O;h.So.K=new olympe.j.J(()=>olympe.j.lb,[0]);h.toLocaleString.K=olympe.j.J.R;h.toLocaleDateString.K=olympe.j.J.R;h.toLocaleTimeString.K=olympe.j.J.R;h.Hg.K=olympe.j.J.R;h.Lq.K=olympe.j.J.O;
|
|
311
311
|
h.GX.K=new olympe.j.J(()=>olympe.j.cc,[]);h.IX.K=new olympe.j.J(()=>olympe.j.cc,[]);h.xp.K=new olympe.j.J(()=>olympe.j.cc,[]);h.nT.K=new olympe.j.J(()=>olympe.j.cc,[]);h.rT.K=new olympe.j.J(()=>olympe.j.cc,[]);h.oT.K=new olympe.j.J(()=>olympe.j.cc,[]);h.mT.K=new olympe.j.J(()=>olympe.j.cc,[]);h.st.K=new olympe.j.J(()=>olympe.j.cc,[0]);h.sT.K=new olympe.j.J(()=>olympe.j.cc,[]);h.cz.K=new olympe.j.J(()=>olympe.j.cc,[]);h.Ov.K=new olympe.j.J(()=>olympe.j.cc,[0]);
|
|
312
|
-
h.CX.K=new olympe.j.J(()=>olympe.j.cc,[]);h.DX.K=new olympe.j.J(()=>olympe.j.cc,[]);h.
|
|
312
|
+
h.CX.K=new olympe.j.J(()=>olympe.j.cc,[]);h.DX.K=new olympe.j.J(()=>olympe.j.cc,[]);h.df.K=olympe.j.J.T;h.Lc.K=olympe.j.J.O;h.$U.K=olympe.j.J.F;h.IU.K=new olympe.j.J(()=>olympe.j.aa,[0,1]);h.PV.K=new olympe.j.J(()=>olympe.j.ja,[0]);h.yN.K=new olympe.j.J(()=>olympe.j.ja,[0]);h.Kz.K=new olympe.j.J(()=>olympe.j.ja,[0,1]);h.valueOf.K=olympe.j.J.O;const Qb=new Map,Rb=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Sb=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i;function Tb(a,b,c,d,e=1){Qb.has(a)||Qb.set(a,new olympe.j.Color(b,c,d,e));return Qb.get(a)}function K(){return Tb('black',0,0,0,1)}function M(){return Tb('gray',128,128,128,1)}function N(){return Tb('white',255,255,255,1)}function Ub(){return Tb('dark gray',64,64,64,1)}function Vb(){return Tb('light gray',200,200,200,1)}function O(){return Tb('transparent',0,0,0,0)}
|
|
313
313
|
function Wb(a){const b=c=>{let d;c=c.valueOf();6>c.length?(d=17,c=Sb.exec(c)):(d=1,c=Rb.exec(c));c=c?c.slice(1).map(e=>parseInt(e,16)*d):[0,0,0];return olympe.j.Color.create(c[0],c[1],c[2],isNaN(c[3])?1:c[3]/255)};return olympe.j.Pg(a)?olympe.j.Kh([a],b,olympe.j.Color):b(a)}function Xb(a,b,c){return olympe.j.Kh([a,b,c,.5],(d,e,f,g)=>olympe.j.Color.create(d,e,f,g),olympe.j.Color)}function Q(a){return olympe.j.pb(olympe.j.Color,a)}
|
|
314
314
|
olympe.j.Color=class{constructor(a,b,c,d){this.C=olympe.j.Ca(void 0!==a?Math.min(255,Math.max(0,Math.round(a))):0);this.F=olympe.j.Ca(void 0!==b?Math.min(255,Math.max(0,Math.round(b))):0);this.b=olympe.j.Ca(void 0!==c?Math.min(255,Math.max(0,Math.round(c))):0);this.a=olympe.j.Ca(void 0!==d?Math.min(1,Math.max(0,d)):1)}toJSON(){return`{ "type": "color", "r": ${this.C.valueOf()}, "g": ${this.F.valueOf()}, "b": ${this.b.valueOf()}, "a": ${this.a.valueOf()} }`}static gf(a){let b;'string'===typeof a?b=
|
|
315
315
|
JSON.parse(a):b=a;return olympe.j.Color.create(b.r,b.g,b.b,b.a)}static create(a,b,c,d=1){return olympe.j.fb([a,b,c,d],(e,f,g,k)=>{e=olympe.j.Ca(void 0!==e?Math.min(255,Math.max(0,Math.round(e.valueOf()))):0);f=olympe.j.Ca(void 0!==f?Math.min(255,Math.max(0,Math.round(f.valueOf()))):0);g=olympe.j.Ca(void 0!==g?Math.min(255,Math.max(0,Math.round(g.valueOf()))):0);k=olympe.j.Ca(void 0!==k?Math.min(1,Math.max(0,k.valueOf())):1);for(let l of Qb.values())if(l&&l.C.Lc(e)&&l.F.Lc(f)&&l.b.Lc(g)&&l.a.Lc(k))return l;
|
|
@@ -322,27 +322,27 @@ a+b*b)),olympe.j.aa)}kQ(){return olympe.j.fb([this.x,this.y],(a,b)=>{const c=Mat
|
|
|
322
322
|
this.y.$a(a))}qT(a,b){return new olympe.j.ia(this.x.$a(a),this.y.$a(b))}Hg(){return olympe.j.fb([this.x,this.y],(a,b)=>olympe.j.jc(`Vector2[${a.valueOf()}, ${b.valueOf()}]`),olympe.j.lb)}toString(){return`Vector2[${G(this.x)}, ${G(this.y)}]`}Lc(a){return this===a?!0:!1}};h=olympe.j.ia.prototype;h.toJSON.K=olympe.j.J.O;h.na.K=olympe.j.J.F;h.oe.K=olympe.j.J.O;h.ra.K=olympe.j.J.F;h.Ge.K=olympe.j.J.O;h.zV.K=olympe.j.J.F;h.$a.K=new olympe.j.J(()=>olympe.j.ia,[0]);
|
|
323
323
|
h.Fa.K=new olympe.j.J(()=>olympe.j.ia,[0]);h.jW.K=olympe.j.J.V;h.ZT.K=olympe.j.J.V;h.mW.K=olympe.j.J.V;h.$T.K=new olympe.j.J(()=>olympe.j.aa,[0]);h.length.K=olympe.j.J.F;h.kQ.K=olympe.j.J.V;h.floor.K=olympe.j.J.V;h.ceil.K=olympe.j.J.V;h.round.K=olympe.j.J.V;h.pT.K=olympe.j.J.V;h.qT.K=olympe.j.J.V;h.Hg.K=olympe.j.J.R;h.toString.K=olympe.j.J.O;h.Lc.K=olympe.j.J.O;olympe.j.Ik=class{constructor(){}Qe(){}oi(){}get(){}zg(){}has(){}ci(){}Pd(){}kl(){}ed(){}dj(){}forEach(){}$h(){}};olympe.j.Ik.prototype.forEachCurrentValue=olympe.j.Ik.prototype.$h;olympe.j.Ik.prototype.forEach=olympe.j.Ik.prototype.forEach;h=olympe.j.Ik.prototype;h.has.K=olympe.j.J.T;h.ci.K=olympe.j.J.O;h.Pd.K=new olympe.j.J(()=>Object,[]);h.kl.K=new olympe.j.J(()=>String,[]);h.ed.K=olympe.j.J.F;h.dj.K=olympe.j.J.O;h.forEach.K=new olympe.j.J(()=>{},[]);h.$h.K=olympe.j.J.O;olympe.j.Lg=class extends olympe.j.Ik{constructor(){super()}hf(){}nm(){}ym(){}dl(){}Ch(){}cl(){}aw(){}Lt(){}};olympe.j.Lg.prototype.getCurrentAt=olympe.j.Lg.prototype.cl;olympe.j.Lg.prototype.getAt=olympe.j.Lg.prototype.Ch;olympe.j.Lg.prototype.getCurrentKeyAt=olympe.j.Lg.prototype.dl;olympe.j.Lg.prototype.getKeyAt=olympe.j.Lg.prototype.ym;olympe.j.Lg.prototype.getCurrentRank=olympe.j.Lg.prototype.nm;olympe.j.Lg.prototype.getRank=olympe.j.Lg.prototype.hf;h=olympe.j.Lg.prototype;h.hf.K=olympe.j.J.F;
|
|
324
324
|
h.nm.K=olympe.j.J.O;h.ym.K=new olympe.j.J(()=>String,[]);h.dl.K=olympe.j.J.O;h.Ch.K=new olympe.j.J(()=>Object,[]);h.cl.K=olympe.j.J.O;h.aw.K=olympe.j.J.O;h.Lt.K=new olympe.j.J(()=>Array,[]);olympe.j.Mu=class{constructor(a,b){this.T=b||olympe.j.ib();this.valueType=a||Object;this.values={};this.Ha=this.Qa=null;this.ae=0;this.ga=Object.create(null);this.Ib=Object.create(null);this.size=0;this.R=null;this.T.onDestroy(()=>{const c=this.ga;if(c){const d=Object.keys(c),e=d.length;for(let f=0;f<e;f++){const g=c[d[f]],k=Object.keys(g);for(let l=k.length,m=0;m<l;m++)g[k[m]].destroy()}}})}getContext(){return this.T}Qe(){return this.valueType}oi(a){this.valueType=a;const b=this.Qa;if(null!==b)for(const c in b)Object.prototype.hasOwnProperty.call(b,
|
|
325
|
-
c)&&Ab(b[c],a)}get(a){const b=c=>{null===this.Qa&&(this.Qa={});return this.hw(this.Qa,c,this.values[c],this.valueType,'Map.get('+c+')')};return olympe.j.fb([a],c=>b(c),this.valueType)}zg(a){a=this.values[a];return olympe.j.mc(a)?jb(a.
|
|
326
|
-
f||this.T.run(()=>{f=olympe.j.pb(d,void 0,e);a[b]=f;f.
|
|
325
|
+
c)&&Ab(b[c],a)}get(a){const b=c=>{null===this.Qa&&(this.Qa={});return this.hw(this.Qa,c,this.values[c],this.valueType,'Map.get('+c+')')};return olympe.j.fb([a],c=>b(c),this.valueType)}zg(a){a=this.values[a];return olympe.j.mc(a)?jb(a.Zb)?G(a):void 0:a}has(a){const b=c=>{null===this.Ha&&(this.Ha={});return this.hw(this.Ha,c,c in this.values?olympe.j.ja.C:olympe.j.ja.wb,olympe.j.ja,'Map.has('+c+')')};return olympe.j.fb([a],c=>b(c),olympe.j.ja)}ci(a){return a in this.values}hw(a,b,c,d,e){let f=a[b];
|
|
326
|
+
f||this.T.run(()=>{f=olympe.j.pb(d,void 0,e);a[b]=f;f.Zb.onDestroy(()=>delete a[b]);olympe.j.mc(c)?Fb(f,c):I(f,c)});return f}Pd(){throw Error('Abstract method getFirstKey needs to be overridden');}kl(){throw Error('Abstract method getFirstKey needs to be overridden');}ed(){null===this.R&&this.T.run(()=>{this.R=olympe.j.pb(olympe.j.aa,olympe.j.Ca(this.size));this.R.Zb.onDestroy(()=>{this.R=null})});return this.R}dj(){return this.size}forEach(a,b){const c=this.XB();a=this.cL(c,a,b);this.WB(c,a)}XB(){return String(++this.ae)}WB(a,
|
|
327
327
|
b){this.Ib[a]=b;olympe.j.ib().Vd(()=>{const c=this.ga;for(const d in c)Object.prototype.hasOwnProperty.call(c,d)&&delete c[d][a];delete this.Ib[a]});this.$h(b)}cL(a,b,c){const d=olympe.j.ib();return(e,f)=>{d.run(()=>{const g=olympe.j.createNode(void 0,b,null,[e,f,this],null,`forEach-${a}-${f}`);if(void 0!==c)g.onDestroy(()=>{c(f)});this.ZB(a,f,g)})}}ZB(a,b,c){void 0===this.ga[b]&&(this.ga[b]={});this.ga[b][a]=c}$h(a){const b=this.values;for(const c in b)if(Object.prototype.hasOwnProperty.call(b,c)&&
|
|
328
328
|
!1===a(b[c],c,this))break}$y(a,b){void 0!==this.values[a]&&this.Gv(a,!0);this.values[a]=b;var c=this.Qa;null!==c&&void 0!==c[a]&&(b&&b instanceof olympe.j.Proxy?Fb(c[a],b):I(c[a],b));c=this.Ha;null!==c&&void 0!==c[a]&&J(c[a],!0);this.size++;c=this.Ib;for(const d in c)if(Object.prototype.hasOwnProperty.call(c,d))c[d](b,a,this)}Gv(a,b){const c=this.values;if(Object.prototype.hasOwnProperty.call(c,a)){var d=(d=c[a])&&d.Zg?G(d):d;var e=this.Qa;null!==e&&void 0!==e[a]&&Db(e[a]);e=this.Ha;null!==e&&void 0!==
|
|
329
329
|
e[a]&&J(e[a],!1);delete c[a];this.size--;b||this.Zn()}a=this.ga[a];if(void 0!==a)for(const f in a)Object.prototype.hasOwnProperty.call(a,f)&&a[f].destroy();return d}Zn(){null!==this.R&&J(this.R,this.size)}qt(){var a=this.Qa;if(null!==a)for(const c in a)Object.prototype.hasOwnProperty.call(a,c)&&Db(a[c]);a=this.Ha;if(null!==a)for(var b in a)Object.prototype.hasOwnProperty.call(a,b)&&J(a[b],!1);for(const c in this.values)Object.prototype.hasOwnProperty.call(this.values,c)&&delete this.values[c];for(const c in this.ga)if(Object.prototype.hasOwnProperty.call(this.ga,
|
|
330
330
|
c)){b=this.ga[c];for(const d in b)Object.prototype.hasOwnProperty.call(b,d)&&b[d].destroy()}this.size=0;null!==this.R&&J(this.R,this.size)}dr(){const a=this.values;let b='\n';for(const c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b+=a[c]+'\n');return b}};olympe.j.Mu.ua=[olympe.j.Ik];h=olympe.j.Mu.prototype;h.getContext.K=olympe.j.J.O;h.Qe.K=olympe.j.J.O;h.oi.K=olympe.j.J.O;h.get.K=new olympe.j.J(()=>Object,[],'valueType');h.zg.K=olympe.j.J.O;h.has.K=olympe.j.J.T;h.ci.K=olympe.j.J.O;h.hw.K=olympe.j.J.O;
|
|
331
331
|
h.ed.K=olympe.j.J.F;h.dj.K=olympe.j.J.O;h.forEach.K=new olympe.j.J(()=>{},[]);h.XB.K=olympe.j.J.O;h.WB.K=olympe.j.J.O;h.cL.K=olympe.j.J.O;h.ZB.K=olympe.j.J.O;h.$h.K=olympe.j.J.O;h.$y.K=olympe.j.J.O;h.Gv.K=olympe.j.J.O;h.Zn.K=olympe.j.J.O;h.qt.K=olympe.j.J.O;h.dr.K=olympe.j.J.O;olympe.j.Ex=class extends olympe.j.Mu{constructor(a,b){super(a,b);this.F=Object.create(null);this.C=[];this.ta=this.Ka=this.Ea=this.ka=null}oi(a){super.oi(a);if(null!==this.ta)for(let b of this.ta.values())Ab(b,a)}Pd(){return this.Ch(0)}kl(){return this.ym(0)}hf(a){const b=c=>{null===this.Ea&&(this.Ea=Object.create(null));let d=this.nm(a);d=void 0!==d?olympe.j.Ca(d):void 0;return this.hw(this.Ea,c,d,olympe.j.aa,`List.getRank(${c})`)};return olympe.j.mc(a)?Bb(a,b,null,olympe.j.aa):b(a)}nm(a){return this.F[a]}ym(a){const b=
|
|
332
|
-
c=>{const d=c.valueOf(),e=this.dl(d);null===this.Ka&&(this.Ka=Object.create(null));return this.hw(this.Ka,String(d),e,String,'List.getKeyAt('+c+')')};return olympe.j.fb([a],c=>b(c),String)}dl(a){return this.C[a.valueOf()]}Ch(a){if(olympe.j.mc(a))return this.get(olympe.j.fb([a],c=>{c=this.ym(c);if(!jb(c.
|
|
333
|
-
this.ta.delete(a))});return b}cl(a){return this.zg(this.dl(a))}aw(a,b,c,d){let e=this.XB();a=this.DN(e,a,b,c,d);this.WB(e,a)}DN(a,b,c,d,e){return olympe.j.ib().md((f,g)=>{let k=!1,l=olympe.j.tj([b,c,this.hf(g)],(m,n,p)=>{p>=m&&p<m+n?k||(d(f,g,this),k=!0):k&&(e(g),k=!1)});if(void 0!==e)l.onDestroy(e.bind(null,g));this.ZB(a,g,l)})}Lt(){null===this.ka&&this.T.run(()=>{this.ka=olympe.j.pb(Array,this.C.filter(a=>void 0!==a));this.ka.
|
|
332
|
+
c=>{const d=c.valueOf(),e=this.dl(d);null===this.Ka&&(this.Ka=Object.create(null));return this.hw(this.Ka,String(d),e,String,'List.getKeyAt('+c+')')};return olympe.j.fb([a],c=>b(c),String)}dl(a){return this.C[a.valueOf()]}Ch(a){if(olympe.j.mc(a))return this.get(olympe.j.fb([a],c=>{c=this.ym(c);if(!jb(c.Zb)){const d=olympe.j.ib();olympe.j.Gm(d)&&vb(d)}return c},String));null===this.ta&&(this.ta=new Map);let b=this.ta.get(a);b||this.T.run(()=>{b=this.get(this.ym(a));this.ta.set(a,b);b.Zb.onDestroy(()=>
|
|
333
|
+
this.ta.delete(a))});return b}cl(a){return this.zg(this.dl(a))}aw(a,b,c,d){let e=this.XB();a=this.DN(e,a,b,c,d);this.WB(e,a)}DN(a,b,c,d,e){return olympe.j.ib().md((f,g)=>{let k=!1,l=olympe.j.tj([b,c,this.hf(g)],(m,n,p)=>{p>=m&&p<m+n?k||(d(f,g,this),k=!0):k&&(e(g),k=!1)});if(void 0!==e)l.onDestroy(e.bind(null,g));this.ZB(a,g,l)})}Lt(){null===this.ka&&this.T.run(()=>{this.ka=olympe.j.pb(Array,this.C.filter(a=>void 0!==a));this.ka.Zb.onDestroy(()=>{this.R=null})});return this.ka}$h(a){if(this.C.length!==
|
|
334
334
|
this.size)super.$h(a);else{var b=this.values;for(let c of this.C.filter(d=>void 0!==d))if(Object.prototype.hasOwnProperty.call(b,c)&&!1===a(b[c],c,this))break}}az(a,b){const c=this.Ea,d=this.Ka,e=this.F[a],f=b.valueOf();if(e!==f||this.C[e]!==a){var g=this.C[f];void 0!==g&&delete this.F[g];void 0!==e&&null!==e&&this.C[e]===a&&(this.C[e]=void 0);this.F[a]=f;this.C[f]=a;null!==c&&(void 0!==g&&void 0!==c[g]&&Db(c[g]),void 0!==c[a]&&I(c[a],olympe.j.Ca(f)));null!==d&&(void 0!==e&&null!==e&&void 0!==d[e]&&
|
|
335
335
|
Db(d[e]),void 0!==d[b]&&I(d[b],a))}}YB(a){var b=this.Ka,c=this.F[a];null!==c&&void 0!==c&&null!==b&&(b=b[c],void 0!==b&&G(b)===a&&Db(b));delete this.F[a];this.C.splice(c,1);c=this.Ea;null!==c&&void 0!==c[a]&&Db(c[a])}$B(){if(null!==this.ka){const a=this.C,b=G(this.ka);b&&a.join(',')!==b.join(',')&&I(this.ka,a)}}Zn(){this.$B();super.Zn()}qt(){var a=this.F;for(b in a)delete a[b];this.C.length=0;a=this.Ea;if(null!==a)for(b in a)Db(a[b]);a=this.Ka;if(null!==a)for(b in a)Db(a[parseInt(b,10)]);var b=this.ka;
|
|
336
|
-
null!==b&&(tb(b.
|
|
336
|
+
null!==b&&(tb(b.Zb),I(b,this.C));return olympe.j.Mu.prototype.qt.call(this)}dr(){const a=this.values,b=this.F;let c='[\n';for(let d in a)Object.prototype.hasOwnProperty.call(a,d)&&(c+=`${b[d]}. ${a[d]}\n`);return c+']'}};olympe.j.Ex.ua=[olympe.j.Lg];h=olympe.j.Ex.prototype;h.oi.K=olympe.j.J.O;h.Pd.K=new olympe.j.J(()=>Object,[]);h.kl.K=new olympe.j.J(()=>String,[]);h.hf.K=olympe.j.J.F;h.nm.K=olympe.j.J.O;h.ym.K=new olympe.j.J(()=>String,[]);h.dl.K=olympe.j.J.O;h.Ch.K=new olympe.j.J(()=>Object,[]);
|
|
337
337
|
h.cl.K=olympe.j.J.O;h.aw.K=new olympe.j.J(()=>{},[]);h.DN.K=olympe.j.J.O;h.Lt.K=new olympe.j.J(()=>Array,[]);h.$h.K=olympe.j.J.O;h.az.K=olympe.j.J.O;h.YB.K=olympe.j.J.O;h.$B.K=olympe.j.J.O;h.Zn.K=olympe.j.J.O;h.qt.K=olympe.j.J.O;h.dr.K=olympe.j.J.O;olympe.j.Map=class extends olympe.j.Mu{constructor(a){a===olympe.j.Proxy&&(a=Object);super(a);this.C=this.F=null}oi(a){a===olympe.j.Proxy&&(a=Object);null!==this.F&&Ab(this.F,a);super.oi(a)}Pd(){null===this.F&&this.nC();return this.F}kl(){null===this.C&&this.nC();return this.C}nC(){this.getContext().run(()=>{this.F=olympe.j.pb(this.Qe());this.C=olympe.j.pb(String);this.Zw(this.uC())})}uC(){const a=this.values;let b,c;for(b in a)if(Object.prototype.hasOwnProperty.call(a,b)){c=b;break}return c}Zw(a){if(void 0!==
|
|
338
338
|
a){const b=this.values[a];b&&b instanceof olympe.j.Proxy?Fb(this.F,b):I(this.F,b);I(this.C,a)}else void 0!==G(this.F)&&(Db(this.F),Db(this.C))}set(a,b){this.$y(a,b);1===this.size&&null!==this.C&&this.Zw(a);this.Zn()}remove(a){const b=this.Gv(a);null!==this.C&&G(this.C)===a&&this.Zw(this.uC());return b}clear(){this.qt();null!==this.C&&this.Zw(void 0)}};h=olympe.j.Map.prototype;h.oi.K=olympe.j.J.O;h.Pd.K=new olympe.j.J(()=>Object,[]);h.kl.K=new olympe.j.J(()=>String,[]);h.nC.K=olympe.j.J.O;h.uC.K=olympe.j.J.O;
|
|
339
339
|
h.Zw.K=olympe.j.J.O;h.set.K=olympe.j.J.O;h.remove.K=new olympe.j.J(()=>Object,[]);h.clear.K=olympe.j.J.O;function Yb(a,b,c){olympe.j.ab([c],d=>{a.az(b,d);a.$B()})}olympe.j.Ae=class extends olympe.j.Ex{constructor(a){super(a)}set(a,b,c){this.$y(a,b);void 0!==c&&olympe.j.ab([c],d=>{this.az(a,d)});this.Zn()}remove(a){this.YB(a);return this.Gv(a)}clear(){this.qt()}};olympe.j.Ae.prototype.remove.K=olympe.j.J.O;olympe.j.Ae.prototype.clear.K=olympe.j.J.O;olympe.j.FO=class extends olympe.j.ay{constructor(a,b){super(olympe.j.aa,'animatedFlowSource');this.duration=a;this.F=b||olympe.j.aa.wh.uI}Ba(){return olympe.j.Ei(this.C,this.duration,this.F,void 0)}};let Zb=null;olympe.j.Y=void 0;olympe.j.nD=void 0;olympe.j.xt=void 0;olympe.j.pt=new Map;olympe.j.pt.set(0,olympe.j.aa.ZERO);olympe.j.pt.set(1,olympe.j.aa.ONE);olympe.j.pt.set(2,olympe.j.aa.gK);olympe.j.Zy=new Map;olympe.j.Zy.set('',olympe.j.lb.EMPTY);olympe.j.Zy.set(' ',olympe.j.lb.GJ);olympe.j.createNode=function(a,b,c,d,e,f,g,k){return new olympe.j.Node({valueType:a,Gh:b,Fo:c,SC:d,debug:g,Mp:e,yi:f,Pv:k})};olympe.j.Gm=function(a){return!!(a&&a instanceof olympe.j.Node)};
|
|
340
|
-
olympe.j.pb=function(a,b,c){a=olympe.j.createNode(a,void 0,void 0,void 0,void 0,c);olympe.j.Gm(b)?wb(a,b):olympe.j.mc(b)?wb(a,b.
|
|
341
|
-
olympe.j.Ef=function(a,b){if(void 0!==a){olympe.j.Vt(a)&&(a=a.Ba().
|
|
342
|
-
olympe.j.tj=function(a,b,c,d){const e=a.length,f=Array(e),g=[];let k;for(let l=0;l<e;l++)k=a[l],void 0!==k&&null!==k&&(void 0!==k.$K?(k=k.
|
|
340
|
+
olympe.j.pb=function(a,b,c){a=olympe.j.createNode(a,void 0,void 0,void 0,void 0,c);olympe.j.Gm(b)?wb(a,b):olympe.j.mc(b)?wb(a,b.Zb):lb(a,b);return nb(a)};olympe.j.mc=function(a){return!(!a||!a.Zg)};olympe.j.Pg=function(a){return!(!a||!(a instanceof olympe.j.Node||a.Zg))};olympe.j.UC=function(a){return olympe.j.Gm(a)||a instanceof olympe.j.Od||a instanceof olympe.j.AJ};olympe.j.Vt=function(a){return a instanceof olympe.j.ay};
|
|
341
|
+
olympe.j.Ef=function(a,b){if(void 0!==a){olympe.j.Vt(a)&&(a=a.Ba().Zb);if(!olympe.j.Pg(a))return b(a);var c=[];olympe.j.mc(a)?c.push(a.Zb):c.push(a);return olympe.j.createNode(void 0,b,null,c,[0],'onResolved')}};olympe.j.Ua=function(a,b){let c=a;olympe.j.mc(a)?c=G(a):olympe.j.Gm(a)?c=a.lg:olympe.j.Vt(a)&&(c=G(a.Ba()));return void 0===c?b:c};olympe.j.th=function(a,b){let c;olympe.j.mc(a)?c=a.Zb:olympe.j.Gm(a)?c=a:olympe.j.Vt(a)&&(c=a.Ba().Zb);c&&olympe.j.ab([b],d=>{c.th(d)},'setDefaultValue');return a};
|
|
342
|
+
olympe.j.tj=function(a,b,c,d){const e=a.length,f=Array(e),g=[];let k;for(let l=0;l<e;l++)k=a[l],void 0!==k&&null!==k&&(void 0!==k.$K?(k=k.Zb,g.push(l)):k instanceof olympe.j.Node?g.push(l):olympe.j.Vt(k)&&(k=k.Ba().Zb,g.push(l))),f[l]=k;return olympe.j.createNode(c,b,null,f,g,d||'syncNodes')};olympe.j.Kh=function(a,b,c,d){return nb(olympe.j.tj(a,b,c,d||'syncProxies'))};const $b=a=>{for(const b of a)if(olympe.j.Pg(b)||olympe.j.Vt(b))return!1;return!0};
|
|
343
343
|
olympe.j.fb=function(a,b,c,d,e){if($b(a))return b(...a);const f=olympe.j.tj(a,b,c,d||'TransformFlows');e&&olympe.j.ab([e],g=>{f.th(g)},'setDefaultValue');return nb(f)};olympe.j.ab=function(a,b,c){$b(a)?b(...a):olympe.j.tj(a,b,void 0,c||'processFlows')};olympe.j.Gw=function(a,b){if($b(a))b(...a);else{const c=olympe.j.ib();olympe.j.tj(a,(...d)=>{olympe.j.ib().destroy();c.run(b,...d)},void 0,'processFlowsOnce')}};
|
|
344
|
-
olympe.j.Fg=function(a,b,c){const d=a.length,e=Array(d),f=[];let g;for(let k=0;k<d;k++)g=a[k],void 0!==g&&null!==g&&(olympe.j.mc(g)?(g=g.
|
|
345
|
-
olympe.j.qb=function(a,b='flowSource'){return new olympe.j.ay(a,b)};olympe.j.N0=function(a,b,c,d){const e=olympe.j.ib();olympe.j.tj(a,(...f)=>{olympe.j.ib().destroy();e.run(b,...f)},c,d||'syncProxiesOnce')};olympe.j.cb=function(a,b,c,d,e,f){return olympe.j.fb([a],g=>g.valueOf()?b.apply(null,e):c&&c.apply(null,e),d||Object,f||'If')};olympe.j.q0=function(a,b,...c){return a?a.run(b,...c):b(...c)};olympe.j.R0=function(a){return olympe.j.ib().md(a)};olympe.j.p0=function(a,b,c){olympe.j.aU(a?a.
|
|
344
|
+
olympe.j.Fg=function(a,b,c){const d=a.length,e=Array(d),f=[];let g;for(let k=0;k<d;k++)g=a[k],void 0!==g&&null!==g&&(olympe.j.mc(g)?(g=g.Zb,f.push(k)):g instanceof olympe.j.Node?f.push(k):olympe.j.Vt(g)&&(g=g.Ba().Zb,f.push(k))),e[k]=g;0!==f.length&&new olympe.j.Node({Gh:b,SC:e,Mp:f,GW:!1,yi:c})};olympe.j.K0=function(a,b,c){const d=olympe.j.ib();olympe.j.Fg(a,(...e)=>{olympe.j.ib().destroy();d.run(b,...e)},c||'processFutureFlowsOnce')};olympe.j.m0=function(a,b,c){a=new olympe.j.ay(a,c);b(a);return a.Ba()};
|
|
345
|
+
olympe.j.qb=function(a,b='flowSource'){return new olympe.j.ay(a,b)};olympe.j.N0=function(a,b,c,d){const e=olympe.j.ib();olympe.j.tj(a,(...f)=>{olympe.j.ib().destroy();e.run(b,...f)},c,d||'syncProxiesOnce')};olympe.j.cb=function(a,b,c,d,e,f){return olympe.j.fb([a],g=>g.valueOf()?b.apply(null,e):c&&c.apply(null,e),d||Object,f||'If')};olympe.j.q0=function(a,b,...c){return a?a.run(b,...c):b(...c)};olympe.j.R0=function(a){return olympe.j.ib().md(a)};olympe.j.p0=function(a,b,c){olympe.j.aU(a?a.Zb:a,b,c)};
|
|
346
346
|
olympe.j.aU=function(a,b,c){if(a){var d=a.xa();null===Zb&&(Zb={});if(Zb[d])olympe.j.Y.log(`Already started node #${d} dump`+(b?`: ${b}`:''));else{Zb[d]=!0;var e=`Starting node #${d} dump`+(b?`: ${b}`:'');c?olympe.j.Y.warn(e):olympe.j.Y.log(e);var f=`#${d}`+(b?`: ${b}`:'')+':';c=olympe.j.createNode(null,g=>{void 0===g?olympe.j.Y.log(f,'undefined'):null===g?olympe.j.Y.log(f,'null'):olympe.j.Y.log(f,String(g))},null,[a],[0],'DataFlowDump');a.onDestroy(()=>{olympe.j.Y.log(`Node #${d} destroyed`+(b?`: ${b}`:
|
|
347
347
|
''))});c.onDestroy(()=>{delete Zb[d]})}}else olympe.j.Y.log('NOT starting node dump, node is '+String(a))};olympe.j.o0=function(){let a='',b=olympe.j.ib();for(;null!==b;)a+=b.nz()+' --\x3e ',b=b.getParent();olympe.j.Y.log(a)};
|
|
348
348
|
olympe.j.Ca=function(a){if(void 0===a)return olympe.j.aa.ZERO;if(a instanceof olympe.j.aa)return a;a&&a.valueOf&&(a=a.valueOf());if('number'===typeof a){if(isNaN(a))return olympe.j.aa.JI;if(a===Math.PI)return olympe.j.aa.PI;if(Infinity===a)return olympe.j.aa.UP;if(-Infinity===a)return olympe.j.aa.yR;if(isNaN(a))var b=!1;else b=parseFloat(a),b=(b|0)===b;return b&&-1<=a&&100>=a?(olympe.j.pt.has(a)||olympe.j.pt.set(a,new olympe.j.aa(a)),olympe.j.pt.get(a)):new olympe.j.aa(a)}return null};
|
|
@@ -358,8 +358,8 @@ function fc(a,b){a=cc(a,b.hf());a.splice(a.indexOf(b),1)}function cc(a,b){var c=
|
|
|
358
358
|
olympe.j.Ky=class{constructor(){this.O=new olympe.j.Od('Slot Manager context');this.F=new Map;this.O.run(()=>{this.T=olympe.j.qb(hc,'Last slot manager entry');this.size=Hb(olympe.j.qb(olympe.j.aa,'SlotManager size').repeat(this.T.Ba().zC()),olympe.j.aa.ZERO);this.V=Hb(olympe.j.qb(olympe.j.aa,'last valid slots'),olympe.j.Ca(-1))});this.C=[];this.R=[];this.O.onDestroy(()=>{ac(this)})}ed(){return this.size.Ba()}};
|
|
359
359
|
class hc{constructor(a,b,c,d){this.id=a;this.ff=new olympe.j.Od('Slot manager entry');this.F=c;this.R=d;this.ff.run(()=>{const e=Hb(olympe.j.qb(olympe.j.aa),olympe.j.aa.ZERO);olympe.j.mc(b)?e.repeat(b):e.update(b);this.C=olympe.j.qb(olympe.j.aa);this.O=this.C.Ba().$a(e.Ba())});this.next=null}xa(){return this.id}NM(){return this.C.Ba()}zC(){return this.O}hf(){return this.F}Jz(){return this.R}xO(a){this.F=a}fO(a){null===a?this.C.update(olympe.j.aa.ZERO):(this.C.repeat(a.zC()),a.next=this)}sG(){this.C.clear();
|
|
360
360
|
this.next=null}destroy(){this.ff.destroy();this.O=this.C=this.next=null}}h=hc.prototype;h.xa.K=olympe.j.J.O;h.NM.K=new olympe.j.J(()=>olympe.j.aa);h.zC.K=new olympe.j.J(()=>olympe.j.aa);h.hf.K=olympe.j.J.O;h.Jz.K=olympe.j.J.O;h.xO.K=olympe.j.J.O;h.fO.K=olympe.j.J.O;h.sG.K=olympe.j.J.O;h.destroy.K=olympe.j.J.O;olympe.j.da={Ob:'df.Logger'};olympe.ma.Be(a=>{C(a,olympe.j.za.KI,Number.POSITIVE_INFINITY);A(a,olympe.j.da.Ob,[olympe.rb.da.sb],b=>b.Mg('df'))},'olympe.df');olympe.ma.run([olympe.j.da.Ob],a=>{olympe.j.RT(a)},'olympe.df');olympe.host={};const ic=new Map,jc=new Map;olympe.host.$c=class{static register(a,b,...c){ic.set(a,b);0<c.length&&jc.set(a,c)}static create(a,b,c,d){const e=ic.get(a);if(void 0===e)throw Error('Undefined UI element type: '+a);a=jc.get(a);return void 0!==a?new e(b,c,...a.map(f=>na(d,f))):new e(b,c)}};function kc(a,b,c){a.Y.debug('CREATE #',b,', type=',c);a.C.set(b,olympe.host.$c.create(c,b,a.Y,a.R))}function lc(a,b,c,...d){const e=a.C.get(b);if(void 0!==e){a.Y.R()<=olympe.rb.Se.C.ap&&a.Y.debug('CALL #'+b+', '+c+'('+Array.prototype.slice.call(d,0)+')');b=[];for(const f of d)if(void 0===f||null===f)b.push(f);else if(olympe.j.mc(f))b.push(a.C.get(f.aL)||null);else if('function'===typeof f){const g=f,k=olympe.j.ib();b.push((...l)=>{k.Dc()||g(...l)})}else b.push(f.valueOf());e[c].apply(e,b)}}
|
|
361
|
-
function mc(a,b,c){++a.O;const d=a.O;kc(a,d,c);const e=olympe.j.createNode(b,void 0,void 0,void 0,void 0,'Native('+d+')',!1,function(){var f=arguments.length-2;const g=Array.from({length:f}),k=[],l=arguments[f+1],m=d+'_'+l;this.F.has(m)&&this.F.get(m).destroy();for(let n=0;n<f;n++){let p=arguments[n];olympe.j.mc(p)?(k.push(n),p=p.
|
|
362
|
-
d+').'+l),this.F.set(m,f),f.onDestroy(()=>this.F.delete(m)));return null}.bind(a));e.Vd(a.T.bind(a,d));a=nb(e);a.aL=d;lb(e,a);return a}olympe.host.kb=class{constructor(a,b){this.Y=a;this.R=b;this.O=0;this.C=new Map;this.F=new Map;a.debug('Starting host manager')}Eb(){return this.Y}T(a){this.Y.debug('DESTROY #',a);const b=this.C.get(a);this.C.delete(a);b.destroy()}};function R(a,b){return a.oC.run(b)}function nc(a,b){return a.oC.md(b)}olympe.host.Si=class{constructor(a){this.bD=a;this.oC=olympe.j.ib()}HC(){return this.bD}rg(){return this.bD.
|
|
361
|
+
function mc(a,b,c){++a.O;const d=a.O;kc(a,d,c);const e=olympe.j.createNode(b,void 0,void 0,void 0,void 0,'Native('+d+')',!1,function(){var f=arguments.length-2;const g=Array.from({length:f}),k=[],l=arguments[f+1],m=d+'_'+l;this.F.has(m)&&this.F.get(m).destroy();for(let n=0;n<f;n++){let p=arguments[n];olympe.j.mc(p)?(k.push(n),p=p.Zb):olympe.j.Gm(p)&&k.push(n);g[n]=p}0===k.length?e.run(()=>{lc(this,d,l,...g)}):(f=olympe.j.createNode(void 0,(...n)=>{e.run(()=>{lc(this,d,l,...n)})},void 0,g,k,'Native('+
|
|
362
|
+
d+').'+l),this.F.set(m,f),f.onDestroy(()=>this.F.delete(m)));return null}.bind(a));e.Vd(a.T.bind(a,d));a=nb(e);a.aL=d;lb(e,a);return a}olympe.host.kb=class{constructor(a,b){this.Y=a;this.R=b;this.O=0;this.C=new Map;this.F=new Map;a.debug('Starting host manager')}Eb(){return this.Y}T(a){this.Y.debug('DESTROY #',a);const b=this.C.get(a);this.C.delete(a);b.destroy()}};function R(a,b){return a.oC.run(b)}function nc(a,b){return a.oC.md(b)}olympe.host.Si=class{constructor(a){this.bD=a;this.oC=olympe.j.ib()}HC(){return this.bD}rg(){return this.bD.Zb.rg()||this.oC.rg()}Dc(){return this.bD.Zb.Dc()}};olympe.host.Si.prototype.HC.K=new olympe.j.J(()=>olympe.host.qa.Si,[]);olympe.host.My=class{C(){}Bl(){}};olympe.host.tp=class{constructor(){}T(){}C(){}F(){}ql(){}};function oc(a,b){const c=new Map(a.map(d=>[d.Sa(),d]));b.forEach(d=>c.set(d.Sa(),d));return Array.from(c.values())}function pc(a){a=a.filter(b=>!b.pl()).map(b=>b.Sa()+'='+b.getValue()).join('&');return''===a?'':'#'+a}function qc(a){return(a=a.find(b=>'authToken'===b.Sa()))?a.getValue():null}
|
|
363
363
|
olympe.host.tp.F=class{constructor(a,b,c=!1){this.name=a;this.value=b;this.hidden=c}Sa(){return this.name}getValue(){return this.value}pl(){return this.hidden}Lc(a){return this.Sa()===a.Sa()&&this.getValue()===a.getValue()&&this.pl()===a.pl()}};function rc(a){const b=a.parameters;return new olympe.host.tp.C(a.internalIndex,a.externalIndex,b?b.map(c=>new olympe.host.tp.F(c.name,c.value,c.hidden)):[])}
|
|
364
364
|
function sc(a,b){a=a.parameters;if(a.length!==b.length)return!1;const c=new Map(a.map(d=>[d.Sa(),d]));return!b.some(d=>c.has(d.Sa())?!d.Lc(c.get(d.Sa())):!0)}olympe.host.tp.C=class{constructor(a,b,c){this.F=a;this.C=b;this.parameters=c}Oz(a){const b=new Map(this.parameters.map((c,d)=>[c.Sa(),d]));a.parameters.forEach(c=>{b.has(c.Sa())?this.parameters[b.get(c.Sa())]=c:this.parameters.push(c)})}};function tc(a,b){var c=olympe.host.vl;const d=olympe.oa.De(),e=new olympe.j.Od('onTimeout context');c.C.ga(b,d,()=>{e.Dc()||e.rg()||e.run(a);c.C.O(d)});return new olympe.host.oh.O(c.C,d)}function uc(a){var b=olympe.host.vl;a=a instanceof olympe.host.oh.O?a.xa():a;b.C.O(a)}function vc(a,b){var c=olympe.host.vl;const d=olympe.oa.De(),e=new olympe.j.Od('onInterval context');c.C.V(b,d,()=>{e.Dc()||e.rg()?c.C.F(d):e.run(a)});return new olympe.host.oh.F(c.C,d)}
|
|
365
365
|
function wc(a){var b=olympe.host.vl;a=a instanceof olympe.host.oh.F?a.xa():a;b.C.F(a)}olympe.host.oh=class{constructor(a){this.C=mc(a,olympe.host.qa.oh,olympe.host.qa.nb.vK)}};olympe.host.oh.C=class{constructor(a,b){this.vl=a;this.id=b}xa(){return this.id}cancel(){}};olympe.host.oh.R=class extends olympe.host.oh.C{cancel(){this.vl.T(this.id)}};olympe.host.oh.O=class extends olympe.host.oh.C{cancel(){this.vl.O(this.id)}};olympe.host.oh.F=class extends olympe.host.oh.C{cancel(){this.vl.F(this.id)}};olympe.host.qa={};olympe.host.qa.Si=class{destroy(){}};olympe.host.qa.Si.prototype.destroy=olympe.host.qa.Si.prototype.destroy;olympe.host.qa.nb={oE:100,KO:101,$X:102,qE:103,pE:104,ZX:105,LJ:201,Gy:202,AS:204,e_:205,JJ:206,KJ:207,MJ:208,NJ:209,OJ:210,PJ:211,NB:212,d_:218,c_:219,QJ:220,IJ:221,HJ:222,o_:300,p_:301,q_:302,bK:303,u_:304,v_:305,r_:310,s_:311,t_:312,FZ:400,GZ:401,HZ:402,zZ:450,CI:500,AI:501,EI:502,DI:503,BI:504,wR:505,O_:600,F_:601,J_:602,B_:603,C_:604,z_:605,E_:606,U_:607,M_:608,w_:609,A_:610,D_:611,L_:612,Q_:613,x_:614,P_:615,K_:616,T_:617,G_:618,H_:619,I_:620,N_:630,y_:631,R_:632,S_:633,TK:700,wK:701,xK:702,
|
|
@@ -397,9 +397,9 @@ this.Y.error('Was not able to send the auth keep alive message:',a.message)})}Ib
|
|
|
397
397
|
olympe.Aa.kb.C={INIT:'init',ep:'disconnected',Xq:'guest',ys:'authenticating',bg:'error',Uo:'authenticated'};olympe.Aa.kb.O={Vf:'manual',Nq:'auto',Oy:'tokenOnFirstConnection'};olympe.Aa.kb.F={Cx:'accepted',eG:'redirect'};olympe.Aa.wv=class{Sa(){}Dh(){}};olympe.Aa.Request=class{constructor(){this.attributes=new Map}set(a,b){olympe.j.ab([b],c=>{this.attributes.set(a.toLocaleLowerCase(),c.toString())})}get(a){(a=this.attributes.get(a.toLowerCase()))&&a.Zg&&(a=G(a));return a?a.valueOf():a}gj(){return this.get('username')}gA(a){this.set('password',a)}no(){return this.get('nonce')}toString(){return this.gj()+(this.no()?' with nonce':'')+(this.get('password')?' with password':'')}};olympe.Aa.Un=class{constructor(a,b,c,d={}){this.O=a;this.Ax=b;this.nonce=c;this.F=d}gj(){return this.O}fq(){return this.Ax}no(){return this.nonce}jy(){return this.F}Jt(){return null}Ya(){var a=olympe.oa,b=a.lL;var c=JSON.stringify({user:this.O,userTag:this.Ax,nonce:this.nonce,payload:this.F});c=olympe.oa.nk().C(La(c));return b.call(a,c)}};h=olympe.Aa.Un.prototype;h.gj.K=new olympe.j.J(()=>String,[]);h.fq.K=new olympe.j.J(()=>String,[]);h.no.K=new olympe.j.J(()=>String,[]);
|
|
398
398
|
h.jy.K=new olympe.j.J(()=>Object,[]);h.Jt.K=new olympe.j.J(()=>String,[]);h.Ya.K=new olympe.j.J(()=>String,[]);olympe.Aa.BB=class extends olympe.Aa.Un{constructor(a,b,c,d){super(a,b,c,d)}Jt(){return this.jy().access_token||null}};olympe.Aa.BJ=class extends olympe.Aa.Un{constructor(a,b,c,d){super(a,b,c,d);this.C=null}Jt(){return this.C}Ya(){var a=olympe.oa.nk(),b={user:this.gj(),userTag:this.fq(),nonce:this.no(),payload:this.jy(),fullToken:this.C},c=olympe.oa,d=c.lL;b=JSON.stringify(b);a=a.C(La(b));return d.call(c,a)}};function Uc(a,b,c){const d=a.C.C('AUTH');d.set(a.key,'string'===typeof b?b:b.Ya(),e=>{d.close();c&&c(e)})}function Zc(a){const b=a.C.C('AUTH');b.remove(a.key,()=>b.close())}
|
|
399
399
|
olympe.Aa.RB=class{constructor(a,b,c){this.C=a;this.Y=b;this.key='OlympeToken-'+c.C}Dh(a){const b=this.C.C('AUTH');this.Y.debug(`olympe.auth.TokenStorage: retrieve token with key ${this.key}`);b.get(this.key,c=>{let d=null;if(c)try{this.Y.debug('olympe.auth.TokenStorage: Token retrieved successfully');{var e=JSON,f=e.parse;var g=Ma(olympe.oa.nk().O(olympe.oa.FT(c)));const k=f.call(e,g);if(k.fullToken){const l=new olympe.Aa.BJ(k.user,k.userTag,k.nonce,k.payload);l.C=k.fullToken;d=l}else d=k.payload&&
|
|
400
|
-
k.payload.id_token?new olympe.Aa.BB(k.user,k.userTag,k.nonce,k.payload):new olympe.Aa.Un(k.user,k.userTag,k.nonce,k.payload)}}catch(k){this.Y.error('Error while unserializing token: ',k.message)}else this.Y.debug('olympe.auth.TokenStorage: No token found');b.close();a(d)})}};olympe.Aa.RB.F='OlympeToken';olympe.Aa.RB.C='AUTH';olympe.Aa.et=class{redirect(){}F(){}C(){}};olympe.Aa.et.C={GET:'GET',vv:'POST'};olympe.Aa.vA=class{constructor(a){this.C=a||'default'}};olympe.Aa.ud={};olympe.Aa.ud.Df={};olympe.Aa.ud.Df.yp=class{V(){}};olympe.Aa.ud.Df.kk=class{$(){}};olympe.Aa.ud.Df.Yi=class{ka(){}ta(){}};function fd(a,b){return olympe.oa.yd(b+'-olympe-'+a.C[b])}olympe.Aa.ud.Ys=class{constructor(a){this.C=a}Sa(){return olympe.Aa.ud.Ys.
|
|
401
|
-
k.M1)}catch(g){b(g);return}this.Y.debug('Sending SRP A+M (proof) message');this.C.ta(a,b)}})}};olympe.Aa.ud.Yi.
|
|
402
|
-
olympe.ma.Be(function(a){C(a,olympe.Aa.za.JA,olympe.Aa.ud.Yi.
|
|
400
|
+
k.payload.id_token?new olympe.Aa.BB(k.user,k.userTag,k.nonce,k.payload):new olympe.Aa.Un(k.user,k.userTag,k.nonce,k.payload)}}catch(k){this.Y.error('Error while unserializing token: ',k.message)}else this.Y.debug('olympe.auth.TokenStorage: No token found');b.close();a(d)})}};olympe.Aa.RB.F='OlympeToken';olympe.Aa.RB.C='AUTH';olympe.Aa.et=class{redirect(){}F(){}C(){}};olympe.Aa.et.C={GET:'GET',vv:'POST'};olympe.Aa.vA=class{constructor(a){this.C=a||'default'}};olympe.Aa.ud={};olympe.Aa.ud.Df={};olympe.Aa.ud.Df.yp=class{V(){}};olympe.Aa.ud.Df.kk=class{$(){}};olympe.Aa.ud.Df.Yi=class{ka(){}ta(){}};function fd(a,b){return olympe.oa.yd(b+'-olympe-'+a.C[b])}olympe.Aa.ud.Ys=class{constructor(a){this.C=a}Sa(){return olympe.Aa.ud.Ys.Yb}Dh(a,b){const c=a.gj();if(c){const d=a.get('password'),e=a.no();a.attributes.delete('password');if(void 0!==e&&fd(this,c)===e){b(null,new olympe.Aa.Un(c,'',fd(this,c)));return}a=olympe.oa.yd(d||'');if(this.C[c]===a){b(null,new olympe.Aa.Un(c,'',fd(this,c)));return}}b(Error('Invalid login'))}};olympe.Aa.ud.Ys.Yb='local';olympe.Aa.ud.Ys.ua=[olympe.Aa.wv];olympe.Aa.ud.yp=class{constructor(a,b){this.C=a;this.storage=b}Sa(){return olympe.Aa.ud.yp.Yb}Dh(a,b){this.storage.Dh(c=>{this.C.V(a,(d,e)=>{b(d,e||c)})})}};olympe.Aa.ud.yp.Yb='localToken';olympe.Aa.ud.yp.ua=[olympe.Aa.wv];olympe.Aa.ud.tv=class{constructor(a,b){this.C=a;this.F=b}Sa(){return olympe.Aa.ud.tv.Yb}Dh(){this.C.redirect(`${this.F}/auth?url=${this.C.C()}`,null,olympe.Aa.et.C.GET)}};olympe.Aa.ud.tv.Yb='openID';olympe.Aa.ud.tv.ua=[olympe.Aa.wv];olympe.Aa.ud.kk=class{constructor(a,b){this.F=a;this.C=b}Sa(){return olympe.Aa.ud.kk.Yb}Dh(a,b){this.F.$((c,d,e,f)=>{c?b(c):this.C.F(d,e,f)})}};olympe.Aa.ud.kk.Yb='saml';olympe.Aa.ud.kk.ua=[olympe.Aa.wv];olympe.Aa.ud.Yi=class{static bw(a,b){const c=new SRPClient,d=c.generateRandomSalt();return{username:a,login:a,salt:d,verifier:c.generateVerifier(d,a,b)}}constructor(a){this.C=a;this.Y=olympe.rb.Eb('auth')}Sa(){return olympe.Aa.ud.Yi.Yb}Dh(a,b){const c=a.get('password');a.attributes.delete('password');this.Y.debug('Sending SRP request');this.C.ka(a,(d,e,f)=>{this.Y.debug('Received Salt+B message');if(d)b(d);else{try{const g=new SRPClient;g.step1(a.gj(),c);const k=g.step2(e,f);a.set('a',k.A);a.set('m1',
|
|
401
|
+
k.M1)}catch(g){b(g);return}this.Y.debug('Sending SRP A+M (proof) message');this.C.ta(a,b)}})}};olympe.Aa.ud.Yi.Yb='srp';olympe.Aa.ud.Yi.ua=[olympe.Aa.wv];olympe.Aa.da={sb:'auth.Manager',Ob:'auth.Logger',Av:'auth.Storage',Dx:'auth.appNameToken',By:'auth.Redirector'};olympe.Aa.li={sb:'auth.ManagerConnector',sI:'auth.LocalTokenConnector',Yi:'auth.SRPConnector',kk:'auth.SAMLConnector'};olympe.Aa.za={JA:'auth.defaultProvider',tI:'auth.localTokenProvider',cE:'auth.autoLogin',gE:'auth.autoUser',dE:'auth.autoPassword',Oy:'auth.token',aE:'auth.appToken'};
|
|
402
|
+
olympe.ma.Be(function(a){C(a,olympe.Aa.za.JA,olympe.Aa.ud.Yi.Yb);C(a,olympe.Aa.za.tI,olympe.Aa.ud.yp.Yb);C(a,olympe.Aa.za.cE,!1);C(a,olympe.Aa.za.gE,'');C(a,olympe.Aa.za.dE,'');C(a,olympe.Aa.za.Oy,'');C(a,olympe.Aa.za.aE,'default');A(a,olympe.Aa.da.Ob,[olympe.rb.da.sb],b=>b.Mg('auth'));z(a,olympe.Aa.da.Dx,olympe.Aa.vA,new olympe.ma.Ta(olympe.Aa.za.aE));z(a,olympe.Aa.da.Av,olympe.Aa.RB,olympe.Ee.da.oy,olympe.Aa.da.Ob,olympe.Aa.da.Dx);wa(a,olympe.Aa.li.sb);wa(a,olympe.Aa.da.By);A(a,olympe.Aa.da.sb,
|
|
403
403
|
[olympe.Aa.da.Ob,olympe.Aa.li.sb,olympe.host.da.VA,new olympe.ma.te(olympe.Aa.da.Av,olympe.ma.Bn.C.at),new olympe.ma.Ta(olympe.Aa.za.JA),new olympe.ma.Ta(olympe.Aa.za.tI),new olympe.ma.Ta(olympe.Aa.za.cE),new olympe.ma.Ta(olympe.Aa.za.gE),new olympe.ma.Ta(olympe.Aa.za.dE),new olympe.ma.Ta(olympe.Aa.za.Oy),new olympe.ma.te(olympe.Aa.da.By,olympe.ma.Bn.C.at),new olympe.ma.te(olympe.Aa.li.sI,olympe.ma.Bn.C.at),new olympe.ma.te(olympe.Aa.li.Yi,olympe.ma.Bn.C.at),new olympe.ma.te(olympe.Aa.li.kk,olympe.ma.Bn.C.at)],
|
|
404
404
|
(b,c,d,e,f,g,k,l,m,n,p,r,t,u)=>{const w=[];r&&w.push(new olympe.Aa.ud.yp(r,e));t&&w.push(new olympe.Aa.ud.Yi(t));u&&p&&w.push(new olympe.Aa.ud.kk(u,p));p&&c&&w.push(new olympe.Aa.ud.tv(p,c.yM()));if(0===w.length)throw Error('At least one provider is needed for auth to start');if(!w.map(v=>v.Sa()).includes(f))throw Error('Default provider name'+f+'given by parameter'+olympe.Aa.za.JA+'cannot be found');return new olympe.Aa.kb(b,c,e,p,d.ql()?d:null,w,f,g,k,l,m,n)},!0)},'olympe.auth');
|
|
405
405
|
olympe.ma.run([olympe.Aa.da.sb],a=>{olympe.Aa.Bg=()=>a});olympe.G.H.Aa={};olympe.G.H.Aa.XF=class{redirect(a,b=null,c=olympe.Aa.et.C.vv){let d='';if(b)for(let e in b)Object.prototype.hasOwnProperty.call(b,e)&&(d+=`<input type="hidden" name="${e}" value="${b[e]}"/>`);d=''===d&&'GET'===c.toUpperCase()?`<script>window.location.href='${a}'</script>`:`<form method="${c}" action="${a}" id="redirectorForm">`+d+"</form><script>document.getElementById('redirectorForm').submit()\x3c/script>";document.write('<!DOCTYPE html>\n<html><head><title>Please wait...</title></head>\n<body>'+
|
|
@@ -414,18 +414,18 @@ olympe.N.D.Element.prototype.setHidden=olympe.N.D.Element.prototype.qd;olympe.N.
|
|
|
414
414
|
olympe.N.D.vb.prototype.setScaleFactorXY=olympe.N.D.vb.prototype.CD;olympe.N.D.vb.prototype.setScaleFactor=olympe.N.D.vb.prototype.xu;olympe.N.D.vb.prototype.setRotationAngle=olympe.N.D.vb.prototype.Jq;olympe.N.D.vb.prototype.setHeight=olympe.N.D.vb.prototype.ug;olympe.N.D.vb.prototype.setWidth=olympe.N.D.vb.prototype.vg;olympe.N.D.vb.prototype.setZIndex=olympe.N.D.vb.prototype.Tg;olympe.N.D.vb.prototype.setXY=olympe.N.D.vb.prototype.MD;olympe.N.D.vb.prototype.setY=olympe.N.D.vb.prototype.Ge;
|
|
415
415
|
olympe.N.D.vb.prototype.setX=olympe.N.D.vb.prototype.oe;olympe.Zh(olympe.N.D.vb,olympe.N.D.Element);olympe.N.D.Nf=class extends olympe.N.D.Element{appendChild(){}removeChild(){}ig(){}gi(){}Tz(){}XD(){}O(){}R(){}Iv(){}Xw(){}};olympe.N.D.Nf.prototype.unregisterScreenOrientation=olympe.N.D.Nf.prototype.XD;olympe.N.D.Nf.prototype.registerScreenOrientation=olympe.N.D.Nf.prototype.Tz;olympe.N.D.Nf.prototype.setTitle=olympe.N.D.Nf.prototype.gi;olympe.N.D.Nf.prototype.removeAllChildren=olympe.N.D.Nf.prototype.ig;olympe.N.D.Nf.prototype.removeChild=olympe.N.D.Nf.prototype.removeChild;
|
|
416
416
|
olympe.N.D.Nf.prototype.appendChild=olympe.N.D.Nf.prototype.appendChild;olympe.Zh(olympe.N.D.Nf,olympe.N.D.Element,olympe.N.Z.og,olympe.N.Z.ZA);olympe.N.D.Je=class extends olympe.N.D.vb{rt(){}ju(){}Gf(){}ns(){}wt(){}us(){}Pw(){}Sz(){}};olympe.N.D.Je.prototype.registerLoadEnd=olympe.N.D.Je.prototype.Sz;olympe.N.D.Je.prototype.setClickEnabled=olympe.N.D.Je.prototype.Pw;olympe.N.D.Je.prototype.showFileSelector=olympe.N.D.Je.prototype.us;olympe.N.D.Je.prototype.clearFiles=olympe.N.D.Je.prototype.wt;olympe.N.D.Je.prototype.setMultiple=olympe.N.D.Je.prototype.ns;olympe.N.D.Je.prototype.setDisabled=olympe.N.D.Je.prototype.Gf;
|
|
417
|
-
olympe.N.D.Je.prototype.setBackgroundText=olympe.N.D.Je.prototype.ju;olympe.N.D.Je.prototype.addAcceptedMimeType=olympe.N.D.Je.prototype.rt;olympe.Zh(olympe.N.D.Je,olympe.N.D.vb);olympe.N.D.gb=class extends olympe.N.D.vb{Rb(){}yb(){}zb(){}Qd(){}Db(){}ob(){}Vj(){}xl(){}
|
|
417
|
+
olympe.N.D.Je.prototype.setBackgroundText=olympe.N.D.Je.prototype.ju;olympe.N.D.Je.prototype.addAcceptedMimeType=olympe.N.D.Je.prototype.rt;olympe.Zh(olympe.N.D.Je,olympe.N.D.vb);olympe.N.D.gb=class extends olympe.N.D.vb{Rb(){}yb(){}zb(){}Qd(){}Db(){}ob(){}Vj(){}xl(){}$b(){}bc(){}fi(){}Du(){}zl(){}be(){}Xd(){}Ec(){}Ic(){}sd(){}rd(){}Lo(){}Mq(){}};olympe.N.D.gb.prototype.unregisterTextSize=olympe.N.D.gb.prototype.Mq;olympe.N.D.gb.prototype.registerTextSize=olympe.N.D.gb.prototype.Lo;olympe.N.D.gb.prototype.setPaddingBottom=olympe.N.D.gb.prototype.rd;olympe.N.D.gb.prototype.setPaddingTop=olympe.N.D.gb.prototype.sd;olympe.N.D.gb.prototype.setPaddingRight=olympe.N.D.gb.prototype.Ic;
|
|
418
418
|
olympe.N.D.gb.prototype.setPaddingLeft=olympe.N.D.gb.prototype.Ec;olympe.N.D.gb.prototype.setAutoHeight=olympe.N.D.gb.prototype.Xd;olympe.N.D.gb.prototype.setAutoWidth=olympe.N.D.gb.prototype.be;olympe.N.D.gb.prototype.setSelectable=olympe.N.D.gb.prototype.zl;olympe.N.D.gb.prototype.setWhiteSpaceWrap=olympe.N.D.gb.prototype.Du;olympe.N.D.gb.prototype.setTextOverflow=olympe.N.D.gb.prototype.fi;olympe.N.D.gb.prototype.setTextVerticalAlign=olympe.N.D.gb.prototype.bc;
|
|
419
|
-
olympe.N.D.gb.prototype.setTextHorizontalAlign=olympe.N.D.gb.prototype
|
|
419
|
+
olympe.N.D.gb.prototype.setTextHorizontalAlign=olympe.N.D.gb.prototype.$b;olympe.N.D.gb.prototype.setRGBATextColor=olympe.N.D.gb.prototype.xl;olympe.N.D.gb.prototype.setLineHeight=olympe.N.D.gb.prototype.Vj;olympe.N.D.gb.prototype.setTextColor=olympe.N.D.gb.prototype.ob;olympe.N.D.gb.prototype.setFontWeight=olympe.N.D.gb.prototype.Db;olympe.N.D.gb.prototype.setFontStyle=olympe.N.D.gb.prototype.Qd;olympe.N.D.gb.prototype.setFontSize=olympe.N.D.gb.prototype.zb;
|
|
420
420
|
olympe.N.D.gb.prototype.setFontFamily=olympe.N.D.gb.prototype.yb;olympe.N.D.gb.prototype.setText=olympe.N.D.gb.prototype.Rb;olympe.Zh(olympe.N.D.gb,olympe.N.D.vb);olympe.N.D.ee=class extends olympe.N.D.vb{appendChild(){}removeChild(){}ig(){}Op(){}};olympe.N.D.ee.prototype.authorizeOverflow=olympe.N.D.ee.prototype.Op;olympe.N.D.ee.prototype.removeAllChildren=olympe.N.D.ee.prototype.ig;olympe.N.D.ee.prototype.removeChild=olympe.N.D.ee.prototype.removeChild;olympe.N.D.ee.prototype.appendChild=olympe.N.D.ee.prototype.appendChild;olympe.Zh(olympe.N.D.ee,olympe.N.D.vb);olympe.N.D.qe=class extends olympe.N.D.vb{dA(){}setAttribute(){}ku(){}mu(){}lu(){}yb(){}zb(){}Qd(){}Db(){}ob(){}Hf(){}Vz(){}hD(){}};olympe.N.D.qe.prototype.registerParentHandler=olympe.N.D.qe.prototype.hD;olympe.N.D.qe.prototype.registerSizeCallback=olympe.N.D.qe.prototype.Vz;olympe.N.D.qe.prototype.setPadding=olympe.N.D.qe.prototype.Hf;olympe.N.D.qe.prototype.setTextColor=olympe.N.D.qe.prototype.ob;olympe.N.D.qe.prototype.setFontWeight=olympe.N.D.qe.prototype.Db;
|
|
421
421
|
olympe.N.D.qe.prototype.setFontStyle=olympe.N.D.qe.prototype.Qd;olympe.N.D.qe.prototype.setFontSize=olympe.N.D.qe.prototype.zb;olympe.N.D.qe.prototype.setFontFamily=olympe.N.D.qe.prototype.yb;olympe.N.D.qe.prototype.setCSSLink=olympe.N.D.qe.prototype.lu;olympe.N.D.qe.prototype.setClass=olympe.N.D.qe.prototype.mu;olympe.N.D.qe.prototype.setCSS=olympe.N.D.qe.prototype.ku;olympe.N.D.qe.prototype.setAttribute=olympe.N.D.qe.prototype.setAttribute;olympe.N.D.qe.prototype.setHTML=olympe.N.D.qe.prototype.dA;
|
|
422
422
|
olympe.Zh(olympe.N.D.qe,olympe.N.D.vb);olympe.N.D.Bd=class extends olympe.N.D.vb{ps(){}yu(){}zu(){}hA(){}iA(){}Uz(){}qA(){}le(){}vt(){}kD(){}rA(){}jD(){}pA(){}};olympe.N.D.Bd.prototype.unregisterScrollEnd=olympe.N.D.Bd.prototype.pA;olympe.N.D.Bd.prototype.registerScrollEnd=olympe.N.D.Bd.prototype.jD;olympe.N.D.Bd.prototype.unregisterScrollStart=olympe.N.D.Bd.prototype.rA;olympe.N.D.Bd.prototype.registerScrollStart=olympe.N.D.Bd.prototype.kD;olympe.N.D.Bd.prototype.clearContent=olympe.N.D.Bd.prototype.vt;
|
|
423
423
|
olympe.N.D.Bd.prototype.setContent=olympe.N.D.Bd.prototype.le;olympe.N.D.Bd.prototype.unregisterScrollOffset=olympe.N.D.Bd.prototype.qA;olympe.N.D.Bd.prototype.registerScrollOffset=olympe.N.D.Bd.prototype.Uz;olympe.N.D.Bd.prototype.setScrollOffsetY=olympe.N.D.Bd.prototype.iA;olympe.N.D.Bd.prototype.setScrollOffsetX=olympe.N.D.Bd.prototype.hA;olympe.N.D.Bd.prototype.setScrollbarVisible=olympe.N.D.Bd.prototype.zu;olympe.N.D.Bd.prototype.setScrollY=olympe.N.D.Bd.prototype.yu;
|
|
424
|
-
olympe.N.D.Bd.prototype.setScrollX=olympe.N.D.Bd.prototype.ps;olympe.Zh(olympe.N.D.Bd,olympe.N.D.vb);olympe.N.D.Pc=class extends olympe.N.D.vb{Gf(){}yb(){}zb(){}Qd(){}Db(){}ob(){}Gg(){}Sg(){}xl(){}Bf(){}getValue(){}
|
|
425
|
-
olympe.N.D.Pc.prototype.setTextVerticalAlign=olympe.N.D.Pc.prototype.bc;olympe.N.D.Pc.prototype.setTextHorizontalAlign=olympe.N.D.Pc.prototype
|
|
426
|
-
olympe.N.D.Pc.prototype.setTextColor=olympe.N.D.Pc.prototype.ob;olympe.N.D.Pc.prototype.setFontWeight=olympe.N.D.Pc.prototype.Db;olympe.N.D.Pc.prototype.setFontStyle=olympe.N.D.Pc.prototype.Qd;olympe.N.D.Pc.prototype.setFontSize=olympe.N.D.Pc.prototype.zb;olympe.N.D.Pc.prototype.setFontFamily=olympe.N.D.Pc.prototype.yb;olympe.N.D.Pc.prototype.setDisabled=olympe.N.D.Pc.prototype.Gf;olympe.Zh(olympe.N.D.Pc,olympe.N.D.vb,olympe.N.Z.og,olympe.N.Z.ZA,olympe.N.Z.cr,olympe.N.Z.aG);olympe.N.D.Ub=class extends olympe.N.D.vb{Gf(){}yb(){}zb(){}Qd(){}Db(){}ob(){}xl(){}gu(){}Bf(){}getValue(){}
|
|
424
|
+
olympe.N.D.Bd.prototype.setScrollX=olympe.N.D.Bd.prototype.ps;olympe.Zh(olympe.N.D.Bd,olympe.N.D.vb);olympe.N.D.Pc=class extends olympe.N.D.vb{Gf(){}yb(){}zb(){}Qd(){}Db(){}ob(){}Gg(){}Sg(){}xl(){}Bf(){}getValue(){}$b(){}bc(){}Ec(){}Ic(){}sd(){}rd(){}iu(){}};olympe.N.D.Pc.prototype.setAutoResize=olympe.N.D.Pc.prototype.iu;olympe.N.D.Pc.prototype.setPaddingBottom=olympe.N.D.Pc.prototype.rd;olympe.N.D.Pc.prototype.setPaddingTop=olympe.N.D.Pc.prototype.sd;olympe.N.D.Pc.prototype.setPaddingRight=olympe.N.D.Pc.prototype.Ic;olympe.N.D.Pc.prototype.setPaddingLeft=olympe.N.D.Pc.prototype.Ec;
|
|
425
|
+
olympe.N.D.Pc.prototype.setTextVerticalAlign=olympe.N.D.Pc.prototype.bc;olympe.N.D.Pc.prototype.setTextHorizontalAlign=olympe.N.D.Pc.prototype.$b;olympe.N.D.Pc.prototype.getValue=olympe.N.D.Pc.prototype.getValue;olympe.N.D.Pc.prototype.setValue=olympe.N.D.Pc.prototype.Bf;olympe.N.D.Pc.prototype.setRGBATextColor=olympe.N.D.Pc.prototype.xl;olympe.N.D.Pc.prototype.setPlaceholderColor=olympe.N.D.Pc.prototype.Sg;olympe.N.D.Pc.prototype.setPlaceholder=olympe.N.D.Pc.prototype.Gg;
|
|
426
|
+
olympe.N.D.Pc.prototype.setTextColor=olympe.N.D.Pc.prototype.ob;olympe.N.D.Pc.prototype.setFontWeight=olympe.N.D.Pc.prototype.Db;olympe.N.D.Pc.prototype.setFontStyle=olympe.N.D.Pc.prototype.Qd;olympe.N.D.Pc.prototype.setFontSize=olympe.N.D.Pc.prototype.zb;olympe.N.D.Pc.prototype.setFontFamily=olympe.N.D.Pc.prototype.yb;olympe.N.D.Pc.prototype.setDisabled=olympe.N.D.Pc.prototype.Gf;olympe.Zh(olympe.N.D.Pc,olympe.N.D.vb,olympe.N.Z.og,olympe.N.Z.ZA,olympe.N.Z.cr,olympe.N.Z.aG);olympe.N.D.Ub=class extends olympe.N.D.vb{Gf(){}yb(){}zb(){}Qd(){}Db(){}ob(){}xl(){}gu(){}Bf(){}getValue(){}$b(){}bc(){}fi(){}Ec(){}Ic(){}sd(){}rd(){}fn(){}uu(){}ru(){}Au(){}Gg(){}Sg(){}hu(){}Oo(){}};olympe.N.D.Ub.prototype.setAutoComplete=olympe.N.D.Ub.prototype.Oo;olympe.N.D.Ub.prototype.setAutoCapitalization=olympe.N.D.Ub.prototype.hu;olympe.N.D.Ub.prototype.setPlaceholderColor=olympe.N.D.Ub.prototype.Sg;olympe.N.D.Ub.prototype.setPlaceholder=olympe.N.D.Ub.prototype.Gg;
|
|
427
427
|
olympe.N.D.Ub.prototype.setStep=olympe.N.D.Ub.prototype.Au;olympe.N.D.Ub.prototype.setMax=olympe.N.D.Ub.prototype.ru;olympe.N.D.Ub.prototype.setMin=olympe.N.D.Ub.prototype.uu;olympe.N.D.Ub.prototype.setType=olympe.N.D.Ub.prototype.fn;olympe.N.D.Ub.prototype.setPaddingBottom=olympe.N.D.Ub.prototype.rd;olympe.N.D.Ub.prototype.setPaddingTop=olympe.N.D.Ub.prototype.sd;olympe.N.D.Ub.prototype.setPaddingRight=olympe.N.D.Ub.prototype.Ic;olympe.N.D.Ub.prototype.setPaddingLeft=olympe.N.D.Ub.prototype.Ec;
|
|
428
|
-
olympe.N.D.Ub.prototype.setTextOverflow=olympe.N.D.Ub.prototype.fi;olympe.N.D.Ub.prototype.setTextVerticalAlign=olympe.N.D.Ub.prototype.bc;olympe.N.D.Ub.prototype.setTextHorizontalAlign=olympe.N.D.Ub.prototype
|
|
428
|
+
olympe.N.D.Ub.prototype.setTextOverflow=olympe.N.D.Ub.prototype.fi;olympe.N.D.Ub.prototype.setTextVerticalAlign=olympe.N.D.Ub.prototype.bc;olympe.N.D.Ub.prototype.setTextHorizontalAlign=olympe.N.D.Ub.prototype.$b;olympe.N.D.Ub.prototype.getValue=olympe.N.D.Ub.prototype.getValue;olympe.N.D.Ub.prototype.setValue=olympe.N.D.Ub.prototype.Bf;olympe.N.D.Ub.prototype.selectText=olympe.N.D.Ub.prototype.gu;olympe.N.D.Ub.prototype.setRGBATextColor=olympe.N.D.Ub.prototype.xl;
|
|
429
429
|
olympe.N.D.Ub.prototype.setTextColor=olympe.N.D.Ub.prototype.ob;olympe.N.D.Ub.prototype.setFontWeight=olympe.N.D.Ub.prototype.Db;olympe.N.D.Ub.prototype.setFontStyle=olympe.N.D.Ub.prototype.Qd;olympe.N.D.Ub.prototype.setFontSize=olympe.N.D.Ub.prototype.zb;olympe.N.D.Ub.prototype.setFontFamily=olympe.N.D.Ub.prototype.yb;olympe.N.D.Ub.prototype.setDisabled=olympe.N.D.Ub.prototype.Gf;olympe.Zh(olympe.N.D.Ub,olympe.N.D.vb,olympe.N.Z.og,olympe.N.Z.ZA,olympe.N.Z.cr,olympe.N.Z.aG);olympe.N.D.xd=class extends olympe.N.D.vb{ge(){}Ji(){}ei(){}rj(){}rw(){}Ii(){}hi(){}sj(){}Zj(){}play(){}pause(){}reload(){}Bo(){}Ao(){}vo(){}Eo(){}Co(){}uo(){}};olympe.N.D.xd.prototype.onDurationChange=olympe.N.D.xd.prototype.uo;olympe.N.D.xd.prototype.onTimeUpdate=olympe.N.D.xd.prototype.Co;olympe.N.D.xd.prototype.onVolumeChange=olympe.N.D.xd.prototype.Eo;olympe.N.D.xd.prototype.onEnded=olympe.N.D.xd.prototype.vo;olympe.N.D.xd.prototype.onPause=olympe.N.D.xd.prototype.Ao;
|
|
430
430
|
olympe.N.D.xd.prototype.onPlay=olympe.N.D.xd.prototype.Bo;olympe.N.D.xd.prototype.reload=olympe.N.D.xd.prototype.reload;olympe.N.D.xd.prototype.pause=olympe.N.D.xd.prototype.pause;olympe.N.D.xd.prototype.play=olympe.N.D.xd.prototype.play;olympe.N.D.xd.prototype.setTimeIndex=olympe.N.D.xd.prototype.Zj;olympe.N.D.xd.prototype.setVolume=olympe.N.D.xd.prototype.sj;olympe.N.D.xd.prototype.showControls=olympe.N.D.xd.prototype.hi;olympe.N.D.xd.prototype.setLoop=olympe.N.D.xd.prototype.Ii;
|
|
431
431
|
olympe.N.D.xd.prototype.getStreamDimension=olympe.N.D.xd.prototype.rw;olympe.N.D.xd.prototype.setSourceStream=olympe.N.D.xd.prototype.rj;olympe.N.D.xd.prototype.setAutoplay=olympe.N.D.xd.prototype.ei;olympe.N.D.xd.prototype.setMuted=olympe.N.D.xd.prototype.Ji;olympe.N.D.xd.prototype.setSource=olympe.N.D.xd.prototype.ge;olympe.Zh(olympe.N.D.xd,olympe.N.D.vb);olympe.N.D.Audio=class extends olympe.N.D.vb{ge(){}Ji(){}ei(){}rj(){}Ii(){}hi(){}sj(){}Zj(){}play(){}pause(){}reload(){}Bo(){}Ao(){}vo(){}Eo(){}Co(){}uo(){}};olympe.N.D.Audio.prototype.onDurationChange=olympe.N.D.Audio.prototype.uo;olympe.N.D.Audio.prototype.onTimeUpdate=olympe.N.D.Audio.prototype.Co;olympe.N.D.Audio.prototype.onVolumeChange=olympe.N.D.Audio.prototype.Eo;olympe.N.D.Audio.prototype.onEnded=olympe.N.D.Audio.prototype.vo;olympe.N.D.Audio.prototype.onPause=olympe.N.D.Audio.prototype.Ao;
|
|
@@ -467,14 +467,14 @@ function ld(a){const b=olympe.j.Ua,c=olympe.j.ia,d=olympe.j.qb(olympe.ui.Z.Pk);a
|
|
|
467
467
|
p&&v.Eg(p);t&&v.Sj(t);u&&v.Jm(u);r&&a.Eg(r);e(a.Qa,a.ta)},B=()=>{u&&v.Jm(u);p&&v.Eg(p);r&&a.Eg(r);r=p=u=void 0};u=v.tl(E=>{const D=b(E.qg().na()).Fa(k);E=b(E.qg().ra()).Fa(l);if(5<Math.abs(D.valueOf())||5<Math.abs(E.valueOf()))B(),d.update(new olympe.ui.Z.Pk(new c(m,n),new c(k,l),new c(olympe.j.aa.ZERO,olympe.j.aa.ZERO),olympe.j.cc.now())),e(a.Ka,a.ta),u=v.tl(x),p=v.Rg(y),t=v.Fi(y),r=a.Rg(y)});p=v.Rg(B);r=a.Rg(B)});a.Ak(f=>{var g=f.Pd().qg();const k=olympe.j.Ua(g.na()),l=olympe.j.Ua(g.ra()),m=new olympe.j.ia(k,
|
|
468
468
|
l);g=new olympe.j.ia(g.na().Fa(k),g.ra().Fa(l));olympe.j.th(g.na(),olympe.j.aa.ZERO);olympe.j.th(g.ra(),olympe.j.aa.ZERO);const n=new olympe.ui.Z.Pk(new olympe.j.ia(olympe.j.Ua(f.Pd().fj().na()),olympe.j.Ua(f.Pd().fj().ra())),m,g,olympe.j.pb(olympe.j.cc));d.update(n);f=()=>{const t=olympe.j.Ua(n.Xp());Gb(t.na());Gb(t.ra());Gb(n.qz());a.jj(p);a.so(r);e(a.Qa,n)};const p=a.zk(f),r=a.Om(f);e(a.Ka,n)})}
|
|
469
469
|
olympe.ui.Z.qv=class extends olympe.ui.Z.NA{constructor(a){super(a);this.Ka=this.Qa=this.ta=this.gd=this.od=this.ae=this.Af=this.Ea=this.Ha=this.La=this.Ib=this.touches=this.ga=this.Kc=this.ka=this.Xc=this.T=this.ec=this.R=this.vc=this.V=this.ic=this.$=this.Cc=this.O=this.Mb=this.F=this.Ab=this.C=this.Cb=null}Ia(a){const b=olympe.j.Mc,c=olympe.j.Ca;return R(this,()=>{const d=olympe.j.qb(olympe.ui.Z.MouseEvent);a(nc(this,(e,f,g,k,l=!1,m=!1,n=!1,p=!1,r=0,t=0)=>{e=new olympe.ui.Z.MouseEvent([e,f],[g,
|
|
470
|
-
k],b(l),b(m),b(n),b(p),c(r),c(t),olympe.j.cc.now());d.update(e)}));return d.Ba()})}Zc(a,b,c){null===this.Cb&&(this.Cb=this.Ia(d=>{this.pa().Qm(d)}));null===this.C&&(this.C=new olympe.ui.Z.ze,gd(this,this.Cb,this.C));return hd(this,a,b,c,this.C,this.Rj)}Rj(a){this.C&&(id(a,this.C),null===this.C.C&&(this.C=null,this.Cb&&(this.pa().
|
|
471
|
-
{this.pa().Rm(d)}));null===this.F&&(this.F=new olympe.ui.Z.ze,gd(this,this.Ab,this.F));return hd(this,a,b,c,this.F,this.lq)}lq(a){this.F&&(id(a,this.F),null===this.F.C&&(this.F=null,this.Ab&&(this.pa().
|
|
472
|
-
(id(a,this.O),null===this.O.C&&(this.O=null,this.Mb&&(this.pa().
|
|
473
|
-
this.tl(b=>{a.update(b)});return a.Ba()}wo(a,b,c){null===this.Kc&&(this.Kc=this.Ia(d=>{this.pa().Wm(d)}));null===this.ga&&(this.ga=new olympe.ui.Z.ze,gd(this,this.Kc,this.ga));return hd(this,a,b,c,this.ga,this.qq)}qq(a){this.ga&&(id(a,this.ga),null===this.ga.C&&(this.ga=null,this.Kc&&(this.pa().
|
|
474
|
-
(this.R=new olympe.ui.Z.ze,gd(this,this.vc,this.R));return hd(this,a,b,c,this.R,this.wk)}wk(a){this.R&&(id(a,this.R),null===this.R.C&&(this.R=null,this.vc&&(this.pa().
|
|
475
|
-
this.T.C&&(this.T=null,this.ec&&(this.pa().
|
|
476
|
-
gd(this,this.Xc,this.ka));return hd(this,a,b,c,this.ka,this.rq)}rq(a){this.ka&&(id(a,this.ka),null===this.ka.C&&(this.ka=null,this.Xc&&(this.pa().
|
|
477
|
-
(this.pa().
|
|
470
|
+
k],b(l),b(m),b(n),b(p),c(r),c(t),olympe.j.cc.now());d.update(e)}));return d.Ba()})}Zc(a,b,c){null===this.Cb&&(this.Cb=this.Ia(d=>{this.pa().Qm(d)}));null===this.C&&(this.C=new olympe.ui.Z.ze,gd(this,this.Cb,this.C));return hd(this,a,b,c,this.C,this.Rj)}Rj(a){this.C&&(id(a,this.C),null===this.C.C&&(this.C=null,this.Cb&&(this.pa().Zb.Dc()||this.pa().Cl(),this.Cb=null)))}eo(){const a=olympe.j.qb(olympe.ui.Z.MouseEvent);this.Zc(b=>{a.update(b)});return a.Ba()}Lm(a,b,c){null===this.Ab&&(this.Ab=this.Ia(d=>
|
|
471
|
+
{this.pa().Rm(d)}));null===this.F&&(this.F=new olympe.ui.Z.ze,gd(this,this.Ab,this.F));return hd(this,a,b,c,this.F,this.lq)}lq(a){this.F&&(id(a,this.F),null===this.F.C&&(this.F=null,this.Ab&&(this.pa().Zb.Dc()||this.pa().Dl(),this.Ab=null)))}om(){const a=olympe.j.qb(olympe.ui.Z.MouseEvent);this.Lm(b=>{a.update(b)});return a.Ba()}dh(a,b,c){null===this.Mb&&(this.Mb=this.Ia(d=>{this.pa().Sm(d)}));null===this.O&&(this.O=new olympe.ui.Z.ze,gd(this,this.Mb,this.O));return hd(this,a,b,c,this.O,this.vk)}vk(a){this.O&&
|
|
472
|
+
(id(a,this.O),null===this.O.C&&(this.O=null,this.Mb&&(this.pa().Zb.Dc()||this.pa().El(),this.Mb=null)))}fo(){const a=olympe.j.qb(olympe.ui.Z.MouseEvent);this.dh(b=>{a.update(b)});return a.Ba()}tl(a,b,c){null===this.ic&&(this.ic=this.Ia(d=>{this.pa().Vm(d)}));null===this.V&&(this.V=new olympe.ui.Z.ze,gd(this,this.ic,this.V));return hd(this,a,b,c,this.V,this.Jm)}Jm(a){this.V&&(id(a,this.V),null===this.V.C&&(this.V=null,this.ic&&(this.pa().Zb.Dc()||this.pa().Hl(),this.ic=null)))}Nj(){const a=olympe.j.qb(olympe.ui.Z.MouseEvent);
|
|
473
|
+
this.tl(b=>{a.update(b)});return a.Ba()}wo(a,b,c){null===this.Kc&&(this.Kc=this.Ia(d=>{this.pa().Wm(d)}));null===this.ga&&(this.ga=new olympe.ui.Z.ze,gd(this,this.Kc,this.ga));return hd(this,a,b,c,this.ga,this.qq)}qq(a){this.ga&&(id(a,this.ga),null===this.ga.C&&(this.ga=null,this.Kc&&(this.pa().Zb.Dc()||this.pa().Il(),this.Kc=null)))}ho(){const a=olympe.j.qb(olympe.ui.Z.MouseEvent);this.wo(b=>{a.update(b)});return a.Ba()}mj(a,b,c){null===this.vc&&(this.vc=this.Ia(d=>{this.pa().Tm(d)}));null===this.R&&
|
|
474
|
+
(this.R=new olympe.ui.Z.ze,gd(this,this.vc,this.R));return hd(this,a,b,c,this.R,this.wk)}wk(a){this.R&&(id(a,this.R),null===this.R.C&&(this.R=null,this.vc&&(this.pa().Zb.Dc()||this.pa().Fl(),this.vc=null)))}qm(){const a=olympe.j.qb(olympe.ui.Z.MouseEvent);this.mj(b=>{a.update(b)});return a.Ba()}Fi(a,b,c){null===this.ec&&(this.ec=this.Ia(d=>{this.pa().Um(d)}));null===this.T&&(this.T=new olympe.ui.Z.ze,gd(this,this.ec,this.T));return hd(this,a,b,c,this.T,this.Sj)}Sj(a){this.T&&(id(a,this.T),null===
|
|
475
|
+
this.T.C&&(this.T=null,this.ec&&(this.pa().Zb.Dc()||this.pa().Gl(),this.ec=null)))}rm(){const a=olympe.j.qb(olympe.ui.Z.MouseEvent);this.Fi(b=>{a.update(b)});return a.Ba()}xo(a,b,c){null===this.Xc&&R(this,()=>{const d=olympe.j.Mc,e=olympe.j.Ca,f=olympe.j.qb(olympe.ui.Z.gk);this.Xc=f.Ba();this.pa().Ym((g,k,l,m,n,p,r,t,u,w,v,x)=>{g=new olympe.ui.Z.gk(e(g),e(k),new olympe.j.ia(l,m),new olympe.j.ia(n,p),d(r),d(t),d(u),d(w),e(v),e(x),olympe.j.cc.now());f.update(g)})});null===this.ka&&(this.ka=new olympe.ui.Z.ze,
|
|
476
|
+
gd(this,this.Xc,this.ka));return hd(this,a,b,c,this.ka,this.rq)}rq(a){this.ka&&(id(a,this.ka),null===this.ka.C&&(this.ka=null,this.Xc&&(this.pa().Zb.Dc()||this.pa().Kl(),this.Xc=null)))}sm(){const a=olympe.j.qb(olympe.ui.Z.gk);this.xo(b=>{a.update(b)});return a.Ba()}Rg(a,b,c){null===this.Cc&&(this.Cc=this.Ia(d=>{this.pa().Xm(d)}));null===this.$&&(this.$=new olympe.ui.Z.ze,gd(this,this.Cc,this.$));return hd(this,a,b,c,this.$,this.Eg)}Eg(a){this.$&&(id(a,this.$),null===this.$.C&&(this.$=null,this.Cc&&
|
|
477
|
+
(this.pa().Zb.Dc()||this.pa().Jl(),this.Cc=null)))}io(){const a=olympe.j.qb(olympe.ui.Z.MouseEvent),b=this.Rg(c=>{a.update(c)});olympe.j.ib().Vd(()=>{this.Eg(b)});return a.Ba()}Eh(){const a=olympe.j.qb(olympe.j.ja).update(olympe.j.ja.wb),b=this.mj(()=>{a.update(olympe.j.ja.C)}),c=this.Fi(()=>{a.update(olympe.j.ja.wb)});olympe.j.ib().Vd(()=>{this.wk(b);this.Sj(c)});return a.Ba()}Em(){const a=olympe.j.qb(olympe.j.ja).update(olympe.j.ja.wb),b=this.dh(()=>{a.update(olympe.j.ja.C)}),c=this.Rg(()=>{a.update(olympe.j.ja.wb)});
|
|
478
478
|
olympe.j.ib().Vd(()=>{this.vk(b);this.Eg(c)});return a.Ba()}Fm(){const a=olympe.j.qb(olympe.j.ja).update(olympe.j.ja.C),b=this.Rg(()=>{a.update(olympe.j.ja.C)}),c=this.dh(()=>{a.update(olympe.j.ja.wb)});olympe.j.ib().Vd(()=>{this.vk(c);this.Eg(b)});return a.Ba()}Ak(a,b,c){null===this.touches&&jd(this);null===this.Ib&&(this.Ib=new olympe.ui.Z.ze);return hd(this,a,b,c,this.Ib,this.to)}to(a){id(a,this.Ib)}Do(a,b,c){null===this.touches&&jd(this);null===this.La&&(this.La=new olympe.ui.Z.ze);return hd(this,
|
|
479
479
|
a,b,c,this.La,this.uq)}uq(a){id(a,this.La)}zk(a,b,c){null===this.touches&&jd(this);null===this.Ha&&(this.Ha=new olympe.ui.Z.ze);return hd(this,a,b,c,this.Ha,this.jj)}jj(a){id(a,this.Ha)}Om(a,b,c){null===this.touches&&jd(this);null===this.Ea&&(this.Ea=new olympe.ui.Z.ze);return hd(this,a,b,c,this.Ea,this.so)}so(a){id(a,this.Ea)}vm(){null===this.ae&&(this.ae=kd(this,this.Do.bind(this)));return this.ae}wm(){null===this.Af&&(this.Af=kd(this,this.Ak.bind(this)));return this.Af}um(){null===this.od&&(this.od=
|
|
480
480
|
kd(this,this.zk.bind(this)));return this.od}tm(){null===this.gd&&(this.gd=kd(this,this.Om.bind(this)));return this.gd}zo(a,b,c){null===this.ta&&R(this,()=>{ld(this)});null===this.Ka&&(this.Ka=new olympe.ui.Z.ze);return hd(this,a,b,c,this.Ka,this.sq)}sq(a){id(a,this.Ka)}yo(a,b,c){null===this.ta&&R(this,()=>{ld(this)});null===this.Qa&&(this.Qa=new olympe.ui.Z.ze);return hd(this,a,b,c,this.Qa,this.Km)}Km(a){id(a,this.Qa)}mo(){null===this.ta&&R(this,()=>{ld(this)});return this.ta}};
|
|
@@ -502,60 +502,60 @@ h.tl.K=new olympe.j.J(()=>String,[]);h.Jm.K=new olympe.j.J(()=>{},[]);h.wo.K=new
|
|
|
502
502
|
h.Em.K=olympe.j.J.T;h.Fm.K=olympe.j.J.T;h.vm.K=new olympe.j.J(()=>olympe.ui.Z.TouchEvent,[]);h.wm.K=new olympe.j.J(()=>olympe.ui.Z.TouchEvent,[]);h.um.K=new olympe.j.J(()=>olympe.ui.Z.TouchEvent,[]);h.tm.K=new olympe.j.J(()=>olympe.ui.Z.TouchEvent,[]);h.Ak.K=new olympe.j.J(()=>String,[]);h.to.K=new olympe.j.J(()=>{},[]);h.zk.K=new olympe.j.J(()=>String,[]);h.jj.K=new olympe.j.J(()=>{},[]);h.Do.K=new olympe.j.J(()=>String,[]);h.uq.K=new olympe.j.J(()=>{},[]);h.Om.K=new olympe.j.J(()=>String,[]);
|
|
503
503
|
h.so.K=new olympe.j.J(()=>{},[]);h.mo.K=new olympe.j.J(()=>olympe.ui.Z.Pk,[]);h.zo.K=new olympe.j.J(()=>String,[]);h.yo.K=new olympe.j.J(()=>String,[]);h.sq.K=new olympe.j.J(()=>{},[]);h.Km.K=new olympe.j.J(()=>{},[]);h.tb.K=new olympe.j.J(()=>olympe.ui.Z.$u,[]);h.el.K=new olympe.j.J(()=>olympe.ui.Z.GestureEvent,[]);h.jl.K=new olympe.j.J(()=>olympe.ui.Z.GestureEvent,[]);h.fl.K=new olympe.j.J(()=>olympe.ui.Z.GestureEvent,[]);h.xm.K=new olympe.j.J(()=>olympe.ui.Z.GestureEvent,[]);
|
|
504
504
|
h.gl.K=new olympe.j.J(()=>olympe.ui.Z.GestureEvent,[]);h.pm.K=new olympe.j.J(()=>olympe.ui.Z.GestureEvent,[]);h.il.K=new olympe.j.J(()=>olympe.ui.Z.GestureEvent,[]);h.hl.K=new olympe.j.J(()=>olympe.ui.Z.GestureEvent,[]);h.wq.K=new olympe.j.J(()=>String,[]);h.mq.K=new olympe.j.J(()=>{},[]);h.Cq.K=new olympe.j.J(()=>String,[]);h.vq.K=new olympe.j.J(()=>{},[]);h.xq.K=new olympe.j.J(()=>String,[]);h.nq.K=new olympe.j.J(()=>{},[]);h.Vr.K=new olympe.j.J(()=>String,[]);h.Tr.K=new olympe.j.J(()=>{},[]);
|
|
505
|
-
h.yq.K=new olympe.j.J(()=>String,[]);h.oq.K=new olympe.j.J(()=>{},[]);h.zq.K=new olympe.j.J(()=>String,[]);h.pq.K=new olympe.j.J(()=>{},[]);h.Bq.K=new olympe.j.J(()=>String,[]);h.tq.K=new olympe.j.J(()=>{},[]);h.Aq.K=new olympe.j.J(()=>String,[]);olympe.ui.D
|
|
505
|
+
h.yq.K=new olympe.j.J(()=>String,[]);h.oq.K=new olympe.j.J(()=>{},[]);h.zq.K=new olympe.j.J(()=>String,[]);h.pq.K=new olympe.j.J(()=>{},[]);h.Bq.K=new olympe.j.J(()=>String,[]);h.tq.K=new olympe.j.J(()=>{},[]);h.Aq.K=new olympe.j.J(()=>String,[]);olympe.ui.D.$e={};olympe.ui.D.$e.Ws=class{constructor(){}render(){}C(){}};olympe.ui.D.$e.PB=class{constructor(a,b,c,d,e){this.T=a;this.fontSize=b;this.R=c;this.O=d;this.F=e;this.paddingLeft=void 0}render(a,b){b=new olympe.ui.D.gb(b);b.Rb(a);this.T&&b.$b(this.T);this.fontSize&&b.zb(this.fontSize);this.R&&b.Db(this.R);this.O&&b.yb(this.O);this.F&&b.ob(this.F);this.paddingLeft&&b.Ec(this.paddingLeft);return b}C(){return olympe.j.lb}};olympe.ui.D.$e.PB.ua=[olympe.ui.D.$e.Ws];olympe.ui.D.$e.fQ=class{constructor(a,b,c,d,e,f){this.T=a;this.align=b;this.fontSize=c;this.R=d;this.O=e;this.F=f}render(a,b){b=new olympe.ui.D.gb(b);b.Rb(a.je(this.T));this.align&&b.$b(this.align);this.fontSize&&b.zb(this.fontSize);this.R&&b.Db(this.R);this.O&&b.yb(this.O);this.F&&b.ob(this.F);return b}C(){return olympe.dc.CloudObject}};olympe.ui.D.$e.fQ.ua=[olympe.ui.D.$e.Ws];olympe.ui.D.$e.DR=class{constructor(a,b,c,d,e){this.align=a;this.fontSize=b;this.R=c;this.O=d;this.F=e}render(a,b){const c=new olympe.ui.D.gb(b);olympe.j.ab([a.Sa()],d=>{c.Rb(d)});this.align&&c.$b(this.align);this.fontSize&&c.zb(this.fontSize);this.R&&c.Db(this.R);this.O&&c.yb(this.O);this.F&&c.ob(this.F);return c}C(){return olympe.dc.CloudObject}};olympe.ui.D.$e.DR.ua=[olympe.ui.D.$e.Ws];olympe.ui.D.$e.ER=class{constructor(a,b,c,d,e){this.align=a;this.fontSize=b;this.R=c;this.O=d;this.F=e}render(a,b){b=new olympe.ui.D.gb(b);b.Rb(a.ca().toString());this.align&&b.$b(this.align);this.fontSize&&b.zb(this.fontSize);this.R&&b.Db(this.R);this.O&&b.yb(this.O);this.F&&b.ob(this.F);return b}C(){return olympe.dc.Zs}};olympe.ui.D.$e.ER.ua=[olympe.ui.D.$e.Ws];olympe.ui.D.$e.JR=class extends olympe.ui.D.$e.PB{constructor(a,b,c,d,e){super(a,b,c,d,e)}render(a,b){return olympe.ui.D.$e.PB.prototype.render.call(this,a instanceof olympe.j.Proxy||a instanceof olympe.j.aa?a.valueOf():a,b)}C(){return olympe.j.aa}};olympe.ui.D.$e.JR.ua=[olympe.ui.D.$e.Ws];olympe.ui.D.ba={};function S(a,b,c,d,e){const f=k=>{k=k?k.valueOf():'default';const l=b+'_'+k;e&&k&&!a.Ka[l]&&(a.Ka[l]=olympe.j.ml().run(e,k));return a.Ka[l]||a.Ka['default']},g=olympe.j.pb(c);d&&d.Zg?(I(g,f()),Bb(d,function(k){I(g,f(k))})):I(g,f(d));return g}olympe.ui.D.ba.ph=class{constructor(){this.Ka=Object.create(null)}mm(){}JM(){}Mt(){}uw(){}tw(){}NC(){}ow(){}Br(){}lz(){}iw(){}vz(){}ew(){}jf(){}sw(){}kw(){}Kt(){}Dz(){}yC(){}xz(){}rz(){}};olympe.ui.D.ba.ph.ga='default';h=olympe.ui.D.ba.ph.prototype;
|
|
506
506
|
h.mm.K=new olympe.j.J(()=>olympe.ui.D.ba.ak,[]);h.JM.K=new olympe.j.J(()=>olympe.ui.D.ba.xv,[]);h.Mt.K=new olympe.j.J(()=>olympe.ui.D.ba.Sh,[]);h.uw.K=new olympe.j.J(()=>olympe.ui.D.ba.Yk,[]);h.tw.K=new olympe.j.J(()=>olympe.ui.D.ba.Xk,[]);h.NC.K=new olympe.j.J(()=>olympe.ui.D.ba.it,[]);h.ow.K=new olympe.j.J(()=>olympe.ui.D.ba.Fj,[]);h.Br.K=new olympe.j.J(()=>olympe.ui.D.ba.Fk,[]);h.lz.K=new olympe.j.J(()=>olympe.ui.D.ba.Yo,[]);h.iw.K=new olympe.j.J(()=>olympe.ui.D.ba.mi,[]);
|
|
507
507
|
h.vz.K=new olympe.j.J(()=>olympe.ui.D.ba.Zl,[]);h.ew.K=new olympe.j.J(()=>olympe.ui.D.ba.ki,[]);h.jf.K=new olympe.j.J(()=>olympe.ui.D.ba.Tq,[]);h.sw.K=new olympe.j.J(()=>olympe.ui.D.ba.Wk,[]);h.kw.K=new olympe.j.J(()=>olympe.ui.D.ba.Bj,[]);h.Kt.K=new olympe.j.J(()=>olympe.ui.D.ba.Nk,[]);h.Dz.K=new olympe.j.J(()=>olympe.ui.D.ba.Jp,[]);h.yC.K=new olympe.j.J(()=>olympe.ui.D.ba.Ds,[]);h.xz.K=new olympe.j.J(()=>olympe.ui.D.ba.$l,[]);h.rz.K=new olympe.j.J(()=>olympe.ui.D.ba.nf,[]);olympe.ui.D.ba.Tq=class{constructor(){this.backgroundColor=Q(O());this.ET=olympe.j.xb('');this.kL=olympe.j.Uc();this.jL=olympe.j.Uc(0,0);this.opacity=olympe.j.ha(1)}Rp(){return this.backgroundColor}Na(a){J(this.backgroundColor,a)}Up(){return this.ET}Tp(){return this.kL}gs(a){J(this.kL,a)}Sp(){return this.jL}fs(a){J(this.jL,a)}xM(){return this.opacity}jg(a){J(this.opacity,a)}};h=olympe.ui.D.ba.Tq.prototype;h.Rp.K=new olympe.j.J(()=>olympe.j.Color,[]);h.Up.K=olympe.j.J.R;h.Tp.K=olympe.j.J.V;
|
|
508
|
-
h.Sp.K=olympe.j.J.V;h.xM.K=olympe.j.J.F;olympe.ui.D.ba.mr=class extends olympe.ui.D.ba.Tq{constructor(){super()}};olympe.ui.D.ba.mr.
|
|
508
|
+
h.Sp.K=olympe.j.J.V;h.xM.K=olympe.j.J.F;olympe.ui.D.ba.mr=class extends olympe.ui.D.ba.Tq{constructor(){super()}};olympe.ui.D.ba.mr.Yb='rootElement';olympe.ui.D.ba.dd=class extends olympe.ui.D.ba.Tq{constructor(){super();this.Qa=olympe.j.Uc(200,40);this.borderWidth=olympe.j.ha(0);this.borderColor=Q(O());this.ta=olympe.j.ha(0);this.ec=olympe.j.Uc(0,0);this.ic=olympe.j.ha(0);this.Kc=olympe.j.ha(0);this.Ka=Q(O());this.vc=olympe.j.Tc(!1)}la(){return this.Qa}Jb(a){J(this.Qa,a)}zi(){return this.borderWidth}bd(a){J(this.borderWidth,a)}bl(){return this.borderColor}hd(a){J(this.borderColor,a)}Vp(){return this.ta}kc(a){J(this.ta,a)}Kr(){return this.ec}Lr(){return this.ic}Mr(){return this.Kc}Ir(){return this.Ka}Jr(){return this.vc}gh(a,
|
|
509
509
|
b,c,d,e){J(this.ec,a);J(this.ic,b);J(this.Kc,c);J(this.Ka,d);J(this.vc,e)}};h=olympe.ui.D.ba.dd.prototype;h.Jb.wr=!0;h.bd.wr=!0;h.hd.wr=!0;h.la.K=olympe.j.J.V;h.zi.K=olympe.j.J.F;h.bl.K=new olympe.j.J(()=>olympe.j.Color,[]);h.Vp.K=olympe.j.J.F;h.Kr.K=olympe.j.J.V;h.Lr.K=olympe.j.J.F;h.Mr.K=olympe.j.J.F;h.Ir.K=new olympe.j.J(()=>olympe.j.Color,[]);h.Jr.K=olympe.j.J.T;olympe.ui.D.ba.ak=class extends olympe.ui.D.ba.dd{constructor(){super();this.Ha=Q(N());this.C=Q(N());this.Ib=Q(N());this.La=Q(K());this.O=Q(K());this.$=Q(K());this.R=Q(K());this.F=Q(K());this.fontSize=olympe.j.ha(14);this.ga=olympe.j.ha(500);this.V=olympe.j.xb('');this.ka=olympe.j.pb(String,olympe.ui.fa.Hb.Vb);this.Ea=olympe.j.pb(String,olympe.ui.fa.tc.Nc);this.Of=olympe.j.Tc(!1);this.T=olympe.j.ha(0)}FM(){return this.Ha}Yj(a){J(this.Ha,a)}YL(){return this.C}VU(){return this.Ib}GM(){return this.La}ZL(){return this.O}vG(){return this.$}ob(a){J(this.$,
|
|
510
|
-
a)}HM(){return this.R}$L(){return this.F}uG(){return this.fontSize}zb(a){J(this.fontSize,a)}Ci(){return this.ga}Db(a){J(this.ga,a)}yb(a){J(this.V,a)}Bi(){return this.V}wG(){return this.ka}
|
|
511
|
-
h.YL.K=new olympe.j.J(()=>olympe.j.Color,[]);h.VU.K=new olympe.j.J(()=>olympe.j.Color,[]);h.GM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.ZL.K=new olympe.j.J(()=>olympe.j.Color,[]);h.vG.K=new olympe.j.J(()=>olympe.j.Color,[]);h.HM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.$L.K=new olympe.j.J(()=>olympe.j.Color,[]);h.uG.K=olympe.j.J.F;h.Ci.K=olympe.j.J.F;h.Bi.K=olympe.j.J.R;h.wG.K=new olympe.j.J(()=>String,[]);h.xG.K=new olympe.j.J(()=>String,[]);h.tG.K=olympe.j.J.T;h.EL.K=olympe.j.J.F;olympe.ui.D.ba.xv=class extends olympe.ui.D.ba.Tq{constructor(){super()}};olympe.ui.D.ba.xv.
|
|
512
|
-
olympe.ui.D.ba.ki.C='selected';olympe.ui.D.ba.ki.F='warning';olympe.ui.D.ba.ki.
|
|
510
|
+
a)}HM(){return this.R}$L(){return this.F}uG(){return this.fontSize}zb(a){J(this.fontSize,a)}Ci(){return this.ga}Db(a){J(this.ga,a)}yb(a){J(this.V,a)}Bi(){return this.V}wG(){return this.ka}$b(a){J(this.ka,a)}xG(){return this.Ea}bc(a){J(this.Ea,a)}tG(){return this.Of}EL(){return this.T}be(a,b){J(this.Of,a);J(this.T,b)}};olympe.ui.D.ba.ak.Yb='button';olympe.ui.D.ba.ak.C='selected';olympe.ui.D.ba.ak.F='warning';h=olympe.ui.D.ba.ak.prototype;h.FM.K=new olympe.j.J(()=>olympe.j.Color,[]);
|
|
511
|
+
h.YL.K=new olympe.j.J(()=>olympe.j.Color,[]);h.VU.K=new olympe.j.J(()=>olympe.j.Color,[]);h.GM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.ZL.K=new olympe.j.J(()=>olympe.j.Color,[]);h.vG.K=new olympe.j.J(()=>olympe.j.Color,[]);h.HM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.$L.K=new olympe.j.J(()=>olympe.j.Color,[]);h.uG.K=olympe.j.J.F;h.Ci.K=olympe.j.J.F;h.Bi.K=olympe.j.J.R;h.wG.K=new olympe.j.J(()=>String,[]);h.xG.K=new olympe.j.J(()=>String,[]);h.tG.K=olympe.j.J.T;h.EL.K=olympe.j.J.F;olympe.ui.D.ba.xv=class extends olympe.ui.D.ba.Tq{constructor(){super()}};olympe.ui.D.ba.xv.Yb='rectangle';olympe.ui.D.ba.ki=class extends olympe.ui.D.ba.dd{constructor(){super();this.T=olympe.j.pb(olympe.ui.D.ba.dd,new olympe.ui.D.ba.dd);this.O=olympe.j.pb(olympe.ui.D.ba.dd,new olympe.ui.D.ba.dd);this.V=olympe.j.pb(olympe.ui.D.ba.dd,new olympe.ui.D.ba.dd);this.R=olympe.j.pb(olympe.ui.D.ba.dd,new olympe.ui.D.ba.dd);this.F=olympe.j.pb(olympe.ui.D.ba.dd,new olympe.ui.D.ba.dd);this.C=olympe.j.ha(200)}xf(){return this.T}Dg(){return this.O}yf(){return this.V}wf(){return this.R}sz(){return this.F}kz(){return this.C}};
|
|
512
|
+
olympe.ui.D.ba.ki.C='selected';olympe.ui.D.ba.ki.F='warning';olympe.ui.D.ba.ki.Yb='checkbox';h=olympe.ui.D.ba.ki.prototype;h.xf.K=new olympe.j.J(()=>olympe.ui.D.ba.dd,[]);h.Dg.K=new olympe.j.J(()=>olympe.ui.D.ba.dd,[]);h.yf.K=new olympe.j.J(()=>olympe.ui.D.ba.dd,[]);h.wf.K=new olympe.j.J(()=>olympe.ui.D.ba.dd,[]);h.sz.K=new olympe.j.J(()=>olympe.ui.D.ba.dd,[]);h.kz.K=olympe.j.J.F;function od(a){J(a.V,'dropdown-selectedvalue')}function pd(a){J(a.T,'dropdown-mouseoveritem')}
|
|
513
513
|
olympe.ui.D.ba.mi=class extends olympe.ui.D.ba.dd{constructor(){super();this.V=olympe.j.xb('');this.O=olympe.j.xb('');this.T=olympe.j.xb('');this.R=olympe.j.xb('');this.C=olympe.j.Uc();this.ga=olympe.j.Uc(0,0);this.ka=olympe.j.Uc(0,0);this.paddingTop=olympe.j.ha(0);this.paddingBottom=olympe.j.ha(0);this.paddingLeft=olympe.j.ha(0);this.paddingRight=olympe.j.ha(0);this.$=olympe.j.ha(0);this.F=olympe.j.pb(olympe.ui.D.ba.dd,new olympe.ui.D.ba.dd)}LM(){return this.V}pM(){return this.O}vM(){return this.T}ly(a){J(this.R,
|
|
514
|
-
a)}BL(){return this.C}AL(){return this.ga}qM(){return this.ka}sd(a){J(this.paddingTop,a)}BG(){return this.paddingTop}rd(a){J(this.paddingBottom,a)}yG(){return this.paddingBottom}Ec(a){J(this.paddingLeft,a)}zG(){return this.paddingLeft}Ic(a){J(this.paddingRight,a)}AG(){return this.paddingRight}MM(){return this.$}rM(){return this.F}};olympe.ui.D.ba.mi.
|
|
514
|
+
a)}BL(){return this.C}AL(){return this.ga}qM(){return this.ka}sd(a){J(this.paddingTop,a)}BG(){return this.paddingTop}rd(a){J(this.paddingBottom,a)}yG(){return this.paddingBottom}Ec(a){J(this.paddingLeft,a)}zG(){return this.paddingLeft}Ic(a){J(this.paddingRight,a)}AG(){return this.paddingRight}MM(){return this.$}rM(){return this.F}};olympe.ui.D.ba.mi.Yb='dropdown';olympe.ui.D.ba.mi.O='dropdown-selectedvalue';olympe.ui.D.ba.mi.C='dropdown-item';olympe.ui.D.ba.mi.F='dropdown-mouseoveritem';h=olympe.ui.D.ba.mi.prototype;
|
|
515
515
|
h.LM.K=olympe.j.J.R;h.pM.K=olympe.j.J.R;h.vM.K=olympe.j.J.R;h.ly.K=olympe.j.J.R;h.BL.K=olympe.j.J.V;h.AL.K=olympe.j.J.V;h.qM.K=olympe.j.J.V;h.BG.K=olympe.j.J.F;h.yG.K=olympe.j.J.F;h.zG.K=olympe.j.J.F;h.AG.K=olympe.j.J.F;h.MM.K=olympe.j.J.F;h.rM.K=new olympe.j.J(()=>olympe.ui.D.ba.dd,[]);function qd(a){J(a.T,olympe.j.ha(100))}olympe.ui.D.ba.Bj=class extends olympe.ui.D.ba.dd{constructor(){super();this.V=olympe.j.ha(30);this.T=olympe.j.ha(100);this.O=Q(O());this.R=olympe.j.xb('grid-cell');this.C=olympe.j.xb('grid-cell');this.F=olympe.j.xb('grid-selected-cell')}uM(){return this.V}Vj(a){J(this.V,olympe.j.ha(a))}VL(){return this.T}bM(){return this.O}eM(){return this.R}NL(){return this.C}KM(){return this.F}};olympe.ui.D.ba.Bj.C='grid-cell';olympe.ui.D.ba.Bj.F='grid-selected-cell';
|
|
516
|
-
olympe.ui.D.ba.Bj.
|
|
517
|
-
h.EG.K=new olympe.j.J(()=>olympe.j.Color,[]);h.Cr.K=new olympe.j.J(()=>olympe.ui.D.gm,[]);h.CG.K=olympe.j.J.T;h.DG.K=olympe.j.J.T;h.ny.K=olympe.j.J.T;h.my.K=olympe.j.J.T;olympe.ui.D.ba.it=class extends olympe.ui.D.ba.$x{constructor(){super();this.F=olympe.j.xb('')}tM(){return this.F}};olympe.ui.D.ba.it.
|
|
518
|
-
a)}Rt(){return this.F}jM(){return this.Xc}ny(){return this.Of}be(a){J(this.Of,a)}my(){return this.Oe}Xd(a){J(this.Oe,a)}};olympe.ui.D.ba.Nk.
|
|
519
|
-
h.Qt.K=olympe.j.J.F;h.Rt.K=olympe.j.J.F;h.jM.K=olympe.j.J.F;h.ny.K=olympe.j.J.T;h.my.K=olympe.j.J.T;olympe.ui.D.ba.Yo=class extends olympe.ui.D.ba.Fj{constructor(){super();this.T=Q(olympe.j.Color.red());this.V=Q(K());this.ga=olympe.j.ha(1);this.R=olympe.j.ha(10);this.F=olympe.j.ha(10);this.O=olympe.j.ha(5)}FL(){return this.T}GL(){return this.V}HL(){return this.ga}DL(){return this.R}zL(){return this.F}CL(){return this.O}};olympe.ui.D.ba.Yo.
|
|
520
|
-
h.DL.K=olympe.j.J.F;h.zL.K=olympe.j.J.F;h.CL.K=olympe.j.J.F;olympe.ui.D.ba.Zl=class extends olympe.ui.D.ba.dd{constructor(){super();this.C=this.O=this.F=null}T(){return this.F}V(){return this.O}R(){return this.C}};olympe.ui.D.ba.Zl.
|
|
521
|
-
olympe.ui.D.ba.nf.prototype.O.K=olympe.j.J.R;olympe.ui.D.ba.nf.prototype.R.K=olympe.j.J.R;olympe.ui.D.ba.$l=class{constructor(){this.Uv=olympe.j.pb(olympe.ui.D.ba.dd);this.Tv=olympe.j.ha(1);this.tL=olympe.j.Tc(!1);this.animation=null;this.dz=olympe.j.ha(0)}dM(){return this.Uv}bA(a){J(this.Uv,a)}cM(){return this.Tv}aA(a){J(this.Tv,a)}Fz(){return this.tL}pu(a){J(this.tL,a)}Cr(){return this.animation}};olympe.ui.D.ba.$l.
|
|
522
|
-
olympe.j.aa.ZERO);this.V=null}KG(){return this.R}ob(a){void 0===this.R&&(this.R=olympe.j.pb(olympe.j.Color));J(this.R,a)}FG(){return this.fontSize}zb(a){void 0===this.fontSize&&(this.fontSize=olympe.j.pb(olympe.j.aa));J(this.fontSize,a)}Ci(){return this.O}Db(a){void 0===this.O&&(this.O=olympe.j.pb(olympe.j.aa));J(this.O,a)}yb(a){void 0===this.C&&(this.C=olympe.j.pb(olympe.j.lb));J(this.C,a)}Bi(){return this.C}ll(){return this.F}Qd(a){void 0===this.F&&(this.F=olympe.j.pb(olympe.j.lb));J(this.F,a)}LG(){return this.ga}
|
|
516
|
+
olympe.ui.D.ba.Bj.Yb='grid';h=olympe.ui.D.ba.Bj.prototype;h.uM.K=olympe.j.J.F;h.VL.K=olympe.j.J.F;h.bM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.eM.K=olympe.j.J.R;h.NL.K=olympe.j.J.R;h.KM.K=olympe.j.J.R;olympe.ui.D.ba.$x=class extends olympe.ui.D.ba.dd{constructor(){super();this.C=olympe.j.Sc(0,0,0,.8);this.animation=olympe.j.pb(olympe.ui.D.gm,null);this.Cc=olympe.j.Tc(!1);this.Ea=olympe.j.Tc(!1);this.Of=olympe.j.Tc(!1);this.Oe=olympe.j.Tc(!1)}EG(){return this.C}Cr(){return this.animation}CG(){return this.Cc}DG(){return this.Ea}ny(){return this.Of}be(a){J(this.Of,a)}my(){return this.Oe}Xd(a){J(this.Oe,a)}};olympe.ui.D.ba.$x.Yb='FloatingElement';h=olympe.ui.D.ba.$x.prototype;
|
|
517
|
+
h.EG.K=new olympe.j.J(()=>olympe.j.Color,[]);h.Cr.K=new olympe.j.J(()=>olympe.ui.D.gm,[]);h.CG.K=olympe.j.J.T;h.DG.K=olympe.j.J.T;h.ny.K=olympe.j.J.T;h.my.K=olympe.j.J.T;olympe.ui.D.ba.it=class extends olympe.ui.D.ba.$x{constructor(){super();this.F=olympe.j.xb('')}tM(){return this.F}};olympe.ui.D.ba.it.Yb='toolTip';olympe.ui.D.ba.it.prototype.tM.K=olympe.j.J.R;olympe.ui.D.ba.Fj=class extends olympe.ui.D.ba.$x{constructor(){super();var a=new olympe.ui.D.tf.EF;J(this.animation,a);J(this.Ea,!0)}};olympe.ui.D.ba.Fj.Yb='PopupPanel';olympe.ui.D.ba.Nk=class extends olympe.ui.D.ba.Fj{constructor(){super();this.ga=olympe.j.xb('');this.Ha=olympe.j.xb('');this.V=olympe.j.xb('');this.$=Q(O());this.ka=Q(O());this.Ib=Q(O());this.Mb=olympe.j.ha(2);this.Ab=olympe.j.ha(2);this.R=olympe.j.ha(2);this.T=olympe.j.ha(2);this.Cb=olympe.j.ha(2);this.Xc=olympe.j.ha(40);this.O=olympe.j.xb('');this.La=olympe.j.ha(20);this.F=olympe.j.ha(10)}St(){return this.ga}Nt(){return this.Ha}KL(){return this.V}gM(){return this.$}oM(){return this.ka}hM(){return this.Ib}XU(){return this.Cb}nM(){return this.Mb}kM(){return this.Ab}lM(){return this.R}mM(){return this.T}iM(){return this.O}Qt(){return this.La}Hf(a){J(this.La,
|
|
518
|
+
a)}Rt(){return this.F}jM(){return this.Xc}ny(){return this.Of}be(a){J(this.Of,a)}my(){return this.Oe}Xd(a){J(this.Oe,a)}};olympe.ui.D.ba.Nk.Yb='inputpopup';h=olympe.ui.D.ba.Nk.prototype;h.St.K=olympe.j.J.R;h.Nt.K=olympe.j.J.R;h.KL.K=olympe.j.J.R;h.gM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.oM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.hM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.XU.K=olympe.j.J.F;h.nM.K=olympe.j.J.F;h.kM.K=olympe.j.J.F;h.lM.K=olympe.j.J.F;h.mM.K=olympe.j.J.F;h.iM.K=olympe.j.J.R;
|
|
519
|
+
h.Qt.K=olympe.j.J.F;h.Rt.K=olympe.j.J.F;h.jM.K=olympe.j.J.F;h.ny.K=olympe.j.J.T;h.my.K=olympe.j.J.T;olympe.ui.D.ba.Yo=class extends olympe.ui.D.ba.Fj{constructor(){super();this.T=Q(olympe.j.Color.red());this.V=Q(K());this.ga=olympe.j.ha(1);this.R=olympe.j.ha(10);this.F=olympe.j.ha(10);this.O=olympe.j.ha(5)}FL(){return this.T}GL(){return this.V}HL(){return this.ga}DL(){return this.R}zL(){return this.F}CL(){return this.O}};olympe.ui.D.ba.Yo.Yb='bubble';h=olympe.ui.D.ba.Yo.prototype;h.FL.K=new olympe.j.J(()=>olympe.j.Color,[]);h.GL.K=new olympe.j.J(()=>olympe.j.Color,[]);h.HL.K=olympe.j.J.F;
|
|
520
|
+
h.DL.K=olympe.j.J.F;h.zL.K=olympe.j.J.F;h.CL.K=olympe.j.J.F;olympe.ui.D.ba.Zl=class extends olympe.ui.D.ba.dd{constructor(){super();this.C=this.O=this.F=null}T(){return this.F}V(){return this.O}R(){return this.C}};olympe.ui.D.ba.Zl.Yb='IntervalSlider';olympe.ui.D.ba.Zl.prototype.T.K=new olympe.j.J(()=>olympe.ui.D.ba.dd,[]);olympe.ui.D.ba.Zl.prototype.V.K=new olympe.j.J(()=>olympe.ui.D.ba.dd,[]);olympe.ui.D.ba.Zl.prototype.R.K=new olympe.j.J(()=>olympe.ui.D.ba.dd,[]);olympe.ui.D.ba.nf=class extends olympe.ui.D.ba.dd{constructor(){super();this.T=olympe.j.xb(olympe.ui.D.ba.nf.C.Wx);this.C=olympe.j.xb(olympe.ui.D.ba.nf.C.rv);this.V=olympe.j.xb(olympe.ui.D.ba.nf.C.JB)}F(){return this.T}O(){return this.C}R(){return this.V}};olympe.ui.D.ba.nf.Yb='ForEachTheme';olympe.ui.D.ba.nf.F={pF:'EVEN_ODD'};olympe.ui.D.ba.nf.C={Wx:'for_each_item_even',rv:'for_each_item_odd',JB:'for_each_item_selected'};olympe.ui.D.ba.nf.prototype.F.K=olympe.j.J.R;
|
|
521
|
+
olympe.ui.D.ba.nf.prototype.O.K=olympe.j.J.R;olympe.ui.D.ba.nf.prototype.R.K=olympe.j.J.R;olympe.ui.D.ba.$l=class{constructor(){this.Uv=olympe.j.pb(olympe.ui.D.ba.dd);this.Tv=olympe.j.ha(1);this.tL=olympe.j.Tc(!1);this.animation=null;this.dz=olympe.j.ha(0)}dM(){return this.Uv}bA(a){J(this.Uv,a)}cM(){return this.Tv}aA(a){J(this.Tv,a)}Fz(){return this.tL}pu(a){J(this.tL,a)}Cr(){return this.animation}};olympe.ui.D.ba.$l.Yb='ListForEachLayoutTheme';olympe.ui.D.ba.$l.prototype.dM.K=new olympe.j.J(()=>olympe.ui.D.ba.dd,[]);olympe.ui.D.ba.$l.prototype.cM.K=olympe.j.J.F;olympe.ui.D.ba.Sh=class extends olympe.ui.D.ba.dd{constructor(){super();this.R=Q(K());this.fontSize=olympe.j.ha(14);this.O=olympe.j.ha(500);this.C=olympe.j.xb('');this.F=olympe.j.pb(String,olympe.ui.fa.by.ty);this.ga=olympe.j.pb(String,olympe.ui.fa.Hb.Kf);this.T=olympe.j.pb(String,olympe.ui.fa.tc.Yg);this.paddingLeft=olympe.j.pb(olympe.j.aa,olympe.j.aa.ZERO);this.paddingRight=olympe.j.pb(olympe.j.aa,olympe.j.aa.ZERO);this.paddingTop=olympe.j.pb(olympe.j.aa,olympe.j.aa.ZERO);this.paddingBottom=olympe.j.pb(olympe.j.aa,
|
|
522
|
+
olympe.j.aa.ZERO);this.V=null}KG(){return this.R}ob(a){void 0===this.R&&(this.R=olympe.j.pb(olympe.j.Color));J(this.R,a)}FG(){return this.fontSize}zb(a){void 0===this.fontSize&&(this.fontSize=olympe.j.pb(olympe.j.aa));J(this.fontSize,a)}Ci(){return this.O}Db(a){void 0===this.O&&(this.O=olympe.j.pb(olympe.j.aa));J(this.O,a)}yb(a){void 0===this.C&&(this.C=olympe.j.pb(olympe.j.lb));J(this.C,a)}Bi(){return this.C}ll(){return this.F}Qd(a){void 0===this.F&&(this.F=olympe.j.pb(olympe.j.lb));J(this.F,a)}LG(){return this.ga}$b(a){void 0===
|
|
523
523
|
this.ga&&(this.ga=olympe.j.pb(String));J(this.ga,a)}MG(){return this.T}bc(a){void 0===this.T&&(this.T=olympe.j.pb(String));J(this.T,a)}HG(){return this.paddingLeft}Ec(a){void 0===this.paddingLeft&&(this.paddingLeft=olympe.j.pb(olympe.j.aa));J(this.paddingLeft,a)}IG(){return this.paddingRight}Ic(a){void 0===this.paddingRight&&(this.paddingRight=olympe.j.pb(olympe.j.aa));J(this.paddingRight,a)}JG(){return this.paddingTop}sd(a){void 0===this.paddingTop&&(this.paddingTop=olympe.j.pb(olympe.j.aa));J(this.paddingTop,
|
|
524
|
-
a)}GG(){return this.paddingBottom}rd(a){void 0===this.paddingBottom&&(this.paddingBottom=olympe.j.pb(olympe.j.aa));this.paddingBottom=a}};olympe.ui.D.ba.Sh.C='header1';olympe.ui.D.ba.Sh.F='header2';olympe.ui.D.ba.Sh.R='selected';olympe.ui.D.ba.Sh.O='mouseover';olympe.ui.D.ba.Sh.
|
|
525
|
-
h.MG.K=new olympe.j.J(()=>String,[]);h.HG.K=olympe.j.J.F;h.IG.K=olympe.j.J.F;h.JG.K=olympe.j.J.F;h.GG.K=olympe.j.J.F;olympe.ui.D.ba.Fk=class extends olympe.ui.D.ba.Fj{constructor(){super();this.O=olympe.j.xb('');this.T=olympe.j.xb('');this.R=olympe.j.xb('');this.V=olympe.j.ha(0);this.F=olympe.j.ha(10)}St(){return this.O}Nt(){return this.T}yz(){return this.R}Qt(){return this.V}Hf(a){J(this.V,a)}Rt(){return this.F}};olympe.ui.D.ba.Fk.
|
|
524
|
+
a)}GG(){return this.paddingBottom}rd(a){void 0===this.paddingBottom&&(this.paddingBottom=olympe.j.pb(olympe.j.aa));this.paddingBottom=a}};olympe.ui.D.ba.Sh.C='header1';olympe.ui.D.ba.Sh.F='header2';olympe.ui.D.ba.Sh.R='selected';olympe.ui.D.ba.Sh.O='mouseover';olympe.ui.D.ba.Sh.Yb='label';h=olympe.ui.D.ba.Sh.prototype;h.KG.K=new olympe.j.J(()=>olympe.j.Color,[]);h.FG.K=olympe.j.J.F;h.Ci.K=olympe.j.J.F;h.Bi.K=olympe.j.J.R;h.ll.K=new olympe.j.J(()=>String,[]);h.LG.K=new olympe.j.J(()=>String,[]);
|
|
525
|
+
h.MG.K=new olympe.j.J(()=>String,[]);h.HG.K=olympe.j.J.F;h.IG.K=olympe.j.J.F;h.JG.K=olympe.j.J.F;h.GG.K=olympe.j.J.F;olympe.ui.D.ba.Fk=class extends olympe.ui.D.ba.Fj{constructor(){super();this.O=olympe.j.xb('');this.T=olympe.j.xb('');this.R=olympe.j.xb('');this.V=olympe.j.ha(0);this.F=olympe.j.ha(10)}St(){return this.O}Nt(){return this.T}yz(){return this.R}Qt(){return this.V}Hf(a){J(this.V,a)}Rt(){return this.F}};olympe.ui.D.ba.Fk.Yb='alert';h=olympe.ui.D.ba.Fk.prototype;h.St.K=olympe.j.J.R;h.Nt.K=olympe.j.J.R;h.yz.K=olympe.j.J.R;h.Qt.K=olympe.j.J.F;h.Rt.K=olympe.j.J.F;function rd(a){J(a.Ha,olympe.j.ha(40))}function sd(a){J(a.La,olympe.j.xb(olympe.ui.fa.Hb.Vb))}function td(a){J(a.Ib,olympe.j.xb(olympe.ui.fa.tc.Nc))}function ud(a){J(a.$,olympe.j.ha(1))}
|
|
526
526
|
olympe.ui.D.ba.Wk=class extends olympe.ui.D.ba.dd{constructor(){super();this.Ha=olympe.j.ha(40);this.C=olympe.j.ha(12);this.F=olympe.j.ha(500);this.Ab=olympe.j.xb('Arial');this.Ea=olympe.j.ha(2);this.ga=Q(O());this.$=olympe.j.ha(0);this.O=Q(O());this.V=Q(O());this.ka=Q(O());this.R=Q(O());this.T=Q(O());this.La=olympe.j.pb(String,olympe.ui.fa.Hb.Vb);this.Ib=olympe.j.pb(String,olympe.ui.fa.tc.Nc);this.Cb=olympe.j.ha(0)}WM(){return this.Ha}UM(){return this.C}VM(){return this.F}TM(){return this.Ab}RM(){return this.Ea}ZM(){return this.ga}QM(){return this.ka}$M(){return this.La}aN(){return this.Ib}YM(){return this.V}PM(){return this.R}XM(){return this.T}OG(){return this.$}NG(){return this.O}SM(){return this.Cb}};
|
|
527
|
-
olympe.ui.D.ba.Wk.
|
|
527
|
+
olympe.ui.D.ba.Wk.Yb='tabpanel';h=olympe.ui.D.ba.Wk.prototype;h.WM.K=olympe.j.J.F;h.UM.K=olympe.j.J.F;h.VM.K=olympe.j.J.F;h.TM.K=olympe.j.J.R;h.RM.K=olympe.j.J.F;h.ZM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.QM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.$M.K=new olympe.j.J(()=>String,[]);h.aN.K=new olympe.j.J(()=>String,[]);h.YM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.PM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.XM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.OG.K=olympe.j.J.F;
|
|
528
528
|
h.NG.K=new olympe.j.J(()=>olympe.j.Color,[]);h.SM.K=olympe.j.J.F;olympe.ui.D.ba.Xk=class extends olympe.ui.D.ba.dd{constructor(){super();this.R=olympe.j.Sc(0,0,0);this.fontSize=olympe.j.ha(14);this.O=olympe.j.ha(500);this.C=olympe.j.xb('');this.F=olympe.j.pb(String,olympe.ui.fa.by.ty);this.T=olympe.j.pb(String,olympe.ui.fa.Hb.Kf);this.V=olympe.j.pb(String,olympe.ui.fa.tc.Yg);this.paddingLeft=olympe.j.ha(0);this.paddingRight=olympe.j.ha(0);this.paddingTop=olympe.j.ha(0);this.paddingBottom=olympe.j.ha(0)}VG(){return this.R}ob(a){J(this.R,a)}PG(){return this.fontSize}zb(a){J(this.fontSize,
|
|
529
|
-
a)}Ci(){return this.O}yb(a){J(this.C,a)}Bi(){return this.C}ll(){return this.F}Qd(a){J(this.F,a)}Db(a){J(this.O,a)}WG(){return this.T}
|
|
529
|
+
a)}Ci(){return this.O}yb(a){J(this.C,a)}Bi(){return this.C}ll(){return this.F}Qd(a){J(this.F,a)}Db(a){J(this.O,a)}WG(){return this.T}$b(a){J(this.T,a)}XG(){return this.V}bc(a){J(this.V,a)}SG(){return this.paddingLeft}Ec(a){J(this.paddingLeft,a)}TG(){return this.paddingRight}Ic(a){J(this.paddingRight,a)}UG(){return this.paddingTop}sd(a){J(this.paddingTop,a)}QG(){return this.paddingBottom}rd(a){this.paddingBottom=a}};olympe.ui.D.ba.Xk.Yb='TextArea';h=olympe.ui.D.ba.Xk.prototype;
|
|
530
530
|
h.VG.K=new olympe.j.J(()=>olympe.j.Color,[]);h.PG.K=olympe.j.J.F;h.Ci.K=olympe.j.J.F;h.Bi.K=olympe.j.J.R;h.ll.K=new olympe.j.J(()=>String,[]);h.WG.K=new olympe.j.J(()=>String,[]);h.XG.K=new olympe.j.J(()=>String,[]);h.SG.K=olympe.j.J.F;h.TG.K=olympe.j.J.F;h.UG.K=olympe.j.J.F;h.QG.K=olympe.j.J.F;olympe.ui.D.ba.Yk=class extends olympe.ui.D.ba.dd{constructor(){super();this.R=Q(K());this.ga=Q(K());this.fontSize=olympe.j.ha(14);this.O=olympe.j.ha(500);this.C=olympe.j.xb('');this.F=olympe.j.pb(String);this.T=olympe.j.pb(String,olympe.ui.fa.Hb.Kf);this.V=olympe.j.pb(String,olympe.ui.fa.tc.Nc);this.paddingLeft=olympe.j.ha(0);this.paddingRight=olympe.j.ha(0);this.paddingTop=olympe.j.ha(0);this.paddingBottom=olympe.j.ha(0)}cH(){return this.R}ob(a){J(this.R,a)}EM(){return this.ga}Sg(a){J(this.ga,a)}YG(){return this.fontSize}zb(a){J(this.fontSize,
|
|
531
|
-
a)}Ci(){return this.O}yb(a){J(this.C,a)}Bi(){return this.C}Db(a){J(this.O,a)}ll(){return this.F}Qd(a){J(this.F,a)}dH(){return this.T}
|
|
531
|
+
a)}Ci(){return this.O}yb(a){J(this.C,a)}Bi(){return this.C}Db(a){J(this.O,a)}ll(){return this.F}Qd(a){J(this.F,a)}dH(){return this.T}$b(a){J(this.T,a)}eH(){return this.V}bc(a){J(this.V,a)}$G(){return this.paddingLeft}Ec(a){J(this.paddingLeft,a)}aH(){return this.paddingRight}Ic(a){J(this.paddingRight,a)}bH(){return this.paddingTop}sd(a){J(this.paddingRight,a)}ZG(){return this.paddingBottom}rd(a){J(this.paddingBottom,a)}};olympe.ui.D.ba.Yk.Yb='textfield';h=olympe.ui.D.ba.Yk.prototype;
|
|
532
532
|
h.cH.K=new olympe.j.J(()=>olympe.j.Color,[]);h.EM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.YG.K=olympe.j.J.F;h.Ci.K=olympe.j.J.F;h.Bi.K=olympe.j.J.R;h.ll.K=new olympe.j.J(()=>String,[]);h.dH.K=new olympe.j.J(()=>String,[]);h.eH.K=new olympe.j.J(()=>String,[]);h.$G.K=olympe.j.J.F;h.aH.K=olympe.j.J.F;h.bH.K=olympe.j.J.F;h.ZG.K=olympe.j.J.F;function vd(a){J(a.Ib,olympe.j.xb(olympe.ui.fa.Hb.Vb))}function wd(a){J(a.Cb,olympe.j.xb(olympe.ui.fa.tc.Nc))}
|
|
533
533
|
olympe.ui.D.ba.Jp=class extends olympe.ui.D.ba.dd{constructor(){super();this.V=olympe.j.ha(40);this.R=olympe.j.ha(12);this.T=olympe.j.ha(500);this.ae=olympe.j.xb('Arial');this.gd=olympe.j.ha(2);this.La=Q(O());this.Ea=olympe.j.ha(0);this.C=olympe.j.ha(0);this.$=Q(O());this.ka=Q(O());this.Xc=Q(O());this.Ha=Q(O());this.Ib=olympe.j.pb(String,olympe.ui.fa.Hb.Vb);this.Cb=olympe.j.pb(String,olympe.ui.fa.tc.Nc);this.od=olympe.j.ha(0);this.F=olympe.j.Uc(10,10);this.O=olympe.j.xb('images/close.png');this.Cc=
|
|
534
534
|
olympe.j.Uc(0,0);this.Mb=olympe.j.Tc(!1);this.ga=O();this.Ab=olympe.j.ha(40)}RL(){return this.Mb}qN(){return this.V}oN(){return this.R}pN(){return this.T}nN(){return this.ae}lN(){return this.gd}rN(){return this.La}kN(){return this.Xc}sN(){return this.Ib}tN(){return this.Cb}jN(){return this.Ha}gH(){return this.Ea}fH(){return this.ka}mN(){return this.od}TL(){return this.F}OL(){return this.ga}UL(){return this.O}JL(){return this.Ab}SL(){return this.Cc}QL(){return this.C}PL(){return this.$}};
|
|
535
|
-
olympe.ui.D.ba.Jp.
|
|
536
|
-
h.OL.K=new olympe.j.J(()=>olympe.j.Color,[]);h.UL.K=olympe.j.J.R;h.JL.K=olympe.j.J.F;h.SL.K=olympe.j.J.V;h.QL.K=olympe.j.J.F;h.PL.K=new olympe.j.J(()=>olympe.j.Color,[]);olympe.ui.D.ba.Tx=class extends olympe.ui.D.ba.ph{constructor(){super();this.ga=olympe.j.Color.create(43,62,80);this.O=olympe.j.Color.create(78,93,108);this.Ha=olympe.j.Color.create(92,184,92);this.Mb=olympe.j.Color.create(92,184,92,.65);this.Ab=olympe.j.Color.create(217,83,79);this.F=N();this.ta=K();this.R=olympe.j.Color.create(230,230,230);this.ec=olympe.j.Color.create(230,230,230,.65);this.La=olympe.j.Color.create(72,85,99);this.vc=olympe.j.Color.create(73,71,63)}mm(a){return S(this,olympe.ui.D.ba.ak.
|
|
537
|
-
olympe.ui.D.ba.ak,a,b=>{const c=new olympe.ui.D.ba.ak;c.Jb(new olympe.j.ia(150,40));c.ob(this.F);c.zb(15);c.Db(400);c
|
|
538
|
-
return b})}uw(a){return S(this,olympe.ui.D.ba.Yk.
|
|
539
|
-
olympe.ui.D.ba.Zl.
|
|
540
|
-
c.bd(olympe.j.ha(2));c.hd(olympe.j.Color.create(148,157,159));c.Na(olympe.j.Color.create(180,181,181));c.kc(olympe.j.ha(10));b.O=c;return b})}Mt(a){return S(this,olympe.ui.D.ba.Sh.
|
|
541
|
-
new olympe.ui.D.ba.Sh;c.V.bc(olympe.ui.fa.tc.Nc);c.V.Ec(10);c.V.Ic(10);break;case 'dropdown-mouseoveritem':c.Na(this.La);c.bc(olympe.ui.fa.tc.Nc);c.Ec(10);c.Ic(10);break;case 'grid-cell':c.bc(olympe.ui.fa.tc.Nc);c
|
|
542
|
-
olympe.ui.D.ba.Fj.
|
|
543
|
-
a,()=>{const b=new olympe.ui.D.ba.mi;J(b.O,'dropdown-item');od(b);pd(b);b.ly('images/arrow2.png');var c=new olympe.j.ia(12,8);J(b.C,c);b.hd(M());b.Na(this.O);b.sd(2);b.rd(2);b.Ec(5);b.Ic(5);c=new olympe.ui.D.ba.dd;J(b.F,c);c.Na(this.O);return b})}ew(){return S(this,olympe.ui.D.ba.ki.
|
|
544
|
-
a.Dg().Na(olympe.j.Color.create(60,187,51));a.Dg().kc(100);a.yf().hd(olympe.j.Color.create(191,191,191));a.yf().bd(2);a.yf().kc(100);a.yf().Na(olympe.j.Color.create(230,230,230));a.wf().hd(olympe.j.Color.create(191,191,191));a.wf().bd(2);a.wf().kc(100);a.wf().Na(olympe.j.Color.create(230,230,230));return a})}sw(a){return S(this,olympe.ui.D.ba.Wk.
|
|
545
|
-
J(b.R,this.O);J(b.T,this.Ha);sd(b);td(b);ud(b);var c=M();J(b.O,c);return b})}kw(a){return S(this,olympe.ui.D.ba.Bj.
|
|
546
|
-
0,0,.6);J(b.C,c);b.Na(N());J(b.F,10);b.Hf(10);J(b.ga,'header1');J(b.Ha,'black_std');J(b.V,'selected');J(b.$,this.R);J(b.ka,this.ta);J(b.R,5);J(b.T,5);J(b.O,'"Helvetica Neue",Helvetica, Arial, sans-serif');return b})}jf(){return S(this,olympe.ui.D.ba.mr.
|
|
547
|
-
J(b.La,this.F);J(b.Ha,this.O);vd(b);wd(b);J(b.Ea,olympe.j.ha(1));var c=M();J(b.ka,c);J(b.C,1);c=M();J(b.$,c);J(b.ga,this.R);c=olympe.j.Uc(15,15);J(b.F,c);J(b.O,'images/close.png');return b})}yC(a){return S(this,olympe.ui.D.ba.Ds.
|
|
548
|
-
()=>{const b=new olympe.ui.D.ba.$l;b.pu(!1);return b})}rz(a){return S(this,olympe.ui.D.ba.nf.
|
|
549
|
-
olympe.ui.D.ba.Yo.
|
|
550
|
-
c.bd(0);c.yb('Arial');break;case 'warning':c.Jb(new olympe.j.ia(150,20));c.Na(olympe.j.Color.red());c.Yj(olympe.j.Color.create(180,0,0));b=N();J(c.C,b);c.hd(M());b=M();J(c.O,b);c.ob(N());b=M();J(c.F,b);c.zb(14);c.Db(700);c
|
|
551
|
-
215,215));c.zb(14);c.Db(700);c
|
|
552
|
-
b.kc(2);b.yb('Arial');return b})}Mt(a){return S(this,olympe.ui.D.ba.Sh.
|
|
553
|
-
c.Ec(5);c.Ic(5);c.yb('Arial');break;case 'grid-selected-cell':c.zb(12),c.Na(olympe.j.Color.create(0,138,227)),c.ob(N()),c.yb('Arial')}return c})}ow(a){return S(this,olympe.ui.D.ba.Fj.
|
|
554
|
-
.6);J(b.C,c);b.Na(N());J(b.F,20);b.Hf(20);J(b.O,'header1');J(b.R,'selected');return b})}iw(a){return S(this,olympe.ui.D.ba.mi.
|
|
555
|
-
return b})}ew(){return S(this,olympe.ui.D.ba.ki.
|
|
556
|
-
a,()=>{const b=new olympe.ui.D.ba.Wk;rd(b);J(b.C,olympe.j.ha(12));var c=K();J(b.ga,c);c=K();J(b.V,c);J(b.F,olympe.j.ha(400));c=N();J(b.R,c);c=olympe.j.Color.create(0,138,227);J(b.T,c);sd(b);td(b);J(b.Ea,olympe.j.ha(1));ud(b);c=M();J(b.O,c);c=M();J(b.ka,c);return b})}kw(a){return S(this,olympe.ui.D.ba.Bj.
|
|
557
|
-
olympe.ui.D.ba.Nk,a,()=>{const b=new olympe.ui.D.ba.Nk;b.Jb(new olympe.j.ia(500,1));b.be(!1);b.Xd(!0);var c=olympe.j.Color.create(0,0,0,.6);J(b.C,c);b.Na(N());J(b.F,20);b.Hf(20);J(b.ga,'header1');J(b.V,'selected');J(b.Cb,1);c=K();J(b.Ib,c);J(b.$,this.R);J(b.ka,this.ta);J(b.Mb,2);J(b.Ab,2);J(b.R,2);J(b.T,2);J(b.O,'Arial');return b})}jf(){return S(this,olympe.ui.D.ba.mr.
|
|
558
|
-
olympe.ui.D.ba.Ds.
|
|
535
|
+
olympe.ui.D.ba.Jp.Yb='windowcomponent';h=olympe.ui.D.ba.Jp.prototype;h.RL.K=olympe.j.J.T;h.qN.K=olympe.j.J.F;h.oN.K=olympe.j.J.F;h.pN.K=olympe.j.J.F;h.nN.K=olympe.j.J.R;h.lN.K=olympe.j.J.F;h.rN.K=new olympe.j.J(()=>olympe.j.Color,[]);h.kN.K=new olympe.j.J(()=>olympe.j.Color,[]);h.sN.K=new olympe.j.J(()=>String,[]);h.tN.K=new olympe.j.J(()=>String,[]);h.jN.K=new olympe.j.J(()=>olympe.j.Color,[]);h.gH.K=olympe.j.J.F;h.fH.K=new olympe.j.J(()=>olympe.j.Color,[]);h.mN.K=olympe.j.J.F;h.TL.K=olympe.j.J.V;
|
|
536
|
+
h.OL.K=new olympe.j.J(()=>olympe.j.Color,[]);h.UL.K=olympe.j.J.R;h.JL.K=olympe.j.J.F;h.SL.K=olympe.j.J.V;h.QL.K=olympe.j.J.F;h.PL.K=new olympe.j.J(()=>olympe.j.Color,[]);olympe.ui.D.ba.Tx=class extends olympe.ui.D.ba.ph{constructor(){super();this.ga=olympe.j.Color.create(43,62,80);this.O=olympe.j.Color.create(78,93,108);this.Ha=olympe.j.Color.create(92,184,92);this.Mb=olympe.j.Color.create(92,184,92,.65);this.Ab=olympe.j.Color.create(217,83,79);this.F=N();this.ta=K();this.R=olympe.j.Color.create(230,230,230);this.ec=olympe.j.Color.create(230,230,230,.65);this.La=olympe.j.Color.create(72,85,99);this.vc=olympe.j.Color.create(73,71,63)}mm(a){return S(this,olympe.ui.D.ba.ak.Yb,
|
|
537
|
+
olympe.ui.D.ba.ak,a,b=>{const c=new olympe.ui.D.ba.ak;c.Jb(new olympe.j.ia(150,40));c.ob(this.F);c.zb(15);c.Db(400);c.$b(olympe.ui.fa.Hb.Vb);c.bc(olympe.ui.fa.tc.Nc);c.yb('"Helvetica Neue",Helvetica, Arial, sans-serif');J(c.F,this.ec);J(c.C,this.Mb);c.Yj(olympe.j.Color.create(215,215,215));switch(b){case 'selected':c.Na(this.Ha);break;case 'warning':c.Na(this.Ab);break;default:c.Na(this.O)}return c})}JM(a){return S(this,olympe.ui.D.ba.xv.Yb,olympe.ui.D.ba.xv,a,()=>{const b=new olympe.ui.D.ba.xv;b.Na(this.R);
|
|
538
|
+
return b})}uw(a){return S(this,olympe.ui.D.ba.Yk.Yb,olympe.ui.D.ba.Yk,a,()=>{const b=new olympe.ui.D.ba.Yk;b.Na(this.R);b.ob(this.ta);b.sd(2);b.rd(2);b.Ec(5);b.Ic(5);b.yb('"Helvetica Neue",Helvetica, Arial, sans-serif');return b})}tw(a){return S(this,olympe.ui.D.ba.Xk.Yb,olympe.ui.D.ba.Xk,a,()=>{const b=new olympe.ui.D.ba.Xk;b.Na(this.R);b.ob(this.ta);b.sd(2);b.rd(2);b.Ec(5);b.Ic(5);b.Na(olympe.j.Color.create(230,230,230));b.yb('"Helvetica Neue",Helvetica, Arial, sans-serif');return b})}vz(a){return S(this,
|
|
539
|
+
olympe.ui.D.ba.Zl.Yb,olympe.ui.D.ba.Zl,a,()=>{const b=new olympe.ui.D.ba.Zl;var c=new olympe.ui.D.ba.dd;c.Jb(new olympe.j.ia(204,19));c.bd(olympe.j.ha(2));c.hd(olympe.j.Color.create(148,157,159));c.Na(olympe.j.Color.create(18,18,18,0));c.kc(olympe.j.ha(10));b.C=c;c=new olympe.ui.D.ba.dd;c.Jb(new olympe.j.ia(12,24));c.bd(olympe.j.ha(2));c.hd(olympe.j.Color.create(148,157,159));c.Na(olympe.j.Color.create(180,181,181));c.kc(olympe.j.ha(10));b.F=c;c=new olympe.ui.D.ba.dd;c.Jb(new olympe.j.ia(12,24));
|
|
540
|
+
c.bd(olympe.j.ha(2));c.hd(olympe.j.Color.create(148,157,159));c.Na(olympe.j.Color.create(180,181,181));c.kc(olympe.j.ha(10));b.O=c;return b})}Mt(a){return S(this,olympe.ui.D.ba.Sh.Yb,olympe.ui.D.ba.Sh,a,b=>{const c=new olympe.ui.D.ba.Sh;c.zb(12);c.yb('"Helvetica Neue",Helvetica, Arial, sans-serif');c.ob(this.F);switch(b){case 'header1':c.Db(800);c.zb(16);break;case 'header2':c.Db(800);c.zb(14);break;case 'dropdown-item':case 'dropdown-selectedvalue':c.bc(olympe.ui.fa.tc.Nc);c.Ec(10);c.Ic(10);c.V=
|
|
541
|
+
new olympe.ui.D.ba.Sh;c.V.bc(olympe.ui.fa.tc.Nc);c.V.Ec(10);c.V.Ic(10);break;case 'dropdown-mouseoveritem':c.Na(this.La);c.bc(olympe.ui.fa.tc.Nc);c.Ec(10);c.Ic(10);break;case 'grid-cell':c.bc(olympe.ui.fa.tc.Nc);c.$b(olympe.ui.fa.Hb.Vb);c.Ec(10);c.Ic(10);break;case 'grid-selected-cell':c.Na(this.O);c.ob(this.F);c.bc(olympe.ui.fa.tc.Nc);c.$b(olympe.ui.fa.Hb.Vb);c.Ec(10);c.Ic(10);break;case olympe.ui.D.ba.nf.C.rv:c.Na(this.vc);break;case olympe.ui.D.ba.nf.C.JB:c.Na(this.La)}return c})}ow(a){return S(this,
|
|
542
|
+
olympe.ui.D.ba.Fj.Yb,olympe.ui.D.ba.Fj,a,()=>{const b=new olympe.ui.D.ba.Fj;b.kc(4);var c=olympe.j.Color.create(0,0,0,.6);J(b.C,c);b.Na(N());return b})}Br(a){return S(this,olympe.ui.D.ba.Fk.Yb,olympe.ui.D.ba.Fk,a,()=>{const b=new olympe.ui.D.ba.Fk;b.Jb(new olympe.j.ia(500,1));b.be(!1);b.Xd(!0);b.kc(4);var c=olympe.j.Color.create(0,0,0,.6);J(b.C,c);b.Na(N());J(b.F,20);b.Hf(20);J(b.O,'header1');J(b.T,'black_std');J(b.R,'selected');return b})}iw(a){return S(this,olympe.ui.D.ba.mi.Yb,olympe.ui.D.ba.mi,
|
|
543
|
+
a,()=>{const b=new olympe.ui.D.ba.mi;J(b.O,'dropdown-item');od(b);pd(b);b.ly('images/arrow2.png');var c=new olympe.j.ia(12,8);J(b.C,c);b.hd(M());b.Na(this.O);b.sd(2);b.rd(2);b.Ec(5);b.Ic(5);c=new olympe.ui.D.ba.dd;J(b.F,c);c.Na(this.O);return b})}ew(){return S(this,olympe.ui.D.ba.ki.Yb,olympe.ui.D.ba.ki,void 0,()=>{const a=new olympe.ui.D.ba.ki;a.sz().Jb(new olympe.j.ia(60,30));a.xf().Na(olympe.j.Color.create(230,230,230));a.xf().hd(olympe.j.Color.create(191,191,191));a.xf().bd(2);a.xf().kc(100);
|
|
544
|
+
a.Dg().Na(olympe.j.Color.create(60,187,51));a.Dg().kc(100);a.yf().hd(olympe.j.Color.create(191,191,191));a.yf().bd(2);a.yf().kc(100);a.yf().Na(olympe.j.Color.create(230,230,230));a.wf().hd(olympe.j.Color.create(191,191,191));a.wf().bd(2);a.wf().kc(100);a.wf().Na(olympe.j.Color.create(230,230,230));return a})}sw(a){return S(this,olympe.ui.D.ba.Wk.Yb,olympe.ui.D.ba.Wk,a,()=>{const b=new olympe.ui.D.ba.Wk;b.Na(this.ga);rd(b);J(b.C,olympe.j.ha(12));J(b.ga,this.F);J(b.V,this.F);J(b.F,olympe.j.ha(400));
|
|
545
|
+
J(b.R,this.O);J(b.T,this.Ha);sd(b);td(b);ud(b);var c=M();J(b.O,c);return b})}kw(a){return S(this,olympe.ui.D.ba.Bj.Yb,olympe.ui.D.ba.Bj,a,()=>{const b=new olympe.ui.D.ba.Bj;b.Na(this.ga);J(b.R,'grid-cell');J(b.C,'grid-cell');J(b.F,'grid-selected-cell');b.Vj(30);qd(b);var c=olympe.j.Color.create(0,0,0);J(b.O,c);return b})}Kt(a){return S(this,olympe.ui.D.ba.Nk.Yb,olympe.ui.D.ba.Nk,a,()=>{const b=new olympe.ui.D.ba.Nk;b.Jb(new olympe.j.ia(500,1));b.be(!1);b.Xd(!0);b.kc(4);var c=olympe.j.Color.create(0,
|
|
546
|
+
0,0,.6);J(b.C,c);b.Na(N());J(b.F,10);b.Hf(10);J(b.ga,'header1');J(b.Ha,'black_std');J(b.V,'selected');J(b.$,this.R);J(b.ka,this.ta);J(b.R,5);J(b.T,5);J(b.O,'"Helvetica Neue",Helvetica, Arial, sans-serif');return b})}jf(){return S(this,olympe.ui.D.ba.mr.Yb,olympe.ui.D.ba.mr,void 0,()=>{const a=new olympe.ui.D.ba.mr;a.Na(this.ga);return a})}Dz(a){return S(this,olympe.ui.D.ba.Jp.Yb,olympe.ui.D.ba.Jp,a,()=>{const b=new olympe.ui.D.ba.Jp;J(b.V,olympe.j.ha(40));J(b.R,olympe.j.ha(12));J(b.T,olympe.j.ha(400));
|
|
547
|
+
J(b.La,this.F);J(b.Ha,this.O);vd(b);wd(b);J(b.Ea,olympe.j.ha(1));var c=M();J(b.ka,c);J(b.C,1);c=M();J(b.$,c);J(b.ga,this.R);c=olympe.j.Uc(15,15);J(b.F,c);J(b.O,'images/close.png');return b})}yC(a){return S(this,olympe.ui.D.ba.Ds.Yb,olympe.ui.D.ba.Ds,a,()=>{const b=new olympe.ui.D.ba.Ds;J(b.O,this.ga);J(b.T,this.F);var c=olympe.j.Color.create(240,173,78);J(b.R,c);J(b.F,'images/datepicker.png');c=new olympe.j.ia(10,10);J(b.C,c);return b})}xz(a){return S(this,olympe.ui.D.ba.$l.Yb,olympe.ui.D.ba.$l,a,
|
|
548
|
+
()=>{const b=new olympe.ui.D.ba.$l;b.pu(!1);return b})}rz(a){return S(this,olympe.ui.D.ba.nf.Yb,olympe.ui.D.ba.nf,a,b=>{const c=new olympe.ui.D.ba.nf;switch(b){case olympe.ui.D.ba.nf.F.pF:J(c.C,olympe.ui.D.ba.nf.C.rv);break;default:J(c.C,olympe.ui.D.ba.nf.C.Wx)}return c})}NC(a){return S(this,olympe.ui.D.ba.it.Yb,olympe.ui.D.ba.it,a,()=>{let b=new olympe.ui.D.ba.it;b.be(!0);b.Xd(!0);b.hd(M());b.bd(1);var c=b.Na;var d=Tb('yellow',233,214,107,1);c.call(b,d);J(b.F,'grid-cell');return b})}lz(a){return S(this,
|
|
549
|
+
olympe.ui.D.ba.Yo.Yb,olympe.ui.D.ba.Yo,a,()=>new olympe.ui.D.ba.Yo)}};olympe.ui.D.ba.VX=class extends olympe.ui.D.ba.Tx{mm(a){return S(this,'button',olympe.ui.D.ba.ak,a,b=>{const c=new olympe.ui.D.ba.ak;switch(b){case 'selected':c.Jb(new olympe.j.ia(150,20));c.Na(olympe.j.Color.create(0,138,227));c.Yj(olympe.j.Color.create(0,110,180));b=N();J(c.C,b);c.hd(olympe.j.Color.create(128,128,128));b=olympe.j.Color.create(242,242,242);J(c.O,b);c.ob(N());b=olympe.j.Color.create(242,242,242);J(c.F,b);c.zb(14);c.Db(700);c.$b(olympe.ui.fa.Hb.Vb);c.bc(olympe.ui.fa.tc.Nc);c.kc(4);
|
|
550
|
+
c.bd(0);c.yb('Arial');break;case 'warning':c.Jb(new olympe.j.ia(150,20));c.Na(olympe.j.Color.red());c.Yj(olympe.j.Color.create(180,0,0));b=N();J(c.C,b);c.hd(M());b=M();J(c.O,b);c.ob(N());b=M();J(c.F,b);c.zb(14);c.Db(700);c.$b(olympe.ui.fa.Hb.Vb);c.bc(olympe.ui.fa.tc.Nc);c.kc(4);c.bd(0);c.yb('Arial');break;case 'default':c.Jb(new olympe.j.ia(150,20));c.Na(N());c.hd(M());c.bd(1);b=N();J(c.C,b);b=olympe.j.Color.create(242,242,242);J(c.O,b);b=olympe.j.Color.create(242,242,242);J(c.F,b);c.Yj(olympe.j.Color.create(215,
|
|
551
|
+
215,215));c.zb(14);c.Db(700);c.$b(olympe.ui.fa.Hb.Vb);c.bc(olympe.ui.fa.tc.Nc);c.kc(4);c.yb('Arial');break;default:return olympe.ui.D.ba.Tx.prototype.mm.call(this,b)}return c})}uw(a){return S(this,olympe.ui.D.ba.Yk.Yb,olympe.ui.D.ba.Yk,a,()=>{const b=new olympe.ui.D.ba.Yk;b.bd(1);b.hd(K());b.sd(2);b.rd(2);b.Ec(2);b.Ic(2);b.kc(2);b.yb('Arial');return b})}tw(a){return S(this,olympe.ui.D.ba.Xk.Yb,olympe.ui.D.ba.Xk,a,()=>{const b=new olympe.ui.D.ba.Xk;b.hd(K());b.bd(1);b.sd(2);b.rd(2);b.Ec(2);b.Ic(2);
|
|
552
|
+
b.kc(2);b.yb('Arial');return b})}Mt(a){return S(this,olympe.ui.D.ba.Sh.Yb,olympe.ui.D.ba.Sh,a,b=>{const c=new olympe.ui.D.ba.Sh;c.zb(12);c.yb('Arial');switch(b){case 'header1':c.Db(800);c.zb(16);c.yb('Arial');break;case 'header2':c.Db(800);c.zb(14);c.yb('Arial');break;case 'dropdown-item':case 'dropdown-selectedvalue':c.zb(14);c.bc(olympe.ui.fa.tc.Nc);c.Ec(5);c.Ic(5);c.yb('Arial');break;case 'dropdown-mouseoveritem':c.zb(14);c.Na(olympe.j.Color.create(17,108,214));c.ob(N());c.bc(olympe.ui.fa.tc.Nc);
|
|
553
|
+
c.Ec(5);c.Ic(5);c.yb('Arial');break;case 'grid-selected-cell':c.zb(12),c.Na(olympe.j.Color.create(0,138,227)),c.ob(N()),c.yb('Arial')}return c})}ow(a){return S(this,olympe.ui.D.ba.Fj.Yb,olympe.ui.D.ba.Fj,a,()=>{const b=new olympe.ui.D.ba.Fj;b.kc(4);var c=olympe.j.Color.create(0,0,0,.6);J(b.C,c);b.Na(N());return b})}Br(a){return S(this,olympe.ui.D.ba.Fk.Yb,olympe.ui.D.ba.Fk,a,()=>{const b=new olympe.ui.D.ba.Fk;b.Jb(new olympe.j.ia(500,1));b.be(!1);b.Xd(!0);b.kc(4);var c=olympe.j.Color.create(0,0,0,
|
|
554
|
+
.6);J(b.C,c);b.Na(N());J(b.F,20);b.Hf(20);J(b.O,'header1');J(b.R,'selected');return b})}iw(a){return S(this,olympe.ui.D.ba.mi.Yb,olympe.ui.D.ba.mi,a,()=>{const b=new olympe.ui.D.ba.mi;J(b.O,'dropdown-item');od(b);pd(b);b.ly('images/arrow.png');var c=new olympe.j.ia(20,20);J(b.C,c);b.hd(M());b.bd(1);b.Na(N());b.sd(2);b.rd(2);b.Ec(5);b.Ic(5);c=new olympe.ui.D.ba.dd;J(b.F,c);c.gh(new olympe.j.ia(2,2),10,1,olympe.j.Color.create(160,160,160));c.hd(M());c.bd(1);c.Na(olympe.j.Color.create(255,255,255,.9));
|
|
555
|
+
return b})}ew(){return S(this,olympe.ui.D.ba.ki.Yb,olympe.ui.D.ba.ki,void 0,()=>{const a=new olympe.ui.D.ba.ki;a.xf().Na(N());a.xf().hd(olympe.j.Color.create(191,191,191));a.xf().bd(2);a.xf().kc(100);a.Dg().Na(olympe.j.Color.create(60,187,51));a.Dg().kc(100);a.yf().hd(olympe.j.Color.create(191,191,191));a.yf().bd(2);a.yf().kc(100);a.yf().Na(N());a.wf().hd(olympe.j.Color.create(191,191,191));a.wf().bd(2);a.wf().kc(100);a.wf().Na(N());return a})}sw(a){return S(this,olympe.ui.D.ba.Wk.Yb,olympe.ui.D.ba.Wk,
|
|
556
|
+
a,()=>{const b=new olympe.ui.D.ba.Wk;rd(b);J(b.C,olympe.j.ha(12));var c=K();J(b.ga,c);c=K();J(b.V,c);J(b.F,olympe.j.ha(400));c=N();J(b.R,c);c=olympe.j.Color.create(0,138,227);J(b.T,c);sd(b);td(b);J(b.Ea,olympe.j.ha(1));ud(b);c=M();J(b.O,c);c=M();J(b.ka,c);return b})}kw(a){return S(this,olympe.ui.D.ba.Bj.Yb,olympe.ui.D.ba.Bj,a,()=>{const b=new olympe.ui.D.ba.Bj;J(b.R,'grid-cell');J(b.C,'grid-cell');J(b.F,'grid-selected-cell');b.Vj(30);qd(b);var c=M();J(b.O,c);return b})}Kt(a){return S(this,olympe.ui.D.ba.Nk.Yb,
|
|
557
|
+
olympe.ui.D.ba.Nk,a,()=>{const b=new olympe.ui.D.ba.Nk;b.Jb(new olympe.j.ia(500,1));b.be(!1);b.Xd(!0);var c=olympe.j.Color.create(0,0,0,.6);J(b.C,c);b.Na(N());J(b.F,20);b.Hf(20);J(b.ga,'header1');J(b.V,'selected');J(b.Cb,1);c=K();J(b.Ib,c);J(b.$,this.R);J(b.ka,this.ta);J(b.Mb,2);J(b.Ab,2);J(b.R,2);J(b.T,2);J(b.O,'Arial');return b})}jf(){return S(this,olympe.ui.D.ba.mr.Yb,olympe.ui.D.ba.mr,void 0,()=>new olympe.ui.D.ba.mr)}};olympe.ui.D.ba.Ds=class extends olympe.ui.D.ba.dd{constructor(){super();this.F=olympe.j.xb('');this.C=olympe.j.Uc(10,10);this.O=olympe.j.Sc();this.V=olympe.j.Sc();this.ga=olympe.j.ha();this.T=olympe.j.Sc();this.R=olympe.j.Sc();this.Ea=olympe.j.Sc();this.Ha=olympe.j.Sc();this.Mb=olympe.j.Sc();this.Ab=olympe.j.Sc();this.La=olympe.j.ha();this.Ib=olympe.j.ha();this.$=olympe.j.Sc();this.ka=olympe.j.ha();this.Cb=olympe.j.ha()}ML(){return this.F}LL(){return this.C}BM(){return this.O}vQ(){return this.V}lV(){return this.ga}DM(){return this.T}CM(){return this.R}IL(){return this.Ea}bN(){return this.Ha}iN(){return this.Mb}hN(){return this.Ab}eN(){return this.La}fN(){return this.Ib}cN(){return this.$}dN(){return this.ka}gN(){return this.Cb}};
|
|
558
|
+
olympe.ui.D.ba.Ds.Yb='datepicker';h=olympe.ui.D.ba.Ds.prototype;h.ML.K=olympe.j.J.R;h.LL.K=olympe.j.J.V;h.BM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.vQ.K=new olympe.j.J(()=>olympe.j.Color,[]);h.lV.K=olympe.j.J.F;h.DM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.CM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.IL.K=new olympe.j.J(()=>olympe.j.Color,[]);h.bN.K=new olympe.j.J(()=>olympe.j.Color,[]);h.iN.K=new olympe.j.J(()=>olympe.j.Color,[]);h.hN.K=new olympe.j.J(()=>olympe.j.Color,[]);h.eN.K=olympe.j.J.F;
|
|
559
559
|
h.fN.K=olympe.j.J.F;h.cN.K=new olympe.j.J(()=>olympe.j.Color,[]);h.dN.K=olympe.j.J.F;h.gN.K=olympe.j.J.F;olympe.ui.D.Nf=class extends olympe.ui.D.Element{constructor(a){super(a.C(olympe.N.D.Nf,olympe.host.qa.nb.LJ));a=a.F().jf();this.ka=new olympe.j.ia(0,0);this.$=void 0;this.R=new olympe.ui.Z.Hn(this.tk());this.size=new olympe.j.ia;this.V=this.C=null;this.tk().Zr((b,c)=>{this.size.oe(b);this.size.Ge(c)});this.Na(a.Rp());this.tg(a.Up(),olympe.ui.fa.Vg.Vf,olympe.ui.fa.Re.Vf,a.Tp(),a.Sp())}tk(){return this.pa()}gi(a){this.tk().gi(a);return this}Iv(a){this.tk().Iv(a);return this}Xw(a){this.tk().Xw(a);return this}appendChild(a,
|
|
560
560
|
b,c){void 0!==c&&a.setPosition(c);this.tk().appendChild(T(a),b);a.mf(this);return this}removeChild(a){this.tk().removeChild(a);return this}clear(){this.tk().ig();return this}la(){return this.size}td(){return this.size.na()}ve(){return this.size.ra()}Bh(){return this.ka}Lj(){return this.R.Lj()}kj(a,b,c){return this.R.kj(a,b,c)}F(a){this.R.F(a)}Kj(){return this.R.Kj()}yk(a,b,c){return this.R.yk(a,b,c)}T(a){this.R.T(a)}Mj(){return this.R.Mj()}lj(a,b,c){return this.R.lj(a,b,c)}O(a){this.R.O(a)}wQ(){void 0===
|
|
561
561
|
this.$&&(this.$=olympe.j.pb(String),this.tk().Tz(a=>{I(this.$,a)}));return this.$}hH(a){olympe.j.ib().Vd(()=>this.tk().R(a.xa()));var b=a.Cz();const c=Object.keys(b);let d;if(1<=c.length)d=c[0],b=b[d],1<c.length&&console.warn('Multiple font files is currently not supported.');else throw Error('No url was provided for the font file.');this.tk().O(a.BC(),a.Bz(),a.QC(),d,b,a.xa())}SD(a,b={}){const c=olympe.j.Ua;this.C||olympe.j.ml().run(()=>{this.C=new olympe.ui.D.gb;this.C.be(!0).Xd(!0).sd(5).rd(5).Ec(5).Ic(5).Tg(1E4).qd(!0);
|
|
@@ -567,25 +567,25 @@ olympe.ui.D.vb=class extends olympe.ui.D.Element{constructor(a,b){super(a);this.
|
|
|
567
567
|
return this}Fd(a,b){this.bd(a);this.hd(b);return this}bd(a){T(this).bd(a)}hd(a){T(this).hd(a.ii())}Jq(a){T(this).Jq(a);return this}gh(a,b,c,d,e){T(this).gh(olympe.j.Ef(a,f=>f.na()),olympe.j.Ef(a,f=>f.ra()),b||0,c||0,olympe.j.Ef(d,f=>f.ii()),e);return this}tX(a,b,c,d,e){olympe.j.ab([c,b,e,d,a],(f,g,k,l,m)=>{T(this).gh(f*Math.cos(g),f*Math.sin(g),k*(1-l/100),k*l/100,m.ii())});return this}fh(a){olympe.j.ab([a],b=>{T(this).xu(b.na(),b.ra())});return this}yX(a){T(this).xu(a,a);return this}Tg(a){T(this).Tg(a);
|
|
568
568
|
return this}getParent(){return this.parent}mf(a){J(this.parent,a);return this}Bh(){null===this.vc&&R(this,()=>{this.vc=new olympe.j.ia(0,0)});olympe.j.Ef(this.parent,a=>{const b=a.Bh(),c=this.vc;a instanceof olympe.ui.D.Bd?(a=a.T(),c.oe(olympe.j.tj([this.na(),b.na(),a.na()],(d,e,f)=>olympe.j.Ca(d+e-f))),c.Ge(olympe.j.tj([this.ra(),b.ra(),a.ra()],(d,e,f)=>olympe.j.Ca(d+e-f)))):(c.oe(olympe.j.tj([this.na(),b.na()],(d,e)=>olympe.j.Ca(d+e))),c.Ge(olympe.j.tj([this.ra(),b.ra()],(d,e)=>olympe.j.Ca(d+e))))});
|
|
569
569
|
return this.vc}nj(a){T(this).nj(a);return this}Zf(){return this}Nd(a){a&&(super.Nd(a),this.Fd(a.zi(),a.bl()),this.kc(a.Vp()),this.Yt||this.Jb(a.la()),this.gh(a.Kr(),a.Lr(),a.Mr(),a.Ir(),a.Jr()))}};h=olympe.ui.D.vb.prototype;h.setPosition.K=olympe.j.J.C([]);h.Pe.K=olympe.j.J.V;h.na.K=olympe.j.J.F;h.ra.K=olympe.j.J.F;h.Jb.K=olympe.j.J.C([]);h.la.K=olympe.j.J.V;h.td.K=olympe.j.J.F;h.ve.K=olympe.j.J.F;h.kc.K=olympe.j.J.C([]);h.Fd.K=olympe.j.J.C([]);h.Jq.K=olympe.j.J.C([]);h.gh.K=olympe.j.J.C([]);
|
|
570
|
-
h.tX.K=olympe.j.J.C([]);h.fh.K=olympe.j.J.C([]);h.yX.K=olympe.j.J.C([]);h.Tg.K=olympe.j.J.C([]);h.getParent.K=new olympe.j.J(()=>olympe.ui.D.Element,[]);h.mf.K=olympe.j.J.C([]);h.Bh.K=olympe.j.J.V;h.nj.K=olympe.j.J.C([]);h.Zf.K=olympe.j.J.C([]);olympe.ui.D.Vu=class{constructor(){}Rb(){}Db(){}yb(){}zb(){}Qd(){}ob(){}bc(){}
|
|
570
|
+
h.tX.K=olympe.j.J.C([]);h.fh.K=olympe.j.J.C([]);h.yX.K=olympe.j.J.C([]);h.Tg.K=olympe.j.J.C([]);h.getParent.K=new olympe.j.J(()=>olympe.ui.D.Element,[]);h.mf.K=olympe.j.J.C([]);h.Bh.K=olympe.j.J.V;h.nj.K=olympe.j.J.C([]);h.Zf.K=olympe.j.J.C([]);olympe.ui.D.Vu=class{constructor(){}Rb(){}Db(){}yb(){}zb(){}Qd(){}ob(){}bc(){}$b(){}};olympe.ui.D.gb=class extends olympe.ui.D.vb{constructor(a,b){const c=new olympe.j.ia;super(olympe.ui.Wa.C(olympe.N.D.gb,olympe.host.qa.nb.KJ),c);this.paddingTop=olympe.j.qb(olympe.j.aa).update(olympe.j.aa.ZERO);olympe.j.ab([this.paddingTop],g=>{T(this).sd(g.valueOf())});this.paddingBottom=olympe.j.qb(olympe.j.aa).update(olympe.j.aa.ZERO);olympe.j.ab([this.paddingBottom],g=>{T(this).rd(g.valueOf())});this.paddingLeft=olympe.j.qb(olympe.j.aa).update(olympe.j.aa.ZERO);olympe.j.ab([this.paddingLeft],
|
|
571
571
|
g=>{T(this).Ec(g.valueOf())});this.paddingRight=olympe.j.qb(olympe.j.aa).update(olympe.j.aa.ZERO);olympe.j.ab([this.paddingRight],g=>{T(this).Ic(g.valueOf())});this.O=olympe.j.xb(b);this.F=olympe.j.qb(olympe.j.ja);Hb(this.F,olympe.j.ja.wb);this.C=olympe.j.qb(olympe.j.lb);Hb(this.C,olympe.j.jc(olympe.ui.fa.Tn.Ru));T(this).fi(this.C.Ba());olympe.j.ab([this.F,this.C],(g,k)=>{g.valueOf()?T(this).Du('pre-wrap'):k.valueOf()!==olympe.ui.fa.Tn.Ru?T(this).Du('nowrap'):T(this).Du('pre')});this.T=olympe.j.Tc(void 0===
|
|
572
572
|
a);this.R=olympe.j.Tc(void 0===a);b=olympe.ui.Wa.F().Mt(this.O);olympe.ui.D.gb.prototype.Nd.call(this,b);const d=void 0!==a?a:b.la();let e=null;const f=olympe.j.ib().md(()=>{e=new olympe.j.ia;T(this).Lo((g,k)=>{e.oe(g);e.Ge(k)})});olympe.j.ab([this.T,this.R],(g,k)=>{g=g.valueOf();k=k.valueOf();T(this).be(g);T(this).Xd(k);g||k?(null===e&&f(),g?c.oe(e.na().$a(this.paddingLeft.Ba()).$a(this.paddingRight.Ba())):c.oe(d.na()),k?c.Ge(e.ra().$a(this.paddingTop.Ba()).$a(this.paddingBottom.Ba())):c.Ge(d.ra())):
|
|
573
|
-
(T(this).Mq(),e=null,c.oe(d.na()),c.Ge(d.ra()))})}Rb(a){T(this).Rb(a);return this}Db(a){T(this).Db(a);return this}yb(a){T(this).yb(a);return this}zb(a){T(this).zb(a);return this}Qd(a){T(this).Qd(a);return this}ob(a){T(this).ob(olympe.j.Ef(a,b=>b.ii()));return this}Xs(a){olympe.j.Pg(a)?this.F.repeat(a):this.F.update(a)}fi(a){olympe.j.Pg(a)?this.C.repeat(a):this.C.update(a);return this}
|
|
573
|
+
(T(this).Mq(),e=null,c.oe(d.na()),c.Ge(d.ra()))})}Rb(a){T(this).Rb(a);return this}Db(a){T(this).Db(a);return this}yb(a){T(this).yb(a);return this}zb(a){T(this).zb(a);return this}Qd(a){T(this).Qd(a);return this}ob(a){T(this).ob(olympe.j.Ef(a,b=>b.ii()));return this}Xs(a){olympe.j.Pg(a)?this.F.repeat(a):this.F.update(a)}fi(a){olympe.j.Pg(a)?this.C.repeat(a):this.C.update(a);return this}$b(a){T(this).$b(a);return this}bc(a){T(this).bc(a);return this}be(a){J(this.T,a);return this}Xd(a){J(this.R,a);return this}Vj(a){T(this).Vj(a);
|
|
574
574
|
return this}Ec(a){olympe.j.Pg(a)?this.paddingLeft.repeat(a):('number'===typeof a&&(a=olympe.j.Ca(a)),this.paddingLeft.update(a));return this}Ic(a){olympe.j.Pg(a)?this.paddingRight.repeat(a):('number'===typeof a&&(a=olympe.j.Ca(a)),this.paddingRight.update(a));return this}sd(a){olympe.j.Pg(a)?this.paddingTop.repeat(a):('number'===typeof a&&(a=olympe.j.Ca(a)),this.paddingTop.update(a));return this}rd(a){olympe.j.Pg(a)?this.paddingBottom.repeat(a):('number'===typeof a&&(a=olympe.j.Ca(a)),this.paddingBottom.update(a));
|
|
575
|
-
return this}zl(a){olympe.j.ab([a],b=>{T(this).zl(b.valueOf())});return this}Zf(a){J(this.O,a);return this}Nd(a){a&&(super.Nd(a),this.zb(a.FG()),this.Db(a.Ci()),this.yb(a.Bi()),this.Qd(a.ll()),this.rd(a.GG()),this.Ec(a.HG()),this.Ic(a.IG()),this.sd(a.JG()),this.ob(a.KG()),this
|
|
576
|
-
h.Xs.K=olympe.j.J.C([]);h.
|
|
575
|
+
return this}zl(a){olympe.j.ab([a],b=>{T(this).zl(b.valueOf())});return this}Zf(a){J(this.O,a);return this}Nd(a){a&&(super.Nd(a),this.zb(a.FG()),this.Db(a.Ci()),this.yb(a.Bi()),this.Qd(a.ll()),this.rd(a.GG()),this.Ec(a.HG()),this.Ic(a.IG()),this.sd(a.JG()),this.ob(a.KG()),this.$b(a.LG()),this.bc(a.MG()))}};olympe.ui.D.gb.ua=[olympe.ui.D.Vu];h=olympe.ui.D.gb.prototype;h.Rb.K=olympe.j.J.C([]);h.Db.K=olympe.j.J.C([]);h.yb.K=olympe.j.J.C([]);h.zb.K=olympe.j.J.C([]);h.Qd.K=olympe.j.J.C([]);h.ob.K=olympe.j.J.C([]);
|
|
576
|
+
h.Xs.K=olympe.j.J.C([]);h.$b.K=olympe.j.J.C([]);h.bc.K=olympe.j.J.C([]);h.be.K=olympe.j.J.C([]);h.Xd.K=olympe.j.J.C([]);h.Vj.K=olympe.j.J.C([]);h.Ec.K=olympe.j.J.C([0]);h.Ic.K=olympe.j.J.C([0]);h.sd.K=olympe.j.J.C([0]);h.rd.K=olympe.j.J.C([0]);h.zl.K=olympe.j.J.C([0]);h.Zf.K=olympe.j.J.C([]);function xd(a,b,c){a.O().appendChild(T(b),c);b.mf(a)}olympe.ui.D.ee=class extends olympe.ui.D.vb{constructor(a){super(olympe.ui.Wa.C(olympe.N.D.ee,olympe.host.qa.nb.Gy),a)}O(){return this.Ce()}appendChild(){}removeChild(){}Op(){this.O().Op();return this}};function yd(a,b){a.Ce().hA(b.na());a.Ce().iA(b.ra())}olympe.ui.D.Bd=class extends olympe.ui.D.vb{constructor(a){super(olympe.ui.Wa.C(olympe.N.D.Bd,olympe.host.qa.nb.MJ));this.V=null;void 0!==a&&this.Jb(a)}le(a){this.Ce().le(T(a));a.mf(this)}vt(){this.Ce().vt()}ps(a){this.Ce().ps(a)}yu(a){this.Ce().yu(a)}zu(a){this.Ce().zu(a)}T(){null===this.V&&R(this,()=>{this.V=new olympe.j.ia(0,0);this.Ce().Uz((a,b)=>{this.V.oe(a);this.V.Ge(b)})});return this.V}};olympe.ui.D.Bd.prototype.T.K=olympe.j.J.V;olympe.ui.D.Vq=class{Lv(){}la(){}Az(){}oz(){}};olympe.ui.D.Vq.prototype.Lv.K=new olympe.j.J(()=>olympe.ui.D.vb,[]);olympe.ui.D.Vq.prototype.la.K=olympe.j.J.V;olympe.ui.D.Vq.prototype.Az.K=olympe.j.J.F;olympe.ui.D.Vq.prototype.oz.K=olympe.j.J.F;olympe.ui.D.rB=class{constructor(a,b,c){this.C=new olympe.j.Ae(olympe.ui.D.vb);this.$=olympe.j.ha(0);this.ga=olympe.j.ha(Number.MAX_SAFE_INTEGER);this.T=olympe.j.ha(a);const d=this.C.Ch(this.C.ed().Fa(1));this.F=olympe.j.Tc(void 0!==b?b:!1);this.Fz=olympe.j.Tc(!1);this.Uv=olympe.j.pb(olympe.ui.D.ba.dd);this.Tv=olympe.j.ha();this.O=olympe.j.cb(this.Fz,()=>this.Tv,()=>olympe.j.Ca(0),olympe.j.aa);this.animation=olympe.j.pb(olympe.ui.D.gm);this.dz=olympe.j.ha(0);this.R=!1;this.V=olympe.j.cb(this.F,()=>
|
|
577
577
|
new olympe.j.ia(olympe.j.th(d.na().$a(d.td()),0),a),()=>new olympe.j.ia(a,olympe.j.th(d.ra().$a(d.ve()),0)),olympe.j.ia);olympe.ui.D.rB.prototype.ka.call(this,olympe.ui.Wa.F().xz(c))}Lv(a,b,c,d,e,f,g){const k=e.hf(d),l=olympe.j.Ca(0),m=olympe.j.qb(olympe.ui.D.vb);olympe.j.ab([k],v=>{0<v.valueOf()?(v=this.C.Ch(v.valueOf()-1),olympe.j.ab([v],x=>{m.update(x)})):(v=olympe.j.ib(),olympe.j.Gm(v)&&vb(v),m.clear())});const n=m.Ba(),p=olympe.j.cb(this.F,()=>new olympe.j.ia(Eb(n.na().$a(n.td()),l),l),()=>new olympe.j.ia(l,
|
|
578
|
-
Eb(n.ra().$a(n.ve()),l)),olympe.j.ia),r=olympe.j.cb(this.F,()=>new olympe.j.ia(p.na().$a(this.O),p.ra()),()=>new olympe.j.ia(p.na(),p.ra().$a(this.O)),olympe.j.ia),t=new olympe.ui.D.se(olympe.j.cb(this.F,()=>new olympe.j.ia(this.O,this.T),()=>new olympe.j.ia(this.T,this.O),olympe.j.ia));t.Nd(this.Uv);t.qd(k.
|
|
578
|
+
Eb(n.ra().$a(n.ve()),l)),olympe.j.ia),r=olympe.j.cb(this.F,()=>new olympe.j.ia(p.na().$a(this.O),p.ra()),()=>new olympe.j.ia(p.na(),p.ra().$a(this.O)),olympe.j.ia),t=new olympe.ui.D.se(olympe.j.cb(this.F,()=>new olympe.j.ia(this.O,this.T),()=>new olympe.j.ia(this.T,this.O),olympe.j.ia));t.Nd(this.Uv);t.qd(k.df(0));t.setPosition(p);a.appendChild(t,'divider-'+d);const u=b(c,d,k,e,g);u.setPosition(r);a.appendChild(u,d);const w=G(this.animation);w&&(u.jg(0),olympe.j.ab([k],v=>{const x=G(this.dz).valueOf()*
|
|
579
579
|
v.valueOf();0<x&&!this.R?tc(()=>{v.valueOf()>=e.dj()-1&&(this.R=!0);u.jg(1);w.Tj(u,a)},x):(u.jg(1),w.Tj(u,a))}));this.C.set(d,u,k);olympe.j.ib().Vd(()=>{f.rg()||(this.C.remove(d),0===this.C.dj()&&(this.R=!1))});return u}la(){return this.V}Az(){return this.$}oz(){return this.ga}bA(a){J(this.Uv,a)}aA(a){J(this.Tv,a)}pu(a){J(this.Fz,a)}iH(a){J(this.animation,a)}jH(a){J(this.dz,a)}ka(a){this.bA(a.dM());this.aA(a.cM());this.pu(a.Fz());this.iH(a.Cr());this.jH(a.dz)}};olympe.ui.D.rB.ua=[olympe.ui.D.Vq];
|
|
580
|
-
h=olympe.ui.D.rB.prototype;h.Lv.K=new olympe.j.J(()=>olympe.ui.D.vb,[]);h.la.K=olympe.j.J.V;h.Az.K=olympe.j.J.F;h.oz.K=olympe.j.J.F;h.bA.K=olympe.j.J.C([]);h.aA.K=olympe.j.J.C([]);h.pu.K=olympe.j.J.C([]);h.iH.K=olympe.j.J.C([]);h.jH.K=olympe.j.J.C([]);olympe.ui.D.RA=class extends olympe.ui.D.Bd{constructor(a,b,c,d,e,f,g,k){super();this.data=olympe.j.pb(olympe.j.Lg);this
|
|
580
|
+
h=olympe.ui.D.rB.prototype;h.Lv.K=new olympe.j.J(()=>olympe.ui.D.vb,[]);h.la.K=olympe.j.J.V;h.Az.K=olympe.j.J.F;h.oz.K=olympe.j.J.F;h.bA.K=olympe.j.J.C([]);h.aA.K=olympe.j.J.C([]);h.pu.K=olympe.j.J.C([]);h.iH.K=olympe.j.J.C([]);h.jH.K=olympe.j.J.C([]);olympe.ui.D.RA=class extends olympe.ui.D.Bd{constructor(a,b,c,d,e,f,g,k){super();this.data=olympe.j.pb(olympe.j.Lg);this.$e=olympe.j.pb(olympe.ui.D.RA.C);this.R=olympe.j.pb(olympe.ui.D.Vq);this.content=new olympe.ui.D.He(d.la());this.ka=olympe.j.pb(String);this.La=olympe.j.xb(olympe.ui.D.ba.nf.C.JB);this.Ea=olympe.j.xb(olympe.ui.D.ba.nf.C.Wx);this.Ha=olympe.j.xb(olympe.ui.D.ba.nf.C.rv);this.ta=olympe.j.Tc(f);this.$=olympe.j.Tc(g);this.C=new olympe.j.Map;this.O=new olympe.j.Map;this.F=olympe.j.pb(olympe.j.ia);
|
|
581
581
|
this.lH(c);this.le(this.content);this.bO(d);this.kH(b);this.WN(void 0===e?void 0!==a?olympe.ui.fa.hp.Vf:olympe.ui.fa.hp.hE:e);J(this.F,a);super.Jb(Bb(this.ka,l=>{switch(l.valueOf()){case olympe.ui.fa.hp.CO:return new olympe.j.ia(this.R.la().na(),this.F.ra());case olympe.ui.fa.hp.BO:return new olympe.j.ia(this.F.na(),this.R.la().ra());case olympe.ui.fa.hp.hE:return this.R.la();case olympe.ui.fa.hp.tS:return new olympe.j.ia(this.R.la().na().cn(this.F.na()),this.F.ra());case olympe.ui.fa.hp.sS:return new olympe.j.ia(this.F.na(),
|
|
582
|
-
this.R.la().ra().cn(this.F.ra()));case olympe.ui.fa.hp.uS:return new olympe.j.ia(this.R.la().na().cn(this.F.na()),this.R.la().ra().cn(this.F.ra()));default:return a}},null,olympe.j.ia));olympe.ui.D.RA.prototype.Nd.call(this,olympe.ui.Wa.F().rz(k));olympe.j.ab([this.data],l=>{this.C.oi(l.Qe())});olympe.j.Kh([this.data,this
|
|
583
|
-
(x.ky().valueOf()&&olympe.j.Ua(this.$).valueOf()||(this.C.clear(),this.O.clear()),this.C.set(r,p),this.O.set(r,r)):!x.ky().valueOf()&&1<this.C.dj()?(this.C.clear(),this.O.clear(),this.C.set(r,p),this.O.set(r,r)):x.ky().valueOf()?(this.O.remove(r),this.C.remove(r)):(this.C.clear(),this.O.clear())});J(u,olympe.j.cb(this.C.has(r),()=>this.La,()=>olympe.j.cb(t.hf(r).Bw(2).
|
|
582
|
+
this.R.la().ra().cn(this.F.ra()));case olympe.ui.fa.hp.uS:return new olympe.j.ia(this.R.la().na().cn(this.F.na()),this.R.la().ra().cn(this.F.ra()));default:return a}},null,olympe.j.ia));olympe.ui.D.RA.prototype.Nd.call(this,olympe.ui.Wa.F().rz(k));olympe.j.ab([this.data],l=>{this.C.oi(l.Qe())});olympe.j.Kh([this.data,this.$e,this.R,this.ka],(l,m,n)=>{l.forEach((p,r,t)=>{const u=olympe.j.xb(),w=n.Lv(this.content,m,p,r,t,this,u),v=olympe.j.Ua(this.ta);void 0!==v&&v.valueOf()&&w.Zc(x=>{void 0===this.C.zg(r)?
|
|
583
|
+
(x.ky().valueOf()&&olympe.j.Ua(this.$).valueOf()||(this.C.clear(),this.O.clear()),this.C.set(r,p),this.O.set(r,r)):!x.ky().valueOf()&&1<this.C.dj()?(this.C.clear(),this.O.clear(),this.C.set(r,p),this.O.set(r,r)):x.ky().valueOf()?(this.O.remove(r),this.C.remove(r)):(this.C.clear(),this.O.clear())});J(u,olympe.j.cb(this.C.has(r),()=>this.La,()=>olympe.j.cb(t.hf(r).Bw(2).df(0),()=>this.Ea,()=>this.Ha,olympe.j.lb),olympe.j.lb))})})}kH(a){J(this.data,a)}lH(a){J(this.$e,a)}bO(a){J(this.R,a)}WN(a){J(this.ka,
|
|
584
584
|
a)}zl(a){J(this.ta,a);return this}hX(a){J(this.$,a);return this}xV(){return this.O}xQ(){return this.O.Pd()}yV(){return this.C}yQ(){return this.C.Pd()}UN(a){J(this.Ea,a)}dO(a){J(this.Ha,a)}iO(a){J(this.La,a)}Jb(a){J(this.F,a);return this}NW(){G(this.$).valueOf()&&this.data.$h((a,b)=>{this.C.set(b,a);this.O.set(b,b)});return this}LT(){this.C.clear();this.O.clear();return this}Nd(a){super.Nd(a);this.UN(a.F());this.dO(a.O());this.iO(a.R())}};h=olympe.ui.D.RA.prototype;h.kH.K=olympe.j.J.C([]);h.lH.K=olympe.j.J.C([]);
|
|
585
|
-
h.bO.K=olympe.j.J.C([]);h.WN.K=olympe.j.J.C([]);h.zl.K=olympe.j.J.C([]);h.hX.K=olympe.j.J.C([]);h.xV.K=new olympe.j.J(()=>olympe.j.Map,[]);h.xQ.K=new olympe.j.J(()=>String,[]);h.yV.K=new olympe.j.J(()=>olympe.j.Map,[]);h.yQ.K=new olympe.j.J(()=>Object,[]);h.UN.K=olympe.j.J.C([]);h.dO.K=olympe.j.J.C([]);h.iO.K=olympe.j.J.C([]);h.Jb.K=olympe.j.J.C([]);h.NW.K=olympe.j.J.C([]);h.LT.K=olympe.j.J.C([]);olympe.ui.D.Ms=class extends olympe.ui.D.Bd{constructor(a,b,c,d,e=0,f=!1){super();this.F=olympe.j.ib();this.data=b;this.Cb=c;this
|
|
586
|
-
olympe.j.Ef(c,k=>{const l=this.data.Ch(0);olympe.j.mc(l)&&Ab(l,k);k=this
|
|
585
|
+
h.bO.K=olympe.j.J.C([]);h.WN.K=olympe.j.J.C([]);h.zl.K=olympe.j.J.C([]);h.hX.K=olympe.j.J.C([]);h.xV.K=new olympe.j.J(()=>olympe.j.Map,[]);h.xQ.K=new olympe.j.J(()=>String,[]);h.yV.K=new olympe.j.J(()=>olympe.j.Map,[]);h.yQ.K=new olympe.j.J(()=>Object,[]);h.UN.K=olympe.j.J.C([]);h.dO.K=olympe.j.J.C([]);h.iO.K=olympe.j.J.C([]);h.Jb.K=olympe.j.J.C([]);h.NW.K=olympe.j.J.C([]);h.LT.K=olympe.j.J.C([]);olympe.ui.D.Ms=class extends olympe.ui.D.Bd{constructor(a,b,c,d,e=0,f=!1){super();this.F=olympe.j.ib();this.data=b;this.Cb=c;this.$e=d;this.Ea=f||!1;this.R=olympe.j.createNode(olympe.j.aa);this.ka=olympe.j.createNode(olympe.j.aa);this.scrollWidth=a.na();this.ec=a.ra();this.O=olympe.j.createNode(Number);this.ta=olympe.j.createNode(Number);olympe.j.ab([this.ka,this.scrollWidth],(k,l)=>{l=l.valueOf();const m=Math.max(1,Math.floor(l/k));lb(this.ta,(l-k*m)/(m+1));lb(this.O,m)},'ForEachLimited itemLineSize and scrollWidth');
|
|
586
|
+
olympe.j.Ef(c,k=>{const l=this.data.Ch(0);olympe.j.mc(l)&&Ab(l,k);k=this.$e(l,0,olympe.j.ja.wb).la();wb(this.R,k.ra().$a(e).Zb);wb(this.ka,k.na().Zb)});this.$=olympe.j.qb(olympe.j.aa);this.La=olympe.j.qb(olympe.j.aa);olympe.j.ab([this.ec,this.R,this.O,this.data.ed()],(k,l,m,n)=>{this.F.rg()||(k=k.valueOf(),n=n.valueOf(),k=Math.min(Math.ceil(k/l)+2,Math.ceil(n/m))*l,tb(this.$.C),this.La.update(olympe.j.Ca(k)),l=m*Math.ceil(k/l),l=isNaN(l)?Infinity:l,this.$.update(olympe.j.Ca(Math.max(0,Math.min(n,
|
|
587
587
|
l)))))},'ForEachLimited count process flow');const g=olympe.j.fb([this.R,this.data.ed(),this.O,e],(k,l,m,n)=>olympe.j.Ca(Math.max(0,k*Math.ceil(l.valueOf()/m)-n)),olympe.j.aa);this.content=new olympe.ui.D.He(new olympe.j.ia(a.na(),g));this.C=[];this.selected=new olympe.j.Map(c);olympe.j.ab([this.$],k=>{if(!this.F.rg()){var l=k.valueOf(),m=this.O.lg,n=this.C.length,p=Math.floor(n/m),r=n%m,t=olympe.j.Ua(this.data);this.F.run(()=>{var u=t?t.dj():0;if(n<l){var w=Math.ceil(l/m);for(var v=p;v<w;v++)for(let x=
|
|
588
|
-
v===p?r:0;x<m;x++){const y=v*m+x;if(y>=u)break;const B=new olympe.j.Od(`ForEachLimitedTile[${v}]`),E=B.run(()=>new zd(this
|
|
588
|
+
v===p?r:0;x<m;x++){const y=v*m+x;if(y>=u)break;const B=new olympe.j.Od(`ForEachLimitedTile[${v}]`),E=B.run(()=>new zd(this.$e,this.Cb,this.hq.bind(this)));this.C[y]=E;this.content.appendChild(E.R,E.xa());B.run(()=>olympe.j.cb(this.Ea,()=>E.R.Zc(this.Ha.bind(this,E))))}}else{for(u=n;u>l;u--)w=this.C[u-1],v=w.xa(),this.content.removeChild(v),w.destroy();this.C.length=l}})}});olympe.j.ab([this.data,this.data.ed()],k=>{if(!this.F.rg()){var l=0,m=!0,n=this.T().ra();olympe.j.ab([this.R,this.ka,this.La,
|
|
589
589
|
n,this.$],(p,r,t,u,w)=>{if(!this.F.rg()){var v=olympe.j.Ua(g,-1).valueOf();if(u.valueOf()>v&&0<v)J(n,olympe.j.aa.ZERO);else{w=w.valueOf();if(!(0>=t.valueOf())){v=Math.floor(u.valueOf()/t.valueOf());u=Math.floor(u.valueOf()%t.valueOf()/p);var x=this.O.lg,y=this.ta.lg,B=w!==l;for(let D=0,P=Math.ceil(this.C.length/x);D<P;D++){var E=olympe.j.Ua(this.C[D*x].O.Ba()).valueOf();const ha=v+(D<u?1:0),Ia=ha*t.valueOf()+D*p;if(B&&(D+1)*x>l||m||E!==Ia){E=D===Math.floor(w/x)?w%x:x;for(let pa=0;pa<E;pa++){const Cb=
|
|
590
590
|
D*x+pa;if(!m&&B&&Cb<l)continue;const H=ha*w+Cb,W=this.C[Cb];Ad(W,()=>{olympe.j.ab([k.Ch(H)],Ca=>{W.O.update(olympe.j.Ca(Ia));W.V.update(olympe.j.Ca(pa*r+(pa+1)*y));var qa=W,Ja=k.dl(H),Ra=H;Ja!==qa.C&&(qa.C=Ja,J(qa.T,Ca),J(qa.ga,Ra),J(qa.selected,qa.hq(Ja)))},`ForEachLimited Tile update object in rank ${H} flow`)})}}}}l=w;m=!1}}})}});olympe.j.ab([this.ta,this.O],(k,l)=>{if(!this.F.rg()){var m=this.ka.lg,n=this.R.lg;for(let p=0,r=this.C.length;p<r;p++){const t=p%l,u=this.C[p];u.V.update(olympe.j.Ca(m*
|
|
591
591
|
t+k*(t+1)));u.O.update(olympe.j.Ca(Math.floor(p/l)*n))}}});this.data.forEach((k,l)=>olympe.j.ib().onDestroy(()=>{this.selected.remove(l)}));this.Jb(a);this.le(this.content)}Mb(){return this.selected}Ab(){return this.content.la()}hq(a){return void 0!==this.selected.zg(a)}ic(a){'string'===typeof a&&(a=[a]);if(a instanceof Array||a instanceof olympe.j.Ik){this.selected.clear();const b=this.C;for(let c=0,d=b.length;c<d;c++)J(b[c].selected,!1);a.forEach(c=>{for(let d=0,e=b.length;d<e;d++)if(c===b[d].C){this.Ha(b[d]);
|
|
@@ -594,13 +594,13 @@ class zd{constructor(a,b,c){this.id=olympe.oa.yL('ForEachLimited_row');this.F=ol
|
|
|
594
594
|
this.O.Ba()))}xa(){return this.id}destroy(){this.F&&(this.F.destroy(),this.F=null)}}olympe.ui.D.Ms.prototype.Mb.K=new olympe.j.J(()=>olympe.j.Map,[]);olympe.ui.D.Ms.prototype.Ab.K=olympe.j.J.V;olympe.ui.D.Ms.prototype.ic.K=olympe.j.J.C([]);olympe.ui.D.oc=class extends olympe.ui.D.ee{constructor(a,b,c){super();this.ec=olympe.j.xb(c);this.R=olympe.j.ha(0);this.gd=olympe.j.Sc();this.Kc=olympe.j.Sc();this.Qg=olympe.j.Sc();this.od=olympe.j.Sc();this.Ab=olympe.j.Sc();this.Mb=olympe.j.Sc();this.Cc=olympe.j.Sc();this.Fh=olympe.j.Sc();this.ae=olympe.j.Sc();this.Di=olympe.j.ha();this.Af=olympe.j.ha();this.Xc=olympe.j.ha();this.ic=olympe.j.Sc();this.V=olympe.j.Sc();this.Of=olympe.j.Tc(!1);this.Oe=olympe.j.Tc(!1);this.T=olympe.j.ha(0);this.Cb=
|
|
595
595
|
olympe.j.ha(0);this.La=olympe.j.ha(0);this.ka=olympe.j.qb(olympe.j.ja).update(olympe.j.ja.wb);this.Ea=olympe.j.xb('');c=this.td().Fa(this.R.jb(2));var d=this.ve().Fa(this.R.jb(2));this.C=new olympe.ui.D.gb(new olympe.j.ia(20,d));this.label=new olympe.ui.D.gb(new olympe.j.ia(0,d));this.label.be(!0);this.label.mb('pointer-events','inherit');this.ta=olympe.j.ha();this.$=olympe.j.ha();this.F=olympe.j.qb(olympe.j.ja);this.F.update(olympe.j.ja.wb);this.Ha=olympe.j.qb(olympe.j.ja).update(olympe.j.ja.wb);
|
|
596
596
|
const e=olympe.ui.Z.MouseEvent,f=this.dh(p=>{p.mm().Lc(e.Jx)&&this.F.update(olympe.j.ja.C)}),g=this.Rg(p=>{p.mm().Lc(e.Jx)&&this.F.update(olympe.j.ja.wb)}),k=this.Fi(()=>{this.F.update(olympe.j.ja.wb);this.Ha.update(olympe.j.ja.wb)}),l=this.mj(p=>{this.Ha.update(olympe.j.ja.C);p.zN(e.Jx).valueOf()&&this.F.update(olympe.j.ja.C)}),m=this.Zc(()=>{this.F.update(olympe.j.ja.wb)});olympe.j.ib().Vd(()=>{this.vk(f);this.Eg(g);this.Sj(k);this.wk(l);this.Rj(m)});const n=olympe.ui.Wa.F().mm(this.ec);d=(p,r,
|
|
597
|
-
t,u)=>olympe.j.fb([this.ka.Ba(),this.F.Ba(),this.Ha.Ba()],(w,v,x)=>w.valueOf()?t:v.valueOf()?r:x.valueOf()&&void 0!==u?u:p,olympe.j.Color);void 0!==b&&this.Rb(b);this.label.ob(d(this.V,this.Mb,this.Ab,this.V));this.C.Rb(this.Ea);this.C.ob(d(this.V,this.Mb,this.Ab,this.V));this.C.yb('FontAwesome');this.C
|
|
597
|
+
t,u)=>olympe.j.fb([this.ka.Ba(),this.F.Ba(),this.Ha.Ba()],(w,v,x)=>w.valueOf()?t:v.valueOf()?r:x.valueOf()&&void 0!==u?u:p,olympe.j.Color);void 0!==b&&this.Rb(b);this.label.ob(d(this.V,this.Mb,this.Ab,this.V));this.C.Rb(this.Ea);this.C.ob(d(this.V,this.Mb,this.Ab,this.V));this.C.yb('FontAwesome');this.C.$b(olympe.ui.fa.Hb.Vb);this.C.qd(this.Ea.hj());b=olympe.j.cb(this.Ea.hj(),()=>this.label.td(),()=>this.label.td().$a(this.C.td()).$a(this.La),olympe.j.aa);b=c.Fa(b).Va(2);this.label.setPosition(new olympe.j.ia(this.R.$a(b),
|
|
598
598
|
this.R));this.C.setPosition(new olympe.j.ia(this.label.Pe().na().$a(this.label.td()).$a(this.La),this.R));xd(this,this.label,'label');xd(this,this.C,'icon');olympe.ui.D.oc.prototype.Nd.call(this,n);olympe.ui.D.ee.prototype.bd.call(this,((p,r,t,u)=>olympe.j.fb([this.ka.Ba(),this.F.Ba(),this.Ha.Ba()],(w,v,x)=>w.valueOf()?t:v.valueOf()?r:x.valueOf()&&void 0!==u?u:p,olympe.j.aa))(this.R,this.Di,this.Xc,this.Af));olympe.ui.D.vb.prototype.hd.call(this,d(this.ic,this.Fh,this.Cc,this.ae));olympe.ui.D.vb.prototype.Na.call(this,
|
|
599
599
|
d(this.gd,this.Qg,this.Kc,this.od));J(this.$,void 0!==a?a.ra():n.la().ra());olympe.ui.D.vb.prototype.Jb.call(this,new olympe.j.ia(this.ta,this.$));olympe.j.cb(this.Of,()=>{this.label.Ec(this.T);olympe.j.Ua(this.Ea.hj()).valueOf()?(this.label.Ic(this.T),J(this.ta,this.label.td())):(this.C.Ic(this.T),J(this.ta,this.label.td().$a(this.C.td()).$a(this.La).$a(this.T)))},()=>{this.label.Ec(olympe.j.aa.ZERO);this.label.Ic(olympe.j.aa.ZERO);this.C.Ic(olympe.j.aa.ZERO);J(this.ta,void 0!==a?a.na():n.la().na())});
|
|
600
|
-
olympe.j.cb(this.Oe,()=>{this.label.sd(this.Cb);this.label.rd(this.Cb);J(this.$,this.label.la().ra())},()=>{this.label.sd(olympe.j.aa.ZERO);this.label.rd(olympe.j.aa.ZERO);J(this.$,void 0!==a?a.ra():n.la().ra())})}dX(a){this.label.Rb(a);return this}xD(a){J(this.Ea,a);return this}Rb(a){this.label.Rb(a);return this}fi(a){this.label.fi(a);return this}BQ(a){this.label.Xs(a);return this}
|
|
600
|
+
olympe.j.cb(this.Oe,()=>{this.label.sd(this.Cb);this.label.rd(this.Cb);J(this.$,this.label.la().ra())},()=>{this.label.sd(olympe.j.aa.ZERO);this.label.rd(olympe.j.aa.ZERO);J(this.$,void 0!==a?a.ra():n.la().ra())})}dX(a){this.label.Rb(a);return this}xD(a){J(this.Ea,a);return this}Rb(a){this.label.Rb(a);return this}fi(a){this.label.fi(a);return this}BQ(a){this.label.Xs(a);return this}$b(a){this.label.$b(a);return this}bc(a){this.label.bc(a);return this}zb(a){this.label.zb(a);return this}Qd(a){this.label.Qd(a);
|
|
601
601
|
return this}ob(a){return this.Gq(a)}Db(a){this.label.Db(a);return this}yb(a){this.label.yb(a);return this}Na(a){J(this.gd,a);return this}iB(a){J(this.Kc,a)}Yj(a){J(this.Qg,a);return this}AQ(a){J(this.od,a);return this}jB(a){J(this.Ab,a)}kB(a){J(this.Mb,a)}mH(a){J(this.Cc,a)}nH(a){J(this.Fh,a)}aX(a){J(this.ae,a);return this}oX(a){J(this.Di,a);return this}bX(a){J(this.Af,a);return this}XW(a){J(this.Xc,a);return this}be(a,b=0){a='boolean'===typeof a?olympe.j.Mc(a):a;b='number'===typeof b?olympe.j.Ca(b):
|
|
602
602
|
b;J(this.Of,a);J(this.T,b);return this}Xd(a,b=0){a='boolean'===typeof a?olympe.j.Mc(a):a;b='number'===typeof b?olympe.j.Ca(b):b;J(this.Oe,a);J(this.Cb,b);return this}cX(a=0){J(this.La,a);return this}Fd(a,b){this.bd(a);this.hd(b);return this}bd(a){J(this.R,a)}hd(a){J(this.ic,a)}Gq(a){J(this.V,a);return this}zQ(a){return this.Gq(a)}Gf(a){olympe.j.Pg(a)?this.ka.repeat(a):this.ka.update(a);return this}Jb(a){J(this.Of,!1);J(this.ta,a.na());J(this.$,a.ra());return this}Zc(a,b,c){return super.Zc(d=>{if(!olympe.j.Ua(this.ka).valueOf())return a(d)},
|
|
603
|
-
b,c)}Nd(a){a&&(super.Nd(a),this.be(a.tG(),a.EL()),this.iB(a.YL()),this.Yj(a.FM()),this.jB(a.$L()),this.kB(a.HM()),this.mH(a.ZL()),this.nH(a.GM()),this
|
|
603
|
+
b,c)}Nd(a){a&&(super.Nd(a),this.be(a.tG(),a.EL()),this.iB(a.YL()),this.Yj(a.FM()),this.jB(a.$L()),this.kB(a.HM()),this.mH(a.ZL()),this.nH(a.GM()),this.$b(a.wG()),this.bc(a.xG()),this.Gq(a.vG()),this.zb(a.uG()),this.yb(a.Bi()),this.Db(a.Ci()))}Zf(a){J(this.ec,a);return this}};olympe.ui.D.oc.ua=[olympe.ui.D.Vu];h=olympe.ui.D.oc.prototype;h.dX.K=olympe.j.J.C([]);h.xD.K=olympe.j.J.C([]);h.Rb.K=olympe.j.J.C([]);h.fi.K=olympe.j.J.C([]);h.BQ.K=olympe.j.J.C([]);h.$b.K=olympe.j.J.C([]);h.bc.K=olympe.j.J.C([]);
|
|
604
604
|
h.zb.K=olympe.j.J.C([]);h.Qd.K=olympe.j.J.C([]);h.ob.K=olympe.j.J.C([]);h.Db.K=olympe.j.J.C([]);h.yb.K=olympe.j.J.C([]);h.Na.K=olympe.j.J.C([]);h.iB.K=olympe.j.J.C([]);h.Yj.K=olympe.j.J.C([]);h.AQ.K=olympe.j.J.C([]);h.jB.K=olympe.j.J.C([]);h.kB.K=olympe.j.J.C([]);h.mH.K=olympe.j.J.C([]);h.nH.K=olympe.j.J.C([]);h.aX.K=olympe.j.J.C([]);h.oX.K=olympe.j.J.C([]);h.bX.K=olympe.j.J.C([]);h.XW.K=olympe.j.J.C([]);h.be.K=olympe.j.J.C([]);h.Xd.K=olympe.j.J.C([]);h.cX.K=olympe.j.J.C([]);h.bd.K=olympe.j.J.C([]);
|
|
605
605
|
h.hd.K=olympe.j.J.C([]);h.Gq.K=olympe.j.J.C([]);h.zQ.K=olympe.j.J.C([]);h.Gf.K=olympe.j.J.C([]);h.Jb.K=olympe.j.J.C([]);h.Zf.K=olympe.j.J.C([]);olympe.ui.D.se=class extends olympe.ui.D.vb{constructor(a){super(olympe.ui.Wa.C(olympe.N.D.ee,olympe.host.qa.nb.Gy),a)}};olympe.ui.D.Ol=class extends olympe.ui.D.vb{constructor(a){super(olympe.ui.Wa.C(olympe.N.D.ee,olympe.host.qa.nb.Gy));this.Jb(new olympe.j.ia(a,a));this.kc(this.la().na().Va(2))}};function Bd(a,b,c,d,e){d=void 0===d?olympe.j.aa.ZERO:olympe.j.ha(d);e=void 0===e?olympe.j.aa.ZERO:olympe.j.ha(e);olympe.j.cb(a.Ha.Ba(),()=>{a.V.repeat(olympe.j.aa.max(a.T))},()=>{olympe.j.Pg(b)?a.V.repeat(b):a.V.update(void 0!==b?b:olympe.j.aa.ZERO)});c=void 0!==c?olympe.j.Pg(c)?c:olympe.j.Ca(c):olympe.j.fb([a.R.ed(),a.Mb],(f,g)=>olympe.j.Ca(f-g),olympe.j.aa);a.Cb(a.V.Ba(),c,d,e);xd(a,a.content,'Layout content')}
|
|
606
606
|
olympe.ui.D.zs=class extends olympe.ui.D.ee{constructor(a,b,c,d,e,f=!1,g=!1){super();this.R=new olympe.j.Ky;this.ec=g;this.ic=f;this.Ha=olympe.j.qb(olympe.j.ja,'Abstract Layout childWatchedDimensionFS').update(void 0!==a?olympe.j.ja.wb:olympe.j.ja.C);this.V=Hb(olympe.j.qb(olympe.j.aa,'abstract Layout childWatchedDimension'),olympe.j.aa.ZERO);this.T=new olympe.j.Map(olympe.j.aa);this.T.set('DefaultSize',olympe.j.aa.ZERO);this.Mb=void 0===c?olympe.j.aa.ZERO:olympe.j.ha(c);this.content=new olympe.ui.D.He;
|
|
@@ -614,13 +614,13 @@ this.T=this.Ha.Va(this.ka).floor();this.ta=this.C.Va(this.T).ceil();this.R=olymp
|
|
|
614
614
|
var c=gc(this.Ea,b,olympe.j.ha(1)),d=a.la().na().$a(this.F);const e=a.la().ra().$a(this.F);d=c.Bw(this.T).jb(d).$a(this.F);c=c.Va(this.T).Fa(.5).round().jb(e);olympe.j.cb(this.ta.Oj(1).and(this.Oe),()=>{J(this.$,this.ta.jb(e))},()=>{J(this.$,a.la().ra())});a.setPosition(new olympe.j.ia(d.$a(this.Ab),c));xd(this,a,b);return this}removeChild(a){ec(this.Ea,a);J(this.C,G(this.C).Fa(1));this.O().removeChild(a);return this}ig(){ac(this.Ea);J(this.C,0);this.O().ig();return this}ed(){return this.C}Xd(a){J(this.Oe,
|
|
615
615
|
a);return this}TN(a){J(this.La,a)}};h=olympe.ui.D.Lf.prototype;h.appendChild.K=olympe.j.J.C([]);h.removeChild.K=olympe.j.J.C([]);h.ig.K=olympe.j.J.C([]);h.ed.K=olympe.j.J.F;h.Xd.K=olympe.j.J.C([]);h.TN.K=olympe.j.J.C([]);olympe.ui.D.II=class{constructor(a,b,c,d,e,f,g,k,l,m,n,p){this.Ib=olympe.j.ha(0);this.La=olympe.j.ha(Number.MAX_SAFE_INTEGER);new olympe.j.Ky;this.R=olympe.j.ha(0);this.Oe=olympe.j.Tc(!1);this.height=void 0===b?olympe.j.ha(0):olympe.j.ha(b);this.width=void 0===a?olympe.j.ha(0):olympe.j.ha(a);this.Ha=olympe.j.Tc(void 0!==p?p:!0);this.$=void 0===d?olympe.j.ha(0):olympe.j.ha(d);this.ka=void 0===e?olympe.j.ha(0):olympe.j.ha(e);this.Qa=void 0===f?olympe.j.ha(0):olympe.j.ha(f);this.Cb=void 0===k?olympe.j.ha(0):
|
|
616
616
|
olympe.j.ha(k);this.Ka=void 0===l?olympe.j.ha(0):olympe.j.ha(l);this.Ab=void 0===m?olympe.j.ha(0):olympe.j.ha(m);this.ta=this.width.Fa(this.ka).Fa(this.Qa);this.V=olympe.j.ha(c).$a(this.$);this.T=olympe.j.ha(g).$a(this.Cb);this.F=this.ta.Va(this.V).floor();this.ga=this.R.Va(this.F).ceil();this.C=olympe.j.ha();this.O=olympe.j.ha();void 0===b&&J(this.Oe,!0);olympe.j.cb(this.Oe,()=>{J(this.height,this.T)});void 0===n||n?olympe.j.cb(this.ga.Oj(1),()=>{J(this.C,this.F)},()=>{J(this.C,this.R)}):J(this.C,
|
|
617
|
-
this.F);olympe.j.cb(this.Ha,()=>{var r=this.V.jb(this.ta.Va(this.V).Fa(this.C));const t=this.C.$a(1);r=r.Va(t);J(this.O,r.$a(this.$))},()=>{J(this.O,this.$)});this.Ea=new olympe.j.ia(this.width.$a(this.ka).$a(this.Qa),this.height.$a(this.Ka).$a(this.Ab))}Lv(a,b,c,d,e,f,g){f=e.hf(d);const k=b(c,d,f,e,g);olympe.j.Ua(e.ed()).$a(1).
|
|
617
|
+
this.F);olympe.j.cb(this.Ha,()=>{var r=this.V.jb(this.ta.Va(this.V).Fa(this.C));const t=this.C.$a(1);r=r.Va(t);J(this.O,r.$a(this.$))},()=>{J(this.O,this.$)});this.Ea=new olympe.j.ia(this.width.$a(this.ka).$a(this.Qa),this.height.$a(this.Ka).$a(this.Ab))}Lv(a,b,c,d,e,f,g){f=e.hf(d);const k=b(c,d,f,e,g);olympe.j.Ua(e.ed()).$a(1).df(olympe.j.Ua(this.R)).valueOf()||J(this.R,e.ed());b=k.la().na().$a(this.O);const l=k.la().ra().$a(this.O);b=olympe.j.Ei(f.Bw(this.F).jb(b).$a(this.O),olympe.j.ha(300),olympe.j.aa.wh.fp);
|
|
618
618
|
f=olympe.j.Ei(f.Va(this.F).Fa(.5).round().jb(l),olympe.j.ha(300),olympe.j.aa.wh.fp);olympe.j.cb(this.ga.Oj(1).and(this.Oe),()=>{J(this.T,this.ga.jb(l))},()=>{J(this.T,k.la().ra())});k.setPosition(new olympe.j.ia(b.$a(this.ka),f.$a(this.Ka)));a.appendChild(k,d);return k}la(){return this.Ea}Az(){return this.Ib}oz(){return this.La}};olympe.ui.D.II.ua=[olympe.ui.D.Vq];olympe.ui.D.II.prototype.la.K=olympe.j.J.V;let Cd=0;
|
|
619
619
|
olympe.ui.D.qe=class extends olympe.ui.D.vb{constructor(a,b){super(olympe.ui.Wa.C(olympe.N.D.qe,olympe.host.qa.nb.NB),b);this.id=`${++Cd}_${Date.now()}`;this.C().setAttribute('brick',this.id)}C(){return this.Ce()}Mm(a){this.C().hD(b=>{let c=!1;for(const d of b.children)if(d.getAttribute('brick')===this.id){c=!0;a(d);break}if(!c){const d=new MutationObserver(e=>{for(const f of e)f.addedNodes.forEach(g=>{1===g.nodeType&&g.getAttribute('brick')===this.id&&(d.disconnect(),a(g))})});d.observe(b,{attributes:!1,
|
|
620
620
|
childList:!0,characterData:!1,subtree:!1})}})}};olympe.ui.D.qe.prototype.C.K=new olympe.j.J(()=>olympe.N.D.qe,[]);function Dd(a,b){a.C[olympe.oa.aj()]=b}
|
|
621
621
|
olympe.ui.D.Je=class extends olympe.ui.D.vb{constructor(a){super(olympe.ui.Wa.C(olympe.N.D.Je,olympe.host.qa.nb.JJ));this.F=olympe.j.ja.C;this.C=Object.create(null);T(this).Sz(b=>{const c=[];let d,e,f;d=0;for(e=b.length;d<e;d++)f=b[d],c.push(new olympe.ui.D.FF(f.content,f.name,f.mimeType,f.size));for(let g in this.C)this.C[g](c)});this.Jb(void 0!==a?a:new olympe.j.ia(400,200));this.Zc(()=>{const b=olympe.j.Ua(this.F);b&&b.valueOf()&&T(this).us()})}rt(a){T(this).rt(a);return this}ju(a){T(this).ju(a);
|
|
622
|
-
return this}Pw(a){this.F=a;return this}Gf(a){T(this).Gf(a);return this}ns(a){T(this).ns(a);return this}wt(){T(this).wt();return this}us(){T(this).us();return this}};h=olympe.ui.D.Je.prototype;h.rt.K=olympe.j.J.C([]);h.ju.K=olympe.j.J.C([]);h.Pw.K=olympe.j.J.C([]);h.Gf.K=olympe.j.J.C([]);h.ns.K=olympe.j.J.C([]);h.wt.K=olympe.j.J.C([]);h.us.K=olympe.j.J.C([]);olympe.ui.D.FF=class{constructor(a,b,c,d){this.content=a;this.name=b;this.mimeType=c;this.size=d}sh(){return olympe.j.jc(`file:${this.name}`)}fw(a){a(this.content)}mz(a){a(Ma(this.content))}Er(a){return a(`data:${this.mimeType};base64,${olympe.oa.nk().C(this.content)}`)}lD(a,b){olympe.j.ab([a],c=>{this.name=c.valueOf()});b(!0)}Sa(){return olympe.j.jc(this.name)}iy(){return olympe.j.jc(this.name)}Ot(){return olympe.j.jc(this.mimeType)}ed(){return this.size}};olympe.ui.D.FF.ua=[olympe.j.File];olympe.ui.D.ce=class{constructor(){}filter(){}};olympe.ui.D.Ae=class extends olympe.ui.D.Bd{constructor(a,b,c,d){super(a);this.data=olympe.j.pb(olympe.j.Lg);this.C=olympe.j.ha();this.R=new olympe.j.ia(this.la().na(),this.C);this
|
|
623
|
-
g,k)=>{k=k.hf(g);const l=e(this.R,f,g,k);l.Zc(()=>{I(this.F,f);I(this.O,g)});this.content.appendChild(l,g,new olympe.j.ia(0,k.jb(this.C)))})})}oH(a){J(this.data,a)}ZN(a){J(this.C,a)}pH(a){J(this
|
|
622
|
+
return this}Pw(a){this.F=a;return this}Gf(a){T(this).Gf(a);return this}ns(a){T(this).ns(a);return this}wt(){T(this).wt();return this}us(){T(this).us();return this}};h=olympe.ui.D.Je.prototype;h.rt.K=olympe.j.J.C([]);h.ju.K=olympe.j.J.C([]);h.Pw.K=olympe.j.J.C([]);h.Gf.K=olympe.j.J.C([]);h.ns.K=olympe.j.J.C([]);h.wt.K=olympe.j.J.C([]);h.us.K=olympe.j.J.C([]);olympe.ui.D.FF=class{constructor(a,b,c,d){this.content=a;this.name=b;this.mimeType=c;this.size=d}sh(){return olympe.j.jc(`file:${this.name}`)}fw(a){a(this.content)}mz(a){a(Ma(this.content))}Er(a){return a(`data:${this.mimeType};base64,${olympe.oa.nk().C(this.content)}`)}lD(a,b){olympe.j.ab([a],c=>{this.name=c.valueOf()});b(!0)}Sa(){return olympe.j.jc(this.name)}iy(){return olympe.j.jc(this.name)}Ot(){return olympe.j.jc(this.mimeType)}ed(){return this.size}};olympe.ui.D.FF.ua=[olympe.j.File];olympe.ui.D.ce=class{constructor(){}filter(){}};olympe.ui.D.Ae=class extends olympe.ui.D.Bd{constructor(a,b,c,d){super(a);this.data=olympe.j.pb(olympe.j.Lg);this.C=olympe.j.ha();this.R=new olympe.j.ia(this.la().na(),this.C);this.$e=olympe.j.pb(Object);this.content=new olympe.ui.D.He(new olympe.j.ia(this.la().na(),this.C.jb(this.data.ed())));olympe.j.Sc();olympe.j.Sc();this.F=olympe.j.pb();this.O=olympe.j.pb(String);a&&this.Jb(a);b&&this.oH(b);c&&this.ZN(c);d&&this.pH(d);this.le(this.content);Bb(this.data,e=>{Ab(this.F,e.Qe())});Bb(this.$e,e=>{this.data.forEach((f,
|
|
623
|
+
g,k)=>{k=k.hf(g);const l=e(this.R,f,g,k);l.Zc(()=>{I(this.F,f);I(this.O,g)});this.content.appendChild(l,g,new olympe.j.ia(0,k.jb(this.C)))})})}oH(a){J(this.data,a)}ZN(a){J(this.C,a)}pH(a){J(this.$e,a)}CQ(){return this.O}DQ(){return this.F}};h=olympe.ui.D.Ae.prototype;h.oH.K=olympe.j.J.C([]);h.ZN.K=olympe.j.J.C([]);h.pH.K=olympe.j.J.C([]);h.CQ.K=new olympe.j.J(()=>String,[]);h.DQ.K=new olympe.j.J(()=>Object,[]);olympe.ui.D.gm=class{constructor(){}run(){}Tj(){}C(){}};function Ed(a){const b=a.ta+String((new Date).getTime()+Math.random());olympe.j.cb(a.Ha,()=>{null!==a.F&&a.F.Tg(olympe.ui.Wa.O(b+'_overlay').$a(1));a.C.Tg(olympe.ui.Wa.O(b).$a(1));a.O=G(a.T);a.O.appendChild(a.C,a.ta);const c=()=>{for(const e in a.Cb)if(Object.prototype.hasOwnProperty.call(a.Cb,e))a.Cb[e]();a.mD();null!==a.F&&a.F.setPosition(new olympe.j.ia(0,0))},d=G(a.animation);null!==d?G(a.Ea).valueOf()?d.Tj(a.content,a.O,c):d.Tj(a.C,a.O,c):c();null!==a.F&&(a.O.qj(),a.O.appendChild(a.F,a.ta+'_overlay'),
|
|
624
624
|
null!==d&&G(a.Qa).valueOf()&&d.Tj(a.F,a.O,c))},()=>{if(null!==a.O){const c=a.O;a.O=null;const d=()=>{olympe.ui.Wa.R(b+'_overlay');olympe.ui.Wa.R(b);c.removeChild(a.ta);null!==a.F&&c.removeChild(a.ta+'_overlay');a.mD();null!==a.F&&a.F.setPosition(new olympe.j.ia(0,0));for(const f in a.ga)if(Object.prototype.hasOwnProperty.call(a.ga,f))a.ga[f]()},e=olympe.j.Ua(a.animation);if(null!==e&&void 0!==e){const f=null!==a.F&&olympe.j.Ua(a.Qa)===olympe.j.ja.C;G(a.Ea).valueOf()?e.C(a.content,c,f?void 0:d):e.C(a.C,
|
|
625
625
|
c,f?void 0:d);f&&e.C(a.F,a.O,d)}else d()}})}function Fd(a,b,c){c=void 0!==c?c:olympe.oa.De();a.ga[c]=b}function Gd(a,b){a.od.set('hide',b)}
|
|
626
626
|
olympe.ui.D.cg=class{constructor(a,b,c,d){this.Af=olympe.ui.D.cg.R;olympe.ui.D.cg.R++;this.ta=(d?d:'floatingElement')+'_'+this.Af;this.animation=olympe.j.pb(olympe.ui.D.gm,null);this.Ea=olympe.j.Tc(!1);this.C=new olympe.ui.D.He(a);this.content=olympe.j.pb(olympe.ui.D.vb);this.T=null===c||void 0===c?olympe.j.pb(olympe.ui.D.Nf,olympe.ui.Wa.jf()):c instanceof olympe.j.Proxy?c:olympe.j.pb(olympe.ui.D.ee,c);this.O=null;this.Ha=olympe.j.Tc(!1);this.ga={};this.Cb={};this.V=null;this.Of=olympe.j.Tc(!1);this.Oe=
|
|
@@ -633,18 +633,18 @@ break;case e.tE:case e.Ix:c=a;break;default:c=a.Fa(this.C.la().ra().Va(2))}c=new
|
|
|
633
633
|
olympe.ui.D.cg.F={nI:'left_out',py:'top_in',Nc:'middle',uJ:'bottom_in',vJ:'bottom_out'};h=olympe.ui.D.cg.prototype;h.Zz.K=olympe.j.J.C([]);h.le.K=olympe.j.J.C([]);h.getParent.K=new olympe.j.J(()=>olympe.ui.D.vb,[]);h.er.K=olympe.j.J.C([]);h.isVisible.K=olympe.j.J.T;h.sH.K=olympe.j.J.C([]);h.qH.K=olympe.j.J.C([]);h.rH.K=olympe.j.J.C([]);h.tH.K=olympe.j.J.C([]);h.be.K=olympe.j.J.C([]);h.Xd.K=olympe.j.J.C([]);h.setPosition.K=olympe.j.J.C([]);h.Pe.K=olympe.j.J.V;h.Jb.K=olympe.j.J.C([]);h.la.K=olympe.j.J.V;
|
|
634
634
|
h.fh.K=olympe.j.J.C([]);h.Na.K=olympe.j.J.C([]);h.kc.K=olympe.j.J.C([]);h.Fd.K=olympe.j.J.C([]);h.jg.K=olympe.j.J.C([]);h.tg.K=olympe.j.J.C([]);h.tT.K=olympe.j.J.C([]);h.Qv.K=olympe.j.J.C([]);h.uT.K=olympe.j.J.C([]);h.mD.K=olympe.j.J.C([]);h.IW.K=olympe.j.J.C([]);h.kh.K=new olympe.j.J(()=>{},[0]);olympe.ui.D.BP=class extends olympe.ui.D.cg{constructor(a){super(void 0,!1,void 0,'floating panel');this.Na(N());this.be(!0);this.Xd(!0);this.Fd(olympe.j.aa.ONE,M());a&&this.le(a)}};olympe.ui.D.a0=class extends olympe.ui.D.cg{constructor(a,b,c,d){super(b,!1,c,'tooltip');const e=olympe.ui.Wa.F().NC(d);this.kh(e);this.label=olympe.j.cb(this.isVisible(),()=>{const f=new olympe.ui.D.gb(void 0,e.tM());f.Rb(a);f.be(!0);return f},void 0,olympe.ui.D.gb);this.le(this.label)}Mt(){return this.label}kh(a){super.kh(a)}};olympe.ui.D.zy=class extends olympe.ui.D.cg{constructor(a,b,c){void 0===b&&(b=!0);super(a,b,c,'popup');this.Fh=new Map;this.Qg=new Map;this.V=new olympe.j.ia(this.T.la().na().Fa(this.la().na()).Va(2),this.T.la().ra().Fa(this.la().ra()).Va(2));this.setPosition(this.V);a=olympe.ui.Wa.F().ow(void 0);olympe.ui.D.zy.prototype.kh.call(this,a)}Ka(){Fd(this,()=>{for(const a of this.Fh.values())a();delete this.ga.onConfirm},'onConfirm');this.er(!1)}cancel(){Fd(this,()=>{for(const a of this.Qg.values())a();
|
|
635
635
|
delete this.ga.onCancel},'onCancel');this.er(!1)}kh(a){super.kh(a)}};olympe.ui.D.Fx=class extends olympe.ui.D.zy{constructor(a,b,c,d,e,f,g){super(d,e,f);this.vc=g;this.R=olympe.j.ha(0);this.La=olympe.j.ha(0);this.ka=olympe.j.xb(void 0!==c?c:'OK');this.Mb=olympe.j.ha();this.Ab=olympe.j.ha();this.title=olympe.j.xb(void 0!==b?b:'');this.message=olympe.j.xb(void 0!==a?a:'');b=olympe.ui.Wa.F().Br(g);olympe.ui.D.Fx.prototype.kh.call(this,b);c=new olympe.ui.D.gb(new olympe.j.ia(this.la().na().Fa(this.R.jb(2)),1),b.St());a=new olympe.ui.D.Cd(this.la().na(),this.La,this.R,
|
|
636
|
-
this.R);c.Xd(!0);c.Rb(this.title);c.ob(K());c
|
|
636
|
+
this.R);c.Xd(!0);c.Rb(this.title);c.ob(K());c.$b(olympe.ui.fa.Hb.Vb);a.appendChild(c,'title',olympe.ui.fa.Hb.Vb);c=new olympe.ui.D.gb(new olympe.j.ia(this.la().na().Fa(this.R.jb(2)),1),b.Nt());c.Xd(!0);c.Xs(!0);c.Rb(this.message);c.ob(K());c.$b(olympe.ui.fa.Hb.Vb);a.appendChild(c,'text',olympe.ui.fa.Hb.Vb);this.$=new olympe.ui.D.oc(void 0,this.ka,b.yz());b=new olympe.ui.D.Cd(this.la().na().Fa(this.R.jb(2)));a.appendChild(b,'button',olympe.ui.fa.Hb.Vb);b.appendChild(this.$,'okBtn',olympe.ui.fa.Hb.Vb);
|
|
637
637
|
this.$.Zc(this.Ka.bind(this));olympe.j.cb(this.isVisible(),()=>{olympe.ui.Wa.jf().yk(k=>{k.wz().Lc(13)&&this.Ka()})});this.le(a)}gi(a){J(this.title,a);return this}EQ(a){J(this.message,a);return this}kX(a){J(this.ka,a);return this}lX(a){J(this.Mb,a);return this}jX(a){J(this.Ab,a);return this}uH(a){J(this.La,a)}Hf(a){J(this.R,a);return this}kh(){const a=olympe.ui.Wa.F().Br(this.vc);super.kh(a);this.Hf(a.Qt());this.uH(a.Rt())}};olympe.ui.D.Fx.T=500;olympe.ui.D.Fx.C=150;h=olympe.ui.D.Fx.prototype;
|
|
638
638
|
h.gi.K=olympe.j.J.C([]);h.EQ.K=olympe.j.J.C([]);h.kX.K=olympe.j.J.C([]);h.lX.K=olympe.j.J.C([]);h.jX.K=olympe.j.J.C([]);h.uH.K=olympe.j.J.C([]);h.Hf.K=olympe.j.J.C([]);olympe.ui.D.qG=class extends olympe.ui.D.zy{constructor(a,b,c,d){super(a,b,c);this.ae=d;this.$=olympe.j.ha(0);this.ka=olympe.j.ha(0);this.Cc=olympe.j.xb('');this.ec=olympe.j.xb('');this.La=olympe.j.xb('');this.vc=olympe.j.ha(0);const e=olympe.j.ha();this.R=new olympe.ui.D.Ub(new olympe.j.ia(e.Fa(this.$),this.vc));this.Mb=olympe.j.xb('CANCEL');this.Kc=olympe.j.xb('CONFIRM');this.title=olympe.j.xb('');this.message=olympe.j.xb('');this.Xc=olympe.j.xb('');this.ic=new olympe.ui.D.oc(void 0,this.Kc,this.La);
|
|
639
|
-
this.Ab=new olympe.ui.D.oc(void 0,this.Mb,this.La);a=olympe.ui.Wa.F().Kt(d);b=new olympe.ui.D.Cd(e,this.ka,this.$,this.$);const f=new olympe.ui.D.gb(void 0,this.Cc);f.Xd(!0);f.be(!0);f.Rb(this.title);f.ob(K());f
|
|
639
|
+
this.Ab=new olympe.ui.D.oc(void 0,this.Mb,this.La);a=olympe.ui.Wa.F().Kt(d);b=new olympe.ui.D.Cd(e,this.ka,this.$,this.$);const f=new olympe.ui.D.gb(void 0,this.Cc);f.Xd(!0);f.be(!0);f.Rb(this.title);f.ob(K());f.$b(olympe.ui.fa.Hb.Vb);b.appendChild(f,'title',olympe.ui.fa.Hb.Vb);c=new olympe.ui.D.gb(new olympe.j.ia(this.la().na().Fa(this.$.jb(2)),1),this.ec);c.Xd(!0);c.Xs(!0);c.Rb(this.message);c.ob(K());c.$b(olympe.ui.fa.Hb.Kf);b.appendChild(c,'text',olympe.ui.fa.Hb.Vb);J(this.Xc,this.R.ol());b.appendChild(this.R,
|
|
640
640
|
'inputBox',olympe.ui.fa.Hb.Vb);var g=new olympe.ui.D.he(void 0,this.ka,this.ka,this.ka);b.appendChild(g,'button',olympe.ui.fa.Hb.Vb);g.appendChild(this.Ab,'cancelBtn');g.appendChild(this.ic,'okBtn');this.ic.Zc(this.Ka.bind(this));this.Ab.Zc(this.cancel.bind(this));olympe.j.cb(this.Of,()=>{f.be(!0);J(e,f.la().na().NN(g.la().na()))},()=>{f.be(!1);f.la().oe(this.la().na());J(e,this.la().na())});this.le(b);olympe.ui.D.qG.prototype.kh.call(this,a)}gi(a){J(this.title,a);return this}HQ(a){J(this.message,
|
|
641
641
|
a);return this}GQ(a){J(this.Kc,a);return this}FQ(a){J(this.Mb,a);return this}wX(a){this.R.fn(a);return this}FH(a){J(this.ka,a)}Hf(a){J(this.$,a);return this}YU(){return this.Xc}wH(a){this.R.Na(a)}DH(a){this.R.ob(a)}CH(a){this.R.sd(a)}zH(a){this.R.rd(a)}AH(a){this.R.Ec(a)}BH(a){this.R.Ic(a)}YN(a,b){this.R.Fd(a,b)}yH(a){J(this.vc,a)}xH(a){this.R.yb(a)}GH(a){J(this.Cc,a)}vH(a){J(this.La,a)}EH(a){J(this.ec,a)}kh(){const a=olympe.ui.Wa.F().Kt(this.ae);super.kh(a);this.GH(a.St());this.vH(a.KL());this.EH(a.Nt());
|
|
642
642
|
this.yH(a.jM());this.Hf(a.Qt());this.FH(a.Rt());this.wH(a.gM());this.DH(a.oM());this.CH(a.nM());this.zH(a.kM());this.AH(a.lM());this.BH(a.mM());this.xH(a.iM());this.YN(a.zi(),a.hM())}};h=olympe.ui.D.qG.prototype;h.gi.K=olympe.j.J.C([]);h.HQ.K=olympe.j.J.C([]);h.GQ.K=olympe.j.J.C([]);h.FQ.K=olympe.j.J.C([]);h.wX.K=olympe.j.J.C([]);h.FH.K=olympe.j.J.C([]);h.Hf.K=olympe.j.J.C([]);h.YU.K=olympe.j.J.R;h.wH.K=olympe.j.J.C([]);h.DH.K=olympe.j.J.C([]);h.CH.K=olympe.j.J.C([]);h.zH.K=olympe.j.J.C([]);
|
|
643
643
|
h.AH.K=olympe.j.J.C([]);h.BH.K=olympe.j.J.C([]);h.YN.K=olympe.j.J.C([]);h.yH.K=olympe.j.J.C([]);h.xH.K=olympe.j.J.C([]);h.GH.K=olympe.j.J.C([]);h.vH.K=olympe.j.J.C([]);h.EH.K=olympe.j.J.C([]);olympe.ui.D.RE=class extends olympe.ui.D.zy{constructor(a,b,c,d){d=olympe.ui.Wa.F().Br(d);super(a,b,c);this.R=olympe.j.ha(20);this.$=olympe.j.ha(20);this.Ab=olympe.j.xb('CANCEL');this.vc=olympe.j.ha(20);this.Cc=this.la().na().Va(2).Fa(this.vc);this.Kc=olympe.j.ha(40);this.Mb=olympe.j.xb('OK');this.ic=this.la().na().Va(2).Fa(this.vc);this.ec=olympe.j.ha(40);olympe.j.Sc(0,0,0);olympe.j.Sc(51,51,51);this.title=olympe.j.xb('');olympe.j.ha(20);this.message=olympe.j.xb('');olympe.j.ha(16);a=new olympe.ui.D.Cd(this.la().na(),
|
|
644
|
-
this.$,this.R,this.R);b=new olympe.ui.D.gb(new olympe.j.ia(this.la().na().Fa(this.R.jb(2)),1),d.St());b.Xd(!0);b.Rb(this.title);b.ob(K());b
|
|
644
|
+
this.$,this.R,this.R);b=new olympe.ui.D.gb(new olympe.j.ia(this.la().na().Fa(this.R.jb(2)),1),d.St());b.Xd(!0);b.Rb(this.title);b.ob(K());b.$b(olympe.ui.fa.Hb.Vb);a.appendChild(b,'title',olympe.ui.fa.Hb.Vb);b=new olympe.ui.D.gb(new olympe.j.ia(this.la().na().Fa(this.R.jb(2)),1),d.Nt());b.Xd(!0);b.Xs(!0);b.Rb(this.message);b.ob(K());b.$b(olympe.ui.fa.Hb.Kf);a.appendChild(b,'text',olympe.ui.fa.Hb.Vb);this.ka=new olympe.ui.D.oc(void 0,this.Mb,d.yz());this.La=new olympe.ui.D.oc(void 0,this.Ab,d.yz());
|
|
645
645
|
b=new olympe.ui.D.he(this.ka.la().ra(),this.$,this.$,this.$);a.appendChild(b,'button',olympe.ui.fa.Hb.Vb);b.appendChild(this.La,'cancelBtn');b.appendChild(this.ka,'okBtn');this.ka.Zc(this.Ka.bind(this));this.La.Zc(this.cancel.bind(this));this.le(a);olympe.ui.D.RE.prototype.kh.call(this,d)}gi(a){J(this.title,a);return this}VW(a){J(this.message,a);return this}JQ(a){J(this.Mb,a);return this}IQ(a){J(this.Ab,a);return this}UW(a){J(this.ic,a);return this}TW(a){J(this.ec,a);return this}PW(a){J(this.Cc,a);
|
|
646
|
-
return this}OW(a){J(this.Kc,a);return this}HH(a){J(this.$,a)}Hf(a){J(this.R,a);return this}kh(a){super.kh(a);this.Hf(a.Qt());this.HH(a.Rt())}};h=olympe.ui.D.RE.prototype;h.gi.K=olympe.j.J.C([]);h.VW.K=olympe.j.J.C([]);h.JQ.K=olympe.j.J.C([]);h.IQ.K=olympe.j.J.C([]);h.UW.K=olympe.j.J.C([]);h.TW.K=olympe.j.J.C([]);h.PW.K=olympe.j.J.C([]);h.OW.K=olympe.j.J.C([]);h.HH.K=olympe.j.J.C([]);h.Hf.K=olympe.j.J.C([]);olympe.ui.D.ji=class extends olympe.ui.D.cg{constructor(a,b,c){super(void 0,a,null,'bubble');this.vc=olympe.j.pb(String);this.La=olympe.j.pb(olympe.j.Color);this.Ab=olympe.j.pb(olympe.j.Color);this.Mb=olympe.j.ha(1);this.Ka=olympe.j.ha(1);this.$=olympe.j.ha(1);this.ka=olympe.j.ha(1);this.R=null;void 0!==b&&this.le(b);a&&Gd(this,()=>{this.er(!1);return!1});Fd(this,()=>{null!==this.R&&(this.R.
|
|
647
|
-
this.C.tg(this.vc,olympe.ui.fa.Vg.Nq,olympe.ui.fa.Re.Vb)}Zz(){}NH(a){J(this.Mb,a)}MH(a){J(this.Ab,a)}LH(a){J(this.La,a)}KH(a){J(this.Ka,a)}IH(a){J(this.$,a)}JH(a){J(this.ka,a)}BX(a,b,c,d=0,e=!0){const f=this.T;this.R&&this.R.
|
|
646
|
+
return this}OW(a){J(this.Kc,a);return this}HH(a){J(this.$,a)}Hf(a){J(this.R,a);return this}kh(a){super.kh(a);this.Hf(a.Qt());this.HH(a.Rt())}};h=olympe.ui.D.RE.prototype;h.gi.K=olympe.j.J.C([]);h.VW.K=olympe.j.J.C([]);h.JQ.K=olympe.j.J.C([]);h.IQ.K=olympe.j.J.C([]);h.UW.K=olympe.j.J.C([]);h.TW.K=olympe.j.J.C([]);h.PW.K=olympe.j.J.C([]);h.OW.K=olympe.j.J.C([]);h.HH.K=olympe.j.J.C([]);h.Hf.K=olympe.j.J.C([]);olympe.ui.D.ji=class extends olympe.ui.D.cg{constructor(a,b,c){super(void 0,a,null,'bubble');this.vc=olympe.j.pb(String);this.La=olympe.j.pb(olympe.j.Color);this.Ab=olympe.j.pb(olympe.j.Color);this.Mb=olympe.j.ha(1);this.Ka=olympe.j.ha(1);this.$=olympe.j.ha(1);this.ka=olympe.j.ha(1);this.R=null;void 0!==b&&this.le(b);a&&Gd(this,()=>{this.er(!1);return!1});Fd(this,()=>{null!==this.R&&(this.R.Zb.destroy(),this.R=null)},'disposeSyncProxy');olympe.ui.D.ji.prototype.kh.call(this,olympe.ui.Wa.F().lz(c));
|
|
647
|
+
this.C.tg(this.vc,olympe.ui.fa.Vg.Nq,olympe.ui.fa.Re.Vb)}Zz(){}NH(a){J(this.Mb,a)}MH(a){J(this.Ab,a)}LH(a){J(this.La,a)}KH(a){J(this.Ka,a)}IH(a){J(this.$,a)}JH(a){J(this.ka,a)}BX(a,b,c,d=0,e=!0){const f=this.T;this.R&&this.R.Zb.destroy();this.R=olympe.j.Kh([f.la().na(),f.la().ra(),this.content.la().na(),this.content.la().ra(),a.na(),a.ra(),this.Ka,this.$,this.ka,b,c,d,this.Mb,this.Ab.ii(),this.La.ii(),this.Of,this.Oe,this.isVisible()],(g,k,l,m,n,p,r,t,u,w,v,x,y,B,E,D,P,ha)=>{if(ha.valueOf()&&!this.C.getParent().Zb.Dc()){g=
|
|
648
648
|
g.valueOf();k=k.valueOf();l=Math.round(l.valueOf()+2*y);m=Math.round(m.valueOf()+2*y);n=Math.round(n.valueOf());p=Math.round(p.valueOf());w=w?w.valueOf():olympe.ui.D.ji.C.uh;D=D.valueOf();P=P.valueOf();0===w%2?(ha=w,k=Math.max(0,Math.min(k-m,void 0===v?p-m/2:v)),w===olympe.ui.D.ji.C.Kg?(w=n,v=y+t,w>g-l-t&&(ha=olympe.ui.D.ji.C.Kf,w=n-t-l+x,v=y)):(w=n-t-l,v=y,0>w&&n+t+l<g&&(ha=olympe.ui.D.ji.C.Kg,w=n+x,v=y+t)),x=p-k,x<r+u?(x=r+u,k=p-x):x>m-t-u&&(x=m-t-u,k=p-x),n=[l+t,m,w,k,v,y,ha,n-w,x]):(ha=w,g=Math.max(0,
|
|
649
649
|
Math.min(g-l,void 0===v?n-l/2:v)),w===olympe.ui.D.ji.C.Yg?(w=p-t-m,v=y,0>w&&(ha=olympe.ui.D.ji.C.uh,w=p+x,v=y+t)):(w=p,v=y+t,w>k-m-t&&(ha=olympe.ui.D.ji.C.Yg,w=p-t-m+x,v=y)),x=n-g,x<r+u?(x=r+u,g=n-x):x>l-t-u&&(x=l-t-u,g=n-x),n=[l,m+t,g,w,y,v,ha,x,p-w]);var [Ia,pa,Cb,H,W,Ca,qa,Ja,Ra]=n;this.C.Jb(new olympe.j.ia(Ia,pa));D&&this.Jb(new olympe.j.ia(Ia,this.la().ra()));P&&this.Jb(new olympe.j.ia(this.la().na(),pa));this.setPosition(new olympe.j.ia(Cb,H));this.content.setPosition(new olympe.j.ia(W,Ca));
|
|
650
650
|
r=r.valueOf();t=t.valueOf();y=y.valueOf();D=y/2;switch(qa){case olympe.ui.D.ji.C.Yg:var ea=D;l-=D;P=D;n=m-D;ea='M'+ea+','+P+' L'+l+','+P+' L'+l+','+n+' L'+(Ja+r)+','+n+' L'+Ja+','+(t+m-D)+' L'+(Ja-r)+','+n+' L'+ea+','+n+' Z';break;case olympe.ui.D.ji.C.Kg:n=t+D;l=t+l-D;P=D;m-=D;ea='M'+n+','+P+' L'+l+','+P+' L'+l+','+m+' L'+n+','+m+' L'+n+','+(Ra+r)+' L'+D+','+Ra+' L'+n+','+(Ra-r)+' Z';break;case olympe.ui.D.ji.C.uh:ea=D;l-=D;n=t+D;m=t+m-D;ea='M'+ea+','+n+' L'+(Ja-r)+','+n+' L'+Ja+','+D+' L'+(Ja+r)+
|
|
@@ -670,7 +670,7 @@ function Id(a){a.R.setPosition(new olympe.j.ia(a.V,0));const b=olympe.j.Tc(!1),c
|
|
|
670
670
|
olympe.ui.D.rG=class extends olympe.ui.D.ee{constructor(a,b){super(a);this.$=olympe.j.xb(b);this.Jb(a);this.F=new olympe.ui.D.se;this.F.nj(!0);this.C=new olympe.ui.D.se;this.C.nj(!0);this.R=new olympe.ui.D.se;this.R.nj(!0);a=olympe.ui.Wa.F().vz(this.$);olympe.ui.D.rG.prototype.Nd.call(this,a);this.Ea=olympe.j.Sc(215,217,218);this.T=olympe.j.ha(0);this.V=olympe.j.ha(this.F.la().na().Fa(this.R.la().na()));this.ka=olympe.j.ha(0);this.ta=olympe.j.ha(0);this.F.setPosition(new olympe.j.ia(0,2.5));Hd(this);
|
|
671
671
|
Id(this);a=new olympe.ui.D.se(new olympe.j.ia(this.V.Fa(this.T).Fa(this.C.la().na().Va(2)).$a(this.R.la().na().Va(2)),this.F.la().ra()));a.nj(!0);a.Na(this.Ea);a.setPosition(new olympe.j.ia(this.T.$a(this.C.la().na().Va(2)),this.F.Pe().ra()));xd(this,a,'selectedZone');xd(this,this.F,'bar');xd(this,this.C,'button1');xd(this,this.R,'button2')}rX(a){this.Ea=a;return this}rU(){return this.T.Va(this.F.la().na().Fa(this.C.la().na().$a(this.R.la().na())))}sU(){return this.V.Fa(this.C.la().na()).Va(this.F.la().na().Fa(this.C.la().na().$a(this.R.la().na())))}JU(){return this.V.Fa(this.T).Fa(this.C.la().na()).Va(this.F.la().na().Fa(this.C.la().na().$a(this.R.la().na())))}Zf(a){J(this.$,
|
|
672
672
|
a);return this}Nd(a){a&&(this.C.Nd(a.T()),this.R.Nd(a.V()),this.F.Nd(a.R()))}};h=olympe.ui.D.rG.prototype;h.rX.K=olympe.j.J.C([]);h.rU.K=olympe.j.J.F;h.sU.K=olympe.j.J.F;h.JU.K=olympe.j.J.F;h.Zf.K=olympe.j.J.C([]);olympe.ui.D.VF=class extends olympe.ui.D.ee{constructor(a,b,c,d,e,f,g){super(a);this.Af=olympe.j.xb(g);this.Qg=new olympe.ui.D.Cd;this.values=b;this.Fh=0;this.Oe=olympe.j.Tc(void 0===a);this.Of=olympe.j.Tc(void 0===a);this.od=olympe.j.Tc(void 0!==e?e:!1);this.C=(this.gd=void 0!==d)?olympe.j.ha(d):olympe.j.ha();this.$=new olympe.ui.D.Cd(this.la().na());this.Mb=olympe.j.ha();this.Ea=olympe.j.pb(olympe.j.Map,new olympe.j.Map(olympe.j.aa));this.Cb=olympe.j.pb(olympe.j.Map,new olympe.j.Map(olympe.j.lb));
|
|
673
|
-
this.ta=olympe.j.pb(olympe.j.Map,new olympe.j.Map(olympe.ui.D.
|
|
673
|
+
this.ta=olympe.j.pb(olympe.j.Map,new olympe.j.Map(olympe.ui.D.$e.Ws));this.F=[];this.T=olympe.j.xb();this.ae=olympe.j.pb(olympe.ui.D.vb);this.ec=olympe.j.Sc();this.ic=olympe.j.xb();this.Ab=olympe.j.xb();this.Cc=olympe.j.xb();this.Kc=void 0!==f?olympe.j.Tc(f):olympe.j.Tc(!0);this.ka=olympe.j.pb(c);this.La=olympe.j.Tc(!1);this.Xc=olympe.j.pb(olympe.ui.D.ce);this.R=new olympe.ui.D.Bd(new olympe.j.ia(0,0));this.V=new olympe.ui.D.Bd(new olympe.j.ia(0,0));this.Ha=olympe.j.Uc();J(this.Ha,a);Bb(this.ka,function(){J(this.La,
|
|
674
674
|
!0)}.bind(this));this.values.Zg&&Bb(this.values,function(){J(this.La,!1)}.bind(this));const k=new olympe.ui.D.Cd;xd(this,k,'mainContainer');k.appendChild(this.R,'horizScroller');const l=new olympe.ui.D.Cd;this.R.le(l);const m=new olympe.ui.D.he(this.C);m.qd(this.od);l.appendChild(m,'header');olympe.j.cb(this.od.Rf(),()=>{this.ta.forEach((p,r)=>{const t=new olympe.ui.D.gb(new olympe.j.ia(this.Ea.get(r),this.C));t.Zf(this.ic);Bb(this.Cb.get(r),u=>{t.Rb(u)});m.appendChild(t,'header'+r)})});l.appendChild(this.V,
|
|
675
675
|
'verticalScroller');const n=this.Qg;this.V.le(n);olympe.j.cb(this.Of,()=>{olympe.j.cb(this.Oe,()=>{olympe.ui.D.ee.prototype.Jb.call(this,k.la());this.R.Jb(l.la());this.V.Jb(n.la())},()=>{olympe.ui.D.ee.prototype.Jb.call(this,new olympe.j.ia(k.la().na(),this.Ha.ra()));this.R.Jb(new olympe.j.ia(l.la().na(),this.la().ra().Fa(this.$.la().ra())));this.V.Jb(new olympe.j.ia(n.la().na(),this.la().ra().Fa(e?0:this.C).Fa(this.$.la().ra())))})},()=>{olympe.j.cb(this.Oe,()=>{olympe.ui.D.ee.prototype.Jb.call(this,
|
|
676
676
|
new olympe.j.ia(this.Ha.na(),k.la().ra()));this.R.Jb(new olympe.j.ia(this.la().na(),l.la().ra()));this.V.Jb(new olympe.j.ia(n.la().na(),n.la().ra()))},()=>{olympe.ui.D.ee.prototype.Jb.call(this,this.Ha);this.R.Jb(new olympe.j.ia(this.la().na(),this.la().ra().Fa(this.$.la().ra())));this.V.Jb(new olympe.j.ia(n.la().na(),this.la().ra().Fa(e?0:this.C).Fa(this.$.la().ra())))})});k.appendChild(this.$,'footer');this.values.forEach((p,r)=>{const t=olympe.j.pb(olympe.j.ja,olympe.j.Mc(!0));Bb(this.Xc.filter(p),
|
|
@@ -680,9 +680,9 @@ c=G(this.Cb),d=G(this.ta);void 0!==b&&b.remove(a);void 0!==c&&c.remove(a);void 0
|
|
|
680
680
|
G(this.ka));return this}LQ(){return this.La}zl(a){J(this.Kc,a);return this}UU(){return this.R}js(a){I(this.Xc,a);return this}Jb(a){this.Ha=a;return this}be(a){J(this.Of,a);return this}Xd(a){J(this.Oe,a);return this}XH(a){J(this.ic,a)}UH(a){J(this.Ab,a)}YH(a){J(this.Cc,a)}Vj(a){J(this.C,a);return this}VH(a){J(this.Mb,a)}WH(a){J(this.ec,a)}Nd(a){super.Nd(a);this.XH(a.eM());this.UH(a.NL());this.YH(a.KM());this.gd||this.Vj(a.uM());this.VH(a.VL());this.WH(a.bM())}};h=olympe.ui.D.VF.prototype;h.lT.K=olympe.j.J.C([]);
|
|
681
681
|
h.JW.K=olympe.j.J.C([]);h.QW.K=olympe.j.J.C([]);h.SW.K=olympe.j.J.C([]);h.RW.K=olympe.j.J.C([]);h.MQ.K=olympe.j.J.C([]);h.ZW.K=olympe.j.J.C([]);h.KQ.K=new olympe.j.J(()=>Object,[]);h.qX.K=olympe.j.J.C([]);h.LQ.K=olympe.j.J.T;h.zl.K=olympe.j.J.C([]);h.UU.K=new olympe.j.J(()=>olympe.ui.D.Bd,[]);h.js.K=olympe.j.J.C([]);h.Jb.K=olympe.j.J.C([]);h.be.K=olympe.j.J.C([]);h.Xd.K=olympe.j.J.C([]);h.XH.K=olympe.j.J.C([]);h.UH.K=olympe.j.J.C([]);h.YH.K=olympe.j.J.C([]);h.Vj.K=olympe.j.J.C([]);h.VH.K=olympe.j.J.C([]);
|
|
682
682
|
h.WH.K=olympe.j.J.C([]);olympe.ui.D.Screen=class{constructor(){}render(){}};olympe.ui.D.Screen.prototype.render.K=new olympe.j.J(()=>olympe.ui.D.vb,[]);olympe.ui.D.US=class{constructor(a,b){this.F=a;this.C=b;this.animation=olympe.j.pb(olympe.ui.D.gm)}Cr(){return this.animation}};olympe.ui.D.ZJ=class extends olympe.ui.D.ee{constructor(a){super();this.Y=olympe.ui.Wa.Eb();this.ka=new Map;this.ta=new Map;this.F=new Map;this.C=new Map;this.Ea=new Map;this.R=olympe.j.qb(olympe.j.lb);this.V=new Map;this.$=new olympe.ui.D.se(this.la());this.T='storyboard_overlay_'+String((new Date).getTime()+Math.random()).replace(/[^0-9]/,'');this.Jb(a)}BU(){return this.R.Ba()}eC(a,b){this.ka.set(b,a);this.C.set(b,olympe.j.Tc(!1));this.ta.set(b,olympe.j.cb(this.C.get(b),()=>{const c=this.ka.get(b);
|
|
683
|
-
let d=this.F.get(b);c?d||(d=c.render(this.la(),void 0),d instanceof olympe.j.Proxy||(d=olympe.j.pb(olympe.ui.D.vb,d)),this.F.set(b,d)):this.Y.warn(`Screen with id ${b} doesn't exist!`)},()=>{this.F.delete(b)},void 0,[],'If screen loaded '+b).
|
|
683
|
+
let d=this.F.get(b);c?d||(d=c.render(this.la(),void 0),d instanceof olympe.j.Proxy||(d=olympe.j.pb(olympe.ui.D.vb,d)),this.F.set(b,d)):this.Y.warn(`Screen with id ${b} doesn't exist!`)},()=>{this.F.delete(b)},void 0,[],'If screen loaded '+b).Zb)}bC(a,b,c){this.V.set(c,new olympe.ui.D.US(a,b))}LW(a){this.V.delete(a);return this}XN(){I(this.C.get('login'),olympe.j.Mc(!0));this.ta.get('login').run(()=>{xd(this,this.F.get('login'),'login')});this.R.update(olympe.j.jc('login'))}Lw(a){const b=olympe.ui.Wa,
|
|
684
684
|
c=b.jf(),d=olympe.j.Ua,e=this.V.get(a);if(void 0===e)this.Y.warn('Transition with id '+a+" doesn't exist!");else{var f=e.C,g='*'===e.F?G(this.R.Ba()).valueOf():e.F;if(f!==g){I(this.C.get(f),olympe.j.Mc(!0));a=this.F.get(f);var k=this.F.get(g),l=()=>{for(const n in this.C.keys()){const p=this.C.get(n);d(p).valueOf()&&n!==e.C&&!this.Ea.has(e.C+n)&&J(p,olympe.j.Mc(!1))}this.R.update(olympe.j.jc(f))},m=d(e.Cr());void 0!==m&&null!==m?(xd(this,d(a),f),this.$.Tg(b.O(this.T)),c.appendChild(this.$,this.T),
|
|
685
|
-
m.run(k,a,g,f,this,()=>{this.O().removeChild(g);b.R(this.T);c.removeChild(this.T);l()})):(this.O().removeChild(g),xd(this,d(a),f),l())}}}O(){return this.Ce()}};h=olympe.ui.D.ZJ.prototype;h.BU.K=olympe.j.J.R;h.eC.K=olympe.j.J.C([]);h.bC.K=olympe.j.J.C([]);h.LW.K=olympe.j.J.C([]);h.XN.K=olympe.j.J.C([]);h.Lw.K=olympe.j.J.C([]);function Jd(a,b){b.zb(a.ec);b.Db(a.ic);b.yb(a.Mb);b.Na(a.$);b.Gq(a.ta);b.Fd(a.Cb,a.La);b
|
|
685
|
+
m.run(k,a,g,f,this,()=>{this.O().removeChild(g);b.R(this.T);c.removeChild(this.T);l()})):(this.O().removeChild(g),xd(this,d(a),f),l())}}}O(){return this.Ce()}};h=olympe.ui.D.ZJ.prototype;h.BU.K=olympe.j.J.R;h.eC.K=olympe.j.J.C([]);h.bC.K=olympe.j.J.C([]);h.LW.K=olympe.j.J.C([]);h.XN.K=olympe.j.J.C([]);h.Lw.K=olympe.j.J.C([]);function Jd(a,b){b.zb(a.ec);b.Db(a.ic);b.yb(a.Mb);b.Na(a.$);b.Gq(a.ta);b.Fd(a.Cb,a.La);b.$b(a.gd);b.bc(a.od);b.kc(a.Ab)}function Kd(a,b,c){if(c){const e=a.R;if(null!==e){if(e===b)return;var d=a.C.zg(e);void 0===d||d.Dc()||(d.Gq(a.ta),d.Na(a.$));d=a.children.zg(e);void 0===d||d.Dc()||a.F.removeChild(e)}a.F.appendChild(c,b);a.C.zg(b).Gq(a.Cc);a.C.zg(b).Na(a.Kc);a.R=b;for(const f of a.ae.values())f(b)}}
|
|
686
686
|
olympe.ui.D.hK=class extends olympe.ui.D.ee{constructor(a,b){super(a);this.Xc=olympe.j.xb(b);a=olympe.ui.Wa.F().sw(this.Xc);this.ka=olympe.j.ha();this.ec=olympe.j.ha();this.ic=olympe.j.ha();this.Mb=olympe.j.xb();this.Cb=olympe.j.ha();this.La=olympe.j.Sc();this.Ha=olympe.j.ha();this.Ea=olympe.j.Sc();this.ta=olympe.j.Sc();this.Cc=olympe.j.Sc();this.$=olympe.j.Sc();this.Kc=olympe.j.Sc();this.gd=olympe.j.pb(String,olympe.ui.fa.Hb.Vb);this.od=olympe.j.pb(String,olympe.ui.fa.tc.Nc);this.Ab=olympe.j.ha();
|
|
687
687
|
this.R=null;this.ae=new Map;this.C=new olympe.j.Map(olympe.ui.D.oc);this.children=new olympe.j.Map(olympe.ui.D.vb);this.F=new olympe.ui.D.Cd(this.la().na(),0,0,0,!1,this.la().ra());this.T=new olympe.ui.D.he(this.ka);this.V=null;this.F.appendChild(this.T,'tabsContainer');this.F.Fd(this.Ha,this.Ea);xd(this,this.F,'mainContainer');olympe.ui.D.hK.prototype.Nd.call(this,a)}xT(a,b,c){const d=olympe.j.Uc(this.la().na().Va(this.C.ed()),this.ka);b=new olympe.ui.D.oc(d,b);Jd(this,b);b.Zc(()=>{Kd(this,a,c)});
|
|
688
688
|
this.children.set(a,c);this.C.set(a,b);this.T.appendChild(b,a);null===this.R&&Kd(this,a,c);return this}KT(a,b){void 0!==this.children.get(a)&&this.children.remove(a);this.C.get(a).Zc(()=>{Kd(this,a,b)});this.children.set(a,b);this.R===a&&Kd(this,a,b);return this}KW(a){if(this.R===a){var b=olympe.j.Ua(this.C.kl());void 0!==b&&b!==a?this.PN(b):this.R=null;this.children.zg(a).Dc()||this.F.removeChild(a)}b=this.C.zg(a);void 0!==b&&(b.Dc()||this.T.removeChild(a),this.C.remove(a));this.children.remove(a);
|
|
@@ -691,17 +691,17 @@ return this}PN(a){Kd(this,a,this.children.zg(a)||null)}CU(){return null!==this.R
|
|
|
691
691
|
this.ZH(a.NG())}Zf(a){J(this.Xc,a);return this}};h=olympe.ui.D.hK.prototype;h.xT.K=olympe.j.J.C([0,1]);h.KT.K=olympe.j.J.C([0]);h.KW.K=olympe.j.J.C([0]);h.PN.K=olympe.j.J.C([0]);h.CU.K=olympe.j.J.R;h.NQ.K=olympe.j.J.V;h.ed.K=olympe.j.J.F;h.hI.K=olympe.j.J.C([]);h.fI.K=olympe.j.J.C([]);h.gI.K=olympe.j.J.C([]);h.eI.K=olympe.j.J.C([]);h.kI.K=olympe.j.J.C([]);h.cI.K=olympe.j.J.C([]);h.bI.K=olympe.j.J.C([]);h.kO.K=olympe.j.J.C([]);h.$H.K=olympe.j.J.C([]);h.ZH.K=olympe.j.J.C([]);h.jI.K=olympe.j.J.C([]);
|
|
692
692
|
h.aI.K=olympe.j.J.C([]);h.iI.K=olympe.j.J.C([]);h.dI.K=olympe.j.J.C([]);h.Zf.K=olympe.j.J.C([]);olympe.ui.D.Ub=class extends olympe.ui.D.vb{constructor(a,b){const c=olympe.j.qb,d=olympe.j.ia,e=olympe.j.Color,f=olympe.j.Ua;super(olympe.ui.Wa.C(olympe.N.D.Ub,olympe.host.qa.nb.OJ),a);this.V=olympe.j.xb('');this.$=c(olympe.j.lb);this.fontSize=c(olympe.j.aa);this.ka=c(olympe.j.aa);this.Ha=c(e);this.backgroundColor=c(e);this.ta=null;this.La=olympe.j.xb(b);this.R=c(olympe.j.Ik);this.Ea=c(olympe.j.ja).update(olympe.j.ja.wb);this.C=null;const g=this.la().na(),k=this.fontSize.Ba(),l=m=>{const n=(new olympe.ui.D.gb(new d(g,
|
|
693
693
|
this.fontSize.Ba().$a(4)))).bc(olympe.ui.fa.tc.Nc).ob(this.Ha.Ba()).Rb(m).Ec(5);n.zb(k).yb(this.$.Ba()).Db(this.ka.Ba());n.dh(()=>{this.Ea.update(olympe.j.ja.C);this.Rb(f(m));this.qj();this.Ea.update(olympe.j.ja.wb)});n.mj(()=>{n.Na(Vb().vL())});n.Fi(()=>{n.Na(O())});return n};olympe.j.ab([super.Ht(),this.R.Ba().ed()],(m,n)=>{0<n.valueOf()&&null===this.C&&m.valueOf()&&(R(this,()=>{const p=c(olympe.j.Ae);let r=new olympe.j.Ae(olympe.j.lb),t=new olympe.j.Ae(olympe.j.lb);olympe.j.ab([this.R.Ba(),this.R.Ba().ed(),
|
|
694
|
-
this.V],(v,x,y)=>{const B=r;t.clear();let E=0;0<x&&v.$h(D=>{(0===y.lo().valueOf()||D.toLowerCase().contains(y.toLowerCase()).and(D.
|
|
694
|
+
this.V],(v,x,y)=>{const B=r;t.clear();let E=0;0<x&&v.$h(D=>{(0===y.lo().valueOf()||D.toLowerCase().contains(y.toLowerCase()).and(D.df(y).Rf()).valueOf())&&t.set(D.valueOf(),D,E++)});r=t;t=B;p.update(r)});const u=new d(g,k.$a(9).jb(3)),w=new olympe.ui.D.Ms(u,p.Ba(),olympe.j.lb,l,5,!1);this.C=new olympe.ui.D.BP(w);this.C.Na(this.backgroundColor.Ba());this.C.er(super.Ht().and(p.Ba().ed().Oj(0)));olympe.j.ab([u.ra(),this.Bh().ra(),this.la().ra(),olympe.ui.Wa.jf().la().ra()],(v,x,y,B)=>{y.$a(x).$a(v).valueOf()<
|
|
695
695
|
B.valueOf()?this.C.Qv(this,olympe.ui.D.cg.F.py,olympe.ui.D.cg.O.Ix):this.C.Qv(this,olympe.ui.D.cg.F.py,olympe.ui.D.cg.O.QB)})}),olympe.j.ib().destroy())});a=olympe.ui.Wa.F().uw(this.La);olympe.ui.D.Ub.prototype.Nd.call(this,a);T(this).ul(m=>{I(this.V,olympe.j.jc(m))})}gu(){T(this).gu();return this}Gf(a){T(this).Gf(a);return this}Bf(a){T(this).Bf(a);return this}Rb(a){T(this).Bf(a);return this}ol(){return this.V}uX(a){olympe.j.mc(a)?this.R.repeat(a):this.R.update(a);return this}getValue(){return this.V}Ht(){return super.Ht().or(this.Ea.Ba())}Db(a){olympe.j.mc(a)?
|
|
696
696
|
this.ka.repeat(a):this.ka.update(olympe.j.Ca(a));T(this).Db(a);return this}yb(a){olympe.j.mc(a)?this.$.repeat(a):this.$.update(olympe.j.jc(a));T(this).yb(a);return this}zb(a){olympe.j.mc(a)?this.fontSize.repeat(a):this.fontSize.update(olympe.j.Ca(a));T(this).zb(a);return this}Qd(a){T(this).Qd(a);return this}ob(a){olympe.j.Ef(a,b=>{b&&b.ii&&(this.Ha.update(b),T(this).ob(b.ii()))});return this}Na(a){olympe.j.mc(a)?this.backgroundColor.repeat(a):this.backgroundColor.update(a);super.Na(a);return this}fn(a){T(this).fn(a);
|
|
697
|
-
return this}uu(a){T(this).uu(a);return this}ru(a){T(this).ru(a);return this}Au(a){T(this).Au(a);return this}Gg(a){T(this).Gg(a);return this}Sg(a){T(this).Sg(olympe.j.Ef(a,b=>b.ii()));return this}
|
|
697
|
+
return this}uu(a){T(this).uu(a);return this}ru(a){T(this).ru(a);return this}Au(a){T(this).Au(a);return this}Gg(a){T(this).Gg(a);return this}Sg(a){T(this).Sg(olympe.j.Ef(a,b=>b.ii()));return this}$b(a){T(this).$b(a);return this}bc(a){T(this).bc(a);return this}fi(a){T(this).fi(a);return this}Ec(a){T(this).Ec(a);return this}Ic(a){T(this).Ic(a);return this}sd(a){T(this).sd(a);return this}rd(a){T(this).rd(a);return this}hu(a){T(this).hu(a);return this}Oo(a=olympe.j.ja.C){T(this).Oo(a);return this}Yc(){null===
|
|
698
698
|
this.ta&&(this.ta=new olympe.ui.Z.Hn(T(this)));return this.ta}Lj(){return this.Yc().Lj()}Kj(){return this.Yc().Kj()}Mj(){return this.Yc().Mj()}kj(a,b,c){return this.Yc().kj(a,b,c)}F(a){this.Yc().F(a)}yk(a,b,c){return this.Yc().yk(a,b,c)}T(a){this.Yc().T(a)}lj(a,b,c){return this.Yc().lj(a,b,c)}O(a){this.Yc().O(a)}Zf(a){J(this.La,a);return this}Nd(a){a&&(olympe.ui.D.vb.prototype.Nd.call(this,a),this.zb(a.YG()),this.Db(a.Ci()),this.yb(a.Bi()),this.Qd(a.ll()),this.rd(a.ZG()),this.Ec(a.$G()),this.Ic(a.aH()),
|
|
699
|
-
this.sd(a.bH()),this.ob(a.cH()),this
|
|
700
|
-
h.ru.K=olympe.j.J.C([]);h.Au.K=olympe.j.J.C([]);h.Gg.K=olympe.j.J.C([]);h.Sg.K=olympe.j.J.C([]);h.
|
|
699
|
+
this.sd(a.bH()),this.ob(a.cH()),this.$b(a.dH()),this.bc(a.eH()),this.Sg(a.EM()))}};olympe.ui.D.Ub.ua=[olympe.ui.Z.og,olympe.ui.D.Vu];h=olympe.ui.D.Ub.prototype;h.gu.K=olympe.j.J.C([]);h.Gf.K=olympe.j.J.C([]);h.Bf.K=olympe.j.J.C([]);h.Rb.K=olympe.j.J.C([]);h.ol.K=olympe.j.J.R;h.uX.K=olympe.j.J.C([0]);h.getValue.K=olympe.j.J.R;h.Ht.K=olympe.j.J.T;h.Db.K=olympe.j.J.C([]);h.yb.K=olympe.j.J.C([]);h.zb.K=olympe.j.J.C([]);h.Qd.K=olympe.j.J.C([]);h.ob.K=olympe.j.J.C([]);h.fn.K=olympe.j.J.C([]);h.uu.K=olympe.j.J.C([]);
|
|
700
|
+
h.ru.K=olympe.j.J.C([]);h.Au.K=olympe.j.J.C([]);h.Gg.K=olympe.j.J.C([]);h.Sg.K=olympe.j.J.C([]);h.$b.K=olympe.j.J.C([]);h.bc.K=olympe.j.J.C([]);h.fi.K=olympe.j.J.C([]);h.Ec.K=olympe.j.J.C([]);h.Ic.K=olympe.j.J.C([]);h.sd.K=olympe.j.J.C([]);h.rd.K=olympe.j.J.C([]);h.hu.K=olympe.j.J.C([]);h.Oo.K=olympe.j.J.C([]);h.Yc.K=new olympe.j.J(()=>olympe.ui.Z.Hn,[]);h.Lj.K=new olympe.j.J(()=>olympe.ui.Z.ye,[]);h.Kj.K=new olympe.j.J(()=>olympe.ui.Z.ye,[]);h.Mj.K=new olympe.j.J(()=>olympe.ui.Z.ye,[]);
|
|
701
701
|
h.kj.K=new olympe.j.J(()=>String,[]);h.yk.K=new olympe.j.J(()=>String,[]);h.lj.K=new olympe.j.J(()=>String,[]);h.Zf.K=olympe.j.J.C([]);olympe.ui.D.Pc=class extends olympe.ui.D.vb{constructor(a,b){super(olympe.ui.Wa.C(olympe.N.D.Pc,olympe.host.qa.nb.NJ));this.C=olympe.j.xb('');this.R=null;b=olympe.ui.Wa.F().tw(b);olympe.ui.D.Pc.prototype.Nd.call(this,b);this.Jb(void 0!==a?a:b.la());T(this).ul(c=>{I(this.C,olympe.j.jc(c))})}Bf(a){T(this).Bf(a);return this}Rb(a){T(this).Bf(a);return this}getValue(){return this.C}ol(){return this.C}Db(a){T(this).Db(a);return this}yb(a){T(this).yb(a);return this}zb(a){T(this).zb(a);return this}Qd(a){T(this).Qd(a);
|
|
702
|
-
return this}ob(a){olympe.j.Ef(a,b=>{b&&b.ii&&T(this).ob(b.ii())});return this}
|
|
703
|
-
T(this).iu(!1)});return this}Yc(){this.R||(this.R=new olympe.ui.Z.Hn(T(this)));return this.R}Lj(){return this.Yc().Lj()}Kj(){return this.Yc().Kj()}Mj(){return this.Yc().Mj()}kj(a){return this.Yc().kj(a)}F(a){this.Yc().F(a)}yk(a){return this.Yc().yk(a)}T(a){this.Yc().T(a)}lj(a){return this.Yc().lj(a)}O(a){this.Yc().O(a)}Nd(a){super.Nd(a);this.zb(a.PG());this.Db(a.Ci());this.yb(a.Bi());this.Qd(a.ll());this.rd(a.QG());this.Ec(a.SG());this.Ic(a.TG());this.sd(a.UG());this.ob(a.VG());this
|
|
704
|
-
olympe.ui.D.Pc.ua=[olympe.ui.D.Vu,olympe.ui.Z.og];h=olympe.ui.D.Pc.prototype;h.Bf.K=olympe.j.J.C([]);h.Rb.K=olympe.j.J.C([]);h.getValue.K=olympe.j.J.R;h.ol.K=olympe.j.J.R;h.Db.K=olympe.j.J.C([]);h.yb.K=olympe.j.J.C([]);h.zb.K=olympe.j.J.C([]);h.Qd.K=olympe.j.J.C([]);h.ob.K=olympe.j.J.C([]);h.
|
|
702
|
+
return this}ob(a){olympe.j.Ef(a,b=>{b&&b.ii&&T(this).ob(b.ii())});return this}$b(a){T(this).$b(a);return this}bc(a){T(this).bc(a);return this}Ec(a){T(this).Ec(a);return this}Ic(a){T(this).Ic(a);return this}sd(a){T(this).sd(a);return this}rd(a){T(this).rd(a);return this}Gg(a){T(this).Gg(a);return this}Sg(a){T(this).Sg(olympe.j.Ef(a,b=>b.ii()));return this}Gf(a){T(this).Gf(a);return this}iu(a){olympe.j.ab([a],b=>{b.valueOf()?T(this).iu(!0,olympe.j.ib().md(c=>{I(olympe.j.Ua(this.la()).ra(),olympe.j.Ca(c))})):
|
|
703
|
+
T(this).iu(!1)});return this}Yc(){this.R||(this.R=new olympe.ui.Z.Hn(T(this)));return this.R}Lj(){return this.Yc().Lj()}Kj(){return this.Yc().Kj()}Mj(){return this.Yc().Mj()}kj(a){return this.Yc().kj(a)}F(a){this.Yc().F(a)}yk(a){return this.Yc().yk(a)}T(a){this.Yc().T(a)}lj(a){return this.Yc().lj(a)}O(a){this.Yc().O(a)}Nd(a){super.Nd(a);this.zb(a.PG());this.Db(a.Ci());this.yb(a.Bi());this.Qd(a.ll());this.rd(a.QG());this.Ec(a.SG());this.Ic(a.TG());this.sd(a.UG());this.ob(a.VG());this.$b(a.WG());this.bc(a.XG())}};
|
|
704
|
+
olympe.ui.D.Pc.ua=[olympe.ui.D.Vu,olympe.ui.Z.og];h=olympe.ui.D.Pc.prototype;h.Bf.K=olympe.j.J.C([]);h.Rb.K=olympe.j.J.C([]);h.getValue.K=olympe.j.J.R;h.ol.K=olympe.j.J.R;h.Db.K=olympe.j.J.C([]);h.yb.K=olympe.j.J.C([]);h.zb.K=olympe.j.J.C([]);h.Qd.K=olympe.j.J.C([]);h.ob.K=olympe.j.J.C([]);h.$b.K=olympe.j.J.C([]);h.bc.K=olympe.j.J.C([]);h.Ec.K=olympe.j.J.C([]);h.Ic.K=olympe.j.J.C([]);h.sd.K=olympe.j.J.C([]);h.rd.K=olympe.j.J.C([]);h.Gg.K=olympe.j.J.C([]);h.Sg.K=olympe.j.J.C([]);h.Gf.K=olympe.j.J.C([]);
|
|
705
705
|
h.iu.K=olympe.j.J.C([0]);h.Yc.K=new olympe.j.J(()=>olympe.ui.Z.Hn,[]);h.Lj.K=new olympe.j.J(()=>olympe.ui.Z.ye,[]);h.Kj.K=new olympe.j.J(()=>olympe.ui.Z.ye,[]);h.Mj.K=new olympe.j.J(()=>olympe.ui.Z.ye,[]);h.kj.K=new olympe.j.J(()=>String,[]);h.yk.K=new olympe.j.J(()=>String,[]);h.lj.K=new olympe.j.J(()=>String,[]);olympe.ui.D.xd=class extends olympe.ui.D.vb{constructor(a){super(olympe.ui.Wa.C(olympe.N.D.xd,olympe.host.qa.nb.PJ),a);this.O=new olympe.j.ia(olympe.j.ha(),olympe.j.ha());this.pa().rw((b,c)=>{J(this.O.na(),b);J(this.O.ra(),c)});this.F=olympe.j.qb(olympe.j.ja).update(olympe.j.ja.C);this.C=olympe.j.qb(olympe.j.ja).update(olympe.j.ja.wb);this.T=olympe.j.qb(olympe.j.ja).update(olympe.j.ja.wb);this.volume=olympe.j.qb(olympe.j.aa).update(olympe.j.aa.ONE);this.R=olympe.j.qb(olympe.j.aa).update(olympe.j.aa.ZERO);
|
|
706
706
|
this.duration=olympe.j.qb(olympe.j.aa).update(olympe.j.aa.ZERO);this.pa().Bo(()=>{this.F.update(olympe.j.ja.wb)});this.pa().Ao(()=>{this.F.update(olympe.j.ja.C)});this.pa().Eo((b,c)=>{this.volume.update(olympe.j.Ca(b));this.C.update(olympe.j.Mc(c))});this.pa().Co(b=>{this.R.update(olympe.j.Ca(b))});this.pa().vo(()=>{this.T.update(olympe.j.ja.C)});this.pa().uo(b=>{this.duration.update(olympe.j.Ca(b))})}ge(a){this.pa().ge(a);return this}rj(a){this.pa().rj(olympe.j.Ef(a,b=>b?b.pa():null));return this}rw(){return this.O}Ii(a){this.pa().Ii(a);
|
|
707
707
|
return this}ei(a){this.pa().ei(a);return this}Ji(a){this.pa().Ji(a);return this}hi(a){this.pa().hi(a);return this}play(){this.pa().play();return this}pause(){this.pa().pause();return this}reload(){this.pa().reload();return this}sj(a){this.pa().sj(Jb(0,Ib(1,a)));return this}Zj(a){this.pa().Zj(a);return this}};h=olympe.ui.D.xd.prototype;h.ge.K=olympe.j.J.C([]);h.rj.K=olympe.j.J.C([]);h.Ii.K=olympe.j.J.C([]);h.ei.K=olympe.j.J.C([]);h.Ji.K=olympe.j.J.C([]);h.hi.K=olympe.j.J.C([]);olympe.ui.D.Audio=class extends olympe.ui.D.vb{constructor(a){super(olympe.ui.Wa.C(olympe.N.D.Audio,olympe.host.qa.nb.HJ),a);this.C=olympe.j.qb(olympe.j.ja).update(olympe.j.ja.C);this.F=olympe.j.qb(olympe.j.ja).update(olympe.j.ja.wb);this.R=olympe.j.qb(olympe.j.ja).update(olympe.j.ja.wb);this.volume=olympe.j.qb(olympe.j.aa).update(olympe.j.aa.ONE);this.O=olympe.j.qb(olympe.j.aa).update(olympe.j.aa.ZERO);this.duration=olympe.j.qb(olympe.j.aa).update(olympe.j.aa.ZERO);this.pa().Bo(()=>{this.C.update(olympe.j.ja.wb)});
|
|
@@ -709,23 +709,23 @@ this.pa().Ao(()=>{this.C.update(olympe.j.ja.C)});this.pa().Eo((b,c)=>{this.volum
|
|
|
709
709
|
return this}play(){this.pa().play();return this}pause(){this.pa().pause();return this}reload(){this.pa().reload();return this}sj(a){this.pa().sj(Jb(0,Ib(1,a)));return this}Zj(a){this.pa().Zj(a);return this}};h=olympe.ui.D.Audio.prototype;h.ge.K=olympe.j.J.C([]);h.rj.K=olympe.j.J.C([]);h.Ii.K=olympe.j.J.C([]);h.ei.K=olympe.j.J.C([]);h.Ji.K=olympe.j.J.C([]);h.hi.K=olympe.j.J.C([]);olympe.ui.D.nt=class extends olympe.ui.D.vb{constructor(a,b){super(olympe.ui.Wa.C(olympe.N.D.nt,olympe.host.qa.nb.QJ),a);void 0!==b&&this.Ek(b)}Ek(a){T(this).Ek(a)}};olympe.ui.D.dT=class extends olympe.ui.D.ee{constructor(a,b){super(a);this.ic=olympe.j.xb(b);a=olympe.ui.Wa.F().Dz(this.ic);this.R=olympe.j.ha();this.od=olympe.j.ha();this.ae=olympe.j.ha();this.gd=olympe.j.xb();this.Cc=olympe.j.ha();this.Kc=olympe.j.Sc();this.ec=olympe.j.ha();this.Mb=olympe.j.Sc();this.Af=olympe.j.Sc();this.ka=olympe.j.ha();this.Qg=olympe.j.pb(String,olympe.ui.fa.Hb.Vb);this.Di=olympe.j.pb(String,olympe.ui.fa.tc.Nc);this.$=olympe.j.Sc();this.Xc=olympe.j.ha();this.F=new olympe.ui.D.Cd(this.la().na(),
|
|
710
710
|
0,0,0,!1,this.la().ra());this.C=new olympe.ui.D.He(olympe.j.Uc(this.la().na(),this.R));this.T=new olympe.ui.D.am(olympe.j.Uc(this.ka,this.R));this.Ab=olympe.j.xb();this.V=olympe.j.Uc();this.Cb=olympe.j.Uc();this.La=olympe.j.Tc();this.ta=olympe.j.Sc();this.Ha=olympe.j.ha();this.Ea=olympe.j.Sc();this.Fh=new olympe.ui.D.gb(olympe.j.Uc(this.la().na(),this.R));this.close=new olympe.ui.D.se(this.V);this.close.qd(this.La);this.close.Na(this.ta);this.close.Fd(this.Ha,this.Ea);this.close.tg(this.Ab,olympe.ui.fa.Vg.Qq,
|
|
711
711
|
olympe.ui.fa.Re.Vb,this.V,this.Cb);this.F.appendChild(this.C,'titleContainer');this.F.Fd(this.ec,this.Mb);this.C.appendChild(this.Fh,'titleText',olympe.j.Uc(0,0));this.C.appendChild(this.T,'closeButtonContainer',olympe.j.Uc(this.la().na().Fa(this.T.la().ra()),0));this.C.Fd(this.Cc,this.Kc);this.C.kc(this.Xc);this.T.Na(this.$);this.T.appendChild(this.close,'closeButton',olympe.j.Uc(.5,.5));olympe.ui.D.dT.prototype.Nd.call(this,a);a=this.Fh;a.zb(this.od);a.Db(this.ae);a.yb(this.gd);a.ob(this.Af);a.Na(this.$);
|
|
712
|
-
a
|
|
713
|
-
a.JL());J(this.Cb,a.SL());J(this.Ha,a.QL());J(this.Ea,a.PL())}Zf(a){J(this.ic,a);return this}};let Ld=0;function Md(a,b){return a.C.Ba().getMonth().
|
|
712
|
+
a.$b(this.Qg);a.bc(this.Di);xd(this,this.F,'WindowComponent')}le(a,b){this.F.appendChild(a,b);return this}Nd(a){super.Nd(a);J(this.R,olympe.j.ha(a.qN()));J(this.od,olympe.j.ha(a.oN()));J(this.ae,olympe.j.ha(a.pN()));J(this.gd,olympe.j.xb(a.nN()));J(this.Af,a.rN());J(this.Cc,olympe.j.ha(a.lN()));J(this.Kc,a.kN());var b=a.tN();J(this.Qg,a.sN());J(this.Di,b);J(this.$,a.jN());J(this.Xc,a.mN());J(this.ec,a.gH());J(this.Mb,a.fH());J(this.Ab,a.UL());J(this.V,a.TL());J(this.La,a.RL());J(this.ta,a.OL());J(this.ka,
|
|
713
|
+
a.JL());J(this.Cb,a.SL());J(this.Ha,a.QL());J(this.Ea,a.PL())}Zf(a){J(this.ic,a);return this}};let Ld=0;function Md(a,b){return a.C.Ba().getMonth().df(b.getMonth())}function Nd(a,b){return a.C.Ba().Wp().df(b.Wp()).and(Md(a,b))}function Od(a,b){J(a.Cc,olympe.j.Mc(b))}
|
|
714
714
|
olympe.ui.D.$f=class extends olympe.ui.D.ee{constructor(a,b,c,d){function e(u,w){return olympe.j.fb([u],v=>{let x=(new Date(v.getYear(),v.getMonth()-1,1)).getDay();const y=(new Date(v.getYear(),v.getMonth(),0)).getDate();0===x&&(x=7);return w<x-1?Ob(new Date(v.getYear(),v.getMonth()-1,1)).st(-(x-(w+1))):w-(x-1)<y?Ob(new Date(v.getYear(),v.getMonth()-1,1)).st(w-(x-1)):42>w?Ob(new Date(v.getYear(),v.getMonth(),1)).st(w-(x-1)-y):Ob(v)},olympe.j.cc)}function f(){for(let u=0;3>u;u++)for(let w=0;4>w;w++)p(u,
|
|
715
715
|
w)}function g(){for(let u=0;6>u;u++)for(let w=0;7>w;w++)r(u,w)}super(a);const k=void 0===c?olympe.j.Ca(400):c.na(),l=void 0===c?olympe.j.Ca(400):c.ra();c='Mon Tue Wed Thu Fri Sat Sun'.split(' ');this.Fh=olympe.j.Uc();this.Di=olympe.j.xb();this.T=olympe.j.Sc();this.cD=olympe.j.ha();this.Cw=olympe.j.Sc();this.ka=olympe.j.Sc();this.eD=olympe.j.Sc();olympe.j.Sc();this.UD=Xb(this.ka.rk(),this.ka.qk(),this.ka.pk());this.La=olympe.j.BW();this.C=olympe.j.qb(olympe.j.cc).update(olympe.j.Ua(olympe.j.cc.now()));
|
|
716
716
|
this.Cc=olympe.j.Tc(!1);this.Af=void 0===b?olympe.j.ja.C:b;this.Ea=null;this.F=new olympe.ui.D.Ub(void 0,'default');this.Ha=null;this.ae=olympe.j.pb(olympe.ui.D.Nf,olympe.ui.Wa.jf());this.ec=this.gd=this.od=this.Xc=this.Mb=this.Ab=this.ta=this.Kc=this.Cb=this.V=this.R=null;this.ic=Ld++;this.fD=olympe.j.Sc();this.pD=olympe.j.ha();this.$=olympe.j.Tc(!0);const m=new Intl.DateTimeFormat(void 0,{month:'short'}),n=new Intl.DateTimeFormat(void 0,{weekday:'short'}),p=(u,w)=>{const v=new olympe.ui.D.gb(new olympe.j.ia(k.Va(5),
|
|
717
|
-
k.Va(5)));v.kc(k);v
|
|
718
|
-
olympe.j.cb(v.Eh(),()=>v.Fd(1,N()),()=>{const y=olympe.j.Ua(Md(this,x));y&&y.valueOf()||v.Fd(1,this.T)});this.od.appendChild(v,'dpMonthElem'+(4*u+w),new olympe.j.ia(k.Va(4).jb(w).$a(k.Va(4).Fa(k.Va(5)).Va(2)),l.Va(10).jb(9).Va(3).jb(u)))},r=(u,w)=>{const v=new olympe.ui.D.gb(new olympe.j.ia(l.Va(10),l.Va(10)));v.kc(k);v
|
|
719
|
-
v.Na(O())})},()=>{v.ob(this.UD);v.Na(O())});v.Zc(()=>{this.C.update(Nb({year:olympe.j.Ua(x).getYear(),month:olympe.j.Ua(x).getMonth(),day:olympe.j.Ua(x).Wp()}));J(this.La,this.C.Ba());Od(this,olympe.j.Tc(!1))});olympe.j.cb(this.C.Ba().So().
|
|
717
|
+
k.Va(5)));v.kc(k);v.$b(olympe.ui.fa.Hb.Vb);v.bc(olympe.ui.fa.tc.Nc);const x=olympe.j.pb(olympe.j.cc,Nb({year:olympe.j.Ua(this.C.Ba()).getYear(),month:4*u+w+1,day:olympe.j.Ua(this.C.Ba()).Wp()}));olympe.j.ab([x],y=>{m.format(y.Lq())});olympe.j.cb(Md(this,x),()=>{v.ob(N()).zb(18).Db(600).Fd(1,N())},()=>{v.ob(this.ka).Db(400).zb(16).Fd(0,N())});v.Na(this.T);v.Zc(()=>{this.C.update(Nb({year:olympe.j.Ua(this.C.Ba()).getYear(),month:4*u+w+1,day:olympe.j.Ua(this.C.Ba()).Wp()}));J(this.$,olympe.j.ja.C);g()});
|
|
718
|
+
olympe.j.cb(v.Eh(),()=>v.Fd(1,N()),()=>{const y=olympe.j.Ua(Md(this,x));y&&y.valueOf()||v.Fd(1,this.T)});this.od.appendChild(v,'dpMonthElem'+(4*u+w),new olympe.j.ia(k.Va(4).jb(w).$a(k.Va(4).Fa(k.Va(5)).Va(2)),l.Va(10).jb(9).Va(3).jb(u)))},r=(u,w)=>{const v=new olympe.ui.D.gb(new olympe.j.ia(l.Va(10),l.Va(10)));v.kc(k);v.$b(olympe.ui.fa.Hb.Vb);v.bc(olympe.ui.fa.tc.Nc);const x=e(this.C.Ba(),7*u+w);v.Rb(x.Wp().Hg());olympe.j.cb(Md(this,x),()=>{olympe.j.cb(Nd(this,x),()=>{v.ob(M());v.Na(N())},()=>{v.ob(this.ka);
|
|
719
|
+
v.Na(O())})},()=>{v.ob(this.UD);v.Na(O())});v.Zc(()=>{this.C.update(Nb({year:olympe.j.Ua(x).getYear(),month:olympe.j.Ua(x).getMonth(),day:olympe.j.Ua(x).Wp()}));J(this.La,this.C.Ba());Od(this,olympe.j.Tc(!1))});olympe.j.cb(this.C.Ba().So().df(x.So()).Rf(),()=>{const y=olympe.j.Ua(Md(this,x));void 0!==y&&y.valueOf()&&v.ob(N());v.Na(this.T)});v.Fd(olympe.j.cb(v.Eh(),()=>1,()=>0,olympe.j.aa),olympe.j.cb(v.Eh(),()=>N(),()=>this.T,olympe.j.Color));this.gd.appendChild(v,'dpElem'+(7*u+w),new olympe.j.ia(k.Va(7).jb(w).$a(k.Va(7).Fa(l.Va(8)).Va(2)),
|
|
720
720
|
l.Va(10).jb(u).jb(7).Va(6)))},t=(u,w)=>{u=u.split('/');if(3===u.length){const v=Nb({year:parseInt(u[2],10),month:parseInt(u[1],10),day:parseInt(u[0],10)});if(!v.ql()||4>u[2].length)return w;J(this.La,v);return v}return w};b=olympe.ui.Wa.F().yC(d);olympe.ui.D.$f.prototype.Nd.call(this,b);this.R=new olympe.ui.D.Cd;this.R.Na(this.T);this.R.Fd(this.cD,this.Cw);this.Af.valueOf()?this.F.Jb(new olympe.j.ia(a.na().Fa(a.ra()).Fa(8),a.ra())):this.F.Jb(a);this.F.Zf('default');this.ec=new olympe.ui.D.he(a.ra(),
|
|
721
721
|
8);this.ec.appendChild(this.F,'datepickerField');this.F.lj(()=>{this.C.update(t(olympe.j.Ua(this.F.ol()).valueOf(),this.C.Ba()))});olympe.j.ab([this.La],u=>{this.F.Rb(u.So())});if(this.Af){this.Xc=(new olympe.ui.D.oc(new olympe.j.ia(a.ra(),a.ra()),'default')).Zf('default').Rb('\uf073').yb('Fontawesome');this.Xc.Zc(()=>{Od(this,olympe.j.cb(G(this.Cc),()=>olympe.j.ja.wb,()=>olympe.j.ja.C,olympe.j.ja))});this.V=new olympe.ui.D.gb(new olympe.j.ia(k.Va(8).jb(6),l.Va(8)));this.V.Rb(olympe.j.fb([this.C.Ba(),
|
|
722
|
-
this.$],(w,v)=>{const x=w.getYear().Hg();return v.valueOf()?olympe.j.jc(m.format(w.Lq())).gz(x,' '):x},olympe.j.lb));this.V.ob(N());olympe.j.cb(this.V.Eh(),()=>{this.V.zb(18);this.V.Db(600)},()=>{this.V.zb(16);this.V.Db(400)});this.V.bc(olympe.ui.fa.tc.Nc);this.V
|
|
722
|
+
this.$],(w,v)=>{const x=w.getYear().Hg();return v.valueOf()?olympe.j.jc(m.format(w.Lq())).gz(x,' '):x},olympe.j.lb));this.V.ob(N());olympe.j.cb(this.V.Eh(),()=>{this.V.zb(18);this.V.Db(600)},()=>{this.V.zb(16);this.V.Db(400)});this.V.bc(olympe.ui.fa.tc.Nc);this.V.$b(olympe.ui.fa.Hb.Vb);this.V.Zc(()=>{olympe.j.cb(G(this.$),()=>J(this.$,olympe.j.ja.wb))});this.Ab=new olympe.ui.D.oc(new olympe.j.ia(k.Va(8),l.Va(8)),'\uf053');this.Ab.Na(this.T).zb(20).Db(500).ob(N()).yb('FontAwesome');this.Ab.Zc(()=>
|
|
723
723
|
{if(void 0===this.C.Ba())return!1;if(G(this.$).valueOf()){if(void 0!==this.C.Ba())return this.C.update(this.C.Ba().cz(-1)),g(),!0}else if(void 0!==this.C.Ba())return this.C.update(this.C.Ba().Ov(-1)),g(),!0;return!1});this.Ab.Fd(0,this.T);this.Mb=new olympe.ui.D.oc(new olympe.j.ia(k.Va(8),l.Va(8)),'\uf054');this.Mb.Na(this.T).zb(20).Db(500).ob(N()).yb('FontAwesome');this.Mb.Zc(()=>{if(void 0===this.C.Ba())return!1;G(this.$).valueOf()?this.C.update(this.C.Ba().cz(1)):this.C.update(this.C.Ba().Ov(1));
|
|
724
724
|
g();return!0});this.Mb.Fd(0,this.T);this.ta=new olympe.ui.D.oc(new olympe.j.ia(k,l.Va(10)));this.ta.Rb(olympe.j.fb([this.C.Ba()],w=>{w=w.Lq();return olympe.j.jc(`${n.format(w)} ${w.getDate()} ${m.format(w)} ${w.getFullYear()}`)},olympe.j.lb));this.ta.ob(this.ka);this.ta.Na(this.T);this.ta.Yj(olympe.j.Color.create(0,150,136,.8));this.ta.Zc(()=>{Od(this,olympe.j.ja.wb);J(this.$,olympe.j.ja.C);J(this.La,this.C.Ba())});this.ta.Fd(0,this.T);this.Cb=new olympe.ui.D.he;this.Kc=new olympe.ui.D.he(l.Va(10));
|
|
725
|
-
this.gd=new olympe.ui.D.He(new olympe.j.ia(k,l.Va(10).jb(7)));this.od=new olympe.ui.D.He(new olympe.j.ia(k,l.Va(10).jb(9)));this.Qg=new olympe.ui.D.he;this.Cb.appendChild(this.Ab,'topNavLeft');this.Cb.appendChild(this.V,'panelTopTitle');this.Cb.appendChild(this.Mb,'topNavRight');for(b=0;b<c.length;b++)d=new olympe.ui.D.gb(new olympe.j.ia(k.Va(7),l.Va(10))),d.Rb(c[b]),d
|
|
725
|
+
this.gd=new olympe.ui.D.He(new olympe.j.ia(k,l.Va(10).jb(7)));this.od=new olympe.ui.D.He(new olympe.j.ia(k,l.Va(10).jb(9)));this.Qg=new olympe.ui.D.he;this.Cb.appendChild(this.Ab,'topNavLeft');this.Cb.appendChild(this.V,'panelTopTitle');this.Cb.appendChild(this.Mb,'topNavRight');for(b=0;b<c.length;b++)d=new olympe.ui.D.gb(new olympe.j.ia(k.Va(7),l.Va(10))),d.Rb(c[b]),d.$b(olympe.ui.fa.Hb.Vb),d.bc(olympe.ui.fa.tc.Nc),d.ob(this.ka),this.Kc.appendChild(d,'titleRow'+G(this.Kc.ed()).valueOf());g();f();
|
|
726
726
|
this.Qg.appendChild(this.ta,'panelBottomDate');let u=olympe.j.ja.C;this.R.appendChild(this.Cb,'panelTop');olympe.j.cb(this.$,()=>{u.Rf().valueOf()&&this.R.removeChild('panelMonthsContent');this.R.appendChild(this.Kc,'panelTitles');this.R.appendChild(this.gd,'panelDaysContent');this.R.appendChild(this.Qg,'panelBottom');u=olympe.j.ja.wb},()=>{u.Rf().valueOf()&&(this.R.removeChild('panelTitles'),this.R.removeChild('panelDaysContent'),this.R.removeChild('panelBottom'));this.R.appendChild(this.od,'panelMonthsContent');
|
|
727
727
|
u=olympe.j.ja.wb});this.Ea=new olympe.ui.D.Bd(this.ae.la());this.Ea.Na(new olympe.j.Color(0,0,0,0));this.Ea.Zc(()=>{Od(this,olympe.j.ja.wb);J(this.$,olympe.j.ja.C)});olympe.j.cb(this.Cc,()=>{this.Ha=G(this.ae);this.Ea&&this.Ha.appendChild(this.Ea,'datepickerPanelOverlay_'+this.ic);this.Ha.appendChild(this.R,'datepickerPanel_'+this.ic,new olympe.j.ia(this.Bh().na(),this.Bh().ra().$a(a.ra().$a(8))))},()=>{if(this.Ha){const w=this.Ha;this.Ha=null;w.removeChild('datepickerPanel_'+this.ic);this.Ea&&w.removeChild('datepickerPanelOverlay_'+
|
|
728
|
-
this.ic)}});this.ec.appendChild(this.Xc,' datepickerButton')}xd(this,this.ec,'datepickerFieldContent')}getValue(){return this.La}Bf(a){this.C.update(a);J(this.La,a)}Gg(a){this.F.Gg(a)}
|
|
728
|
+
this.ic)}});this.ec.appendChild(this.Xc,' datepickerButton')}xd(this,this.ec,'datepickerFieldContent')}getValue(){return this.La}Bf(a){this.C.update(a);J(this.La,a)}Gg(a){this.F.Gg(a)}$b(a){this.F.$b(a);return this}bc(a){this.F.bc(a);return this}Rb(a){const b=Lb(a);this.Bf(olympe.j.cb(b.ql(),()=>b,()=>{},olympe.j.cc));return this}Db(a){this.F.Db(a);return this}yb(a){this.F.yb(a);return this}zb(a){this.F.zb(a);return this}Qd(a){this.F.Qd(a);return this}ob(a){this.F.ob(a);return this}Nd(a){super.Nd(a);
|
|
729
729
|
J(this.T,a.BM());J(this.ka,a.DM());J(this.eD,a.CM());J(this.Fh,a.LL());J(this.Di,a.ML());this.Na(a.IL());this.F.Na(a.bN());this.F.ob(a.iN());this.F.Sg(a.hN());this.F.zb(a.eN());this.F.Db(a.fN());J(this.fD,a.cN());J(this.pD,a.dN());this.F.Ec(a.gN())}};olympe.ui.D.$f.ua=[olympe.ui.D.Vu];olympe.ui.D.Kd=class extends olympe.ui.D.ee{constructor(a,b=0,c=100,d=1){super(a);const e=this.la();this.F=olympe.j.fb([e.na(),e.ra()],(y,B)=>olympe.j.Mc(y>=B),olympe.j.ja);this.min=olympe.j.ha(b);this.max=olympe.j.ha(c);this.Cb=olympe.j.ha(d);this.T=olympe.j.qb(olympe.j.aa);this.disabled=olympe.j.qb(olympe.j.ja).update(olympe.j.ja.wb);a=olympe.j.Ua(this.min);Hb(this.T,a?a:olympe.j.aa.ZERO);this.Bf(this.max.Fa(this.min).Va(2).$a(this.min));this.value=this.T.Ba();olympe.j.ab([this.min],y=>{Hb(this.T,
|
|
730
730
|
y)});this.R=Object.create(null);const f=Ib(e.na(),e.ra()).Fa(4),g=Jb(f.Va(2).$a(2),olympe.j.Ca(5));this.lineWidth=olympe.j.ha(5);const k=olympe.j.fb([this.F],y=>y.valueOf()?new olympe.j.ia(e.na().Fa(g.jb(2)),this.lineWidth):new olympe.j.ia(this.lineWidth,e.ra().Fa(g.jb(2))),olympe.j.ia);a=olympe.j.fb([this.F],y=>y.valueOf()?new olympe.j.ia(g,e.ra().Fa(this.lineWidth).Va(2)):new olympe.j.ia(e.na().Fa(this.lineWidth).Va(2),g),olympe.j.ia);this.Ea=Q(K());this.ta=Q(Vb());this.La=Q(M());this.ka=Q(K());
|
|
731
731
|
this.Ha=Q(Tb('lime',0,255,0,1));this.V=olympe.j.ha(1);this.$=new olympe.ui.D.se(k);this.$.setPosition(a).Na(this.Ea);xd(this,this.$,'SliderLine');a=olympe.j.fb([this.F],y=>y.valueOf()?new olympe.j.ia(this.value.Fa(this.min).Va(this.max.Fa(this.min)).jb(k.na()).round().Fa(f.Va(2)).$a(g),e.ra().Fa(f).Va(2)):new olympe.j.ia(e.na().Fa(f).Va(2),this.value.Fa(this.min).Va(this.max.Fa(this.min)).jb(k.ra()).round().Fa(f.Va(2)).$a(g)),olympe.j.ia);this.C=new olympe.ui.D.Ol(f);this.C.setPosition(a).Fd(this.V,
|
|
@@ -738,8 +738,8 @@ class Vd extends olympe.ui.D.ee{constructor(a,b,c,d){const e=c.la().ra();super(n
|
|
|
738
738
|
this.close();n=!1}m=!1},t=()=>{n=m=!1;g=c.Rg(p);k=c.zk(p)};c.Ak(w=>{t(Qd(w.Pd()))});c.dh(t);c.zo(w=>{l=c.yo(r);f=new olympe.j.Od('SlidingMouseMove-'+olympe.oa.De());const v=Qd(this.R.Pe().na()).valueOf(),x=Qd(this.C.T().ra());f.run(()=>{olympe.j.ab([w.Xp().na(),w.Xp().ra()],(y,B)=>{y=y.valueOf();const E=B.valueOf();5>=Math.abs(E)&&3>Math.abs(y)||(g&&c.Eg(g),k&&c.jj(k),k=g=void 0,!n&&5<Math.abs(E)?(m=!0,y=Qd(this.C.T().na()),yd(this.C,new Pd(y,x.Fa(B)))):(n=!0,Ud(this,v+y)))});Wd(this.C,this)})});
|
|
739
739
|
a.appendChild(c,'element');let u=0;for(const w of this.C.buttons){const v=new Rd(new Pd(e,e));v.tg(w.url);v.setPosition(new Pd(b.$a(e.jb(u)),0));v.Po(olympe.ui.fa.Vg.Cs);v.Zc(()=>{m||n||!w.callback||w.callback(d)});this.F.push(v);a.appendChild(v,'image'+u);u++}xd(this,a,'absLayout')}destroy(){this.C=null;this.F.length=0}close(){var a=Qd(this.R.Pe().na());0>a.valueOf()&&(a=Kb(a,0,200,olympe.j.aa.wh.Fs),olympe.j.ab([a],b=>{Ud(this,b.valueOf())}))}}
|
|
740
740
|
function Wd(a,b){a.O!==b&&(a.O&&a.O.close(),a.O=b)}function Xd(a,b){a.buttons.push({url:'images/QuestionMark.png',callback:b})}
|
|
741
|
-
olympe.ui.D.JS=class extends olympe.ui.D.Bd{constructor(a,b,c,d){var e=olympe.sc.ui.Ij;super(a);this.data=b;this.type=e;this.C=new olympe.ui.D.Cd(a.na());this.R=olympe.j.qb(olympe.j.Color).update(Vb());this.$=d;this
|
|
742
|
-
const m=new olympe.ui.D.Cd(f);var n=this
|
|
741
|
+
olympe.ui.D.JS=class extends olympe.ui.D.Bd{constructor(a,b,c,d){var e=olympe.sc.ui.Ij;super(a);this.data=b;this.type=e;this.C=new olympe.ui.D.Cd(a.na());this.R=olympe.j.qb(olympe.j.Color).update(Vb());this.$=d;this.$e=c;this.buttons=[];this.F=new Map;this.O=null;const f=a.na();this.ps(olympe.j.ja.wb);olympe.j.ab([this.data],g=>{this.C.ig();for(const l of this.F.values())l.destroy();this.F.clear();const k=(new Rd(new Pd(f,2))).Na(this.R.Ba());this.C.appendChild(k,'last');g.forEach(l=>{this.C.removeChild('last');
|
|
742
|
+
const m=new olympe.ui.D.Cd(f);var n=this.$e(l);const p=new Rd(new Pd(f,2));p.Na(this.R.Ba());m.appendChild(p,'separator',olympe.ui.fa.Hb.Vb);n=new Vd(this,f,n,l);m.appendChild(n,'line');this.F.set(l.toString(),n);this.C.appendChild(m,l.toString(),olympe.ui.fa.Hb.Vb);this.C.appendChild(k,'last')},l=>{this.F.get(l.toString())&&(this.F.delete(l.toString()),this.C.removeChild(l.toString()))})});this.le(this.C)}};olympe.ui.D.xh=class extends olympe.ui.D.Element{constructor(){super(olympe.ui.Wa.C(olympe.N.D.xh,olympe.host.qa.nb.AS))}C(){return this.Ce()}addColorStop(a,b){this.C().addColorStop(a,b)}};olympe.ui.D.xh.prototype.C.K=new olympe.j.J(()=>olympe.N.D.lc,[]);olympe.ui.D.lc=class extends olympe.ui.D.vb{constructor(a){super(olympe.ui.Wa.C(olympe.N.D.lc,olympe.host.qa.nb.IJ),a)}arc(a,b,c,d,e,f){this.pa().arc(a,b,c,d,e,f);return this}arcTo(a,b,c,d,e){this.pa().arcTo(a,b,c,d,e);return this}beginPath(){this.pa().beginPath();return this}bezierCurveTo(a,b,c,d,e,f){this.pa().bezierCurveTo(a,b,c,d,e,f);return this}clearRect(a,b,c,d){this.pa().clearRect(a,b,c,d);return this}clip(){this.pa().clip();return this}closePath(){this.pa().closePath();return this}fill(){this.pa().fill();
|
|
743
743
|
return this}fillRect(a,b,c,d){this.pa().fillRect(a,b,c,d);return this}fillText(a,b,c,d){this.pa().fillText(a,b,c,d);return this}lineTo(a,b){this.pa().lineTo(a,b);return this}ij(a,b){this.pa().ij(a,b);return this}moveTo(a,b){this.pa().moveTo(a,b);return this}quadraticCurveTo(a,b,c,d){this.pa().quadraticCurveTo(a,b,c,d);return this}rect(a,b,c,d){this.pa().rect(a,b,c,d);return this}stroke(){this.pa().stroke();return this}strokeRect(a,b,c,d){this.pa().strokeRect(a,b,c,d);return this}strokeText(a,b,c,
|
|
744
744
|
d){this.pa().strokeText(a,b,c,d);return this}createLinearGradient(a,b,c,d){this.pa().createLinearGradient(a,b,c,d);return this}addColorStop(a,b){this.pa().addColorStop(a,b);return this}Zv(){this.pa().Zv();return this}pj(a){this.pa().pj(a);return this}qs(a){this.pa().qs(a);return this}OQ(a){this.pa().pj(a.C().V());return this}Uj(a){this.pa().Uj(a);return this}Hq(a){this.pa().Hq(a);return this}eh(a){this.pa().eh(a);return this}Wj(a){this.pa().Wj(a);return this}Ih(a){this.pa().Ih(a);return this}Hh(a){this.pa().Hh(a);
|
|
745
745
|
return this}le(a){this.pa().le(a.pa());return this}};h=olympe.ui.D.lc.prototype;h.arc.K=olympe.j.J.C([0,1,2,3,4,5]);h.arcTo.K=olympe.j.J.C([0,1,2,3,4,5]);h.beginPath.K=olympe.j.J.C([]);h.bezierCurveTo.K=olympe.j.J.C([0,1,2,3,4,5]);h.clearRect.K=olympe.j.J.C([0,1,2,3]);h.clip.K=olympe.j.J.C([]);h.closePath.K=olympe.j.J.C([]);h.fill.K=olympe.j.J.C([]);h.fillRect.K=olympe.j.J.C([0,1,2,3]);h.fillText.K=olympe.j.J.C([0,1,2,3]);h.lineTo.K=olympe.j.J.C([0,1]);h.ij.K=olympe.j.J.C([0,1]);
|
|
@@ -747,18 +747,18 @@ h.moveTo.K=olympe.j.J.C([0,1]);h.quadraticCurveTo.K=olympe.j.J.C([0,1,2,3]);h.re
|
|
|
747
747
|
h.Ih.K=olympe.j.J.C([0]);h.Hh.K=olympe.j.J.C([0]);h.le.K=olympe.j.J.C([0]);function Yd(a,b){const c=(k,l)=>{k=a+k;let m=b;-1===k?(k=11,m--):12===k&&(k=0,m++);return{day:l,month:k,year:m}};var d=new Date(b,a,1),e=(new Date(d.getTime()-864E5)).getDate(),f=(new Date((new Date(b,a+1,1)).getTime()-864E5)).getDate();d=Array((d.getDay()||7)-1).fill(0).map((k,l)=>c(-1,e-l)).reverse();f=Array(f).fill(0).map((k,l)=>c(0,l+1));var g=7-(d.length+f.length)%7;g=Array(7===g?0:g).fill(0).map((k,l)=>c(1,l+1));return d.concat(f,g).reduce((k,l,m)=>{m=Math.floor(m/7);void 0===k[m]&&(k[m]=[]);
|
|
748
748
|
k[m].push(l);return k},[])}
|
|
749
749
|
olympe.ui.D.ME=class extends olympe.ui.D.Cd{constructor(a,{FX:b,MV:c,yT:d,MX:e}={}){const f=olympe.j.jc,g=olympe.j.cc,k=olympe.j.ab,l=olympe.j.Ua,m=olympe.j.Color;var n=olympe.j.qb;const p=olympe.j.cb,r=olympe.j.ia,t=olympe.j.th,u=a.na(),w=a.ra();super(u,0,0,0,w);this.disabled=olympe.j.qb(olympe.j.ja).update(olympe.j.ja.wb);this.La=n(g);this.C=Hb(n(g),g.now());this.ka=Nb({year:100});this.$=Nb({year:1E4});this.ta=()=>{};a=Jb(40,w.Va(7));const v=Jb(20,w.Va(10)),x=a.$a(v),y=u.Va(7),B=new Intl.DateTimeFormat(void 0,
|
|
750
|
-
{month:'long'});this.F={uO:(H,W)=>{H.Rb(f(W.day));H.Na(p(W.hq,()=>Vb(),()=>O(),m));H.bc(olympe.ui.fa.tc.Nc);H
|
|
751
|
-
weekday:(H,W)=>{H.Rb('Mo Tu We Th Fr Sa Su'.split(' ')[W]);H.bc(olympe.ui.fa.tc.Nc);H
|
|
750
|
+
{month:'long'});this.F={uO:(H,W)=>{H.Rb(f(W.day));H.Na(p(W.hq,()=>Vb(),()=>O(),m));H.bc(olympe.ui.fa.tc.Nc);H.$b(olympe.ui.fa.Hb.Vb);H.ob(p(W.WC,()=>m.red(),()=>p(W.TC,()=>K(),()=>M(),m),m))},vN:(H,W,Ca)=>{H.Rb(olympe.j.fb([Ca],qa=>olympe.j.jc(B.format(qa.Lq())),olympe.j.lb)).Db(800);W.Rb(Ca.getYear().Hg()).Db(800);H.bc(olympe.ui.fa.tc.Nc);H.$b(olympe.ui.fa.Hb.Vb);W.bc(olympe.ui.fa.tc.Nc);W.$b(olympe.ui.fa.Hb.Vb)},iL:(H,W)=>{H.Rb('<'===W?'\uf104':'\uf105').Db(800).yb('FontAwesome').bc(olympe.ui.fa.tc.Nc).$b(olympe.ui.fa.Hb.Vb)},
|
|
751
|
+
weekday:(H,W)=>{H.Rb('Mo Tu We Th Fr Sa Su'.split(' ')[W]);H.bc(olympe.ui.fa.tc.Nc);H.$b(olympe.ui.fa.Hb.Vb)}};void 0!==b&&(this.F.uO=b);void 0!==c&&(this.F.vN=c);void 0!==d&&(this.F.iL=d);void 0!==e&&(this.F.weekday=e);b=new olympe.ui.D.he(a,0,0,0,!1,u);const E=new r(y.Fa(10),a);n=H=>{const W=new olympe.ui.D.gb(E);this.F.iL(W,H);return W};const D=H=>{H=l(this.C.Ba()).clone().cz(H);H.Kz(this.ka,this.$).Lc(olympe.j.ja.C)&&(this.C.update(H),this.ta(H))};c=n('<');c.Zc(()=>D(-1));d=n('>');d.Zc(()=>D(1));
|
|
752
752
|
e=new olympe.ui.D.gb(new r(u.Fa(y.jb(2)).jb(.55),a));a=new olympe.ui.D.gb(new r(u.Fa(y.jb(2)).jb(.3),a));const P=n('<');P.Zc(()=>{const H=l(this.C.Ba()).clone().Ov(-1);H.Kz(this.ka,this.$).Lc(olympe.j.ja.C)&&(this.C.update(H),this.ta(H))});n=n('>');n.Zc(()=>{const H=l(this.C.Ba()).clone().Ov(1);H.Kz(this.ka,this.$).Lc(olympe.j.ja.C)&&(this.C.update(H),this.ta(H))});this.F.vN(e,a,this.C.Ba());b.appendChild(c,'hl_left_arrow');b.appendChild(e,'hl_year');b.appendChild(d,'hl_right_arrow');b.appendChild(P,
|
|
753
753
|
'hl_yleft_arrow');b.appendChild(a,'hl_month');b.appendChild(n,'hl_yright_arrow');this.Ea=new olympe.ui.D.se(new olympe.j.ia(u,1));this.Ea.Na(Vb());const ha=new olympe.ui.D.he(v,0,0,0,!1,u),Ia=H=>{const W=new olympe.ui.D.gb(new r(y,v));this.F.weekday(W,H);return W};Array(7).fill(0).forEach((H,W)=>ha.appendChild(Ia(W),'weekday_'+W));const pa=new olympe.ui.D.Cd(u,0,0,0,!1,w.Fa(x)),Cb=(H,W)=>{const Ca=new olympe.ui.D.gb(new r(y,W));let qa=null;olympe.j.cb(this.disabled.Ba().Rf(),()=>{qa=Ca.Zc(()=>{l(H.TC).valueOf()||
|
|
754
|
-
this.C.update(Nb({year:H.year,month:H.month,day:1}));this.lx(Nb({year:H.year,month:H.month,day:H.day}))})},()=>{null!==qa&&(this.Rj(qa),qa=null)});this.F.uO(Ca,H);return Ca};k([this.C.Ba().getMonth(),this.C.Ba().getYear()],(H,W)=>{H=Yd(H-1,W);const Ca=w.Fa(x).Va(H.length);H.forEach((qa,Ja)=>{const Ra=new olympe.ui.D.he(Ca,0,0,0,!1,u);qa.forEach(ea=>{ea.month++;const lg=ye=>ye.getYear().
|
|
755
|
-
ea.TC=t(this.C.Ba().getMonth().
|
|
754
|
+
this.C.update(Nb({year:H.year,month:H.month,day:1}));this.lx(Nb({year:H.year,month:H.month,day:H.day}))})},()=>{null!==qa&&(this.Rj(qa),qa=null)});this.F.uO(Ca,H);return Ca};k([this.C.Ba().getMonth(),this.C.Ba().getYear()],(H,W)=>{H=Yd(H-1,W);const Ca=w.Fa(x).Va(H.length);H.forEach((qa,Ja)=>{const Ra=new olympe.ui.D.he(Ca,0,0,0,!1,u);qa.forEach(ea=>{ea.month++;const lg=ye=>ye.getYear().df(ea.year).and(ye.getMonth().df(ea.month).and(ye.Wp().df(ea.day)));ea.WC=lg(g.now());ea.hq=t(lg(this.La.Ba()),!1);
|
|
755
|
+
ea.TC=t(this.C.Ba().getMonth().df(ea.month),!1);Ra.appendChild(Cb(ea,Ca),`tile_${ea.month}-${ea.day}`)});pa.appendChild(Ra,`tile_line-${Ja}`)})});this.Na(N());this.Tg(1);this.appendChild(pa,'content_layout');this.appendChild(ha,'weekday_layout');this.appendChild(this.Ea,'separator');this.appendChild(b,'header_layout')}sX(a){this.Ea.Na(a);return this}gX(a){this.ka=a;return this}fX(a){this.$=a;return this}$z(a){olympe.j.ab([a],b=>{b=b.clone();b.ql().valueOf()&&this.C.update(b)})}KU(){return this.C.Ba()}zW(a){this.ta=
|
|
756
756
|
a}Gf(a){olympe.j.mc(a)?this.disabled.repeat(a):this.disabled.update(olympe.j.Mc(a))}lx(a){olympe.j.ab([a],b=>{b=b.clone();b.ql().valueOf()&&this.La.update(b)})}zz(){return this.La.Ba()}};h=olympe.ui.D.ME.prototype;h.sX.K=olympe.j.J.C([]);h.gX.K=olympe.j.J.C([]);h.fX.K=olympe.j.J.C([]);h.$z.K=olympe.j.J.C([]);h.KU.K=new olympe.j.J(()=>olympe.j.cc,[]);h.zW.K=olympe.j.J.O;h.lx.K=olympe.j.J.O;h.zz.K=new olympe.j.J(()=>olympe.j.cc,[]);olympe.ui.D.zv=class extends olympe.ui.D.vb{constructor(a=olympe.ui.D.zv.C.XA,b){const c=new olympe.j.ia;super(olympe.ui.Wa.C(olympe.N.D.qe,olympe.host.qa.nb.NB),c);this.C=olympe.j.qb(olympe.j.aa).update(olympe.j.Ca(a));this.Of=olympe.j.qb(olympe.j.ja).update(olympe.j.Mc(void 0===b));this.Oe=olympe.j.qb(olympe.j.ja).update(olympe.j.Mc(void 0===b));const d=b||new olympe.j.ia(100,100);let e=null;const f=olympe.j.ib().md(()=>{null===e&&(e=new olympe.j.ia);T(this).Vz((g,k)=>{e.oe(g);e.Ge(k)})});olympe.j.ab([this.Of,
|
|
757
757
|
this.Oe],(g,k)=>{k=k.valueOf();g.valueOf()?(f(),c.oe(e.na()),k?c.Ge(e.ra()):c.Ge(d.ra())):k?(f(),c.oe(d.na()),c.Ge(e.ra())):(T(this).Vz(null),c.oe(d.na()),c.Ge(d.ra()))})}Rb(a){olympe.j.ab([a,this.C.Ba()],(b,c)=>{switch(c.valueOf()){case olympe.ui.D.zv.C.CR:b=(new remarkable.Remarkable({html:!0,typographer:!0,xhtmlOut:!0})).render(b.valueOf());break;case olympe.ui.D.zv.C.XA:b=b.valueOf();break;default:b=b.valueOf()}T(this).dA(b)});return this}be(a){olympe.j.ab([a],b=>{this.Of.update(olympe.j.Mc(b))});
|
|
758
758
|
return this}Xd(a){olympe.j.ab([a],b=>{this.Oe.update(olympe.j.Mc(b))});return this}$W(a){this.C.update(olympe.j.Ca(a));return this}ku(a){T(this).ku(a);return this}mu(a){T(this).mu(a);return this}lu(a,b){T(this).lu(a,b.valueOf());return this}Db(a){T(this).Db(a);return this}yb(a){T(this).yb(a);return this}zb(a){T(this).zb(a);return this}Qd(a){T(this).Qd(a);return this}ob(a){T(this).ob(olympe.j.Ef(a,b=>b.ii()));return this}Hf(a=0,b=0,c=0,d=0){T(this).Hf(a,b,c,d);return this}};
|
|
759
759
|
olympe.ui.D.zv.C={CR:1,XA:2};h=olympe.ui.D.zv.prototype;h.Rb.K=olympe.j.J.C([0]);h.be.K=olympe.j.J.C([0]);h.Xd.K=olympe.j.J.C([0]);h.$W.K=olympe.j.J.C([0]);h.ku.K=olympe.j.J.C([0]);h.mu.K=olympe.j.J.C([0]);h.lu.K=olympe.j.J.C([0]);h.Db.K=olympe.j.J.C([0]);h.yb.K=olympe.j.J.C([0]);h.zb.K=olympe.j.J.C([0]);h.Qd.K=olympe.j.J.C([0]);h.ob.K=olympe.j.J.C([0]);h.Hf.K=olympe.j.J.C([0,1,2,3]);function Zd(a,b){const c=new olympe.j.Map(olympe.j.aa),d=new olympe.j.Map(olympe.j.aa);a.F.forEach((f,g)=>{c.set(g,f.la().na());d.set(g,f.la().ra())});const e=new olympe.ui.D.He(new olympe.j.ia(olympe.j.aa.max(c),olympe.j.aa.max(d)));olympe.j.ab([a.C],f=>{e.ig();f=a.F.Ch(f);const g=new olympe.j.ia(e.td().Fa(f.td()).Va(2),e.ve().Fa(f.ve()).Va(2));e.appendChild(f,'displayedElement',g)});b.appendChild(e,'displayPort',olympe.ui.fa.Hb.Vb)}
|
|
760
|
-
function $d(a,b){const c=new olympe.ui.D.he(a.R.Ba().jb(2),a.R.Ba()),d=new olympe.ui.D.He(new olympe.j.ia(b.td(),40));a.F.forEach((f,g)=>{const k=new olympe.ui.D.Ol(a.R.Ba());k.Fd(1,M());olympe.j.cb(a.C.Ba().
|
|
761
|
-
e.Rb(olympe.j.cb(ae(a),()=>olympe.j.jc(a.$),()=>olympe.j.jc('Next'),olympe.j.lb));e.be(!0,28);e.Xd(!0,8);e.Na(K());e.Fd(1,M());e.kc(5);e.yb('Roboto');e.Tg(10);e.qd(a.T.Ba().Rf());e.Zc(()=>{olympe.j.Gw([ae(a)],f=>{f.valueOf()&&a.Jj?a.Jj():(f=olympe.j.Ua(a.C).$a(1).Bw(a.F.dj()),olympe.j.mc(f)?a.C.repeat(f):a.C.update(f))})});d.appendChild(e,'nextButton',new olympe.j.ia(d.td().Fa(e.td()),d.ve().Va(2).Fa(e.ve().Va(2))));b.appendChild(d,'c')}function ae(a){return a.C.Ba().
|
|
760
|
+
function $d(a,b){const c=new olympe.ui.D.he(a.R.Ba().jb(2),a.R.Ba()),d=new olympe.ui.D.He(new olympe.j.ia(b.td(),40));a.F.forEach((f,g)=>{const k=new olympe.ui.D.Ol(a.R.Ba());k.Fd(1,M());olympe.j.cb(a.C.Ba().df(a.F.hf(g)),()=>{k.Na(M())},()=>{k.Na(O())});k.Zc(()=>{var l=olympe.j.Ca(a.F.nm(g));olympe.j.mc(l)?a.C.repeat(l):a.C.update(l)});c.appendChild(k,g,olympe.ui.fa.tc.Nc)});d.appendChild(c,'stepper',new olympe.j.ia(d.td().Va(2).Fa(c.td().Va(2)),d.ve().Va(2).Fa(c.ve().Va(2))));const e=new olympe.ui.D.oc;
|
|
761
|
+
e.Rb(olympe.j.cb(ae(a),()=>olympe.j.jc(a.$),()=>olympe.j.jc('Next'),olympe.j.lb));e.be(!0,28);e.Xd(!0,8);e.Na(K());e.Fd(1,M());e.kc(5);e.yb('Roboto');e.Tg(10);e.qd(a.T.Ba().Rf());e.Zc(()=>{olympe.j.Gw([ae(a)],f=>{f.valueOf()&&a.Jj?a.Jj():(f=olympe.j.Ua(a.C).$a(1).Bw(a.F.dj()),olympe.j.mc(f)?a.C.repeat(f):a.C.update(f))})});d.appendChild(e,'nextButton',new olympe.j.ia(d.td().Fa(e.td()),d.ve().Va(2).Fa(e.ve().Va(2))));b.appendChild(d,'c')}function ae(a){return a.C.Ba().df(a.F.ed().Fa(1))}
|
|
762
762
|
olympe.ui.D.gY=class extends olympe.ui.D.ee{constructor(a,b,c='Next'){super();this.ba=b;this.F=a;this.C=olympe.j.qb(olympe.j.aa,'Carousel currentRank FlowSource');Hb(this.C,olympe.j.aa.ZERO);this.R=olympe.j.qb(olympe.j.aa,'Carousel bulletWidth FlowSource');this.V=olympe.j.qb(olympe.j.aa,'Carousel stepperSpacing FlowSource');this.T=olympe.j.qb(olympe.j.ja,'Carousel show ctrl btn');Hb(this.R,olympe.j.Ca(10));Hb(this.V,olympe.j.Ca(10));Hb(this.T,olympe.j.ja.wb);this.Jj=null;this.$=c;a=new olympe.ui.D.Cd(void 0,
|
|
763
763
|
this.V.Ba());Zd(this,a);$d(this,a);this.Jb(a.la());xd(this,a,'mainContainer')}};olympe.ui.D.tf={};olympe.ui.D.tf.lP=class{constructor(a=300){this.duration=olympe.j.ha(a)}run(a,b,c,d,e,f){f&&setTimeout(f,G(this.duration))}Tj(a,b,c){a=G(this.duration).valueOf();let d;d=olympe.j.ha(0);b=olympe.j.Ei(d,a,olympe.j.aa.wh.Fs);d&&J(d,1);c&&setTimeout(c,a);return b}C(a,b,c,d){a=G(this.duration).valueOf();let e;void 0===d?(e=olympe.j.ha(1),olympe.j.Ei(e,a,olympe.j.aa.wh.Fs)):olympe.j.ha(1).Fa(d);e&&J(e,0);c&&setTimeout(c,a)}};olympe.ui.D.tf.lP.ua=[olympe.ui.D.gm];olympe.ui.D.tf.EF=class{constructor(){this.duration=olympe.j.ha(400)}run(a,b,c,d,e,f){b.jg(0);c=G(this.duration).valueOf();b=this.Tj(b,e);this.C(a,e,null,b);tc(function(){f&&f()},c)}Tj(a,b,c){b=G(this.duration).valueOf();let d,e;e=olympe.j.ha(0);d=olympe.j.Ei(e,b,olympe.j.aa.wh.Fs);a.jg(d);e&&J(e,1);c&&tc(c,b);return d}C(a,b,c,d){b=G(this.duration).valueOf();let e;void 0===d?(e=olympe.j.ha(1),d=olympe.j.Ei(e,b,olympe.j.aa.wh.Fs)):d=olympe.j.ha(1).Fa(d);a.jg(d);e&&J(e,0);c&&tc(c,b)}};
|
|
764
764
|
olympe.ui.D.tf.EF.ua=[olympe.ui.D.gm];olympe.ui.D.tf.Uk=class{constructor(a,b,c,d){this.direction=olympe.j.xb(olympe.ui.D.tf.Uk.C.Kf);this.duration=olympe.j.ha(300);this.F=olympe.j.ha();this.easing=d||olympe.j.aa.wh.fp;a&&J(this.direction,a);b&&J(this.duration,b);c&&J(this.F,c)}run(a,b,c,d,e,f){c=G(this.duration).valueOf();b=this.Tj(b,e);this.C(a,e,null,b);f&&tc(f,c)}Tj(a,b,c){const d=G(this.duration).valueOf();let e=olympe.j.Ua(this.F)||null,f=G(a.Pe()).na();f=f?f:olympe.j.ha(0);let g=G(a.Pe()).ra();g=g?g:olympe.j.ha(0);let k=f,l=g,
|
|
@@ -776,9 +776,9 @@ a),this.C.set(olympe.ui.va.ad.fd.C.fm,b),this.C.set(olympe.ui.va.ad.fd.C.Bs,d),t
|
|
|
776
776
|
d=olympe.j.Uc();this.pa().iD(e=>{e[0]&&e[1]?(this.F.ci(olympe.ui.va.ad.fd.F.em)||this.F.set(olympe.ui.va.ad.fd.F.em,a),J(a,new olympe.j.ia(e[0],e[1]))):this.F.remove(olympe.ui.va.ad.fd.F.em);e[2]&&e[3]?(this.F.ci(olympe.ui.va.ad.fd.F.fm)||this.F.set(olympe.ui.va.ad.fd.F.fm,b),J(b,new olympe.j.ia(e[2],e[3]))):this.F.remove(olympe.ui.va.ad.fd.F.fm);e[4]&&e[5]?(this.F.ci(olympe.ui.va.ad.fd.F.Nl)||this.F.set(olympe.ui.va.ad.fd.F.Nl,c),J(c,new olympe.j.ia(e[4],e[5]))):this.F.remove(olympe.ui.va.ad.fd.F.Nl);
|
|
777
777
|
e[6]&&e[7]?(this.F.ci(olympe.ui.va.ad.fd.F.zA)||this.F.set(olympe.ui.va.ad.fd.F.zA,d),J(d,new olympe.j.ia(e[6],e[7]))):this.F.remove(olympe.ui.va.ad.fd.F.zA)})}qO(){}gO(){}GN(){}start(a){this.pa().start(a)}stop(){this.pa().stop()}};olympe.ui.va.ad.fd.C={em:'TopLeftCorner',fm:'TopRightCorner',Nl:'BottomLeftCorner',Bs:'BottomRightCorner'};olympe.ui.va.ad.fd.F={em:'TopLeftPatternPoint',fm:'TopRightPatternPoint',Nl:'BottomLeftPatternPoint',zA:'BottomRightAlignmentPoint'};olympe.ui.va.xc=class extends olympe.ui.D.vb{constructor(a){super(olympe.ui.Wa.C(olympe.N.va.xc,olympe.host.qa.nb.oE),a)}C(){return this.pa()}arc(a,b,c,d,e,f){this.C().arc(a,b,c,d,e,f)}arcTo(a,b,c,d,e){this.C().arcTo(a,b,c,d,e)}beginPath(){this.C().beginPath()}bezierCurveTo(a,b,c,d,e,f){this.C().bezierCurveTo(a,b,c,d,e,f)}clearRect(a,b,c,d){this.C().clearRect(a,b,c,d)}clip(){this.C().clip()}closePath(){this.C().closePath()}fill(){this.C().fill()}fillRect(a,b,c,d){this.C().fillRect(a,b,c,d)}fillText(a,
|
|
778
778
|
b,c,d){this.C().fillText(a,b,c,d)}lineTo(a,b){this.C().lineTo(a,b)}ij(a,b){this.C().ij(a,b)}moveTo(a,b){this.C().moveTo(a,b)}quadraticCurveTo(a,b,c,d){this.C().quadraticCurveTo(a,b,c,d)}rect(a,b,c,d){this.C().rect(a,b,c,d)}stroke(){this.C().stroke()}strokeRect(a,b,c,d){this.C().strokeRect(a,b,c,d)}strokeText(a,b,c,d){this.C().strokeText(a,b,c,d)}createLinearGradient(a,b,c,d){const e=new olympe.ui.D.xh;this.C().createLinearGradient(e.C(),a,b,c,d);return e}addColorStop(a,b){this.C().addColorStop(a,
|
|
779
|
-
b)}pj(a){this.C().fillStyle=a}Uj(a){this.C().font=a}Hq(a){this.C().Hq(a)}eh(a){this.C().lineCap=a}Wj(a){this.C().lineJoin=a}Ih(a){this.C().Ih(a)}Hh(a){this.C().Hh(a)}le(a){this.C().le(a.pa())}};olympe.ui.va.xc.prototype.C.K=new olympe.j.J(()=>olympe.N.va.xc,[]);olympe.ui.va.xc.prototype.createLinearGradient.K=new olympe.j.J(()=>olympe.ui.D.xh,[]);olympe.ui.va.Image=class extends olympe.ui.D.vb{constructor(a){super(olympe.ui.Wa.C(olympe.N.va.Image,olympe.host.qa.nb.pE),a)}Hh(a){this.pa().Hh(a)}Wv(a,b){this.pa().Wv(a.pa(),b)}Vv(a,b){this.pa().Vv(a.toString(),b)}};olympe.ui.va.filters={};olympe.ui.va.filters.pv=class extends olympe.ui.D.vb{constructor(a,b){super(olympe.ui.Wa.C(olympe.N.va.filters.pv,olympe.host.qa.nb.qE),a.la());this.eq().jA(b);this.eq().eA(a.pa())}eq(){return this.pa()}};olympe.ui.Xa={};olympe.ui.Xa.Za={};olympe.ui.Xa.Za.Map=class extends olympe.ui.D.ee{constructor(a){super(a);this.map=null;this.F=!1;this.Na(M());this.longitude=olympe.j.qb(olympe.j.aa).update(6.5);this.latitude=olympe.j.qb(olympe.j.aa).update(46.5);this.C=olympe.j.qb(olympe.j.aa).update(10);a=new olympe.ui.D.gb(a);a.Rb('Maps are not available in offline mode');a
|
|
779
|
+
b)}pj(a){this.C().fillStyle=a}Uj(a){this.C().font=a}Hq(a){this.C().Hq(a)}eh(a){this.C().lineCap=a}Wj(a){this.C().lineJoin=a}Ih(a){this.C().Ih(a)}Hh(a){this.C().Hh(a)}le(a){this.C().le(a.pa())}};olympe.ui.va.xc.prototype.C.K=new olympe.j.J(()=>olympe.N.va.xc,[]);olympe.ui.va.xc.prototype.createLinearGradient.K=new olympe.j.J(()=>olympe.ui.D.xh,[]);olympe.ui.va.Image=class extends olympe.ui.D.vb{constructor(a){super(olympe.ui.Wa.C(olympe.N.va.Image,olympe.host.qa.nb.pE),a)}Hh(a){this.pa().Hh(a)}Wv(a,b){this.pa().Wv(a.pa(),b)}Vv(a,b){this.pa().Vv(a.toString(),b)}};olympe.ui.va.filters={};olympe.ui.va.filters.pv=class extends olympe.ui.D.vb{constructor(a,b){super(olympe.ui.Wa.C(olympe.N.va.filters.pv,olympe.host.qa.nb.qE),a.la());this.eq().jA(b);this.eq().eA(a.pa())}eq(){return this.pa()}};olympe.ui.Xa={};olympe.ui.Xa.Za={};olympe.ui.Xa.Za.Map=class extends olympe.ui.D.ee{constructor(a){super(a);this.map=null;this.F=!1;this.Na(M());this.longitude=olympe.j.qb(olympe.j.aa).update(6.5);this.latitude=olympe.j.qb(olympe.j.aa).update(46.5);this.C=olympe.j.qb(olympe.j.aa).update(10);a=new olympe.ui.D.gb(a);a.Rb('Maps are not available in offline mode');a.$b(olympe.ui.fa.Hb.Vb);a.bc(olympe.ui.fa.tc.Nc);xd(this,a,'offlineMessageText');this.map=olympe.ui.Wa.C(olympe.N.Xa.Za.Map,olympe.host.qa.nb.bK);olympe.j.ab([this.la().na()],
|
|
780
780
|
b=>{this.map.vg(b.valueOf());this.gq({animate:!0})});olympe.j.ab([this.la().ra()],b=>{this.map.ug(b.valueOf());this.gq({animate:!0})});this.map.ss(olympe.j.Ua(this.longitude.Ba()),olympe.j.Ua(this.latitude.Ba()),olympe.j.Ua(this.C.Ba()),null);this.map.ts(this.C.Ba());this.map.ms(this.longitude.Ba());this.map.ls(this.latitude.Ba());this.map.Jw(b=>{this.C.update(olympe.j.Ca(b))});this.map.Iw(b=>{const c=olympe.j.Ua(this.longitude.Ba());(void 0===c||c.isNaN().valueOf()||.001<Math.abs(c.valueOf()-b))&&
|
|
781
|
-
this.longitude.update(olympe.j.Ca(b))});this.map.Hw(b=>{const c=olympe.j.Ua(this.latitude.Ba());(void 0===c||c.isNaN().valueOf()||.001<Math.abs(c.valueOf()-b))&&this.latitude.update(olympe.j.Ca(b))});this.O().appendChild(this.map,'map');this.map.
|
|
781
|
+
this.longitude.update(olympe.j.Ca(b))});this.map.Hw(b=>{const c=olympe.j.Ua(this.latitude.Ba());(void 0===c||c.isNaN().valueOf()||.001<Math.abs(c.valueOf()-b))&&this.latitude.update(olympe.j.Ca(b))});this.O().appendChild(this.map,'map');this.map.Zb.onDestroy(()=>{this.F=!0})}ss(a,b,c,d){this.map.ss(a,b,c,d);return this.map}ts(a){olympe.j.ab([a],b=>{this.C.update(b)});return this.map}R(){return this.C.Ba()}ms(a){olympe.j.ab([a],b=>{this.longitude.update(b)});return this.map}ls(a){olympe.j.ab([a],b=>
|
|
782
782
|
{this.latitude.update(b)});return this.map}GC(){return this.longitude.Ba()}EC(){return this.latitude.Ba()}tt(a,b,c){this.map.tt(a,b,c);return this.map}Mv(a){this.map.Mv(a);return this.map}$r(a){this.F||this.map.$r(a);return this.map}Jv(a,b){this.map.Jv(a,b);return this.map}cu(a){this.F||this.map.cu(a);return this.map}Iu(a,b){this.map.Iu(a,b);return this.map}Ju(a,b){this.map.Ju(a,b);return this.map}Ku(a,b){this.map.Ku(a,b);return this.map}Eu(a,b,c){this.map.Eu(a,b,c);return this.map}zt(a,b){this.map.zt(a,
|
|
783
783
|
b);return this.map}At(a){this.map.At(a);return this.map}au(a,b){this.map.au(a,b);return this.map}Zt(a,b){this.map.Zt(a,b);return this.map}Bt(a,b,c){this.map.Bt(a,b,c);return this.map}Ct(a,b){this.map.Ct(a,b);return this.map}su(a){this.map.su(a);return this.map}vu(a){this.map.vu(a);return this.map}tu(a){this.map.tu(a);return this.map}$t(a,b){this.map.$t(a,b);return this.map}gq(a){this.map.gq(a);return this.map}stop(){this.map.stop();return this.map}appendChild(a,b,...c){xd(this,a,b,...c);return this}removeChild(a){this.O().removeChild(a);
|
|
784
784
|
return this}};olympe.ui.Xa.Za.Map.prototype.R.K=olympe.j.J.F;olympe.ui.Xa.Za.Map.prototype.GC.K=olympe.j.J.F;olympe.ui.Xa.Za.Map.prototype.EC.K=olympe.j.J.F;olympe.ui.P={};olympe.ui.P.xi=class extends olympe.ui.D.vb{constructor(a){super(olympe.ui.Wa.C(olympe.N.P.xi,olympe.host.qa.nb.TK),a);this.C=this.F=void 0}qx(a,b){this.F||R(this,()=>{this.F=olympe.j.Uc(0,0);this.C=olympe.j.Uc();this.pa().qx(this.F.na(),this.F.ra(),this.C.na(),this.C.ra())});J(this.C,a);b&&J(this.C,b)}appendChild(a,b){this.pa().appendChild(a.pa(),b)}removeChild(a){this.pa().removeChild(a)}};olympe.ui.P.Me=class extends olympe.ui.Cf{constructor(a){super(a);this.hidden=null}Hi(a){this.pa().Hi(a)}qd(a){null===this.hidden&&R(this,()=>{this.hidden=olympe.j.Tc(!1)});J(this.hidden,a);this.pa().qd(a);return this}pl(){null===this.hidden&&R(this,()=>{this.hidden=olympe.j.Tc(!1)});return this.hidden}};olympe.ui.P.Me.prototype.pl.K=olympe.j.J.T;olympe.ui.P.vd=class extends olympe.ui.P.Me{constructor(a){super(a);this.R=this.F=this.position=void 0}$(){return this.pa()}setPosition(a){this.position||R(this,()=>{this.position=olympe.j.Uc();this.$().setPosition(this.position.na(),this.position.ra())});J(this.position,a);return this}Pe(){this.position||this.setPosition(new olympe.j.ia);return this.position}Jb(a){this.F||R(this,()=>{this.F=olympe.j.Uc();this.$().Jb(this.F.na(),this.F.ra())});J(this.F,a);return this}la(){this.F||this.Jb(new olympe.j.ia);
|
|
@@ -796,7 +796,7 @@ h.fl.K=new olympe.j.J(()=>olympe.ui.Z.GestureEvent,[]);h.xm.K=new olympe.j.J(()=
|
|
|
796
796
|
J(this.O,a);return this}Al(a){const b=this;this.T||R(this,()=>{b.T=olympe.j.xb();b.pa().Al(b.T)});J(this.T,a);return this}};olympe.ui.P.Mk=class extends olympe.ui.P.yg{constructor(){super(olympe.ui.Wa.C(olympe.N.P.Mk,olympe.host.qa.nb.DK));this.O=this.C=this.aspectRatio=this.source=void 0}ge(a){const b=this;this.source||R(this,()=>{b.source=olympe.j.xb();b.pa().ge(b.source)});J(this.source,a);return this}wl(a){const b=this;this.aspectRatio||R(this,()=>{b.aspectRatio=olympe.j.xb();b.pa().wl(b.aspectRatio)});J(this.aspectRatio,a);return this}Qo(a){const b=this;this.C||R(this,()=>{b.C=olympe.j.xb();b.pa().ks(b.C)});J(this.C,
|
|
797
797
|
a);return this}Al(a){const b=this;this.O||R(this,()=>{b.O=olympe.j.xb();b.pa().Al(b.O)});J(this.O,a);return this}};olympe.ui.P.pi=class extends olympe.ui.P.xh{constructor(){super(olympe.ui.Wa.C(olympe.N.P.pi,olympe.host.qa.nb.JK));this.F=this.C=void 0}hx(a){this.C||R(this,function(){this.C=olympe.j.Uc();this.pa().hx(this.C.na(),this.C.ra())}.bind(this));J(this.C,a);return this}ix(a){this.F||R(this,function(){this.F=olympe.j.Uc();this.pa().ix(this.F.na(),this.F.ra())}.bind(this));J(this.F,a);return this}};olympe.ui.P.Kn=class extends olympe.ui.P.vd{constructor(){super(olympe.ui.Wa.C(olympe.N.P.Kn,olympe.host.qa.nb.KK));this.absolute=void 0}appendChild(a,b){this.pa().appendChild(a.pa(),b);return this}removeChild(a){this.pa().removeChild(a);return this}Gi(a){this.absolute||R(this,()=>{this.absolute=olympe.j.Tc();this.pa().Gi(this.absolute)});J(this.absolute,a);return this}};olympe.ui.P.Mn=class extends olympe.ui.P.yg{constructor(){super(olympe.ui.Wa.C(olympe.N.P.Mn,olympe.host.qa.nb.EK))}Kv(a,b){const c=d=>{this.pa().lf(be(d),b)};a.Zg?Bb(a,c):c(a);return this}du(a){this.pa().du(a);return this}};olympe.ui.P.Rk=class extends olympe.ui.P.yg{constructor(){super(olympe.ui.Wa.C(olympe.N.P.Rk,olympe.host.qa.nb.FK));this.offset=void 0}Ww(a){this.offset||R(this,()=>{this.offset=olympe.j.Uc();this.pa().Ww(this.offset.na(),this.offset.ra())});J(this.offset,a);return this}lf(a){const b=c=>{this.pa().lf(be(c))};a.Zg?Bb(a,b):b(a);return this}};olympe.ui.P.Sk=class extends olympe.ui.P.yc{constructor(){super(olympe.ui.Wa.C(olympe.N.P.Sk,olympe.host.qa.nb.LK));this.O=this.T=void 0;this.V=1}Qw(a){const b=this;this.T||R(this,()=>{b.T=olympe.j.Tc();b.pa().Qw(b.T)});J(this.T,a);return this}eh(a){const b=this;this.O||R(this,()=>{b.O=olympe.j.xb();b.pa().eh(b.O)});J(this.O,a);return this}Lp(a,b){this.pa().Lp(a.pa(),b);return this}eu(a){this.pa().eu(a);return this}moveTo(a){this.Lp(new olympe.ui.P.yy(a),'seg'+this.V++);return this}lineTo(a){this.Lp(new olympe.ui.P.xy(a),
|
|
798
798
|
'seg'+this.V++);return this}arcTo(a,b,c,d,e,f){this.Lp(new olympe.ui.P.Vi(a,b,c,d,e,f),'seg'+this.V++);return this}};olympe.ui.P.Mf=class extends olympe.ui.P.Me{constructor(a,b){super(a);this.position=olympe.j.Uc();this.pa().setPosition(this.position.na(),this.position.ra());b&&J(this.position,b)}setPosition(a){J(this.position,a);return this}Pe(){return this.position}};olympe.ui.P.Mf.prototype.Pe.K=olympe.j.J.V;olympe.ui.P.Vi=class extends olympe.ui.P.Mf{constructor(a,b,c,d,e,f){super(olympe.ui.Wa.C(olympe.N.P.Vi,olympe.host.qa.nb.MK),a);this.O=olympe.j.ha();this.C=olympe.j.ha();this.T=olympe.j.ha(0);this.F=olympe.j.Tc(!1);this.R=olympe.j.Tc(!1);this.pa().jx(this.O);this.pa().kx(this.C);this.pa().rx(this.T);this.pa().bx(this.F);this.pa().px(this.R);void 0!==b&&(J(this.O,b),J(this.C,b));void 0!==c&&J(this.C,c);void 0!==d&&J(this.T,d);void 0!==e&&J(this.F,e);void 0!==f&&J(this.R,f)}jx(a){J(this.O,a);return this}kx(a){J(this.C,
|
|
799
|
-
a);return this}rx(a){J(this.T,a);return this}bx(a){J(this.F,a);return this}px(a){J(this.R,a);return this}};olympe.ui.P.si=class extends olympe.ui.P.Mf{constructor(a,b,c){super(olympe.ui.Wa.C(olympe.N.P.si,olympe.host.qa.nb.NK),a);this.C=olympe.j.Uc();this.F=olympe.j.Uc();this.pa().Tw(this.C.na(),this.C.ra());this.pa().Uw(this.F.na(),this.F.ra());b&&J(this.C,b);c&&J(this.F,c)}Tw(a){J(this.C,a);return this}Uw(a){J(this.F,a);return this}};olympe.ui.P.xy=class extends olympe.ui.P.Mf{constructor(a,b){super(olympe.ui.Wa.C(olympe.N.P.xy,olympe.host.qa.nb.OK),a);this.C=null;void 0!==b&&this.qd(b)}qd(a){null===this.C&&this.C.
|
|
799
|
+
a);return this}rx(a){J(this.T,a);return this}bx(a){J(this.F,a);return this}px(a){J(this.R,a);return this}};olympe.ui.P.si=class extends olympe.ui.P.Mf{constructor(a,b,c){super(olympe.ui.Wa.C(olympe.N.P.si,olympe.host.qa.nb.NK),a);this.C=olympe.j.Uc();this.F=olympe.j.Uc();this.pa().Tw(this.C.na(),this.C.ra());this.pa().Uw(this.F.na(),this.F.ra());b&&J(this.C,b);c&&J(this.F,c)}Tw(a){J(this.C,a);return this}Uw(a){J(this.F,a);return this}};olympe.ui.P.xy=class extends olympe.ui.P.Mf{constructor(a,b){super(olympe.ui.Wa.C(olympe.N.P.xy,olympe.host.qa.nb.OK),a);this.C=null;void 0!==b&&this.qd(b)}qd(a){null===this.C&&this.C.Zb.destroy();this.C=this.pa().qd(a);return this}};olympe.ui.P.yy=class extends olympe.ui.P.Mf{constructor(a){super(olympe.ui.Wa.C(olympe.N.P.yy,olympe.host.qa.nb.PK),a)}};olympe.ui.P.Nn=class extends olympe.ui.P.Mf{constructor(a,b){super(olympe.ui.Wa.C(olympe.N.P.Nn,olympe.host.qa.nb.QK),a);this.C=olympe.j.Uc();this.pa().Sw(this.C.na(),this.C.ra());b&&J(this.C,b)}Sw(a){J(this.C,a);return this}};olympe.ui.P.Pn=class extends olympe.ui.P.xh{constructor(){super(olympe.ui.Wa.C(olympe.N.P.Pn,olympe.host.qa.nb.RK));this.F=this.C=void 0}Ow(a){this.C||R(this,()=>{this.C=olympe.j.Uc();this.pa().Ow(this.C.na(),this.C.ra())});J(this.C,a);return this}$w(a){this.F||R(this,()=>{this.F=olympe.j.Uc();this.pa().$w(this.F.na(),this.F.ra())});J(this.F,a);return this}};olympe.ui.P.se=class extends olympe.ui.P.yc{constructor(){super(olympe.ui.Wa.C(olympe.N.P.se,olympe.host.qa.nb.SK))}kc(a){void 0!==this.O&&this.O.Zb.destroy();this.O=this.pa().kc(a);return this}};olympe.ui.P.m_=class{constructor(){this.height=this.width=100;this.strokeWidth=1;this.strokeColor='rgb(0,0,0)';this.F='Arial,Helvetica';this.fontSize=12;this.C=this.path=''}Jb(a,b){this.width=a;this.height=b;return this}Bu(a){this.strokeWidth=a}setStrokeColor(a,b,c,d){this.strokeColor=void 0===d?`rgb(${a},${b},${c})`:`rgba(${a},${b},${c},${d})`}moveTo(a,b){this.path+=`M${a} ${b}`;return this}lineTo(a,b){this.path+=`L${a} ${b}`;return this}yb(a){this.F=a;return this}zb(a){this.fontSize=a;return this}clear(){this.path=
|
|
800
800
|
this.C='';return this}toString(){var a='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '+this.width+' '+this.height+'">';''!==this.C&&(a+='<g font-family="'+this.F+'" font-size="'+this.fontSize+'" stroke="none" fill="rgb(255,255,255)">'+this.C+'</g>');''!==this.path&&(a+='<path stroke-width="'+this.strokeWidth+'" stroke="'+this.strokeColor+'" d="'+this.path+'"/>');return a+'</svg>'}VD(){return'data:image/svg+xml,'+encodeURIComponent(this.toString())}};olympe.ui.P.iK=class extends olympe.ui.P.yc{constructor(a){super(a);this.text=null;this.ga=this.V=this.T=this.fontSize=void 0;this.O=null}Rb(a){const b=this;this.text||R(this,()=>{b.text=olympe.j.xb();b.pa().Rb(b.text)});J(this.text,a);return this}ol(){this.text||this.Rb('');return this.text}Jb(){return this}la(){this.O||R(this,()=>{this.O=new olympe.j.ia(0,0);this.pa().Lo((a,b)=>{this.O.oe(a);this.O.Ge(b)})});return this.O}zb(a){const b=this;this.fontSize||R(this,()=>{b.fontSize=olympe.j.ha();b.pa().zb(b.fontSize)});
|
|
801
801
|
J(this.fontSize,a);return this}yb(a){const b=this;this.T||R(this,()=>{b.T=olympe.j.xb();b.pa().yb(b.T)});J(this.T,a);return this}Db(a){const b=this;this.V||R(this,()=>{b.V=olympe.j.ha();b.pa().Db(b.V)});J(this.V,a);return this}ks(a){const b=this;this.ga||R(this,()=>{b.ga=olympe.j.xb();b.pa().ks(b.ga)});J(this.ga,a);return this}};olympe.ui.P.Text=class extends olympe.ui.P.iK{constructor(){super(olympe.ui.Wa.C(olympe.N.P.Text,olympe.host.qa.nb.UK))}};olympe.ui.P.Dv=class extends olympe.ui.P.iK{constructor(){super(olympe.ui.Wa.C(olympe.N.P.Dv,olympe.host.qa.nb.VK))}os(a){olympe.j.ab([a],b=>{this.pa().os(b.pa())});return this}};olympe.ui.Og={};olympe.ui.Og.kb=class{constructor(a,b){this.Y=a;this.T=b;this.V=olympe.j.pb(olympe.ui.D.ba.ph,new olympe.ui.D.ba.Tx);this.$=new olympe.j.Ky;this.ka=new olympe.ui.D.Nf(this)}C(a,b){return mc(this.T,a,b)}jf(){return this.ka}gi(a){this.jf().gi(a);return this}F(){return this.V}ga(a){J(this.V,a)}O(a){return gc(this.$,a,void 0)}R(a){ec(this.$,a)}Eb(){return this.Y}$p(a){a=this.T.C.get(a.HC().aL)||null;return null!==a&&'function'===typeof a.$p?a.$p():null}};olympe.ui.Og.kb.ua=[olympe.ui.kb];olympe.ui.da={sb:'ui.Manager',Ob:'ui.Logger',sB:'ui.MediaDeviceProvider'};olympe.ui.Wa=null;olympe.ma.Be(function(a){A(a,olympe.ui.da.sb,[olympe.ui.da.Ob,olympe.host.da.sb],(b,c)=>{null===olympe.ui.Wa&&(olympe.ui.Wa=new olympe.ui.Og.kb(b,c));return olympe.ui.Wa},!0);A(a,olympe.ui.da.Ob,[olympe.rb.da.sb],b=>b.Mg('ui'));z(a,olympe.ui.da.sB,olympe.ui.media.Ap)},'olympe.ui');olympe.ma.run([olympe.ui.da.sb],a=>a,'olympe.ui');olympe.G.H.ui={};olympe.G.H.ui.Cf=class extends olympe.G.H.host.Si{constructor(a,b){super(a,b)}};olympe.G.H.ui.Cf.ua=[olympe.N.Cf];olympe.G.H.ui.oa={};const ce='b i s sub sup u br'.split(' '),de=new RegExp('</?('+ce.join('|')+')/?>'),ee=new RegExp('<(?!/?('+ce.join('|')+')/?>)','g'),fe=new RegExp('>(?!/?('+ce.map(a=>a.split('').reverse().join('')).join('|')+')/?<)','g');olympe.G.H.ui.oa.iZ=class{};olympe.G.H.ui.Pa={};olympe.G.H.ui.Pa.dv=class{constructor(a){this.C=a}addEventListener(a,b,c){this.C.addEventListener(a,b,c||!1)}removeEventListener(a,b,c){this.C.removeEventListener(a,b,c||!1)}};olympe.G.H.ui.Pa.$q=class extends olympe.G.H.ui.Pa.dv{constructor(a){super(a);this.F=void 0}ul(a){void 0===this.F&&(this.F=b=>{b.stopPropagation();a(this.C.value)},this.addEventListener('input',this.F,!1))}Ll(){this.F&&(this.removeEventListener('input',this.F),this.F=void 0)}};olympe.G.H.ui.Pa.$q.prototype.unregisterValueChanged=olympe.G.H.ui.Pa.$q.prototype.Ll;olympe.G.H.ui.Pa.$q.prototype.registerValueChanged=olympe.G.H.ui.Pa.$q.prototype.ul;olympe.G.H.ui.Pa.$q.ua=[olympe.N.Z.cr];olympe.G.H.ui.Pa.Qh=class extends olympe.G.H.ui.Pa.dv{constructor(a){super(a);this.R=this.F=this.O=null}Ck(a){null===this.O&&(this.O=function(b){b.stopPropagation();a(void 0!==b.which?b.which:b.charCode,String.fromCharCode(b.keyCode||b.charCode),b.ctrlKey,b.shiftKey,b.altKey,b.metaKey)},this.addEventListener('keypress',this.O,!1))}vj(){this.removeEventListener('keypress',this.O);this.O=null}Bk(a){null===this.F&&(this.F=function(b){b.stopPropagation();a(void 0!==b.which?b.which:b.charCode,String.fromCharCode(b.keyCode||
|
|
802
802
|
b.charCode),b.ctrlKey,b.shiftKey,b.altKey,b.metaKey)},this.addEventListener('keydown',this.F,!1))}uj(){this.removeEventListener('keydown',this.F);this.F=null}Dk(a){null===this.R&&(this.R=function(b){b.stopPropagation();a(void 0!==b.which?b.which:b.charCode,String.fromCharCode(b.keyCode||b.charCode),b.ctrlKey,b.shiftKey,b.altKey,b.metaKey)},this.addEventListener('keyup',this.R,!1))}wj(){this.removeEventListener('keyup',this.R);this.R=null}};olympe.G.H.ui.Pa.Qh.prototype.unregisterKeyUp=olympe.G.H.ui.Pa.Qh.prototype.wj;
|
|
@@ -884,13 +884,13 @@ b.height='auto';b['overflow-wrap']='break-word';Object.assign(this.Wd.style,b);t
|
|
|
884
884
|
this.mb('border',Math.round(Math.min(this.td()/2,this.ve()/2,this.zi()))+'px solid '+this.bl());this.Wd.style.padding=`${c}px ${d}px ${e}px ${b}px`;this.Wd.style['max-width']=k+'px';this.Wd.style.width=f+'px';this.Wd.style.height=g+'px';ue(this,k,l)}static C(){const b=new Map;De.forEach((c,d)=>{c=c[0].Wd;b.set(d,[c.style.width,c.style.height])});De.forEach(c=>{c=c[0].Wd;c.style.removeProperty('max-width');Object.assign(c.style,{width:'auto',height:'auto'})});De.forEach(c=>{const d=c[0];var e=d.Wd;
|
|
885
885
|
const f=e.clientWidth;e=e.clientHeight;if(d.rl!==f||d.Im!==e)d.rl=f,d.Im=e,c[1].Dc()||null===d.ux||c[1].run(()=>{d.ux(d.rl-d.paddingRight-d.paddingLeft,d.Im-d.paddingTop-d.paddingBottom)})});De.forEach((c,d)=>{const e=c[0],f=e.Wd;d=b.get(d);Object.assign(f.style,{width:e.Of?e.rl:d[0],height:e.Oe?e.Im:d[1],'max-width':c[0].rl})});De.clear()}C(){if(null!==this.ux){const b=c=>{if(c<Ee){const d=Ee;window.setTimeout(()=>b(d),0)}else Ee=0,a.C()};De.set(this.uid,[this,olympe.j.ib()]);Ee++;1===Ee&&b(0)}}qd(b){super.qd(b);
|
|
886
886
|
this.C()}Rb(b){if(-1<b.toString().search(de)){var c=this.Wd;b=b.split('').reverse().join('').replace(fe,';tg&').split('').reverse().join('').replace(ee,'<');c.innerHTML=b}else this.Wd.textContent=b;this.C()}be(b){this.Of=b;this.C()}Xd(b){this.Oe=b;this.C()}vg(b){super.vg(b);this.O();this.C()}ug(b){super.ug(b);this.O();this.C()}Db(b){this.Wd.style['font-weight']=b.toString();this.C()}yb(b){this.Wd.style['font-family']=b||'';b&&re(b,()=>this.C())}zb(b){this.Wd.style['font-size']=b.toString()+'px';
|
|
887
|
-
this.C()}Qd(b){this.Wd.style['font-style']=b.toString();this.C()}ob(b){this.mb('color',b)}xl(b,c,d,e){this.mb('color','rgba('+b+', '+c+', '+d+', '+e+')')}Vj(b){this.Wd.style['line-height']=b.toString();this.C()}
|
|
887
|
+
this.C()}Qd(b){this.Wd.style['font-style']=b.toString();this.C()}ob(b){this.mb('color',b)}xl(b,c,d,e){this.mb('color','rgba('+b+', '+c+', '+d+', '+e+')')}Vj(b){this.Wd.style['line-height']=b.toString();this.C()}$b(b){switch(b){case olympe.ui.fa.Hb.Kf:this.Wd.style['text-align']='left';break;case olympe.ui.fa.Hb.Vb:this.Wd.style['text-align']='center';break;case olympe.ui.fa.Hb.Kg:this.Wd.style['text-align']='right';break;default:this.Eb().warn('Unexpected text horizontal align value '+b+' ignored')}this.C()}bc(b){switch(b){case olympe.ui.fa.tc.Yg:this.Wd.style['vertical-align']=
|
|
888
888
|
'top';break;case olympe.ui.fa.tc.Nc:this.Wd.style['vertical-align']='middle';break;case olympe.ui.fa.tc.uh:this.Wd.style['vertical-align']='bottom';break;default:this.Eb().warn('Unexpected text vertical align value '+b+' ignored')}this.C()}fi(b){const c=()=>{this.Wd.style.removeProperty('overflow');this.Wd.style['text-overflow']='clip'};switch(b){case olympe.ui.fa.Tn.Ru:c();break;case olympe.ui.fa.Tn.jF:this.Wd.style['text-overflow']='ellipsis';this.Wd.style.overflow='hidden';break;case olympe.ui.fa.Tn.wF:this.Eb().warn('Fade is not supported yet');
|
|
889
889
|
c();break;default:this.Eb().warn('Unexpected text overflow handling',b,'ignored'),c()}}Du(b){'pre'===b||'pre-wrap'===b||'nowrap'===b?this.Wd.style['white-space']=b:(this.Eb().warn('Unexpected white space wrap value',b,'ignored'),this.Wd.style['white-space']='pre');this.C()}zl(b){b?(this.Wd.style['user-select']='text',this.Wd.style['-webkit-user-select']='text',this.Wd.style['-moz-user-select']='text',this.Wd.style['-ms-user-select']='text',this.Wd.style.cursor='auto'):(this.Wd.style['user-select']=
|
|
890
890
|
'none',this.Wd.style['-webkit-user-select']='none',this.Wd.style['-moz-user-select']='none',this.Wd.style['-ms-user-select']='none',this.Wd.style.cursor='default')}Lo(b){this.ux=b;this.rl&&this.Im?b(this.rl-this.paddingRight-this.paddingLeft,this.Im-this.paddingTop-this.paddingBottom):this.C()}Mq(){this.ux=null}Ec(b){this.paddingLeft=b||0;this.O();this.C()}Ic(b){this.paddingRight=b||0;this.O();this.C()}sd(b){this.paddingTop=b||0;this.O();this.C()}rd(b){this.paddingBottom=b||0;this.O();this.C()}oj(){super.oj();
|
|
891
891
|
this.C()}Zi(){this.C()}};olympe.G.H.ui.D.Jc.prototype.ancestorBecameVisible=olympe.G.H.ui.D.Jc.prototype.Zi;olympe.G.H.ui.D.Jc.prototype.setAppended=olympe.G.H.ui.D.Jc.prototype.oj;olympe.G.H.ui.D.Jc.prototype.setPaddingBottom=olympe.G.H.ui.D.Jc.prototype.rd;olympe.G.H.ui.D.Jc.prototype.setPaddingTop=olympe.G.H.ui.D.Jc.prototype.sd;olympe.G.H.ui.D.Jc.prototype.setPaddingRight=olympe.G.H.ui.D.Jc.prototype.Ic;olympe.G.H.ui.D.Jc.prototype.setPaddingLeft=olympe.G.H.ui.D.Jc.prototype.Ec;
|
|
892
892
|
olympe.G.H.ui.D.Jc.prototype.unregisterTextSize=olympe.G.H.ui.D.Jc.prototype.Mq;olympe.G.H.ui.D.Jc.prototype.registerTextSize=olympe.G.H.ui.D.Jc.prototype.Lo;olympe.G.H.ui.D.Jc.prototype.setSelectable=olympe.G.H.ui.D.Jc.prototype.zl;olympe.G.H.ui.D.Jc.prototype.setWhiteSpaceWrap=olympe.G.H.ui.D.Jc.prototype.Du;olympe.G.H.ui.D.Jc.prototype.setTextOverflow=olympe.G.H.ui.D.Jc.prototype.fi;olympe.G.H.ui.D.Jc.prototype.setTextVerticalAlign=olympe.G.H.ui.D.Jc.prototype.bc;
|
|
893
|
-
olympe.G.H.ui.D.Jc.prototype.setTextHorizontalAlign=olympe.G.H.ui.D.Jc.prototype
|
|
893
|
+
olympe.G.H.ui.D.Jc.prototype.setTextHorizontalAlign=olympe.G.H.ui.D.Jc.prototype.$b;olympe.G.H.ui.D.Jc.prototype.setLineHeight=olympe.G.H.ui.D.Jc.prototype.Vj;olympe.G.H.ui.D.Jc.prototype.setRGBATextColor=olympe.G.H.ui.D.Jc.prototype.xl;olympe.G.H.ui.D.Jc.prototype.setTextColor=olympe.G.H.ui.D.Jc.prototype.ob;olympe.G.H.ui.D.Jc.prototype.setFontStyle=olympe.G.H.ui.D.Jc.prototype.Qd;olympe.G.H.ui.D.Jc.prototype.setFontSize=olympe.G.H.ui.D.Jc.prototype.zb;
|
|
894
894
|
olympe.G.H.ui.D.Jc.prototype.setFontFamily=olympe.G.H.ui.D.Jc.prototype.yb;olympe.G.H.ui.D.Jc.prototype.setFontWeight=olympe.G.H.ui.D.Jc.prototype.Db;olympe.G.H.ui.D.Jc.prototype.setHeight=olympe.G.H.ui.D.Jc.prototype.ug;olympe.G.H.ui.D.Jc.prototype.setWidth=olympe.G.H.ui.D.Jc.prototype.vg;olympe.G.H.ui.D.Jc.prototype.setAutoHeight=olympe.G.H.ui.D.Jc.prototype.Xd;olympe.G.H.ui.D.Jc.prototype.setAutoWidth=olympe.G.H.ui.D.Jc.prototype.be;olympe.G.H.ui.D.Jc.prototype.setText=olympe.G.H.ui.D.Jc.prototype.Rb;
|
|
895
895
|
olympe.G.H.ui.D.Jc.prototype.setHidden=olympe.G.H.ui.D.Jc.prototype.qd;olympe.host.$c.register(olympe.host.qa.nb.KJ,olympe.G.H.ui.D.Jc);olympe.G.H.ui.D.Jc.ua=[olympe.N.D.gb];olympe.G.H.ui.D.ng=class extends olympe.G.H.ui.D.rc{constructor(a,b){super(a,b,document.createElement('div'));this.children=new Map}appendChild(a,b){a instanceof olympe.G.H.ui.D.rc||this.Eb().warn('Trying to attach a wrongly typed object to absPosLayer (only HTMLDockableElement objects can be used with DOM UI implementation');b=void 0!==b?b:olympe.G.H.ui.D.ng.wg;void 0!==this.children.get(b)&&this.removeChild(b);this.children.set(b,a);this.ya().appendChild(a.ya());a.setAttribute('name_As_A_Child',
|
|
896
896
|
b);a.mf(this,b);te(a);this.ga&&'none'!==this.ya().display&&a.Zi();this.ga&&a.oj()}removeChild(a){a=void 0!==a?a:olympe.G.H.ui.D.ng.wg;const b=this.children.get(a);if(void 0!==b){b.parent=null;b.ka=null;try{this.ya().removeChild(b.ya()),b.yl()}catch(c){this.Eb().debug('Not able to remove a child, has probably already been removed')}finally{this.children.delete(a)}}else this.Eb().warn('Trying to remove a non existing child: '+a)}zr(a){void 0!==a&&this.children.delete(a)}ig(){for(const a of this.children.keys())this.removeChild(a)}bd(a){super.bd(a);
|
|
@@ -899,20 +899,20 @@ olympe.G.H.ui.D.ng.prototype.setAppended=olympe.G.H.ui.D.ng.prototype.oj;olympe.
|
|
|
899
899
|
olympe.host.$c.register(olympe.host.qa.nb.Gy,olympe.G.H.ui.D.ng);olympe.G.H.ui.D.ng.ua=[olympe.N.D.ee,olympe.G.H.ui.D.YA];olympe.G.H.ui.D.YA=class{constructor(){}zr(){}};olympe.G.H.ui.D.Hc=class extends olympe.G.H.ui.D.rc{constructor(a,b){super(a,b,document.createElement('textarea'));this.paddingBottom=this.paddingTop=this.paddingRight=this.paddingLeft=0;this.C=this.F=void 0;this.V='';this.Ha=!1;this.Ka=void 0;this.ya().removeAttribute('tabindex');this.mb('resize','none');this.mb('outline','0px');this.mb('overflow','auto');this.Ec(this.paddingLeft);this.Ic(this.paddingRight);this.sd(this.paddingTop);this.rd(this.paddingBottom);this.mb('-webkit-user-select','text');
|
|
900
900
|
this.mb('-moz-user-select','text');this.mb('-ms-user-select','text');this.mb('-user-select','text');this.ya().addEventListener('mousedown',c=>{c.stopPropagation()});this.ya().addEventListener('mouseup',c=>{c.stopPropagation()});this.ya().addEventListener('click',c=>{c.stopPropagation()});this.ya().addEventListener('keyup',c=>{c.stopPropagation()});this.ya().addEventListener('keydown',c=>{c.stopPropagation()});this.ya().addEventListener('keypress',c=>{c.stopPropagation()})}O(){const a=Math.max(Math.round(this.width-
|
|
901
901
|
2*this.borderWidth-this.paddingRight-this.paddingLeft),0),b=Math.max(Math.round(this.height-2*this.borderWidth-this.paddingTop-this.paddingBottom),0);this.mb('border',this.borderWidth+'px solid '+this.bl());this.mb('paddingLeft',this.paddingLeft+'px');this.mb('paddingRight',this.paddingRight+'px');this.mb('paddingTop',this.paddingTop+'px');this.mb('paddingBottom',this.paddingBottom+'px');ue(this,a,b)}Gf(a){this.ya().disabled=a}Db(a){this.mb('fontWeight',a.toString());te(this)}Ec(a){this.paddingLeft=
|
|
902
|
-
a||0;this.O()}Ic(a){this.paddingRight=a||0;this.O()}sd(a){this.paddingTop=a||0;this.O()}rd(a){this.paddingBottom=a||0;this.O()}yb(a){this.mb('fontFamily',a||'')}zb(a){this.mb('fontSize',a.toString()+'px')}Qd(a){this.mb('fontStyle',a.toString())}ob(a){this.mb('color',a)}xl(a,b,c,d){this.mb('color','rgba('+a+', '+b+', '+c+', '+d+')')}Gg(a){this.ya().placeholder=a}Sg(a){le(je(),this,'color:'+a)}
|
|
902
|
+
a||0;this.O()}Ic(a){this.paddingRight=a||0;this.O()}sd(a){this.paddingTop=a||0;this.O()}rd(a){this.paddingBottom=a||0;this.O()}yb(a){this.mb('fontFamily',a||'')}zb(a){this.mb('fontSize',a.toString()+'px')}Qd(a){this.mb('fontStyle',a.toString())}ob(a){this.mb('color',a)}xl(a,b,c,d){this.mb('color','rgba('+a+', '+b+', '+c+', '+d+')')}Gg(a){this.ya().placeholder=a}Sg(a){le(je(),this,'color:'+a)}$b(a){switch(a){case olympe.ui.fa.Hb.Kf:this.mb('text-align','left');break;case olympe.ui.fa.Hb.Vb:this.mb('text-align',
|
|
903
903
|
'center');break;case olympe.ui.fa.Hb.Kg:this.mb('text-align','right');break;default:this.Eb().warn('Unexpected text horizontal align value '+a+' ignored')}}bc(a){switch(a){case olympe.ui.fa.tc.Yg:this.mb('vertical-align','top');break;case olympe.ui.fa.tc.Nc:this.mb('vertical-align','middle');break;case olympe.ui.fa.tc.uh:this.mb('vertical-align','bottom');break;default:this.Eb().warn('Unexpected text vertical align value '+a+' ignored')}}getValue(){return this.ya().value}Bf(a){''!==document.activeElement.id&&
|
|
904
904
|
document.activeElement.id===this.ya().id||this.ya().value===a||(this.ya().value=a,this.Ha&&window.setTimeout(this.R.bind(this),0),a=document.createEvent('HTMLEvents'),a.initEvent('input',!0,!0),a.C='input',this.ya().dispatchEvent(a))}Yc(){this.F||(this.F=new olympe.G.H.ui.Pa.Qh(this.ya()));return this.F}Zp(){this.C||(this.C=new olympe.G.H.ui.Pa.$q(this.ya()));return this.C}ul(a){U(this,'valueChanged',this.Ll.bind(this));return this.Zp().ul(a)}Ll(){V(this,'valueChanged');return this.Zp().Ll()}Ck(a){U(this,
|
|
905
905
|
'keyPressed',this.vj.bind(this));return this.Yc().Ck(a)}vj(){V(this,'keyPressed');return this.Yc().vj()}Bk(a){U(this,'keyDown',this.uj.bind(this));return this.Yc().Bk(a)}uj(){V(this,'keyDown');return this.Yc().uj()}Dk(a){U(this,'keyUp',this.wj.bind(this));return this.Yc().Dk(a)}wj(){V(this,'keyUp');return this.Yc().wj()}R(){const a=this.ya();a.style.height=this.V;const b=Number.parseInt(this.V,10);let c=a.scrollHeight-this.paddingTop-this.paddingBottom;c=c>b?c:b;a.style.height=c+'px';this.Ka&&this.Ka(c);
|
|
906
906
|
this.O()}iu(a,b){const c=this.ya();''===this.V&&(this.V=c.style.height.toString());this.Ka=b;const d=()=>{window.setTimeout(this.R.bind(this),0)};b=()=>{V(this,'autoResize');c.removeEventListener('change',this.R.bind(this),!1);c.removeEventListener('cut',d,!1);c.removeEventListener('paste',d,!1);c.removeEventListener('drop',d,!1);c.removeEventListener('keydown',d,!1)};(this.Ha=a)?(c.addEventListener('change',this.R.bind(this),!1),c.addEventListener('cut',d,!1),c.addEventListener('paste',d,!1),c.addEventListener('drop',
|
|
907
907
|
d,!1),c.addEventListener('keydown',d,!1),U(this,'autoResize',b)):b()}destroy(){super.destroy();this.C=this.F=null}};olympe.G.H.ui.D.Hc.prototype.destroy=olympe.G.H.ui.D.Hc.prototype.destroy;olympe.G.H.ui.D.Hc.prototype.unregisterKeyUp=olympe.G.H.ui.D.Hc.prototype.wj;olympe.G.H.ui.D.Hc.prototype.registerKeyUp=olympe.G.H.ui.D.Hc.prototype.Dk;olympe.G.H.ui.D.Hc.prototype.unregisterKeyDown=olympe.G.H.ui.D.Hc.prototype.uj;olympe.G.H.ui.D.Hc.prototype.registerKeyDown=olympe.G.H.ui.D.Hc.prototype.Bk;
|
|
908
908
|
olympe.G.H.ui.D.Hc.prototype.unregisterKeyPressed=olympe.G.H.ui.D.Hc.prototype.vj;olympe.G.H.ui.D.Hc.prototype.registerKeyPressed=olympe.G.H.ui.D.Hc.prototype.Ck;olympe.G.H.ui.D.Hc.prototype.unregisterValueChanged=olympe.G.H.ui.D.Hc.prototype.Ll;olympe.G.H.ui.D.Hc.prototype.registerValueChanged=olympe.G.H.ui.D.Hc.prototype.ul;olympe.G.H.ui.D.Hc.prototype.getFormEvent=olympe.G.H.ui.D.Hc.prototype.Zp;olympe.G.H.ui.D.Hc.prototype.getKeyEvent=olympe.G.H.ui.D.Hc.prototype.Yc;
|
|
909
|
-
olympe.G.H.ui.D.Hc.prototype.setValue=olympe.G.H.ui.D.Hc.prototype.Bf;olympe.G.H.ui.D.Hc.prototype.getValue=olympe.G.H.ui.D.Hc.prototype.getValue;olympe.G.H.ui.D.Hc.prototype.setTextVerticalAlign=olympe.G.H.ui.D.Hc.prototype.bc;olympe.G.H.ui.D.Hc.prototype.setTextHorizontalAlign=olympe.G.H.ui.D.Hc.prototype
|
|
909
|
+
olympe.G.H.ui.D.Hc.prototype.setValue=olympe.G.H.ui.D.Hc.prototype.Bf;olympe.G.H.ui.D.Hc.prototype.getValue=olympe.G.H.ui.D.Hc.prototype.getValue;olympe.G.H.ui.D.Hc.prototype.setTextVerticalAlign=olympe.G.H.ui.D.Hc.prototype.bc;olympe.G.H.ui.D.Hc.prototype.setTextHorizontalAlign=olympe.G.H.ui.D.Hc.prototype.$b;olympe.G.H.ui.D.Hc.prototype.setPlaceholderColor=olympe.G.H.ui.D.Hc.prototype.Sg;olympe.G.H.ui.D.Hc.prototype.setPlaceholder=olympe.G.H.ui.D.Hc.prototype.Gg;
|
|
910
910
|
olympe.G.H.ui.D.Hc.prototype.setRGBATextColor=olympe.G.H.ui.D.Hc.prototype.xl;olympe.G.H.ui.D.Hc.prototype.setTextColor=olympe.G.H.ui.D.Hc.prototype.ob;olympe.G.H.ui.D.Hc.prototype.setFontStyle=olympe.G.H.ui.D.Hc.prototype.Qd;olympe.G.H.ui.D.Hc.prototype.setFontSize=olympe.G.H.ui.D.Hc.prototype.zb;olympe.G.H.ui.D.Hc.prototype.setFontFamily=olympe.G.H.ui.D.Hc.prototype.yb;olympe.G.H.ui.D.Hc.prototype.setPaddingBottom=olympe.G.H.ui.D.Hc.prototype.rd;olympe.G.H.ui.D.Hc.prototype.setPaddingTop=olympe.G.H.ui.D.Hc.prototype.sd;
|
|
911
911
|
olympe.G.H.ui.D.Hc.prototype.setPaddingRight=olympe.G.H.ui.D.Hc.prototype.Ic;olympe.G.H.ui.D.Hc.prototype.setPaddingLeft=olympe.G.H.ui.D.Hc.prototype.Ec;olympe.G.H.ui.D.Hc.prototype.setFontWeight=olympe.G.H.ui.D.Hc.prototype.Db;olympe.host.$c.register(olympe.host.qa.nb.NJ,olympe.G.H.ui.D.Hc);olympe.G.H.ui.D.Hc.ua=[olympe.N.D.Pc];olympe.G.H.ui.D.Wb=class extends olympe.G.H.ui.D.rc{constructor(a,b){super(a,b,document.createElement('input'));this.paddingBottom=this.paddingTop=this.paddingRight=this.paddingLeft=0;this.C=this.F=void 0;this.ya().removeAttribute('tabindex');this.mb('resize','none');this.mb('outline','0px');this.Ec(this.paddingLeft);this.Ic(this.paddingRight);this.sd(this.paddingTop);this.rd(this.paddingBottom);this.ya().type='text';this.ya().autocapitalize='off';this.mb('outline','0px');this.mb('-webkit-user-select',
|
|
912
912
|
'text');this.mb('-moz-user-select','text');this.mb('-ms-user-select','text');this.mb('-user-select','text');this.ya().setAttribute('autocomplete','off');this.ya().addEventListener('mousedown',c=>{c.stopPropagation()});this.ya().addEventListener('mouseup',c=>{c.stopPropagation()});this.ya().addEventListener('click',c=>{c.stopPropagation()});this.ya().addEventListener('keyup',c=>{c.stopPropagation()});this.ya().addEventListener('keydown',c=>{c.stopPropagation()});this.ya().addEventListener('keypress',
|
|
913
913
|
c=>{c.stopPropagation()})}O(){let a=Math.min(this.td()/2,this.ve()/2,this.zi()),b=this.paddingLeft,c=this.paddingTop,d=Math.min(this.paddingRight,this.td()-2*a-this.paddingLeft),e=Math.min(this.paddingBottom,this.ve()-2*a-this.paddingTop),f=this.td()-Math.min(2*this.zi()+this.paddingLeft+this.paddingRight,this.td()),g=this.ve()-Math.min(2*this.zi()+this.paddingTop+this.paddingBottom,this.ve());b=b+.5|0;c=c+.5|0;d=d+.5|0;e=e+.5|0;f=f+.5|0;g=g+.5|0;this.mb('border',(a+.5|0)+'px solid '+this.bl());this.mb('padding-left',
|
|
914
914
|
b+'px');this.mb('padding-right',d+'px');this.mb('padding-top',c+'px');this.mb('padding-bottom',e+'px');ue(this,f,g)}Gf(a){this.ya().disabled=a}Db(a){this.mb('fontWeight',a.toString())}Ec(a){this.paddingLeft=a||0;this.O()}Ic(a){this.paddingRight=a||0;this.O()}sd(a){this.paddingTop=a||0;this.O()}rd(a){this.paddingBottom=a||0;this.O()}yb(a){this.mb('fontFamily',a||'')}zb(a){this.mb('fontSize',a.toString()+'px')}Qd(a){this.mb('fontStyle',a.toString())}ob(a){this.mb('color',a)}xl(a,b,c,d){this.mb('color',
|
|
915
|
-
'rgba('+a+', '+b+', '+c+', '+d+')')}
|
|
915
|
+
'rgba('+a+', '+b+', '+c+', '+d+')')}$b(a){switch(a){case olympe.ui.fa.Hb.Kf:this.mb('text-align','left');break;case olympe.ui.fa.Hb.Vb:this.mb('text-align','center');break;case olympe.ui.fa.Hb.Kg:this.mb('text-align','right');break;default:this.Eb().warn('Unexpected text horizontal align value '+a+' ignored')}}bc(a){switch(a){case olympe.ui.fa.tc.Yg:this.mb('vertical-align','left');break;case olympe.ui.fa.tc.Nc:this.mb('vertical-align','center');break;case olympe.ui.fa.tc.uh:this.mb('vertical-align',
|
|
916
916
|
'right');break;default:this.Eb().warn('Unexpected text vertical align value '+a+' ignored')}}gu(){return this.ya().select()}getValue(){return this.ya().value}Bf(a){''!==document.activeElement.id&&document.activeElement.id===this.ya().id||this.ya().value===a||(this.ya().value=a,a=document.createEvent('HTMLEvents'),a.initEvent('input',!0,!0),a.C='input',this.ya().dispatchEvent(a))}Gg(a){this.ya().placeholder=a}Sg(a){le(je(),this,'color:'+a)}fn(a){switch(a){case olympe.ui.fa.tr.Ny:this.ya().type='text';
|
|
917
917
|
break;case olympe.ui.fa.tr.uv:this.ya().type='password';break;case olympe.ui.fa.tr.GR:this.ya().type='number';break;case olympe.ui.fa.tr.kF:this.ya().type='email';break;case olympe.ui.fa.tr.UR:this.ya().type='phone';break;default:this.Eb().warn('Unexpected text field type '+a+' ignored')}}uu(a){this.ya().min=a}ru(a){this.ya().max=a}Au(a){this.ya().step=a}hu(a){switch(a){case olympe.ui.fa.Qy.NONE:this.ya().autocapitalize='off';break;case olympe.ui.fa.Qy.RO:this.ya().autocapitalize='characters';break;
|
|
918
918
|
case olympe.ui.fa.Qy.aT:this.ya().autocapitalize='words';break;case olympe.ui.fa.Qy.pS:this.ya().autocapitalize='sentences';break;default:this.Eb().warn('Unexpected text field capitalization mode '+a+' ignored')}}fi(a){const b=()=>{this.removeAttribute('overflow');this.mb('text-overflow','clip')};switch(a){case olympe.ui.fa.Tn.Ru:b();break;case olympe.ui.fa.Tn.jF:this.mb('text-overflow','ellipsis');this.mb('overflow','hidden');break;case olympe.ui.fa.Tn.wF:this.Eb().warn('Fade is not supported yet');
|
|
@@ -921,7 +921,7 @@ return this.Yc().vj()}Bk(a){U(this,'keyDown',this.uj.bind(this));return this.Yc(
|
|
|
921
921
|
olympe.G.H.ui.D.Wb.prototype.unregisterKeyDown=olympe.G.H.ui.D.Wb.prototype.uj;olympe.G.H.ui.D.Wb.prototype.registerKeyDown=olympe.G.H.ui.D.Wb.prototype.Bk;olympe.G.H.ui.D.Wb.prototype.unregisterKeyPressed=olympe.G.H.ui.D.Wb.prototype.vj;olympe.G.H.ui.D.Wb.prototype.registerKeyPressed=olympe.G.H.ui.D.Wb.prototype.Ck;olympe.G.H.ui.D.Wb.prototype.unregisterValueChanged=olympe.G.H.ui.D.Wb.prototype.Ll;olympe.G.H.ui.D.Wb.prototype.registerValueChanged=olympe.G.H.ui.D.Wb.prototype.ul;
|
|
922
922
|
olympe.G.H.ui.D.Wb.prototype.getFormEvent=olympe.G.H.ui.D.Wb.prototype.Zp;olympe.G.H.ui.D.Wb.prototype.getKeyEvent=olympe.G.H.ui.D.Wb.prototype.Yc;olympe.G.H.ui.D.Wb.prototype.setAutoComplete=olympe.G.H.ui.D.Wb.prototype.Oo;olympe.G.H.ui.D.Wb.prototype.setTextOverflow=olympe.G.H.ui.D.Wb.prototype.fi;olympe.G.H.ui.D.Wb.prototype.setAutoCapitalization=olympe.G.H.ui.D.Wb.prototype.hu;olympe.G.H.ui.D.Wb.prototype.setStep=olympe.G.H.ui.D.Wb.prototype.Au;olympe.G.H.ui.D.Wb.prototype.setMax=olympe.G.H.ui.D.Wb.prototype.ru;
|
|
923
923
|
olympe.G.H.ui.D.Wb.prototype.setMin=olympe.G.H.ui.D.Wb.prototype.uu;olympe.G.H.ui.D.Wb.prototype.setType=olympe.G.H.ui.D.Wb.prototype.fn;olympe.G.H.ui.D.Wb.prototype.setPlaceholderColor=olympe.G.H.ui.D.Wb.prototype.Sg;olympe.G.H.ui.D.Wb.prototype.setPlaceholder=olympe.G.H.ui.D.Wb.prototype.Gg;olympe.G.H.ui.D.Wb.prototype.setValue=olympe.G.H.ui.D.Wb.prototype.Bf;olympe.G.H.ui.D.Wb.prototype.getValue=olympe.G.H.ui.D.Wb.prototype.getValue;olympe.G.H.ui.D.Wb.prototype.selectText=olympe.G.H.ui.D.Wb.prototype.gu;
|
|
924
|
-
olympe.G.H.ui.D.Wb.prototype.setTextVerticalAlign=olympe.G.H.ui.D.Wb.prototype.bc;olympe.G.H.ui.D.Wb.prototype.setTextHorizontalAlign=olympe.G.H.ui.D.Wb.prototype
|
|
924
|
+
olympe.G.H.ui.D.Wb.prototype.setTextVerticalAlign=olympe.G.H.ui.D.Wb.prototype.bc;olympe.G.H.ui.D.Wb.prototype.setTextHorizontalAlign=olympe.G.H.ui.D.Wb.prototype.$b;olympe.G.H.ui.D.Wb.prototype.setRGBATextColor=olympe.G.H.ui.D.Wb.prototype.xl;olympe.G.H.ui.D.Wb.prototype.setTextColor=olympe.G.H.ui.D.Wb.prototype.ob;olympe.G.H.ui.D.Wb.prototype.setFontStyle=olympe.G.H.ui.D.Wb.prototype.Qd;olympe.G.H.ui.D.Wb.prototype.setFontSize=olympe.G.H.ui.D.Wb.prototype.zb;
|
|
925
925
|
olympe.G.H.ui.D.Wb.prototype.setFontFamily=olympe.G.H.ui.D.Wb.prototype.yb;olympe.G.H.ui.D.Wb.prototype.setPaddingBottom=olympe.G.H.ui.D.Wb.prototype.rd;olympe.G.H.ui.D.Wb.prototype.setPaddingTop=olympe.G.H.ui.D.Wb.prototype.sd;olympe.G.H.ui.D.Wb.prototype.setPaddingRight=olympe.G.H.ui.D.Wb.prototype.Ic;olympe.G.H.ui.D.Wb.prototype.setPaddingLeft=olympe.G.H.ui.D.Wb.prototype.Ec;olympe.G.H.ui.D.Wb.prototype.setFontWeight=olympe.G.H.ui.D.Wb.prototype.Db;olympe.G.H.ui.D.Wb.prototype.setDisabled=olympe.G.H.ui.D.Wb.prototype.Gf;
|
|
926
926
|
olympe.host.$c.register(olympe.host.qa.nb.OJ,olympe.G.H.ui.D.Wb);olympe.G.H.ui.D.Wb.ua=[olympe.N.D.Ub];function Fe(a){3===a.V?(a.C.style.overflow='auto',delete a.C.style['overflow-x'],delete a.C.style['overflow-y']):0!==(a.V&2)?(a.C.style['overflow-x']='auto',a.C.style['overflow-y']='hidden',delete a.C.style.overflow,a.scrollTop=0):0!==(a.V&1)?(a.C.style['overflow-y']='auto',a.C.style['overflow-x']='hidden',delete a.C.style.overflow,a.scrollLeft=0):(a.C.style.overflow='hidden',delete a.C.style['overflow-x'],delete a.C.style['overflow-y'],a.scrollLeft=0,a.scrollTop=0)}
|
|
927
927
|
olympe.G.H.ui.D.zd=class extends olympe.G.H.ui.D.rc{constructor(a,b){super(a,b,document.createElement('div'));this.F=null;this.Cc=!1;this.C=document.createElement('div');this.R=document.createElement('div');this.Ha=!1;this.Ib=this.Cb=this.Ka=null;this.ec=!1;this.V=3;this.scrollLeft=this.scrollTop=0;a=this.ya();this.R.style['padding-right']='15px';this.R.style['padding-bottom']='15px';this.R.style.overflow='hidden';Fe(this);this.C.className='scroller';this.C.style.position='absolute';this.C.appendChild(this.R);
|
|
@@ -994,13 +994,13 @@ olympe.G.H.ui.Xa.Za.Map.prototype.invalidateSize=olympe.G.H.ui.Xa.Za.Map.prototy
|
|
|
994
994
|
olympe.G.H.ui.Xa.Za.Map.prototype.flyTo=olympe.G.H.ui.Xa.Za.Map.prototype.Bt;olympe.G.H.ui.Xa.Za.Map.prototype.panBy=olympe.G.H.ui.Xa.Za.Map.prototype.Zt;olympe.G.H.ui.Xa.Za.Map.prototype.panTo=olympe.G.H.ui.Xa.Za.Map.prototype.au;olympe.G.H.ui.Xa.Za.Map.prototype.fitWorld=olympe.G.H.ui.Xa.Za.Map.prototype.At;olympe.G.H.ui.Xa.Za.Map.prototype.fitBounds=olympe.G.H.ui.Xa.Za.Map.prototype.zt;olympe.G.H.ui.Xa.Za.Map.prototype.setZoomAround=olympe.G.H.ui.Xa.Za.Map.prototype.Eu;
|
|
995
995
|
olympe.G.H.ui.Xa.Za.Map.prototype.zoomOut=olympe.G.H.ui.Xa.Za.Map.prototype.Ku;olympe.G.H.ui.Xa.Za.Map.prototype.zoomIn=olympe.G.H.ui.Xa.Za.Map.prototype.Ju;olympe.G.H.ui.Xa.Za.Map.prototype.registerLatitudeCallback=olympe.G.H.ui.Xa.Za.Map.prototype.Hw;olympe.G.H.ui.Xa.Za.Map.prototype.registerLongitudeCallback=olympe.G.H.ui.Xa.Za.Map.prototype.Iw;olympe.G.H.ui.Xa.Za.Map.prototype.setLatitude=olympe.G.H.ui.Xa.Za.Map.prototype.ls;olympe.G.H.ui.Xa.Za.Map.prototype.setLongitude=olympe.G.H.ui.Xa.Za.Map.prototype.ms;
|
|
996
996
|
olympe.G.H.ui.Xa.Za.Map.prototype.registerZoomCallback=olympe.G.H.ui.Xa.Za.Map.prototype.Jw;olympe.G.H.ui.Xa.Za.Map.prototype.setZoom=olympe.G.H.ui.Xa.Za.Map.prototype.ts;olympe.G.H.ui.Xa.Za.Map.prototype.removeGeoJson=olympe.G.H.ui.Xa.Za.Map.prototype.cu;olympe.G.H.ui.Xa.Za.Map.prototype.setView=olympe.G.H.ui.Xa.Za.Map.prototype.ss;olympe.G.H.ui.Xa.Za.Map.prototype.initMap=olympe.G.H.ui.Xa.Za.Map.prototype.xN;olympe.G.H.ui.Xa.Za.Map.prototype.onLoad=olympe.G.H.ui.Xa.Za.Map.prototype.kf;
|
|
997
|
-
olympe.host.$c.register(olympe.host.qa.nb.bK,olympe.G.H.ui.Xa.Za.Map);olympe.G.H.ui.Xa.Za.Map.ua=[olympe.N.Xa.Za.Map];olympe.G.H.ui.P={};olympe.G.H.ui.P.jd={
|
|
998
|
-
this.C&&(this.C=this.ya().insertBefore(document.createElementNS(olympe.G.H.ui.P.jd.
|
|
997
|
+
olympe.host.$c.register(olympe.host.qa.nb.bK,olympe.G.H.ui.Xa.Za.Map);olympe.G.H.ui.Xa.Za.Map.ua=[olympe.N.Xa.Za.Map];olympe.G.H.ui.P={};olympe.G.H.ui.P.jd={We:{Tf:'http://www.w3.org/2000/svg',OX:'http://www.w3.org/2000/xmlns/',sA:'http://www.w3.org/1999/xlink'},wg:'default'};olympe.G.H.ui.P.Oi=class extends olympe.G.H.ui.D.rc{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'svg'));this.C=null;this.children=new Map;this.ya().setAttribute('xmlns',olympe.G.H.ui.P.jd.We.Tf);this.ya().setAttributeNS(olympe.G.H.ui.P.jd.We.OX,'xmlns:xlink',olympe.G.H.ui.P.jd.We.sA);this.ya().addEventListener('focus',()=>{});we(this,()=>{for(const c of this.children.values())c.Sf(this)});xe(this,()=>{for(const c of this.children.values())c.Sf(null)})}sk(){null===
|
|
998
|
+
this.C&&(this.C=this.ya().insertBefore(document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'defs'),this.ya().firstChild));return this.C}qx(a,b,c,d){this.setAttribute('viewBox',a+' '+b+' '+c+' '+d)}appendChild(a,b){b||(b=olympe.G.H.ui.P.jd.wg);this.children.has(b)&&this.removeChild(b);this.children.set(b,a);this.ya().appendChild(a.ya());a.mf(this);a.Sf(this)}removeChild(a){a||(a=olympe.G.H.ui.P.jd.wg);const b=this.children.get(a);if(b)try{this.ya().removeChild(b.ya()),b.mf(null),b.Sf(null)}catch(c){this.Y.debug('Not able to remove a child, has probably already been removed')}finally{this.children.delete(a)}else this.Y.debug('Trying to remove a non existing child: '+
|
|
999
999
|
a)}lw(){return this.ya().outerHTML}DC(){return'data:image/svg+xml;utf8,'+this.lw()}};olympe.G.H.ui.P.Oi.prototype.getImageUrl=olympe.G.H.ui.P.Oi.prototype.DC;olympe.G.H.ui.P.Oi.prototype.getImageContent=olympe.G.H.ui.P.Oi.prototype.lw;olympe.G.H.ui.P.Oi.prototype.removeChild=olympe.G.H.ui.P.Oi.prototype.removeChild;olympe.G.H.ui.P.Oi.prototype.appendChild=olympe.G.H.ui.P.Oi.prototype.appendChild;olympe.G.H.ui.P.Oi.prototype.setViewbox=olympe.G.H.ui.P.Oi.prototype.qx;
|
|
1000
|
-
olympe.G.H.ui.P.Oi.prototype.getSvgDefsElement=olympe.G.H.ui.P.Oi.prototype.sk;olympe.host.$c.register(olympe.host.qa.nb.TK,olympe.G.H.ui.P.Oi);olympe.G.H.ui.P.Oi.ua=[olympe.N.P.xi];olympe.G.H.ui.P
|
|
1001
|
-
this.C.parentNode;a&&a.removeChild(this.C)}}mb(a,b){this.ya().style[a]=b}Hi(a){this.mb('pointer-events',a?'none':'auto')}qd(a){this.mb('display',a?'none':'initial')}};olympe.G.H.ui.P
|
|
1002
|
-
olympe.G.H.ui.P
|
|
1003
|
-
olympe.G.H.ui.P
|
|
1000
|
+
olympe.G.H.ui.P.Oi.prototype.getSvgDefsElement=olympe.G.H.ui.P.Oi.prototype.sk;olympe.host.$c.register(olympe.host.qa.nb.TK,olympe.G.H.ui.P.Oi);olympe.G.H.ui.P.Oi.ua=[olympe.N.P.xi];olympe.G.H.ui.P.af=class extends olympe.G.H.ui.Cf{constructor(a,b,c){super(a,b);this.C=c;this.V=this.parent=null;this.id=''}ya(){return this.C}sk(){return this.V?this.V.sk():null}setAttribute(a,b,c){c?this.ya().setAttributeNS(c||'',a,String(b)):this.ya().setAttribute(a,String(b))}qu(a){this.setAttribute('id',this.id=a)}xa(){this.id||this.qu(this.uid);return this.id}mf(a){this.parent=a}getParent(){return this.parent}Sf(a){this.V=a}co(){return this.V}destroy(){this.parent&&(this.parent=null);if(this.C){const a=
|
|
1001
|
+
this.C.parentNode;a&&a.removeChild(this.C)}}mb(a,b){this.ya().style[a]=b}Hi(a){this.mb('pointer-events',a?'none':'auto')}qd(a){this.mb('display',a?'none':'initial')}};olympe.G.H.ui.P.af.prototype.setHidden=olympe.G.H.ui.P.af.prototype.qd;olympe.G.H.ui.P.af.prototype.setIgnoreUserInteraction=olympe.G.H.ui.P.af.prototype.Hi;olympe.G.H.ui.P.af.prototype.destroy=olympe.G.H.ui.P.af.prototype.destroy;olympe.G.H.ui.P.af.prototype.getContainer=olympe.G.H.ui.P.af.prototype.co;
|
|
1002
|
+
olympe.G.H.ui.P.af.prototype.setContainer=olympe.G.H.ui.P.af.prototype.Sf;olympe.G.H.ui.P.af.prototype.getParent=olympe.G.H.ui.P.af.prototype.getParent;olympe.G.H.ui.P.af.prototype.setParent=olympe.G.H.ui.P.af.prototype.mf;olympe.G.H.ui.P.af.prototype.getId=olympe.G.H.ui.P.af.prototype.xa;olympe.G.H.ui.P.af.prototype.setId=olympe.G.H.ui.P.af.prototype.qu;olympe.G.H.ui.P.af.prototype.setAttribute=olympe.G.H.ui.P.af.prototype.setAttribute;olympe.G.H.ui.P.af.prototype.getSvgDefsElement=olympe.G.H.ui.P.af.prototype.sk;
|
|
1003
|
+
olympe.G.H.ui.P.af.prototype.getHtmlElement=olympe.G.H.ui.P.af.prototype.ya;olympe.G.H.ui.P.af.ua=[olympe.N.P.Me];olympe.G.H.ui.P.pe=class extends olympe.G.H.ui.P.af{constructor(a,b,c){super(a,b,c);this.y=this.x=0;this.$=this.height=this.width=1;this.T=this.R=!1}oe(a){this.x=a;this.R=!0;this.ke()}na(){return this.x}Ge(a){this.y=a;this.R=!0;this.ke()}ra(){return this.y}setPosition(a,b){this.x=a;this.y=b;this.R=!0;this.ke()}ug(a){this.height=a;this.T=!0;this.ke()}ve(){return this.height}vg(a){this.width=a;this.T=!0;this.ke()}td(){return this.width}fh(a){this.$=a;this.ke()}aq(){return this.$}Jb(a,b){this.width=
|
|
1004
1004
|
a;this.height=b;this.T=!0;this.ke()}Vw(a,b,c,d){let e=!1;void 0===a||this.R||(this.x=a,this.y=b||0,e=!0);void 0===c||this.T||(this.width=c,this.height=d||0,e=!0);e&&this.ke()}ke(){this.setAttribute('x',this.x);this.setAttribute('y',this.y);this.setAttribute('width',this.width);this.setAttribute('height',this.height);this.setAttribute('transform','scale('+this.$+')')}};olympe.G.H.ui.P.pe.prototype.refreshBox=olympe.G.H.ui.P.pe.prototype.ke;olympe.G.H.ui.P.pe.prototype.setDefaultBox=olympe.G.H.ui.P.pe.prototype.Vw;
|
|
1005
1005
|
olympe.G.H.ui.P.pe.prototype.setDimension=olympe.G.H.ui.P.pe.prototype.Jb;olympe.G.H.ui.P.pe.prototype.getScale=olympe.G.H.ui.P.pe.prototype.aq;olympe.G.H.ui.P.pe.prototype.setScale=olympe.G.H.ui.P.pe.prototype.fh;olympe.G.H.ui.P.pe.prototype.getWidth=olympe.G.H.ui.P.pe.prototype.td;olympe.G.H.ui.P.pe.prototype.setWidth=olympe.G.H.ui.P.pe.prototype.vg;olympe.G.H.ui.P.pe.prototype.getHeight=olympe.G.H.ui.P.pe.prototype.ve;olympe.G.H.ui.P.pe.prototype.setHeight=olympe.G.H.ui.P.pe.prototype.ug;
|
|
1006
1006
|
olympe.G.H.ui.P.pe.prototype.setPosition=olympe.G.H.ui.P.pe.prototype.setPosition;olympe.G.H.ui.P.pe.prototype.getY=olympe.G.H.ui.P.pe.prototype.ra;olympe.G.H.ui.P.pe.prototype.setY=olympe.G.H.ui.P.pe.prototype.Ge;olympe.G.H.ui.P.pe.prototype.getX=olympe.G.H.ui.P.pe.prototype.na;olympe.G.H.ui.P.pe.prototype.setX=olympe.G.H.ui.P.pe.prototype.oe;olympe.G.H.ui.P.pe.ua=[olympe.N.P.vd];olympe.G.H.ui.P.Ma=class extends olympe.G.H.ui.P.pe{constructor(a,b,c){super(a,b,c);this.oD=Ha(0,0,0);this.strokeColor=this.fillOpacity=this.fillColor=null;this.strokeOpacity=1;this.strokeWidth=0;this.tO=null;this.sO=0;this.pg=this.sg=this.Pj=this.filter=this.Pr=this.strokeLinecap=null}ke(){this.setAttribute('transform',Ka(Ga(this.oD,this.OC()))+' scale('+this.aq()+')');this.setAttribute('stroke-width',this.Cm())}OC(){return Fa(this.x,this.y)}mw(){return Infinity}rotate(a,b,c){this.oD=Ha(a,b||0,c||
|
|
@@ -1019,43 +1019,43 @@ olympe.G.H.ui.P.Ma.prototype.unregisterMouseUp=olympe.G.H.ui.P.Ma.prototype.Jl;o
|
|
|
1019
1019
|
olympe.G.H.ui.P.Ma.prototype.unregisterClickOrTap=olympe.G.H.ui.P.Ma.prototype.Cl;olympe.G.H.ui.P.Ma.prototype.registerClickOrTap=olympe.G.H.ui.P.Ma.prototype.Qm;olympe.G.H.ui.P.Ma.prototype.getGestureEvent=olympe.G.H.ui.P.Ma.prototype.tb;olympe.G.H.ui.P.Ma.prototype.getMouseEvent=olympe.G.H.ui.P.Ma.prototype.Ia;olympe.G.H.ui.P.Ma.prototype.setContainer=olympe.G.H.ui.P.Ma.prototype.Sf;olympe.G.H.ui.P.Ma.prototype.unsetGradient=olympe.G.H.ui.P.Ma.prototype.yx;
|
|
1020
1020
|
olympe.G.H.ui.P.Ma.prototype.setGradient=olympe.G.H.ui.P.Ma.prototype.ou;olympe.G.H.ui.P.Ma.prototype.unsetMask=olympe.G.H.ui.P.Ma.prototype.zx;olympe.G.H.ui.P.Ma.prototype.setMask=olympe.G.H.ui.P.Ma.prototype.cx;olympe.G.H.ui.P.Ma.prototype.unsetFilter=olympe.G.H.ui.P.Ma.prototype.xx;olympe.G.H.ui.P.Ma.prototype.setFilter=olympe.G.H.ui.P.Ma.prototype.js;olympe.G.H.ui.P.Ma.prototype.getStrokeWidth=olympe.G.H.ui.P.Ma.prototype.Cm;olympe.G.H.ui.P.Ma.prototype.setStrokeWidth=olympe.G.H.ui.P.Ma.prototype.Bu;
|
|
1021
1021
|
olympe.G.H.ui.P.Ma.prototype.setStrokeLinecap=olympe.G.H.ui.P.Ma.prototype.ox;olympe.G.H.ui.P.Ma.prototype.setStrokeDashOffset=olympe.G.H.ui.P.Ma.prototype.mx;olympe.G.H.ui.P.Ma.prototype.setStrokeDashPattern=olympe.G.H.ui.P.Ma.prototype.nx;olympe.G.H.ui.P.Ma.prototype.setStrokeColorAndOpacity=olympe.G.H.ui.P.Ma.prototype.lA;olympe.G.H.ui.P.Ma.prototype.setStrokeOpacity=olympe.G.H.ui.P.Ma.prototype.FD;olympe.G.H.ui.P.Ma.prototype.setStrokeColor=olympe.G.H.ui.P.Ma.prototype.setStrokeColor;
|
|
1022
|
-
olympe.G.H.ui.P.Ma.prototype.setFillColorAndOpacity=olympe.G.H.ui.P.Ma.prototype.cA;olympe.G.H.ui.P.Ma.prototype.setFillOpacity=olympe.G.H.ui.P.Ma.prototype.tD;olympe.G.H.ui.P.Ma.prototype.setFillColor=olympe.G.H.ui.P.Ma.prototype.setFillColor;olympe.G.H.ui.P.Ma.prototype.setFilled=olympe.G.H.ui.P.Ma.prototype.Yw;olympe.G.H.ui.P.Ma.prototype.rotate=olympe.G.H.ui.P.Ma.prototype.rotate;olympe.G.H.ui.P.Ma.prototype.refreshBox=olympe.G.H.ui.P.Ma.prototype.ke;olympe.G.H.ui.P.Ma.ua=[olympe.N.P.yc];olympe.G.H.ui.P.HTMLFilter=class extends olympe.G.H.ui.P.pe{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1022
|
+
olympe.G.H.ui.P.Ma.prototype.setFillColorAndOpacity=olympe.G.H.ui.P.Ma.prototype.cA;olympe.G.H.ui.P.Ma.prototype.setFillOpacity=olympe.G.H.ui.P.Ma.prototype.tD;olympe.G.H.ui.P.Ma.prototype.setFillColor=olympe.G.H.ui.P.Ma.prototype.setFillColor;olympe.G.H.ui.P.Ma.prototype.setFilled=olympe.G.H.ui.P.Ma.prototype.Yw;olympe.G.H.ui.P.Ma.prototype.rotate=olympe.G.H.ui.P.Ma.prototype.rotate;olympe.G.H.ui.P.Ma.prototype.refreshBox=olympe.G.H.ui.P.Ma.prototype.ke;olympe.G.H.ui.P.Ma.ua=[olympe.N.P.yc];olympe.G.H.ui.P.HTMLFilter=class extends olympe.G.H.ui.P.pe{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'filter'));this.children=new Map}Gi(a){this.setAttribute('filterUnits',a?'userSpaceOnUse':'objectBoundingBox')}addElement(a,b){b||(b=olympe.G.H.ui.P.jd.wg);this.children.get(b)&&this.bu(b);this.children.set(b,a);this.ya().appendChild(a.ya());a.mf(this)}bu(a){a||(a=olympe.G.H.ui.P.jd.wg);const b=this.children.get(a);if(void 0!==b)try{this.ya().removeChild(b.ya()),
|
|
1023
1023
|
b.mf(null)}catch(c){this.Eb().debug('Not able to remove a child, has probably already been removed')}finally{this.children.delete(a)}else this.Eb().warn('Trying to remove a non existing child: '+a)}Kw(){this.children.clear();let a;const b=this.ya();for(;a=b.firstChild;)b.removeChild(a)}MN(a,b){this.ya().replaceChild(b,a)}ke(){olympe.G.H.ui.P.pe.prototype.ke.call(this);const a=this.td(),b=this.ve(),c=this.na(),d=this.ra();for(const e of this.children.values())e.Vw(c,d,a,b)}};
|
|
1024
1024
|
olympe.G.H.ui.P.HTMLFilter.prototype.refreshBox=olympe.G.H.ui.P.HTMLFilter.prototype.ke;olympe.G.H.ui.P.HTMLFilter.prototype.replaceChildHtmlElement=olympe.G.H.ui.P.HTMLFilter.prototype.MN;olympe.G.H.ui.P.HTMLFilter.prototype.removeAllElements=olympe.G.H.ui.P.HTMLFilter.prototype.Kw;olympe.G.H.ui.P.HTMLFilter.prototype.removeElement=olympe.G.H.ui.P.HTMLFilter.prototype.bu;olympe.G.H.ui.P.HTMLFilter.prototype.addElement=olympe.G.H.ui.P.HTMLFilter.prototype.addElement;
|
|
1025
1025
|
olympe.G.H.ui.P.HTMLFilter.prototype.setAbsolute=olympe.G.H.ui.P.HTMLFilter.prototype.Gi;olympe.host.$c.register(olympe.host.qa.nb.yK,olympe.G.H.ui.P.HTMLFilter);olympe.G.H.ui.P.HTMLFilter.ua=[olympe.N.P.ce];olympe.G.H.ui.P.yh=class extends olympe.G.H.ui.P.pe{constructor(a,b,c){super(a,b,c);this.ta=null}qu(a){this.setAttribute('result',this.id=a)}Yp(a){if(a instanceof olympe.G.H.ui.P.yh)a=a.xa();else switch(a){case olympe.ui.fa.Is.wS:a='SourceGraphic';break;case olympe.ui.fa.Is.vS:a='SourceAlpha';break;case olympe.ui.fa.Is.HO:a='BackgroundImage';break;case olympe.ui.fa.Is.GO:a='BackgroundAlpha';break;case olympe.ui.fa.Is.wP:a='FillPaint';break;case olympe.ui.fa.Is.BS:a='StrokePaint';break;default:a=String(a)}return a}Xj(a){this.ta=
|
|
1026
|
-
a}Cg(){return this.ta}};olympe.G.H.ui.P.yh.prototype.getNext=olympe.G.H.ui.P.yh.prototype.Cg;olympe.G.H.ui.P.yh.prototype.setNext=olympe.G.H.ui.P.yh.prototype.Xj;olympe.G.H.ui.P.yh.prototype.getFilterInput=olympe.G.H.ui.P.yh.prototype.Yp;olympe.G.H.ui.P.yh.prototype.setId=olympe.G.H.ui.P.yh.prototype.qu;olympe.G.H.ui.P.yh.ua=[olympe.N.P.yg];olympe.G.H.ui.P.Ps=class extends olympe.G.H.ui.P.yh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1027
|
-
olympe.host.$c.register(olympe.host.qa.nb.zK,olympe.G.H.ui.P.Ps);olympe.G.H.ui.P.Ps.ua=[olympe.N.P.yn];olympe.G.H.ui.P.Qs=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1028
|
-
olympe.G.H.ui.P.Qs.ua=[olympe.N.P.Ol];olympe.G.H.ui.P.Rs=class extends olympe.G.H.ui.P.yh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1029
|
-
olympe.G.H.ui.P.Rs.ua=[olympe.N.P.Rq];olympe.G.H.ui.P.jp=class extends olympe.G.H.ui.P.yh{constructor(a,b){const c=document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1026
|
+
a}Cg(){return this.ta}};olympe.G.H.ui.P.yh.prototype.getNext=olympe.G.H.ui.P.yh.prototype.Cg;olympe.G.H.ui.P.yh.prototype.setNext=olympe.G.H.ui.P.yh.prototype.Xj;olympe.G.H.ui.P.yh.prototype.getFilterInput=olympe.G.H.ui.P.yh.prototype.Yp;olympe.G.H.ui.P.yh.prototype.setId=olympe.G.H.ui.P.yh.prototype.qu;olympe.G.H.ui.P.yh.ua=[olympe.N.P.yg];olympe.G.H.ui.P.Ps=class extends olympe.G.H.ui.P.yh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'feGaussianBlur'));this.setAttribute('color-interpolation-filters','sRGB');this.amount=null}Nw(a){this.setAttribute('stdDeviation',this.amount=a)}lf(a){this.setAttribute('in',this.Yp(a))}};olympe.G.H.ui.P.Ps.prototype.setInput=olympe.G.H.ui.P.Ps.prototype.lf;olympe.G.H.ui.P.Ps.prototype.setAmount=olympe.G.H.ui.P.Ps.prototype.Nw;
|
|
1027
|
+
olympe.host.$c.register(olympe.host.qa.nb.zK,olympe.G.H.ui.P.Ps);olympe.G.H.ui.P.Ps.ua=[olympe.N.P.yn];olympe.G.H.ui.P.Qs=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'circle'));this.F=1}ke(){olympe.G.H.ui.P.Ma.prototype.ke.call(this);this.setAttribute('r',this.F-this.Cm()/2)}mw(){return this.F}Jh(a){this.F=Math.abs(a);this.ke()}};olympe.G.H.ui.P.Qs.prototype.setRadius=olympe.G.H.ui.P.Qs.prototype.Jh;olympe.G.H.ui.P.Qs.prototype.refreshBox=olympe.G.H.ui.P.Qs.prototype.ke;olympe.host.$c.register(olympe.host.qa.nb.wK,olympe.G.H.ui.P.Qs);
|
|
1028
|
+
olympe.G.H.ui.P.Qs.ua=[olympe.N.P.Ol];olympe.G.H.ui.P.Rs=class extends olympe.G.H.ui.P.yh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'feColorMatrix'));this.setAttribute('type','matrix')}lf(a){this.setAttribute('in',this.Yp(a))}dx(a){a instanceof olympe.oa.Ln&&(a=a.getStringValue());this.setAttribute('values',a)}};olympe.G.H.ui.P.Rs.prototype.setMatrix=olympe.G.H.ui.P.Rs.prototype.dx;olympe.G.H.ui.P.Rs.prototype.setInput=olympe.G.H.ui.P.Rs.prototype.lf;olympe.host.$c.register(olympe.host.qa.nb.AK,olympe.G.H.ui.P.Rs);
|
|
1029
|
+
olympe.G.H.ui.P.Rs.ua=[olympe.N.P.Rq];olympe.G.H.ui.P.jp=class extends olympe.G.H.ui.P.yh{constructor(a,b){const c=document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'feBlend');super(a,b,c);this.F=c;this.O=document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'feComposite');this.mode='normal';this.ka=this.ga=null}lf(a){this.setAttribute('in',this.ga=this.Yp(a))}ax(a){this.setAttribute('in2',this.ka=this.Yp(a))}ex(a){let b;switch(a){case olympe.ui.fa.Xo.bP:a='darken';b=this.F;break;case olympe.ui.fa.Xo.iR:a='lighten';b=this.F;break;case olympe.ui.fa.Xo.AR:a=
|
|
1030
1030
|
'multiply';b=this.F;break;case olympe.ui.fa.Xo.oS:a='screen';b=this.F;break;case olympe.ui.fa.Xo.yS:a='in';b=this.O;break;case olympe.ui.fa.Xo.zS:a='out';b=this.O;break;case olympe.ui.fa.Xo.xS:a='atop';b=this.O;break;case olympe.ui.fa.Xo.eT:a='xor';b=this.O;break;default:a='normal',b=this.F}b!==this.C&&(this.getParent()instanceof olympe.G.H.ui.P.HTMLFilter&&this.getParent().MN(this.C,b),this.C=b,this.ga&&this.setAttribute('in',this.ga),this.ka&&this.setAttribute('in2',this.ka));this.setAttribute(this.C===
|
|
1031
|
-
this.F?'mode':'operator',this.mode=a)}};olympe.G.H.ui.P.jp.prototype.setMode=olympe.G.H.ui.P.jp.prototype.ex;olympe.G.H.ui.P.jp.prototype.setInput2=olympe.G.H.ui.P.jp.prototype.ax;olympe.G.H.ui.P.jp.prototype.setInput=olympe.G.H.ui.P.jp.prototype.lf;olympe.host.$c.register(olympe.host.qa.nb.BK,olympe.G.H.ui.P.jp);olympe.G.H.ui.P.jp.ua=[olympe.N.P.An];olympe.G.H.ui.P.Rl=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1032
|
-
this.ke()}};olympe.G.H.ui.P.Rl.prototype.setRadius=olympe.G.H.ui.P.Rl.prototype.Jh;olympe.G.H.ui.P.Rl.prototype.setRy=olympe.G.H.ui.P.Rl.prototype.BD;olympe.G.H.ui.P.Rl.prototype.setRx=olympe.G.H.ui.P.Rl.prototype.AD;olympe.G.H.ui.P.Rl.prototype.refreshBox=olympe.G.H.ui.P.Rl.prototype.ke;olympe.host.$c.register(olympe.host.qa.nb.xK,olympe.G.H.ui.P.Rl);olympe.G.H.ui.P.Rl.ua=[olympe.N.P.Cn];olympe.G.H.ui.P.kp=class extends olympe.G.H.ui.P.yh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1033
|
-
olympe.G.H.ui.P.kp.prototype.setFloodOpacity=olympe.G.H.ui.P.kp.prototype.wD;olympe.G.H.ui.P.kp.prototype.setFloodColor=olympe.G.H.ui.P.kp.prototype.uD;olympe.host.$c.register(olympe.host.qa.nb.CK,olympe.G.H.ui.P.kp);olympe.G.H.ui.P.kp.ua=[olympe.N.P.Dn];olympe.G.H.ui.P.En=class extends olympe.G.H.ui.P
|
|
1034
|
-
a)}};olympe.G.H.ui.P.En.prototype.removeStop=olympe.G.H.ui.P.En.prototype.fu;olympe.G.H.ui.P.En.prototype.addStop=olympe.G.H.ui.P.En.prototype.Nv;olympe.G.H.ui.P.En.prototype.setAbsolute=olympe.G.H.ui.P.En.prototype.Gi;olympe.G.H.ui.P.En.ua=[olympe.N.P.xh];olympe.G.H.ui.P.Sl=class extends olympe.G.H.ui.P
|
|
1035
|
-
olympe.G.H.ui.P.Sl.prototype.setStopColorAndOpacity=olympe.G.H.ui.P.Sl.prototype.kA;olympe.G.H.ui.P.Sl.prototype.setStopOpacity=olympe.G.H.ui.P.Sl.prototype.ED;olympe.G.H.ui.P.Sl.prototype.setStopColor=olympe.G.H.ui.P.Sl.prototype.DD;olympe.G.H.ui.P.Sl.prototype.setOffset=olympe.G.H.ui.P.Sl.prototype.fx;olympe.host.$c.register(olympe.host.qa.nb.GK,olympe.G.H.ui.P.Sl);olympe.G.H.ui.P.Sl.ua=[olympe.N.P.Kk];olympe.G.H.ui.P.mp=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1031
|
+
this.F?'mode':'operator',this.mode=a)}};olympe.G.H.ui.P.jp.prototype.setMode=olympe.G.H.ui.P.jp.prototype.ex;olympe.G.H.ui.P.jp.prototype.setInput2=olympe.G.H.ui.P.jp.prototype.ax;olympe.G.H.ui.P.jp.prototype.setInput=olympe.G.H.ui.P.jp.prototype.lf;olympe.host.$c.register(olympe.host.qa.nb.BK,olympe.G.H.ui.P.jp);olympe.G.H.ui.P.jp.ua=[olympe.N.P.An];olympe.G.H.ui.P.Rl=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'ellipse'));this.O=this.F=1}OC(){const a=this.Cm();return Fa(this.na()+a/2,this.ra()+a/2)}ke(){olympe.G.H.ui.P.Ma.prototype.ke.call(this);const a=this.Cm();this.setAttribute('rx',this.F-a/2);this.setAttribute('ry',this.O-a/2)}mw(){return Math.min(this.F,this.O)}AD(a){this.F=Math.abs(a);this.ke()}BD(a){this.O=Math.abs(a);this.ke()}Jh(a,b){this.F=Math.abs(a);this.O=Math.abs(b);
|
|
1032
|
+
this.ke()}};olympe.G.H.ui.P.Rl.prototype.setRadius=olympe.G.H.ui.P.Rl.prototype.Jh;olympe.G.H.ui.P.Rl.prototype.setRy=olympe.G.H.ui.P.Rl.prototype.BD;olympe.G.H.ui.P.Rl.prototype.setRx=olympe.G.H.ui.P.Rl.prototype.AD;olympe.G.H.ui.P.Rl.prototype.refreshBox=olympe.G.H.ui.P.Rl.prototype.ke;olympe.host.$c.register(olympe.host.qa.nb.xK,olympe.G.H.ui.P.Rl);olympe.G.H.ui.P.Rl.ua=[olympe.N.P.Cn];olympe.G.H.ui.P.kp=class extends olympe.G.H.ui.P.yh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'feFlood'));this.F=this.O=null}uD(a){this.O=a;this.setAttribute('flood-color',this.O)}wD(a){this.F=a;this.setAttribute('flood-opacity',this.F)}vD(a,b,c,d){this.setAttribute('flood-color',this.O='rgb('+a+','+b+','+c+')');this.F=d;this.setAttribute('flood-opacity',this.F)}};olympe.G.H.ui.P.kp.prototype.setFloodColorAndOpacity=olympe.G.H.ui.P.kp.prototype.vD;
|
|
1033
|
+
olympe.G.H.ui.P.kp.prototype.setFloodOpacity=olympe.G.H.ui.P.kp.prototype.wD;olympe.G.H.ui.P.kp.prototype.setFloodColor=olympe.G.H.ui.P.kp.prototype.uD;olympe.host.$c.register(olympe.host.qa.nb.CK,olympe.G.H.ui.P.kp);olympe.G.H.ui.P.kp.ua=[olympe.N.P.Dn];olympe.G.H.ui.P.En=class extends olympe.G.H.ui.P.af{constructor(a,b,c){super(a,b,c);this.F=new Map}Gi(a){this.setAttribute('gradientUnits',a?'userSpaceOnUse':'objectBoundingBox')}Nv(a,b){b||(b=olympe.G.H.ui.P.jd.wg);this.F.has(b)&&this.fu(b);this.F.set(b,a);this.ya().appendChild(a.ya())}fu(a){a||(a=olympe.G.H.ui.P.jd.wg);const b=this.F.get(a);if(void 0!==b)try{this.ya().removeChild(b.ya())}catch(c){this.Eb().debug('Not able to remove a child, has probably already been removed')}finally{this.F.delete(a)}else this.Eb().warn('Trying to remove a non existing child: '+
|
|
1034
|
+
a)}};olympe.G.H.ui.P.En.prototype.removeStop=olympe.G.H.ui.P.En.prototype.fu;olympe.G.H.ui.P.En.prototype.addStop=olympe.G.H.ui.P.En.prototype.Nv;olympe.G.H.ui.P.En.prototype.setAbsolute=olympe.G.H.ui.P.En.prototype.Gi;olympe.G.H.ui.P.En.ua=[olympe.N.P.xh];olympe.G.H.ui.P.Sl=class extends olympe.G.H.ui.P.af{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'stop'));this.F=this.O=this.offset=null}fx(a){this.setAttribute('offset',this.offset=a)}DD(a){this.O=a;this.setAttribute('stop-color',this.O)}ED(a){this.F=a;this.setAttribute('stop-opacity',this.F)}kA(a,b,c,d){this.setAttribute('stop-color',this.O='rgb('+a+','+b+','+c+')');this.F=d;this.setAttribute('stop-opacity',this.F)}};
|
|
1035
|
+
olympe.G.H.ui.P.Sl.prototype.setStopColorAndOpacity=olympe.G.H.ui.P.Sl.prototype.kA;olympe.G.H.ui.P.Sl.prototype.setStopOpacity=olympe.G.H.ui.P.Sl.prototype.ED;olympe.G.H.ui.P.Sl.prototype.setStopColor=olympe.G.H.ui.P.Sl.prototype.DD;olympe.G.H.ui.P.Sl.prototype.setOffset=olympe.G.H.ui.P.Sl.prototype.fx;olympe.host.$c.register(olympe.host.qa.nb.GK,olympe.G.H.ui.P.Sl);olympe.G.H.ui.P.Sl.ua=[olympe.N.P.Kk];olympe.G.H.ui.P.mp=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'g'));this.children=new Map}appendChild(a,b){b||(b=olympe.G.H.ui.P.jd.wg);this.children.has(b)&&this.removeChild(b);this.children.set(b,a);this.ya().appendChild(a.ya());a.setAttribute('name_As_A_Child',b);a.mf(this);a.Sf(this.co())}removeChild(a){a||(a=olympe.G.H.ui.P.jd.wg);const b=this.children.get(a);if(void 0!==b)try{this.ya().removeChild(b.ya()),b.mf(null),b.Sf(null)}catch(c){this.Y.debug('Not able to remove a child, has probably already been removed')}finally{this.children.delete(a)}else this.Y.warn('Trying to remove a non existing child: '+
|
|
1036
1036
|
a)}Sf(a){olympe.G.H.ui.P.Ma.prototype.Sf.call(this,a);for(const b of this.children.values())b.Sf(a)}};olympe.G.H.ui.P.mp.prototype.setContainer=olympe.G.H.ui.P.mp.prototype.Sf;olympe.G.H.ui.P.mp.prototype.removeChild=olympe.G.H.ui.P.mp.prototype.removeChild;olympe.G.H.ui.P.mp.prototype.appendChild=olympe.G.H.ui.P.mp.prototype.appendChild;olympe.host.$c.register(olympe.host.qa.nb.HK,olympe.G.H.ui.P.mp);olympe.G.H.ui.P.mp.ua=[olympe.N.P.Yq];function Re(a){let b;switch(a.F){case olympe.ui.fa.Gx.Qq:b=Se(a)+' meet';break;case olympe.ui.fa.Gx.Cs:b=Se(a)+' slice';break;default:b='none'}a.setAttribute('preserveAspectRatio',b)}function Se(a){let b='';switch(a.O){case olympe.ui.fa.Hb.Kf:b+='xMin';break;case olympe.ui.fa.Hb.Kg:b+='xMax';break;default:b+='xMid'}switch(a.ga){case olympe.ui.fa.tc.Yg:b+='YMin';break;case olympe.ui.fa.tc.uh:b+='YMax';break;default:b+='YMid'}return b}
|
|
1037
|
-
olympe.G.H.ui.P.ck=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1037
|
+
olympe.G.H.ui.P.ck=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'image'));this.ga=this.O=this.F=this.source=''}ke(){super.ke();this.setAttribute('width',this.td());this.setAttribute('height',this.ve())}ge(a){this.setAttribute('xlink:href',this.source=a,olympe.G.H.ui.P.jd.We.sA)}wl(a){this.F=a;Re(this)}Qo(a){this.O=a;Re(this)}Al(a){this.ga=a;Re(this)}};olympe.G.H.ui.P.ck.prototype.setVerticalAlignment=olympe.G.H.ui.P.ck.prototype.Al;
|
|
1038
1038
|
olympe.G.H.ui.P.ck.prototype.setHorizontalAlignment=olympe.G.H.ui.P.ck.prototype.Qo;olympe.G.H.ui.P.ck.prototype.setAspectRatioMode=olympe.G.H.ui.P.ck.prototype.wl;olympe.G.H.ui.P.ck.prototype.setSource=olympe.G.H.ui.P.ck.prototype.ge;olympe.G.H.ui.P.ck.prototype.refreshBox=olympe.G.H.ui.P.ck.prototype.ke;olympe.host.$c.register(olympe.host.qa.nb.IK,olympe.G.H.ui.P.ck);olympe.G.H.ui.P.ck.ua=[olympe.N.P.Image];function Te(a){let b;switch(a.F){case olympe.ui.fa.Gx.Qq:b=Ue(a)+' meet';break;case olympe.ui.fa.Gx.Cs:b=Ue(a)+' slice';break;default:b='none'}a.setAttribute('preserveAspectRatio',b)}function Ue(a){let b='';switch(a.O){case olympe.ui.fa.Hb.Kf:b+='xMin';break;case olympe.ui.fa.Hb.Kg:b+='xMax';break;default:b+='xMid'}switch(a.ga){case olympe.ui.fa.tc.Yg:b+='YMin';break;case olympe.ui.fa.tc.uh:b+='YMax';break;default:b+='YMid'}return b}
|
|
1039
|
-
olympe.G.H.ui.P.Tl=class extends olympe.G.H.ui.P.yh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1040
|
-
olympe.G.H.ui.P.Tl.prototype.setAspectRatioMode=olympe.G.H.ui.P.Tl.prototype.wl;olympe.G.H.ui.P.Tl.prototype.setSource=olympe.G.H.ui.P.Tl.prototype.ge;olympe.host.$c.register(olympe.host.qa.nb.DK,olympe.G.H.ui.P.Tl);olympe.G.H.ui.P.Tl.ua=[olympe.N.P.Mk];olympe.G.H.ui.P.Mi=class extends olympe.G.H.ui.P.En{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1041
|
-
olympe.G.H.ui.P.Mi.prototype.setY2=olympe.G.H.ui.P.Mi.prototype.OD;olympe.G.H.ui.P.Mi.prototype.setX2=olympe.G.H.ui.P.Mi.prototype.ID;olympe.G.H.ui.P.Mi.prototype.setPoint=olympe.G.H.ui.P.Mi.prototype.hx;olympe.G.H.ui.P.Mi.prototype.setY1=olympe.G.H.ui.P.Mi.prototype.ND;olympe.G.H.ui.P.Mi.prototype.setX1=olympe.G.H.ui.P.Mi.prototype.HD;olympe.host.$c.register(olympe.host.qa.nb.JK,olympe.G.H.ui.P.Mi);olympe.G.H.ui.P.Mi.ua=[olympe.N.P.pi];olympe.G.H.ui.P.Ul=class extends olympe.G.H.ui.P.pe{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1039
|
+
olympe.G.H.ui.P.Tl=class extends olympe.G.H.ui.P.yh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'feImage'));this.ga=this.O=this.F=this.source=''}ge(a){this.source=a;this.setAttribute('xlink:href',this.source,olympe.G.H.ui.P.jd.We.sA)}wl(a){this.F=a;Te(this)}Qo(a){this.O=a;Te(this)}Al(a){this.ga=a;Te(this)}};olympe.G.H.ui.P.Tl.prototype.setVerticalAlignment=olympe.G.H.ui.P.Tl.prototype.Al;olympe.G.H.ui.P.Tl.prototype.setHorizontalAlignment=olympe.G.H.ui.P.Tl.prototype.Qo;
|
|
1040
|
+
olympe.G.H.ui.P.Tl.prototype.setAspectRatioMode=olympe.G.H.ui.P.Tl.prototype.wl;olympe.G.H.ui.P.Tl.prototype.setSource=olympe.G.H.ui.P.Tl.prototype.ge;olympe.host.$c.register(olympe.host.qa.nb.DK,olympe.G.H.ui.P.Tl);olympe.G.H.ui.P.Tl.ua=[olympe.N.P.Mk];olympe.G.H.ui.P.Mi=class extends olympe.G.H.ui.P.En{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'linearGradient'))}HD(a){this.setAttribute('x1',a)}ND(a){this.setAttribute('y1',a)}hx(a,b){this.setAttribute('x1',a);this.setAttribute('y1',b)}ID(a){this.setAttribute('x2',a)}OD(a){this.setAttribute('y2',a)}ix(a,b){this.setAttribute('x2',a);this.setAttribute('y2',b)}};olympe.G.H.ui.P.Mi.prototype.setPoint2=olympe.G.H.ui.P.Mi.prototype.ix;
|
|
1041
|
+
olympe.G.H.ui.P.Mi.prototype.setY2=olympe.G.H.ui.P.Mi.prototype.OD;olympe.G.H.ui.P.Mi.prototype.setX2=olympe.G.H.ui.P.Mi.prototype.ID;olympe.G.H.ui.P.Mi.prototype.setPoint=olympe.G.H.ui.P.Mi.prototype.hx;olympe.G.H.ui.P.Mi.prototype.setY1=olympe.G.H.ui.P.Mi.prototype.ND;olympe.G.H.ui.P.Mi.prototype.setX1=olympe.G.H.ui.P.Mi.prototype.HD;olympe.host.$c.register(olympe.host.qa.nb.JK,olympe.G.H.ui.P.Mi);olympe.G.H.ui.P.Mi.ua=[olympe.N.P.pi];olympe.G.H.ui.P.Ul=class extends olympe.G.H.ui.P.pe{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'mask'));this.children=new Map}appendChild(a,b){b||(b=olympe.G.H.ui.P.jd.wg);this.children.has(b)&&this.removeChild(b);this.children.set(b,a);this.ya().appendChild(a.ya());a.mf(this);a.setAttribute('name_As_A_Child',b);a.Sf(this.co())}removeChild(a){a||(a=olympe.G.H.ui.P.jd.wg);let b=this.children.get(a);if(void 0!==b)try{this.ya().removeChild(b.ya()),b.mf(null),b.Sf(null)}catch(c){this.Y.debug('Not able to remove a child, has probably already been removed')}finally{this.children.delete(a)}else this.Y.warn('Trying to remove a non existing child: '+
|
|
1042
1042
|
a)}Gi(a){this.setAttribute('maskUnits',a?'userSpaceOnUse':'objectBoundingBox')}Sf(a){olympe.G.H.ui.P.Ma.prototype.Sf.call(this,a);for(const b of this.children.values())b.Sf(a)}};olympe.G.H.ui.P.Ul.prototype.setContainer=olympe.G.H.ui.P.Ul.prototype.Sf;olympe.G.H.ui.P.Ul.prototype.setAbsolute=olympe.G.H.ui.P.Ul.prototype.Gi;olympe.G.H.ui.P.Ul.prototype.removeChild=olympe.G.H.ui.P.Ul.prototype.removeChild;olympe.G.H.ui.P.Ul.prototype.appendChild=olympe.G.H.ui.P.Ul.prototype.appendChild;
|
|
1043
|
-
olympe.host.$c.register(olympe.host.qa.nb.KK,olympe.G.H.ui.P.Ul);olympe.G.H.ui.P.Ul.ua=[olympe.N.P.Kn];olympe.G.H.ui.P.op=class extends olympe.G.H.ui.P.yh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1044
|
-
a)}lf(a,b){b||(b=olympe.G.H.ui.P.jd.wg);const c=this.children.get(b);c?c.setAttributeNS('','in',this.Yp(a)):this.Kv(a,b)}};olympe.G.H.ui.P.op.prototype.setInput=olympe.G.H.ui.P.op.prototype.lf;olympe.G.H.ui.P.op.prototype.removeInput=olympe.G.H.ui.P.op.prototype.du;olympe.G.H.ui.P.op.prototype.addInput=olympe.G.H.ui.P.op.prototype.Kv;olympe.host.$c.register(olympe.host.qa.nb.EK,olympe.G.H.ui.P.op);olympe.G.H.ui.P.op.ua=[olympe.N.P.Mn];olympe.G.H.ui.P.Vl=class extends olympe.G.H.ui.P.yh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1043
|
+
olympe.host.$c.register(olympe.host.qa.nb.KK,olympe.G.H.ui.P.Ul);olympe.G.H.ui.P.Ul.ua=[olympe.N.P.Kn];olympe.G.H.ui.P.op=class extends olympe.G.H.ui.P.yh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'feMerge'));this.children=new Map}Kv(a,b){b||(b=olympe.G.H.ui.P.jd.wg);this.children.has(b)&&this.du(b);const c=document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'feMergeNode');c.setAttributeNS('','in',this.Yp(a));this.children.set(b,c);this.ya().appendChild(c)}du(a){a||(a=olympe.G.H.ui.P.jd.wg);const b=this.children.get(a);if(b)try{this.ya().removeChild(b)}catch(c){this.Y.debug('Not able to remove a child, has probably already been removed')}finally{this.children.delete(a)}else this.Y.warn('Trying to remove a non existing child: '+
|
|
1044
|
+
a)}lf(a,b){b||(b=olympe.G.H.ui.P.jd.wg);const c=this.children.get(b);c?c.setAttributeNS('','in',this.Yp(a)):this.Kv(a,b)}};olympe.G.H.ui.P.op.prototype.setInput=olympe.G.H.ui.P.op.prototype.lf;olympe.G.H.ui.P.op.prototype.removeInput=olympe.G.H.ui.P.op.prototype.du;olympe.G.H.ui.P.op.prototype.addInput=olympe.G.H.ui.P.op.prototype.Kv;olympe.host.$c.register(olympe.host.qa.nb.EK,olympe.G.H.ui.P.op);olympe.G.H.ui.P.op.ua=[olympe.N.P.Mn];olympe.G.H.ui.P.Vl=class extends olympe.G.H.ui.P.yh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'feOffset'))}rD(a){this.setAttribute('dx',a)}sD(a){this.setAttribute('dy',a)}Ww(a,b){this.setAttribute('dx',a);this.setAttribute('dy',b)}lf(a){this.setAttribute('in',this.Yp(a))}};olympe.G.H.ui.P.Vl.prototype.setInput=olympe.G.H.ui.P.Vl.prototype.lf;olympe.G.H.ui.P.Vl.prototype.setDelta=olympe.G.H.ui.P.Vl.prototype.Ww;olympe.G.H.ui.P.Vl.prototype.setDeltaY=olympe.G.H.ui.P.Vl.prototype.sD;
|
|
1045
1045
|
olympe.G.H.ui.P.Vl.prototype.setDeltaX=olympe.G.H.ui.P.Vl.prototype.rD;olympe.host.$c.register(olympe.host.qa.nb.FK,olympe.G.H.ui.P.Vl);olympe.G.H.ui.P.Vl.ua=[olympe.N.P.Rk];function Ve(a){let b='',c=a.firstChild;const d=a.na(),e=a.ra();for(c instanceof olympe.G.H.ui.P.ev||(b='M'+d+','+e);c;)b+=' '+c.cj(d,e),c=c.Cg();b&&(b+=a.closePath?'Z':'');a.setAttribute('d',b)}
|
|
1046
|
-
olympe.G.H.ui.P.Cj=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1046
|
+
olympe.G.H.ui.P.Cj=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'path'));this.children=new Map;this.O=this.firstChild=null;this.closePath=!1;this.F=null}mw(){return Infinity}ke(){this.setAttribute('transform',Ka(this.oD));this.setAttribute('stroke-width',this.Cm());Ve(this)}Qw(a){this.closePath=a;Ve(this)}eh(a){switch(a){case olympe.ui.fa.kv.dt:this.F='round';break;case olympe.ui.fa.kv.MB:this.F='square';break;default:this.F='butt'}this.setAttribute('stroke-linecap',
|
|
1047
1047
|
this.F)}Lp(a,b){b||(b=olympe.G.H.ui.P.jd.wg);this.children.has(b)&&this.eu(b);this.children.set(b,a);this.firstChild||(this.firstChild=a);this.O&&this.O.Xj(a);this.O=a;a.mf(this);Ve(this)}eu(a){a||(a=olympe.G.H.ui.P.jd.wg);const b=this.children.get(a);if(void 0!==b)for(let c=this.firstChild,d=null;c;d=c,c=c.Cg()){if(c===b){d?d.Xj(c.Cg()):this.firstChild=c.Cg();b.Xj(null);b.mf(null);this.children.delete(a);break}}else this.Y.warn('Trying to remove a non existing child: '+a);Ve(this)}};
|
|
1048
|
-
olympe.G.H.ui.P.Cj.prototype.removeSegment=olympe.G.H.ui.P.Cj.prototype.eu;olympe.G.H.ui.P.Cj.prototype.addSegment=olympe.G.H.ui.P.Cj.prototype.Lp;olympe.G.H.ui.P.Cj.prototype.setLineCap=olympe.G.H.ui.P.Cj.prototype.eh;olympe.G.H.ui.P.Cj.prototype.setClosed=olympe.G.H.ui.P.Cj.prototype.Qw;olympe.G.H.ui.P.Cj.prototype.refreshBox=olympe.G.H.ui.P.Cj.prototype.ke;olympe.host.$c.register(olympe.host.qa.nb.LK,olympe.G.H.ui.P.Cj);olympe.G.H.ui.P.Cj.ua=[olympe.N.P.Sk];function We(a){a=a.getParent();a instanceof olympe.G.H.ui.P.Cj&&Ve(a)}olympe.G.H.ui.P.jh=class extends olympe.G.H.ui.P
|
|
1048
|
+
olympe.G.H.ui.P.Cj.prototype.removeSegment=olympe.G.H.ui.P.Cj.prototype.eu;olympe.G.H.ui.P.Cj.prototype.addSegment=olympe.G.H.ui.P.Cj.prototype.Lp;olympe.G.H.ui.P.Cj.prototype.setLineCap=olympe.G.H.ui.P.Cj.prototype.eh;olympe.G.H.ui.P.Cj.prototype.setClosed=olympe.G.H.ui.P.Cj.prototype.Qw;olympe.G.H.ui.P.Cj.prototype.refreshBox=olympe.G.H.ui.P.Cj.prototype.ke;olympe.host.$c.register(olympe.host.qa.nb.LK,olympe.G.H.ui.P.Cj);olympe.G.H.ui.P.Cj.ua=[olympe.N.P.Sk];function We(a){a=a.getParent();a instanceof olympe.G.H.ui.P.Cj&&Ve(a)}olympe.G.H.ui.P.jh=class extends olympe.G.H.ui.P.af{constructor(a,b){super(a,b,null);this.y=this.x=0;this.ga=null}cj(){}oe(a){this.x=a;We(this)}Ge(a){this.y=a;We(this)}setPosition(a,b){this.x=a;this.y=b;We(this)}Xj(a){this.ga=a}Cg(){return this.ga}};olympe.G.H.ui.P.jh.prototype.getNext=olympe.G.H.ui.P.jh.prototype.Cg;olympe.G.H.ui.P.jh.prototype.setNext=olympe.G.H.ui.P.jh.prototype.Xj;olympe.G.H.ui.P.jh.prototype.setPosition=olympe.G.H.ui.P.jh.prototype.setPosition;
|
|
1049
1049
|
olympe.G.H.ui.P.jh.prototype.setY=olympe.G.H.ui.P.jh.prototype.Ge;olympe.G.H.ui.P.jh.prototype.setX=olympe.G.H.ui.P.jh.prototype.oe;olympe.G.H.ui.P.jh.prototype.getCommandString=olympe.G.H.ui.P.jh.prototype.cj;olympe.G.H.ui.P.jh.ua=[olympe.N.P.Mf];olympe.G.H.ui.P.Ni=class extends olympe.G.H.ui.P.jh{constructor(a,b){super(a,b);this.$=this.R=this.O=0;this.T=this.F=!1}jx(a){this.O=a;We(this)}kx(a){this.R=a;We(this)}rx(a){this.$=a;We(this)}bx(a){this.F=a;We(this)}px(a){this.T=a;We(this)}cj(a,b){return'A'+this.O+','+this.R+','+this.$+','+(this.F?'1':'0')+','+(this.T?'1':'0')+','+(a+this.x)+','+(b+this.y)}};olympe.G.H.ui.P.Ni.prototype.getCommandString=olympe.G.H.ui.P.Ni.prototype.cj;olympe.G.H.ui.P.Ni.prototype.setSweepFlag=olympe.G.H.ui.P.Ni.prototype.px;
|
|
1050
1050
|
olympe.G.H.ui.P.Ni.prototype.setLargeArcSweepFlag=olympe.G.H.ui.P.Ni.prototype.bx;olympe.G.H.ui.P.Ni.prototype.setXAxisRotation=olympe.G.H.ui.P.Ni.prototype.rx;olympe.G.H.ui.P.Ni.prototype.setRY=olympe.G.H.ui.P.Ni.prototype.kx;olympe.G.H.ui.P.Ni.prototype.setRX=olympe.G.H.ui.P.Ni.prototype.jx;olympe.host.$c.register(olympe.host.qa.nb.MK,olympe.G.H.ui.P.Ni);olympe.G.H.ui.P.Ni.ua=[olympe.N.P.Vi];olympe.G.H.ui.P.Rh=class extends olympe.G.H.ui.P.jh{constructor(a,b){super(a,b);this.T=this.O=this.R=this.F=0}KD(a){this.F=a;We(this)}QD(a){this.R=a;We(this)}Tw(a,b){this.F=a;this.R=b;We(this)}LD(a){this.O=a;We(this)}RD(a){this.T=a;We(this)}Uw(a,b){this.O=a;this.T=b;We(this)}cj(a,b){return'C'+(a+this.F)+','+(b+this.R)+' '+(a+this.O)+','+(b+this.T)+' '+(a+this.x)+','+(b+this.y)}};olympe.G.H.ui.P.Rh.prototype.getCommandString=olympe.G.H.ui.P.Rh.prototype.cj;
|
|
1051
1051
|
olympe.G.H.ui.P.Rh.prototype.setControl2=olympe.G.H.ui.P.Rh.prototype.Uw;olympe.G.H.ui.P.Rh.prototype.setYControl2=olympe.G.H.ui.P.Rh.prototype.RD;olympe.G.H.ui.P.Rh.prototype.setXControl2=olympe.G.H.ui.P.Rh.prototype.LD;olympe.G.H.ui.P.Rh.prototype.setControl1=olympe.G.H.ui.P.Rh.prototype.Tw;olympe.G.H.ui.P.Rh.prototype.setYControl1=olympe.G.H.ui.P.Rh.prototype.QD;olympe.G.H.ui.P.Rh.prototype.setXControl1=olympe.G.H.ui.P.Rh.prototype.KD;olympe.host.$c.register(olympe.host.qa.nb.NK,olympe.G.H.ui.P.Rh);
|
|
1052
1052
|
olympe.G.H.ui.P.Rh.ua=[olympe.N.P.si];olympe.G.H.ui.P.fy=class extends olympe.G.H.ui.P.jh{constructor(a,b){super(a,b);this.F='L'}qd(a){this.F=a?'M':'L'}cj(a,b){return this.F+(a+this.x)+','+(b+this.y)}};olympe.G.H.ui.P.fy.prototype.getCommandString=olympe.G.H.ui.P.fy.prototype.cj;olympe.host.$c.register(olympe.host.qa.nb.OK,olympe.G.H.ui.P.fy);olympe.G.H.ui.P.fy.ua=[olympe.N.P.xy];olympe.G.H.ui.P.ev=class extends olympe.G.H.ui.P.jh{constructor(a,b){super(a,b)}cj(a,b){return'M'+(a+this.x)+','+(b+this.y)}};olympe.G.H.ui.P.ev.prototype.getCommandString=olympe.G.H.ui.P.ev.prototype.cj;olympe.host.$c.register(olympe.host.qa.nb.PK,olympe.G.H.ui.P.ev);olympe.G.H.ui.P.ev.ua=[olympe.N.P.yy];olympe.G.H.ui.P.Wl=class extends olympe.G.H.ui.P.jh{constructor(a,b){super(a,b);this.O=this.F=0}JD(a){this.F=a;We(this)}PD(a){this.O=a;We(this)}Sw(a,b){this.F=a;this.O=b;We(this)}cj(a,b){return'S'+(a+this.F)+','+(b+this.O)+' '+(a+this.x)+','+(b+this.y)}};olympe.G.H.ui.P.Wl.prototype.getCommandString=olympe.G.H.ui.P.Wl.prototype.cj;olympe.G.H.ui.P.Wl.prototype.setControl=olympe.G.H.ui.P.Wl.prototype.Sw;olympe.G.H.ui.P.Wl.prototype.setYControl=olympe.G.H.ui.P.Wl.prototype.PD;
|
|
1053
|
-
olympe.G.H.ui.P.Wl.prototype.setXControl=olympe.G.H.ui.P.Wl.prototype.JD;olympe.host.$c.register(olympe.host.qa.nb.QK,olympe.G.H.ui.P.Wl);olympe.G.H.ui.P.Wl.ua=[olympe.N.P.Nn];olympe.G.H.ui.P.pp=class extends olympe.G.H.ui.P.En{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1054
|
-
olympe.host.$c.register(olympe.host.qa.nb.RK,olympe.G.H.ui.P.pp);olympe.G.H.ui.P.pp.ua=[olympe.N.P.Pn];olympe.G.H.ui.P.Ts=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1053
|
+
olympe.G.H.ui.P.Wl.prototype.setXControl=olympe.G.H.ui.P.Wl.prototype.JD;olympe.host.$c.register(olympe.host.qa.nb.QK,olympe.G.H.ui.P.Wl);olympe.G.H.ui.P.Wl.ua=[olympe.N.P.Nn];olympe.G.H.ui.P.pp=class extends olympe.G.H.ui.P.En{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'radialGradient'))}Jh(a){this.setAttribute('r',a)}Ow(a,b){this.setAttribute('cx',a);this.setAttribute('cy',b)}$w(a,b){this.setAttribute('fx',a);this.setAttribute('fy',b)}};olympe.G.H.ui.P.pp.prototype.setFocalPoint=olympe.G.H.ui.P.pp.prototype.$w;olympe.G.H.ui.P.pp.prototype.setCenter=olympe.G.H.ui.P.pp.prototype.Ow;olympe.G.H.ui.P.pp.prototype.setRadius=olympe.G.H.ui.P.pp.prototype.Jh;
|
|
1054
|
+
olympe.host.$c.register(olympe.host.qa.nb.RK,olympe.G.H.ui.P.pp);olympe.G.H.ui.P.pp.ua=[olympe.N.P.Pn];olympe.G.H.ui.P.Ts=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'rect'))}OC(){const a=this.Cm();return Fa(this.na()+a/2,this.ra()+a/2)}mw(){return Math.min(this.td()/2,this.ve()/2)}ke(){olympe.G.H.ui.P.Ma.prototype.ke.call(this);const a=this.Cm(),b=this.td(),c=this.ve();this.setAttribute('height',c-a);this.setAttribute('width',b-a);this.filter&&this.filter.Vw(-a/2,-a/2,b,c)}kc(a){this.setAttribute('rx',a);this.setAttribute('ry',a)}};
|
|
1055
1055
|
olympe.G.H.ui.P.Ts.prototype.setCornerRadius=olympe.G.H.ui.P.Ts.prototype.kc;olympe.G.H.ui.P.Ts.prototype.refreshBox=olympe.G.H.ui.P.Ts.prototype.ke;olympe.host.$c.register(olympe.host.qa.nb.SK,olympe.G.H.ui.P.Ts);olympe.G.H.ui.P.Ts.ua=[olympe.N.P.se];function Xe(a){if(null!==a.ga&&a.co()){const b=a.ya().getBBox();a.ga(b.width,b.height)}}
|
|
1056
|
-
olympe.G.H.ui.P.Xg=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1056
|
+
olympe.G.H.ui.P.Xg=class extends olympe.G.H.ui.P.Ma{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'text'));this.ta=this.ka=this.text=this.fontSize=null;this.O='inherit';this.ga=null}zb(a){this.fontSize=a;this.setAttribute('font-size',this.fontSize);Xe(this)}Rb(a){this.text=a;this.ya().textContent=this.text;this.setAttribute('text',this.text);Xe(this)}yb(a){this.ka=a;this.setAttribute('font-family',this.ka);Xe(this)}Db(a){this.ta=a;this.setAttribute('font-weight',this.ta);
|
|
1057
1057
|
Xe(this)}ks(a){switch(a){case olympe.ui.fa.Hb.Vb:this.O='middle';break;case olympe.ui.fa.Hb.Kg:this.O='end';break;default:this.O='left'}this.setAttribute('text-anchor',this.O)}Sf(a){olympe.G.H.ui.P.Ma.prototype.Sf.call(this,a);Xe(this)}Lo(a){this.ga=a;Xe(this)}Mq(){this.ga=null}};olympe.G.H.ui.P.Xg.prototype.unregisterTextSize=olympe.G.H.ui.P.Xg.prototype.Mq;olympe.G.H.ui.P.Xg.prototype.registerTextSize=olympe.G.H.ui.P.Xg.prototype.Lo;olympe.G.H.ui.P.Xg.prototype.setContainer=olympe.G.H.ui.P.Xg.prototype.Sf;
|
|
1058
|
-
olympe.G.H.ui.P.Xg.prototype.setHorizontalAlign=olympe.G.H.ui.P.Xg.prototype.ks;olympe.G.H.ui.P.Xg.prototype.setFontWeight=olympe.G.H.ui.P.Xg.prototype.Db;olympe.G.H.ui.P.Xg.prototype.setFontFamily=olympe.G.H.ui.P.Xg.prototype.yb;olympe.G.H.ui.P.Xg.prototype.setText=olympe.G.H.ui.P.Xg.prototype.Rb;olympe.G.H.ui.P.Xg.prototype.setFontSize=olympe.G.H.ui.P.Xg.prototype.zb;olympe.host.$c.register(olympe.host.qa.nb.UK,olympe.G.H.ui.P.Xg);olympe.G.H.ui.P.Xg.ua=[olympe.N.P.Text];olympe.G.H.ui.P.rp=class extends olympe.G.H.ui.P.Xg{constructor(a,b){super(a,b);this.path=null;this.F=document.createElementNS(olympe.G.H.ui.P.jd.
|
|
1058
|
+
olympe.G.H.ui.P.Xg.prototype.setHorizontalAlign=olympe.G.H.ui.P.Xg.prototype.ks;olympe.G.H.ui.P.Xg.prototype.setFontWeight=olympe.G.H.ui.P.Xg.prototype.Db;olympe.G.H.ui.P.Xg.prototype.setFontFamily=olympe.G.H.ui.P.Xg.prototype.yb;olympe.G.H.ui.P.Xg.prototype.setText=olympe.G.H.ui.P.Xg.prototype.Rb;olympe.G.H.ui.P.Xg.prototype.setFontSize=olympe.G.H.ui.P.Xg.prototype.zb;olympe.host.$c.register(olympe.host.qa.nb.UK,olympe.G.H.ui.P.Xg);olympe.G.H.ui.P.Xg.ua=[olympe.N.P.Text];olympe.G.H.ui.P.rp=class extends olympe.G.H.ui.P.Xg{constructor(a,b){super(a,b);this.path=null;this.F=document.createElementNS(olympe.G.H.ui.P.jd.We.Tf,'textPath');this.ya().appendChild(this.F)}os(a){this.path=a;this.F.setAttributeNS(olympe.G.H.ui.P.jd.We.sA,'xlink:href','#'+this.path.xa());a=this.sk();const b=this.path.ya();a&&b.parentNode!==a&&a.appendChild(b)}Rb(a){let b;for(;b=this.F.firstChild;)this.F.removeChild(b);this.F.appendChild(document.createTextNode(a))}yr(){olympe.G.H.ui.P.Ma.prototype.yr.call(this);
|
|
1059
1059
|
if(this.path){const a=this.sk();a&&a.appendChild(this.path.ya())}}};olympe.G.H.ui.P.rp.prototype.appendDefs=olympe.G.H.ui.P.rp.prototype.yr;olympe.G.H.ui.P.rp.prototype.setText=olympe.G.H.ui.P.rp.prototype.Rb;olympe.G.H.ui.P.rp.prototype.setPath=olympe.G.H.ui.P.rp.prototype.os;olympe.host.$c.register(olympe.host.qa.nb.VK,olympe.G.H.ui.P.rp);olympe.G.H.ui.P.rp.ua=[olympe.N.P.Dv];olympe.G.H.Ee={};olympe.G.H.Ee.pG=class{constructor(a){this.F={};this.Y=a}C(a){void 0===this.F[a]&&(this.F[a]=new olympe.G.H.Ee.up(a,this.Y));return Ye(this.F[a])}};olympe.G.H.Ee.pG.ua=[olympe.Ee.fR];const Ze=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB;function Ye(a){if(a.O)return a;a.O=!0;a.C=[];const b=Ze.open('Olympe_'+a.name);b.onerror=c=>{a.Y.error('IndexedDBKVStore: '+c.target.errorCode)};b.onblocked=()=>{a.Y.error('IndexedDBKVStore: database blocked')};b.onupgradeneeded=()=>{const c=b.result;c.objectStoreNames.contains('main')||c.createObjectStore('main')};b.onsuccess=()=>{a.db=b.result;$e(a)};return a}
|
|
1060
1060
|
function $e(a){a.F||(a.C&&0<a.C.length?a.C.shift()():a.R&&af(a))}function af(a){a.db.close();a.db=null;a.C=null;a.O=!1;a.R=!1}function bf(a,b){a.F=!0;b=a.db.transaction('main',b);b.oncomplete=()=>{a.F=!1;$e(a)};return b.objectStore('main')}
|
|
1061
1061
|
olympe.G.H.Ee.up=class{constructor(a,b){this.name=a;this.Y=b;this.C=null;this.F=this.R=this.O=!1;this.db=null}close(){this.O&&!this.R&&(this.R=!0,null===this.db||null!==this.C||this.F||af(this))}get(a,b){this.O||Ye(this);if(null===this.db||this.F)this.C.push(()=>this.get(a,b));else{var c=bf(this,olympe.G.H.Ee.up.C.READ_ONLY).get(a);c.onsuccess=()=>{b(c.result,a)}}}set(a,b,c){this.O||Ye(this);if(null===this.db||this.F)this.C.push(()=>this.set(a,b,c));else{var d=bf(this,olympe.G.H.Ee.up.C.READ_WRITE).put(b,
|
|
@@ -1066,27 +1066,27 @@ localStorage.key(d);if(e.startsWith(`${a}/`)){const f=localStorage.getItem(e),g=
|
|
|
1066
1066
|
olympe.G.H.storage.Storage.ua=[olympe.Ee.Storage];olympe.ma.Be(function(a){ua(a,olympe.Ee.da.Av,olympe.G.H.storage.Storage,olympe.host.da.Ob)},'olympe.native.html.storage');olympe.iq={};olympe.iq.za={VERSION:'version.version',LO:'version.branch',Zo:'version.commit',NS:'version.tag',CF:'version.olympe-framework',MO:'version.build'};olympe.ma.Be(function(a){C(a,olympe.iq.za.VERSION,'');C(a,olympe.iq.za.LO,'');C(a,olympe.iq.za.Zo,'');C(a,olympe.iq.za.NS,'');C(a,olympe.iq.za.CF,'');C(a,olympe.iq.za.MO,'')},'olympe.main');let ef,ff,gf=!1;
|
|
1067
1067
|
const hf=(a,b)=>{const c=new XMLHttpRequest;c.onload=function(){try{let d;200===c.status&&c.responseText?d=JSON.parse(c.responseText):d=Object.create(null);b(d)}catch(d){console.error(d)}};c.open('GET',a);c.send()},kf=a=>{ef=a;jf()},lf=a=>{ff=a||void 0;jf()},mf=()=>{gf=!0;window.removeEventListener?window.removeEventListener('DOMContentLoaded',mf):window.detachEvent('load',mf);jf()},jf=()=>{if(void 0!==ef&&void 0!==ff&&gf){0===Object.keys(ff).length&&console.warn('No configuration found. Check presence of oConfig.json');0===
|
|
1068
1068
|
Object.keys(ef).length&&console.warn('No version found. Check presence of version.json');var a=olympe.oa.IN(location.href).parameters;a=new olympe.ma.$O(ff,ef,Object.assign({},a));var b=a.Eb();b.debug('Registering configurations...');b.C++;for(let e=0,f=la.length;e<f;e++){var c=a,d=la[e];ta(c.Y,'Registering configure callback '+(d.C?'for module '+d.C:''));c.F.push(d.F)}ra(b);b.debug('done registering');a=a.compile();d=a.Eb();d.debug('Running run callbacks of container...');for(let e=0,f=ma.length;e<
|
|
1069
|
-
f;e++){d.C++;b=ma[e];c=a;const g=oa(c,b.cw());c.Y.debug('Calling run callback '+(b.C?'for module '+b.C:''));b.F.apply(null,g);ra(d)}d.debug('done calling run callbacks. DI process completed!')}};window.XMLHttpRequest?(olympe.oa.xC('oConfig.json',hf,lf),hf('version.json',kf)):console.error(Error('XMLHttpRequest is not available: cannot load configuration'));window.addEventListener?window.addEventListener('DOMContentLoaded',mf):window.attachEvent('load',mf);olympe.dc={};olympe.dc.Nb={ORIGIN:'<',DESTINATION:'>'};q('olympe.dc.Direction',olympe.dc.Nb);olympe.dc.Wf={Uh:'ff022000000000000000',Es:'ff02200000000000000e',IE:'ff02200000000000000f'};olympe.dc.Jf={VERSION:'@v',Hj:'@s'};olympe.dc.Yl={
|
|
1070
|
-
olympe.dc.Ar=function(a,b=olympe.dc.Nb.DESTINATION,c=olympe.dc.CloudObject,d=olympe.dc.Nb.DESTINATION){const e=olympe.dc.Nb.DESTINATION;return b===olympe.dc.Nb.ORIGIN||b===e?new olympe.dc.ub.Relation(a,b):new olympe.dc.ub.Relation(a,d,b,c)};olympe.dc.UT=function(a){return a.
|
|
1071
|
-
function of(a,b,c){const d=olympe.dc.Gb(b);a.C.set(d,c);const e=olympe.oa.aj();qf(olympe.dc.fc(),d,f=>{f||(a.C.delete(d),rf(olympe.dc.fc(),d,e))},e)}function sf(a,b,c,d){olympe.j.Gw([b.BN(),b.ca(),b.sh(),b.Ot()],(e,f,g,k)=>{a.C.has(f)?c(a.C.get(f)):(e=new olympe.dc.bb(olympe.dc.bb.eb.Uu,{file:f,url:e.valueOf()?null:g,mimeType:k.valueOf(),Nm:a.O?l=>{of(a,f,l);c(l)}:c,xk:d},[olympe.dc.fc().source(f)||olympe.dc
|
|
1069
|
+
f;e++){d.C++;b=ma[e];c=a;const g=oa(c,b.cw());c.Y.debug('Calling run callback '+(b.C?'for module '+b.C:''));b.F.apply(null,g);ra(d)}d.debug('done calling run callbacks. DI process completed!')}};window.XMLHttpRequest?(olympe.oa.xC('oConfig.json',hf,lf),hf('version.json',kf)):console.error(Error('XMLHttpRequest is not available: cannot load configuration'));window.addEventListener?window.addEventListener('DOMContentLoaded',mf):window.attachEvent('load',mf);olympe.dc={};olympe.dc.Nb={ORIGIN:'<',DESTINATION:'>'};q('olympe.dc.Direction',olympe.dc.Nb);olympe.dc.Wf={Uh:'ff022000000000000000',Es:'ff02200000000000000e',IE:'ff02200000000000000f'};olympe.dc.Jf={VERSION:'@v',Hj:'@s'};olympe.dc.Yl={Te:'?'};olympe.dc.Ly={NI:'online',wB:'offline',YP:'invalidate'};olympe.dc.Xb={Jd:'self',nh:'server',WI:'peer',Te:'server'};olympe.dc.Gb=function(a){if('string'===typeof a)return a;let b=null;a=olympe.j.Ua(a);void 0!==a&&null!==a&&(a=a.valueOf(),'string'===typeof a?b=a:a.ca?b=a.ca():'function'===typeof a&&(b=olympe.dc.Ra.Ze(a)));return b||''};q('olympe.dc.instanceToTag',olympe.dc.Gb);olympe.dc.fc=function(){return olympe.dc.Ai().view};olympe.dc.register=function(a,b){olympe.dc.Ra.C(a,b)};olympe.dc.defineProperty=function(a){return new olympe.dc.ub.Property(a)};
|
|
1070
|
+
olympe.dc.Ar=function(a,b=olympe.dc.Nb.DESTINATION,c=olympe.dc.CloudObject,d=olympe.dc.Nb.DESTINATION){const e=olympe.dc.Nb.DESTINATION;return b===olympe.dc.Nb.ORIGIN||b===e?new olympe.dc.ub.Relation(a,b):new olympe.dc.ub.Relation(a,d,b,c)};olympe.dc.UT=function(a){return a.cf()};olympe.dc.ot=class{F(){}kg(){}ah(){}Kb(){}Pf(){}};olympe.dc.FB=class{rh(){}xa(){}ed(){}};function nf(a,b,c,d,e,f,g){d=new olympe.dc.bb(olympe.dc.bb.eb.Ev,{file:b,url:null,content:c,Nm:e?k=>{of(a,b,c);f(k)}:f,mimeType:d,xk:g||null},[olympe.dc.fc().source(b)||olympe.dc.Xb.nh]);a.F.send(d)}function pf(a,b,c,d,e,f){c=c instanceof olympe.j.lb?c.valueOf():c;'string'===typeof c?c=new Blob([La(c)],{type:d}):c instanceof ArrayBuffer&&(c=new Blob([c],{type:d}));nf(a,b,c,d,a.O,e,f)}
|
|
1071
|
+
function of(a,b,c){const d=olympe.dc.Gb(b);a.C.set(d,c);const e=olympe.oa.aj();qf(olympe.dc.fc(),d,f=>{f||(a.C.delete(d),rf(olympe.dc.fc(),d,e))},e)}function sf(a,b,c,d){olympe.j.Gw([b.BN(),b.ca(),b.sh(),b.Ot()],(e,f,g,k)=>{a.C.has(f)?c(a.C.get(f)):(e=new olympe.dc.bb(olympe.dc.bb.eb.Uu,{file:f,url:e.valueOf()?null:g,mimeType:k.valueOf(),Nm:a.O?l=>{of(a,f,l);c(l)}:c,xk:d},[olympe.dc.fc().source(f)||olympe.dc.Xb.nh]),a.F.send(e))})}
|
|
1072
1072
|
olympe.dc.AP=class{constructor(a,b,c,d,e){this.Y=a;this.F=c;this.O=e;this.C=new Map}};olympe.dc.kb=class{constructor(a){this.Y=a}};function tf(a,b){a.F=b;return a}function uf(a,b){a.Jj.unshift(b);return a}olympe.dc.bb=class{constructor(a,b,c){this.type=a;this.content=b;this.C=c;this.Jj=[];this.F=olympe.j.ib()}getContext(){return this.F}validate(a=null){this.Jj.forEach(b=>{b(a||null)})}toString(){const a=olympe.oa.sM(olympe.dc.bb.eb,this.type);return a?a:'UNKNOWN_MESSAGE'}};
|
|
1073
|
-
olympe.dc.bb.eb={bg:1,fr:2,Wq:10,dZ:11,CS:20,j_:21,k_:22,ES:23,Yu:24,Xu:25,eZ:26,MF:28,iJ:30,lJ:31,SZ:32,ht:40,Py:41,Ou:45,BA:46,Yx:47,Ev:50,Uu:51,Qx:52,VS:60,gS:61,DP:62,EP:63,TO:64,AA:65,cZ:90,Px:91,TA:92,NF:93,oI:94,uy:95,DS:96,QUERY_RESULT:97,kJ:98};olympe.dc.Ep=class{process(){}};olympe.dc.GB=class{constructor(...a){this.
|
|
1073
|
+
olympe.dc.bb.eb={bg:1,fr:2,Wq:10,dZ:11,CS:20,j_:21,k_:22,ES:23,Yu:24,Xu:25,eZ:26,MF:28,iJ:30,lJ:31,SZ:32,ht:40,Py:41,Ou:45,BA:46,Yx:47,Ev:50,Uu:51,Qx:52,VS:60,gS:61,DP:62,EP:63,TO:64,AA:65,cZ:90,Px:91,TA:92,NF:93,oI:94,uy:95,DS:96,QUERY_RESULT:97,kJ:98};olympe.dc.Ep=class{process(){}};olympe.dc.GB=class{constructor(...a){this.ef=a}process(a,b,c){const d=this.ef.length,e=(f,g,k)=>{g||f>=d?c(g,k):this.ef[f].process(a,k,e.bind(null,f+1))};e(0,null,b)}};olympe.dc.GB.ua=[olympe.dc.Ep];function vf(a){return olympe.dc.CloudObject.get(a.tag)}olympe.dc.gg=class{constructor(a){this.tag='string'===typeof a?a:a.ca()}ca(){return this.tag}toJSON(){return'{ "type": "reference", "tag": '+JSON.stringify(this.tag)+' }'}Lc(a){return a instanceof olympe.dc.gg&&this.tag===a.tag}static gf(a){let b;'string'===typeof a?b=JSON.parse(a):b=a;return new olympe.dc.gg(b.tag)}};olympe.dc.gg.ua=[olympe.dc.ek];olympe.dc.gg.prototype.toJSON.K=olympe.j.J.O;olympe.dc.gg.prototype.Lc.K=olympe.j.J.O;olympe.dc.Fp=class{send(){}C(){}ka(){}};const wf=olympe.dc.Nb.ORIGIN,xf=olympe.dc.Nb.DESTINATION,yf=new Map,zf=new Map,Af=new Map,Bf=new Map;function Cf(a,b){var c=olympe.dm.File;let d=c;'function'===typeof c&&(d=b.entry);c=[...(d.TD||[])];return olympe.dc.Ra.C(a,b,...c)}function Df(a,b){Bf.set(a,b);return a}function Ef(a){return(a=yf.get(a))&&a.F||olympe.dc.CloudObject}function Ff(a,b,c){const d=a+'@'+(b===xf?wf:xf);if(zf.has(d))throw Error(`Try to register the same relation (${b+a}) multiple times.`);zf.set(d,c)}
|
|
1074
1074
|
function Gf(a){a=a.ca()+'@'+a.qc();return zf.get(a)||olympe.dc.CloudObject}function X(a,b){b.NAME=a;Af.set(a,b)}function Y(a){return a.NAME||null}
|
|
1075
|
-
olympe.dc.Ra=class{constructor(){}static C(a,b,...c){if(yf.has(a))throw Error(`Tag: ${a} - overwriting already defined sync ${yf.get(a).F.name} with ${b.name}`);let d=null;const e=c.length;if(0<e){d=Array(e);for(let f=0;f<e;f++){let g=c[f];d[f]='string'===typeof g?new olympe.ma.te(g):g}}b=new olympe.dc.ub.Entry(a,b,d);yf.set(a,b);return b.F.entry=b}static
|
|
1075
|
+
olympe.dc.Ra=class{constructor(){}static C(a,b,...c){if(yf.has(a))throw Error(`Tag: ${a} - overwriting already defined sync ${yf.get(a).F.name} with ${b.name}`);let d=null;const e=c.length;if(0<e){d=Array(e);for(let f=0;f<e;f++){let g=c[f];d[f]='string'===typeof g?new olympe.ma.te(g):g}}b=new olympe.dc.ub.Entry(a,b,d);yf.set(a,b);return b.F.entry=b}static Ze(a){return(a=a.entry)&&a.ca()||null}};olympe.dc.ub={};function Hf(a,b){a.C=b}function Z(a,b){b=b.cf();Ff(b.ca(),b.qc(),a.F);return b}function If(a){a.O=!0;return a}
|
|
1076
1076
|
olympe.dc.ub.Entry=class{constructor(a,b,c){this.tag=a;this.F=b;this.TD=c||null;this.C=null;this.O=!1}ca(){return this.tag}instantiate(a,b){const c=this.F;if(this.xw()&&b.getParameter(olympe.dc.za.oF)){var d=olympe.dc.fc();d=`Trying to instantiate an abstract class ${d.name(this)} (${this.ca()}).`+` This may happen when the implementation of another class extending ${d.name(this)} has not been registered`;olympe.rb.Eb('dc').error(d)}return this.TD?(a=[void 0,a].concat(oa(b,this.TD)),new c(...a)):
|
|
1077
|
-
new c(void 0,a)}ea(a){return new olympe.dc.ub.Property(a)}Sb(a,b=olympe.dc.Nb.DESTINATION){Ff(a,b,this.F);return new olympe.dc.wa.
|
|
1078
|
-
a.qc()===this.qc():!1}toString(){return this.direction+this.tag}};olympe.dc.ub.Relation.prototype.getInverse=olympe.dc.ub.Relation.prototype.
|
|
1077
|
+
new c(void 0,a)}ea(a){return new olympe.dc.ub.Property(a)}Sb(a,b=olympe.dc.Nb.DESTINATION){Ff(a,b,this.F);return new olympe.dc.wa.Xe(a,b)}xw(){return this.O}};q('olympe.dc.registry.Entry',olympe.dc.ub.Entry);olympe.dc.ub.Entry.prototype.addRelation=olympe.dc.ub.Entry.prototype.Sb;olympe.dc.ub.Entry.prototype.addProperty=olympe.dc.ub.Entry.prototype.ea;olympe.dc.ub.Entry.ua=[olympe.dc.ek];olympe.dc.ub.Property=class{constructor(a){this.tag=a}ca(){return this.tag}};olympe.dc.ub.Property.prototype.getTag=olympe.dc.ub.Property.prototype.ca;olympe.dc.ub.Property.ua=[olympe.dc.ek];olympe.dc.ub.Relation=class{constructor(a,b=olympe.dc.Nb.DESTINATION,c=olympe.dc.CloudObject,d=olympe.dc.CloudObject){this.tag=olympe.dc.Gb(a);this.direction=b;this.origin=c;this.destination=d}ca(){return this.tag}qc(){return this.direction}type(){return this.destination}cf(){return new olympe.dc.ub.Relation(this.tag,this.direction===olympe.dc.Nb.DESTINATION?olympe.dc.Nb.ORIGIN:olympe.dc.Nb.DESTINATION,this.destination,this.origin)}Lc(a){return a instanceof olympe.dc.ub.Relation?a.ca()===this.ca()&&
|
|
1078
|
+
a.qc()===this.qc():!1}toString(){return this.direction+this.tag}};olympe.dc.ub.Relation.prototype.getInverse=olympe.dc.ub.Relation.prototype.cf;olympe.dc.ub.Relation.prototype.getDirection=olympe.dc.ub.Relation.prototype.qc;olympe.dc.ub.Relation.prototype.getTag=olympe.dc.ub.Relation.prototype.ca;olympe.dc.ub.Relation.ua=[olympe.dc.ek];olympe.dc.db={};function Jf(a,b,c,d,e,f=olympe.dc.Xb.Jd){const g=c.xa();Kf(a.F,b,c,d,e,f);return k=>{if(k)a.F.push(g);else{k=a.F;const l=k.O.get(g);if(void 0!==l){const m=k.F.indexOf(g);k.F.splice(m,1);Lf(k,Mf(k,l.C,k.F.length),l.source);k.O.delete(g)}}}}function Nf(a,b){a.C.ta(b)}function Of(a,b,c){b&&a.C.Cb(b);c&&a.C.Mb(c)}
|
|
1079
1079
|
olympe.dc.db.jP=class{constructor(a,b,c,d,e){this.Y=a;this.C=b;this.F=new olympe.dc.db.ZO(a,b,d);this.view=new olympe.dc.kd(a,b);this.hW=new olympe.dc.db.FR(this.Y,this.view,b,e)}Eb(){return this.Y}persist(a){this.C.ka();this.C.Ea(a,olympe.dc.db.Instance.C.$I);this.C.$()}Pm(a,b){this.F.Pm(a,b)}};const Pf=olympe.dc.Jf.VERSION,Qf=olympe.dc.Jf.Hj,Rf=olympe.dc.Wf.Uh,Sf=olympe.dc.Wf.Es;
|
|
1080
|
-
olympe.dc.db.Database=class a extends Map{constructor(b,c){super();this.id=olympe.oa.De();this.Y=b;this.Ha=olympe.j.ib();this.Cc=c.get('defaultSource')||olympe.dc
|
|
1080
|
+
olympe.dc.db.Database=class a extends Map{constructor(b,c){super();this.id=olympe.oa.De();this.Y=b;this.Ha=olympe.j.ib();this.Cc=c.get('defaultSource')||olympe.dc.Xb.Jd;this.R=olympe.dc.db.Database.C.IDLE;this.ga=new Map;this.La=[];this.F=[];this.Ka=new Map;b=c.get('garbageCollector')||olympe.dc.db.Zu.C.KA;new olympe.dc.db.Zu(this,b,this.Ha);c.get('debug')&&this.od()}xa(){return this.id}getState(){return this.R}Eb(){return this.Y}create(b,c){const d=this.O(b,!0);d.Cb(c&&parseInt(c.get(Pf),10)||1);
|
|
1081
1081
|
d.ge(c&&c.get(Qf)||this.Cc);c&&(c.delete(Pf),c.delete(Qf),this.vc(d,c));this.C(a.Event.lG,b)}update(b,c,d=!1){if(void 0!==c&&null!==c){b=this.O(b,!0);var e=c&&parseInt(c.get(Pf),10);0>e||!d&&b.version()>=e||(c.delete(Pf),b.Cb(isNaN(e)?b.version()+1:e),this.vc(b,c))}}ah(b){const c=this.get(b);void 0!==c&&(this.Qa(c,!1),this.C(a.Event.mG,b))}ic(b,c,d){c=this.O(c,!0);d=this.O(d,!0);switch(b){case Rf:c.Cc(d);break;case Sf:c.Kc(d);break;default:c.Qa(b,d)}}Kc(b,c,d){c=this.get(c);d=this.get(d);if(void 0!==
|
|
1082
1082
|
c&&void 0!==d)switch(b){case Rf:c.Qg(d);break;case Sf:c.Af(d);break;default:c.O(b,d)}}Cb(b){for(const c of b)this.O(c).Np()}Mb(b){for(const c of b)(b=this.get(c))&&b.detach()}Ea(b,c){b.forEach(d=>{this.O(d).od(c)})}Ib(b){const c=this.get(b);void 0!==c&&(c.clear(),super.delete(b),this.C(a.Event.mF,b))}O(b,c=!1){let d=this.get(b);void 0===d&&(d=new olympe.dc.db.Instance(b,this),this.set(b,d),this.C(a.Event.lF,b),c&&this.C(a.Event.Ty,b));return d}T(b,c,d=!1,e=null){return{[Symbol.iterator]:function*(f){const g=
|
|
1083
1083
|
olympe.dm.Relation.C.Sy,k=olympe.dm.Relation.C.Dy,l=olympe.dc.Nb.ORIGIN,m=olympe.dc.Nb.DESTINATION,n=a.qf.bt+c,p=d?k:g,r=d?g:k,t=(new Map).set(f,!1),u=(v,x)=>(v=this.get(v))&&0!==(v.get(n)&x),w=([v,x])=>!t.has(v)&&(e?e(x):!0);for(const v of t.keys())t.get(v)||(t.set(v,!0),yield v),f=this.get(v),void 0!==f&&f.forEach((x,y)=>{(y[0]===l&&u(y.substring(1),r)||y[0]===m&&u(y.substring(1),p))&&Array.from(x.entries()).filter(w).forEach(([B])=>{t.set(B,!1)})})}.bind(this,b)}}Ab(b){this.F[0].jm(olympe.oa.aj(),
|
|
1084
1084
|
b)}V(b){if(0===this.F.length)debugger;this.F[0].C.delete(b)}C(b,c,...d){this.ga.has(b)&&this.ga.get(b).forEach(e=>{e(c,...d)})}Qa(b,c){this.Ka.set(b,c)}Xc(b,c,d,e){0<this.F.length&&Tf(this.F[0],b).ea(e?Uf+c:c,d)}gd(b,c,d,e,f){if(0<this.F.length){var g=this.F[0];d===Vf?f?Tf(g,b).ga(c,e):Tf(g,b).$(c,e):f?Tf(g,b).Ka(c,e):Tf(g,b).Ha(c,e)}}addEventListener(b,c){let d=this.ga.get(b);void 0===d&&(d=[],this.ga.set(b,d));d.push(c)}ta(b){this.La.push(b)}ec(b){return this.F.reduce((c,d)=>d.F.has(b)||c,!1)}ka(){this.R===
|
|
1085
|
-
a.C.IDLE&&(this.R=a.C.JO);this.F.unshift(new olympe.dc.db.rP(this,this.Ha))}$(){this.R=a.C.Zo;this.ae();Wf(this.F[0]);this.F.shift();0===this.F.length&&(this.R=a.C.IDLE,this.La.forEach(b=>{b()}))}vc(b,c){const d=a.qf.
|
|
1085
|
+
a.C.IDLE&&(this.R=a.C.JO);this.F.unshift(new olympe.dc.db.rP(this,this.Ha))}$(){this.R=a.C.Zo;this.ae();Wf(this.F[0]);this.F.shift();0===this.F.length&&(this.R=a.C.IDLE,this.La.forEach(b=>{b()}))}vc(b,c){const d=a.qf.Te;for(const [e,f]of c)void 0!==f&&(e[0]===d?b.Fh(e.substr(1),f):b.update(e,f))}ae(){const b=a.qf.ORIGIN,c=this.Ka,d=new Map,e=(g,k)=>{const l=g.get(b+Rf);l&&l.forEach((m,n)=>{g!==m&&(d.set(m,k),c.delete(n),e(m,k))})};c.forEach((g,k)=>{d.set(k,g);e(k,g)});const f=this.F[0];d.forEach((g,
|
|
1086
1086
|
k)=>{k.ec(g)&&(k=k.tag(),g?Tf(f,k).create():Tf(f,k).delete())});this.Ka.clear()}od(){const b=a.qf.DESTINATION,c=a.Event.MA,d=a.Event.Cy,e=new Set,f=new Map;this.addEventListener(a.Event.lG,g=>{e.add(g)});this.addEventListener(c,g=>{e.delete(g);f.delete(g)});this.addEventListener(d,(g,...k)=>{if(k[0]===Sf&&k[1]===b){const l=k[2];this.get(l).ue()||(k=f.get(l)||new Set,0===k.size&&f.set(l,k),k.add(g))}});this.ta(()=>{e.forEach(g=>{const k=this.get(g);k&&null===k.model()&&this.Y.error(`\n[DEBUG - DATABASE]\nInstance ${g} created but does not exist !\n${k.toString()}`)});
|
|
1087
|
-
e.clear();f.forEach((g,k)=>{const l=this.get(k);l&&this.Y.error(`\n[DEBUG - DATABASE]\nThe model ${k} is extended by other models but does not exist !`+`\nExtension models: ${Array.from(g.values()).join(', ')}`+`\n\n ${l.toString()}`)});f.clear()})}};olympe.dc.db.Database.qf={bt:'$',VP:'~',
|
|
1088
|
-
olympe.dc.db.Database.C={IDLE:0,JO:1,Zo:2};const Xf=olympe.dc.db.Database.Event,Yf=olympe.dc.db.Database.qf.bt,Zf=olympe.dc.db.Database.qf.VP,$f=olympe.dc.db.Database.qf.
|
|
1089
|
-
olympe.dc.db.Instance=class a extends Map{constructor(b,c){super();this.C=b;this.vc=olympe.dc
|
|
1087
|
+
e.clear();f.forEach((g,k)=>{const l=this.get(k);l&&this.Y.error(`\n[DEBUG - DATABASE]\nThe model ${k} is extended by other models but does not exist !`+`\nExtension models: ${Array.from(g.values()).join(', ')}`+`\n\n ${l.toString()}`)});f.clear()})}};olympe.dc.db.Database.qf={bt:'$',VP:'~',Te:'?',tA:'=',CE:'@',ORIGIN:olympe.dc.Nb.ORIGIN,DESTINATION:olympe.dc.Nb.DESTINATION};olympe.dc.db.Database.Event={lF:0,mF:1,nK:2,Ty:3,DE:4,EE:5,MA:6,ih:7,Cy:8,IB:9,lG:10,mG:11,qJ:12};
|
|
1088
|
+
olympe.dc.db.Database.C={IDLE:0,JO:1,Zo:2};const Xf=olympe.dc.db.Database.Event,Yf=olympe.dc.db.Database.qf.bt,Zf=olympe.dc.db.Database.qf.VP,$f=olympe.dc.db.Database.qf.Te,ag=olympe.dc.db.Database.qf.tA,bg=olympe.dc.db.Database.qf.CE,cg=olympe.dc.Nb.ORIGIN,dg=olympe.dc.Nb.DESTINATION,eg=olympe.dc.Wf.Uh,fg=olympe.dc.Wf.Es;
|
|
1089
|
+
olympe.dc.db.Instance=class a extends Map{constructor(b,c){super();this.C=b;this.vc=olympe.dc.Xb.Jd;this.e=!1;this.La=0;this.F=void 0;this.c=0;this.ka=a.C.$I;this.db=c}tag(){return this.C}ue(){return this.e}Ib(){return this.db.ec(this.C)}source(){return this.vc}version(){return this.La}model(){const b=this.get(dg+eg);return b&&b.values().next().value||null}bo(){const b=this.get(dg+fg);return b&&b.values().next().value||null}persisted(){return this.ka!==a.C.WK}toString(){var b=this.nd(olympe.dc.CloudObject.nameProp.ca());
|
|
1090
1090
|
b=`Instance: ${this.C}, Exist: ${this.e}, Name: ${b}`;var c=this.model();if(c){var d=c.nd(olympe.dc.CloudObject.nameProp.ca())||'No model name';b+=`\nModel: ${c.C}, Exist: ${c.e}, Model name: ${d}`}else b+='\nModel: no model';(c=this.bo())?(d=c.nd(olympe.dc.CloudObject.nameProp.ca())||'No extension name',b+=`\nExtension: ${c.C}, Exist: ${c.e}, Extension name: ${d}`):b+='\nExtension: no extension';return b}nd(b,c=!1){const d=this.get(Yf+b);return c||void 0!==d?d:this.get(ag+b)}ta(b,c=!1){const d=this.get($f+
|
|
1091
1091
|
b);return c||void 0!==d?d:this.get(Zf+b)}update(b,c){const d=Yf+b;var e=this.get(d),f=e=void 0===e?null:e;(null!==f&&'function'===typeof f.Lc?f.Lc(c):f===c)||(e instanceof olympe.dc.gg&&(this.db.get(e.ca()).Mb(),this.db.ah(e.ca())),c instanceof olympe.dc.gg&&(e=this.db.O(c.ca(),!0),e.F&&e.F.tag!==this.C&&this.db.Eb().fatal('Instance',c.ca(),'referenced multiple times!\nThis instance is currently property of',e.F.tag,'(for the property '+e.F.pd+')','and is assigned as a property of',this.C,'(for the property '+
|
|
1092
1092
|
b+')'),e.ae(this.C,b)),e=ag+b,null===c?(this.delete(d),c=(c=this.model())&&c.ta(b),void 0!==c?(this.set(e,c),this.T(b,c,!0)):this.T(b,null,!1)):(this.set(d,c),this.delete(e),this.T(b,c,!1)))}Fh(b,c){const d=$f+b;var e=this.get(d);(void 0===e?null:e)!==c&&(e=Zf+b,null===c?(this.delete(d),c=(c=this.bo())&&c.ta(b),c=void 0===c?null:c,null!==c&&this.set(e,c),this.ga((new Map).set(b,c))):(void 0!==this.get(e)&&this.delete(e),this.set(d,c),this.ga((new Map).set(b,c))))}Qa(b,c){var d=cg+b;const e=this.Ha(dg+
|
|
@@ -1102,55 +1102,55 @@ function Wf(a){const b=a.R;a.Z.forEach((c,d)=>{const e=b.get(d);if(c.uk()||c.R()
|
|
|
1102
1102
|
function kg(a,b,...c){b.forEach((d,e)=>{a.jm(e,d.bind(null,...c))})}function mg(a,b,c,d,e,f){const g=b.get(hg+d+c);g&&kg(a,g,f,e);(b=b.get(hg+ig))&&kg(a,b,c,d,f,e)}function ng(a){a.O.run(()=>{const b=a.C;for(const [d,e]of a.buffer){var c=b.get(d);(c=c&&c[e])&&c()}});a.C.clear();a.buffer.length=0}
|
|
1103
1103
|
olympe.dc.db.rP=class{constructor(a,b){this.R=a;this.O=b;this.Z=new Map;this.F=new Set;this.C=new Map;this.buffer=[]}jm(a,b){let c=this.C.get(a);void 0===c&&(c=[],this.C.set(a,c));this.buffer.push([a,c.length]);c.push(b)}};olympe.dc.db.FR=class{constructor(a,b,c,d){this.Y=a;this.view=b;this.C=c;d&&this.init()}debug(a){const b=olympe.dc.Gb(a);if(this.C.has(b)){var c=this.C.get(a);a='\n[DEBUG - DATABASE]\n'+c.toString();if(!c.ue()){const d=[];for(;null!==c&&!d.includes(c.tag());)d.push(c.tag()),c=c.model();c=this.C.get(d[d.length-1]);const e=olympe.dc.db.Database.qf.bt+olympe.dc.CloudObject.nameProp.ca();d.push('???');a+='\n\nThe instance <<'+b+'>> does not exists because the instance '+c.tag()+' (name: '+c.get(e)+') has no model.\nList: '+
|
|
1104
1104
|
d.join(' --M--\x3e ')}this.Y.info(a)}else this.Y.info('[DATABASE] Instance',b,'has never been created or referred by the database')}init(){const a=olympe.dc.db.Database.Event.mF,b=olympe.dc.db.Database.Event.MA,c=olympe.dc.db.Database.Event.ih,d=olympe.dc.db.Database.Event.Cy,e=olympe.dc.db.Database.Event.IB,f=olympe.dc.db.Database.Event.DE,g=olympe.dc.db.Database.Event.EE,k=()=>{};this.C.addEventListener(olympe.dc.db.Database.Event.lF,()=>{});this.C.addEventListener(a,()=>{});this.C.addEventListener(b,
|
|
1105
|
-
l=>{this.C.Ab(()=>{og(this.view,l,k,`monitorRelations${l}`)})});this.C.addEventListener(c,l=>{this.C.Ab(()=>{pg(this.view,l,`monitorRelations${l}`)})});this.C.addEventListener(d,()=>{});this.C.addEventListener(e,()=>{});this.C.addEventListener(f,()=>{});this.C.addEventListener(g,()=>{})}};olympe.dc.db.Zu=class a{constructor(b,c,d){this.Y=b.Eb();this.C=b;this.O=new Set;this.mode=c;this.T=d;this.F=!1;c!==a.C.KA&&this.init()}run(){if(!this.F)switch(this.mode){case a.C.AO:this.F=!0;this.T.run(()=>{tc(()=>{this.R();this.F=!1},0)});break;case a.C.TJ:this.F=!0,this.R(),this.F=!1}}R(){const b=this.C,c=olympe.dc.
|
|
1105
|
+
l=>{this.C.Ab(()=>{og(this.view,l,k,`monitorRelations${l}`)})});this.C.addEventListener(c,l=>{this.C.Ab(()=>{pg(this.view,l,`monitorRelations${l}`)})});this.C.addEventListener(d,()=>{});this.C.addEventListener(e,()=>{});this.C.addEventListener(f,()=>{});this.C.addEventListener(g,()=>{})}};olympe.dc.db.Zu=class a{constructor(b,c,d){this.Y=b.Eb();this.C=b;this.O=new Set;this.mode=c;this.T=d;this.F=!1;c!==a.C.KA&&this.init()}run(){if(!this.F)switch(this.mode){case a.C.AO:this.F=!0;this.T.run(()=>{tc(()=>{this.R();this.F=!1},0)});break;case a.C.TJ:this.F=!0,this.R(),this.F=!1}}R(){const b=this.C,c=olympe.dc.Ve.ti,d=this.O,e=k=>b.get(k);var f=k=>!(k.persisted()||k.$());for(var g of d){const k=b.get(g);if(k&&!k.$()){if(!k.persisted())continue;Array.from(b.T(g,c,!1,f)).forEach(l=>{d.add(l)});
|
|
1106
1106
|
b.Ib(g)}d.delete(g)}for(const k of d)f=Array.from(b.T(k,c,!0)).map(e),g=Array.from(b.T(k,c)).map(e),f.some(l=>l.$())?g.filter(l=>!l.persisted()).forEach(l=>{d.delete(l.tag())}):f.concat(g).filter(l=>!l.persisted()).map(l=>l.tag()).forEach(l=>{d.delete(l);b.Ib(l)});d.clear()}init(){this.C.ta(this.run.bind(this));const b=olympe.dc.db.Database.Event.nK,c=olympe.dc.db.Database.Event.mG,d=olympe.dc.db.Database.Event.qJ,e=olympe.dc.db.Database.C.IDLE,f=g=>{this.O.add(g);this.C.getState()===e&&this.run()};
|
|
1107
1107
|
this.C.addEventListener(olympe.dc.db.Database.Event.Ty,f.bind(this));this.C.addEventListener(c,f.bind(this));this.C.addEventListener(b,g=>{this.O.delete(g)});this.C.addEventListener(d,(g,...k)=>{this.Y.error(k[0])})}};olympe.dc.db.Zu.C={KA:0,TJ:1,AO:2};const qg=olympe.dc.db.Database.qf.ORIGIN,rg=olympe.dc.db.Database.qf.DESTINATION,sg=olympe.dc.db.Database.qf.bt,tg=olympe.dc.db.Database.qf.tA,ug=qg+rg,vg=sg+sg,wg=olympe.dc.db.Database.C;function qf(a,b,c,d){const e=a.C.O(olympe.dc.Gb(b));d=d||xg(a);e.jm('',d,c);e.ue()&&a.R.run(()=>{c(!0,b)});return d}function rf(a,b,c,d=!1){const e=yg(a,b);if(null!==e){const f=e.V('',c);void 0!==f&&(a.C.getState()===wg.Zo&&a.C.V(c),!d&&e.ue()&&a.R.run(()=>{f(!1,b)}))}}
|
|
1108
1108
|
function og(a,b,c,d){const e=a.C.O(olympe.dc.Gb(b));b=d||xg(a);const f=e.Ab(ug,b,c);e.ue()&&e.forEach((g,k)=>{g=k[0];g!==qg&&g!==rg||zg(a,e,k,!0,f,!0)})}function pg(a,b,c){const d=yg(a,b);if(null!==d){const e=d.V(ug,c);void 0!==e&&(a.C.getState()!==wg.Zo||d.Ib()||a.C.V(c),d.ue()&&d.forEach((f,g)=>{f=g[0];(f===qg||f===rg)&&e&&zg(a,d,g,!1,e,!0)}))}}function xg(a){++a.T;return String(a.T)}
|
|
1109
1109
|
function Ag(a,b,c,d,e){b=a.C.O(olympe.dc.Gb(b));c=olympe.dc.Gb(c);const f=sg+c;e=e||xg(a);b.jm(f,e,d);if(b.ue()){let g=!1,k=b.get(f);void 0===k&&(g=!0,k=b.get(tg+c));if(void 0===k)return e;a.R.run(()=>{d(k,g)})}return e}function yg(a,b,c=!1){if(null===b||void 0===b)throw Error('Provided tag is null or undefined.');a=a.C.get(olympe.dc.Gb(b));return!a||c&&!a.ue()?null:a}
|
|
1110
1110
|
function Bg(a,b,c,d){b=a.C.O(olympe.dc.Gb(b));d=d||xg(a);b.jm(vg,d,c);b.ue()&&b.forEach((e,f)=>{const g=f[0];g!==sg&&g!==tg||a.R.run(()=>{c(f.substr(1),e,g===tg)})});return d}function Cg(a,b,c){b=yg(a,b);null!==b&&(b.V(vg,c),a.C.getState()===wg.Zo&&a.C.V(c))}function zg(a,b,c,d,e,f){(b=b.get(c))&&b.forEach((g,k)=>{g.ue()&&(f?a.R.run(()=>{e(c.substr(1),c[0],d,k)}):a.R.run(()=>{e(d,k)}))})}
|
|
1111
|
-
function Dg(a,b,c,d,e){b=a.C.O(olympe.dc.Gb(b));c=c.qc()+c.ca();e=e||xg(a);d=b.Ab(c,e,d);b.ue()&&zg(a,b,c,!0,d,!1);return e}function Eg(a,b,c){return c===olympe.dc.
|
|
1111
|
+
function Dg(a,b,c,d,e){b=a.C.O(olympe.dc.Gb(b));c=c.qc()+c.ca();e=e||xg(a);d=b.Ab(c,e,d);b.ue()&&zg(a,b,c,!0,d,!1);return e}function Eg(a,b,c){return c===olympe.dc.Ve.NONE?0:a.nd(b,c,!0)||0}function Fg(a,b){return function*(c){if(c)for(const [d,e]of c)if(c=d[0],c===qg||c===rg){const f=d.substring(1);for(const g of e.keys())yield[f,c,g]}}(yg(a,b,!0))}
|
|
1112
1112
|
function Gg(a,b,c){if(!a.ue(b))return a.Y.warn(`No instance found with tag ${b}`),new Map;const d=new Map,e=[olympe.dc.Gb(b)];for(const f of e){const g=a.wc(f,c);d.set(f,g);for(const k of g.filter(l=>!d.has(l)))e.push(k)}a.Y.debug(`Found ${d.size} instances in sub-tree rooted at ${olympe.dc.Gb(b)}`);return d}function Hg(a,b,c){return null!==a.vC(c,olympe.dc.CloudObject.extendRel,d=>olympe.dc.fc().Mz(d,olympe.dc.CloudObject.propertyRel,b))}
|
|
1113
1113
|
function Ig(a,b,c,d){return(c=(a=yg(a,b,!0))&&a.get(d+c))?Array.from(c.values()).filter(e=>e.ue()).length:0}
|
|
1114
1114
|
olympe.dc.kd=class{constructor(a,b){this.Y=a;this.R=new olympe.j.Od('DB View context');this.C=b;this.T=0}xa(){return this.C.xa()}O(a,b,c){a=yg(this,a);null!==a&&(b=olympe.dc.Gb(b),a.V(sg+b,c),this.C.getState()===wg.Zo&&this.C.V(c))}F(a,b,c,d=!1){a=yg(this,a);if(null!==a){b=b.qc()+b.ca();const e=a.V(b,c);void 0!==e&&(this.C.getState()!==wg.Zo||a.Ib()&&!d||this.C.V(c),!d&&a.ue()&&zg(this,a,b,!1,e,!1))}}ue(a){a=yg(this,a);return!(!a||!a.ue())}name(a){return(a=yg(this,a))?a.nd(olympe.dc.CloudObject.nameProp.ca()):
|
|
1115
1115
|
''}model(a){return(a=(a=yg(this,a,!0))?a.model():null)?a.tag():null}bo(a){return(a=(a=yg(this,a,!0))&&a.bo())?a.tag():null}Lz(a){a=yg(this,a,!0);return!(!a||!a.bo())}di(a,b){a=(a=yg(this,a,!0))&&a.model();return!(!a||!this.yw(a.tag(),b))}version(a){return(a=yg(this,a,!0))&&a.version()}source(a){return(a=yg(this,a,!0))&&a.source()}ro(a){return(a=yg(this,a,!1))?!!a.persisted():!0}nd(a,b,c){b=(a=yg(this,a,!0))?a.nd(olympe.dc.Gb(b),c):null;return void 0!==b?b:null}Ng(a,b=!1){var c=yg(this,a,!0);a=new Map;
|
|
1116
1116
|
if(c)for(const [d,e]of c)c=d[0],(c===sg||!b&&c===tg)&&a.set(d.substring(1),e);return a}wc(a,b){return this.nw(a,[b])}Mz(a,b,c){return this.wc(a,b).includes(olympe.dc.Gb(c))}nw(a,b){a=yg(this,a,!0);if(!a)return[];a=[a.tag()];for(const c of b){b=[];for(const d of a)if(a=yg(this,d,!0).get(c.qc()+c.ca()),void 0!==a)for(const e of a.values())e.ue()&&b.push(e.tag());a=b}return a}we(a,b){var c=yg(this,a,!0);return c?(c=c.get(b.qc()+b.ca()))&&1<c.size?(this.Y.warn(`Relation ${b.ca()} to instance ${a} is not unique: found ${c.size} related items`),
|
|
1117
|
-
null):(a=c?c.values().next().value:null)&&a.ue()?a.tag():null:null}Am(a,b,c){a=olympe.dc.Gb(a);const d=Gg(this,a,b);d.delete(a);return c?(c=olympe.dc.Gb(c),d.has(c)?Array.from(Gg(this,c,b.
|
|
1117
|
+
null):(a=c?c.values().next().value:null)&&a.ue()?a.tag():null:null}Am(a,b,c){a=olympe.dc.Gb(a);const d=Gg(this,a,b);d.delete(a);return c?(c=olympe.dc.Gb(c),d.has(c)?Array.from(Gg(this,c,b.cf()).keys()).filter(e=>d.has(e)):[]):Array.from(d.keys())}vC(a,b,c){if(!this.ue(a))return null;b=Gg(this,a,b);const d=[olympe.dc.Gb(a)];for(const e of d){if(c(e))return e;if(a=b.get(e))for(const f of a.filter(g=>!d.includes(g)))d.push(f)}return null}iz(a,b,c){return this.nw(a,b).find(c)||null}fU(a,b,c){return this.nw(a,
|
|
1118
1118
|
b).filter(c)}Gt(a,b=olympe.dc.CloudObject){var c=yg(this,a,!0);const d=b&&yg(this,b,!0),e=[c];for(;c&&c!==d;){c=c.bo();if(e.includes(c))throw Error(`Cycle detected when following recursively extend relations from base model instance "${a}".`);if(c&&!c.ue())throw a=`Try to get all extensions of the model ${olympe.dc.Gb(a)} but one of them does not exists (${c.tag()})`,Error(a);null!==c&&e.push(c)}c=yg(this,olympe.dc.CloudObject,!0);if(d!==c&&e[e.length-1]===c)throw Error(`The model "${this.name(a)}" (tag = ${a}) does not extend the expected model "${this.name(b)}" (tag = ${b}).`);
|
|
1119
1119
|
return e.map(f=>f.tag())}yw(a,b){const c=olympe.dc.Gb(b);return!!this.vC(a,olympe.dc.CloudObject.extendRel,d=>d===c)}ej(a){return this.wc(a,olympe.dc.CloudObject.instancesRel)}};olympe.dc.kd.prototype.getInstances=olympe.dc.kd.prototype.ej;olympe.dc.kd.prototype.isExtending=olympe.dc.kd.prototype.yw;olympe.dc.kd.prototype.getExtendedModels=olympe.dc.kd.prototype.Gt;olympe.dc.kd.prototype.findAllRelated=olympe.dc.kd.prototype.fU;olympe.dc.kd.prototype.findRelated=olympe.dc.kd.prototype.iz;
|
|
1120
1120
|
olympe.dc.kd.prototype.findRecursive=olympe.dc.kd.prototype.vC;olympe.dc.kd.prototype.getRecursiveRelated=olympe.dc.kd.prototype.Am;olympe.dc.kd.prototype.getUniqueRelated=olympe.dc.kd.prototype.we;olympe.dc.kd.prototype.getMultiRelated=olympe.dc.kd.prototype.nw;olympe.dc.kd.prototype.isRelated=olympe.dc.kd.prototype.Mz;olympe.dc.kd.prototype.getRelated=olympe.dc.kd.prototype.wc;olympe.dc.kd.prototype.getProperties=olympe.dc.kd.prototype.Ng;olympe.dc.kd.prototype.getProperty=olympe.dc.kd.prototype.nd;
|
|
1121
1121
|
olympe.dc.kd.prototype.isPersisted=olympe.dc.kd.prototype.ro;olympe.dc.kd.prototype.instanceOf=olympe.dc.kd.prototype.di;olympe.dc.kd.prototype.isModel=olympe.dc.kd.prototype.Lz;olympe.dc.kd.prototype.extension=olympe.dc.kd.prototype.bo;olympe.dc.kd.prototype.model=olympe.dc.kd.prototype.model;olympe.dc.kd.prototype.name=olympe.dc.kd.prototype.name;olympe.dc.kd.prototype.exist=olympe.dc.kd.prototype.ue;olympe.dc.db.dg=class a{constructor(b){this.id=b||olympe.oa.Dt();this.C=new Map}toJSON(){let b='{ "id": '+JSON.stringify(this.id)+', "instances": {';for(const c of this.C.keys()){const d=this.C.get(c);b+=JSON.stringify(c)+': '+d.toJSON()+', '}b.endsWith(', ')&&(b=b.substr(0,b.length-2));return b+'}}'}static gf(b){var c;'string'===typeof b?c=JSON.parse(b):c=b;b=new olympe.dc.db.dg(c.id);c=c.instances;for(const d of Object.keys(c)){const e=olympe.dc.db.wp.gf(c[d]);b.C.set(d,e)}return b}xa(){return this.id}rh(b){const c=
|
|
1122
|
-
olympe.dc.db.wp.C.uB,d=olympe.dc.db.wp.C.ih,e=olympe.dc.db.wp.C.Uy;this.C.forEach((f,g)=>{const k=f.getState();switch(k.id){case c:b.F(g,f.Qa()?f.Ng():void 0);break;case e:f.Qa()&&b.kg(g,f.Ng(),k.Yv);break;case d:b.ah(g,k.Yv)}for(const [l,m,n]of f.bi())n?b.Kb(l,g,m):b.Pf(l,g,m)})}ed(){let b=0;this.C.forEach(c=>{b+=c.ed()});return b}F(b,c){b=this.O(b).create();c&&b.ka(c)}kg(b,c,d){c&&(b=this.O(b).ka(c),d&&b.Cb())}ah(b,c=olympe.dc.
|
|
1123
|
-
for(const e of this.V(b,c,!1))this.C.get(e).Ng().clear(),this.ga(e,!0)}}Kb(b,c,d){this.O(c).ga(b,d);this.O(d).Ka(b,c)}Pf(b,c,d){this.O(c).$(b,d);this.O(d).Ha(b,c)}ej(){return function*(b){for(const c of b.values())if(c.uk()||c.R()||c.Qa())yield c}(this.C)}ko(b){return this.C.get(olympe.dc.Gb(b))||null}R(b,c=olympe.dc.
|
|
1122
|
+
olympe.dc.db.wp.C.uB,d=olympe.dc.db.wp.C.ih,e=olympe.dc.db.wp.C.Uy;this.C.forEach((f,g)=>{const k=f.getState();switch(k.id){case c:b.F(g,f.Qa()?f.Ng():void 0);break;case e:f.Qa()&&b.kg(g,f.Ng(),k.Yv);break;case d:b.ah(g,k.Yv)}for(const [l,m,n]of f.bi())n?b.Kb(l,g,m):b.Pf(l,g,m)})}ed(){let b=0;this.C.forEach(c=>{b+=c.ed()});return b}F(b,c){b=this.O(b).create();c&&b.ka(c)}kg(b,c,d){c&&(b=this.O(b).ka(c),d&&b.Cb())}ah(b,c=olympe.dc.Ve.NONE){const d=this.C.get(b);if(d&&d.uk())this.R(b,c);else{this.O(b).delete(c);
|
|
1123
|
+
for(const e of this.V(b,c,!1))this.C.get(e).Ng().clear(),this.ga(e,!0)}}Kb(b,c,d){this.O(c).ga(b,d);this.O(d).Ka(b,c)}Pf(b,c,d){this.O(c).$(b,d);this.O(d).Ha(b,c)}ej(){return function*(b){for(const c of b.values())if(c.uk()||c.R()||c.Qa())yield c}(this.C)}ko(b){return this.C.get(olympe.dc.Gb(b))||null}R(b,c=olympe.dc.Ve.NONE){b=this.V(b,c);for(const d of b)this.ga(d,!1),this.C.delete(d)}bi(){return function*(b){for(var c=b.next();!c.done;){c=c.value;const d=c.tag();yield*c.bi((e,f,g)=>[e,d,f,g]);
|
|
1124
1124
|
c=b.next()}}(this.C.values())}Am(b,c,d=(e,f)=>[e,f]){return this.$(b,c,d)}*$(b,c,d,e=[]){e.push(b);b=this.ko(b);for(const [f,g]of b.wc(c))e.includes(f)||(yield*this.$(f,c,d,e),yield d(f,g))}T(b,c,d){const e=this.C.get(c),f=this.C.get(d);e&&e.T(b,olympe.dc.Nb.DESTINATION,d);f&&f.T(b,olympe.dc.Nb.ORIGIN,c)}clone(){const b=new a(this.id);this.C.forEach((c,d)=>{b.C.set(d,c.clone())});return b}ga(b,c){const d=olympe.dc.Nb.ORIGIN,e=olympe.dc.Nb.DESTINATION,f=this.C.get(b);for(const [k,l,m]of f.bi())if(m||
|
|
1125
1125
|
!c){f.T(k,e,l);var g=this.C.get(l);g&&g.T(k,d,b)}for(const [k,l,m]of f.ta())if(m||!c)f.T(k,d,l),(g=this.C.get(l))&&g.T(k,e,b)}V(b,c,d=!0){const e=olympe.dm.Relation.C.Dy,f=olympe.dm.Relation.C.Sy,g=olympe.dc.Nb.ORIGIN,k=olympe.dc.fc();b=new Set([b]);const l=new Set;for(const n of b){var m=this.C.get(n);if(void 0!==m){for(const [p,r,t]of m.bi())t&&Eg(k,p,c)&f?b.add(r):d||t||l.add(`${n}.${p}.${r}`);for(const [p,r,t]of m.ta())t&&Eg(k,p,c)&e?b.add(r):d||t||l.add(`${r}.${p}.${n}`)}for(const [p,r,t]of Fg(k,
|
|
1126
1126
|
n))m=r===g?e:f,!l.has(r===g?`${t}.${p}.${n}`:`${n}.${p}.${t}`)&&Eg(k,p,c)&m&&b.add(t)}return Array.from(b).filter(n=>this.C.has(n))}O(b){let c=this.C.get(b);void 0===c&&(c=new olympe.dc.db.wp(b),this.C.set(b,c));return c}};olympe.dc.db.dg.ua=[olympe.dc.ot,olympe.dc.FB];const Jg=new Map;
|
|
1127
1127
|
olympe.dc.db.wp=class a{constructor(b){this.V=b;this.F=a.F(a.C.Uy,!1);this.O=this.C=this.Ed=null}toJSON(){let b='{ "tag": '+JSON.stringify(this.V)+', "state": '+JSON.stringify(this.F);if(this.Ed){b+=', "properties": {';for(var c of this.Ed.keys()){const d=this.Ed.get(c);b+=JSON.stringify(c)+': ';b=d.toJSON?b+d.toJSON():b+JSON.stringify(d);b+=', '}b.endsWith(', ')&&(b=b.substr(0,b.length-2));b+='}'}if(this.C){b+=', "relations": {';for(const d of this.C.keys()){c=this.C.get(d);b+=JSON.stringify(d)+': {';
|
|
1128
1128
|
for(const e of c.keys())b+=JSON.stringify(e)+': '+JSON.stringify(c.get(e))+', ';b.endsWith(', ')&&(b=b.substr(0,b.length-2));b+='}, '}b.endsWith(', ')&&(b=b.substr(0,b.length-2));b+='}'}return b+'}'}static gf(b){var c;'string'===typeof b?c=JSON.parse(b):c=b;b=new olympe.dc.db.wp(c.tag);b.F=c.state;const d=c.properties;if(d){b.Ed=new Map;for(var e of Object.keys(d)){const f=d[e],g=f.type;let k=f;g&&('reference'===g?k=olympe.dc.gg.gf(f):k=olympe.j.gf(f));null!==k&&void 0!==k&&b.Ed.set(e,k)}}if(c=c.relations){b.C=
|
|
1129
|
-
new Map;for(const f of Object.keys(c)){e=new Map;for(const g of Object.keys(c[f]))e.set(g,c[f][g]);b.C.set(f,e)}}return b}static F(b,c){const d=String(b)+','+String(c);let e=Jg.get(d);void 0===e&&(e={id:b,Yv:c},Jg.set(d,e));return e}tag(){return this.V}getState(){return this.F}create(){this.F=a.F(a.C.uB);return this}delete(b=olympe.dc.
|
|
1129
|
+
new Map;for(const f of Object.keys(c)){e=new Map;for(const g of Object.keys(c[f]))e.set(g,c[f][g]);b.C.set(f,e)}}return b}static F(b,c){const d=String(b)+','+String(c);let e=Jg.get(d);void 0===e&&(e={id:b,Yv:c},Jg.set(d,e));return e}tag(){return this.V}getState(){return this.F}create(){this.F=a.F(a.C.uB);return this}delete(b=olympe.dc.Ve.NONE){this.F=a.F(a.C.ih,b);this.Ed=null;return this}Cb(){this.F.id===a.C.Uy&&(this.F=a.F(a.C.Uy,!0))}ea(b,c){if(this.F.type===a.C.ih)return this;this.Ed||(this.Ed=
|
|
1130
1130
|
new Map);this.Ed.set(b,c);return this}ka(b){this.Ed||(this.Ed=new Map);b.forEach((c,d)=>{this.Ed.set(d,c)});return this}La(b){this.Ed&&this.Ed.delete(b);0===this.Ed.size&&(this.Ed=null)}ga(b,c){null===this.C&&(this.C=new Map);this.Sb(this.C,b,c,!0)}$(b,c){null===this.C&&(this.C=new Map);this.Sb(this.C,b,c,!1)}Ka(b,c){this.O||(this.O=new Map);this.Sb(this.O,b,c,!0)}Ha(b,c){this.O||(this.O=new Map);this.Sb(this.O,b,c,!1)}Ab(b,c,d){if(c=c===olympe.dc.Nb.ORIGIN?this.O:this.C)return(b=c.get(b))&&b.get(d)}T(b,
|
|
1131
1131
|
c,d){const e=(c=c===olympe.dc.Nb.ORIGIN?this.O:this.C)&&c.get(b);e&&e.delete(d);e&&0===e.size&&c.delete(b)}uk(){return this.F.id===a.C.uB}R(){return this.F.id===a.C.ih}ed(){let b=this.Ed?this.Ed.size:0;this.C&&this.C.forEach(c=>{b+=c.size});return b}clone(){const b=new a(this.V);b.F=this.F;this.Ed&&b.ka(this.Ed);for(const [c,d,e]of this.bi())e?b.ga(c,d):b.$(c,d);for(const [c,d,e]of this.ta())e?b.Ka(c,d):b.Ha(c,d);return b}Qa(){return null!==this.Ed}Ng(){return this.Ed||new Map}nd(b){if(this.Ed)return this.Ed.get(b)}wc(b,
|
|
1132
1132
|
c=(d,e)=>[d,e]){return function*(d){if(d=d&&d.get(b.ca()))for(const [e,f]of d)yield c(e,f)}(b.qc()===olympe.dc.Nb.ORIGIN?this.O:this.C)}we(b){const c=b.qc()===olympe.dc.Nb.ORIGIN?this.O:this.C;return(b=c&&c.get(b.ca()))&&0!==b.size?Array.from(b.keys())[0]:null}Gr(){return this.we(olympe.dc.CloudObject.modelRel)}bi(b=(c,d,e)=>[c,d,e]){return this.Ea(this.C,b)}ta(b=(c,d,e)=>[c,d,e]){return this.Ea(this.O,b)}Ib(b=(c,d,e,f)=>[c,d,e,f]){const c=olympe.dc.Nb.ORIGIN,d=olympe.dc.Nb.DESTINATION;return function*(e,
|
|
1133
|
-
f,g){yield*e(f,(k,l,m)=>b(k,d,l,m));yield*e(g,(k,l,m)=>b(k,c,l,m))}(this.Ea.bind(this),this.C,this.O)}Sb(b,c,d,e){if(this.F.id!==a.C.ih||!e){var f=b.get(c);if(void 0===f)f=new Map,b.set(c,f);else if(b=f.get(d),void 0!==b&&b!==e){f.delete(d);return}f.set(d,e)}}*Ea(b,c){if(null!==b)for(const [d,e]of b){b=e.entries();for(const [f,g]of b)yield c(d,f,g)}}};olympe.dc.db.wp.C={uB:0,Uy:1,ih:2};function Kf(a,b,c,d,e,f=olympe.dc
|
|
1133
|
+
f,g){yield*e(f,(k,l,m)=>b(k,d,l,m));yield*e(g,(k,l,m)=>b(k,c,l,m))}(this.Ea.bind(this),this.C,this.O)}Sb(b,c,d,e){if(this.F.id!==a.C.ih||!e){var f=b.get(c);if(void 0===f)f=new Map,b.set(c,f);else if(b=f.get(d),void 0!==b&&b!==e){f.delete(d);return}f.set(d,e)}}*Ea(b,c){if(null!==b)for(const [d,e]of b){b=e.entries();for(const [f,g]of b)yield c(d,f,g)}}};olympe.dc.db.wp.C={uB:0,Uy:1,ih:2};function Kf(a,b,c,d,e,f=olympe.dc.Xb.Jd){const g=olympe.dc.db.Instance.C.aJ,k=olympe.dc.db.Instance.C.WK,l=c.xa();if(a.O.has(l))throw Error(`You try to execute the patch ${l} a second times whereas the first execution has not been validated yet.`);const m=new Kg(c,Lg(a,c),f);a.F.push(l);a.O.set(l,m);a.C.ka();a.C.Ea(d,g);a.C.Ea(e,k);Lf(a,c,f);const n=Array.from(c.ej()).filter(p=>p.uk()).map(p=>p.tag());a.C.Cb(n);a.C.$();0<n.length&&b.Vd(()=>{a.C.ka();a.C.Mb(n);a.C.$()})}
|
|
1134
1134
|
function Lf(a,b,c){a.R.process(c,b,d=>{d||a.Y.debug('CommitController: Rebase of patch',b.xa(),'done')})}function Mf(a,b,c){return a.F.slice(0,c).map(d=>a.O.get(d)).reduce((d,e)=>e?e.Pm(d):d,b)}
|
|
1135
|
-
function Lg(a,b){const c=a.C,d=olympe.dc.db.Database.qf.bt,e=olympe.dc.db.Database.qf.
|
|
1135
|
+
function Lg(a,b){const c=a.C,d=olympe.dc.db.Database.qf.bt,e=olympe.dc.db.Database.qf.Te,f=olympe.dc.db.Database.qf.ORIGIN,g=olympe.dc.db.Database.qf.DESTINATION,k=olympe.dc.Jf.VERSION,l=olympe.dc.Jf.Hj,m=new olympe.dc.db.dg('rev-'+b.xa());a.Y.debug('Generate the reverse graphLayer of',b.xa());b.C.forEach((n,p)=>{if(n.uk()){m.ah(p,olympe.dc.Ve.NONE);for(const [u,w]of n.bi())m.Pf(u,p,w)}else{var r=c.get(p);if(void 0!==r)if(n.R()){n=n.getState().Yv;for(const u of c.T(p,n)){p=c.get(u);const w=(new Map).set(k,
|
|
1136
1136
|
r.version()).set(l,r.source());p.forEach((v,x)=>{const y=x[0],B=x.substr(1);y===d?w.set(B,v):y===e?w.set(x,v):y===f?v.forEach((E,D)=>{m.Kb(B,D,u,0)}):y===g&&v.forEach((E,D)=>{m.Kb(B,u,D,0)})});m.F(u,w,0)}}else{const u=(new Map).set(k,r.version());for(const w of n.Ng().keys()){var t=w[0]===e;const v=t?w.substr(1):w;t=t?r.ta(v,!0):r.nd(v,!0);u.set(w,void 0===t?null:t)}1<u.size&&m.kg(p,u,!0,0);for(const [w,v,x]of n.bi())x?m.Pf(w,p,v):m.Kb(w,p,v)}}});return m}
|
|
1137
1137
|
olympe.dc.db.ZO=class{constructor(a,b,c){this.Y=a;this.C=b;this.R=c;this.F=[];this.O=new Map}Pm(a,b){Lf(this,Mf(this,a,this.F.length),b)}push(a){const b=this.F.indexOf(a);if(-1<b){const c=this.O.get(a);this.F.splice(b,1);Mf(this,c.F,b);this.O.delete(a)}}};function Mg(a,b,c,d){const e=olympe.dc.Nb.DESTINATION;c=c.tag();const f=a.C.ko(c);b.Ng().forEach((g,k)=>{f.ea(k,g);b.La(k)});for(const [g,k,l,m]of b.Ib()){if(!m)continue;const n=k===e?c:l,p=k===e?l:c;a.C.Kb(g,n,p);d.T(g,n,p)}}
|
|
1138
1138
|
function Ng(a,b,c,d){const e=olympe.dc.Nb.DESTINATION,f=c.tag(),g=a.C.ko(f);b.Ng().forEach((k,l)=>{void 0!==c.nd(l)&&(g.ea(l,k),b.La(l))});for(const [k,l,m]of b.bi()){const n=c.Ab(k,e,l);void 0!==n&&(d.T(k,f,l),n===m&&a.C.T(k,f,l))}}
|
|
1139
1139
|
class Kg{constructor(a,b,c){this.F=a;this.C=b;this.source=c;this.db=olympe.dc.fc()}xa(){return this.F.xa()}Pm(a){var b=this.F.C,c=a.C;const d=b.size>c.size,e=d?b:c;b=d?c:b;for(const [g,k]of b){b=g;var f=e.get(b);void 0!==f&&(c=d?f:k,f=d?k:f,f.R()?c.uk()||this.C.R(b,f.getState().Yv):c.R()?(Mg(this,f,c,a),a.R(b,c.getState().Yv)):Ng(this,f,c,a))}return a}};olympe.dc.db.da={Ob:'dc.db.Logger',sb:'dc.db.DatabaseManager',Ox:'dc.db.Database',kd:'dc.db.Driver',FP:'dc.db.Graph',VE:'dc.db.DataProcessor',ZE:'dc.db.DebugProcessor',KZ:'dc.db.PermissionProcessor',nv:'dc.db.GraphMonitor'};olympe.dc.db.za={HF:'db.garbageCollector',nv:'db.monitor',YE:'db.debug'};
|
|
1140
1140
|
olympe.ma.Be(function(a){C(a,olympe.dc.db.za.HF,olympe.dc.db.Zu.C.TJ);C(a,olympe.dc.db.za.nv,!1);C(a,olympe.dc.db.za.YE,!1);A(a,olympe.dc.db.da.Ob,[olympe.rb.da.sb],b=>b.Mg('dc.db'));A(a,olympe.dc.db.da.Ox,[olympe.dc.db.da.Ob,new olympe.ma.Ta(olympe.dc.za.bF),new olympe.ma.Ta(olympe.dc.db.za.HF),new olympe.ma.Ta(olympe.dc.za.Hp),new olympe.ma.Ta(olympe.dc.db.za.YE)],(b,c,d,e,f)=>{d=e?olympe.dc.db.Zu.C.KA:d;c=(new Map).set('defaultSource',c).set('garbageCollector',d).set('debug',f);return new olympe.dc.db.Database(b,
|
|
1141
|
-
c)});A(a,olympe.dc.db.da.kd,[olympe.dc.db.da.sb],b=>b.view);A(a,olympe.dc.db.da.nv,[olympe.dc.db.da.sb],b=>b.hW);z(a,olympe.dc.db.da.ZE,olympe.dc.db.
|
|
1142
|
-
new olympe.ma.Ta(olympe.dc.db.za.nv))},'olympe.dc.db');olympe.ma.run([olympe.dc.db.da.Ox,olympe.dc.db.da.nv],(a,b)=>{olympe.jw().db=a;olympe.jw().dbMonitor=b},'DC.DB debug service injection');olympe.dc.db.
|
|
1141
|
+
c)});A(a,olympe.dc.db.da.kd,[olympe.dc.db.da.sb],b=>b.view);A(a,olympe.dc.db.da.nv,[olympe.dc.db.da.sb],b=>b.hW);z(a,olympe.dc.db.da.ZE,olympe.dc.db.ef.hF,olympe.dc.da.Ob);A(a,olympe.dc.db.da.VE,[olympe.dc.db.da.Ob,olympe.dc.db.da.Ox,olympe.ma.da.zn,new olympe.ma.Ta(olympe.dc.za.ap)],(b,c,d,e)=>{b=new olympe.dc.db.ef.ZK(b,c);e&&(b=new olympe.dc.GB(na(d,olympe.dc.db.da.ZE),b));return b});z(a,olympe.dc.db.da.sb,olympe.dc.db.jP,olympe.dc.db.da.Ob,olympe.dc.db.da.Ox,olympe.dc.da.jk,olympe.dc.db.da.VE,
|
|
1142
|
+
new olympe.ma.Ta(olympe.dc.db.za.nv))},'olympe.dc.db');olympe.ma.run([olympe.dc.db.da.Ox,olympe.dc.db.da.nv],(a,b)=>{olympe.jw().db=a;olympe.jw().dbMonitor=b},'DC.DB debug service injection');olympe.dc.db.ef={};olympe.dc.db.ef.ZK=class{constructor(a,b){this.Y=a;this.C=b;this.buffer=[]}process(a,b,c){this.C.ka();b.rh(this);this.C.$();c(null,b)}F(a,b){this.C.create(a,b)}kg(a,b,c){this.C.update(a,b,c)}ah(a,b=olympe.dc.Ve.NONE){for(const c of this.C.T(a,b))this.C.ah(c)}Kb(a,b,c){this.C.ic(a,b,c)}Pf(a,b,c){this.C.Kc(a,b,c)}};olympe.dc.db.ef.ZK.ua=[olympe.dc.Ep,olympe.dc.ot];function Og(a,b,c){if(!b)return'';let d='';if(c&&1<c)return'...';for(const [e,f]of b)d+=(d?', "':'"')+e+'":',f?f instanceof olympe.dc.gg||f instanceof olympe.dc.CloudObject?d+='new olympe.dc.Reference("'+f.ca()+'")':f instanceof olympe.j.Color?d+='new olympe.df.Color("'+f.rk()+','+f.qk()+','+f.pk()+','+f.al()+'")':f.constructor&&Object.prototype.hasOwnProperty.call(f.constructor.prototype,'toString')?d+=JSON.stringify(f.toString()):'object'===typeof f&&(d+=Og(a,f,(c||0)+1)):d+=JSON.stringify(f);return'{'+
|
|
1143
1143
|
(d?d:'')+'}'}
|
|
1144
|
-
olympe.dc.db.
|
|
1145
|
-
b+'", "'+c+'")',a===olympe.dc.Wf.Uh?'Model':'')}Pf(a,b,c){this.log('deleteRelation("'+a+'", "'+b+'", "'+c+'")',a===olympe.dc.Wf.Uh?'Model':'')}};olympe.dc.db.
|
|
1144
|
+
olympe.dc.db.ef.hF=class{constructor(a){this.Y=a;this.C=''}process(a,b,c){this.C='Patch #'+b.xa()+' (source: '+a+')';b.rh(this);this.Y.info(this.C);this.C='';c(null,b)}log(a,b){this.C+='\ndb.'+a+';'+(b?' // '+b:'')}F(a,b){this.log('createInstance("'+a+'", '+Og(this,b)+')')}kg(a,b){this.log('updateInstance("'+a+'", '+Og(this,b)+')')}ah(a,b){var c=olympe.dc.fc();const d=c.model(a);c=d?c.name(d)+' #'+d:'';this.log('deleteInstance("'+a+'", rule: '+b+')',c)}Kb(a,b,c){this.log('createRelation("'+a+'", "'+
|
|
1145
|
+
b+'", "'+c+'")',a===olympe.dc.Wf.Uh?'Model':'')}Pf(a,b,c){this.log('deleteRelation("'+a+'", "'+b+'", "'+c+'")',a===olympe.dc.Wf.Uh?'Model':'')}};olympe.dc.db.ef.hF.ua=[olympe.dc.ot,olympe.dc.Ep];olympe.dc.transaction={};olympe.dc.Pu=class a{constructor(b,c){this.id=b||olympe.oa.De();this.F=new olympe.j.Od('BurstTransaction#'+this.id,c);this.La=Pg(this);this.V=!1;this.F.onDestroy(()=>this.T());this.ta=new Set;this.O=new Map;this.R=new Set;this.C=null;this.Ea=olympe.ma.getParameter(olympe.dc.transaction.za.uE)||30;this.ka=[]}static C(b,c){return`${b},${c}`}Ib(b){for(const c of this.ka)c(b);this.stop()}Ka(){null!==this.C&&(clearTimeout(this.C),this.C=null);const b=this.$(this.R);0<b.size&&Qg(this,b,!1);this.R.clear()}$(b){const c=
|
|
1146
1146
|
new Map;b.forEach(d=>{const e=d.split(',');let f=c.get(e[0]);void 0===f&&(f=new Map,c.set(e[0],f));f.set(e[1],this.O.get(d))});return c}ga(b,c,d){this.Qa(b,c,d);this.La(b,c,d);null===this.C&&(this.C=setTimeout(this.Ka.bind(this),this.Ea))}Qa(b,c,d){b=a.C(b,c);this.O.set(b,d);this.R.add(b)}Ha(b,c){return this.O.get(a.C(b,c))}push(b,c){const d=olympe.dc.Gb(b);b=c.subscribe(e=>{for(const [f,g]of e)e=olympe.dc.Gb(f),this.Ha(d,e)!==g&&this.ga(d,e,g.valueOf())});this.ta.add(b)}complete(){return new Promise((b,
|
|
1147
1147
|
c)=>{this.T((d,e)=>{for(const f of this.ta)f.unsubscribe();d?b():c(e)})})}update(b,c,d){const e=olympe.dc.Gb(b),f=olympe.dc.Gb(c);void 0===e||void 0===f?olympe.dc.Ut().Eb().error('Burst transaction: instance tag or property tag is undefined'):(this.F.run(()=>{olympe.j.Fg([d],g=>{this.V=!0;g instanceof olympe.dc.gg?olympe.dc.Ut().Eb().error('Cannot send complex property values in burst transactions'):this.ga(e,f,g.valueOf())})}),this.F.Vd(this.T.bind(this)))}stop(){this.F.destroy();this.ka.length=
|
|
1148
1148
|
0}getContext(){return this.F}xa(){return this.id}Rr(){return!1}T(b){if(this.V){this.V=!1;null!==this.C&&(clearTimeout(this.C),this.C=null);this.R.clear();const c=this.$(new Set(this.O.keys()));Qg(this,c,!0,b)}else b&&b(!0,null)}toString(){return'Burst transaction #'+this.id}};olympe.dc.Pu.prototype.complete=olympe.dc.Pu.prototype.complete;olympe.dc.Pu.prototype.push=olympe.dc.Pu.prototype.push;olympe.dc.TI=class{Td(){}toString(){}};olympe.dc.transaction.Bp=class{constructor(a){this.id=a||olympe.oa.Dt();this.Fb=[];this.size=0}xa(){return this.id}ed(){return this.size}concat(a){this.Fb.push(...a.Fb)}rh(a){const b=olympe.dc.transaction.Bp.C,c=this.Fb.length;let d=0;for(;d<c;)switch(this.Fb[d]){case b.KE:a.F(this.Fb[d+1],this.Fb[d+2],this.Fb[d+3]);d+=4;break;case b.mK:a.kg(this.Fb[d+1],this.Fb[d+2],this.Fb[d+3],this.Fb[d+4]);d+=5;break;case b.cF:a.ah(this.Fb[d+1],this.Fb[d+2],this.Fb[d+3]);d+=4;break;case b.LE:a.Kb(this.Fb[d+1],
|
|
1149
|
-
this.Fb[d+2],this.Fb[d+3],this.Fb[d+4]);d+=5;break;case b.dF:a.Pf(this.Fb[d+1],this.Fb[d+2],this.Fb[d+3],this.Fb[d+4]);d+=5;break;default:throw Error('Invalid Patch operations "'+this.Fb[d]+'"');}}F(a,b,c){this.Fb.push(olympe.dc.transaction.Bp.C.KE,a,b,c);this.size++}kg(a,b,c,d){this.Fb.push(olympe.dc.transaction.Bp.C.mK,a,b,c,d);this.size++}ah(a,b=olympe.dc.
|
|
1150
|
-
this.Fb.push(olympe.dc.transaction.Bp.C.LE,a,b,c,d);this.size++}Pf(a,b,c,d){this.Fb.push(olympe.dc.transaction.Bp.C.dF,a,b,c,d);this.size++}};olympe.dc.transaction.Bp.C={KE:1,mK:2,cF:3,LE:4,dF:5};olympe.dc.transaction.Bp.ua=[olympe.dc.ot,olympe.dc.FB];function Rg(a,b){return a.V.get(b)||a.db.source(b)||olympe.dc
|
|
1149
|
+
this.Fb[d+2],this.Fb[d+3],this.Fb[d+4]);d+=5;break;case b.dF:a.Pf(this.Fb[d+1],this.Fb[d+2],this.Fb[d+3],this.Fb[d+4]);d+=5;break;default:throw Error('Invalid Patch operations "'+this.Fb[d]+'"');}}F(a,b,c){this.Fb.push(olympe.dc.transaction.Bp.C.KE,a,b,c);this.size++}kg(a,b,c,d){this.Fb.push(olympe.dc.transaction.Bp.C.mK,a,b,c,d);this.size++}ah(a,b=olympe.dc.Ve.NONE,c){this.Fb.push(olympe.dc.transaction.Bp.C.cF,a,b,c);this.size++}Kb(a,b,c,d){if('string'!==typeof a)throw Error('Relation should be created using a tag as string (most likely a relation object is given here instead)');
|
|
1150
|
+
this.Fb.push(olympe.dc.transaction.Bp.C.LE,a,b,c,d);this.size++}Pf(a,b,c,d){this.Fb.push(olympe.dc.transaction.Bp.C.dF,a,b,c,d);this.size++}};olympe.dc.transaction.Bp.C={KE:1,mK:2,cF:3,LE:4,dF:5};olympe.dc.transaction.Bp.ua=[olympe.dc.ot,olympe.dc.FB];function Rg(a,b){return a.V.get(b)||a.db.source(b)||olympe.dc.Xb.Te}function Sg(a,b){return a.T.has(b)?a.T.get(b):a.db.ro(b)}function Tg(a,b,c,d){var e=d&&d.get(olympe.dc.Jf.VERSION);a.F.set(b,Number(e)||1);d&&a.V.set(b,d.get(olympe.dc.Jf.Hj));e=Rg(a,b);a.T.set(b,c&&a.O);a.hg(e,c,f=>{f.F(b,d,0)})}
|
|
1151
1151
|
olympe.dc.transaction.ZR=class{constructor(a,b){this.id=b||olympe.oa.De();this.db=a;this.C=new Map;this.R=new olympe.dc.db.dg(b);this.F=new Map;this.V=new Map;this.ga={};this.T=new Map;this.O=!0}hj(){return 0===this.R.C.size}ed(){return this.C.size}persist(a){this.O=a}kg(a,b,c=!1){var d=b&&b.get(olympe.dc.Jf.VERSION);this.F.set(a,Number(d)||1);d=Rg(this,a);if(!d)throw Error('Attempt to update an instance which has an unknown source.');this.hg(d,Sg(this,a),e=>{e.kg(a,b,c,0)})}ah(a,b){const c=Rg(this,
|
|
1152
1152
|
a),d=Sg(this,a);this.hg(c,d,e=>{e.ah(a,b)})}Kb(a,b,c){const d=Rg(this,b),e=Rg(this,c);let f=Sg(this,b)&&Sg(this,c);f&&d!==e&&a!==olympe.dc.Wf.Uh&&(olympe.rb.Eb('dc').warn(`Try to create a relation between 2 objects that have different locations: ${b}-[${a}]->${c}`),f=!1);this.hg(d,f,g=>{g.Kb(a,b,c,0)})}Pf(a,b,c){const d=Rg(this,b),e=Rg(this,c);let f=Sg(this,b)&&Sg(this,c);f&&d!==e&&a!==olympe.dc.Wf.Uh&&(olympe.rb.Eb('dc').warn(`Try to delete a relation between 2 objects that have different locations: ${b}-[${a}]->${c}`),
|
|
1153
|
-
f=!1);this.hg(d,f,g=>{g.Pf(a,b,c,0)})}hg(a,b,c){c(this.R);b&&this.O&&(b=this.C.get(a),b||(b=new olympe.dc.db.dg(this.id),this.C.set(a,b)),c(b))}};function Ug(a,b,c){const d=Object.create(null);if(!b)return d;for(const f of Array.from(b.keys()).sort()){let g=f;var e=b.get(f);if(g===olympe.dc.Jf.Hj)if(e===olympe.dc
|
|
1153
|
+
f=!1);this.hg(d,f,g=>{g.Pf(a,b,c,0)})}hg(a,b,c){c(this.R);b&&this.O&&(b=this.C.get(a),b||(b=new olympe.dc.db.dg(this.id),this.C.set(a,b)),c(b))}};function Ug(a,b,c){const d=Object.create(null);if(!b)return d;for(const f of Array.from(b.keys()).sort()){let g=f;var e=b.get(f);if(g===olympe.dc.Jf.Hj)if(e===olympe.dc.Xb.Jd)d[g]=olympe.dc.fc().xa();else{if(e===olympe.dc.Xb.nh)continue}else g.startsWith(olympe.dc.Jf.VERSION)?(g=g.substr(1),e=null===e?1:e):g.startsWith(olympe.dc.Yl.Te)&&(g='fd'+g.substr(1));e=a.ga(e);c&&e instanceof Object&&8===e.c?a.V.set(g,e):d[g]=e}return d}
|
|
1154
1154
|
function Vg(a){if(0===a.V.size)return null;const b=Object.create(null);a.V.forEach((c,d)=>{b[d]=c});a.V.clear();return b}
|
|
1155
1155
|
class Wg{constructor(){this.V=new Map}ga(a){return a instanceof olympe.j.lb||a instanceof olympe.j.ja||a instanceof olympe.j.aa?a.valueOf():a instanceof Date||a instanceof olympe.j.cc?(a=a instanceof olympe.j.cc?a.valueOf():a,{c:4,y:a.getUTCFullYear(),M:a.getUTCMonth()+1,d:a.getUTCDate(),h:a.getUTCHours(),m:a.getUTCMinutes(),s:a.getUTCSeconds(),S:a.getUTCMilliseconds(),z:0}):a instanceof olympe.j.Color?{c:7,r:a.rk().valueOf(),g:a.qk().valueOf(),b:a.pk().valueOf(),a:a.al().valueOf()}:a&&'function'===
|
|
1156
1156
|
typeof a.ca?{c:8,t:a.ca()}:a}}function Xg(a){a.jq=[];a.km=[];a.To=[];a.kq=[];a.Qp=[]}function Yg(a){const b={};0<a.Qp.length&&(b.Qp=a.Qp);0<a.km.length&&(b.km=a.km);0<a.jq.length&&(b.jq=a.jq);0<a.To.length&&(b.To=a.To);0<a.kq.length&&(b.kq=a.kq);Xg(a);return b}function Zg(a){const b=[...a.Qp,...a.km,...a.jq,...a.To,...a.kq];Xg(a);return b}
|
|
@@ -1160,50 +1160,50 @@ l:b,r:c,i:d})}};olympe.dc.transaction.Ui.ua=[olympe.dc.ot];olympe.dc.transaction
|
|
|
1160
1160
|
}Kb(a,b,c){a=new olympe.dc.transaction.gt.Relation(b,c,a);this.O.set(a.toString(),a)}Pf(a,b,c){a=new olympe.dc.transaction.gt.Relation(b,c,a);this.O.delete(a.F+'.'+a.O+'.'+a.C)}ed(){return this.O.size+this.C.size}ej(){return this.C}rh(a){const b=new Map;this.C.forEach((c,d)=>{const e=new Map;$g(c,(f,g)=>{if(g instanceof olympe.dc.gg){const k=b.get(d)||new Map;k.set(f,g);b.set(d,k)}else e.set(f,g)});a.F(d,e)});b.forEach((c,d)=>{a.kg(d,c)});this.O.forEach(c=>{a.Kb(c.C,c.It(),c.Tt())})}};
|
|
1161
1161
|
function $g(a,b){a.Ed.forEach((c,d)=>{b(d,b)})}olympe.dc.transaction.gt.Instance=class{constructor(a){this.tag=a;this.Ed=new Map}ca(){return this.tag}ea(a,b){this.Ed.set(a,b);return this}deleteProperty(a){this.Ed.delete(a);return this}};olympe.dc.transaction.gt.Relation=class{constructor(a,b,c){this.F=a;this.O=b;this.C=olympe.dc.Gb(c)}It(){return this.F}Tt(){return this.O}toString(){return this.F+'.'+this.O+'.'+this.C}};olympe.dc.transaction.gt.ua=[olympe.dc.ot,olympe.dc.FB];function ah(a,b){b&&a.Fb.push(b);return b}function bh(a,b,c,d){c=a.create(c?c:olympe.dc.CloudObject,void 0);if('string'===typeof b)c.setProperty(olympe.dc.CloudObject.nameProp,b||'');else for(let f=Object.keys(b),g=f.length,k=0;k<g;k++)c.setProperty(f[k],b[f[k]]);b=c.ca();d=d||olympe.dc.CloudObject;const e=olympe.dc.CloudObject.extendRel.ca();ah(a,new olympe.dc.transaction.Fb.iF(e,b,!1));ah(a,new olympe.dc.transaction.Fb.HA(e,b,d));return c}function ch(a){return(b,c)=>a.forEach(d=>d&&d(b,c))}
|
|
1162
1162
|
olympe.dc.Qc=class{constructor(a){this.id=a||olympe.oa.De();this.Fb=[];this.F=!0;this.C=[]}xa(){return this.id}persist(a){this.F=a;return this}Td(a){a.persist(this.F);const b=this.Fb;for(let c=0,d=b.length;c<d;c++)b[c].Td(a)}create(a,b){return ah(this,new olympe.dc.transaction.Fb.yj(a,b))}Wr(a,b=!0){const c=olympe.dc.Gb(a);var d=this.Fb.find(g=>g instanceof olympe.dc.transaction.Fb.yj&&g.ca()===c);if(d)return d.persist(b);d=olympe.dc.fc();const e=d.model(a);if(null===e)throw Error('Try to persist a instance that does not exist: '+
|
|
1163
|
-
a);if(d.ro(a))return null;const f=d.source(a)||olympe.dc
|
|
1164
|
-
c,d,e))}pC(a,b,c,d){ah(this,new olympe.dc.transaction.Fb.iF(a,b,c,d))}defineProperty(a,b,c,d,e,f){d=this.create(olympe.dm.Property,f);d.setProperty(olympe.dc.CloudObject.nameProp,c||'');void 0!==e&&this.update(a,olympe.dc.Yl.
|
|
1163
|
+
a);if(d.ro(a))return null;const f=d.source(a)||olympe.dc.Xb.Te;a=this.create(e,a).persist(b).ge(f);for(const [g,k,l]of Fg(d,a))g!==olympe.dc.Wf.Uh&&d.ro(l)&&this.Kb(g,k===olympe.dc.Nb.DESTINATION?a:l,k===olympe.dc.Nb.DESTINATION?l:a);return a}delete(a,b=olympe.dc.Ve.ih){ah(this,new olympe.dc.transaction.Fb.Vx(a,b))}update(a,b,c){return ah(this,new olympe.dc.transaction.Fb.Fv(a,b,c))}Kb(a,b,c){ah(this,new olympe.dc.transaction.Fb.HA(a,b,c))}Pf(a,b,c,d,e){ah(this,new olympe.dc.transaction.Fb.mP(a,b,
|
|
1164
|
+
c,d,e))}pC(a,b,c,d){ah(this,new olympe.dc.transaction.Fb.iF(a,b,c,d))}defineProperty(a,b,c,d,e,f){d=this.create(olympe.dm.Property,f);d.setProperty(olympe.dc.CloudObject.nameProp,c||'');void 0!==e&&this.update(a,olympe.dc.Yl.Te+d.ca(),e);this.Kb(olympe.dc.CloudObject.propertyRel,a,d);this.Kb(olympe.dm.Property.typeRel,d,b);this.Kb(olympe.dc.CloudObject.containsRel,a,d);return d}Ar(a,b,c='',{Rv:d=olympe.dm.Relation.F.zB,Fw:e=olympe.dm.Relation.O,uL:f=olympe.dm.Relation.C.rJ,rL:g=olympe.dm.Relation.C.yA,
|
|
1165
1165
|
Mw:k=olympe.dm.Relation.C.fG}={},l=olympe.oa.De()){l=this.create(olympe.dm.Relation,l);l.setProperty(olympe.dc.CloudObject.nameProp,c||'');l.setProperty(olympe.dm.Relation.gC,d);l.setProperty(olympe.dm.Relation.dD,e);l.setProperty(olympe.dm.Relation.rC,f);l.setProperty(olympe.dm.Relation.qC,g);l.setProperty(olympe.dm.Relation.Xz,k);l.setProperty(olympe.dm.Relation.Xz,k);this.Kb(olympe.dc.CloudObject.R,a,l);this.Kb(olympe.dm.Relation.destinationModelRel,l,b);this.Kb(olympe.dc.CloudObject.containsRel,
|
|
1166
|
-
a,l);return l}Rr(){return!1}cC(a){this.C.push(olympe.j.ib().md(a))}Wc(a,b){a=ch([...this.C,a]);dh(this,a,b)}sC(a){a=ch([...this.C,a]);eh(olympe.dc.Ut(),this,a,!0)}toString(){return`Transaction #${this.id}`}};olympe.dc.Qc.ua=[olympe.dc.TI];function Pg(a){var b=olympe.dc.Ut();const c=a.xa();b.R.set(c,a);a.getContext().onDestroy(()=>{b.R.delete(c)});return(d,e,f)=>{const g=new olympe.dc.db.dg(c);e=(new Map).set(olympe.dc.Jf.VERSION,b.db.version(d)+1).set(e,f);g.kg(d,e,!1,0);olympe.dc.Ai().Pm(g,olympe.dc
|
|
1167
|
-
function Qg(a,b,c,d){var e=olympe.dc.Ut();const f=olympe.dc.Jf.VERSION,g=olympe.dc.bb.eb.Ou,k=olympe.dc.bb.eb.AA,l=a.xa(),m=a.Rr(),n=new Map;for(const r of b.keys()){var p=e.db.source(r);if(p===olympe.dc
|
|
1166
|
+
a,l);return l}Rr(){return!1}cC(a){this.C.push(olympe.j.ib().md(a))}Wc(a,b){a=ch([...this.C,a]);dh(this,a,b)}sC(a){a=ch([...this.C,a]);eh(olympe.dc.Ut(),this,a,!0)}toString(){return`Transaction #${this.id}`}};olympe.dc.Qc.ua=[olympe.dc.TI];function Pg(a){var b=olympe.dc.Ut();const c=a.xa();b.R.set(c,a);a.getContext().onDestroy(()=>{b.R.delete(c)});return(d,e,f)=>{const g=new olympe.dc.db.dg(c);e=(new Map).set(olympe.dc.Jf.VERSION,b.db.version(d)+1).set(e,f);g.kg(d,e,!1,0);olympe.dc.Ai().Pm(g,olympe.dc.Xb.Jd)}}
|
|
1167
|
+
function Qg(a,b,c,d){var e=olympe.dc.Ut();const f=olympe.dc.Jf.VERSION,g=olympe.dc.bb.eb.Ou,k=olympe.dc.bb.eb.AA,l=a.xa(),m=a.Rr(),n=new Map;for(const r of b.keys()){var p=e.db.source(r);if(p===olympe.dc.Xb.Jd)continue;let t=n.get(p);t||(t=new olympe.dc.db.dg(l),n.set(p,t));p=b.get(r);p.set(f,e.db.version(r)+1);t.kg(r,p,!1,0)}for(const [r,t]of n)b=tf(new olympe.dc.bb(c?k:g,{hg:t,Rr:m},[r]),a.getContext()),c&&d&&uf(b,u=>{u?d(!1,u.message):d(!0,null)}),e.O.send(b)}
|
|
1168
1168
|
function dh(a,b,c){var d=olympe.dc.Ut();if(c&&b){const e=a.xa();d.F.set(e,b);eh(d,a,(f,g)=>{f||(d.F.delete(e),b(f,g))},!1)}else eh(d,a,b,!1)}
|
|
1169
|
-
function fh(a){const b=olympe.dc.bb.eb.Yx;a.O.C(olympe.dc.bb.eb.BA,(c,d)=>{c=d.id;var e=d.rollback;d=d.error;const f=a.R.get(c);void 0!==f&&(a.R.delete(c),f.Ib(d));olympe.dc.Ai().Pm(e,olympe.dc
|
|
1169
|
+
function fh(a){const b=olympe.dc.bb.eb.Yx;a.O.C(olympe.dc.bb.eb.BA,(c,d)=>{c=d.id;var e=d.rollback;d=d.error;const f=a.R.get(c);void 0!==f&&(a.R.delete(c),f.Ib(d));olympe.dc.Ai().Pm(e,olympe.dc.Xb.Jd);a.Y.warn(`Fast update (id=${c}) has been refused and is rolled back. Error: ${d}`)});a.O.C(b,(c,d)=>{c=d.finalize;var e=d.error;(d=(d=a.C.get(d.id))&&d.pop())&&d(c,e)})}
|
|
1170
1170
|
function eh(a,b,c,d=!1){const e=olympe.j.ib(),f=c?e.md(c):void 0;c=olympe.dc.Ai();const g=b.xa(),k=new olympe.dc.transaction.ZR(a.db,g);b.Td(k);if(k.hj())f&&f(!0,null);else{a.C.set(g,[]);const l=[],m=[];for(const p of k.F.keys())Sg(k,p)?l.push(p):m.push(p);const n=Jf(c,e,k.R,l,m);gh(a,k,(p,r,t)=>{r?(hh(a,g,l,k.ed()),ih(a,k,d,b.Rr(),(u,w)=>{!u&&a.C.has(g)&&(a.C.get(g).forEach(v=>v(olympe.dc.transaction.Ip.C.uy,w)),jh(a,g));n(u);p&&p(u);f&&f(u,w)})):(a.Y.error(t),n(!1),f&&f(!1,t))})}}
|
|
1171
1171
|
function gh(a,b,c){const d=[];for(const p of b.F.keys())a.db.di(p,olympe.dm.File)&&Sg(b,p)&&d.push(p);if(0===d.length)c(null,!0,null);else{var e=olympe.dm.File.urlProp.ca(),f=olympe.dm.File.F.ca(),g=olympe.dm.File.modificationDateProp.ca(),k=Array.from(b.C.values()),l=[],m=new olympe.async.Cp(olympe.j.ml()),n=olympe.oa.nk();d.forEach(p=>{m.add((r,t)=>{const u=a.db.nd(p,e,!0),w=a.db.nd(p,olympe.dm.File.mimeTypeProp)||'application/data';u.startsWith('blob:')?n.F(u,v=>{n.V(u);null===v?r():pf(a.V,p,v,
|
|
1172
1172
|
w,x=>{const y=k.reduce((B,E)=>B||E.ko(p),null);null!==y&&(y.ea(e,x).ea(f,!0),l.push([p,x]));r()},x=>{t(x)})}):(2048<u.length&&a.Y.error('Trying to create a file with an URL longer than 2048. It likely is a data url and should be an object url. File tag:',p),r())})});Kc(m,(p,r)=>{let t=null;if(p){const u=new olympe.dc.db.dg;l.forEach(([w,v])=>{const x=new Map;x.set(e,v).set(f,!0).set(g,olympe.j.cc.now());u.kg(w,x,!0,0)});t=Jf(olympe.dc.Ai(),olympe.j.ml(),u,[],[])}c(t,p,r)});m.start()}}
|
|
1173
1173
|
function hh(a,b,c,d){const e=olympe.j.ml(),f=new olympe.async.Cp(e);0<a.timeout&&Jc(f,a.timeout);const g=a.C.get(b);for(let k=0;k<d;k++)f.add((l,m,n)=>{g.push(e.md((p,r)=>{n.set('final',p);r?m(r):l()}))});Kc(f,(k,l,m)=>{k||a.Y.warn(`An error occurred while processing the notification of transaction (${b}): ${l}.`);m.get('final')!==olympe.dc.transaction.Ip.C.MI&&olympe.dc.Ai().persist(c);jh(a,b)});f.start()}
|
|
1174
1174
|
function ih(a,b,c,d,e){b=b.C;if(0===b.size)e(!0,null);else{var f=c?olympe.dc.bb.eb.Py:olympe.dc.bb.eb.ht;c=(k,l,m,n)=>{k=uf(new olympe.dc.bb(f,{hg:k,Rr:d},[l]),p=>{p instanceof Error?n(p.message):m()});a.O.send(k)};var g=new olympe.async.Cp(olympe.j.ml());for(const [k,l]of b)g.add(c.bind(null,l,k));Kc(g,e);g.start()}}function jh(a,b){a.C.delete(b);if(0===a.C.size){for(var c of a.T)c();a.T=[]}a.F.has(b)&&(c=a.F.get(b),a.F.delete(b),c(!0,null))}
|
|
1175
1175
|
function kh(a,b){0<a.C.size?a.T.push(olympe.j.ib().md(b)):b()}olympe.dc.transaction.Ip=class{constructor(a,b,c,d,e){this.Y=a;this.db=b;this.O=c;this.V=d;this.timeout=e;this.R=new Map;this.C=new Map;this.T=[];this.F=new Map;fh(this)}Eb(){return this.Y}};olympe.dc.transaction.Ip.C={uy:0,LI:1,MI:2};olympe.dc.transaction.da={Ob:'dc.transaction.Logger',sb:'dc.transaction.Manager'};olympe.dc.transaction.za={TIMEOUT:'dc.transaction.timeout',uE:'dc.transaction.burstInterval'};
|
|
1176
|
-
olympe.ma.Be(function(a){C(a,olympe.dc.transaction.za.TIMEOUT,6E4);C(a,olympe.dc.transaction.za.uE,30);A(a,olympe.dc.transaction.da.Ob,[olympe.rb.da.sb],b=>b.Mg('dc'));z(a,olympe.dc.transaction.da.sb,olympe.dc.transaction.Ip,olympe.dc.transaction.da.Ob,olympe.dc.da.Tu,olympe.dc.da.jk,olympe.dc.da.Wu,new olympe.ma.Ta(olympe.dc.transaction.za.TIMEOUT))},'olympe.dc.transaction');olympe.dc.transaction.Fb={};function lh(a){return olympe.dc.Gb(a)}function mh(a,b){const c=new Map;for(const [d,e]of b)c.set(d,a.Ua(e));return c}olympe.dc.transaction.Fb.Pq=class{Td(){throw Error('Abstract method build() not override !');}toString(){throw Error('Abstract method toString() not override !');}Ua(a){a=olympe.j.Ua(a);return void 0===a||null===a?null:olympe.j.CN(a)?a.valueOf():a}};olympe.dc.transaction.Fb.Pq.ua=[olympe.dc.TI];olympe.dc.transaction.Fb.yj=class extends olympe.dc.transaction.Fb.Pq{constructor(a,b){super();this.tag=void 0!==b?b:olympe.oa.De();this.model=a;this.C=new Map;this.F=!0;this.C.set(olympe.dc.Jf.VERSION,1)}ca(){return lh(this.tag)}
|
|
1177
|
-
a);return this}Td(a){const b=olympe.dc.fc(),c=this.
|
|
1178
|
-
d,c);for(const [g,k,l]of Fg(b,d))Sg(a,l)&&(k===olympe.dc.Nb.ORIGIN?a.Kb(g,l,d):a.Kb(g,d,l))}else b.ue(d)||(Tg(a,d,this.F,mh(this,this.C)),a.Kb(olympe.dc.CloudObject.modelRel.ca(),d,c))}toString(){return`CreateInstance(${this.
|
|
1179
|
-
olympe.dc.transaction.Fb.yj.prototype.getModelTag=olympe.dc.transaction.Fb.yj.prototype.
|
|
1180
|
-
const d=lh(this.F);if(''===d)throw Error('OperationError: Cannot create relation, destination tag is undefined, null or empty string');this.qc()===olympe.dc.Nb.DESTINATION?a.Kb(b,c,d):a.Kb(b,d,c)}toString(){return`CreateRelation('${this.qc()}${lh(this.type)}, ${lh(this.C)}, ${lh(this.F)})`}};olympe.dc.transaction.Fb.qY=class extends olympe.dc.transaction.Fb.Pq{constructor(a,b=olympe.dc.
|
|
1181
|
-
var d=olympe.dc.fc();const e=this.qc(),f=this.R;d=d.wc(c,this.C);for(const g of d)e===olympe.dc.Nb.DESTINATION?a.Pf(b,c,g):a.Pf(b,g,c),null!==f&&0<=f.indexOf(g)||this.O&&(new olympe.dc.transaction.Fb.Vx(g,olympe.dc.
|
|
1182
|
-
this.qc()===olympe.dc.Nb.DESTINATION?a.Pf(b,c,d):a.Pf(b,d,c);this.O&&(new olympe.dc.transaction.Fb.Vx(d,olympe.dc.
|
|
1176
|
+
olympe.ma.Be(function(a){C(a,olympe.dc.transaction.za.TIMEOUT,6E4);C(a,olympe.dc.transaction.za.uE,30);A(a,olympe.dc.transaction.da.Ob,[olympe.rb.da.sb],b=>b.Mg('dc'));z(a,olympe.dc.transaction.da.sb,olympe.dc.transaction.Ip,olympe.dc.transaction.da.Ob,olympe.dc.da.Tu,olympe.dc.da.jk,olympe.dc.da.Wu,new olympe.ma.Ta(olympe.dc.transaction.za.TIMEOUT))},'olympe.dc.transaction');olympe.dc.transaction.Fb={};function lh(a){return olympe.dc.Gb(a)}function mh(a,b){const c=new Map;for(const [d,e]of b)c.set(d,a.Ua(e));return c}olympe.dc.transaction.Fb.Pq=class{Td(){throw Error('Abstract method build() not override !');}toString(){throw Error('Abstract method toString() not override !');}Ua(a){a=olympe.j.Ua(a);return void 0===a||null===a?null:olympe.j.CN(a)?a.valueOf():a}};olympe.dc.transaction.Fb.Pq.ua=[olympe.dc.TI];olympe.dc.transaction.Fb.yj=class extends olympe.dc.transaction.Fb.Pq{constructor(a,b){super();this.tag=void 0!==b?b:olympe.oa.De();this.model=a;this.C=new Map;this.F=!0;this.C.set(olympe.dc.Jf.VERSION,1)}ca(){return lh(this.tag)}Ze(){return lh(this.model)}persist(a){this.F=a;return this}ge(a){this.C.set(olympe.dc.Jf.Hj,a);return this}YV(){this.C.set(olympe.dc.Jf.Hj,olympe.dc.Xb.Jd)}setProperty(a,b){this.C.set(olympe.dc.Gb(a),b);return this}fA(a){this.setProperty(olympe.dc.CloudObject.nameProp.ca(),
|
|
1177
|
+
a);return this}Td(a){const b=olympe.dc.fc(),c=this.Ze(),d=this.ca();if(void 0===c)throw Error('OperationError: Cannot create instance, model tag is undefined');var e=olympe.dc.Jf.Hj;if(!this.C.has(e)){var f=b.source(c);this.C.set(e,null!==f?f:olympe.dc.Xb.Te)}if(b.ue(d)&&!b.ro(d)&&this.F){e=new Map([...b.Ng(d,!0),...mh(this,this.C)]);for(const g of e.values())g instanceof olympe.dc.gg&&!Sg(a,g.ca())&&(f=new olympe.dc.Qc,f.Wr(g.ca()),f.Td(a));Tg(a,d,this.F,e);a.Kb(olympe.dc.CloudObject.modelRel.ca(),
|
|
1178
|
+
d,c);for(const [g,k,l]of Fg(b,d))Sg(a,l)&&(k===olympe.dc.Nb.ORIGIN?a.Kb(g,l,d):a.Kb(g,d,l))}else b.ue(d)||(Tg(a,d,this.F,mh(this,this.C)),a.Kb(olympe.dc.CloudObject.modelRel.ca(),d,c))}toString(){return`CreateInstance(${this.Ze()}, ${this.ca()})`}};olympe.dc.transaction.Fb.yj.prototype.setProperty=olympe.dc.transaction.Fb.yj.prototype.setProperty;olympe.dc.transaction.Fb.yj.prototype.localSource=olympe.dc.transaction.Fb.yj.prototype.YV;olympe.dc.transaction.Fb.yj.prototype.persist=olympe.dc.transaction.Fb.yj.prototype.persist;
|
|
1179
|
+
olympe.dc.transaction.Fb.yj.prototype.getModelTag=olympe.dc.transaction.Fb.yj.prototype.Ze;olympe.dc.transaction.Fb.yj.prototype.getTag=olympe.dc.transaction.Fb.yj.prototype.ca;olympe.dc.transaction.Fb.yj.ua=[olympe.dc.ek];olympe.dc.transaction.Fb.HA=class extends olympe.dc.transaction.Fb.Pq{constructor(a,b,c){super();this.type=a.qc?a:new olympe.dc.wa.Xe(lh(a));this.C=b;this.F=c}qc(){return this.Ua(this.type).qc()}Td(a){const b=lh(this.type);if(''===b)throw Error('OperationError: Cannot create relation, type is undefined, null or empty string');if(b===olympe.dc.Wf.Uh)throw Error('OperationError: Cannot create the instance -> model relation');const c=lh(this.C);if(''===c)throw Error('OperationError: Cannot create relation, origin tag is undefined, null or empty string');
|
|
1180
|
+
const d=lh(this.F);if(''===d)throw Error('OperationError: Cannot create relation, destination tag is undefined, null or empty string');this.qc()===olympe.dc.Nb.DESTINATION?a.Kb(b,c,d):a.Kb(b,d,c)}toString(){return`CreateRelation('${this.qc()}${lh(this.type)}, ${lh(this.C)}, ${lh(this.F)})`}};olympe.dc.transaction.Fb.qY=class extends olympe.dc.transaction.Fb.Pq{constructor(a,b=olympe.dc.Ve.ih){super();this.model=a;this.C=b}Ze(){return lh(this.model)}Td(a){const b=this.Ze();if(void 0===b)throw Error('OperationError: Cannot delete instances of model, model is undefined');const c=olympe.dc.fc();for(const d of c.ej(b))d!==b&&(new olympe.dc.transaction.Fb.Vx(d,this.C)).Td(a)}toString(){return`DeleteAllInstances(${this.Ze()}, ${this.C})`}};olympe.dc.transaction.Fb.iF=class extends olympe.dc.transaction.Fb.Pq{constructor(a,b,c,d){super();this.C=a.qc?a:new olympe.dc.wa.Xe(lh(a));this.F=b;this.O=c||!1;this.R=d instanceof Array?d.map(e=>lh(e)):null}qc(){return this.Ua(this.C).qc()}Td(a){const b=lh(this.C);if(void 0===b)throw Error('OperationError: Cannot delete relation, type is undefined');if(b===olympe.dc.Wf.Uh)throw Error('OperationError: Cannot delete the instance -> model relation');const c=lh(this.F);if(void 0===c)throw Error('OperationError: Cannot delete relation, left tag is undefined');
|
|
1181
|
+
var d=olympe.dc.fc();const e=this.qc(),f=this.R;d=d.wc(c,this.C);for(const g of d)e===olympe.dc.Nb.DESTINATION?a.Pf(b,c,g):a.Pf(b,g,c),null!==f&&0<=f.indexOf(g)||this.O&&(new olympe.dc.transaction.Fb.Vx(g,olympe.dc.Ve.ih)).Td(a)}toString(){return`DeleteAllRelations(${this.qc()}${lh(this.C)}, ${lh(this.F)}, ${this.O})`}};olympe.dc.transaction.Fb.Vx=class extends olympe.dc.transaction.Fb.Pq{constructor(a,b=olympe.dc.Ve.ih){super();this.tag=a;this.C=b}ca(){return lh(this.tag)}Td(a){const b=olympe.dc.fc(),c=this.ca();if(void 0===c)throw Error('OperationError: Cannot delete instance, tag is undefined');const d=b.model(c);0<=b.version(c)&&d&&a.ah(c,this.C)}toString(){return'DeleteInstance('+this.ca()+', '+this.C+')'}};olympe.dc.transaction.Fb.mP=class extends olympe.dc.transaction.Fb.HA{constructor(a,b,c,d=!1,e=!1){super(a,b,c);this.O=d;this.force=e}Td(a){const b=lh(this.type);if(void 0===b)throw Error('OperationError: Cannot delete relation, type is undefined');if(b===olympe.dc.Wf.Uh)throw Error('OperationError: Cannot delete the instance -> model relation');const c=lh(this.C);if(void 0===c)throw Error('OperationError: Cannot delete relation, left tag is undefined');const d=lh(this.F);if(void 0===d)throw Error('OperationError: Cannot delete relation, right tag is undefined');
|
|
1182
|
+
this.qc()===olympe.dc.Nb.DESTINATION?a.Pf(b,c,d):a.Pf(b,d,c);this.O&&(new olympe.dc.transaction.Fb.Vx(d,olympe.dc.Ve.ih)).Td(a)}toString(){return'DeleteRelation('+this.qc()+lh(this.type)+', '+lh(this.C)+', '+lh(this.F)+', '+this.O+')'}};olympe.dc.transaction.Fb.Fv=class extends olympe.dc.transaction.Fb.Pq{constructor(a,b,c){super();this.tag=a;this.C=new Map;this.C.set(olympe.dc.Jf.VERSION,-1);void 0!==b&&this.setProperty(b,c)}ca(){return lh(this.tag)}setProperty(a,b){this.C.set(lh(a),b);return this}Td(a){const b=this.ca();if(void 0===b)throw Error('OperationError: Cannot update instance, tag is undefined');const c=olympe.dc.fc();var d=c.version(b),e=a.F.get(b);e=void 0!==e?e:d;if(null===e)throw Error('OperationError: Instance #'+
|
|
1183
1183
|
b+' not found so it cannot be updated');d=mh(this,this.C);0>=d.get(olympe.dc.Jf.VERSION)&&d.set(olympe.dc.Jf.VERSION,e+1);for(const [f,g]of d)e=c.nd(b,f),e instanceof olympe.dc.gg&&(e=e.ca(),a.ga[e]=!0),g instanceof olympe.dc.gg&&!Sg(a,g.ca())&&(e=new olympe.dc.Qc,e.Wr(g.ca()),e.Td(a));a.kg(b,d)}toString(){return'UpdateInstance('+this.ca()+', '+mh(this,this.C)+')'}};olympe.dc.transaction.Fb.Fv.prototype.setProperty=olympe.dc.transaction.Fb.Fv.prototype.setProperty;
|
|
1184
1184
|
olympe.dc.transaction.Fb.Fv.prototype.getTag=olympe.dc.transaction.Fb.Fv.prototype.ca;olympe.dc.qa={};olympe.dc.ek=class{ca(){}};olympe.dc.ek.prototype.getTag=olympe.dc.ek.prototype.ca;olympe.dc.jZ=olympe.dc.ek;olympe.dc.qa.DB={ASC:'ASC',DESC:'DESC'};function nh(a){switch(a.pr){case 1:const c=a.v;switch(a.t){case 1:var b=c;break;case 2:b=new Date(c);break;case 3:b=olympe.dc.CloudObject.get(c);break;case 4:b=new olympe.j.Color(c.r,c.g,c.b,c.a)}return new olympe.dc.qa.sa.Wg(a.p,b,olympe.dc.fc());case 2:return new olympe.dc.qa.sa.vh(a.p,a.s,olympe.dc.fc(),a.c);case 3:return new olympe.dc.qa.sa.gv(a.p,a.b,a.l,a.s);case 4:return new olympe.dc.qa.sa.ri(nh(a.v));case 5:return new olympe.dc.qa.sa.Xi(a.p,new RegExp(a.r),olympe.dc.fc(),a.c);case 6:b=new olympe.dc.qa.sa.Qn(a.d);
|
|
1185
1185
|
for(const [d,e,f]of a.r)a=new olympe.dc.query.Relation(d,e,f),f?b.$v(a):b.fe(a);return b;case 7:return new olympe.dc.qa.sa.ik(...a.p.map(d=>nh(d)));case 8:return new olympe.dc.qa.sa.$j(...a.p.map(d=>nh(d)));default:return null}}
|
|
1186
1186
|
olympe.dc.qa.Oc=class{observe(){}Wc(){}clear(){}Ya(){}toString(){}static Lc(a,b){return new olympe.dc.qa.sa.Wg(a,b,olympe.dc.fc())}static contains(a,b,c=!1){return new olympe.dc.qa.sa.vh(a,b,olympe.dc.fc(),c)}static JN(a,b,c=!0){return new olympe.dc.qa.sa.Xi(a,b,olympe.dc.fc(),c)}static Ez(a,b,c=!0){return new olympe.dc.qa.sa.gv(a,b,!1,c)}static sx(a,b,c=!0){return new olympe.dc.qa.sa.gv(a,b,!0,c)}static and(...a){return new olympe.dc.qa.sa.$j(...a)}static or(...a){return new olympe.dc.qa.sa.ik(...a)}static Rf(a){return new olympe.dc.qa.sa.ri(a)}};
|
|
1187
|
-
olympe.dc.qa.Oc.not=olympe.dc.qa.Oc.Rf;olympe.dc.qa.Oc.or=olympe.dc.qa.Oc.or;olympe.dc.qa.Oc.and=olympe.dc.qa.Oc.and;olympe.dc.qa.Oc.smallerThan=olympe.dc.qa.Oc.sx;olympe.dc.qa.Oc.greaterThan=olympe.dc.qa.Oc.Ez;olympe.dc.qa.Oc.regex=olympe.dc.qa.Oc.JN;olympe.dc.qa.Oc.contains=olympe.dc.qa.Oc.contains;olympe.dc.qa.Oc.equals=olympe.dc.qa.Oc.Lc;function oh(a,b){return new olympe.dc.Id(a.
|
|
1188
|
-
function rh(a,b){const c=olympe.dc.Ph.SUBSCRIBE,d=olympe.dc.Ph.ct,e=new olympe.dc.Aj(a.
|
|
1189
|
-
olympe.dc.Id=class{constructor(a,b=
|
|
1190
|
-
a,b));return oh(this,c)}hL(){this.
|
|
1191
|
-
a)}observe(a){return wh(olympe.dc.oo(),qh(this),'function'===typeof a.vf?a.vf():a)}$k(){var a=qh(this);return olympe.dc.oo().T.$k(a)}xa(){null===this.id&&(this.id=olympe.oa.yd(this.
|
|
1187
|
+
olympe.dc.qa.Oc.not=olympe.dc.qa.Oc.Rf;olympe.dc.qa.Oc.or=olympe.dc.qa.Oc.or;olympe.dc.qa.Oc.and=olympe.dc.qa.Oc.and;olympe.dc.qa.Oc.smallerThan=olympe.dc.qa.Oc.sx;olympe.dc.qa.Oc.greaterThan=olympe.dc.qa.Oc.Ez;olympe.dc.qa.Oc.regex=olympe.dc.qa.Oc.JN;olympe.dc.qa.Oc.contains=olympe.dc.qa.Oc.contains;olympe.dc.qa.Oc.equals=olympe.dc.qa.Oc.Lc;function oh(a,b){return new olympe.dc.Id(a.F,a.source,b,a.O,{max:a.max,offset:a.offset})}function ph(a){return a.C.filter(b=>b instanceof olympe.dc.qa.Ff.Js||b instanceof olympe.dc.qa.Ff.Ks).length}function qh(a){const b=a.C.findIndex(c=>c instanceof olympe.dc.qa.Ff.Cv);a=0===a.O.size?a.hL():a;if(0<=b&&!a.O.has(b))throw Error('AndReturn was not called for the current level before sortBy operator');return a}
|
|
1188
|
+
function rh(a,b){const c=olympe.dc.Ph.SUBSCRIBE,d=olympe.dc.Ph.ct,e=new olympe.dc.Aj(a.F,b?c:d);for(const f of a.C)f instanceof olympe.dc.qa.Ff.Js?e.fe(f.Bm()):f instanceof olympe.dc.qa.Ff.Ks?e.fe(f.Bm(),!0):f instanceof olympe.dc.qa.Ff.ce&&(a=f.C,a instanceof olympe.dc.qa.sa.Qn&&(a=a.bi(),a.forEach(g=>e.fe(g)),sh(e,a.length)));return e}function th(a){return new olympe.dc.Id(a.r,a.s,a.qp.map(b=>uh(b)),new Set(a.lv),{max:a.lp.m,offset:a.lp.o})}
|
|
1189
|
+
olympe.dc.Id=class{constructor(a,b=null,c=[],d=new Set,e={max:-1,offset:0}){this.db=olympe.dc.fc();this.F=olympe.dc.Gb(a);this.source=b;this.C=c;this.O=d;this.max=-1===e.max?-1:e.max;this.offset=e.offset;this.id=null}static from(a,b){return new olympe.dc.Id(a,b)}static Hz(a,b=olympe.dc.Xb.Te){return(new olympe.dc.Id(a,b)).fe(olympe.dc.CloudObject.instancesRel)}fe(a){const b=Array.from(this.C);b.push(new olympe.dc.qa.Ff.Js(this.db,a));return oh(this,b)}iU(a,b=!1){const c=Array.from(this.C);c.push(new olympe.dc.qa.Ff.Ks(this.db,
|
|
1190
|
+
a,b));return oh(this,c)}hL(){this.O.add(ph(this));return new olympe.dc.Id(this.F,this.source,this.C,this.O,{max:this.max,offset:this.offset})}filter(a){const b=Array.from(this.C);b.push(new olympe.dc.qa.Ff.ce(a));return oh(this,b)}Sv(){return this}XC(a,b=0){return new olympe.dc.Id(this.F,this.source,this.C,this.O,{max:a,offset:b})}Kq(a,b){const c=Array.from(this.C);c.push(new olympe.dc.qa.Ff.Cv(this.db,a,b));return oh(this,c)}Wc(a){return vh(olympe.dc.oo(),qh(this),'function'===typeof a.vf?a.vf():
|
|
1191
|
+
a)}observe(a){return wh(olympe.dc.oo(),qh(this),'function'===typeof a.vf?a.vf():a)}$k(){var a=qh(this);return olympe.dc.oo().T.$k(a)}xa(){null===this.id&&(this.id=olympe.oa.yd(this.F+this.C.reduce((a,b)=>a+b.toString(),'')+Array.from(this.O).toString()+this.offset+this.max));return this.id}Ya(){return{r:this.F,qp:this.C.map(a=>a.Ya()),lv:Array.from(this.O),s:this.source,lp:{m:this.max,o:this.offset}}}};olympe.dc.Id.prototype.executeFromCache=olympe.dc.Id.prototype.$k;
|
|
1192
1192
|
olympe.dc.Id.prototype.observe=olympe.dc.Id.prototype.observe;olympe.dc.Id.prototype.execute=olympe.dc.Id.prototype.Wc;olympe.dc.Id.prototype.sortBy=olympe.dc.Id.prototype.Kq;olympe.dc.Id.prototype.limit=olympe.dc.Id.prototype.XC;olympe.dc.Id.prototype.cast=olympe.dc.Id.prototype.Sv;olympe.dc.Id.prototype.filter=olympe.dc.Id.prototype.filter;olympe.dc.Id.prototype.andReturn=olympe.dc.Id.prototype.hL;olympe.dc.Id.prototype.followRecursively=olympe.dc.Id.prototype.iU;olympe.dc.Id.prototype.follow=olympe.dc.Id.prototype.fe;
|
|
1193
1193
|
olympe.dc.Id.instancesOf=olympe.dc.Id.Hz;olympe.dc.Id.from=olympe.dc.Id.from;function uh(a){const b=olympe.dc.fc();switch(a.t){case 1:return(a=nh(a.p))?new olympe.dc.qa.Ff.ce(a):null;case 2:return new olympe.dc.qa.Ff.Js(b,new olympe.dc.query.Relation(a.r.t,a.r.d,!1));case 3:var c=a.s;return new olympe.dc.qa.Ff.Ks(b,new olympe.dc.query.Relation(a.r.t,a.r.d,!0),c);case 4:return c=a.o,new olympe.dc.qa.Ff.Cv(b,new olympe.dc.ub.Property(a.p),c);default:return null}}olympe.dc.qa.Ay=class{Ya(){}F(){}Wc(){}observe(){}toString(){}};function xh(a){a=Array.from(a.F.values()).flat();return new Set(a.map(b=>b.ca()))}function yh(a){return new Set(a.R.flatMap(b=>b.split('.')))}function zh(a,b){var c=olympe.dc.fc();if(c.ue(a)){b.F(a,c.Ng(a,!0),0);b.Kb(olympe.dc.Wf.Uh,a,c.model(a),0);for(const [d,e,f]of Fg(c,a))(c=b.ko(f))&&c.uk()&&(e===olympe.dc.Nb.DESTINATION?b.Kb(d,a,f,0):b.Kb(d,f,a,0))}else olympe.rb.Eb('Query Result').error(`Fail to serialize instance with tag ${a} not present in local DBView`)}
|
|
1194
|
-
function Ah(a,b,c=olympe.dc
|
|
1194
|
+
function Ah(a,b,c=olympe.dc.Xb.nh){b&&b((new olympe.dc.oa.CB(c)).C(a.p||[]));const d=olympe.dc.fc();let e=!1;b=a.k.map(f=>{const g=f.split('.').map(k=>d.ue(k)?olympe.dc.CloudObject.get(k):(olympe.rb.Eb('QueryResult').error(`CloudObject with tag ${k} not present but required for deserialization`),e=!0,null));return[f,1===g.length?g[0]:g]});return e?null:olympe.dc.Ac.create(b,a.a,a.r)}
|
|
1195
1195
|
olympe.dc.Ac=class{constructor(){this.C=[];this.F=new Map;this.O=[];this.R=[];this.hash=''}static empty(){return new olympe.dc.Ac}[Symbol.iterator](){let a=0;return{next:()=>{var b={done:!0};a<this.C.length&&(b=this.C[a],b={value:[b,this.F.get(b)],done:!1},a++);return b}}}entries(){return this.C.map(a=>[a,this.F.get(a)])}values(){return this.F.values()}keys(){return this.C.values()}hn(){return this.C.map(a=>this.F.get(a))}size(){return this.C.length}has(a){return this.F.has(a)||this.hn().includes(a)}indexOf(a){return null===
|
|
1196
1196
|
a||void 0===a?-1:'string'===typeof a?this.C.indexOf(a):this.hn().indexOf(a)}get(a){return(a=this.F.get(a))?a:null}Pd(){return this.Ch(0)}Ch(a){return a<this.C.length?this.F.get(this.C[a]):null}push(...a){const b=this.hn();b.push(...a);return b}pop(){if(0===this.C.length)return[];const a=this.hn();a.pop();return a}shift(){if(0<this.C.length){const a=this.hn();a.shift();return a}return[]}filter(a){return this.hn().filter(a)}find(a){return(a=this.hn().find(a))?a:null}forEach(a){this.C.forEach((b,c)=>
|
|
1197
|
-
a(this.F.get(b),c))}map(a){return this.hn().map(a)}sort(a){const b=this.entries().sort((c,d)=>a(c[1],d[1]));return olympe.dc.Ac.create(b,Array.from(this.O),Array.from(this.R))}reduce(a,b){return this.hn().reduce(a,b)}concat(...a){const b=[this.entries(),...a.map(d=>d.entries())].flat();let c=Array.from(this.O);for(const d of a)c=c.concat(d.O.map(e=>e+c.length));a=this.R.concat(...a.map(d=>d.R));return olympe.dc.Ac.create(b,c,a)}static from(a,b){const c=olympe.dc.fc();var d=Bh(b);if(b.$i){const {pd:
|
|
1198
|
-
order:
|
|
1199
|
-
|
|
1200
|
-
|
|
1197
|
+
a(this.F.get(b),c))}map(a){return this.hn().map(a)}sort(a){const b=this.entries().sort((c,d)=>a(c[1],d[1]));return olympe.dc.Ac.create(b,Array.from(this.O),Array.from(this.R))}reduce(a,b){return this.hn().reduce(a,b)}concat(...a){const b=[this.entries(),...a.map(d=>d.entries())].flat();let c=Array.from(this.O);for(const d of a)c=c.concat(d.O.map(e=>e+c.length));a=this.R.concat(...a.map(d=>d.R));return olympe.dc.Ac.create(b,c,a)}static from(a,b){const c=olympe.dc.fc();var d=Bh(b);if(b.$i){const {pd:l,
|
|
1198
|
+
order:m,$i:n,MT:p}=b.$i,r=Array.from(b.F).sort().indexOf(p),t=m===olympe.dc.qa.DB.ASC?1:-1;d.sort((u,w)=>{w=w[r];u=c.nd(u[r],l);w=c.nd(w,l);return null===u?-t:null===w?t:t*n(u,w)})}else d.sort((l,m)=>l.reduce((n,p,r)=>n||p.localeCompare(m[r]),0));0<b.offset&&(d=d.slice(b.offset));-1<b.max&&(d=d.slice(0,b.max));b=olympe.oa.yd(d.flat().join(''));if(b===a.hash)return a;d=d.map(l=>[l.join('.'),1===l.length?olympe.dc.CloudObject.get(l[0]):l.map(m=>olympe.dc.CloudObject.get(m))]);const e=new Set(d.map(l=>
|
|
1199
|
+
l[0])),f=new Set(a.keys()),g=[],k=[];d.forEach(([l],m)=>{!f.has(l)&&g.push(m)});f.forEach(l=>{!e.has(l)&&k.push(l)});return olympe.dc.Ac.create(d,g,k,b)}static create(a,b,c,d){const e=new olympe.dc.Ac;e.C=a.map(f=>f[0]);e.F=new Map(a);e.hash=d||olympe.oa.yd(e.C.join(''));e.O=b||e.C.map((f,g)=>g);e.R=c||[];return e}Ya(){const a=new olympe.dc.db.dg;var b=new Set(this.O.flatMap(c=>this.C[c].split('.')));for(const c of b)zh(c,a);b=new olympe.dc.transaction.Ui;a.rh(b);return{k:this.C,p:Zg(b),a:this.O,
|
|
1200
|
+
r:this.R}}};olympe.dc.Ac.prototype.concat=olympe.dc.Ac.prototype.concat;olympe.dc.Ac.prototype.reduce=olympe.dc.Ac.prototype.reduce;olympe.dc.Ac.prototype.sort=olympe.dc.Ac.prototype.sort;olympe.dc.Ac.prototype.map=olympe.dc.Ac.prototype.map;olympe.dc.Ac.prototype.forEach=olympe.dc.Ac.prototype.forEach;olympe.dc.Ac.prototype.find=olympe.dc.Ac.prototype.find;olympe.dc.Ac.prototype.filter=olympe.dc.Ac.prototype.filter;olympe.dc.Ac.prototype.shift=olympe.dc.Ac.prototype.shift;
|
|
1201
1201
|
olympe.dc.Ac.prototype.pop=olympe.dc.Ac.prototype.pop;olympe.dc.Ac.prototype.push=olympe.dc.Ac.prototype.push;olympe.dc.Ac.prototype.getAt=olympe.dc.Ac.prototype.Ch;olympe.dc.Ac.prototype.getFirst=olympe.dc.Ac.prototype.Pd;olympe.dc.Ac.prototype.get=olympe.dc.Ac.prototype.get;olympe.dc.Ac.prototype.indexOf=olympe.dc.Ac.prototype.indexOf;olympe.dc.Ac.prototype.has=olympe.dc.Ac.prototype.has;olympe.dc.Ac.prototype.size=olympe.dc.Ac.prototype.size;olympe.dc.Ac.prototype.toArray=olympe.dc.Ac.prototype.hn;
|
|
1202
|
-
olympe.dc.Ac.prototype.keys=olympe.dc.Ac.prototype.keys;olympe.dc.Ac.prototype.values=olympe.dc.Ac.prototype.values;olympe.dc.Ac.prototype.entries=olympe.dc.Ac.prototype.entries;olympe.dc.Ac.empty=olympe.dc.Ac.empty;function Bh(a){var b=new Set(Ch(a,a.lo()-1).keys());a.C.push((new Map).set('sink',b));b=[];for(const c of Dh(a,'sink',a.lo()-1,''))b.push(c.slice(0,-1).split(';'));a.C.pop();return b}function Eh(a,b,c,d,e){a.$i={$i:b,MT:c,order:d,pd:e}}function Fh(a,b){a.
|
|
1203
|
-
function Dh(a,b,c,d){if(0===c)return a.
|
|
1202
|
+
olympe.dc.Ac.prototype.keys=olympe.dc.Ac.prototype.keys;olympe.dc.Ac.prototype.values=olympe.dc.Ac.prototype.values;olympe.dc.Ac.prototype.entries=olympe.dc.Ac.prototype.entries;olympe.dc.Ac.empty=olympe.dc.Ac.empty;function Bh(a){var b=new Set(Ch(a,a.lo()-1).keys());a.C.push((new Map).set('sink',b));b=[];for(const c of Dh(a,'sink',a.lo()-1,''))b.push(c.slice(0,-1).split(';'));a.C.pop();return b}function Eh(a,b,c,d,e){a.$i={$i:b,MT:c,order:d,pd:e}}function Fh(a,b){a.O=b}function Gh(a){a.O?a.R||(a.R=!0,a.O()):olympe.rb.Eb('dc').error('Trying to notify update for partial result but callback has not been previously set')}function Ch(a,b){return b>=a.lo()?new Map:a.C[b]}
|
|
1203
|
+
function Dh(a,b,c,d){if(0===c)return a.F.has(c)?(b=Array.from(Ch(a,0).keys())[0],(new Set).add(`${b};${d}`)):(new Set).add(d);const e=Hh(a,b,c),f=a.F.has(c)?`${b};${d}`:d;return e.reduce((g,k)=>{for(const l of Dh(a,k,c-1,f))g.add(l);return g},new Set)}function Hh(a,b,c){return 0===c?null:(a=Ch(a,c))&&a.has(b)?Array.from(a.get(b)):null}
|
|
1204
1204
|
function Ih(a,b,c,d){var e=Ch(a,c);if(0<c&&(null===d||!Ch(a,c-1).has(d)))return olympe.rb.Eb('dc').error('Try to insert result entry linked to a non existing parent'),null;if(e.has(b)&&null!==d)return b=e.get(b),e=b.size,b.add(d),b.size>e&&Gh(a),!1;if(c>=a.lo())return olympe.rb.Eb('dc').error('Try to insert result entry to a higher level than possible'),null;c=new Set;null!==d&&c.add(d);e.set(b,c);Gh(a);return!0}
|
|
1205
1205
|
function Jh(a,b,c,d){Ch(a,c+1).forEach((e,f)=>{e.has(d)&&a.remove(f,c+1,b)});Ch(a,c).delete(d);Gh(a)}
|
|
1206
|
-
olympe.dc.qa.eJ=class{constructor(a){this.C=Array.from({length:ph(a)+1},()=>new Map);this.
|
|
1206
|
+
olympe.dc.qa.eJ=class{constructor(a){this.C=Array.from({length:ph(a)+1},()=>new Map);this.F=new Set(Array.from(a.O));this.$i=null;this.R=!1;this.O=null;this.max=a.max;this.offset=a.offset}lo(){return this.C.length}remove(a,b,c){var d=Ch(this,b);if(!d.has(a))return!0;if(0<b&&(null===c||!Ch(this,b-1).has(c)))return olympe.rb.Eb('dc').error('Try to remove result entry linked to a non existing parent'),null;d=d.get(a);c&&d.delete(c);if(1>d.size)return Gh(this),Jh(this,a,b,a),!0;Gh(this);return!1}};olympe.dc.Wi=class{constructor(a){this.query=a}static from(a){return new olympe.dc.Wi(olympe.dc.Id.from(a))}fe(a){return new olympe.dc.Wi(this.query.fe(a))}Sv(){return this}Wc(a){return this.query.Wc(a).then(b=>{const c=b.size();return 1<c?(olympe.rb.Eb('dc').warn('a follow() on a QuerySingle has '+c+' results (0 or 1 expected) -> returns null'),null):b.Pd()||null})}$k(){const a=this.query.$k(),b=a.size();return 1<b?(olympe.rb.Eb('dc').warn('a follow() on a QuerySingle has '+b+' results (0 or 1 expected) -> returns null'),
|
|
1207
1207
|
null):a.Pd()||null}};olympe.dc.Wi.prototype.executeFromCache=olympe.dc.Wi.prototype.$k;olympe.dc.Wi.prototype.execute=olympe.dc.Wi.prototype.Wc;olympe.dc.Wi.prototype.cast=olympe.dc.Wi.prototype.Sv;olympe.dc.Wi.prototype.follow=olympe.dc.Wi.prototype.fe;olympe.dc.qa.sa={};olympe.dc.qa.sa.$j=class{constructor(...a){this.sa=a}Wc(a){return this.sa.reduce((b,c)=>b&&c.Wc(a),!0)}observe(a,b,c){const d=this.sa.map(()=>!1),e=this.sa.map(()=>null),f=(g,k)=>{d[k]=g;g=d.every(l=>l);e[k]!==g&&(e[k]=g,c(g))};this.sa.forEach((g,k)=>{g.observe(a,olympe.oa.yd('AND-'+b+a+k),l=>f(l,k))})}Ya(){return{pr:8,p:this.sa.map(a=>a.Ya())}}toString(){return'And-'+this.sa.reduce((a,b)=>a+'-'+b.toString(),'')}clear(a,b){this.sa.forEach((c,d)=>{c.clear(a,olympe.oa.yd('AND-'+b+a+d))})}};
|
|
1208
1208
|
olympe.dc.qa.sa.$j.C=8;olympe.dc.qa.sa.$j.ua=[olympe.dc.qa.Oc];olympe.dc.qa.sa.vh=class{constructor(a,b,c,d=!1){this.pd=olympe.dc.Gb(a);this.substring=b;this.db=c;this.C=d}nd(){return this.pd}Wc(a){return this.apply(this.db.nd(a,this.pd))}observe(a,b,c){Ag(this.db,a,this.pd,d=>{c(this.apply(d))},olympe.oa.yd(b+a+this.toString()))}apply(a){return'string'===typeof a?this.C?a.includes(this.substring):a.toLowerCase().includes(this.substring.toLowerCase()):!1}toString(){return'Contains'+this.pd+'-'+this.substring+'-'+this.C}clear(a,b){this.db.O(a,this.pd,olympe.oa.yd(b+
|
|
1209
1209
|
a+this.toString()))}Ya(){return{pr:2,p:this.pd,s:this.substring,c:this.C}}};olympe.dc.qa.sa.vh.C=2;olympe.dc.qa.sa.vh.ua=[olympe.dc.qa.Oc];olympe.dc.qa.sa.Wg=class{constructor(a,b,c){this.pd=olympe.dc.Gb(a);this.C=b;this.db=c}Wc(a){return this.apply(this.db.nd(a,this.pd))}observe(a,b,c){Ag(this.db,a,this.pd,d=>{c(this.apply(d))},olympe.oa.yd(b+a+this.toString()))}clear(a,b){this.db.O(a,this.pd,olympe.oa.yd(b+a+this.toString()))}apply(a){return'object'===typeof a&&null!==a?a instanceof olympe.dc.CloudObject?a.Lc(this.C):a instanceof Date?this.C instanceof Date&&this.C.getTime()===a.getTime():a instanceof olympe.j.Color?a.Lc(this.C):!1:
|
|
@@ -1219,15 +1219,15 @@ olympe.dc.qa.Ff.ce.ua=[olympe.dc.qa.Ay];olympe.dc.qa.Ff.Js=class{constructor(a,b
|
|
|
1219
1219
|
olympe.dc.qa.Ff.Js.ua=[olympe.dc.qa.Ay];olympe.dc.qa.Ff.Ks=class{constructor(a,b,c=!1){this.db=a;this.C=b;this.O=c}Bm(){return this.C}F(a){return a+1}Wc(a,b){for(const c of Ch(a,b).keys())this.O&&Ih(a,c,b+1,c),this.db.Am(c,this.C).forEach(d=>{Ih(a,d,b+1,c)})}observe(a,b,c){const d=(g,k,l,m)=>olympe.oa.yd(g+k+l+m+this.toString()),e=new Set,f=(g,k,l,m,n)=>{k=d(k,g,n,l);(this.O||0<l)&&(m?Ih(a,n,b+1,g):a.remove(n,b+1,g))&&c(m,n,g,k);m?e.has(n)||(e.add(n),Dg(this.db,n,this.C,f.bind(this,g,k,l+1),k)):(e.delete(n),this.db.F(n,this.C,k))};return(g,
|
|
1220
1220
|
k,l,m)=>f(k,m,0,g,k)}Ya(){return{t:3,s:this.O,r:{t:this.C.ca(),d:this.C.qc()}}}toString(){return'followRecursivelyQueryPart-'+this.C.qc()+this.C.ca()}};olympe.dc.qa.Ff.Ks.C=3;olympe.dc.qa.Ff.Ks.ua=[olympe.dc.qa.Ay];function Nh(a){a=a.db.we(a.pd,olympe.dm.Property.typeRel);const b=olympe.dc.Gb;if(a===b(olympe.dm.String))return Oh((c,d)=>c.localeCompare(d));if(a===b(olympe.dm.Number)||a===b(olympe.dm.Boolean))return Oh((c,d)=>c-d);if(a===b(olympe.dm.DateTime))return Oh((c,d)=>c.getTime()-d.getTime());olympe.rb.Eb('dc').warn(`No comparator found for type with tag ${a}`);return Oh(()=>-1)}function Oh(a){return(b,c)=>{const d=null===b,e=null===c;return d||e?d&&e?0:d?1:-1:a(b,c)}}
|
|
1221
1221
|
olympe.dc.qa.Ff.Cv=class{constructor(a,b,c){this.db=a;this.pd=b;this.order=c}F(a){return a}Wc(a,b){Eh(a,Nh(this),b,this.order,this.pd)}observe(a,b,c){Eh(a,Nh(this),b,this.order,this.pd);return(d,e,f,g)=>{g=olympe.oa.yd(g+this.toString());d?Ag(this.db,e,this.pd,()=>{Gh(a)},g):this.db.O(e,this.pd,g);c(d,e,f,g)}}Ya(){return{t:4,p:this.pd.ca(),o:this.order}}toString(){return'sortByQueryPart-'+this.order+this.pd.ca()}nd(){return this.pd}};olympe.dc.qa.Ff.Cv.C=4;olympe.dc.qa.Ff.Cv.ua=[olympe.dc.qa.Ay];olympe.dc.query={};function Ph(a,b,c,d){let e=a.C.get(b);void 0===e&&(e=new Set,a.C.set(b,e));a=olympe.oa.De();e.add(a);d.set(a,c)}function Qh(a,b,c){Ph(a,b,c,a.F)}function Rh(a,b,c){if(a.C.has(b)){for(const d of a.C.get(b))c.delete(d);a.C.delete(b)}}function Sh(a,b,c,d,e){if(a.C.has(b)){if(!a.R.has(b)){a.R.add(b);for(const f of a.C.get(b))e=d.get(f),d.delete(f),c instanceof olympe.dc.query.Xv.ey?e(Error(c.ga()),c):'string'===typeof c?e(Error(c),null):e(null,c);a.C.delete(b);a.R.delete(b)}}else a.Y.warn(e)}
|
|
1222
|
-
function Th(a,b,c){Sh(a,b,c,a.F,`Graph result of graphdef ${b} has no associated handler in the datacloud`)}function Uh(a,b,c){Ph(a,b,c,a.O)}olympe.dc.query.YO=class{constructor(a){this.Y=a;this.C=new Map;this.F=new Map;this.O=new Map;this.R=new Set}};olympe.dc.Pl=class{Sa(){}R(){}O(){}T(){}Ya(){}toString(){}};olympe.dc.Ph={SUBSCRIBE:0,ct:1,HB:2,h_:0,GET:1};olympe.dc.Ph.toString=function(a){for(const [b,c]of Object.entries(olympe.dc.Ph))if(c===a)return b;return null};function sh(a,b=1){a.validate(olympe.dc.
|
|
1222
|
+
function Th(a,b,c){Sh(a,b,c,a.F,`Graph result of graphdef ${b} has no associated handler in the datacloud`)}function Uh(a,b,c){Ph(a,b,c,a.O)}olympe.dc.query.YO=class{constructor(a){this.Y=a;this.C=new Map;this.F=new Map;this.O=new Map;this.R=new Set}};olympe.dc.Pl=class{Sa(){}R(){}O(){}T(){}Ya(){}toString(){}};olympe.dc.Ph={SUBSCRIBE:0,ct:1,HB:2,h_:0,GET:1};olympe.dc.Ph.toString=function(a){for(const [b,c]of Object.entries(olympe.dc.Ph))if(c===a)return b;return null};function sh(a,b=1){a.validate(olympe.dc.Ve.NONE,'back');let c=a.V;for(let d=0;d<b&&null!==c;d++)c=a.F.get(c.F)||null;a.V=c}function Vh(a){return'not_defined'===a.C?olympe.dc.Ve.NONE:a.C}function Wh(a,b){a.validate(b,'activateFollowRules');return a}function Xh(a){return'not_defined'!==a.C&&a.C!==olympe.dc.Ve.NONE}
|
|
1223
1223
|
function Yh(a){if(Xh(a))throw Error('An implicit GraphDef has no blocks');return a.F.values()}
|
|
1224
1224
|
function Zh(a,b,c){c=new olympe.dc.query.Relation(b.ca(),b.qc(),c||b instanceof olympe.dc.wa.fg);b=[];var d;for(var e of $h(a)){if(d=a.F.get(e)){var f=new olympe.dc.query.dy(c,d.id);d.children.has(f.xa())?d=d.children.get(f.xa()):(d.children.set(f.xa(),f),d=f)}else{d=a;var g=c;const k=olympe.oa.yd(d.O);f=olympe.oa.yd(k+g.toString());g=d.F.get(f)||new olympe.dc.query.dy(g,k);d.T.set(f,g);d=g}f=d.xa();a.F.set(f,d);b.push(f)}e=b[0];a.ka.set(e,b);return a.F.get(e)}
|
|
1225
1225
|
function ai(a,b){if(Xh(a))a.ga.push(b);else throw Error('You cannot add a "skip predicate" to an explicit graphdef. Please activate a follow rule first.');return a}function bi(a,b){a.$=b;return a}function ci(a,b){return Xh(a)?new olympe.dc.query.fB(a.clone(),b||olympe.j.ib()):new olympe.dc.query.cy(a.clone(),b||olympe.j.ib())}
|
|
1226
1226
|
function $h(a){let b=a.V;const c=[];for(;b&&b.Bm().recursive;)c.push(b.xa()),b=a.F.get(b.F)||null;c.push(b&&b.xa()||olympe.oa.yd(a.O));const d=[];c.slice(0,5).forEach(e=>{d.push(...a.ka.get(e))});return d}
|
|
1227
|
-
olympe.dc.Aj=class{constructor(a,b=olympe.dc.Ph.SUBSCRIBE){if(void 0===a||null===a)throw Error('Cannot create GraphDef with undefined or null baseTag');this.O=olympe.dc.Gb(a);this.R=b;this.C='not_defined';this.ga=[];this.V=null;this.T=new Map;this.F=new Map;this.$=null;this.ka=(new Map).set(olympe.oa.yd(this.O),[olympe.oa.yd(this.O)])}static ah(a,b){olympe.dc.Aj.km([a],b)}static km(a,b){const c=new olympe.dc.Qc;a.forEach(d=>c.delete(d,olympe.dc.
|
|
1227
|
+
olympe.dc.Aj=class{constructor(a,b=olympe.dc.Ph.SUBSCRIBE){if(void 0===a||null===a)throw Error('Cannot create GraphDef with undefined or null baseTag');this.O=olympe.dc.Gb(a);this.R=b;this.C='not_defined';this.ga=[];this.V=null;this.T=new Map;this.F=new Map;this.$=null;this.ka=(new Map).set(olympe.oa.yd(this.O),[olympe.oa.yd(this.O)])}static ah(a,b){olympe.dc.Aj.km([a],b)}static km(a,b){const c=new olympe.dc.Qc;a.forEach(d=>c.delete(d,olympe.dc.Ve.ih));c.Wc(b)}toJSON(){const a=Object.create(null),
|
|
1228
1228
|
b=c=>{const d=Object.create(null),e=c.Bm();d.t=e.ca();d.d=e.qc();d.r=e.recursive;d.c=c.Dr().map(b);return d};a.t=this.O;a.o=this.R;a.f=Vh(this);a.b=Array.from(this.T.keys()).map(c=>b(this.F.get(c)));return JSON.stringify(a)}static gf(a){a='string'===typeof a?JSON.parse(a):a;const b=Wh(new olympe.dc.Aj(a.t,a.o),a.f),c=d=>{const e=new olympe.dc.ub.Relation(d.t,d.d);b.fe(e,d.r);for(const f of d.c)c(f);sh(b)};for(const d of a.b)c(d);return b}xa(){const a=olympe.oa.yd,b=d=>d.xa()+d.Dr().map(e=>b(e)).sort().join(''),
|
|
1229
|
-
c=Array.from(this.T,([,d])=>b(d)).sort().join('');return a(`${this.R}-${this.O}${c}-${Vh(this)}`)}add(a,b=!1){this.validate(olympe.dc.
|
|
1230
|
-
break;case olympe.dc.Ph.HB:fi(b,this,a);break;default:throw Error('Wrong graph operation');}}validate(a,b){if('not_defined'!==this.C&&this.C!==a)throw Error(this.C!==olympe.dc.
|
|
1229
|
+
c=Array.from(this.T,([,d])=>b(d)).sort().join('');return a(`${this.R}-${this.O}${c}-${Vh(this)}`)}add(a,b=!1){this.validate(olympe.dc.Ve.NONE,'add');Zh(this,a,b);return this}fe(a,b=!1){this.validate(olympe.dc.Ve.NONE,'follow');this.V=Zh(this,a,b);return this}Wc(a=b=>b){'not_defined'===this.C&&(this.C=olympe.dc.Ve.NONE);const b=olympe.dc.oo();a=olympe.j.ib().md(a);switch(this.R){case olympe.dc.Ph.SUBSCRIBE:case olympe.dc.Ph.ct:const c=di(b,this,a);olympe.j.ib().Vd(()=>{ei(olympe.dc.oo(),c.xa())});
|
|
1230
|
+
break;case olympe.dc.Ph.HB:fi(b,this,a);break;default:throw Error('Wrong graph operation');}}validate(a,b){if('not_defined'!==this.C&&this.C!==a)throw Error(this.C!==olympe.dc.Ve.NONE?`Method ${b} can't be called on an implicit Graphdef`:`Method ${b} can't be called on an explicit Graphdef`);this.C=a}clone(){const a=new olympe.dc.Aj(this.O,this.R);a.C=this.C;for(const [b,c]of this.T)a.T.set(b,c);for(const [b,c]of this.F)a.F.set(b,c);a.$=this.$;a.ga=[...this.ga];return a}};function gi(a,b){a.C.forEach((c,d)=>b(d,c.add,c.remove))}olympe.dc.query.KP=class{constructor(a,b){this.id=a;this.C=new Map;this.data=b}ez(a){this.data.rh(a.data);this.C.forEach((b,c)=>{if(a.C.has(c))c=a.C.get(c),c.add.push(...b.add),c.remove.push(...b.remove);else{var d=b.remove;const e=new hi(c);e.add=b.add;e.remove=d;a.C.set(c,e)}})}xa(){return this.id}};class hi{constructor(a){this.id=a;this.add=[];this.remove=[]}xa(){return this.id}};function ii(a){return(a=a.C)&&olympe.dc.fc().source(a)||olympe.dc.Xb.nh}function ji(a){return Array.from(a.ta,b=>a.F.get(b))}function ki(a){if(!a.R){for(const b of a.T.values())b();a.T.clear();a.R=!0}}
|
|
1231
1231
|
olympe.dc.query.cy=class{constructor(a,b){this.Qr=a;this.C=a.O;this.id=a.xa();this.ga=new olympe.j.Od(`GraphSubscription ${this.id}`,b);this.Y=olympe.rb.Eb('dc.query');this.ta=[];this.F=new Map;this.R=!1;this.T=new Map;b=olympe.oa.yd(this.C);if(!Xh(a))for(const c of Yh(a))this.F.set(c.xa(),c),c.F===b&&this.ta.push(c.xa())}xa(){return this.id}Mm(a,b){b=b||olympe.oa.De();this.R?a():this.T.set(b,olympe.j.ib().md(a));return b}Dw(a){return this.T.delete(a)}onDestroy(a){this.ga.onDestroy(a)}vc(){this.ga.destroy()}V(){return function*(a,
|
|
1232
1232
|
b){yield a;for(const c of b)yield*c.ej()}(this.C,this.F.values())}$(a){const b=olympe.oa.yd(this.C);li(a,(c,d)=>{if(b!==c)if(c=this.F.get(c),void 0===c)this.Y.error('Try to apply a block result that does not exists in the original query');else for(const e of d)c.C.add(e)})}ka(a){let b=[],c=[];const d=olympe.oa.yd(this.C);gi(a,(e,f,g)=>{const k=d===e,l=this.F.get(e);k||void 0!==l?k?(b.push(...f),c.push(...g)):(b=b.concat(f.filter(m=>{l.C.has(m)?m=!1:(l.C.add(m),m=!0);return m})),c=c.concat(g.filter(m=>
|
|
1233
1233
|
l.C.delete(m)))):this.Y.error(`A notification contains a block ${e} which is not present in the current graph query ${this.id}`)});Of(olympe.dc.Ai(),b,c)}pL(a){const b=a.C,c=[],d=this.C;d===b&&c.push(olympe.oa.yd(d));this.F.forEach((l,m)=>{l.C.has(b)&&c.push(m)});const e=olympe.oa.yd,f=this.F,g=(l,m)=>{const n=m.Bm(),p=[e(l+n),e(l+new olympe.dc.query.Relation(n.tag,n.direction,!0))].filter(r=>f.has(r));return 0<p.length?m.Dr().reduce((r,t)=>r&&g(p[0],t),!0):!1},k=ji(a);return void 0!==c.find(l=>{for(const m of k)if(!g(l,
|
|
@@ -1258,49 +1258,49 @@ d),new olympe.dc.hb.Li(b),c))}di(a){if(!(a instanceof Array))throw new zi('insta
|
|
|
1258
1258
|
b){if(!(a instanceof Array))throw new zi('hasRelated','Provided argument "relations" must be an array.');const c=[],d=[];a.forEach(e=>{c.push(e);d.push(e.qc())});return this.lm(new olympe.dc.sa.Xl(c,d,b))}Ez(a,b,c){a=xi(a,c);return this.lm(new olympe.dc.sa.Lk(a,new olympe.dc.hb.Li(b)))}sx(a,b,c){a=xi(a,c);return this.lm(new olympe.dc.sa.Vk(a,new olympe.dc.hb.Li(b)))}eW(a,b,c,d){a=xi(a,d);return this.lm(new olympe.dc.sa.Xi(a,b,c))}filter(a){const b=new class extends olympe.dc.sa.Oq{C(c,d){return a(olympe.dc.CloudObject.get(d))}};
|
|
1259
1259
|
return this.lm(b)}Rf(){this.Fb.push(wi.OA);return this}and(){this.wa[this.wa.length-1]instanceof olympe.dc.wa.ce&&this.Fb.push(wi.AF);return this}or(){this.wa[this.wa.length-1]instanceof olympe.dc.wa.ce&&this.Fb.push(wi.BF);return this}Kq(a,b,c){a=yi(a);let d=null;switch(olympe.dc.fc().we(a,olympe.dm.Property.typeRel)){case olympe.dm.String.U.ca():d=new olympe.dc.ie.String(new olympe.dc.hb.lk(a,c));break;case olympe.dm.Number.U.ca():d=new olympe.dc.ie.Number(new olympe.dc.hb.Ej(a,c));break;case olympe.dm.DateTime.U.ca():d=
|
|
1260
1260
|
new olympe.dc.ie.DateTime(new olympe.dc.hb.bk(a,c))}c=d;null!==c&&this.wa.push(new olympe.dc.wa.wi(c,b));return this}sort(a,b,c){const d=new class extends olympe.dc.ie.Oq{R(e,f){return a(olympe.dc.CloudObject.get(f))}O(e,f){return b(e,f).valueOf()}};this.wa.push(new olympe.dc.wa.wi(d,c));return this}YT(){this.wa.push(new olympe.dc.wa.Hk);return this}XC(a,b){this.wa.push(new olympe.dc.wa.Dj(a,b));return this}};class zi extends Error{constructor(a,b){super(`ListDefBuilder.${a}(): ${b}`)}}
|
|
1261
|
-
function yi(a){return'string'===typeof a||a instanceof olympe.j.lb?a:'function'===typeof a?olympe.dc.Ra.
|
|
1262
|
-
h.lm.K=olympe.j.J.C([]);h.cU.K=olympe.j.J.C([]);h.contains.K=olympe.j.J.C([]);h.di.K=olympe.j.J.C([]);h.Gz.K=olympe.j.J.C([]);h.dU.K=olympe.j.J.C([]);h.vw.K=olympe.j.J.C([]);h.Ez.K=olympe.j.J.C([]);h.sx.K=olympe.j.J.C([]);h.eW.K=olympe.j.J.C([]);h.filter.K=olympe.j.J.C([]);h.Rf.K=olympe.j.J.C([]);h.and.K=olympe.j.J.C([]);h.or.K=olympe.j.J.C([]);h.Kq.K=olympe.j.J.C([]);h.sort.K=olympe.j.J.C([]);h.YT.K=olympe.j.J.C([]);h.XC.K=olympe.j.J.C([]);olympe.dc.query.vI=class{constructor(a){this.id=a;this.C=[];this.data=new olympe.dc.db.dg}F(a){this.C.push(olympe.dc.Gb(a))}xa(){return this.id}};function Ai(a){return olympe.j.mc(a)?'Node#'+a.
|
|
1263
|
-
olympe.dc.query.YR=class{constructor(){this.uid=0;this.values=null}add(a){let b;b=olympe.j.mc(a)?'n'+a.
|
|
1264
|
-
function di(a,b,c){var d=olympe.dc
|
|
1265
|
-
l),a.Y.debug('QueryManager: [ID:',e,'] sending GraphQuery to',g),a.C.send(b));return f}function ei(a,b){var c=olympe.dc
|
|
1266
|
-
function fi(a,b,c){var d=olympe.dc
|
|
1267
|
-
function ui(a,b){var c=olympe.dc
|
|
1268
|
-
function vi(a,b){var c=olympe.dc
|
|
1269
|
-
function Ji(a){const b=olympe.dc.bb.eb.NF,c=olympe.dc.bb.eb.Px,d=olympe.dc.bb.eb.oI;a.C.C(olympe.dc.bb.eb.TA,(e,f)=>{Ki(a,f,e)});a.C.C(b,(e,f)=>{Li(a,f,e)});a.C.C(c,(e,f)=>{a.ga.Pm(f,e)});a.C.C(d,(e,f)=>{Mi(a,f,e)});a.C.ka((e,f)=>{Ni(a,f,e)})}function Oi(a,b){a.Y.log('Received subscribeToAll command');b=b?olympe.j.ib().md(b):void 0;const c=new olympe.dc.bb(olympe.dc.bb.eb.Wq,null,[olympe.dc
|
|
1270
|
-
function Ki(a,b,c=olympe.dc
|
|
1271
|
-
function Li(a,b,c=olympe.dc
|
|
1272
|
-
function Mi(a,b,c=olympe.dc
|
|
1261
|
+
function yi(a){return'string'===typeof a||a instanceof olympe.j.lb?a:'function'===typeof a?olympe.dc.Ra.Ze(a):olympe.j.mc(a)?a.Yy===olympe.j.lb?a:olympe.j.fb([a],b=>olympe.j.jc(olympe.dc.Gb(b)),olympe.j.lb):a.ca()}h=olympe.dc.hr.prototype;h.Td.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.transform.K=olympe.j.J.C([]);h.Gu.K=olympe.j.J.C([]);h.JX.K=olympe.j.J.C([]);h.UQ.K=olympe.j.J.C([]);h.fe.K=olympe.j.J.C([]);h.wL.K=olympe.j.J.C([]);h.$v.K=olympe.j.J.C([]);h.hU.K=olympe.j.J.C([]);h.lI.K=olympe.j.J.C([]);
|
|
1262
|
+
h.lm.K=olympe.j.J.C([]);h.cU.K=olympe.j.J.C([]);h.contains.K=olympe.j.J.C([]);h.di.K=olympe.j.J.C([]);h.Gz.K=olympe.j.J.C([]);h.dU.K=olympe.j.J.C([]);h.vw.K=olympe.j.J.C([]);h.Ez.K=olympe.j.J.C([]);h.sx.K=olympe.j.J.C([]);h.eW.K=olympe.j.J.C([]);h.filter.K=olympe.j.J.C([]);h.Rf.K=olympe.j.J.C([]);h.and.K=olympe.j.J.C([]);h.or.K=olympe.j.J.C([]);h.Kq.K=olympe.j.J.C([]);h.sort.K=olympe.j.J.C([]);h.YT.K=olympe.j.J.C([]);h.XC.K=olympe.j.J.C([]);olympe.dc.query.vI=class{constructor(a){this.id=a;this.C=[];this.data=new olympe.dc.db.dg}F(a){this.C.push(olympe.dc.Gb(a))}xa(){return this.id}};function Ai(a){return olympe.j.mc(a)?'Node#'+a.Zb.xa():String(a)}function Bi(a,b){return olympe.j.mc(b)?'{"c":"Parameter","v":"'+a.add(b)+'"}':JSON.stringify(b)}
|
|
1263
|
+
olympe.dc.query.YR=class{constructor(){this.uid=0;this.values=null}add(a){let b;b=olympe.j.mc(a)?'n'+a.Zb.xa():'p'+ ++this.uid;null===this.values&&(this.values={});this.values[b]=a;return b}get(a){return this.values[a]}clear(){const a=this.values;if(null!==a)for(let b=Object.keys(a),c=b.length,d=0;d<c;d++)delete a[b[d]]}forEach(a){const b=this.values;if(null!==b)for(let c=Object.keys(b),d=c.length,e=0;e<d;e++)a(b[c[e]],c[e])}};olympe.dc.Oc=class{Sa(){}C(){}F(){}Ya(){}toString(){}};function vh(a,b,c){return c.run(()=>a.T.Wc(b,c))}function wh(a,b,c){return c.run(()=>Ci(a.T,b,c))}
|
|
1264
|
+
function di(a,b,c){var d=olympe.dc.Xb.Jd;const e=b.xa();let f=Di(a.ub,e),g=olympe.dc.Xb.Jd;null===f&&(f=ci(b,a.O),a.R||(g=ii(f)));Ei(a.ub,f,d,g);c&&Qh(a.F,e,c);b=olympe.dc.bb.eb.Yu;const k=olympe.dc.bb.eb.Xu,l=m=>{if(null!==m){a.Y.error(`graph subscription "${e}" failed to subscribe ${m}`);Fi(a.ub,e,d);var n=a.F;Rh(n,e,n.F);c(m,null)}};g===olympe.dc.Xb.Jd?(a.Y.debug('QueryManager: [ID:',e,'] GraphQuery processed locally'),a.V.process(d,f,l)):(b=uf(new olympe.dc.bb(f.Qr.R===olympe.dc.Ph.ct?k:b,f,[g]),
|
|
1265
|
+
l),a.Y.debug('QueryManager: [ID:',e,'] sending GraphQuery to',g),a.C.send(b));return f}function ei(a,b){var c=olympe.dc.Xb.Jd;const d=olympe.dc.Xb.Jd;if(c===d){const e=Di(a.ub,b).Qr.R,f=Gi(a.ub,b);Fi(a.ub,b,c)&&f!==d&&e===olympe.dc.Ph.SUBSCRIBE&&(c=uf(new olympe.dc.bb(olympe.dc.bb.eb.MF,String(b),[f]),g=>{g&&a.Y.error(`Unsubscription of graphdef ${b} failed: ${g.message}`)}),a.C.send(c))}else Fi(a.ub,b,c)}
|
|
1266
|
+
function fi(a,b,c){var d=olympe.dc.Xb.Jd;b=ci(b,a.O);const e=b.xa();var f=a.F.C.has(e);c&&Qh(a.F,e,c);if(!f){f=k=>{if(k){var l=a.F;Rh(l,e,l.F);c(k,null)}};var g=ii(b);g===olympe.dc.Xb.Jd?a.V.process(d,b,f):(d=uf(new olympe.dc.bb(olympe.dc.bb.eb.Xu,b,[g]),f),a.C.send(d))}}
|
|
1267
|
+
function ui(a,b){var c=olympe.dc.Xb.Jd;const d=b.bj();var e=new olympe.dc.query.YR;let f;f=d;olympe.j.mc(f)&&(f=e.add(d));b=(b=b.nB())?Array.isArray(b)?b:[b]:null;const g=olympe.dc.query.Subscription.O(f,b,e);e=Hi(a.ub,g);null===e&&(a.Y.debug('QueryMGR: new',a.R?'local':'remote','subscription "',g,'": #',`${f},`,b),e=new olympe.dc.query.Subscription(g,d,b,a.O),a.R||e.ic());a.Qa.process(c,e,k=>{k&&(Ii(a.ub,g,c||olympe.dc.Xb.Jd),a.Y.error(`subscription "${g}" failed to subscribe ${k}`))});return e}
|
|
1268
|
+
function vi(a,b){var c=olympe.dc.Xb.Jd;if(c===olympe.dc.Xb.Jd){const d=Gi(a.ub,b);a.Y.debug('QueryMGR: [ID:',b,'] - Unregistered');Ii(a.ub,b,c)&&d!==olympe.dc.Xb.Jd&&(c=uf(new olympe.dc.bb(olympe.dc.bb.eb.ES,String(b),[d]),e=>{e&&a.Y.error(`Unsubscription of listdef ${b} failed, ${e.message}`)}),a.C.send(c))}else Ii(a.ub,b,c)}
|
|
1269
|
+
function Ji(a){const b=olympe.dc.bb.eb.NF,c=olympe.dc.bb.eb.Px,d=olympe.dc.bb.eb.oI;a.C.C(olympe.dc.bb.eb.TA,(e,f)=>{Ki(a,f,e)});a.C.C(b,(e,f)=>{Li(a,f,e)});a.C.C(c,(e,f)=>{a.ga.Pm(f,e)});a.C.C(d,(e,f)=>{Mi(a,f,e)});a.C.ka((e,f)=>{Ni(a,f,e)})}function Oi(a,b){a.Y.log('Received subscribeToAll command');b=b?olympe.j.ib().md(b):void 0;const c=new olympe.dc.bb(olympe.dc.bb.eb.Wq,null,[olympe.dc.Xb.nh]);b&&uf(c,b);a.C.send(c)}
|
|
1270
|
+
function Ki(a,b,c=olympe.dc.Xb.Jd){b.destination!==olympe.dc.Xb.Jd?a.Y.error(`Graphdefs registered from peers is not supported yet ! (id: ${b.xa()})`):a.ka.process(c,b,d=>{d&&a.Y.error(`An error occurred during the process of a graphdef result ${b.xa()}: ${d.message}`)})}
|
|
1271
|
+
function Li(a,b,c=olympe.dc.Xb.Jd){const d=Pi(a.ub,b.xa());0!==d.length&&(1<d.length||d[0]!==olympe.dc.Xb.Jd?a.Y.error(`Notification received for graphdefs subscription registered from peers. Not supported yet ! (id: ${b.xa()})`):a.$.process(c,b,e=>{e&&a.Y.error(`An error occurred during the process of a graphNotification ${b.xa()}`)}))}
|
|
1272
|
+
function Mi(a,b,c=olympe.dc.Xb.Jd){const d=Qi(a.ub,b.xa());1<d.length||d[0]!==olympe.dc.Xb.Jd?a.Y.error(`Listdefs registered from peers is not supported yet ! (id: ${b.xa()})`):a.ta.process(c,b,e=>{e&&a.Y.error(`An error occurred during the process of a listNotification ${b.xa()}`)})}
|
|
1273
1273
|
function Ni(a,b,c){a.Y.debug('Source event',b,'received for source',c);if(b===olympe.dc.Ly.NI){const d=(e,f)=>{f&&a.Y.error(`Error after trying to resubscribe to ${e}: ${f}`)};Ri(a.ub,c).forEach(e=>{Qh(a.F,e.xa(),d.bind(a,e.xa()));a.Y.debug(`resubscribing graph subscription ${e.xa()} to destination : ${c}`);e=uf(new olympe.dc.bb(olympe.dc.bb.eb.Yu,e,[c]),d.bind(a,e.xa()));a.C.send(e)});Si(a.ub,c).forEach(e=>{a.Y.debug(`resubscribing list subscription ${e.xa()} to destination : ${c}`);e=uf(new olympe.dc.bb(olympe.dc.bb.eb.CS,
|
|
1274
|
-
e,[c]),d.bind(a,e.xa()));a.C.send(e)})}}olympe.dc.query.cS=class{constructor(a,b,c,d,e,f,g,k){this.Y=a;this.R=b;this.C=c;this.ga=d;this.ub=e;this.F=f;this.O=new olympe.j.Od('Query Manager context');this.Qa=g[0];this.V=g[1];this.ka=g[2];this.$=g[3];this.ta=g[4];this.T=k;Ji(this)}Eb(){return this.Y}};olympe.dc.query.Relation=class extends olympe.dc.ub.Relation{constructor(a,b,c){super(a,b);this.recursive=c}toJSON(){let a='{ "tag": '+JSON.stringify(this.ca())+', ';a+='"direction": '+JSON.stringify(this.qc())+', ';a+='"recursive": '+JSON.stringify(this.recursive);return a+'}'}static gf(a){let b;'string'===typeof a?b=JSON.parse(a):b=a;return new olympe.dc.query.Relation(b.tag,b.direction,b.recursive)}static from(a){return new olympe.dc.query.Relation(a.ca(),a.qc(),a instanceof olympe.dc.wa.fg)}
|
|
1274
|
+
e,[c]),d.bind(a,e.xa()));a.C.send(e)})}}olympe.dc.query.cS=class{constructor(a,b,c,d,e,f,g,k){this.Y=a;this.R=b;this.C=c;this.ga=d;this.ub=e;this.F=f;this.O=new olympe.j.Od('Query Manager context');this.Qa=g[0];this.V=g[1];this.ka=g[2];this.$=g[3];this.ta=g[4];this.T=k;Ji(this)}Eb(){return this.Y}};olympe.dc.query.Relation=class extends olympe.dc.ub.Relation{constructor(a,b,c){super(a,b);this.recursive=c}toJSON(){let a='{ "tag": '+JSON.stringify(this.ca())+', ';a+='"direction": '+JSON.stringify(this.qc())+', ';a+='"recursive": '+JSON.stringify(this.recursive);return a+'}'}static gf(a){let b;'string'===typeof a?b=JSON.parse(a):b=a;return new olympe.dc.query.Relation(b.tag,b.direction,b.recursive)}static from(a){return new olympe.dc.query.Relation(a.ca(),a.qc(),a instanceof olympe.dc.wa.fg)}cf(){const a=
|
|
1275
1275
|
olympe.dc.Nb.DESTINATION,b=olympe.dc.Nb.ORIGIN;return new olympe.dc.query.Relation(this.tag,this.direction===a?b:a,this.recursive)}toString(){return`${this.direction}${this.tag}${this.recursive?'-r':''}`}};olympe.dc.query.Subscription=class a extends olympe.j.Ex{constructor(b,c,d,e){super(olympe.dc.CloudObject,new olympe.j.Od('context subscription '+b,e));this.id=b;this.Xc=c;this.wa=d||null;this.O=this.T.run(()=>olympe.j.ha(olympe.dc.query.Subscription.C.INIT));this.Cc=!1;this.$=this.Kc=null}static O(b,c,d){let e;try{e=b;if(c)for(let f=0,g=c.length;f<g;f++)e+='|'+c[f].Ya(d);else e+='|null';e=olympe.oa.yd(e)}catch(f){e=olympe.oa.De()}return e}xa(){return this.id}bj(){return this.Xc}bq(){return this.wa}ic(){const b=
|
|
1276
|
-
olympe.dc.fc(),c=olympe.j.Ua(this.bj());return c?b.ro(c)?b.source(c)||olympe.dc
|
|
1277
|
-
G(this.O);return b&&b.valueOf()>=olympe.dc.query.Subscription.C.oJ}Mm(b,c){this.V()?b(this):(null===this.$&&(this.$=new Map),void 0===c&&(c=olympe.oa.De()),this.$.set(c,olympe.j.ib().md(b)));return c||''}Dw(b){null!==this.$&&b&&this.$.delete(b)}Mb(){const b=olympe.dc.query.Subscription.C.oJ;if(!this.O.
|
|
1278
|
-
0,d=b.length;c<d;c++)this.az(b[c],c);if(this.V())this.Zn();else{this.Cc=b=!0;for(let c in this.F)if(Object.prototype.hasOwnProperty.call(this.F,c)&&!Object.prototype.hasOwnProperty.call(this.values,c)){b=!1;break}b&&this.Mb()}}}ec(b){const c=this.F;for(let d in c)Object.prototype.hasOwnProperty.call(c,d)&&b(c[d],d)}Cb(b,c){if(!this.O.
|
|
1279
|
-
d)){b=!1;break}b&&this.Mb()}}Ab(b){this.O.
|
|
1276
|
+
olympe.dc.fc(),c=olympe.j.Ua(this.bj());return c?b.ro(c)?b.source(c)||olympe.dc.Xb.nh:olympe.dc.Xb.Jd:olympe.dc.Xb.nh}Af(){const b=G(this.O);return b&&b.valueOf()>=olympe.dc.query.Subscription.C.RJ}Qg(){if(this.O.Zb.Dc())throw Error(`Cannot set destroyed subscription '${this.id}' as subscribed`);const b=this.Kc;this.Kc=null;for(let c in b)if(Object.prototype.hasOwnProperty.call(b,c))b[c](this);J(this.O,olympe.j.ha(olympe.dc.query.Subscription.C.RJ))}gd(){return olympe.j.fb([this.O],()=>{},olympe.j.ja)}V(){const b=
|
|
1277
|
+
G(this.O);return b&&b.valueOf()>=olympe.dc.query.Subscription.C.oJ}Mm(b,c){this.V()?b(this):(null===this.$&&(this.$=new Map),void 0===c&&(c=olympe.oa.De()),this.$.set(c,olympe.j.ib().md(b)));return c||''}Dw(b){null!==this.$&&b&&this.$.delete(b)}Mb(){const b=olympe.dc.query.Subscription.C.oJ;if(!this.O.Zb.Dc()&&olympe.j.Ua(this.O)!==b&&(this.Zn(),J(this.O,b),null!==this.$)){for(const c of this.$.values())c(this);this.$=null}}onDestroy(b){this.T.onDestroy(b)}vc(){this.T.destroy()}La(b){if(!this.O.Zb.Dc()){for(let c=
|
|
1278
|
+
0,d=b.length;c<d;c++)this.az(b[c],c);if(this.V())this.Zn();else{this.Cc=b=!0;for(let c in this.F)if(Object.prototype.hasOwnProperty.call(this.F,c)&&!Object.prototype.hasOwnProperty.call(this.values,c)){b=!1;break}b&&this.Mb()}}}ec(b){const c=this.F;for(let d in c)Object.prototype.hasOwnProperty.call(c,d)&&b(c[d],d)}Cb(b,c){if(!this.O.Zb.Dc()&&(this.$y(b,olympe.dc.CloudObject.get(c)),b=this.V(),this.Cc&&!b)){b=!0;for(let d in this.F)if(Object.prototype.hasOwnProperty.call(this.F,d)&&!Object.prototype.hasOwnProperty.call(this.values,
|
|
1279
|
+
d)){b=!1;break}b&&this.Mb()}}Ab(b){this.O.Zb.Dc()||(this.YB(b),this.Gv(b,!this.V()))}dr(){return this.V()?super.dr():'Subscription is not ready!'}od(){const b=olympe.j.Ua(this.bj());return olympe.dc.query.Subscription.F(b,this.bq())}static F(b,c){var d=new olympe.dc.Aj(b,olympe.dc.Ph.SUBSCRIBE);if(null===c)return[d];b=[];b.push(d);for(let e=0,f=c.length;e<f;e++){const g=c[e];if(g instanceof olympe.dc.wa.Xe||g instanceof olympe.dc.wa.fg)b.forEach(k=>{const l=olympe.dc.query.Relation.from(g);k.fe(l,
|
|
1280
1280
|
l.recursive)});else if(g instanceof olympe.dc.wa.Wn)d=a.F(olympe.j.Ua(g.bj()),g.bq()),b.push(...d);else if(g instanceof olympe.dc.wa.ce||g instanceof olympe.dc.wa.wi){const k=g.F();b.forEach(l=>{for(const m of k){for(const n of m)l.fe(n,n.recursive);sh(l,m.length)}})}}return b}};olympe.dc.query.Subscription.C={INIT:0,RJ:1,oJ:2};olympe.dc.query.Subscription.prototype.dr.K=olympe.j.J.O;function Hi(a,b){return a.F.has(b)?a.F.get(b).getSubscription():null}function Ii(a,b,c){return Ti(a,a.F,b,c)}function Gi(a,b){for(const [c,d]of a.R)if(d.has(b))return c;return null}function Di(a,b){return a.C.has(b)?a.C.get(b).getSubscription():null}function Ei(a,b,c,d){const e=b.xa();let f=a.C.get(e);void 0===f&&(f=new olympe.dc.query.ub.JP(b,a.V,a),a.C.set(e,f));f.O(c);Ui(a,e,d)}function Fi(a,b,c){return Ti(a,a.C,b,c)}function Pi(a,b){return(a=a.C.get(b))?Array.from(a.C.keys()):[]}
|
|
1281
1281
|
function Qi(a,b){return(a=a.F.get(b))?Array.from(a.C.keys()):[]}function Ri(a,b){const c=new Set;(a.R.get(b)||new Set).forEach(d=>{(d=a.C.get(d))&&c.add(d.getSubscription())});return c}function Si(a,b){const c=new Set;(a.R.get(b)||new Set).forEach(d=>{(d=a.F.get(d))&&c.add(d.getSubscription())});return c}function Vi(a,b,c){a=a.F.get(b);if(void 0===a)throw Error(`Check if the subscription ${b} has been processed, but it has never been registered`);b=a.F.get(c);a.F.set(c,!0);return b||!1}
|
|
1282
|
-
function Ui(a,b,c){let d=a.R.get(c);d?d.add(b):(d=(new Set).add(b),a.R.set(c,d))}function Wi(a,b,c){var d=olympe.dc
|
|
1282
|
+
function Ui(a,b,c){let d=a.R.get(c);d?d.add(b):(d=(new Set).add(b),a.R.set(c,d))}function Wi(a,b,c){var d=olympe.dc.Xb.Jd;const e=b.xa();let f=a.F.get(e);void 0===f&&(f=new olympe.dc.query.ub.sR(b,a.V),a.F.set(e,f));f.O(c);Ui(a,e,d)}function Ti(a,b,c,d){if(!b.has(c))return!1;const e=b.get(c);var f=e.C.get(d)-1;0===f?(e.C.delete(d),e.F.delete(d),f=0===e.C.size):(e.C.set(d,f),f=!1);return f?((d=Gi(a,c))&&a.R.get(d).delete(c),e.getSubscription().vc(),b.delete(c),!0):0===e.C.get(d)}
|
|
1283
1283
|
function Xi(a,b){const c=b.xa();let d=a.O.get(c);d||(d=new olympe.dc.query.ub.dS(b),a.O.set(c,d));d.counter++;return d}function Yi(a,b){(a=a.O.get(b))&&a.update()}function Zi(a,b,c){const d=a.C.get(b);d?c instanceof olympe.dc.query.Subscription?$i(d,c):aj(d,c):a.Y.error(`Try to set the subscription ${c.xa()} as covered by a graphquery that is not registered (${b}).`)}
|
|
1284
1284
|
olympe.dc.query.MS=class{constructor(a,b){this.Y=a;this.C=new Map;this.F=new Map;this.O=new Map;this.T=new Set;this.R=new Map;this.V=b}};olympe.dc.qh=class{Sa(){}Qe(){}getTransform(){}Ya(){}toString(){}};olympe.dc.gJ=class{F(){}};olympe.dc.Yn=class{Sa(){}getValue(){}C(){}Ya(){}toString(){}};olympe.dc.query.da={Ob:'olympe.dc.query.Logger',sb:'olympe.dc.query.QueryManager'};olympe.dc.query.Ke={bm:'olympe.dc.query.SubscriptionRegistry',Kx:'olympe.dc.query.CallbackRegistry',PF:'olympe.dc.query.GraphProcessor',OF:'olympe.dc.query.GraphNotificationProcessor',QF:'olympe.dc.query.GraphResultProcessor',pI:'olympe.dc.query.ListProcessor',qy:'olympe.dc.query.ListNotificationProcessor',jJ:'olympe.dc.query.QueryProcessor',EA:'olympe.dc.query.CoverageProcessor'};olympe.dc.query.za={SJ:'subscription.debug'};
|
|
1285
|
-
olympe.ma.Be(function(a){C(a,olympe.dc.query.za.SJ,!1);A(a,olympe.dc.query.da.Ob,[olympe.rb.da.sb],b=>b.Mg('dc.query'));z(a,olympe.dc.query.Ke.bm,olympe.dc.query.MS,olympe.dc.query.da.Ob,new olympe.ma.Ta(olympe.dc.query.za.SJ));z(a,olympe.dc.query.Ke.Kx,olympe.dc.query.YO,olympe.dc.query.da.Ob);z(a,olympe.dc.query.Ke.pI,olympe.dc.query.
|
|
1286
|
-
olympe.dc.query.
|
|
1287
|
-
olympe.dc.query.Ke.EA,olympe.dc.query.Ke.Kx,olympe.dc.da.jk,olympe.dc.db.da.sb);z(a,olympe.dc.query.Ke.EA,olympe.dc.query.
|
|
1285
|
+
olympe.ma.Be(function(a){C(a,olympe.dc.query.za.SJ,!1);A(a,olympe.dc.query.da.Ob,[olympe.rb.da.sb],b=>b.Mg('dc.query'));z(a,olympe.dc.query.Ke.bm,olympe.dc.query.MS,olympe.dc.query.da.Ob,new olympe.ma.Ta(olympe.dc.query.za.SJ));z(a,olympe.dc.query.Ke.Kx,olympe.dc.query.YO,olympe.dc.query.da.Ob);z(a,olympe.dc.query.Ke.pI,olympe.dc.query.ef.xI,olympe.dc.query.da.Ob,olympe.dc.da.Tu,olympe.dc.query.Ke.bm,olympe.dc.query.Ke.EA,olympe.dc.transaction.da.sb,new olympe.ma.Ta(olympe.dc.za.Hp));z(a,olympe.dc.query.Ke.PF,
|
|
1286
|
+
olympe.dc.query.ef.TF,olympe.dc.query.da.Ob,olympe.dc.query.Ke.bm,new olympe.ma.Ta(olympe.dc.za.Hp));z(a,olympe.dc.query.Ke.QF,olympe.dc.query.ef.UF,olympe.dc.query.da.Ob,olympe.dc.query.Ke.bm,olympe.dc.query.Ke.Kx);z(a,olympe.dc.query.Ke.OF,olympe.dc.query.ef.SF,olympe.dc.query.da.Ob,olympe.dc.query.Ke.bm);z(a,olympe.dc.query.Ke.qy,olympe.dc.query.ef.wI,olympe.dc.query.da.Ob,olympe.dc.da.Tu,olympe.dc.query.Ke.bm);z(a,olympe.dc.query.Ke.jJ,olympe.dc.query.ef.eS,olympe.dc.query.da.Ob,olympe.dc.query.Ke.bm,
|
|
1287
|
+
olympe.dc.query.Ke.EA,olympe.dc.query.Ke.Kx,olympe.dc.da.jk,olympe.dc.db.da.sb);z(a,olympe.dc.query.Ke.EA,olympe.dc.query.ef.aP,olympe.dc.query.da.Ob,olympe.dc.query.Ke.bm,olympe.dc.transaction.da.sb);A(a,olympe.dc.query.da.sb,[olympe.dc.query.da.Ob,new olympe.ma.Ta(olympe.dc.za.Hp),olympe.dc.da.jk,olympe.dc.db.da.sb,olympe.dc.query.Ke.bm,olympe.dc.query.Ke.Kx,olympe.dc.query.Ke.pI,olympe.dc.query.Ke.PF,olympe.dc.query.Ke.QF,olympe.dc.query.Ke.OF,olympe.dc.query.Ke.qy,olympe.dc.query.Ke.jJ],(b,c,
|
|
1288
1288
|
d,e,f,g,k,l,m,n,p,r)=>new olympe.dc.query.cS(b,c,d,e,f,g,[k,l,m,n,p],r))});olympe.ma.run([olympe.dc.query.Ke.bm],a=>{olympe.jw().subscriptions=a});olympe.dc.query.ub={};function bj(){const a=Error.stackTraceLimit;Error.stackTraceLimit=16;let b=Error().stack||'';b=b.split('\n').map(d=>d.trim());var c='Error'===b[0]?2:1;b=b.slice(c,Error.stackTraceLimit+c).reverse();c=[];for(const d of b)if(c.push(' '+d),d.includes('at ListDef.')||d.includes('at GraphDef.'))break;Error.stackTraceLimit=a;3<c.length&&(c=c.slice(c.length-3));return c.join('\n')||b.join('\n')}
|
|
1289
|
-
olympe.dc.query.ub.$J=class{constructor(a,b){this.C=new Map;this.F=new Map;this.R=a;this.ga=b}getSubscription(){}O(a){var b=this.C.get(a);this.C.set(a,void 0!==b?b+1:1);b=this.F.get(a);this.F.set(a,void 0!==b?b:!1)}};function $i(a,b){const c=b.xa();a.T.set(c,b);olympe.j.ib().onDestroy(()=>{a.T.delete(c)})}function aj(a,b){const c=b.xa();a.V.set(c,b);olympe.j.ib().onDestroy(()=>{a.V.delete(c)})}olympe.dc.query.ub.JP=class extends olympe.dc.query.ub.$J{constructor(a,b,c){super(a,b);this.ub=c;this.T=new Map;this.V=new Map;b&&bj()}getSubscription(){return this.R}};olympe.dc.query.ub.sR=class extends olympe.dc.query.ub.$J{constructor(a,b){super(a,b);this.T=new Map}getSubscription(){return this.R}O(a){super.O(a);if(this.ga){const b='md_'+olympe.oa.De();this.T.set(b,bj());olympe.j.ib().onDestroy(()=>{this.T.delete(b)})}}};olympe.dc.query.ub.dS=class{constructor(a){this.query=a;this.C=olympe.dc.Ai();this.id=a.xa();this.result=olympe.j.qb(olympe.dc.Ac);this.F=null;this.counter=0}update(){const a=olympe.j.Ua(this.result)||olympe.dc.Ac.empty(),b=olympe.dc.Ac.from(a,this.F);b!==a&&(Of(this.C,null,yh(b)),this.result.update(b))}destroy(){const a=olympe.j.Ua(this.result)||olympe.dc.Ac.empty();Of(this.C,null,xh(a))}};olympe.dc.query.
|
|
1290
|
-
n=!0;break}}n?a.Y.debug('CoverageProcessor: [ID:',d,'] - graphPath',l,' is covered'):g(l,!0)});Kc(f,(l,m)=>e(m));f.start()}function dj(a,b,c){const d=[b.bj()],e=g=>g instanceof olympe.dc.wa.Wn,f=(b.bq()||[]).filter(e);for(const g of f)d.push(g.bj()),f.push(...(g.bq()||[]).filter(e));kh(a.C,()=>{olympe.j.ab(d,()=>{const g=b.od();cj(a,g,b,b.xa(),c)})})}function ej(a,b,c,d){const e=b.xa(),f=[rh(b,c)];kh(a.C,()=>cj(a,f,b,e,d))}olympe.dc.query.
|
|
1291
|
-
olympe.dc.query.
|
|
1292
|
-
olympe.dc.query.
|
|
1293
|
-
for(let f=0,g=a.length;f<g;f++){const k=a[f];let l=gj.get(k);void 0===l?(l=olympe.oa.De(),hj(this,e,l,k)):'string'===typeof l?gj.delete(k):(l=l.pop(),0===l.length&&gj.delete(k));fj[f]=l}for(const [f,g]of gj){if('string'===typeof g)ij(this,e,g,f);else for(let k=0,l=g.length;k<l;k++)ij(this,e,g[k],f);gj.delete(f)}e.La(fj);c(null,b)}}};olympe.dc.query.
|
|
1289
|
+
olympe.dc.query.ub.$J=class{constructor(a,b){this.C=new Map;this.F=new Map;this.R=a;this.ga=b}getSubscription(){}O(a){var b=this.C.get(a);this.C.set(a,void 0!==b?b+1:1);b=this.F.get(a);this.F.set(a,void 0!==b?b:!1)}};function $i(a,b){const c=b.xa();a.T.set(c,b);olympe.j.ib().onDestroy(()=>{a.T.delete(c)})}function aj(a,b){const c=b.xa();a.V.set(c,b);olympe.j.ib().onDestroy(()=>{a.V.delete(c)})}olympe.dc.query.ub.JP=class extends olympe.dc.query.ub.$J{constructor(a,b,c){super(a,b);this.ub=c;this.T=new Map;this.V=new Map;b&&bj()}getSubscription(){return this.R}};olympe.dc.query.ub.sR=class extends olympe.dc.query.ub.$J{constructor(a,b){super(a,b);this.T=new Map}getSubscription(){return this.R}O(a){super.O(a);if(this.ga){const b='md_'+olympe.oa.De();this.T.set(b,bj());olympe.j.ib().onDestroy(()=>{this.T.delete(b)})}}};olympe.dc.query.ub.dS=class{constructor(a){this.query=a;this.C=olympe.dc.Ai();this.id=a.xa();this.result=olympe.j.qb(olympe.dc.Ac);this.F=null;this.counter=0}update(){const a=olympe.j.Ua(this.result)||olympe.dc.Ac.empty(),b=olympe.dc.Ac.from(a,this.F);this.F.R=!1;b!==a&&(Of(this.C,null,yh(b)),this.result.update(b))}destroy(){const a=olympe.j.Ua(this.result)||olympe.dc.Ac.empty();Of(this.C,null,xh(a))}};olympe.dc.query.ef={};function cj(a,b,c,d,e){a.Y.debug('CoverageProcessor: [ID:',d,'] - checking coverage of remote query over',b.length,'paths.');const f=new olympe.async.Cp(olympe.j.ib()),g=l=>{f.add((m,n)=>{l.Wc(p=>{p?n(`The query ${d} is not covered by an existing graphdef, `+`and the specific graphdef id ${l.xa()} has encountered an error: ${p}`):m()});Zi(a.ub,l.xa(),c)})},k=Array.from(Ri(a.ub,olympe.dc.Xb.nh));b.forEach(l=>{const m=ci(l);let n=!1;for(let p=0,r=k.length;p<r;p++){const t=k[p];if(t.pL(m)){g(t.Qr,!1);
|
|
1290
|
+
n=!0;break}}n?a.Y.debug('CoverageProcessor: [ID:',d,'] - graphPath',l,' is covered'):g(l,!0)});Kc(f,(l,m)=>e(m));f.start()}function dj(a,b,c){const d=[b.bj()],e=g=>g instanceof olympe.dc.wa.Wn,f=(b.bq()||[]).filter(e);for(const g of f)d.push(g.bj()),f.push(...(g.bq()||[]).filter(e));kh(a.C,()=>{olympe.j.ab(d,()=>{const g=b.od();cj(a,g,b,b.xa(),c)})})}function ej(a,b,c,d){const e=b.xa(),f=[rh(b,c)];kh(a.C,()=>cj(a,f,b,e,d))}olympe.dc.query.ef.aP=class{constructor(a,b,c){this.Y=a;this.ub=b;this.C=c}};olympe.dc.query.ef.SF=class{constructor(a,b){this.Y=a;this.ub=b}process(a,b,c){const d=b.xa();this.ub.C.has(d)?(Di(this.ub,d).ka(b),olympe.dc.Ai().Pm(b.data,a),c(null,b)):c(Error(`Received a notification for the graphdef ${d} which does not exist.`),b)}};olympe.dc.query.ef.SF.ua=[olympe.dc.Ep];olympe.dc.query.ef.TF=class{constructor(a,b,c){this.Y=a;this.ub=b;this.C=c}process(a,b,c){var d=b.xa();if(a===olympe.dc.Xb.Jd||this.ub.C.has(d)){if(c(null,b),a=Di(this.ub,d),this.C||a&&a.R)a=olympe.dc.Xb.Jd,d=new olympe.dc.query.Os(d,a,a,new olympe.dc.db.dg),Ki(olympe.dc.oo(),d)}else c(Error('The local Graph Engine is not implemented yet. It should handle Graphdefs addressed to instances owned by this local OVM'),b)}};olympe.dc.query.ef.TF.ua=[olympe.dc.Ep];olympe.dc.query.ef.UF=class{constructor(a,b,c){this.Y=a;this.C=b;this.F=c}process(a,b,c){const d=b.xa();if(this.C.C.has(d)){const f=Di(this.C,d);if(b instanceof olympe.dc.query.Xv.ey)Fi(this.C,d,a);else if(!f.R){f.$(b);const g=olympe.dc.Ai();Of(g,f.V());g.Pm(b.hg,b.destination);f.onDestroy(()=>{Of(g,null,f.V())});ki(f)}}let e;b instanceof olympe.dc.query.Xv.ey&&(e=`graph subscription "${d}" failed to create the initial result: ${b.ga()}`,this.Y.error(e));Th(this.F,b.xa(),b);c(e?Error(e):null,b)}};
|
|
1291
|
+
olympe.dc.query.ef.UF.ua=[olympe.dc.Ep];const fj=[],gj=new Map;function hj(a,b,c,d){qf(a.db,d,e=>{e?b.ci(c)?a.Y.warn('Adding the same index twice (should never happen) for sub #'+b.xa()+', index #'+c+', tag #'+d):b.Cb(c,d):ij(a,b,c,d)},c)}function ij(a,b,c,d){rf(a.db,d,c,!0);b.Ab(c);fj.length=0;b.ec(function(e,f){fj[e]=f});c=a=0;for(d=fj.length;a<d;a++)'string'===typeof fj[a]&&(fj[c++]=fj[a]);fj.length=c;b.La(fj)}
|
|
1292
|
+
olympe.dc.query.ef.wI=class{constructor(a,b,c){this.Y=a;this.db=b;this.ub=c}process(a,b,c){const d=b.xa();a=b.C;const e=Hi(this.ub,d);if(null===e)c(Error(`Received list notification for undefined subscription "${d}"`),b);else{fj.length=a.length;e.ec((f,g)=>{if(f=e.zg(g)){f=f.ca();var k=gj.get(f);void 0===k?gj.set(f,g):'string'===typeof k?gj.set(f,[k,g]):k.push(g)}else this.Y.warn('Subscription #'+d+' has a rank for index #'+g+' but no instance. This is caused by receiving a new list notification before receiving all instances of the previous list notification.')});
|
|
1293
|
+
for(let f=0,g=a.length;f<g;f++){const k=a[f];let l=gj.get(k);void 0===l?(l=olympe.oa.De(),hj(this,e,l,k)):'string'===typeof l?gj.delete(k):(l=l.pop(),0===l.length&&gj.delete(k));fj[f]=l}for(const [f,g]of gj){if('string'===typeof g)ij(this,e,g,f);else for(let k=0,l=g.length;k<l;k++)ij(this,e,g[k],f);gj.delete(f)}e.La(fj);c(null,b)}}};olympe.dc.query.ef.wI.ua=[olympe.dc.Ep];function jj(a,b,c,d){const e=c.xa();a.Y.debug('ListProcessor: [ID:',e,'] - processing with source ',b);Wi(a.ub,c,b);if(Vi(a.ub,e,olympe.dc.Xb.Jd))a.Y.debug('ListProcessor: [ID:',e,'] - id already processed');else{a.Y.debug('ListProcessor: [ID:',e,'] - NOT processed yet.');const f=c.ic();a.F||f===olympe.dc.Xb.Jd?(a.Y.debug('QueryMGR: [ID:',e,'] - Local subscription, no need for coverage check, booting subscription '),kj(a,c)):c.getContext().run(()=>{dj(a.C,c,g=>{g?a.Y.error(g):kj(a,c)})})}b===olympe.dc.Xb.Jd||
|
|
1294
1294
|
Vi(a.ub,e,b)||a.notify(b,c);d(null,c)}
|
|
1295
1295
|
function kj(a,b){if(b.V())a.Y.debug('ListProcessor: [ID:',b.xa(),'] - Subscription already booted, ignoring');else{a.Y.debug('ListProcessor: [ID:',b.xa(),'] - Booting subscription');var c=new olympe.dc.Yf.YJ(a.db,a.Y),d=lj(a,b,c),e=b.xa();b.getContext().run(()=>{olympe.j.ab([b.bj()],f=>{const g=olympe.dc.Gb(f);a.Y.debug('ListProcessor: [ID:',b.xa(),'] - Booting with baseTag',g);b.Af()||b.Qg();qf(a.db,g,k=>d(k,g),e);olympe.j.ib().Vd(()=>rf(a.db,g,e));a.db.ue(g.valueOf())||mj(c);b.V()||(mj(c),b.La([]))})})}}
|
|
1296
1296
|
function lj(a,b,c){const d=new olympe.dc.Yf.Hx;let e=!1;const f=b.getContext(),g=b.bq(),k=[];k[g?g.length:0]=f.md((l,m,n,p)=>{f.rg()||f.Dc()||(l?b.ci(n)?a.Y.warn('Adding the same index twice (should never happen) for sub #',b.xa(),', index #',n,', tag #',m):(a.Y.debug('ListProcessor: [ID:',b.xa(),'] - Adding Instance',m,'to the subscription'),b.Cb(n,m)):(a.Y.debug('ListProcessor: [ID:',b.xa(),'] - Removing Instance',m,'from the subscription'),b.Ab(n)),e||(nj(c,()=>{p.Kp();mj(c)}),p.Bg().Iq(b.La.bind(b)),
|
|
1297
1297
|
e=!0),oj(c,n))});if(null!==g){const l=olympe.dc.Bg();for(let m=g.length-1;0<=m;m--)k[m]=f.md(g[m].getTransform(l,c,k[m+1]))}return(l,m)=>{const n=b.xa();c.register(n,null);const p=d.C(l,m,n,null);if(null!==p)k[0](l,m,n,pj(p,l,m,n))}}
|
|
1298
|
-
olympe.dc.query.
|
|
1299
|
-
olympe.dc
|
|
1300
|
-
function qj(a,b,c,d,e){const f=new olympe.dc.qa.eJ(c);Fh(f,()=>{var p=a.ub;p.O.has(b)&&p.T.add(b)});d.F=f;let g=(p,r)=>{p?a.Y.debug(`New result tuple for query ${b}, ${r}`):a.Y.debug(`Removed result tuple for query ${b}, ${r}`)};d=c.C;const k=d.reduce((p,r)=>{p.push(r.F(p[p.length-1]));return p},[0]);for(let p=d.length-1;0<=p;p--)g=d[p].observe(f,k[p],g);const l=a.F.view,m=c.
|
|
1301
|
-
olympe.dc.query.
|
|
1302
|
-
g||(e=uf(tf(new olympe.dc.bb(olympe.dc.bb.eb.iJ,a,[e]),b),m=>m&&k(m.message)),this.O.send(e))}})}$k(a){const b=new olympe.dc.qa.eJ(a);Fh(b,()=>{});Ih(b,a.
|
|
1303
|
-
c.O,`Query result of query ${d} has no associated handler in the datacloud`)):(e=this.C,Sh(e,d,c,e.O,`Query result of query ${d} has no associated handler in the datacloud`))});this.O.C(a,(c,{i:d,r:e,s:f})=>{if(c=b(e,f))if(d=this.ub.O.get(d))e=olympe.j.Ua(d.result),e&&e.hash===c.hash||(Of(d.C,null,yh(c)),d.result.update(c))});Nf(this.F,()=>{var c=this.ub;for(const d of c.T)Yi(c,d);c.T.clear()})}};olympe.dc.query.Xv={};olympe.dc.query.Xv.ey=class extends olympe.dc.query.Os{constructor(a,b,c,d){super(a,b,c,new olympe.dc.db.dg);this.error=d}ga(){return this.error}};olympe.dc.Yf={};function pj(a,b,c,d){b?a.T[d]=c:delete a.T[d];null===a.F&&(a.F=new olympe.dc.Yf.Ux(a.Wa,a));return a.F}function rj(a,b){for(let c=0;c<b;c++)if(null!==a.F)a=a.F;else break;return a}function sj(a,b){a=a.T;if(null!==a)for(let c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c)}olympe.dc.Yf.Ux=class{constructor(a,b){this.Wa=a;this.parent=b||null;this.ga=b?b.ga+1:0;this.T=Object.create(null);this.F=null}Bg(){return this.Wa}Kp(){this.Wa.T()?this.Wa.O():this.Wa.ga(this.ga-1)}};olympe.dc.Yf.kb=class{constructor(){}C(){}T(){}ga(){}O(){}Iq(){}};olympe.dc.Yf.Hx=class{constructor(){this.V=this.item=this.R=this.F=null}T(){return null!==this.F}ga(a){if(null!==this.F)throw Error('Manager already activated (depth='+this.F+')');this.F=a;this.O()}C(a,b,c){b=this.item;if(a&&null!==b)throw Error('The AutoManger handles only a single item.');a?(b=new olympe.dc.Yf.Ux(this),this.R=c,this.item=b):this.item=this.R=null;return b}O(){if(null===this.F)throw Error('Manager not activated, need to set a depth before updating ranks');if(null!==this.V){const a=
|
|
1298
|
+
olympe.dc.query.ef.xI=class{constructor(a,b,c,d,e,f){this.Y=a;this.db=b;this.ub=c;this.C=d;this.F=f}process(a,b,c){jj(this,a,b,c)}notify(a,b){const c=b.xa();this.Y.debug(`Register notification of list subscription ${c} for destination ${a}`);const d=()=>{const f=new olympe.dc.query.vI(c);b.$h(g=>f.F(g));Mi(olympe.dc.oo(),f)};let e=!1;b.forEach(()=>{e&&d()});b.Mm(()=>{e=!0;d()})}};olympe.dc.query.ef.xI.ua=[olympe.dc.Ep];function Ci(a,b,c){const d=b.xa(),e=b.source||b.db.source(b.F)||olympe.dc.Xb.Te,f=a.ub.O.has(d),g=Xi(a.ub,b);return new rxjs.Observable(k=>{c.run(()=>{olympe.j.ab([g.result.Ba()],k.next.bind(k))});const l=()=>{m&&c.Rz(m);{var n=a.ub;const r=n.O.get(d);var p;if(p=r)p=r,0<p.counter?p.counter--:olympe.rb.Eb('dc').warn('Try to decrement counter of query metadata below 0. Investigate...'),p=0===p.counter;p&&(r.destroy(),n.O.delete(d),n.T.delete(d))}},m=c.Vd(l);if(!f)if(e===olympe.dc.Xb.nh)ej(a.R,b,!0,
|
|
1299
|
+
n=>{n?(k.error(n),l()):qj(a,d,b,g,c)});else if(e===olympe.dc.Xb.Jd)qj(a,d,b,g,c);else{const n=uf(tf(new olympe.dc.bb(olympe.dc.bb.eb.lJ,b,[e]),c),p=>{p&&(k.error(p.message),l())});a.O.send(n)}return l})}
|
|
1300
|
+
function qj(a,b,c,d,e){const f=new olympe.dc.qa.eJ(c);Fh(f,()=>{var p=a.ub;p.O.has(b)&&p.T.add(b)});d.F=f;let g=(p,r)=>{p?a.Y.debug(`New result tuple for query ${b}, ${r}`):a.Y.debug(`Removed result tuple for query ${b}, ${r}`)};d=c.C;const k=d.reduce((p,r)=>{p.push(r.F(p[p.length-1]));return p},[0]);for(let p=d.length-1;0<=p;p--)g=d[p].observe(f,k[p],g);const l=a.F.view,m=c.F,n=qf(l,m,(p,r)=>{p?Ih(f,r,0,null):f.remove(r,0,null);g(p,r,null,b)});e.Vd(()=>rf(l,m,n));Yi(a.ub,b)}
|
|
1301
|
+
olympe.dc.query.ef.eS=class{constructor(a,b,c,d,e,f){this.Y=a;this.ub=b;this.R=c;this.C=d;this.O=e;this.F=f;this.init()}Wc(a,b){return new Promise((c,d)=>{var e=a.source||a.db.source(a.F)||olympe.dc.Xb.Te;if(e===olympe.dc.Xb.nh)ej(this.R,a,!1,f=>{f?d(f):c(this.$k(a))});else if(e===olympe.dc.Xb.Jd)c(this.$k(a));else{const f=a.xa(),g=this.C.C.has(f),k=m=>{var n=this.C;Rh(n,f,n.O);d(m||`The execution of the query ${f} has been interrupted`)},l=b.Vd(k);Uh(this.C,f,(m,n)=>{b.Rz(l);m?d(m.message):(b.Vd(()=>
|
|
1302
|
+
{Of(this.F,null,xh(n))}),c(n))});g||(e=uf(tf(new olympe.dc.bb(olympe.dc.bb.eb.iJ,a,[e]),b),m=>m&&k(m.message)),this.O.send(e))}})}$k(a){const b=new olympe.dc.qa.eJ(a);Fh(b,()=>{});Ih(b,a.F,0,null);let c=0;for(const d of a.C)d.Wc(b,c),c=d.F(c);return olympe.dc.Ac.from(olympe.dc.Ac.empty(),b)}init(){const a=olympe.dc.bb.eb.kJ,b=(c,d)=>Ah(c,e=>{Of(this.F,Array.from(e.ej()).filter(f=>f.uk()).map(f=>f.tag()));this.F.Pm(e,d)},d);this.O.C(olympe.dc.bb.eb.QUERY_RESULT,(c,{i:d,r:e,s:f})=>{c=b(e,f);null===
|
|
1303
|
+
c?(c=this.C,Sh(c,d,`Error while deserialization of QueryResult for query ${d}`,c.O,`Query result of query ${d} has no associated handler in the datacloud`)):(e=this.C,Sh(e,d,c,e.O,`Query result of query ${d} has no associated handler in the datacloud`))});this.O.C(a,(c,{i:d,r:e,s:f})=>{if(c=b(e,f))if(d=this.ub.O.get(d))e=olympe.j.Ua(d.result),e&&e.hash===c.hash||(Of(d.C,null,yh(c)),d.result.update(c))});Nf(this.F,()=>{var c=this.ub;for(const d of c.T)Yi(c,d);c.T.clear()})}};olympe.dc.query.Xv={};olympe.dc.query.Xv.ey=class extends olympe.dc.query.Os{constructor(a,b,c,d){super(a,b,c,new olympe.dc.db.dg);this.error=d}ga(){return this.error}};olympe.dc.Yf={};function pj(a,b,c,d){b?a.T[d]=c:delete a.T[d];null===a.F&&(a.F=new olympe.dc.Yf.Ux(a.Wa,a));return a.F}function rj(a,b){for(let c=0;c<b;c++)if(null!==a.F)a=a.F;else break;return a}function sj(a,b){a=a.T;if(null!==a)for(let c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c)}olympe.dc.Yf.Ux=class{constructor(a,b){this.Wa=a;this.parent=b||null;this.ga=b?b.ga+1:0;this.T=Object.create(null);this.F=null}Bg(){return this.Wa}Kp(){this.Wa.T()?this.Wa.O():this.Wa.ga(this.ga-1)}};olympe.dc.Yf.kb=class{constructor(){}C(){}T(){}ga(){}O(){}Iq(){}};olympe.dc.Yf.Hx=class{constructor(){this.V=this.item=this.R=this.F=null}T(){return null!==this.F}ga(a){if(null!==this.F)throw Error('Manager already activated (depth='+this.F+')');this.F=a;this.O()}C(a,b,c){b=this.item;if(a&&null!==b)throw Error('The AutoManger handles only a single item.');a?(b=new olympe.dc.Yf.Ux(this),this.R=c,this.item=b):this.item=this.R=null;return b}O(){if(null===this.F)throw Error('Manager not activated, need to set a depth before updating ranks');if(null!==this.V){const a=
|
|
1304
1304
|
[];null!==this.item&&(0<=this.F?sj(rj(this.item,this.F),a):a.push(this.R));this.V(a)}}Iq(a){this.V=a}};olympe.dc.Yf.Hx.ua=[olympe.dc.Yf.kb];function tj(a,b){olympe.j.Pg(a.value)?(a.C=olympe.j.Ef(a.value,b),jb(a.C)||b()):b()}function uj(a,b){if(olympe.j.Pg(a.value)){const c=olympe.j.ib(),d=a.R;olympe.j.ab([a.value],e=>{d!==e.valueOf()&&(c.run(()=>tj(a,b)),olympe.j.ib().destroy())})}}
|
|
1305
1305
|
class vj extends olympe.dc.Yf.Ux{constructor(a,b,c){super(a);this.$=b;this.value=c;this.R=this.Ua();this.position=this.C=null;this.V=!1;this.O=null}Ua(){const a=olympe.j.Ua(this.value);return a?a.valueOf():a}destroy(){this.C&&(this.C.destroy(),this.C=null);this.O=this.value=null}Dc(){return null===this.value}}
|
|
1306
1306
|
function wj(a,b){if(!b.Dc()){var c=a.F;var d=a.ta,e=b.Ua(),f=0;let g=c.length,k=0,l;for(null!==b.position&&--g;g>f;){k=Math.floor((f+g)/2);l=d(c[k].R,e);if(0===l||2>g-f){0>l&&null!==b.position&&b.position<=k&&(l=d(c[g].R,e));k=0>l?g:k;break}0>l?f=k:g=k}c=k;b.R=b.Ua();if(c!==b.position){d=a.F;e=d.length;f=b.position;null===f&&(f=e);if(c<f)for(e=f;e>c;e--)d[e]=d[e-1],d[e].position=e;else for(e=f;e<c;e++)d[e]=d[e+1],d[e].position=e;d[c]=b;d[c].position=c;b.V&&a.O()}}}
|
|
@@ -1315,11 +1315,11 @@ function Ej(a,b){const c=a.O[b];void 0!==c?(a.Y&&a.Y.debug('Set current block to
|
|
|
1315
1315
|
olympe.dc.Yf.YJ=class{constructor(a,b){this.db=a;this.Y=b||null;this.R=Object.create(null);this.T=Object.create(null);this.F=!1;this.V=0;this.C=new Gj('root');this.O=Object.create(null);this.O.root=this.C}register(a,b,c,d,e){this.F||(null!==b&&c&&d&&e?(c=Bj(this,c,d,e),d=this.R[b]||0,this.R[b]=++d,this.C.C===b&&c<=d&&(this.C.C=a)):this.C.C=a)}};function Hj(a,b){null===a.children&&(a.children=Object.create(null));a.children[b]=!1}function Aj(a){a.O=!0;null!==a.parent&&a.parent.notify(a.id)}
|
|
1316
1316
|
class Gj{constructor(a,b){this.id=a;this.parent=b||null;this.C=this.R=this.F=this.children=null;this.O=!1}xa(){return this.id}Kp(a){const b=this.R;if(this.O||this.C===a||null===a)b&&b(),!b&&Aj(this)}notify(a){const b=this.F,c=this.children;if(this.O)b&&b();else if(!c[a]){a=c[a]=!0;for(let d in c)if(!c[d]){a=!1;break}a&&b&&b()}}};olympe.dc.hb={};olympe.dc.hb.Sn=class{Sa(){return Y(olympe.dc.hb.Sn)}C(){return[]}getValue(a,b){return b}Ya(){return'{"c":"'+this.Sa()+'","a":[]}'}toString(){return'Tag()'}};X('olympe.dc.valuedefs.Tag',olympe.dc.hb.Sn);olympe.dc.hb.Sn.ua=[olympe.dc.Yn];olympe.dc.hb.Li=class{constructor(a){this.value=a}Sa(){return Y(olympe.dc.hb.Li)}C(){return[]}getValue(){return this.value}Ya(a){a=Bi(a,this.value);return`{"c":"${this.Sa()}","a":[${a}]}`}toString(){return`Constant(${Ai(this.value)})`}};X('olympe.dc.valuedefs.Constant',olympe.dc.hb.Li);olympe.dc.hb.Li.ua=[olympe.dc.Yn];function Kj(a,b,c,d){const e=olympe.dc.fc(),f=new olympe.dc.Yf.Hx,g=new olympe.dc.Yf.YJ(e);let k=!1;const l=Object.create(null),m=t=>{if(0<t.length)for(const u in l)t[0]===u&&d(l[u])};let n=(t,u,w,v)=>{const x=olympe.j.ib();x.rg()||x.Dc()||(k||(nj(g,()=>{v.Kp();mj(g)}),v.Bg().Iq(m),k=!0),t?l[w]=u:delete l[w],oj(g,w))};const p=olympe.j.ib();if(null!==c)for(let t=c.length-1;0<=t;t--)n=c[t].getTransform(a,g,p.md(n));n=p.md(n);const r=olympe.oa.De();qf(e,b,(t,u)=>{g.register(r,null);const w=f.C(t,b,r,
|
|
1317
1317
|
null);n(t,u,r,pj(w,t,b,r))},r);p.onDestroy(()=>{rf(e,b,r)});e.ue(b)||mj(g)}function Lj(a,b,c){const d=c.getContext(),e=olympe.dc.fc(),f=a.O(),g=Ag(e,b,a.R,d.md(k=>{null!==k&&(k=f(k));null===k?c.clear():c.update(k)}));d.onDestroy(()=>e.O(b,a.R,g))}
|
|
1318
|
-
olympe.dc.hb.Ug=class{constructor(a,b,c){this.R=a&&a.ca?a.ca():a;this.wa=b&&b.filter(d=>d instanceof olympe.dc.wa.
|
|
1319
|
-
b=this.F||b;null!==this.wa?Kj(a,b,this.wa,d=>{Lj(this,d,c)}):Lj(this,b,c);return c.Ba()}Ya(a){const b=Bi(a,this.R),c=Bi(a,this.F);let d='null';this.wa&&(d=this.wa.map(function(e){return e.Ya(a)}).join(','));return`{"c":"${this.Sa()}","a":["${b}",${d},${c}]}`}toString(){const a=Ai(this.R),b=this.F?','+Ai(this.F):'';let c='';this.wa&&(c=','+this.wa.join(','));return this.Sa().replace(/^.+\./,'')+'('+a+c+b+')'}};olympe.dc.hb.Ug.ua=[olympe.dc.Yn];olympe.dc.hb.Ej=class extends olympe.dc.hb.Ug{constructor(a,b,c){super(a,b,c)}Sa(){return Y(olympe.dc.hb.Ej)}O(){return olympe.dc.oa.
|
|
1318
|
+
olympe.dc.hb.Ug=class{constructor(a,b,c){this.R=a&&a.ca?a.ca():a;this.wa=b&&b.filter(d=>d instanceof olympe.dc.wa.Xe||d instanceof olympe.dc.wa.fg)||null;this.F=c||null;this.defaultValue=null}Sa(){}Qe(){}O(){}C(){return(this.wa||[]).reduce((a,b)=>a.concat(olympe.dc.query.Relation.from(b)),[])}th(a){this.defaultValue=a;return this}bq(){return this.wa}bj(){return this.F}getValue(a,b){const c=olympe.j.qb(this.Qe()||Object,'AbstractProperty valueType');null!==this.defaultValue&&Hb(c,this.defaultValue);
|
|
1319
|
+
b=this.F||b;null!==this.wa?Kj(a,b,this.wa,d=>{Lj(this,d,c)}):Lj(this,b,c);return c.Ba()}Ya(a){const b=Bi(a,this.R),c=Bi(a,this.F);let d='null';this.wa&&(d=this.wa.map(function(e){return e.Ya(a)}).join(','));return`{"c":"${this.Sa()}","a":["${b}",${d},${c}]}`}toString(){const a=Ai(this.R),b=this.F?','+Ai(this.F):'';let c='';this.wa&&(c=','+this.wa.join(','));return this.Sa().replace(/^.+\./,'')+'('+a+c+b+')'}};olympe.dc.hb.Ug.ua=[olympe.dc.Yn];olympe.dc.hb.Ej=class extends olympe.dc.hb.Ug{constructor(a,b,c){super(a,b,c)}Sa(){return Y(olympe.dc.hb.Ej)}O(){return olympe.dc.oa.Ye.jC}Qe(){return olympe.j.aa}};X('olympe.dc.valuedefs.NumberProperty',olympe.dc.hb.Ej);olympe.dc.hb.lk=class extends olympe.dc.hb.Ug{constructor(a,b,c){super(a,b,c)}Sa(){return Y(olympe.dc.hb.lk)}O(){return olympe.dc.oa.Ye.kC}Qe(){return olympe.j.lb}};X('olympe.dc.valuedefs.StringProperty',olympe.dc.hb.lk);olympe.dc.hb.Gk=class extends olympe.dc.hb.Ug{constructor(a,b,c){super(a,b,c)}Sa(){return Y(olympe.dc.hb.Gk)}O(){return olympe.dc.oa.Ye.hC}Qe(){return olympe.j.ja}};X('olympe.dc.valuedefs.BooleanProperty',olympe.dc.hb.Gk);olympe.dc.hb.bk=class extends olympe.dc.hb.Ug{constructor(a,b,c){super(a,b,c)}Sa(){return Y(olympe.dc.hb.bk)}O(){return olympe.dc.oa.Ye.iC}Qe(){return olympe.j.cc}};X('olympe.dc.valuedefs.DateTimeProperty',olympe.dc.hb.bk);olympe.dc.hb.iE=class{constructor(a,b){if(olympe.j.Pg(a))throw Error('Dataflows of Property not supported by AnyProperty');const c=a.ca();var d=olympe.dc.fc();const e=d.we(a,olympe.dm.Property.typeRel);if(!e)throw Error('Type of property '+a+'unavailable locally, cannot proceed with AnyProperty');a=d.Am(e,olympe.dc.CloudObject.extendRel,olympe.dm.On);d=null;switch(1<a.length?a[a.length-2]:e){case olympe.dm.String.U.ca():d=new olympe.dc.hb.lk(c,b);break;case olympe.dm.Number.U.ca():d=new olympe.dc.hb.Ej(c,
|
|
1320
1320
|
b);break;case olympe.dm.Boolean.U.ca():d=new olympe.dc.hb.Gk(c,b);break;case olympe.dm.DateTime.U.ca():d=new olympe.dc.hb.bk(c,b)}this.F=d}Sa(){return this.F.Sa()}C(){return this.F.C()}getValue(a,b){return this.F.getValue(a,b)}Ya(a){return this.F.Ya(a)}toString(){return this.F.toString()}};olympe.dc.hb.iE.ua=[olympe.dc.Yn];olympe.dc.ie={};olympe.dc.ie.Number=class{constructor(a){this.C=a}Sa(){return Y(olympe.dc.ie.Number)}T(){return this.C.C()}R(a,b){return this.C.getValue(a,b)}O(a,b){return a!==b?a>b?1:-1:0}Ya(a){return`{"c":"${this.Sa()}",a:[${this.C.Ya(a)}]}`}toString(){return`Number(${this.C.toString()})`}};X('olympe.dc.comparators.Number',olympe.dc.ie.Number);olympe.dc.ie.Number.ua=[olympe.dc.Pl];olympe.dc.ie.String=class{constructor(a){this.C=a}Sa(){return Y(olympe.dc.ie.String)}T(){return this.C.C()}R(a,b){return olympe.j.fb([this.C.getValue(a,b)],c=>c.toLowerCase(),olympe.j.lb)}O(a,b){return void 0===a?void 0===b?0:1:a!==b?a>b?1:-1:0}Ya(a){return`{"c":"${this.Sa()}",a:[${this.C.Ya(a)}]}`}toString(){return`String(${this.C.toString()})`}};X('olympe.dc.comparators.String',olympe.dc.ie.String);olympe.dc.ie.String.ua=[olympe.dc.Pl];olympe.dc.ie.DateTime=class{constructor(a){this.C=a}Sa(){return Y(olympe.dc.ie.DateTime)}T(){return this.C.C()}R(a,b){return this.C.getValue(a,b)}O(a,b){if(!a)return b?-1:0;if(!b)return 1;a=a.getTime();b=b.getTime();return a!==b?a>b?1:-1:0}Ya(a){return'{"c":"'+this.Sa()+'",a:['+this.C.Ya(a)+']}'}toString(){return'Number('+this.C.toString()+')'}};X('olympe.dc.comparators.DateTime',olympe.dc.ie.DateTime);olympe.dc.ie.DateTime.ua=[olympe.dc.Pl];let Mj=0;olympe.dc.ie.Oq=class{constructor(){this.id=Mj++}Sa(){return'CustomLocalComparator#'+Mj}T(){return[]}R(){throw Error('GetComparedValue function was not implemented.');}O(){throw Error('Compare function was not implemented.');}Ya(){return`{"c":"${this.Sa()}"}`}toString(){return this.Sa()+'()'}};olympe.dc.ie.Oq.ua=[olympe.dc.Pl];olympe.dc.sa={};olympe.dc.sa.ri=class{constructor(a){this.O=a}Sa(){return Y(olympe.dc.sa.ri)}F(){return this.O.F()}C(a,b){return olympe.j.Ef(this.O.C(a,b),c=>!c.valueOf())}Ya(a){return`{"c":"${this.Sa()}","a":[${this.O.Ya(a)}]}`}toString(){return'Not('+this.O.toString()+')'}};X('olympe.dc.predicates.Not',olympe.dc.sa.ri);olympe.dc.sa.ri.ua=[olympe.dc.Oc];olympe.dc.sa.$j=class{constructor(a){this.sa=[];for(let b=arguments.length,c=0;c<b;c++)Array.isArray(arguments[c])?this.sa=this.sa.concat(arguments[c]):this.sa.push(arguments[c])}Sa(){return Y(olympe.dc.sa.$j)}F(){return this.sa.reduce((a,b)=>a.concat(b.F()),[])}C(a,b){return olympe.j.tj(this.sa.map(c=>c.C(a,b)),function(){for(let c=arguments.length,d=0;d<c;d++)if(!arguments[d].valueOf())return!1;return!0})}Ya(a){const b=this.sa.map(c=>c.Ya(a));return'{"c":"'+this.Sa()+'","a":['+b.join(',')+']}'}toString(){return'And('+
|
|
1321
1321
|
this.sa.map(a=>a.toString()).join(',')+')'}};X('olympe.dc.predicates.And',olympe.dc.sa.$j);olympe.dc.sa.$j.ua=[olympe.dc.Oc];olympe.dc.sa.ik=class{constructor(a){this.sa=[];for(let b=arguments.length,c=0;c<b;c++)Array.isArray(arguments[c])?this.sa=this.sa.concat(arguments[c]):this.sa.push(arguments[c])}Sa(){return Y(olympe.dc.sa.ik)}F(){return this.sa.reduce((a,b)=>a.concat(b.F()),[])}C(a,b){return olympe.j.tj(this.sa.map(c=>c.C(a,b)),function(){for(let c=arguments.length,d=0;d<c;d++)if(arguments[d].valueOf())return!0;return!1})}Ya(a){const b=this.sa.map(c=>c.Ya(a));return'{"c":"'+this.Sa()+'","a":['+b.join(',')+']}'}toString(){return'Or('+
|
|
1322
|
-
this.sa.map(a=>a.toString()).join(',')+')'}};X('olympe.dc.predicates.Or',olympe.dc.sa.ik);olympe.dc.sa.ik.ua=[olympe.dc.Oc];olympe.dc.sa.uA=class{constructor(a,b){this.O=a;this.R=b}Sa(){}F(){return[this.O.C(),this.R.C()]}C(a,b){return olympe.j.fb([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>{c=c.valueOf();d=d.valueOf();return this.T('string'===typeof c?c:Number(c),'string'===typeof d?d:Number(d))},Boolean)}T(){}Ya(a){return'{"c":"'+this.Sa()+'","a":['+this.O.Ya(a)+','+this.R.Ya(a)+']}'}toString(){return this.Sa().replace(/^.+\./,'')+'('+this.O.toString()+','+this.R.toString()+')'}};olympe.dc.sa.uA.ua=[olympe.dc.Oc];olympe.dc.sa.Wg=class{constructor(a,b){this.O=a;this.R=b}Sa(){return Y(olympe.dc.sa.Wg)}F(){return[this.O.C(),this.R.C()]}C(a,b){return olympe.j.fb([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>'object'===typeof c&&void 0!==c.
|
|
1322
|
+
this.sa.map(a=>a.toString()).join(',')+')'}};X('olympe.dc.predicates.Or',olympe.dc.sa.ik);olympe.dc.sa.ik.ua=[olympe.dc.Oc];olympe.dc.sa.uA=class{constructor(a,b){this.O=a;this.R=b}Sa(){}F(){return[this.O.C(),this.R.C()]}C(a,b){return olympe.j.fb([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>{c=c.valueOf();d=d.valueOf();return this.T('string'===typeof c?c:Number(c),'string'===typeof d?d:Number(d))},Boolean)}T(){}Ya(a){return'{"c":"'+this.Sa()+'","a":['+this.O.Ya(a)+','+this.R.Ya(a)+']}'}toString(){return this.Sa().replace(/^.+\./,'')+'('+this.O.toString()+','+this.R.toString()+')'}};olympe.dc.sa.uA.ua=[olympe.dc.Oc];olympe.dc.sa.Wg=class{constructor(a,b){this.O=a;this.R=b}Sa(){return Y(olympe.dc.sa.Wg)}F(){return[this.O.C(),this.R.C()]}C(a,b){return olympe.j.fb([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>'object'===typeof c&&void 0!==c.df?c.df(d):'object'===typeof d&&void 0!==d.df?d.df(c):olympe.j.Mc(c.valueOf()===d.valueOf()),olympe.j.ja,'Test equal predicate')}Ya(a){return'{"c":"'+this.Sa()+'","a":['+this.O.Ya(a)+','+this.R.Ya(a)+']}'}toString(){return'Equals('+this.O.toString()+','+this.R.toString()+
|
|
1323
1323
|
')'}};X('olympe.dc.predicates.Equals',olympe.dc.sa.Wg);olympe.dc.sa.Wg.ua=[olympe.dc.Oc];olympe.dc.sa.qP=class extends olympe.dc.sa.Wg{constructor(a,b){super(a,new olympe.dc.hb.Li(b))}};olympe.dc.sa.qP.ua=[olympe.dc.Oc];olympe.dc.sa.Lk=class extends olympe.dc.sa.uA{constructor(a,b){super(a,b)}Sa(){return Y(olympe.dc.sa.Lk)}T(a,b){return a>b}};X('olympe.dc.predicates.Greater',olympe.dc.sa.Lk);olympe.dc.sa.Vk=class extends olympe.dc.sa.uA{constructor(a,b){super(a,b)}Sa(){return Y(olympe.dc.sa.Vk)}T(a,b){return a<b}};X('olympe.dc.predicates.Smaller',olympe.dc.sa.Vk);olympe.dc.sa.vh=class{constructor(a,b,c){this.source=a;this.value=b;this.O=c?c:!1}Sa(){return Y(olympe.dc.sa.vh)}F(){return[this.source.C(),this.value.C()]}getValue(){return this.value}C(a,b){return olympe.j.fb([this.source.getValue(a,b),this.value.getValue(a,b),this.O],(c,d,e)=>{c=String(c);d=String(d);e.valueOf()||(c=c.toLowerCase(),d=d.toLowerCase());return olympe.j.Mc(c.includes(d))},olympe.j.ja)}Ya(a){const b=this.source.Ya(a),c=this.value.Ya(a);a=Bi(a,this.O);return'{"c":"'+this.Sa()+'","a":['+
|
|
1324
1324
|
b+','+c+','+a+']}'}toString(){const a=Ai(this.O);return'Contains('+this.source.toString()+','+this.value.toString()+','+a+')'}};X('olympe.dc.predicates.Contains',olympe.dc.sa.vh);olympe.dc.sa.vh.ua=[olympe.dc.Oc];olympe.dc.sa.Xi=class{constructor(a,b,c){this.source=a;this.R=b;this.O=void 0===c?!0:c}Sa(){return Y(olympe.dc.sa.Xi)}F(){return[this.source.C()]}C(a,b){return olympe.j.tj([this.source.getValue(a,b),this.R,this.O],(c,d,e)=>{c=String(c);d=String(d);e.valueOf()||(c=c.toLowerCase(),d=d.toLowerCase());return(new RegExp(d)).test(c)})}Ya(a){const b=this.source.Ya(a),c=Bi(a,this.R);a=Bi(a,this.O);return'{"c":"'+this.Sa()+'","a":['+b+','+c+','+a+']}'}toString(){const a=Ai(this.O);return'Regex('+this.source.toString()+
|
|
1325
1325
|
','+this.R+','+a+')'}};X('olympe.dc.predicates.Regex',olympe.dc.sa.Xi);olympe.dc.sa.Xi.ua=[olympe.dc.Oc];olympe.dc.sa.Gn=class{constructor(a){this.O=new Set;a instanceof Array?a.forEach(b=>{this.O.add(olympe.dc.Gb(b))}):this.O.add(olympe.dc.Gb(a))}Sa(){return Y(olympe.dc.sa.Gn)}F(){return[]}C(a,b){const c=olympe.j.createNode(Boolean),d=olympe.dc.fc();let e=[];const f=()=>{e.forEach(k=>{d.F(k.tag,k.C,k.id)});e=[]},g=(k,l)=>{if(k)if(l===olympe.dc.Gb(olympe.dc.CloudObject))lb(c,this.O.has(l)),f();else{for(const m of e)if(m.tag===l)throw Error(`You should never extend a model to itself (${l})`);this.O.has(l)?
|
|
@@ -1331,65 +1331,65 @@ function Rj(a,b,c,d){const e=Object.create(null);d+=olympe.oa.aj();const f=(g,k,
|
|
|
1331
1331
|
'')+'('+a.toString()+','+this.value.toString()+')'}};X('olympe.dc.predicates.BitMask',olympe.dc.sa.DA);olympe.dc.sa.DA.ua=[olympe.dc.Oc];let Sj=0;olympe.dc.sa.Oq=class{constructor(){this.id=Sj++}Sa(){return'CustomLocalPredicate#'+this.id}F(){return[]}C(){throw Error('Test function was not implemented.');}Ya(){return`{"c":"${this.Sa()}"}`}toString(){return this.Sa()+'()'}};olympe.dc.sa.Oq.ua=[olympe.dc.Oc];olympe.dc.sa.$A=class{constructor(a,b,c){this.O=[];this.R=void 0!==c?c.map(olympe.dc.Gb):null;a=Array.isArray(a)?a:[a];for(let d=0,e=a.length;d<e;d++)c=a[d],c instanceof olympe.dc.wa.fg?this.O.push(new Tj(c.ca(),c.qc(),c.F,c.C)):this.O.push(new Tj(olympe.dc.Gb(c),b[d],1,1))}Sa(){return Y(olympe.dc.sa.$A)}F(){return[this.O.reduce((a,b)=>a.concat(b),[])]}C(a,b){const c=olympe.j.createNode(Boolean),d=olympe.dc.fc(),e=olympe.oa.aj();a=(k,l,m)=>{l&&(null===this.R||this.R.includes(m))&&k(1)};const f=this.O;
|
|
1332
1332
|
for(let k=f.length-1;0<=k;k--)a=f[k].getTransform(d,a,e+k);let g=0;qf(d,b,a.bind(null,k=>{c.rg()||c.Dc()||(g+=k,lb(c,0<g))}),e);olympe.j.ib().onDestroy(()=>rf(d,b,e));c.th(!1);return c}Ya(){return'{"c":"'+this.Sa()+'","a":['+JSON.stringify(this.O.map(a=>a.Ya()))+(null!==this.R?',"'+this.R.toString():'')+'"]}'}toString(){return'HasRelatedTree('+(null!==this.R?'#['+this.R.toString()+'], ':'')+this.O.map(a=>a.Ya())+')'}};X('olympe.dc.predicates.HasRelatedTree',olympe.dc.sa.$A);
|
|
1333
1333
|
class Tj extends olympe.dc.query.Relation{constructor(a,b,c,d){super(a,b,1!==c||1!==d);this.F=c;this.C=d;this.R=new Map;this.O=new Map}getTransform(a,b,c){const d=this.O,e=this.R,f=new Set,g=(l,m,n)=>{e.has(m)?e.get(m).set(c+n,l):e.set(m,(new Map).set(c+n,l))},k=(l,m,n,p,r)=>{const t=olympe.oa.aj();if(p){const u=n+r,w=v=>{const x=e.get(r);if(f.has(u))throw Error(`Try to use the predicate HasRelatedTree with recursion in a graph cluster containing a loop around instances ${n} and ${r}`);void 0!==x&&
|
|
1334
|
-
null!==x&&(f.add(u),d.set(r,(d.get(r)||0)+v),Array.from(x.values()).forEach(y=>y(v)));f.delete(u)};g(l,r,n);d.has(r)?l(d.get(r)):(m>=this.F&&b(v=>{d.set(r,(d.get(r)||0)+v);l(v)},p,r),(0>this.C||m<=this.C)&&r!==n&&Dg(a,r,this,k.bind(this,w,m+1,r),t))}else l(-d.get(r)),e.get(r).delete(c+n),0===e.get(r).size&&(d.delete(r),e.delete(r),a.F(r,this,t))};return(l,m,n)=>k(l,0,'origin',m,n)}Ya(){return`${this.ca()}, ${this.qc()}, ${this.F}, ${this.C}`}}olympe.dc.sa.$A.ua=[olympe.dc.Oc];olympe.dc.wa={};olympe.dc.wa.yv={xP:1,TP:-1,dB:0};olympe.dc.wa.l_={SX:!0,mY:!1};olympe.dc.wa.
|
|
1335
|
-
this,l)}}Ya(){return'{"c":"'+this.Sa()+'","a":["'+this.ca()+'","'+this.qc()+'"]}'}toString(){return'Related('+this.qc()+this.ca()+')'}};X('olympe.dc.transformers.Related',olympe.dc.wa.
|
|
1334
|
+
null!==x&&(f.add(u),d.set(r,(d.get(r)||0)+v),Array.from(x.values()).forEach(y=>y(v)));f.delete(u)};g(l,r,n);d.has(r)?l(d.get(r)):(m>=this.F&&b(v=>{d.set(r,(d.get(r)||0)+v);l(v)},p,r),(0>this.C||m<=this.C)&&r!==n&&Dg(a,r,this,k.bind(this,w,m+1,r),t))}else l(-d.get(r)),e.get(r).delete(c+n),0===e.get(r).size&&(d.delete(r),e.delete(r),a.F(r,this,t))};return(l,m,n)=>k(l,0,'origin',m,n)}Ya(){return`${this.ca()}, ${this.qc()}, ${this.F}, ${this.C}`}}olympe.dc.sa.$A.ua=[olympe.dc.Oc];olympe.dc.wa={};olympe.dc.wa.yv={xP:1,TP:-1,dB:0};olympe.dc.wa.l_={SX:!0,mY:!1};olympe.dc.wa.Xe=class extends olympe.dc.ub.Relation{constructor(a,b){super(a,b||olympe.dc.Nb.DESTINATION)}Qe(){return Gf(this)}Sa(){return Y(olympe.dc.wa.Xe)}cf(){return new olympe.dc.wa.Xe(this.tag,this.direction===olympe.dc.Nb.DESTINATION?olympe.dc.Nb.ORIGIN:olympe.dc.Nb.DESTINATION)}getTransform(a,b,c){const d=olympe.dc.fc(),e=this.ca(),f=this.qc();return(g,k,l,m)=>{Dj(b,l,k,e,f);g?Dg(d,k,this,(n,p)=>{const r=olympe.oa.yd(l+f+e+p,20),t=pj(m,n,p,r);n&&b.register(r,l,k,e,f);c(n,p,r,t)},l):d.F(k,
|
|
1335
|
+
this,l)}}Ya(){return'{"c":"'+this.Sa()+'","a":["'+this.ca()+'","'+this.qc()+'"]}'}toString(){return'Related('+this.qc()+this.ca()+')'}};X('olympe.dc.transformers.Related',olympe.dc.wa.Xe);olympe.dc.wa.Xe.ua=[olympe.dc.qh];olympe.dc.wa.fg=class extends olympe.dc.ub.Relation{constructor(a,b=olympe.dc.Nb.DESTINATION,c=1,d=-1){super(a,b);this.F=c;this.C=d}Qe(){return Gf(this)}Sa(){return Y(olympe.dc.wa.fg)}getTransform(a,b,c){const d=olympe.dc.fc(),e=Object.create(null),f=olympe.dc.Nb.ORIGIN,g=olympe.dc.Nb.DESTINATION,k=this.ca(),l=this.qc(),m=(p,r,t)=>{if(!(0<=this.C&&p>=this.C)){var u=d.wc(t,this);p+=1;for(let w=0,v=u.length;w<v;w++){if(void 0!==e[u[w]]||t===u[w])continue;const x=olympe.oa.yd(r+l+(k+'_'+p)+u[w],20);
|
|
1336
1336
|
b.register(x,r,t,k,l||g);null===l&&b.register(x,r,t,k,f)}}},n=(p,r,t,u,w,v)=>{w&&!b.F&&m(p,u,v);p>=this.F?c(w,v,u,pj(t,w,v,u)):Dj(b,u,v,k,l);0<=this.C&&p>=this.C||(w?e[v]||(e[v]=!0,Dg(d,v,this,(x,y)=>{const B=p+1,E=olympe.oa.yd(u+l+(k+'_'+B)+y,20);n(B,v,t,E,x,y)},u)):(d.F(v,this,u),delete e[v]))};return(p,r,t,u)=>n(0,null,u,t,p,r)}Ya(){return'{"c":"'+this.Sa()+'","a":["'+this.ca()+'","'+this.qc()+'",'+this.F+','+this.C+']}'}toString(){return'RecursiveRelated('+this.qc()+this.ca()+'['+this.F+'..'+
|
|
1337
1337
|
this.C+'])'}};X('olympe.dc.transformers.RecursiveRelated',olympe.dc.wa.fg);olympe.dc.wa.fg.ua=[olympe.dc.qh];function Uj(a){return a.C.map(b=>b.ca())}
|
|
1338
1338
|
olympe.dc.wa.Qk=class{constructor(a,b){this.direction=b||olympe.dc.Nb.DESTINATION;this.C=a.map(c=>new olympe.dc.ub.Relation(c,this.direction))}Qe(){return olympe.dc.CloudObject}Sa(){return Y(olympe.dc.wa.Qk)}qc(){return this.direction}getTransform(a,b,c){const d=olympe.dc.fc(),e=(f,g,k,l)=>Dg(d,f,l,(m,n)=>{var p=l.qc();var r=l.ca();p=olympe.oa.yd(g+p+r+n,20);r=pj(k,m,n,p);m&&b.register(p,g,f,l.ca(),l.qc());c(m,n,p,r)},g);return(f,g,k,l)=>{f?this.C.forEach(m=>{Dj(b,k,g,m.ca(),m.qc());e(g,k,l,m)}):
|
|
1339
1339
|
this.C.forEach(m=>{d.F(g,m,k)})}}Ya(){return'{"c":"'+this.Sa()+'","a":['+JSON.stringify(Uj(this))+',"'+this.direction+'"]}'}toString(){return'MultiRelated('+this.qc()+'['+Uj(this).join(',')+'])'}};X('olympe.dc.transformers.MultiRelated',olympe.dc.wa.Qk);olympe.dc.wa.Qk.ua=[olympe.dc.qh];olympe.dc.wa.QA=class{constructor(a,b,c,d){this.rel=new olympe.dc.ub.Relation(olympe.dc.Gb(a),c||olympe.dc.Nb.DESTINATION);this.C=new olympe.dc.ub.Relation(olympe.dc.Gb(b),d||olympe.dc.Nb.DESTINATION)}Qe(){return Gf(this.rel)}Sa(){return Y(olympe.dc.wa.QA)}getTransform(a,b,c){const d=olympe.dc.fc(),e={},f=this.rel.ca(),g=this.rel.qc(),k=this.C.ca(),l=this.C.qc();let m=null,n=null;const p=(t,u,w,v,x,y)=>{if(x){if(x=()=>{const B=olympe.oa.yd(w+g+(f+'_'+t)+y,20),E=pj(u,!0,y,B);m=t;n=()=>{c(!1,y,B,pj(u,
|
|
1340
1340
|
!1,y,B))};b.register(B,w,v,f,g);c(!0,y,B,E)},x.wN=t,e[v]=x,null===m||t<m)n&&n(),x()}else if(m===t){n();e[v]=!0;x=Infinity;let B=null;for(let E=Object.keys(e),D=E.length,P=0;P<D;P++){let ha=e[E[P]];ha.wN<x&&(x=ha.wN,B=ha)}B&&B()}},r=(t,u,w,v,x)=>{v?e[x]||(e[x]=!0,Dj(b,w,x,f,g),Dj(b,w,x,k,l),Dg(d,x,this.rel,p.bind(this,t,u,w,x),w+'_val'),Dg(d,x,this.C,r.bind(this,t+1,u,w),w+'_follow')):(d.F(x,this.C,w+'_follow'),d.F(x,this.rel,w+'_val'),delete e[x])};return(t,u,w,v)=>r(0,v,w,t,u)}Ya(){return'{"c":"'+
|
|
1341
1341
|
this.Sa()+'","a":["'+this.rel.toString()+'","'+this.C.toString()+'"]}'}toString(){return'FirstRelated('+this.rel.toString()+', '+this.C.toString()+')'}};X('olympe.dc.transformers.FirstRelated',olympe.dc.wa.QA);olympe.dc.wa.QA.ua=[olympe.dc.qh];olympe.dc.wa.Hk=class{Qe(){return null}Sa(){return Y(olympe.dc.wa.Hk)}getTransform(a,b,c){const d={};return function(e,f,g,k){e?void 0===d[f]?(d[f]=1,b.C.C!==g||b.F||(b.C.C=f),c(!0,f,f,pj(k,!0,f,f))):(d[f]++,Cj(b,g)):void 0!==d[f]&&0>=--d[f]&&(delete d[f],c(!1,f,f,pj(k,!1,f,f)))}}Ya(){return'{"c":"'+this.Sa()+'"}'}toString(){return'Distinct()'}};X('olympe.dc.transformers.Distinct',olympe.dc.wa.Hk);olympe.dc.wa.Hk.ua=[olympe.dc.qh];olympe.dc.wa.wi=class{constructor(a,b){this.$i=a;this.C=void 0===b?!0:!!b}Qe(){return null}Sa(){return Y(olympe.dc.wa.wi)}F(){return[this.$i.T()]}getTransform(a,b,c){const d=new olympe.dc.Yf.XJ(this.C?this.$i.O.bind(this.$i):(e,f)=>this.$i.O(f,e));return(e,f,g)=>{var k=e?this.$i.R(a,f):void 0;k=d.C(e,f,g,k);c(e,f,g,k)}}Ya(a){return'{"c":"'+this.Sa()+'","a":['+this.$i.Ya(a)+','+JSON.stringify(this.C)+']}'}toString(){return'Sort('+this.$i.toString()+','+JSON.stringify(this.C)+')'}};
|
|
1342
|
-
X('olympe.dc.transformers.Sort',olympe.dc.wa.wi);olympe.dc.wa.wi.ua=[olympe.dc.qh,olympe.dc.gJ];olympe.dc.wa.ce=class{constructor(a){this.C=a}Qe(){return null}Sa(){return Y(olympe.dc.wa.ce)}F(){return this.C.F()}getTransform(a,b,c){function d(f,g,k,l){l=l.valueOf();!1===l&&Cj(b,g);l!==!!e[g]&&(e[g]=l,c(l,f,g,pj(k,l,f,g)))}const e={};return(f,g,k,l)=>{const m='@'+k;f?(f=this.C.C(a,g),olympe.j.mc(f)&&(f=f.
|
|
1342
|
+
X('olympe.dc.transformers.Sort',olympe.dc.wa.wi);olympe.dc.wa.wi.ua=[olympe.dc.qh,olympe.dc.gJ];olympe.dc.wa.ce=class{constructor(a){this.C=a}Qe(){return null}Sa(){return Y(olympe.dc.wa.ce)}F(){return this.C.F()}getTransform(a,b,c){function d(f,g,k,l){l=l.valueOf();!1===l&&Cj(b,g);l!==!!e[g]&&(e[g]=l,c(l,f,g,pj(k,l,f,g)))}const e={};return(f,g,k,l)=>{const m='@'+k;f?(f=this.C.C(a,g),olympe.j.mc(f)&&(f=f.Zb),olympe.j.Gm(f)?(b.F||void 0!==olympe.j.Ua(f)||Cj(b,k),e[m]=f,olympe.j.ab([f],n=>{d(g,k,l,n)},'filterResultHandler')):d(g,k,l,f)):(void 0!==e[m]&&(e[m].destroy(),delete e[m]),d(g,k,l,!1),
|
|
1343
1343
|
delete e[k])}}Ya(a){return'{"c":"'+this.Sa()+'","a":['+this.C.Ya(a)+']}'}toString(){return'Filter('+this.C.toString()+')'}};X('olympe.dc.transformers.Filter',olympe.dc.wa.ce);olympe.dc.wa.ce.ua=[olympe.dc.qh,olympe.dc.gJ];olympe.dc.wa.Dj=class{constructor(a,b){this.start=a;this.C=b}Qe(){return null}Sa(){return Y(olympe.dc.wa.Dj)}getTransform(a,b,c){const d=new olympe.dc.Yf.tB;let e,f,g,k=!1;const l=()=>{if(void 0!==f&&void 0!==g&&void 0!==e){var n=f+g;b.F||(b.C.C=e[0>n-1?0:Math.min(e.length,n)-1]);zj(d,e,f,n,c)}};olympe.j.Kh([this.start,this.C],(n,p)=>{f=n.valueOf();g=p.valueOf();l()});Ij(b,l);const m=Fj(b);Ej(b,m);return(n,p,r,t)=>{k||(t.Bg().Iq(u=>{e=u;Jj(b,m)}),nj(b,()=>t.Kp(),m),k=!0);d.C(n,p,r,null);oj(b,r,m)}}Ya(a){return'{"c":"'+
|
|
1344
1344
|
this.Sa()+'","a":['+Bi(a,this.start)+','+Bi(a,this.C)+']}'}toString(){return`Limit(${olympe.j.Ua(this.start)},${olympe.j.Ua(this.C)})`}};X('olympe.dc.transformers.Limit',olympe.dc.wa.Dj);olympe.dc.wa.Dj.ua=[olympe.dc.qh];function Vj(a,b,c,d,e,f){function g(p,r){if(m)for(var t=m.length-1;0<=t;t--)f=m[t].getTransform(b,e,n.md(f));f=n.md(f);e.register(k,null);t=d.C(p,r,c,null);f(p,r,k,pj(t,p,r,k))}const k=olympe.oa.De(),l=olympe.dc.fc(),m=a.wa,n=olympe.j.ib();olympe.j.ab([a.C],p=>{Wj(l,p,g,k);void 0===l.model(p)&&mj(e)})}function Wj(a,b,c,d){const e=b&&b.valueOf();e&&(qf(a,e,c,d),olympe.j.ib().Vd(()=>rf(a,e,d)))}
|
|
1345
1345
|
olympe.dc.wa.Wn=class{constructor(a,b){this.wa=this.C=null;a instanceof olympe.dc.Bb?(this.C=a.bj(),this.wa=a.nB()):(this.C=a,b&&(this.wa=b))}Qe(){return null}Sa(){return Y(olympe.dc.wa.Wn)||''}bq(){return this.wa}bj(){return this.C}getTransform(a,b,c){const d=new olympe.dc.Yf.tB,e=new olympe.dc.Yf.Hx;let f=[],g=[],k=!1,l=!1;const m=Fj(b),n=Fj(b);Ij(b,()=>{const p=f.concat(g);0<p.length?b.F||(b.C.C=p[p.length-1]):Jj(b);zj(d,p,0,p.length,c)});Ej(b,n);Vj(this,a,this.C,e,b,(p,r,t,u)=>{const w=olympe.j.ib();
|
|
1346
|
-
w.rg()||w.Dc()||(l||(u.Bg().Iq(v=>{g=v;Jj(b,n)}),nj(b,()=>u.Kp(),n),l=!0),d.C(p,r,t),oj(b,t,n))});Ej(b,m);return(p,r,t,u)=>{k||(u.Bg().Iq(w=>{f=w;Jj(b,m)}),nj(b,()=>u.Kp(),m),k=!0);d.C(p,r,t,m);oj(b,t,m)}}Ya(a){const b=this.wa?'['+this.wa.map(c=>c.Ya(a)).join(',')+']':'null';return'{"c":"'+this.Sa()+'","a":['+Bi(a,this.C)+','+b+']}'}toString(){const a=olympe.j.mc(this.C)?'N:'+this.C.
|
|
1347
|
-
X('olympe.dc.transformers.Union',olympe.dc.wa.Wn);olympe.dc.wa.Wn.ua=[olympe.dc.qh];olympe.dc.gn={};function Xj(a,b){let c=yf.get(b)||null,d=null;for(;!c&&b&&b!==d;){d=b;b=a.db.bo(b);if(null===b)break;c=yf.get(b)||null}return c||null}olympe.dc.gn.SyncManager=class{constructor(a,b,c){this.Y=a;this.db=b;this.C=c}};olympe.dc.gn.da={Ob:'dc.syncs.Logger',sb:'dc.syncs.SyncManager'};olympe.ma.Be(function(a){A(a,olympe.dc.gn.da.Ob,[olympe.rb.da.sb],b=>b.Mg('dc'));z(a,olympe.dc.gn.da.sb,olympe.dc.gn.SyncManager,olympe.dc.gn.da.Ob,olympe.dc.da.Tu,olympe.ma.da.zn)});olympe.dc.oa={};olympe.dc.oa.x0=function(a){a=olympe.dc.Gb(a);const b=olympe.j.qb(olympe.j.lb,'getInstanceName'),c=olympe.dc.fc(),d=Ag(c,a,olympe.dc.CloudObject.nameProp,b.update.bind(b));olympe.j.ib().Vd(c.O.bind(c,a,olympe.dc.CloudObject.nameProp,d));return b.Ba()};olympe.dc.oa.A0=function(a){return olympe.j.fb([a],b=>olympe.j.Tc(olympe.dc.fc().Lz(b)),olympe.j.ja)};olympe.dc.oa.B0=function(a){return(a=olympe.j.Ua(a))?olympe.dc.fc().Lz(a):!1};olympe.dc.oa.CB=class a{constructor(b=olympe.dc
|
|
1346
|
+
w.rg()||w.Dc()||(l||(u.Bg().Iq(v=>{g=v;Jj(b,n)}),nj(b,()=>u.Kp(),n),l=!0),d.C(p,r,t),oj(b,t,n))});Ej(b,m);return(p,r,t,u)=>{k||(u.Bg().Iq(w=>{f=w;Jj(b,m)}),nj(b,()=>u.Kp(),m),k=!0);d.C(p,r,t,m);oj(b,t,m)}}Ya(a){const b=this.wa?'['+this.wa.map(c=>c.Ya(a)).join(',')+']':'null';return'{"c":"'+this.Sa()+'","a":['+Bi(a,this.C)+','+b+']}'}toString(){const a=olympe.j.mc(this.C)?'N:'+this.C.Zb.xa():this.C.valueOf(),b=this.wa?','+this.wa.map(c=>c.toString()).join(','):'';return'Union('+a+b+')'}};
|
|
1347
|
+
X('olympe.dc.transformers.Union',olympe.dc.wa.Wn);olympe.dc.wa.Wn.ua=[olympe.dc.qh];olympe.dc.gn={};function Xj(a,b){let c=yf.get(b)||null,d=null;for(;!c&&b&&b!==d;){d=b;b=a.db.bo(b);if(null===b)break;c=yf.get(b)||null}return c||null}olympe.dc.gn.SyncManager=class{constructor(a,b,c){this.Y=a;this.db=b;this.C=c}};olympe.dc.gn.da={Ob:'dc.syncs.Logger',sb:'dc.syncs.SyncManager'};olympe.ma.Be(function(a){A(a,olympe.dc.gn.da.Ob,[olympe.rb.da.sb],b=>b.Mg('dc'));z(a,olympe.dc.gn.da.sb,olympe.dc.gn.SyncManager,olympe.dc.gn.da.Ob,olympe.dc.da.Tu,olympe.ma.da.zn)});olympe.dc.oa={};olympe.dc.oa.x0=function(a){a=olympe.dc.Gb(a);const b=olympe.j.qb(olympe.j.lb,'getInstanceName'),c=olympe.dc.fc(),d=Ag(c,a,olympe.dc.CloudObject.nameProp,b.update.bind(b));olympe.j.ib().Vd(c.O.bind(c,a,olympe.dc.CloudObject.nameProp,d));return b.Ba()};olympe.dc.oa.A0=function(a){return olympe.j.fb([a],b=>olympe.j.Tc(olympe.dc.fc().Lz(b)),olympe.j.ja)};olympe.dc.oa.B0=function(a){return(a=olympe.j.Ua(a))?olympe.dc.fc().Lz(a):!1};olympe.dc.oa.CB=class a{constructor(b=olympe.dc.Xb.nh){this.O=b}C(b){const c=new olympe.dc.db.dg;this.F(b,c);return c}T(b,c,d){const e=new olympe.dc.db.dg(b),f=new olympe.dc.query.Os(b,this.O,c,e);this.F(d,e,(g,k)=>{k=k||[];const l=f.C.get(g)||new Set;for(const m of k)l.add(m);f.C.set(g,l)});return f}R(b,c){const d=new olympe.dc.db.dg(b),e=new olympe.dc.query.KP(b,d);this.F(c,d,(f,g,k)=>{k=k||[];const l=new hi(f);l.add=g||[];l.remove=k;e.C.set(f,l)});return e}F(b,c,d){const e=olympe.dc.Jf.Hj;for(const f of b)switch(b=
|
|
1348
1348
|
f.i?f.i:-1,f.o){case 1:const g=a.C(f.p||{});g.has(e)||g.set(e,this.O);c.F(f.t,g,b);break;case 2:c.kg(f.t,a.C(f.p),!0,b);break;case 3:c.ah(f.t,f.f,b);break;case 4:c.Kb(f.m,f.l,f.r,b);break;case 5:c.Pf(f.m,f.l,f.r,b);break;case 6:d&&d(f.i,f.a,f.d);break;default:throw Error('Undefined patch operation: '+f.o);}}static C(b){const c=new Map;for(const [d,e]of Object.entries(b)){b=d;if(b===olympe.dc.Jf.Hj||b===olympe.dc.Jf.VERSION){c.set(b,e);continue}else if('v'===d){c.set(olympe.dc.Jf.VERSION,e);continue}let f=
|
|
1349
|
-
typeof e;b.startsWith('fd')&&(b=olympe.dc.Yl.
|
|
1350
|
-
e.M-1||0,e.d||1,e.h,e.m,e.s,e.S)));break;case '7':c.set(b,new olympe.j.Color(e.r,e.g,e.b,e.a));break;case '8':c.set(b,new olympe.dc.gg(e.t));break;case 'untyped':null===e&&c.set(b,null)}}return c}};olympe.dc.oa.
|
|
1351
|
-
olympe.dc.oa.
|
|
1352
|
-
olympe.dc.oa.
|
|
1353
|
-
olympe.dc.oa.
|
|
1354
|
-
olympe.ma.Be(function(a){C(a,olympe.dc.za.ap,!1);C(a,olympe.dc.za.Hp,!1);C(a,olympe.dc.za.bF,olympe.dc
|
|
1355
|
-
olympe.dc.db.da.sb,olympe.dc.query.da.sb,olympe.dc.transaction.da.sb,olympe.dc.gn.da.sb,olympe.dc.da.Wu)},'olympe.dc');olympe.ma.run([olympe.dc.db.da.sb,olympe.dc.query.da.sb,olympe.dc.transaction.da.sb,olympe.dc.gn.da.sb,olympe.dc.da.sb,olympe.dc.da.Wu],(a,b,c,d,e,f)=>{olympe.dc.Ai=()=>a;olympe.dc.oo=()=>b;olympe.dc.Ut=()=>c;olympe.dc.OM=()=>d;olympe.dc.Bg=()=>e;olympe.dc.PU=()=>f},'DC singleton getter initialization');function Yj(a,b,c,...d){b=olympe.dc.Gb(b);var e=yf.get(b)||null;if(e=e&&e.C)return e(a,c,...d);a=a.create(b);c&&a.setProperty(olympe.dc.CloudObject.nameProp,c);return a.ca()}olympe.dc.CloudObject=class{constructor(a,b){this.tag=b;this.Wa=olympe.dc.Bg&&olympe.dc.Bg();this.db=olympe.dc.fc();this.model=null}static get(a){{var b=olympe.dc.OM();a=olympe.dc.Gb(a);const c=Xj(b,b.db.model(a));null===c?(b.Y.error(`Instantiation of a CloudObject (tag = '${a}') that does not exist (or incompletely exists) in the local database.\n
|
|
1349
|
+
typeof e;b.startsWith('fd')&&(b=olympe.dc.Yl.Te+b.substr(2));'object'===f&&(f=e&&e.c?String(e.c):'untyped');switch(f){case '1':case '2':case '3':throw Error('Complex format for primitive types not supported.');case 'string':c.set(b,String(e));break;case 'boolean':c.set(b,!!e);break;case 'number':c.set(b,Number(e));break;case '4':c.set(b,new Date(Date.UTC(e.y,e.M-1,e.d,e.h,e.m,e.s,e.S)));break;case '5':c.set(b,new Date(Date.UTC(e.y,e.M-1,e.d)));break;case '6':c.set(b,new Date(Date.UTC(e.y||1970,e.M&&
|
|
1350
|
+
e.M-1||0,e.d||1,e.h,e.m,e.s,e.S)));break;case '7':c.set(b,new olympe.j.Color(e.r,e.g,e.b,e.a));break;case '8':c.set(b,new olympe.dc.gg(e.t));break;case 'untyped':null===e&&c.set(b,null)}}return c}};olympe.dc.oa.Ye={};olympe.dc.oa.Ye.kC=a=>'string'===typeof a||'number'===typeof a||'boolean'===typeof a||a instanceof String?olympe.j.jc(a):a instanceof olympe.j.lb?a:null;olympe.dc.oa.Ye.hC=a=>'boolean'===typeof a||a instanceof Boolean?olympe.j.Mc(a):a instanceof olympe.j.ja?a:null;olympe.dc.oa.Ye.jC=a=>'number'===typeof a||a instanceof Number?olympe.j.Ca(a):'string'===typeof a||a instanceof String?olympe.j.Ca(Number.parseFloat(a.valueOf())):a instanceof olympe.j.aa?a:null;
|
|
1351
|
+
olympe.dc.oa.Ye.iC=function(a){return'number'===typeof a||a instanceof Number?Pb(a.valueOf()):'string'===typeof a||a instanceof String?Lb(a.valueOf()):a instanceof Date?Ob(a):a instanceof olympe.j.cc?a:null};olympe.dc.oa.Ye.nL=function(a){return a instanceof olympe.j.Color?a:'string'===typeof a||a instanceof String?Wb(a.valueOf()):null};olympe.dc.oa.Ye.oL=a=>a instanceof olympe.dc.CloudObject?a:a instanceof olympe.dc.gg?vf(a):null;olympe.dc.oa.Ye.Pp=a=>a instanceof olympe.dc.gg?vf(a):a;
|
|
1352
|
+
olympe.dc.oa.Ye.IT=a=>{switch(typeof a){case 'boolean':return olympe.j.Mc(a);case 'number':return olympe.j.Ca(a);case 'string':return olympe.j.jc(a);case 'object':if(a instanceof Date)return olympe.j.rW(a)}return a};
|
|
1353
|
+
olympe.dc.oa.Ye.v0=a=>{switch(a){case olympe.j.ja:return olympe.dc.oa.Ye.hC;case olympe.j.lb:return olympe.dc.oa.Ye.kC;case olympe.j.aa:return olympe.dc.oa.Ye.jC;case olympe.j.cc:return olympe.dc.oa.Ye.iC;case olympe.j.Color:return olympe.dc.oa.Ye.nL;case olympe.dc.CloudObject:return olympe.dc.oa.Ye.oL;default:return olympe.dc.oa.Ye.Pp}};olympe.dc.da={sb:'dc.Manager',FP:'dc.Graph',Tu:'dc.DBView',Ob:'dc.Logger',QS:'dc.TransactionLogger',Wu:'dc.FileServiceManager',jk:'dc.Router'};olympe.dc.za={ap:'dc.debug',Hp:'dc.subscribeAll',bF:'dc.defaultSource',yF:'dc.fileCache',oF:'dc.errorOnAbstractInstantiation'};
|
|
1354
|
+
olympe.ma.Be(function(a){C(a,olympe.dc.za.ap,!1);C(a,olympe.dc.za.Hp,!1);C(a,olympe.dc.za.bF,olympe.dc.Xb.nh);C(a,olympe.dc.za.yF,!0);C(a,olympe.dc.za.oF,!0);A(a,olympe.dc.da.Ob,[olympe.rb.da.sb],b=>b.Mg('dc'));va(a,olympe.dc.da.QS,olympe.dc.transaction.da.Ob);va(a,olympe.dc.da.Tu,olympe.dc.db.da.kd);z(a,olympe.dc.da.Wu,olympe.dc.AP,olympe.dc.da.Ob,olympe.Lb.da.sb,olympe.dc.da.jk,olympe.oa.da.As,new olympe.ma.Ta(olympe.dc.za.yF));wa(a,olympe.dc.da.jk);z(a,olympe.dc.da.sb,olympe.dc.kb,olympe.dc.da.Ob,
|
|
1355
|
+
olympe.dc.db.da.sb,olympe.dc.query.da.sb,olympe.dc.transaction.da.sb,olympe.dc.gn.da.sb,olympe.dc.da.Wu)},'olympe.dc');olympe.ma.run([olympe.dc.db.da.sb,olympe.dc.query.da.sb,olympe.dc.transaction.da.sb,olympe.dc.gn.da.sb,olympe.dc.da.sb,olympe.dc.da.Wu],(a,b,c,d,e,f)=>{olympe.dc.Ai=()=>a;olympe.dc.oo=()=>b;olympe.dc.Ut=()=>c;olympe.dc.OM=()=>d;olympe.dc.Bg=()=>e;olympe.dc.PU=()=>f},'DC singleton getter initialization');function Yj(a,b,c,...d){b=olympe.dc.Gb(b);var e=yf.get(b)||null;if(e=e&&e.C)return e(a,c,...d);a=a.create(b);void 0!==c&&null!==c&&a.setProperty(olympe.dc.CloudObject.nameProp,c);return a.ca()}olympe.dc.CloudObject=class{constructor(a,b){this.tag=b;this.Wa=olympe.dc.Bg&&olympe.dc.Bg();this.db=olympe.dc.fc();this.model=null}static get(a){{var b=olympe.dc.OM();a=olympe.dc.Gb(a);const c=Xj(b,b.db.model(a));null===c?(b.Y.error(`Instantiation of a CloudObject (tag = '${a}') that does not exist (or incompletely exists) in the local database.\n
|
|
1356
1356
|
This could lead to unwanted behaviour and must be fixed.
|
|
1357
|
-
For more information, activate the database debug mode or call "dbMonitor.debug(${a})" from this console.`),b=new olympe.dc.CloudObject(void 0,a)):b=c.instantiate(a,b.C)}return b}static TT(a,b,c=olympe.dc
|
|
1357
|
+
For more information, activate the database debug mode or call "dbMonitor.debug(${a})" from this console.`),b=new olympe.dc.CloudObject(void 0,a)):b=c.instantiate(a,b.C)}return b}static TT(a,b,c=olympe.dc.Xb.Te){if('undefined'===typeof olympe.sc)throw Error('Method CloudObject.createWith should only be used at runtime, when sc package exists');const d=new olympe.sc.Qc(!1);a=d.create(b||this,a,c);d.Wc().catch(e=>olympe.rb.Eb('dc').error(`Error occurred for transaction executed by CloudObject.createWith: ${e}`));
|
|
1358
1358
|
return this.get(a)}static zT(){return this.get(this)}static Hz(a){return olympe.dc.Id.Hz(a)}static Ng(){return olympe.dc.fc().wc(this,olympe.dc.CloudObject.propertyRel).map(a=>new olympe.dc.ub.Property(a))}static bi(){const a=olympe.dc.fc();return a.wc(this,olympe.dc.CloudObject.R).map(b=>new olympe.dc.ub.Relation(b)).concat(a.wc(this,olympe.dc.CloudObject.ka).map(b=>new olympe.dc.ub.Relation(b,olympe.dc.Nb.ORIGIN)))}static ko(a){return olympe.dc.CloudObject.get(a)}static ZU(a){var b=Xj(olympe.dc.OM(),
|
|
1359
1359
|
olympe.dc.Gb(a));b=b&&b.F;return new olympe.dc.Bb(olympe.dc.Gb(a),olympe.dc.CloudObject.instancesRel,b)}ca(){return this.tag}name(){return this.db.name(this)}Sa(){return this.je(olympe.dc.CloudObject.nameProp)}Gr(){this.model||(this.model=olympe.dc.CloudObject.get(this.db.model(this)));return this.model}query(){return olympe.dc.Id.from(this)}ro(){return this.db.ro(this)}KV(){return this.db.version(this)}VQ(){return this.db.source(this)}aM(){return olympe.j.fb([this.Sa()],a=>olympe.j.jc(a),olympe.j.lb,
|
|
1360
|
-
'getDisplayName',olympe.j.jc('('+this.toString()+')'))}
|
|
1361
|
-
olympe.dc.CloudObject)}gw(){return this.wc(olympe.dc.CloudObject.containsRel,olympe.dc.CloudObject)}po(a,b,c){const d=olympe.j.qb(c,'Sync valueType'),e=Ag(this.db,this.tag,a,olympe.j.ib().md(f=>{b&&null!==f&&void 0!==f&&(f=b(f));null===f||void 0===f?d.clear():d.update(f)}));d.getContext().onDestroy(()=>this.db.O(this.tag,a,e));return d.getContext()}je(a){return nb(this.po(a,olympe.dc.oa.
|
|
1362
|
-
olympe.j.ja))}pw(a){return nb(this.po(a,olympe.dc.oa.
|
|
1360
|
+
'getDisplayName',olympe.j.jc('('+this.toString()+')'))}Ze(){return this.model?this.model.ca():this.db.model(this)}observe(a,b){const c='function'===typeof a.vf?a.vf():a;return new rxjs.Observable(d=>{const e=Ag(this.db,this.tag,b,f=>{null===f||void 0===f?d.next(null):d.next(f)});c.Vd(()=>{d.complete();this.db.O(this.tag,b,e)});return()=>this.db.O(this.tag,b,e)})}vW(a){return this.observe(olympe.j.ib(),a)}get(a){return this.db.nd(this.tag,a,!0)}nd(a){return this.get(a)}fe(a){return olympe.dc.Id.from(this).fe(a)}jU(a){return olympe.dc.Wi.from(this).fe(a)}co(){return this.bh(olympe.dc.CloudObject.Cb,
|
|
1361
|
+
olympe.dc.CloudObject)}gw(){return this.wc(olympe.dc.CloudObject.containsRel,olympe.dc.CloudObject)}po(a,b,c){const d=olympe.j.qb(c,'Sync valueType'),e=Ag(this.db,this.tag,a,olympe.j.ib().md(f=>{b&&null!==f&&void 0!==f&&(f=b(f));null===f||void 0===f?d.clear():d.update(f)}));d.getContext().onDestroy(()=>this.db.O(this.tag,a,e));return d.getContext()}je(a){return nb(this.po(a,olympe.dc.oa.Ye.kC,olympe.j.lb))}ai(a){return nb(this.po(a,olympe.dc.oa.Ye.jC,olympe.j.aa))}zm(a){return nb(this.po(a,olympe.dc.oa.Ye.hC,
|
|
1362
|
+
olympe.j.ja))}pw(a){return nb(this.po(a,olympe.dc.oa.Ye.iC,olympe.j.cc))}IM(){return nb(this.po(olympe.dm.Color.valueProp,olympe.dc.oa.Ye.nL,olympe.j.Color))}IC(a){return nb(this.po(a,olympe.dc.oa.Ye.oL,olympe.dc.CloudObject))}wc(a,b){a=a instanceof olympe.dc.wa.Xe?a:new olympe.dc.wa.Xe(a.ca(),a.qc());return new olympe.dc.Bb(this.ca(),a,b)}bh(a,b){return this.wc(a,b).Pd()}wC(a,b){const c=this.db,d=olympe.oa.De(),e=olympe.j.ib(),f=new Map;Dg(c,this.tag,a,(g,k)=>{g?(g=new olympe.j.Od(`forEachRelated: (${this.tag})-[:${a.ca()}]-(${k})`,
|
|
1363
1363
|
e),f.set(k,g),g.run(b,olympe.dc.CloudObject.get(k))):f.has(k)&&(f.get(k).destroy(),f.delete(k))},d);e.Vd(()=>{c.F(this.tag,a,d)})}vO(){return new olympe.dc.Bb(this.ca(),[],Ef(this.ca()))}transform(...a){return(new olympe.dc.Bb(this.ca(),[],this.constructor)).transform(...a)}Hg(){return this.aM()}toString(){if(!this.db.ue(this.tag))return`unknown object #${this.tag||'NULL_TAG'}`;const a=this.db.model(this.tag);var b=this.db.name(this);b=b?` instanceName: '${b}'`:'';return a?`${this.db.name(a)}#${this.tag}${b}`:
|
|
1364
|
-
`orphan object (no model) #${this.tag}${b}`}toJSON(){if(!this.db.ue(this.tag))return{CloudObject:'Unknown tag'};const a=this.db.model(this.tag),b=this.db.name(a),c=this.db.name(this.tag);return{CloudObject:this.tag,Name:c,Model:`${b} (${a})`}}Lc(a){return a instanceof olympe.dc.CloudObject?this.ca()===a.ca():!1}
|
|
1365
|
-
f,g]of Fg(b,this))f===d?a.Pf(e,g,this):e!==olympe.dc.CloudObject.modelRel.ca()&&a.Pf(e,this,g);a.delete(this,olympe.dc.
|
|
1366
|
-
olympe.dc.CloudObject.prototype.observeProperty=olympe.dc.CloudObject.prototype.vW;olympe.dc.CloudObject.prototype.observe=olympe.dc.CloudObject.prototype.observe;olympe.dc.CloudObject.prototype.getModelTag=olympe.dc.CloudObject.prototype.
|
|
1364
|
+
`orphan object (no model) #${this.tag}${b}`}toJSON(){if(!this.db.ue(this.tag))return{CloudObject:'Unknown tag'};const a=this.db.model(this.tag),b=this.db.name(a),c=this.db.name(this.tag);return{CloudObject:this.tag,Name:c,Model:`${b} (${a})`}}Lc(a){return a instanceof olympe.dc.CloudObject?this.ca()===a.ca():!1}df(a){return olympe.j.fb([a],b=>olympe.j.Mc(this.Lc(b)),olympe.j.ja)}VT(a){const b=this.db;let c=!1;if(void 0===a||null===a)a=new olympe.dc.Qc,c=!0;const d=olympe.dc.Nb.ORIGIN;for(const [e,
|
|
1365
|
+
f,g]of Fg(b,this))f===d?a.Pf(e,g,this):e!==olympe.dc.CloudObject.modelRel.ca()&&a.Pf(e,this,g);a.delete(this,olympe.dc.Ve.NONE);c&&a.Wc()}};olympe.dc.CloudObject.prototype.equals=olympe.dc.CloudObject.prototype.Lc;olympe.dc.CloudObject.prototype.followSingle=olympe.dc.CloudObject.prototype.jU;olympe.dc.CloudObject.prototype.follow=olympe.dc.CloudObject.prototype.fe;olympe.dc.CloudObject.prototype.getProperty=olympe.dc.CloudObject.prototype.nd;olympe.dc.CloudObject.prototype.get=olympe.dc.CloudObject.prototype.get;
|
|
1366
|
+
olympe.dc.CloudObject.prototype.observeProperty=olympe.dc.CloudObject.prototype.vW;olympe.dc.CloudObject.prototype.observe=olympe.dc.CloudObject.prototype.observe;olympe.dc.CloudObject.prototype.getModelTag=olympe.dc.CloudObject.prototype.Ze;olympe.dc.CloudObject.prototype.isPersisted=olympe.dc.CloudObject.prototype.ro;olympe.dc.CloudObject.prototype.query=olympe.dc.CloudObject.prototype.query;olympe.dc.CloudObject.prototype.getModel=olympe.dc.CloudObject.prototype.Gr;
|
|
1367
1367
|
olympe.dc.CloudObject.prototype.name=olympe.dc.CloudObject.prototype.name;olympe.dc.CloudObject.prototype.getTag=olympe.dc.CloudObject.prototype.ca;olympe.dc.CloudObject.getInstancesOf=olympe.dc.CloudObject.ZU;olympe.dc.CloudObject.getInstance=olympe.dc.CloudObject.ko;olympe.dc.CloudObject.getRelations=olympe.dc.CloudObject.bi;olympe.dc.CloudObject.getProperties=olympe.dc.CloudObject.Ng;olympe.dc.CloudObject.instancesOf=olympe.dc.CloudObject.Hz;olympe.dc.CloudObject.asInstance=olympe.dc.CloudObject.zT;
|
|
1368
1368
|
olympe.dc.CloudObject.createWith=olympe.dc.CloudObject.TT;olympe.dc.CloudObject.get=olympe.dc.CloudObject.get;olympe.dc.CloudObject.U=olympe.dc.Ra.C('ff021000000000000001',olympe.dc.CloudObject);olympe.dc.CloudObject.Af=olympe.dc.CloudObject.U.ea(olympe.dc.Jf.VERSION);olympe.dc.CloudObject.nameProp=olympe.dc.CloudObject.U.ea('ff023000000000000011');q('olympe.dc.CloudObject.nameProp',olympe.dc.CloudObject.nameProp);olympe.dc.CloudObject.ga=olympe.dc.CloudObject.U.ea('ff023000000000000012');
|
|
1369
1369
|
olympe.dc.CloudObject.R=olympe.dc.CloudObject.U.Sb('ff02200000000000000a');olympe.dc.CloudObject.ka=olympe.dc.CloudObject.U.Sb('ff02200000000000000b',olympe.dc.Nb.ORIGIN);olympe.dc.CloudObject.od=olympe.dc.CloudObject.U.Sb('017e9c4ba4c847d71cbf');olympe.dc.CloudObject.Xc=olympe.dc.CloudObject.U.Sb('017ea013caf8e89cedb2');olympe.dc.CloudObject.propertyRel=olympe.dc.CloudObject.U.Sb('ff02200000000000000c');q('olympe.dc.CloudObject.propertyRel',olympe.dc.CloudObject.propertyRel);
|
|
1370
1370
|
olympe.dc.CloudObject.typeRel=olympe.dc.CloudObject.U.Sb('ff02200000000000000d',olympe.dc.Nb.ORIGIN);olympe.dc.CloudObject.modelRel=olympe.dc.CloudObject.U.Sb(olympe.dc.Wf.Uh);q('olympe.dc.CloudObject.modelRel',olympe.dc.CloudObject.modelRel);olympe.dc.CloudObject.instancesRel=Z(olympe.dc.CloudObject.U,olympe.dc.CloudObject.modelRel);q('olympe.dc.CloudObject.instancesRel',olympe.dc.CloudObject.instancesRel);olympe.dc.CloudObject.extendRel=olympe.dc.CloudObject.U.Sb(olympe.dc.Wf.Es);
|
|
1371
1371
|
q('olympe.dc.CloudObject.extendRel',olympe.dc.CloudObject.extendRel);olympe.dc.CloudObject.extendedByRel=Z(olympe.dc.CloudObject.U,olympe.dc.CloudObject.extendRel);q('olympe.dc.CloudObject.extendedByRel',olympe.dc.CloudObject.extendedByRel);olympe.dc.CloudObject.containsRel=olympe.dc.CloudObject.U.Sb(olympe.dc.Wf.IE);q('olympe.dc.CloudObject.containsRel',olympe.dc.CloudObject.containsRel);olympe.dc.CloudObject.Cb=Z(olympe.dc.CloudObject.U,olympe.dc.CloudObject.containsRel);olympe.dc.n_=olympe.dc.CloudObject;
|
|
1372
|
-
olympe.dc.CloudObject.ua=[olympe.dc.ek];h=olympe.dc.CloudObject.prototype;h.ca.K=new olympe.j.J(()=>String,[]);h.name.K=new olympe.j.J(()=>String,[]);h.Sa.K=olympe.j.J.R;h.Gr.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.KV.K=new olympe.j.J(()=>Number,[]);h.VQ.K=new olympe.j.J(()=>String,[]);h.aM.K=olympe.j.J.R;h.
|
|
1373
|
-
h.ai.K=olympe.j.J.F;h.zm.K=olympe.j.J.T;h.pw.K=new olympe.j.J(()=>olympe.j.cc,[]);h.IM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.IC.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.wc.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.bh.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.wC.K=new olympe.j.J(()=>{},[]);h.vO.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.transform.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.Hg.K=olympe.j.J.R;h.toString.K=olympe.j.J.O;h.Lc.K=olympe.j.J.O;h.
|
|
1372
|
+
olympe.dc.CloudObject.ua=[olympe.dc.ek];h=olympe.dc.CloudObject.prototype;h.ca.K=new olympe.j.J(()=>String,[]);h.name.K=new olympe.j.J(()=>String,[]);h.Sa.K=olympe.j.J.R;h.Gr.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.KV.K=new olympe.j.J(()=>Number,[]);h.VQ.K=new olympe.j.J(()=>String,[]);h.aM.K=olympe.j.J.R;h.Ze.K=new olympe.j.J(()=>String,[]);h.co.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.gw.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.po.K=new olympe.j.J(()=>olympe.j.Node,[]);h.je.K=olympe.j.J.R;
|
|
1373
|
+
h.ai.K=olympe.j.J.F;h.zm.K=olympe.j.J.T;h.pw.K=new olympe.j.J(()=>olympe.j.cc,[]);h.IM.K=new olympe.j.J(()=>olympe.j.Color,[]);h.IC.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.wc.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.bh.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.wC.K=new olympe.j.J(()=>{},[]);h.vO.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.transform.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.Hg.K=olympe.j.J.R;h.toString.K=olympe.j.J.O;h.Lc.K=olympe.j.J.O;h.df.K=olympe.j.J.T;
|
|
1374
1374
|
h.VT.K=new olympe.j.J(()=>{},[]);olympe.dc.Zs=class{constructor(a){this.instance=a}ca(){return this.instance.ca()}xw(){return Eb(this.instance.zm(olympe.dc.CloudObject.ga),olympe.j.ja.wb)}NU(){return this.instance.bh(olympe.dc.CloudObject.extendRel,olympe.dc.CloudObject)}Gt(){return this.instance.transform(new olympe.dc.wa.fg(olympe.dc.CloudObject.extendRel.ca(),olympe.dc.Nb.DESTINATION,olympe.dc.wa.yv.xP))}KC(){return this.instance.transform(new olympe.dc.wa.fg(olympe.dc.CloudObject.extendRel.ca(),olympe.dc.Nb.DESTINATION,olympe.dc.wa.yv.dB))}Ng(){return this.KC().transform(olympe.dc.CloudObject.propertyRel,
|
|
1375
1375
|
new olympe.dc.wa.Hk)}AM(){return this.instance.transform(olympe.dc.CloudObject.propertyRel)}bi(){return this.KC().transform(olympe.dc.CloudObject.R,new olympe.dc.wa.Hk)}jV(){return this.instance.transform(olympe.dc.CloudObject.R)}static from(a){return olympe.j.fb([a],b=>{const c=b.ca(),d=olympe.dc.fc();if(!d.Lz(c))throw Error(`Instance "${d.name(c)}" (tag=${c}) is not a model.`);return new olympe.dc.Zs(b)},olympe.dc.Zs,'transformToModelInfo')}static xw(){return Eb((void 0).zm(olympe.dc.CloudObject.ga),
|
|
1376
1376
|
olympe.j.ja.wb)}};olympe.dc.Zs.ua=[olympe.dc.ek];h=olympe.dc.Zs.prototype;h.NU.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.Gt.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.KC.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.Ng.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.AM.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.bi.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.jV.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.dc.yZ=class{};olympe.dc.Oa={};olympe.dc.Oa.nG=class{constructor(a){this.Y=a}};olympe.dc.Oa.nG.Rn={Bv:0,VZ:1,XZ:3,AZ:4};olympe.dc.Oa.hy=class{};function Zj(a){if(a.V)throw Error('Cannot modify definition after definition is written');}
|
|
1377
|
-
olympe.dc.Oa.pf=class{constructor(a,b){a=this.C=a;if(a.C)throw b=a.C.Sa(),a=a.C.ca(),Error('Cannot work on a new definition without calling done on the previous one or popping it. '+`Make sure done() method has been called on previous definition ${b} (${a})`);if(void 0===this)throw Error('Current def cannot be set to undefined.');a.C=this;this.tag=b;this.Ed=new Map;this.ga=olympe.dc.CloudObject.U.ca();this.ta=new Map;this.ka=new Map;this.V=this.$=!1;this.T=null}yD(a){Zj(this);this.ga=a;return this}
|
|
1377
|
+
olympe.dc.Oa.pf=class{constructor(a,b){a=this.C=a;if(a.C)throw b=a.C.Sa(),a=a.C.ca(),Error('Cannot work on a new definition without calling done on the previous one or popping it. '+`Make sure done() method has been called on previous definition ${b} (${a})`);if(void 0===this)throw Error('Current def cannot be set to undefined.');a.C=this;this.tag=b;this.Ed=new Map;this.ga=olympe.dc.CloudObject.U.ca();this.ta=new Map;this.ka=new Map;this.V=this.$=!1;this.T=null}yD(a){Zj(this);this.ga=a;return this}Ze(){return this.ga}Rw(a){Zj(this);
|
|
1378
1378
|
this.T=a;return this}mX(){this.$=!0;return this}iX(a){Zj(this);const b=new Map;if('string'===typeof a){const c=olympe.dc.CloudObject.nameProp.ca();b.set(c,a||'')}else Object.keys(a).forEach(c=>{b.set(c,a[c])});this.Ed=b;return this}wu(a){Zj(this);Object.keys(a).forEach(b=>{this.Ed.set(b,a[b])});return this}setProperty(a,b){Zj(this);this.Ed.set(a,b);return this}fA(a){Zj(this);const b=olympe.dc.CloudObject.nameProp.ca();this.Ed.set(b,a);return this}fL(a,b){Zj(this);if(!a)throw Error('Cannot relate an object to another without a relation tag');
|
|
1379
1379
|
if(a===olympe.dc.CloudObject.containsRel.ca())throw Error('Container must be defined using dedicated helpers setContainedIn');b&&this.ta.set(a+'.'+b,[a,b]);return this}aC(a,b){Zj(this);if(!a)throw Error('Cannot relate an object to another without a relation tag');if(a===olympe.dc.CloudObject.containsRel.ca())throw Error('Container must be defined using dedicated helper setContainedIn');b&&this.ka.set(a+'.'+b,[a,b]);return this}done(){if(this.V)return this;const a=ak(this.C,this.$);a.F(this.tag,this.Ed,
|
|
1380
1380
|
-1);bk(this.C,this);a.Kb(olympe.dc.Wf.Uh,this.tag,this.ga,-1);this.T&&a.Kb(olympe.dc.Wf.IE,this.T,this.tag,-1);this.F(-1);this.ta.forEach(b=>{a.Kb(b[0],this.tag,b[1],-1)});this.ka.forEach(b=>{a.Kb(b[0],b[1],this.tag,-1)});this.V=!0;this.C.C=void 0;return this}F(){}ca(){return this.tag}Sa(){return this.Ed.get('ff023000000000000011')}};olympe.dc.Oa.pf.prototype.getName=olympe.dc.Oa.pf.prototype.Sa;olympe.dc.Oa.pf.prototype.getTag=olympe.dc.Oa.pf.prototype.ca;olympe.dc.Oa.pf.prototype.done=olympe.dc.Oa.pf.prototype.done;
|
|
1381
1381
|
olympe.dc.Oa.pf.prototype.addRelationFrom=olympe.dc.Oa.pf.prototype.aC;olympe.dc.Oa.pf.prototype.addRelationTo=olympe.dc.Oa.pf.prototype.fL;olympe.dc.Oa.pf.prototype.setName=olympe.dc.Oa.pf.prototype.fA;olympe.dc.Oa.pf.prototype.setProperty=olympe.dc.Oa.pf.prototype.setProperty;olympe.dc.Oa.pf.prototype.setProperties=olympe.dc.Oa.pf.prototype.wu;olympe.dc.Oa.pf.prototype.setNameOrProperties=olympe.dc.Oa.pf.prototype.iX;olympe.dc.Oa.pf.prototype.setOptional=olympe.dc.Oa.pf.prototype.mX;
|
|
1382
|
-
olympe.dc.Oa.pf.prototype.setContainedIn=olympe.dc.Oa.pf.prototype.Rw;olympe.dc.Oa.pf.prototype.setModelTag=olympe.dc.Oa.pf.prototype.yD;olympe.dc.Oa.zh=class extends olympe.dc.Oa.pf{constructor(a,b){super(a,b);this.R=this.C.OBJECT;this.Qa=new Map;this.Ka=new Map}eO(a){Zj(this);this.R=a;return this}extends(a){return this.eO(a)}Hv(){Zj(this);this.setProperty(olympe.dc.CloudObject.ga.ca(),!0);return this}defineProperty(a,b,c,d){Zj(this);this.Qa.set(a,new olympe.dc.Oa.zh.Property(a,b,c,d));void 0!==d&&super.setProperty(olympe.dc.Yl.
|
|
1382
|
+
olympe.dc.Oa.pf.prototype.setContainedIn=olympe.dc.Oa.pf.prototype.Rw;olympe.dc.Oa.pf.prototype.setModelTag=olympe.dc.Oa.pf.prototype.yD;olympe.dc.Oa.zh=class extends olympe.dc.Oa.pf{constructor(a,b){super(a,b);this.R=this.C.OBJECT;this.Qa=new Map;this.Ka=new Map}eO(a){Zj(this);this.R=a;return this}extends(a){return this.eO(a)}Hv(){Zj(this);this.setProperty(olympe.dc.CloudObject.ga.ca(),!0);return this}defineProperty(a,b,c,d){Zj(this);this.Qa.set(a,new olympe.dc.Oa.zh.Property(a,b,c,d));void 0!==d&&super.setProperty(olympe.dc.Yl.Te+a,d);return this}Ar(a,b,c,d,e,{Rv:f=0,Fw:g=olympe.dm.Relation.O,Mw:k=0,mA:l=d,fz:m=olympe.dm.hh.NONE}=
|
|
1383
1383
|
{}){Zj(this);b=new olympe.dc.Oa.zh.Relation(a,this.ca(),b,c||'',d,e,k,l,f,g,m);this.Ka.set(a,b);return this}F(a){super.F(a);ak(this.C).Kb(olympe.dc.CloudObject.extendRel.ca(),this.tag,this.R,a);this.Qa.forEach(b=>{const c={[olympe.dc.CloudObject.nameProp.ca()]:b.name||''},d=olympe.dc.Gb(olympe.dm.Property),e=olympe.dc.CloudObject.propertyRel.ca(),f=b.tag;this.C.push();this.C.Sr(f,d).wu(c).done();this.C.pop();b=b.type;ak(this.C).Kb(e,this.ca(),f,a);ak(this.C).Kb(olympe.dm.Property.typeRel.ca(),f,b,
|
|
1384
1384
|
a)});this.Ka.forEach(b=>{this.C.Ar(b.C,b.O,b.F,b.name,b.uL,b.rL,{Mw:b.Mw,mA:b.mA,Rv:b.Rv,Fw:b.Fw,fz:b.fz},a)})}};olympe.dc.Oa.zh.prototype.defineRelation=olympe.dc.Oa.zh.prototype.Ar;olympe.dc.Oa.zh.prototype.defineProperty=olympe.dc.Oa.zh.prototype.defineProperty;olympe.dc.Oa.zh.prototype['abstract']=olympe.dc.Oa.zh.prototype.Hv;olympe.dc.Oa.zh.prototype['extends']=olympe.dc.Oa.zh.prototype.extends;olympe.dc.Oa.zh.prototype.setParentTag=olympe.dc.Oa.zh.prototype.eO;
|
|
1385
1385
|
olympe.dc.Oa.zh.Property=class{constructor(a,b,c,d){this.tag=a;this.type=b;this.name=c||'';this.defaultValue=d}};olympe.dc.Oa.zh.Relation=class{constructor(a,b,c,d,e,f,g,k,l,m,n){this.C=a;this.O=b;this.F=c;this.name=d;this.uL=e;this.rL=f;this.Mw=g;this.mA=k;this.Rv=l;this.Fw=m;this.fz=n}};function ak(a,b){return b?a.V:a.F}function bk(a,b){0<a.R.length&&(b.T||a.F.Kb(olympe.dc.CloudObject.containsRel.ca(),a.R[a.R.length-1].ca(),b.ca(),-1))}
|
|
1386
|
-
olympe.dc.Oa.pc=class{constructor(a){if(a&&void 0===a.log)throw Error('Argument of OSaveFileBuilder is not a logger - might be a source, adapt implementing classes');this.F=new olympe.dc.transaction.Ui(!0);this.V=new olympe.dc.transaction.Ui(!0);this.Y=a||null;this.ta=!1;this.O=null;this.ka=new Map;this.ga=null;this.$=Object.create(null);this.C=void 0;this.R=[];this.T=!0;this.JN=/eval \(eval at process .*<anonymous>:(\d+):(\d+)\)/m;this.DEFAULT=olympe.dc.Yl.
|
|
1386
|
+
olympe.dc.Oa.pc=class{constructor(a){if(a&&void 0===a.log)throw Error('Argument of OSaveFileBuilder is not a logger - might be a source, adapt implementing classes');this.F=new olympe.dc.transaction.Ui(!0);this.V=new olympe.dc.transaction.Ui(!0);this.Y=a||null;this.ta=!1;this.O=null;this.ka=new Map;this.ga=null;this.$=Object.create(null);this.C=void 0;this.R=[];this.T=!0;this.JN=/eval \(eval at process .*<anonymous>:(\d+):(\d+)\)/m;this.DEFAULT=olympe.dc.Yl.Te;this.OBJECT=olympe.dc.CloudObject.U.ca();
|
|
1387
1387
|
this.PROPERTY=olympe.dm.Property.U.ca();this.RELATION=olympe.dm.Relation.U.ca();this.STRING=olympe.dm.String.U.ca();this.BOOLEAN=olympe.dm.Boolean.U.ca();this.NUMBER=olympe.dm.Number.U.ca();this.DATETIME=olympe.dm.DateTime.U.ca();this.COLOR=olympe.dm.Color.U.ca();this.FILE=olympe.dm.File.U.ca();this.ROLE=olympe.dm.Ah.U.ca();this.USER=olympe.dm.User.U.ca();this.ONE_ONE=olympe.dm.Relation.F.KR;this.ONE_MANY=olympe.dm.Relation.F.zB;this.MANY_ONE=olympe.dm.Relation.F.uR;this.MANY_MANY=olympe.dm.Relation.F.tR;
|
|
1388
1388
|
this.NONE=olympe.dm.hh.NONE;this.DESTINATION_READ=olympe.dm.hh.fP;this.DESTINATION_CREATE=olympe.dm.hh.eF;this.DESTINATION_WRITE=olympe.dm.hh.gP;this.DESTINATION_DELETE=olympe.dm.hh.cP;this.DESTINATION_LINK=olympe.dm.hh.eP;this.DESTINATION_FULL=olympe.dm.hh.dP;this.ORIGIN_READ=olympe.dm.hh.QR;this.ORIGIN_CREATE=olympe.dm.hh.NR;this.ORIGIN_WRITE=olympe.dm.hh.RR;this.ORIGIN_DELETE=olympe.dm.hh.OR;this.ORIGIN_LINK=olympe.dm.hh.SI;this.ORIGIN_FULL=olympe.dm.hh.PR;this.FULL=olympe.dm.hh.yP;this.DUMP_IGNORE=
|
|
1389
|
-
olympe.dm.Relation.C.fG;this.DUMP_REF=olympe.dm.Relation.C.rJ;this.DUMP_REVERSE_REF=olympe.dm.Relation.C.lS;this.DUMP_UNILATERAL=olympe.dm.Relation.C.Sy;this.DUMP_REVERSE_UNILATERAL=olympe.dm.Relation.C.Dy;this.DUMP_EVERYTHING=olympe.dm.Relation.C.qF;this.DUMP_DEFAULT=olympe.dm.Relation.C.
|
|
1389
|
+
olympe.dm.Relation.C.fG;this.DUMP_REF=olympe.dm.Relation.C.rJ;this.DUMP_REVERSE_REF=olympe.dm.Relation.C.lS;this.DUMP_UNILATERAL=olympe.dm.Relation.C.Sy;this.DUMP_REVERSE_UNILATERAL=olympe.dm.Relation.C.Dy;this.DUMP_EVERYTHING=olympe.dm.Relation.C.qF;this.DUMP_DEFAULT=olympe.dm.Relation.C.Te;this.DUMP_REV_DEFAULT=olympe.dm.Relation.C.kS;this.DELETE_REF=this.DUMP_BOTH_REF=olympe.dm.Relation.C.yA;this.DELETE_REF_AND_DESTINATION=olympe.dm.Relation.C.hS;this.DELETE_REF_AND_ORIGIN=olympe.dm.Relation.C.iS;
|
|
1390
1390
|
this.DELETE_EVERYTHING=olympe.dm.Relation.C.qF;this.OLYMPE_AUTHENTICATED_USERS=olympe.dm.Ah.F}push(){this.R.push(this.C);this.C=void 0}pop(){if(this.C)throw Error('Cannot unstack definition: current definition not closed');this.C=this.R.pop()}gU(){const a=new Map,b=olympe.dc.Oa.HS.Td(this.ga,this.F,this.V);for(const [c,d]of b.entries())a.set(c,d.O());return a}tV(){return this.ga}eX(a){this.T=a}log(...a){this.T&&this.Y&&this.Y.log(...a)}$C(...a){this.T&&this.Y&&this.Y.debug(...a)}$V(...a){this.T&&
|
|
1391
1391
|
this.Y&&this.Y.warn(...a)}ZV(...a){this.T&&this.Y&&this.Y.error(...a)}BT(a){if(a&&20===a.length&&!this.ta){if(this.$[a])throw Error('Tag '+a+' is used to define more than one keyword');return this.$[a]=a}this.O=null===this.O?olympe.oa.Dt():olympe.oa.rV(this.O);this.log('Generating new tag to replace '+a+'. New tag is: '+this.O);return this.O}MC(a){const b=this.ka.get(a)||1,c=olympe.oa.MC(a,b);this.ka.set(a,b+1);return c}zX(a){this.ta=a}XT(){}pX(a){this.ga=a}Sr(a,b){return(new olympe.dc.Oa.pf(this,
|
|
1392
|
-
a)).yD(b)}oW(a,b){return(new olympe.dc.Oa.zh(this,a)).fA(b)}nW(a,b){return(new olympe.dc.Oa.zh(this,a)).fA(b).Hv()}pW(a){return new olympe.dc.Oa.Xn(this,a)}Pz(a,b,c){this.F.Kb(a,b,c,-1)}defineProperty(a,b,c,d,e){this.$C('Defining property ',d,' on model ',a);d={[olympe.dc.CloudObject.nameProp.ca()]:d||''};void 0!==e&&this.kg(a,{[olympe.dc.Yl.
|
|
1392
|
+
a)).yD(b)}oW(a,b){return(new olympe.dc.Oa.zh(this,a)).fA(b)}nW(a,b){return(new olympe.dc.Oa.zh(this,a)).fA(b).Hv()}pW(a){return new olympe.dc.Oa.Xn(this,a)}Pz(a,b,c){this.F.Kb(a,b,c,-1)}defineProperty(a,b,c,d,e){this.$C('Defining property ',d,' on model ',a);d={[olympe.dc.CloudObject.nameProp.ca()]:d||''};void 0!==e&&this.kg(a,{[olympe.dc.Yl.Te+c]:e});this.C?(this.push(),this.Sr(c,olympe.dm.Property.U.ca()).wu(d).done(),this.pop()):this.Sr(c,olympe.dm.Property.U.ca()).wu(d).Rw(a).done();this.Pz(olympe.dc.CloudObject.propertyRel.ca(),
|
|
1393
1393
|
a,c);this.Pz(olympe.dm.Property.typeRel.ca(),c,b)}Ar(a,b,c,d,e,f,{Rv:g=olympe.dm.Relation.F.zB,Fw:k=olympe.dm.Relation.O,Mw:l=0,mA:m=e,fz:n=olympe.dm.hh.NONE}={},p=-1){if(void 0===e||null===e)throw Error('Cannot define a relation without defining the dump follow rules (must be set to db.DUMP_<something> and cannot be undefined or null)');if(void 0===f||null===f)throw Error('Cannot define a relation without defining the delete follow rules (must be set to db.DELETE_<something> and cannot be undefined or null)');
|
|
1394
1394
|
const r=olympe.dm.Relation;d={[olympe.dc.CloudObject.nameProp.ca()]:d||'',[r.gC.ca()]:g,[r.dD.ca()]:k,[r.rC.ca()]:e,[r.qC.ca()]:f,[r.Xz.ca()]:l,[r.rO.ca()]:m,[r.CT.ca()]:n};this.C?(this.push(),this.Sr(a,r.U.ca()).wu(d).done(),this.pop()):this.Sr(a,r.U.ca()).wu(d).Rw(b).done();this.F.Kb(r.originModelRel.ca(),b,a,p);this.F.Kb(r.destinationModelRel.ca(),a,c,p)}XV(a,b){this.F.Kb(olympe.dm.Ah.C.ca(),a,b,-1)}kg(a,b,c=!1){this.$C('Updating instance ',a);delete b[olympe.dc.Jf.Hj];delete b[olympe.dc.Jf.VERSION];
|
|
1395
1395
|
const d=new Map;Object.keys(b).forEach(e=>{d.set(e,b[e])});this.F.kg(a,d,c,-1)}assign(a,b,c){this.Pz(b,a,c)}AT(a,b,c){this.V.Kb(b,a,c,-1)}ST(a){return new olympe.dc.gg(a)}NT(a,b,c,d){const e={c:7};e.r=a;e.g=b;e.b=c;e.a=d;return e}OT({year:a=1970,month:b=1,day:c=1,hour:d=1,minute:e=0,second:f=0,gW:g=0,P0:k=0}={}){const l={c:4};l.y=a;l.M=b;l.d=c;l.h=d;l.m=e;l.s=f;l.S=g;l.z=k;return l}kU(a){a=new Date(Date.parse(a));const b={c:4};b.y=a.getFullYear();b.M=a.getMonth()+1;b.d=a.getDate();b.h=a.getHours();
|
|
@@ -1398,30 +1398,30 @@ b.m=a.getMinutes();b.s=a.getSeconds();b.S=a.getMilliseconds();b.z=-a.getTimezone
|
|
|
1398
1398
|
olympe.dc.Oa.pc.prototype.createColor=olympe.dc.Oa.pc.prototype.NT;olympe.dc.Oa.pc.prototype.createReference=olympe.dc.Oa.pc.prototype.ST;olympe.dc.Oa.pc.prototype.assignOptional=olympe.dc.Oa.pc.prototype.AT;olympe.dc.Oa.pc.prototype.assign=olympe.dc.Oa.pc.prototype.assign;olympe.dc.Oa.pc.prototype.updateInstance=olympe.dc.Oa.pc.prototype.kg;olympe.dc.Oa.pc.prototype.linkRoleToUser=olympe.dc.Oa.pc.prototype.XV;olympe.dc.Oa.pc.prototype.defineRelation=olympe.dc.Oa.pc.prototype.Ar;
|
|
1399
1399
|
olympe.dc.Oa.pc.prototype.defineProperty=olympe.dc.Oa.pc.prototype.defineProperty;olympe.dc.Oa.pc.prototype.newRelation=olympe.dc.Oa.pc.prototype.Pz;olympe.dc.Oa.pc.prototype.newUser=olympe.dc.Oa.pc.prototype.pW;olympe.dc.Oa.pc.prototype.newAbstractModel=olympe.dc.Oa.pc.prototype.nW;olympe.dc.Oa.pc.prototype.newModel=olympe.dc.Oa.pc.prototype.oW;olympe.dc.Oa.pc.prototype.newInstance=olympe.dc.Oa.pc.prototype.Sr;olympe.dc.Oa.pc.prototype.setRootInstanceTag=olympe.dc.Oa.pc.prototype.pX;
|
|
1400
1400
|
olympe.dc.Oa.pc.prototype.disableChecks=olympe.dc.Oa.pc.prototype.XT;olympe.dc.Oa.pc.prototype.setUseNewTags=olympe.dc.Oa.pc.prototype.zX;olympe.dc.Oa.pc.prototype.assignTag=olympe.dc.Oa.pc.prototype.BT;olympe.dc.Oa.pc.prototype.logError=olympe.dc.Oa.pc.prototype.ZV;olympe.dc.Oa.pc.prototype.logWarn=olympe.dc.Oa.pc.prototype.$V;olympe.dc.Oa.pc.prototype.logDebug=olympe.dc.Oa.pc.prototype.$C;olympe.dc.Oa.pc.prototype.log=olympe.dc.Oa.pc.prototype.log;olympe.dc.Oa.pc.prototype.setLoggingEnabled=olympe.dc.Oa.pc.prototype.eX;
|
|
1401
|
-
olympe.dc.Oa.pc.prototype.getRootInstanceTag=olympe.dc.Oa.pc.prototype.tV;olympe.dc.Oa.pc.prototype.flushContents=olympe.dc.Oa.pc.prototype.gU;olympe.dc.Oa.Gp=class extends olympe.dc.Oa.zh{constructor(a,b,c){super(a,b);this.O=this.description=null;this.setProperty(olympe.dm.BrickMetadata.Ha.ca(),olympe.dm.BrickMetadata.Ib.WR);null!==c&&this.gL(c)}gL(a){this.Rw(a);this.aC(olympe.dm.
|
|
1401
|
+
olympe.dc.Oa.pc.prototype.getRootInstanceTag=olympe.dc.Oa.pc.prototype.tV;olympe.dc.Oa.pc.prototype.flushContents=olympe.dc.Oa.pc.prototype.gU;olympe.dc.Oa.Gp=class extends olympe.dc.Oa.zh{constructor(a,b,c){super(a,b);this.O=this.description=null;this.setProperty(olympe.dm.BrickMetadata.Ha.ca(),olympe.dm.BrickMetadata.Ib.WR);null!==c&&this.gL(c)}gL(a){this.Rw(a);this.aC(olympe.dm.Ue.C.ca(),a);return this}xD(a){this.Ed.set(olympe.dm.zj.Qa.ca(),a);return this}WW(a){Zj(this);this.description=a;return this}vX(a){Zj(this);this.O=a;return this}F(a){super.F(a);if(null!==this.description||null!==this.O)this.C.push(),a=this.C.Sr(this.C.MC(this.tag),
|
|
1402
1402
|
olympe.sc.xg.U.ca()),this.description&&a.setProperty(olympe.sc.xg.C.ca(),this.description),this.O&&a.setProperty(olympe.sc.xg.O.ca(),this.O),a.Rw(this.tag).fL(olympe.sc.xg.F.ca(),this.tag).done(),this.C.pop()}};olympe.dc.Oa.Gp.prototype.setSummary=olympe.dc.Oa.Gp.prototype.vX;olympe.dc.Oa.Gp.prototype.setDescription=olympe.dc.Oa.Gp.prototype.WW;olympe.dc.Oa.Gp.prototype.setIcon=olympe.dc.Oa.Gp.prototype.xD;olympe.dc.Oa.Gp.prototype.addToFolder=olympe.dc.Oa.Gp.prototype.gL;olympe.dc.Oa.HS=class a{constructor(b,c,d){this.F=b;this.Fb=c||[];this.C=d||[]}static Td(b,c,d){if(c instanceof olympe.dc.transaction.Ui&&d instanceof olympe.dc.transaction.Ui){c=Yg(c);var e=Yg(d)}else e=new olympe.dc.transaction.Ui(!0),c.rh(e),c=Yg(e),d.rh(e),e=Yg(e);d=new Map;var f=new a(b,c.Qp,e.Qp);f.hj()||d.set('delRel',f);f=new a(b,c.km,e.km);f.hj()||d.set('detInst',f);f=new a(b,c.jq,e.jq);f.hj()||d.set('newInst',f);f=new a(b,c.To,e.To);f.hj()||d.set('updateInst',f);b=new a(b,c.kq,e.kq);b.hj()||
|
|
1403
1403
|
d.set('newRel',b);return d}hj(){return 0===this.Fb.length+this.C.length}static Oz(b){const c=Object.create(null),d=[],e=[];b.forEach(f=>{0===Object.keys(c).length&&(c.rootTag=f.rootTag);d.push(...(f.operations||[]));e.push(...(f.optionalOperations||[]))});0!==d.length&&(c.operations=d);0!==e.length&&(c.optionalOperations=e);return c}O(){const b=(d,e)=>{var f=d.o,g=e.o;return f!==g?f<g?-1:1:1===f||2===f||3===f?(f=d.t,g=e.t,f===g?(d=Object.keys(d.p)[0],e=Object.keys(e.p)[0],void 0!==d?d.localeCompare(e):
|
|
1404
1404
|
1):f.localeCompare(g)):4===f||5===f?(f=d.l,g=e.l,f===g?(f=d.m,g=e.m,f===g?d.r.localeCompare(e.r):f.localeCompare(g)):f.localeCompare(g)):JSON.stringify(f).localeCompare(JSON.stringify(g))},c=Object.create(null);this.Fb.sort(b);this.C.sort(b);c.rootTag=this.F;c.operations=this.Fb;c.optionalOperations=this.C;return c}};olympe.dc.Oa.Xn=class extends olympe.dc.Oa.pf{constructor(a,b){super(a,b);this.O=this.R=null;this.yD(olympe.dc.Gb(olympe.dm.User))}AX(a){Zj(this);this.R=a;return this}gA(a){Zj(this);this.O=a;return this}YW(){return this}DT(a){Zj(this);this.aC(olympe.dm.User.C.ca(),a);return this}F(a){super.F(a);if(null==this.R||''===this.R)throw Error('A username must be set when calling new User');if(null==this.O||''===this.O)throw Error('A password must be set when calling new User');const b=this.C.xL(this.R,this.O),
|
|
1405
|
-
c=new Map;c.set(olympe.dm.User.loginProp.ca(),b.login);c.set(olympe.dm.User.saltProp.ca(),b.salt);c.set(olympe.dm.User.verifierProp.ca(),b.verifier);ak(this.C).kg(this.ca(),c,!1,a)}};olympe.dc.Oa.Xn.prototype.awardRole=olympe.dc.Oa.Xn.prototype.DT;olympe.dc.Oa.Xn.prototype.setDomain=olympe.dc.Oa.Xn.prototype.YW;olympe.dc.Oa.Xn.prototype.setPassword=olympe.dc.Oa.Xn.prototype.gA;olympe.dc.Oa.Xn.prototype.setUsername=olympe.dc.Oa.Xn.prototype.AX;olympe.dc.Oa.da={$P:'dc.io.IOService',Vs:'dc.io.IOUrlsProvider'};olympe.ma.Be(function(a){wa(a,olympe.dc.Oa.da.Vs);A(a,olympe.dc.Oa.da.$P,[olympe.rb.da.sb,olympe.Lb.da.sb,olympe.Aa.da.sb,olympe.dc.Oa.da.Vs],b=>new olympe.dc.Oa.nG(b.Mg('dc.io')))},'olympe.dc.io');olympe.dc.Oa.D0=function(a,b,c=!1){if(a.startsWith('@')||a.startsWith('v'))return!1;a.startsWith(olympe.dc.Yl.
|
|
1405
|
+
c=new Map;c.set(olympe.dm.User.loginProp.ca(),b.login);c.set(olympe.dm.User.saltProp.ca(),b.salt);c.set(olympe.dm.User.verifierProp.ca(),b.verifier);ak(this.C).kg(this.ca(),c,!1,a)}};olympe.dc.Oa.Xn.prototype.awardRole=olympe.dc.Oa.Xn.prototype.DT;olympe.dc.Oa.Xn.prototype.setDomain=olympe.dc.Oa.Xn.prototype.YW;olympe.dc.Oa.Xn.prototype.setPassword=olympe.dc.Oa.Xn.prototype.gA;olympe.dc.Oa.Xn.prototype.setUsername=olympe.dc.Oa.Xn.prototype.AX;olympe.dc.Oa.da={$P:'dc.io.IOService',Vs:'dc.io.IOUrlsProvider'};olympe.ma.Be(function(a){wa(a,olympe.dc.Oa.da.Vs);A(a,olympe.dc.Oa.da.$P,[olympe.rb.da.sb,olympe.Lb.da.sb,olympe.Aa.da.sb,olympe.dc.Oa.da.Vs],b=>new olympe.dc.Oa.nG(b.Mg('dc.io')))},'olympe.dc.io');olympe.dc.Oa.D0=function(a,b,c=!1){if(a.startsWith('@')||a.startsWith('v'))return!1;a.startsWith(olympe.dc.Yl.Te)&&(a=a.substring(1));const d=olympe.dc.fc();return b?c?Hg(d,a,b):Hg(d,a,d.model(b)):d.ue(a)};olympe.Rc={};olympe.Rc.rr=class{constructor(a){this.Y=a;this.R=new olympe.j.Od(`${this.xa()} source context`);this.V=this.C=null}xa(){}T(){}close(){this.V&&this.V(this.xa(),olympe.dc.Ly.YP);this.R.destroy()}getContext(){return this.R}};function ck(a){olympe.j.ab([ad(a.ka)],b=>{if(b.valueOf()){const c=a.O.keys();dk(a,d=>{if(d)a.Y.error('An error occurred while auto synchronising:\n'+d.message);else if(a.Y.debug('Auto synchronise transactions successfully'),a.ga)for(const e of c)Pc(a.F,e,()=>{},f=>{a.Y.error(`Could not clear transactions for ${e}: ${f}.`)})})}})}
|
|
1406
1406
|
function ek(a){let b;olympe.j.ab([ad(a.ka)],c=>{c.valueOf()?(a.ga=!1,b&&(wc(b),b=null)):(a.ga=!0,b=vc(()=>{if(a.$){a.$=!1;for(const d of a.O.keys())Nc(a.F,d,a.O.get(d),()=>{},e=>{a.Y.error(`Could persist transaction for ${d}: ${e}`)})}},5E3))})}
|
|
1407
|
-
function dk(a,b){const c=olympe.async.Jy.create(),d=c.getContext();c.add((e,f,g)=>{Sc(a.F,k=>{g.set('files',k);e()})});c.add((e,f,g)=>{const k=olympe.dc
|
|
1407
|
+
function dk(a,b){const c=olympe.async.Jy.create(),d=c.getContext();c.add((e,f,g)=>{Sc(a.F,k=>{g.set('files',k);e()})});c.add((e,f,g)=>{const k=olympe.dc.Xb.Jd,l=g.get('files'),m=new olympe.async.Cp(d);a.O.forEach((n,p)=>{if(p!==k){const r=a.ta.T(p);null!==r?(m.add(a.Qa.bind(a,n,r,l)),Pc(a.F,p,()=>{})):f(`The source: ${p} is not reachable.`)}});Kc(m,(n,p)=>{n?e():f(p||void 0)});m.start()});Kc(c,(e,f)=>{b(e?null:Error(f));e&&(a.$=!1,a.O.clear())});c.start()}
|
|
1408
1408
|
function fk(a,b){const c=new olympe.async.Jy(olympe.j.ib());c.add((d,e)=>{Oc(a.F,(f,g)=>{let k=a.O.get(f);void 0===k&&(k=new olympe.dc.db.dg,a.O.set(f,k));g.rh(k)},f=>null===f?d():e(f))});c.add(d=>{const e=olympe.dc.Ai();a.O.forEach((f,g)=>{const k=Array.from(f.ej()).map(l=>l.tag());Jf(e,olympe.j.ib(),f,k,[],g)(!0)});d()});Kc(c,(d,e)=>{b(e?Error(e):null)});c.start()}
|
|
1409
1409
|
olympe.Rc.Ys=class extends olympe.Rc.rr{constructor(a,b,c,d,e){super(a);this.O=new Map;this.ka=c;this.F=d;this.ta=b;this.$=this.ga=!1;e.get('syncTimeout');e.get('autoSync')&&ck(this);e.get('autoPersist')&&ek(this)}Qa(a,b,c,d,e){const f=olympe.dc.bb.eb.Py,g=olympe.dc.bb.eb.Px,k=new olympe.dc.db.dg,l=new olympe.async.Cp(olympe.j.ib()),m=(n,p,r)=>{const t=n.tag(),u=n.nd(olympe.dm.File.mimeTypeProp.ca());Rc(this.F,t,u,w=>{pf(olympe.dc.PU(),t,w,u,v=>{n.ea(olympe.dm.File.urlProp.ca(),v);const x=new Map;
|
|
1410
|
-
x.set(olympe.dm.File.urlProp.ca(),v);k.kg(t,x);this.F.storage.C('files',t,p,r)})},r)};for(const n of c)(c=a.ko(n))&&c.uk()&&l.add(m.bind(this,c));Kc(l,(n,p)=>{n?(n=uf(new olympe.dc.bb(f,a,[b.xa()]),r=>{r?e(r.message):(this.C(b.xa(),g,k),r=Array.from(a.ej()).map(t=>t.tag()),olympe.dc.Ai().persist(r),d())}),b.T(n)):e(`Transaction synchronisation failed! ${p?p:''}`)});l.start()}xa(){return olympe.dc
|
|
1410
|
+
x.set(olympe.dm.File.urlProp.ca(),v);k.kg(t,x);this.F.storage.C('files',t,p,r)})},r)};for(const n of c)(c=a.ko(n))&&c.uk()&&l.add(m.bind(this,c));Kc(l,(n,p)=>{n?(n=uf(new olympe.dc.bb(f,a,[b.xa()]),r=>{r?e(r.message):(this.C(b.xa(),g,k),r=Array.from(a.ej()).map(t=>t.tag()),olympe.dc.Ai().persist(r),d())}),b.T(n)):e(`Transaction synchronisation failed! ${p?p:''}`)});l.start()}xa(){return olympe.dc.Xb.Jd}T(a){var b=olympe.dc.bb.eb.ht,c=olympe.dc.bb.eb.Ou;const d=olympe.dc.bb.eb.Yu,e=olympe.dc.bb.eb.Xu,
|
|
1411
1411
|
f=olympe.dc.bb.eb.Wq,g=olympe.dc.bb.eb.Px,k=olympe.dc.bb.eb.TA;var l=olympe.dc.bb.eb.Ev;const m=olympe.dc.bb.eb.Qx,n=olympe.dc.bb.eb.Uu;var p=olympe.dc.bb.eb.Yx;const r=a.type;switch(r){case f:const t=a.C[0];a.validate(null);Mc(this.F,()=>{Lc(this.F,'context',y=>{this.C(t,g,y.hg)},y=>{a.validate(Error(y))})});fk(this,y=>{null!==y&&this.Y.error(`Could not load transactions: ${y.message}`)});break;case b:case c:const u=a.content;a.C.forEach(y=>{let B=this.O.get(y);void 0===B&&(B=new olympe.dc.db.dg,
|
|
1412
|
-
this.O.set(y,B));u.rh(B);this.ga&&(this.$=!0)});a.validate(null);l=olympe.dc.transaction.Ip.C.MI;this.C(olympe.dc
|
|
1412
|
+
this.O.set(y,B));u.rh(B);this.ga&&(this.$=!0)});a.validate(null);l=olympe.dc.transaction.Ip.C.MI;this.C(olympe.dc.Xb.Jd,p,{id:u.xa(),finalize:l});break;case e:case d:const w=a.C[0],v=a.content;a.validate(null);Lc(this.F,v.xa(),y=>{this.C(w,k,y)},y=>{this.Y.warn('No graphresult for subscription : '+v.xa(),y,'\n',v.Qr.toJSON());this.Y.warn();this.C(w,k,new olympe.dc.query.Os(v.xa(),w,olympe.dc.Xb.Jd,new olympe.dc.db.dg))});break;case l:case n:case m:p=a.content;b=p.file;const x=p.Nm;c=p.xk;r===l?Qc(this.F,
|
|
1413
1413
|
b,p.content,p.mimeType,x,c):r===n?Rc(this.F,b,p.mimeType,y=>{x(y)},c):this.F.storage.C('files',b,x,c);a.validate(null)}}};olympe.Rc.Ys.C='context';const gk=olympe.dc.bb.eb.iJ,hk=olympe.dc.bb.eb.lJ,ik=olympe.dc.bb.eb.QUERY_RESULT,jk=olympe.dc.bb.eb.kJ,kk=olympe.dc.bb.eb.ht,lk=olympe.dc.bb.eb.Py,mk=olympe.dc.bb.eb.Yx,nk=olympe.dc.bb.eb.Ou,ok=olympe.dc.bb.eb.BA,pk=olympe.dc.bb.eb.AA,qk=olympe.dc.bb.eb.Ev,rk=olympe.dc.bb.eb.Uu,sk=olympe.dc.bb.eb.Qx,tk=olympe.dc.bb.eb.fr;
|
|
1414
1414
|
function uk(a,b,c,d,e){const f=c.xa();c={t:gk,q:c.Ya()};olympe.W.Pb.Ld.te.get(b,c).then(g=>{g.t===ik?(d(null),a.C(b,e||ik,{i:f,r:g.r,s:b})):d(Error(g.e))}).catch(g=>d(Error(g)))}function vk(a,b,c,d,e){const f=c.xa();uk(a,b,c,g=>{if(g)e(g);else{wk(a,b,f);g={t:hk,q:c.Ya()};var k=olympe.W.Pb.Ld.te.observe(b,d,g).subscribe(l=>{const m=l.t;m===jk?(e(null),a.C(b,m,{i:f,r:l.r,s:b})):e(Error(l.e))});d.Vd(()=>k.unsubscribe())}},jk)}
|
|
1415
1415
|
function xk(a,b,c,d){const e=c.hg;c=new olympe.dc.transaction.Ui;e.rh(c);c={t:kk,i:e.xa(),p:Zg(c)};olympe.W.Pb.Ld.te.send(b,c).then(()=>{d(null);a.C(b,mk,{id:e.xa(),finalize:olympe.dc.transaction.Ip.C.LI})}).catch(f=>d(Error(f)))}function yk(a,b,c,d,e){var f=c.hg;c=f.xa();const g=new olympe.dc.transaction.Ui;f.rh(g);f={t:nk,i:c,p:Zg(g)};olympe.W.Pb.Ld.te.publish(b,f).then(()=>e(null)).catch(k=>e(Error(k)));zk(a,c,b,d)}
|
|
1416
1416
|
function wk(a,b,c){const d=()=>{const f=setInterval(()=>{0===a.F.size?clearInterval(f):a.F.forEach((g,k)=>{olympe.W.Pb.Ld.te.send(k,{t:tk,s:Array.from(g)}).catch(l=>a.Y.warn(`Error occurred while keeping alive subscription list: ${l}`))})},a.ga)},e=a.F.get(b)||new Set;e.add(c);a.F.set(b,e);1===a.F.size&&d()}
|
|
1417
1417
|
function zk(a,b,c,d){const e=new olympe.W.Pb.Ld.te(b,d);e.ZC().subscribe(f=>{f=f.body();if(f.t===ok){a.Y.error(`Burst Transaction ${b} failed. Local rollback is not supported yet. Refresh the application`);const g=new olympe.dc.db.dg;a.C(c,ok,{id:b,rollback:g,error:f.r})}});d.Vd(()=>e.stop())}
|
|
1418
|
-
olympe.Rc.$R=class extends olympe.Rc.rr{constructor(a,b,c){super(a);this.F=new Map;this.O=b;this.ga=c}xa(){return olympe.dc
|
|
1418
|
+
olympe.Rc.$R=class extends olympe.Rc.rr{constructor(a,b,c){super(a);this.F=new Map;this.O=b;this.ga=c}xa(){return olympe.dc.Xb.WI}T(a){const b=a.C[0],c=a.type,d=a.validate.bind(a),e=a.content;a=a.getContext();switch(c){case gk:uk(this,b,e,d);break;case hk:vk(this,b,e,a,d);break;case kk:case lk:xk(this,b,e,d);break;case nk:yk(this,b,e,a,d);break;case pk:e.t=c;olympe.W.Pb.Ld.te.publish(b,e).then(d).catch(f=>d(Error(f)));break;case qk:case rk:case sk:olympe.W.Pb.Ld.te.get(b,{t:c,f:e.file}).then(f=>{this.O.$(e.file,
|
|
1419
1419
|
b,f);c===qk?this.O.V(e.file,e.content,e.mimeType,e.Nm,e.xk):c===rk?this.O.T(e.file,e.url,e.mimeType,e.Nm,e.xk):this.O.R(e.file,e.Nm,e.xk)}).catch(e.xk);break;default:this.Y.info(`Messages of type ${c} is not supported by the source ${this.xa()}`)}}};olympe.Rc.OO=class{constructor(){this.counter=0;this.Fe=new Map}buffer(a){const b=this.counter++;this.Fe.set(b,a);return this.clear.bind(this,b)}clear(a){this.Fe.delete(a)}};olympe.Rc.Fp=class a{constructor(b,c,d){this.Y=b;this.V=c;this.$=new olympe.Rc.OO;this.R=new Map;this.O=this.Ib(d);new olympe.j.Od('Data Router context');this.F=new Map;this.ga=new Map;this.Ka()}Ka(){this.Y.info('Initializing DR layer');olympe.j.cb(ad(this.V),()=>{this.Y.info('Router: ONLINE')},()=>{this.Y.log('Router: OFFLINE (no auth layer not online)');for(const b of this.$.Fe.values())this.ta(b)});this.Y.log('DONE initializing DR layer (waiting for AUTH layer session to be established)')}send(b){uf(b,
|
|
1420
|
-
this.$.buffer(b));this.ta(b)}C(b,c){const d=olympe.oa.De();let e=this.F.get(b);void 0===e&&(e=new Map,this.F.set(b,e));e.set(d,c)}ka(b){this.ga.set(olympe.oa.aj(),b)}Ea(b,c,d){this.F.has(c)&&this.F.get(c).forEach(e=>{e(b,d)})}La(b,c){this.R.set(b,c);c.C=this.Ea.bind(this);c.V=this.Qa.bind(this)}T(b){return this.R.get(b)||this.R.get(olympe.dc
|
|
1420
|
+
this.$.buffer(b));this.ta(b)}C(b,c){const d=olympe.oa.De();let e=this.F.get(b);void 0===e&&(e=new Map,this.F.set(b,e));e.set(d,c)}ka(b){this.ga.set(olympe.oa.aj(),b)}Ea(b,c,d){this.F.has(c)&&this.F.get(c).forEach(e=>{e(b,d)})}La(b,c){this.R.set(b,c);c.C=this.Ea.bind(this);c.V=this.Qa.bind(this)}T(b){return this.R.get(b)||this.R.get(olympe.dc.Xb.WI)}Qa(b,c){this.ga.forEach(d=>{d(b,c)})}ta(b){this.Y.debug('Processing message',b.toString());this.Ha(b).forEach(c=>{(c=this.T(c))&&c.T(b)})}Ha(b){var c=
|
|
1421
1421
|
olympe.dc.bb.eb.Wq,d=olympe.dc.bb.eb.Xu,e=olympe.dc.bb.eb.Yu,f=olympe.dc.bb.eb.ht,g=olympe.dc.bb.eb.Ou;const k=olympe.dc.bb.eb.Ev,l=olympe.dc.bb.eb.Qx,m=olympe.dc.bb.eb.Uu;switch(b.type){case c:d=this.O.get(a.C.Wq)||[];break;case d:case e:d=this.O.get(a.C.HB)||[];break;case f:case g:d=this.O.get(a.C.TRANSACTION)||[];break;case k:case m:case l:d=this.O.get(a.C.vP)||[];break;default:d=[]}c=b.content;e=olympe.Aa.kb.C.Uo;f=olympe.Aa.kb.C.Xq;g=$c(this.V);e=!(g===e||g===f);for(var n of d)if(d=n,f=c&&c.xa&&
|
|
1422
|
-
c.xa(),g=d.get('type'),g===a.F.wB&&e||g===a.F.dG&&d.get('id')===f||g===a.F.
|
|
1422
|
+
c.xa(),g=d.get('type'),g===a.F.wB&&e||g===a.F.dG&&d.get('id')===f||g===a.F.Te)return n=n.get('destinations'),this.Y.debug('Message',b.toString(),'is redirect to',n),n;this.Y.debug('Message',b.toString(),'not redirect');return b.C}Ib(b){const c=Object.values(olympe.Rc.Fp.C),d=Object.values(olympe.Rc.Fp.F);b=Object.entries(b);const e=new Map;b.forEach(([f,g])=>{if(c.includes(f))if(g instanceof Array){var k=[];e.set(f,k);g.forEach(l=>{const m=l.type;if(d.includes(m)){var n=l.destinations;n instanceof
|
|
1423
1423
|
Array?(n=(new Map).set('type',m).set('destinations',n),k.push(n),m===a.F.dG&&n.set('id',l.id)):this.Y.error('Routing rule',f,m,'is not valid. Destinations must be stored in an array')}else this.Y.error('Routing rule',f,m,'is not valid. Valid rules are',d.toString())})}else this.Y.error('Routing rule',f,'is not valid. Rules must be ordered in an array');else this.Y.error('Routing rule',f,'is not valid. Valid messages are',c.toString())});return e}};
|
|
1424
|
-
olympe.Rc.Fp.C={Wq:'getContext',HB:'query',TRANSACTION:'transaction',vP:'file'};olympe.Rc.Fp.F={
|
|
1424
|
+
olympe.Rc.Fp.C={Wq:'getContext',HB:'query',TRANSACTION:'transaction',vP:'file'};olympe.Rc.Fp.F={Te:'default',wB:'offline',dG:'id'};olympe.Rc.Fp.ua=[olympe.dc.Fp];olympe.Rc.Zx=class{$(){}V(){}T(){}R(){}};olympe.Rc.da={sb:'dr.Manager',Ob:'dr.Logger',jk:'dr.sources.Router',rI:'dr.sources.Local',LB:'dr.sources.Server',ZI:'dr.sources.Peer',Uq:'dr.sources.FileSource'};olympe.Rc.za={mI:'dr.keepAliveTimeout',fE:'dr.autoSync',eE:'dr.autoPersist',UJ:'dr.syncTimeout',yJ:'dr.routing'};
|
|
1425
1425
|
olympe.ma.Be(function(a){C(a,olympe.Rc.za.yJ,{});C(a,olympe.Rc.za.mI,3E5);C(a,olympe.Rc.za.fE,!1);C(a,olympe.Rc.za.eE,!1);C(a,olympe.Rc.za.UJ,3E4);A(a,olympe.Rc.da.Ob,[olympe.rb.da.sb],b=>b.Mg('dr'));A(a,olympe.Rc.da.rI,[olympe.Rc.da.Ob,olympe.Rc.da.jk,olympe.Aa.da.sb,olympe.Ee.da.XE,new olympe.ma.Ta(olympe.Rc.za.fE),new olympe.ma.Ta(olympe.Rc.za.eE),new olympe.ma.Ta(olympe.Rc.za.UJ)],(b,c,d,e,f,g,k)=>{f=(new Map).set('autoSync',f).set('autoPersist',g).set('syncTimeout',k);return new olympe.Rc.Ys(b,
|
|
1426
1426
|
c,d,e,f)});wa(a,olympe.Rc.da.LB);z(a,olympe.Rc.da.ZI,olympe.Rc.$R,olympe.Rc.da.Ob,olympe.Rc.da.Uq,new olympe.ma.Ta(olympe.Rc.za.mI));wa(a,olympe.Rc.da.Uq);z(a,olympe.Rc.da.jk,olympe.Rc.Fp,olympe.Rc.da.Ob,olympe.Aa.da.sb,new olympe.ma.Ta(olympe.Rc.za.yJ));va(a,olympe.dc.da.jk,olympe.Rc.da.jk);A(a,olympe.dc.query.Ke.qy,[olympe.dc.query.Ke.qy],b=>new olympe.dc.GB(b))},'olympe.dr');olympe.ma.run([olympe.Rc.da.jk,olympe.Rc.da.rI,olympe.Rc.da.LB,olympe.Rc.da.ZI],(a,...b)=>{b.forEach(c=>a.La(c.xa(),c))});olympe.W={};olympe.W.lh={Su:1,ap:2,bg:3,In:4,eY:5,bv:6,IZ:7};olympe.W.eb={bv:1,WS:2,uP:3,fr:5};olympe.W.kb=class{Ea(){}connect(){}Xc(){}gd(){}V(){}Ib(){}La(){}ta(){}vc(){}};olympe.W.kb.C={INIT:'initialize',CONNECTING:'connecting',ep:'disconnected',Lx:'connected',kr:'reconnecting',bg:'error'};olympe.W.kb.O={yB:1,CP:-1,ZP:-2,OS:-3};function Ak(a,b){const c=a.O.get(b)||a.Qa;a.O.delete(b);return`${c}/${b}`}
|
|
1427
1427
|
olympe.W.Zx=class{constructor(a,b,c,d,e){this.Y=a;this.F=b;this.ka=c;this.Qa=d;this.Ka=e;this.C=new Map;this.O=new Map;this.ga=new Map;this.ta=new olympe.j.Od('File manager context')}$(a,b,c){b&&this.O.set(a,`${this.Ka}/${b}`);c&&this.ga.set(a,c)}V(a,b,c,d,e){const f=Bc(Ak(this,a),olympe.Lb.If.ov.dJ,b,olympe.Lb.If.ResponseType.rE);Cc(f,{[olympe.Lb.If.Headers.xA]:this.Dh(a),[olympe.Lb.If.Headers.TE]:c||'application/octet-stream'});this.F.C(f,g=>{g=g.status;g===olympe.Lb.If.Rn.yB||g===olympe.Lb.If.Rn.JE?
|
|
@@ -1431,10 +1431,10 @@ c&&c(e))})}Dh(a){const b=this.ga.get(a);b&&this.ga.delete(a);return b||olympe.j.
|
|
|
1431
1431
|
function Tk(a,b,c){const d=b.hg;b=new olympe.dc.transaction.Ui(!0);d.rh(b);Uk(a,a.Ea,Ck,!0,Zg(b),e=>{c&&c(e);a.C(a.xa(),Nk,{id:d.xa(),finalize:olympe.dc.transaction.Ip.C.LI})})}
|
|
1432
1432
|
function Vk(a,b,c,d){const e=c.xa();a.Y.log('Graphdef (ID ',e,') sent: ',c);const f=c instanceof olympe.dc.query.fB?a.Ka:a.ka,g=(new olympe.W.Da.cy).Ya(c);c=new olympe.async.Cp(a.R);b===Gk&&c.add((l,m)=>{a.F.set(e,{notification:null,AW:a.R.md(n=>n?m(n):l())});Wk(a,b,g,n=>n&&m(n.message))});const k=olympe.j.ib();c.add((l,m)=>{k.run(()=>{Uk(a,f,Fk,!1,g,a.R.md(n=>n?m(n.message):l()))})});Kc(c,(l,m)=>{const n=a.F.get(e);l&&n&&n.notification?a.C(a.xa(),Ik,n.notification):!l&&n&&Xk(a,Hk,e,p=>p&&a.Y.warn(p));
|
|
1433
1433
|
a.F.delete(e);d(m?Error(m):null)});c.start()}function Xk(a,b,c,d){a.Y.log('Unsubscribe to: ',c);Wk(a,b,{i:c},d)}function Wk(a,b,c,d){b={c:b};Object.assign(b,c);a.Wa.V(olympe.W.lh.Su,b,d&&(e=>{d(e)}))}function Uk(a,b,c,d,e,f){if(a.Wa.Ea()){const g=olympe.W.lh.Su;!d&&e&&Object.assign(e,{c});c=olympe.j.Ua(cd(a.$)).valueOf();a.Wa.Ib(b,g,c,d,e,f)}else a.Y.error('Server is disconnected, data request of type',c,'on url',b,'is canceled.'),f(Error('Server is disconnected'))}
|
|
1434
|
-
olympe.W.rr=class extends olympe.Rc.rr{constructor(a,b,c,d,e){super(a);this.Wa=b;this.$=c;new olympe.W.Da.Id;this.O=new olympe.dc.oa.CB(this.xa());this.ga=d;if(4!==e.length)throw Error('Some HTTP end points to the orchestrator are not specified ! Please check DI of olympe.communication module; wants 4 urls but got: '+e.length);this.ta=e[0];this.Ka=e[1];this.ka=e[2];this.Ea=e[3];this.F=new Map;this.init()}xa(){return olympe.dc
|
|
1434
|
+
olympe.W.rr=class extends olympe.Rc.rr{constructor(a,b,c,d,e){super(a);this.Wa=b;this.$=c;new olympe.W.Da.Id;this.O=new olympe.dc.oa.CB(this.xa());this.ga=d;if(4!==e.length)throw Error('Some HTTP end points to the orchestrator are not specified ! Please check DI of olympe.communication module; wants 4 urls but got: '+e.length);this.ta=e[0];this.Ka=e[1];this.ka=e[2];this.Ea=e[3];this.F=new Map;this.init()}xa(){return olympe.dc.Xb.nh}T(a){var b=a.type;const c=a.validate.bind(a);a=a.content;switch(b){case Bk:Uk(this,
|
|
1435
1435
|
this.ta,olympe.dc.bb.eb.Wq,!1,null,c);break;case Ek:b=new olympe.dc.transaction.Ui;var d=a.hg;a=a.Rr;d.rh(b);Wk(this,Ek,{i:d.xa(),r:a,p:Zg(b)});c(null);break;case Rk:b=new olympe.dc.transaction.Ui;a=a.hg;a.rh(b);Wk(this,Rk,{i:a.xa(),p:Zg(b)},c);break;case Ck:b=new olympe.dc.transaction.Ui;d=a.hg;a=a.Rr;d.rh(b);Wk(this,olympe.dc.bb.eb.ht,{i:d.xa(),r:a,p:Zg(b)},c);break;case Dk:Tk(this,a,c);break;case Fk:case Gk:Vk(this,b,a,c);break;case Hk:Xk(this,b,a,c);break;case Ok:Wk(this,Ok,{},c);break;case Pk:Wk(this,
|
|
1436
1436
|
Pk,{},c);break;case Qk:Wk(this,Qk,{},c);break;case Sk:Wk(this,Sk,{},c);break;case Lk:this.ga.T(a.file,a.url,a.mimeType,a.Nm,a.xk);break;case Kk:this.ga.R(a.file,a.Nm,a.xk);break;case Mk:this.ga.V(a.file,a.content,a.mimeType,a.Nm,a.xk);break;default:this.Y.info(`Message of type ${b} not supported yet`)}}Qa(a){var b=olympe.dc.bb.eb.Px,c=olympe.dc.bb.eb.BA;const d=olympe.dc.bb.eb.uy,e=olympe.dc.bb.eb.DS,f=olympe.dc.bb.eb.oI;var g=olympe.dc.bb.eb.EP;const k=a.c;k===b?(a=this.O.C(a.p),this.C(this.xa(),
|
|
1437
|
-
b,a)):k===c?(g=a.error.reason,b=this.O.C(a.p),this.C(this.xa(),c,{id:a.i,rollback:b,error:g})):k===Jk?(g=olympe.dc
|
|
1437
|
+
b,a)):k===c?(g=a.error.reason,b=this.O.C(a.p),this.C(this.xa(),c,{id:a.i,rollback:b,error:g})):k===Jk?(g=olympe.dc.Xb.Jd,c=olympe.dc.Xb.nh,b=a.i,0<a.s?g=new olympe.dc.query.Xv.ey(b,c,g,a.info.error.reason):(g=this.O.T(b,g,a.p),this.Y.debug('< Graphdef Result (ID ',g.xa(),'):',a.p),this.Y.log('< Graphdef Result (ID ',g.xa(),') with',g.hg.ed(),'operations')),this.C(this.xa(),Jk,g)):k===Ik?(g=a.i,a=this.O.R(g,a.p),this.F.has(g)?(g=this.F.get(g),g.notification?a.ez(g.notification):g.notification=a):this.C(this.xa(),
|
|
1438
1438
|
Ik,a)):k===f?(g=new olympe.dc.query.vI(a.i),a.l.forEach(g.F.bind(g)),this.C(this.xa(),f,g)):k===d?(g=olympe.dc.transaction.Ip.C.uy,c=0<a.s?a.info.error.reason:null,this.C(this.xa(),Nk,{id:a.i,finalize:g,error:c})):k===e?(g=this.F.get(a.i))&&g.AW(0<a.s?a.info.error.reason:null):k===g&&(c=a.ids,b=a.undo_stack_size,a=a.redo_stack_size,this.C(this.xa(),g,{z0:c,Q0:b,L0:a}))}init(){this.Wa.ta(olympe.W.lh.Su,this.Qa.bind(this));olympe.j.ab([ad(this.$)],a=>{a=a.valueOf()?olympe.dc.Ly.NI:olympe.dc.Ly.wB;this.V&&
|
|
1439
1439
|
this.V(this.xa(),a)},'Server source is online')}};olympe.W.rr.F={lZ:1,i_:2};olympe.W.rr.C={100:'Insufficient Rights',200:'Constraints',300:'IOException',400:'Unexpected',500:'Non Existing Subscription'};olympe.W.hy=class{constructor(){}};olympe.W.hy.ua=[olympe.dc.Oa.hy];olympe.W.Pb={};function Yk(a,b,c,d){return new Promise((e,f)=>{const g=a.O;a.O++;var k=olympe.j.Ua(cd(a.T));k=new olympe.W.Pb.Fe.Request(b,a.F,k,g,c,d);a.C.publish(b,k.Ya(),void 0,l=>l?f(l):e(g))})}function Zk(a,b,c){Gc(a.C,b,d=>{d=new olympe.W.Pb.Fe.Request(d.dest,d.src,d.auth,d.seq,d.type,d.content);return c(d)})}function $k(a,b,c){a.R.set(b,c)}function al(a,b){return new Promise((c,d)=>{Hc(a.C,b,e=>e?d(e):c())})}function bl(a,b){return new Promise((c,d)=>{a.T.Nr(b.Dh(),(e,f)=>e?d(e):c(f))})}
|
|
1440
1440
|
olympe.W.Pb.kb=class{constructor(a,b,c,d){this.Y=a;this.T=c;a=new olympe.oa.jK(d.get('messageTimeout'));a.C=this.V.bind(this);this.R=a;a=d.get('url');d=d.get('connectionOptions');this.C=new olympe.Lb.sy(a,d);this.O=1;this.F=olympe.oa.De()}connect(){return new Promise(a=>{Fc(this.C)?a():this.C.connect(()=>{Gc(this.C,this.F,b=>{b=new olympe.W.Pb.Fe.Response(b.dest,b.src,b.seq,b.type,b.content);const c=this.R.get(b.O);c&&(this.R.delete(b.O),c(b))});a()})})}cs(a,b,c){return new Promise((d,e)=>{const f=
|
|
@@ -1454,9 +1454,9 @@ d.payload;this.Y.debug('Login successful, creating token');d=c.payload?JSON.pars
|
|
|
1454
1454
|
null,(d,e)=>{c(d,e)})}yM(){return this.O}};olympe.W.Df.Bc.C={In:1,mR:2,bg:3,fr:5,Bv:6,SP:10,FS:11,DO:12,kk:13,nS:14,lR:20};olympe.W.Df.Bc.ua=[olympe.Aa.IS,olympe.Aa.ud.Df.yp,olympe.Aa.ud.Df.Yi,olympe.Aa.ud.Df.kk];olympe.W.Da={};olympe.W.Da.qh=function(){};olympe.W.Da.qh.prototype.Ya=function(){};olympe.W.Da.Pl=function(){};olympe.W.Da.Pl.prototype.Ya=function(){};olympe.W.Da.Oc=function(){};olympe.W.Da.Oc.prototype.Ya=function(){};olympe.W.Da.Yn=function(){};olympe.W.Da.Yn.prototype.Ya=function(){};olympe.W.Da.Id=function(){this.wa={};this.ie={};this.sa={};this.hb=Object.create(null);this.init()};olympe.W.Da.Id.prototype.constructor=olympe.W.Da.Id;function sl(a,b,c){var d=b.Sa(),e=a.sa[d];if(void 0===e)throw Error('No predicate registered for predicate: '+d);return e.Ya(b,c,a)}function tl(a,b,c){var d=b.Sa(),e=a.hb[d];if(void 0===e)throw Error('No valueDef registered for valueDef: '+d);return e.Ya(b,c,a)}
|
|
1455
1455
|
function ul(a,b){return a&&a.Zg?'"$'+b.add(a)+'"':a instanceof olympe.j.ja||a instanceof olympe.j.aa?String(a):a instanceof olympe.j.lb?'"'+a+'"':a instanceof olympe.j.cc?(a=a.Lq(),String(`{"c":4,"y":${a.getUTCFullYear()},"M":${a.getUTCMonth()+1},"d":${a.getUTCDate()},"h":${a.getUTCHours()},"m":${a.getUTCMinutes()},"s":${a.getUTCSeconds()},"S":${a.getUTCMilliseconds()},"z":0}`)):a instanceof olympe.j.Color?'{"c":7,"r":'+a.rk().valueOf()+',"g":'+a.qk().valueOf()+',"b":'+a.pk().valueOf()+',"a":'+a.al().valueOf()+
|
|
1456
1456
|
'}':a instanceof olympe.dc.gg?'{"c":8,"t":"'+a.ca()+'"}':JSON.stringify(a)}
|
|
1457
|
-
olympe.W.Da.Id.prototype.init=function(){var a=new olympe.W.Da.wa.
|
|
1457
|
+
olympe.W.Da.Id.prototype.init=function(){var a=new olympe.W.Da.wa.Xe;this.wa[Y(olympe.dc.wa.Xe)]=a;a=new olympe.W.Da.wa.Qk;this.wa[Y(olympe.dc.wa.Qk)]=a;a=new olympe.W.Da.wa.fg;this.wa[Y(olympe.dc.wa.fg)]=a;this.wa[Y(olympe.dc.wa.wi)]=new olympe.W.Da.wa.wi;a=new olympe.W.Da.wa.ce;this.wa[Y(olympe.dc.wa.ce)]=a;this.wa[Y(olympe.dc.wa.Dj)]=new olympe.W.Da.wa.Dj;this.wa[Y(olympe.dc.wa.Hk)]=new olympe.W.Da.wa.Hk;a=new olympe.W.Da.ie.Number;this.ie[Y(olympe.dc.ie.Number)]=a;a=new olympe.W.Da.ie.String;
|
|
1458
1458
|
this.ie[Y(olympe.dc.ie.String)]=a;a=new olympe.W.Da.sa.Wg;this.sa[Y(olympe.dc.sa.Wg)]=a;this.sa[Y(olympe.dc.sa.Lk)]=new olympe.W.Da.sa.Lk;this.sa[Y(olympe.dc.sa.Vk)]=new olympe.W.Da.sa.Vk;a=new olympe.W.Da.sa.vh;this.sa[Y(olympe.dc.sa.vh)]=a;a=new olympe.W.Da.sa.Xi;this.sa[Y(olympe.dc.sa.Xi)]=a;this.sa[Y(olympe.dc.sa.ri)]=new olympe.W.Da.sa.ri;a=new olympe.W.Da.sa.Xl;this.sa[Y(olympe.dc.sa.Xl)]=a;a=new olympe.W.Da.sa.Gn;this.sa[Y(olympe.dc.sa.Gn)]=a;this.hb[Y(olympe.dc.hb.Li)]=new olympe.W.Da.hb.Li;
|
|
1459
|
-
a=new olympe.W.Da.hb.Ej;this.hb[Y(olympe.dc.hb.Ej)]=a;a=new olympe.W.Da.hb.lk;this.hb[Y(olympe.dc.hb.lk)]=a;a=new olympe.W.Da.hb.Gk;this.hb[Y(olympe.dc.hb.Gk)]=a;a=new olympe.W.Da.hb.bk;this.hb[Y(olympe.dc.hb.bk)]=a;this.hb[Y(olympe.dc.hb.Sn)]=new olympe.W.Da.hb.Sn};olympe.W.Da.cy=class{Ya(a){const b=Object.create(null);b.i=a.xa();b.b=[a.C];b.m=!0;b.v=!0;b.f=a instanceof olympe.dc.query.fB?Vh(a.Qr):olympe.dc.
|
|
1459
|
+
a=new olympe.W.Da.hb.Ej;this.hb[Y(olympe.dc.hb.Ej)]=a;a=new olympe.W.Da.hb.lk;this.hb[Y(olympe.dc.hb.lk)]=a;a=new olympe.W.Da.hb.Gk;this.hb[Y(olympe.dc.hb.Gk)]=a;a=new olympe.W.Da.hb.bk;this.hb[Y(olympe.dc.hb.bk)]=a;this.hb[Y(olympe.dc.hb.Sn)]=new olympe.W.Da.hb.Sn};olympe.W.Da.cy=class{Ya(a){const b=Object.create(null);b.i=a.xa();b.b=[a.C];b.m=!0;b.v=!0;b.f=a instanceof olympe.dc.query.fB?Vh(a.Qr):olympe.dc.Ve.NONE;b.q=ji(a).map(this.C.bind(this));return b}C(a){const b=a.Bm(),c=b.qc()===olympe.dc.Nb.ORIGIN?olympe.W.Da.wa.Xe.C.Kf:olympe.W.Da.wa.Xe.C.Kg,d=Object.create(null);d.t=b.ca();d.d=c;d.v=a.apply;d.r=b.recursive;d.q=a.Dr().map(this.C.bind(this));return d}};olympe.W.Da.wa={};olympe.W.Da.wa.Hk=class{Ya(){return'{"y":15}'}};olympe.W.Da.wa.Hk.ua=[olympe.W.Da.qh];olympe.W.Da.wa.ce=function(){};olympe.W.Da.wa.ce.prototype.constructor=olympe.W.Da.wa.ce;olympe.W.Da.wa.ce.prototype.Ya=function(a,b,c){return'{"y":21,"p":'+sl(c,a.C,b)+'}'};olympe.W.Da.wa.ce.ua=[olympe.W.Da.qh];olympe.W.Da.wa.Qk=function(){};olympe.W.Da.wa.Qk.prototype.constructor=olympe.W.Da.wa.Qk;olympe.W.Da.wa.Qk.prototype.Ya=function(a){var b=null!==a.qc()?a.qc()===olympe.dc.Nb.ORIGIN?olympe.W.Da.wa.Xe.C.Kf:olympe.W.Da.wa.Xe.C.Kg:olympe.W.Da.wa.Xe.C.sE;return'{"y":12,"t":'+JSON.stringify(Uj(a))+',"d":'+b+'}'};olympe.W.Da.wa.Qk.ua=[olympe.W.Da.qh];olympe.W.Da.wa.fg=function(){};olympe.W.Da.wa.fg.prototype.constructor=olympe.W.Da.wa.fg;olympe.W.Da.wa.fg.prototype.Ya=function(a){const b=null!==a.qc()?a.qc()===olympe.dc.Nb.ORIGIN?olympe.W.Da.wa.Xe.C.Kf:olympe.W.Da.wa.Xe.C.Kg:olympe.W.Da.wa.Xe.C.sE;return'{"y":11,"t":"'+a.ca()+'","d":'+b+',"s":'+a.F+',"e":'+a.C+'}'};olympe.W.Da.wa.fg.ua=[olympe.W.Da.qh];olympe.W.Da.wa.Xe=function(){};olympe.W.Da.wa.Xe.C={sE:0,Kf:1,Kg:2};olympe.W.Da.wa.Xe.prototype.constructor=olympe.W.Da.wa.Xe;olympe.W.Da.wa.Xe.prototype.Ya=function(a){const b=a.qc()===olympe.dc.Nb.ORIGIN?olympe.W.Da.wa.Xe.C.Kf:olympe.W.Da.wa.Xe.C.Kg;return'{"y":10,"t":"'+a.ca()+'","d":'+b+'}'};olympe.W.Da.wa.Xe.ua=[olympe.W.Da.qh];olympe.W.Da.wa.wi=function(){};olympe.W.Da.wa.wi.prototype.constructor=olympe.W.Da.wa.wi;olympe.W.Da.wa.wi.prototype.Ya=function(a,b,c){var d=a.$i;const e=d.Sa();var f=c.ie[e];if(void 0===f)throw Error('No comparator registered for comparator: '+e);return'{"y":20,"o":'+f.Ya(d,b,c)+(a.C?'':',"a":false')+'}'};olympe.W.Da.wa.wi.ua=[olympe.W.Da.qh];olympe.W.Da.wa.Dj=function(){};olympe.W.Da.wa.Dj.prototype.constructor=olympe.W.Da.wa.Dj;olympe.W.Da.wa.Dj.prototype.Ya=function(a,b){var c=a.start;c=c&&c.Zg?'"$'+b.add(c)+'"':JSON.stringify(c);a=(a=a.C)&&a.Zg?'"$'+b.add(a)+'"':JSON.stringify(a);return'{"y":22,"s":'+c+',"n":'+a+'}'};olympe.W.Da.wa.Dj.ua=[olympe.W.Da.qh];olympe.W.Da.ie={};olympe.W.Da.ie.Number=class{constructor(){}Ya(a,b,c){return`{"y":11,"v":${tl(c,a.C,b)}}`}};olympe.W.Da.ie.Number.ua=[olympe.W.Da.Pl];olympe.W.Da.ie.String=class{constructor(){}Ya(a,b,c){return`{"y":10,"v":${tl(c,a.C,b)}}`}};olympe.W.Da.ie.String.ua=[olympe.W.Da.Pl];olympe.W.Da.sa={};olympe.W.Da.sa.vh=function(){};olympe.W.Da.sa.vh.prototype.constructor=olympe.W.Da.sa.vh;olympe.W.Da.sa.vh.prototype.Ya=function(a,b,c){const d=tl(c,a.source,b);c=tl(c,a.getValue(),b);a=ul(a.O,b);return'{"y":20,"s":'+d+',"v":'+c+',"a":'+a+'}'};olympe.W.Da.sa.vh.ua=[olympe.W.Da.Oc];olympe.W.Da.sa.Wg=function(){};olympe.W.Da.sa.Wg.prototype.constructor=olympe.W.Da.sa.Wg;olympe.W.Da.sa.Wg.prototype.Ya=function(a,b,c){const d=tl(c,a.O,b);a=tl(c,a.R,b);return'{"y":10,"l":'+d+',"r":'+a+'}'};olympe.W.Da.sa.Wg.ua=[olympe.W.Da.Oc];olympe.W.Da.sa.Lk=function(){};olympe.W.Da.sa.Lk.prototype.constructor=olympe.W.Da.sa.Lk;olympe.W.Da.sa.Lk.prototype.Ya=function(a,b,c){const d=tl(c,a.O,b);a=tl(c,a.R,b);return'{"y":11,"l":'+d+',"r":'+a+'}'};olympe.W.Da.sa.Lk.ua=[olympe.W.Da.Oc];olympe.W.Da.sa.Xl=class{Ya(a){const b=Oj(a).map(d=>'"'+d+'"'),c=Pj(a).map(d=>d===olympe.dc.Nb.DESTINATION?'2':'1');a=a.R;return'{"y":81,"r":['+b.toString()+'],"d":['+c.toString()+']'+(0!==a.length?',"t":"'+a.toString()+'"':'')+'}'}};olympe.W.Da.sa.Xl.ua=[olympe.W.Da.Oc];olympe.W.Da.sa.Gn=class{Ya(a){return'{"y":80,"m":['+Array.from(a.O).map(b=>'"'+b+'"').toString()+']}'}};olympe.W.Da.sa.Gn.ua=[olympe.W.Da.Oc];olympe.W.Da.sa.ri=class{Ya(a,b,c){return'{"y":30,"p":'+sl(c,a.O,b)+'}'}};olympe.W.Da.sa.ri.ua=[olympe.W.Da.Oc];olympe.W.Da.sa.Xi=class{Ya(a,b,c){c=tl(c,a.source,b);const d=a.R;a=ul(a.O,b);return'{"y":23,"s":'+c+',"r":"'+d+'","a":'+a+'}'}};olympe.W.Da.sa.Xi.ua=[olympe.W.Da.Oc];olympe.W.Da.sa.Vk=function(){};olympe.W.Da.sa.Vk.prototype.constructor=olympe.W.Da.sa.Vk;olympe.W.Da.sa.Vk.prototype.Ya=function(a,b,c){var d=tl(c,a.O,b);a=tl(c,a.R,b);return'{"y":12,"l":'+d+',"r":'+a+'}'};olympe.W.Da.sa.Vk.ua=[olympe.W.Da.Oc];olympe.W.Da.hb={};olympe.W.Da.hb.Ug=function(){};olympe.W.Da.hb.Ug.prototype.constructor=olympe.W.Da.hb.Ug;olympe.W.Da.hb.Ug.prototype.C=function(){};
|
|
1460
1460
|
olympe.W.Da.hb.Ug.prototype.Ya=function(a,b,c){var d=ul(a.R,b),e=a.bj();e=e?',"b":'+ul(e,b):'';if(a=a.bq()){var f='[';for(let n=0,p=a.length;n<p;n++){var g=0===n?'':',';var k=c;var l=a[n],m=b;const r=l.Sa(),t=k.wa[r];if(void 0===t)throw Error('No serializer registered for transformer: '+r);k=t.Ya(l,m,k);f+=g+k}b=',"q":'+(f+']')}else b='';return'{"y":'+this.C()+',"t":'+d+e+b+'}'};olympe.W.Da.hb.Ug.ua=[olympe.W.Da.Yn];olympe.W.Da.hb.Gk=function(){olympe.W.Da.hb.Ug.call(this)};olympe.W.Da.hb.Gk.prototype=Object.create(olympe.W.Da.hb.Ug.prototype);olympe.W.Da.hb.Gk.prototype.constructor=olympe.W.Da.hb.Gk;olympe.W.Da.hb.Gk.prototype.C=function(){return 13};olympe.W.Da.hb.Li=class{Ya(a,b){return'{"y":10,"v":'+ul(a.value,b)+'}'}};olympe.W.Da.hb.Li.ua=[olympe.W.Da.Yn];olympe.W.Da.hb.bk=function(){olympe.W.Da.hb.Ug.call(this)};olympe.W.Da.hb.bk.prototype=Object.create(olympe.W.Da.hb.Ug.prototype);olympe.W.Da.hb.bk.prototype.constructor=olympe.W.Da.hb.bk;olympe.W.Da.hb.bk.prototype.C=function(){return 14};olympe.W.Da.hb.Ej=function(){olympe.W.Da.hb.Ug.call(this)};olympe.W.Da.hb.Ej.prototype=Object.create(olympe.W.Da.hb.Ug.prototype);olympe.W.Da.hb.Ej.prototype.constructor=olympe.W.Da.hb.Ej;olympe.W.Da.hb.Ej.prototype.C=function(){return 11};olympe.W.Da.hb.lk=function(){olympe.W.Da.hb.Ug.call(this)};olympe.W.Da.hb.lk.prototype=Object.create(olympe.W.Da.hb.Ug.prototype);olympe.W.Da.hb.lk.prototype.constructor=olympe.W.Da.hb.lk;olympe.W.Da.hb.lk.prototype.C=function(){return 12};olympe.W.Da.hb.Sn=class{Ya(){return'{"y":19}'}};olympe.W.Da.hb.Sn.ua=[olympe.W.Da.Yn];olympe.W.Og={};function vl(a,b){a.Y.info('Initializing SERVER layer');if(a.Y.O()){const c=['Server layer parameters:'];b.forEach((d,e)=>{c.push(e+'="'+d+'"')});a.Y.debug(c.join('\n\t'))}a.ta(olympe.W.lh.bg,c=>{switch(c.c){case olympe.W.eb.WS:a.Y.error('Unknown message sent to the server:',olympe.W.kb.F[c.s]);break;case olympe.W.eb.uP:a.Y.error('Fatal error, the last message is probably too big according to the websocket config.'),a.C.forEach((d,e)=>{null!==d.qD&&wl(a,e,c.i)})}});b.get('autoConnect')&&(a.Y.debug('Connecting automatically'),
|
|
1461
1461
|
a.connect());olympe.j.cb(a.T.Ba(),()=>{a.od.forEach(c=>c());vc(a.Af.bind(a),a.Di);vc(a.ic.bind(a),a.Kc)},()=>{a.ga=null;a.Cc.forEach(c=>c(a.F[2]));a.ic()});a.Y.log('DONE initializing SERVER layer (waiting for NET layer connection to be opened)')}
|
|
1462
1462
|
function xl(a,b){if(a.R!==b)switch(a.Y.debug('State change '+a.R+' --\x3e '+b),a.R=b,b){case olympe.W.kb.C.CONNECTING:break;case olympe.W.kb.C.Lx:a.T.update(olympe.j.ja.C);break;case olympe.W.kb.C.kr:a.F[0]=0;a.F[1]=0;a.connect();break;case olympe.W.kb.C.bg:a.Y.error('Connection to server',a.ka.sh(),'aborted due to error');a.T.update(olympe.j.ja.wb);break;case olympe.W.kb.C.ep:a.T.update(olympe.j.ja.wb);a.ec&&(a.Y.info('Disconnected, will try to auto reconnect in',a.Ha,'ms'),tc(()=>{a.connect()},
|
|
@@ -1498,30 +1498,30 @@ this.F.run()):this.Y.error('No app registered under name: '+this.C)}};olympe.zf.
|
|
|
1498
1498
|
olympe.dm.Ah.O=Df('014831d95f83635090ea','ADMIN_USERS_ROLE');olympe.dm.Ah.prototype.Sa.K=olympe.j.J.R;olympe.dm.Ah.prototype.C.K=olympe.j.J.R;olympe.dm.Ah.prototype.F.K=olympe.j.J.T;olympe.dm.User=class extends olympe.dc.CloudObject{constructor(a,b){super(a,b)}RU(){return this.FC()}Sa(){return this.FC()}FC(){return this.je(olympe.dm.User.loginProp)}XQ(){return this.je(olympe.dm.User.F)}WQ(){return olympe.j.lb.EMPTY}vV(){return this.je(olympe.dm.User.saltProp)}JV(){return this.je(olympe.dm.User.verifierProp)}sV(){return this.wc(olympe.dm.User.C,olympe.dm.Ah)}};olympe.dm.User.U=olympe.dc.Ra.C('ff021000000000000003',olympe.dm.User);olympe.dm.User.loginProp=olympe.dm.User.U.ea('ff023000000000000001');
|
|
1499
1499
|
q('olympe.dm.User.loginProp',olympe.dm.User.loginProp);olympe.dm.User.F=olympe.dm.User.U.ea('ff023000000000000002');olympe.dm.User.saltProp=olympe.dm.User.U.ea('ff023000000000000004');q('olympe.dm.User.saltProp',olympe.dm.User.saltProp);olympe.dm.User.verifierProp=olympe.dm.User.U.ea('ff023000000000000005');q('olympe.dm.User.verifierProp',olympe.dm.User.verifierProp);olympe.dm.User.T=olympe.dm.User.U.ea('ff023000000000000020');olympe.dm.User.SAMLnameIdProp=olympe.dm.User.U.ea('ff023000000000000036');
|
|
1500
1500
|
q('olympe.dm.User.SAMLnameIdProp',olympe.dm.User.SAMLnameIdProp);olympe.dm.User.C=Z(olympe.dm.User.U,olympe.dm.Ah.C);olympe.dm.User.V=olympe.dm.User.U.Sb('ff022000000000000002');olympe.dm.User.O=Df('0163d9653067b6237f62','GUEST_USER');h=olympe.dm.User.prototype;h.RU.K=olympe.j.J.R;h.Sa.K=olympe.j.J.R;h.FC.K=olympe.j.J.R;h.XQ.K=olympe.j.J.R;h.WQ.K=olympe.j.J.R;h.vV.K=olympe.j.J.R;h.JV.K=olympe.j.J.R;h.sV.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.dm.zj=class extends olympe.dc.CloudObject{T(){return this.gw()}vc(){return this.je(olympe.dm.zj.Qa)}};olympe.dm.zj.U=olympe.dc.Ra.C('01621fb84e3300000000',olympe.dm.zj);olympe.dm.zj.Qa=olympe.dm.zj.U.ea('01609de3f292e3c2c6ff');olympe.dm.zj.prototype.T.K=new olympe.j.J(()=>olympe.j.Lg,[]);olympe.dm.zj.prototype.vc.K=olympe.j.J.R;olympe.dm.BrickMetadata=class extends olympe.dm.zj{ec(){return this.je(olympe.dm.BrickMetadata.Ha)}Mb(){return this.je(olympe.dm.BrickMetadata.La)}R(){return null}};olympe.dm.BrickMetadata.U=If(olympe.dc.Ra.C('01621fb84e3500000000',olympe.dm.BrickMetadata));olympe.dm.BrickMetadata.Ha=olympe.dm.BrickMetadata.U.ea('01621fb84e320000f001');olympe.dm.BrickMetadata.La=olympe.dm.BrickMetadata.U.ea('01703376c4a81c0e9d94');olympe.dm.BrickMetadata.ae=olympe.dm.BrickMetadata.U.Sb('0161ae97622bb21f335b');
|
|
1501
|
-
olympe.dm.BrickMetadata.Ib={NZ:'private',WR:'public'};olympe.dm.BrickMetadata.Kc=Df('01703376c4a81c0e9d95','BRICK_STATUS');olympe.dm.BrickMetadata.Rn={vY:'experimental',$Z:'stable',lY:'deprecated'};olympe.dm.BrickMetadata.prototype.ec.K=olympe.j.J.R;olympe.dm.BrickMetadata.prototype.Mb.K=olympe.j.J.R;olympe.dm.BrickMetadata.prototype.R.K=new olympe.j.J(()=>String,[]);olympe.dm.
|
|
1502
|
-
olympe.dm.
|
|
1501
|
+
olympe.dm.BrickMetadata.Ib={NZ:'private',WR:'public'};olympe.dm.BrickMetadata.Kc=Df('01703376c4a81c0e9d95','BRICK_STATUS');olympe.dm.BrickMetadata.Rn={vY:'experimental',$Z:'stable',lY:'deprecated'};olympe.dm.BrickMetadata.prototype.ec.K=olympe.j.J.R;olympe.dm.BrickMetadata.prototype.Mb.K=olympe.j.J.R;olympe.dm.BrickMetadata.prototype.R.K=new olympe.j.J(()=>String,[]);olympe.dm.Ue=class extends olympe.dm.BrickMetadata{ga(){return new olympe.dc.Bb(this.ca(),[new olympe.dc.wa.fg(olympe.dm.Ue.F.ca(),olympe.dc.Nb.DESTINATION,olympe.dc.wa.yv.dB,olympe.dc.wa.yv.TP),olympe.dm.Ue.C])}R(){return null}C(){return this.wc(olympe.dm.Ue.F,olympe.dm.Ue)}F(){return this.wc(olympe.dm.Ue.C)}};olympe.dm.Ue.U=olympe.dc.Ra.C('01612df1db9749227626',olympe.dm.Ue);olympe.dm.Ue.F=olympe.dm.Ue.U.Sb('016a697ef00ce7554691');olympe.dm.Ue.Ab=Z(olympe.dm.Ue.U,olympe.dm.Ue.F);
|
|
1502
|
+
olympe.dm.Ue.C=olympe.dm.Ue.U.Sb('016a697ef00ce7554692');Z(olympe.dc.CloudObject.U,olympe.dm.Ue.C);olympe.dm.Ue.prototype.ga.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.dm.Ue.prototype.C.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.dm.Ue.prototype.F.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.dm.Wh=class extends olympe.dm.Ue{C(){return this.ca()===olympe.dm.Wh.Ka?this.wc(olympe.dm.Wh.V,olympe.dm.Ue):this.wc(olympe.dm.Wh.$,olympe.dm.Ue)}};olympe.dm.Wh.U=olympe.dc.Ra.C('ff021000000000000020',olympe.dm.Wh);olympe.dm.Wh.$=olympe.dm.Wh.U.Sb('017e9c34cf48bd6965c1');olympe.dm.Wh.V=olympe.dm.Wh.U.Sb('017e9c2e013e06bfffd9');olympe.dm.Wh.Ka=Df('10000000000000000000','ROOT_OF_ROOTS');olympe.dm.Wh.vc=Df('10000000000000000001','OLYMPE_FOLDER');
|
|
1503
1503
|
olympe.dm.Wh.prototype.C.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.dm.Module=class extends olympe.dc.CloudObject{OU(){return this.je(olympe.dm.Module.V)}gV(){return this.ai(olympe.dm.Module.$)}YQ(){return this.je(olympe.dm.Module.F)}kV(){return this.je(olympe.dm.Module.ta)}zU(){return this.je(olympe.dm.Module.O)}hV(){return this.wc(olympe.dm.Module.T,olympe.dm.Module)}wV(){return this.wc(olympe.dm.Module.C,olympe.dm.Ri)}};olympe.dm.Module.U=olympe.dc.Ra.C('ff021000000000000040',olympe.dm.Module);olympe.dm.Module.V=olympe.dm.Module.U.ea('ff023000000000000042');
|
|
1504
1504
|
olympe.dm.Module.$=olympe.dm.Module.U.ea('ff023000000000000043');olympe.dm.Module.F=olympe.dm.Module.U.ea('ff023000000000000044');olympe.dm.Module.ta=olympe.dm.Module.U.ea('ff023000000000000045');olympe.dm.Module.O=olympe.dm.Module.U.ea('ff023000000000000046');olympe.dm.Module.creationDateProp=olympe.dm.Module.U.ea('ff023000000000000049');olympe.dm.Module.C=olympe.dm.Module.U.Sb('ff022000000000000013');olympe.dm.Module.T=olympe.dm.Module.U.Sb('ff022000000000000014');
|
|
1505
|
-
olympe.dm.Module.Qa=Df('016a69b9bceabd815b77','OLYMPE_SERVER_MODULE');h=olympe.dm.Module.prototype;h.OU.K=olympe.j.J.R;h.gV.K=olympe.j.J.F;h.YQ.K=olympe.j.J.R;h.kV.K=olympe.j.J.R;h.zU.K=olympe.j.J.R;h.hV.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.wV.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.dm.File=class extends olympe.dc.CloudObject{static C(a,b,c,d,e,f,g){e=e||'application/data';d=olympe.oa.nk().T(new Blob([d],{type:e}));a=b.create(a,f).ge(g||olympe.dc
|
|
1505
|
+
olympe.dm.Module.Qa=Df('016a69b9bceabd815b77','OLYMPE_SERVER_MODULE');h=olympe.dm.Module.prototype;h.OU.K=olympe.j.J.R;h.gV.K=olympe.j.J.F;h.YQ.K=olympe.j.J.R;h.kV.K=olympe.j.J.R;h.zU.K=olympe.j.J.R;h.hV.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.wV.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.dm.File=class extends olympe.dc.CloudObject{static C(a,b,c,d,e,f,g){e=e||'application/data';d=olympe.oa.nk().T(new Blob([d],{type:e}));a=b.create(a,f).ge(g||olympe.dc.Xb.Te);b=olympe.j.cc.now();a.setProperty(olympe.dm.File.nameProp,c||'file').setProperty(olympe.dm.File.urlProp,d).setProperty(olympe.dm.File.creationDateProp,b).setProperty(olympe.dm.File.modificationDateProp,b).setProperty(olympe.dm.File.mimeTypeProp,e||'application/data').setProperty(olympe.dm.File.F,!1);return a.ca()}constructor(a,
|
|
1506
1506
|
b,c,d,e){super(a,b);this.F=c;this.R=d;this.C=e}Ot(){return this.je(olympe.dm.File.mimeTypeProp)}fw(a,b){const c=olympe.j.ib().md(a),d=b&&olympe.j.ib().md(b);(a=this.db.nd(this,olympe.dm.File.urlProp,!0))&&a.startsWith('blob:')?this.C.F(a,e=>{this.C.R(e,c)},d):sf(this.F,this,e=>{this.C.R(e,c)},e=>{d&&d(e)})}mz(a,b){this.fw(c=>{a(Ma(c))},b)}Er(a,b){const c=olympe.j.ib().md(a);b=b&&olympe.j.ib().md(b);const d=this.db.nd(this,olympe.dm.File.F),e=this.db.nd(this,olympe.dm.File.urlProp),f=g=>{const k=this.db.nd(this,
|
|
1507
1507
|
olympe.dm.File.mimeTypeProp);this.C.R(g,l=>{c(`data:${k};base64,${this.C.C(l)}`)})};d&&d.valueOf()?sf(this.F,this,f.bind(this),b):e&&e.startsWith('blob:')?this.C.F(e,f.bind(this),b):a(e)}lD(a,b){const c=b&&olympe.j.ib().md(b);olympe.j.Gw([a],d=>{const e=new olympe.dc.Qc;e.update(this,olympe.dc.CloudObject.nameProp,d);e.update(this,olympe.dm.File.nameProp,d);e.Wc(f=>{c&&c(f)})})}MW(a){this.R.R(this,a,this.db.nd(this,olympe.dm.File.mimeTypeProp))}sh(){return this.je(olympe.dm.File.urlProp)}iy(){return this.je(olympe.dm.File.nameProp)}AU(){return this.pw(olympe.dm.File.creationDateProp)}fV(){return this.pw(olympe.dm.File.modificationDateProp)}BN(){return this.zm(olympe.dm.File.F)}static QT(a,
|
|
1508
|
-
b,c,d,e,f){d=d||'application/data';c=olympe.oa.nk().T(new Blob([c],{type:d}));return olympe.dm.File.qL(a,b,c,d,e,f)}static qL(a,b,c,d,e,f){const g=olympe.j.cc.now();b=(new Map).set(olympe.dm.File.nameProp,b||'file').set(olympe.dm.File.urlProp,c).set(olympe.dm.File.creationDateProp,g).set(olympe.dm.File.modificationDateProp,g).set(olympe.dm.File.mimeTypeProp,d||'application/data').set(olympe.dm.File.F,!1);return a.create(olympe.dm.File,b,e||olympe.dc
|
|
1508
|
+
b,c,d,e,f){d=d||'application/data';c=olympe.oa.nk().T(new Blob([c],{type:d}));return olympe.dm.File.qL(a,b,c,d,e,f)}static qL(a,b,c,d,e,f){const g=olympe.j.cc.now();b=(new Map).set(olympe.dm.File.nameProp,b||'file').set(olympe.dm.File.urlProp,c).set(olympe.dm.File.creationDateProp,g).set(olympe.dm.File.modificationDateProp,g).set(olympe.dm.File.mimeTypeProp,d||'application/data').set(olympe.dm.File.F,!1);return a.create(olympe.dm.File,b,e||olympe.dc.Xb.Te,f)}};olympe.dm.File.createFromURL=olympe.dm.File.qL;
|
|
1509
1509
|
olympe.dm.File.createFromContent=olympe.dm.File.QT;olympe.dm.File.prototype.saveAs=olympe.dm.File.prototype.MW;olympe.dm.File.prototype.getContentUrl=olympe.dm.File.prototype.Er;olympe.dm.File.prototype.getContentAsString=olympe.dm.File.prototype.mz;olympe.dm.File.prototype.getContentAsBinary=olympe.dm.File.prototype.fw;olympe.dm.File.U=olympe.dc.Ra.C('ff021000000000000030',olympe.dm.File,olympe.dc.da.Wu,olympe.Lb.da.sb,olympe.oa.da.As);olympe.dm.File.nameProp=olympe.dm.File.U.ea('ff023000000000000050');
|
|
1510
1510
|
q('olympe.dm.File.nameProp',olympe.dm.File.nameProp);olympe.dm.File.creationDateProp=olympe.dm.File.U.ea('ff023000000000000051');q('olympe.dm.File.creationDateProp',olympe.dm.File.creationDateProp);olympe.dm.File.modificationDateProp=olympe.dm.File.U.ea('ff023000000000000055');q('olympe.dm.File.modificationDateProp',olympe.dm.File.modificationDateProp);olympe.dm.File.mimeTypeProp=olympe.dm.File.U.ea('ff023000000000000052');q('olympe.dm.File.mimeTypeProp',olympe.dm.File.mimeTypeProp);
|
|
1511
1511
|
olympe.dm.File.urlProp=olympe.dm.File.U.ea('ff023000000000000053');q('olympe.dm.File.urlProp',olympe.dm.File.urlProp);olympe.dm.File.F=olympe.dm.File.U.ea('ff023000000000000054');olympe.dm.File.U.C=olympe.dm.File.C.bind(null,olympe.dm.File);olympe.dm.File.ua=[olympe.j.File];h=olympe.dm.File.prototype;h.Ot.K=olympe.j.J.R;h.fw.K=new olympe.j.J(()=>{},[]);h.mz.K=new olympe.j.J(()=>{},[]);h.Er.K=new olympe.j.J(()=>{},[]);h.lD.K=olympe.j.J.O;h.sh.K=olympe.j.J.R;h.iy.K=olympe.j.J.R;
|
|
1512
|
-
h.AU.K=new olympe.j.J(()=>olympe.j.cc,[]);h.fV.K=new olympe.j.J(()=>olympe.j.cc,[]);h.BN.K=olympe.j.J.T;olympe.dm.Ri=class extends olympe.dc.CloudObject{C(){return this.je(olympe.dm.Ri.F)}O(){return this.ai(olympe.dm.Ri.O)}F(){return this.wc(olympe.dm.Ri.C,olympe.dm.Module)}};olympe.dm.Ri.U=olympe.dc.Ra.C('ff021000000000000041',olympe.dm.Ri);olympe.dm.Ri.F=olympe.dm.Ri.U.ea('ff023000000000000047');olympe.dm.Ri.O=olympe.dm.Ri.U.ea('ff023000000000000048');olympe.dm.Ri.C=olympe.dm.Module.C.
|
|
1513
|
-
olympe.dm.Ri.prototype.F.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.dm.ne=class extends olympe.dm.Wh{C(){return this.wc(olympe.dm.
|
|
1512
|
+
h.AU.K=new olympe.j.J(()=>olympe.j.cc,[]);h.fV.K=new olympe.j.J(()=>olympe.j.cc,[]);h.BN.K=olympe.j.J.T;olympe.dm.Ri=class extends olympe.dc.CloudObject{C(){return this.je(olympe.dm.Ri.F)}O(){return this.ai(olympe.dm.Ri.O)}F(){return this.wc(olympe.dm.Ri.C,olympe.dm.Module)}};olympe.dm.Ri.U=olympe.dc.Ra.C('ff021000000000000041',olympe.dm.Ri);olympe.dm.Ri.F=olympe.dm.Ri.U.ea('ff023000000000000047');olympe.dm.Ri.O=olympe.dm.Ri.U.ea('ff023000000000000048');olympe.dm.Ri.C=olympe.dm.Module.C.cf();olympe.dm.Ri.prototype.C.K=olympe.j.J.R;olympe.dm.Ri.prototype.O.K=olympe.j.J.F;
|
|
1513
|
+
olympe.dm.Ri.prototype.F.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.dm.ne=class extends olympe.dm.Wh{C(){return this.wc(olympe.dm.Ue.F,olympe.dm.Ue)}V(){return this.je(olympe.dm.ne.ta)}$(){return this.je(olympe.dm.ne.Mb)}O(){return this.wc(olympe.dm.ne.O,olympe.dm.ne)}};olympe.dm.ne.U=olympe.dc.Ra.C('0163d9594700fcf61e54',olympe.dm.ne);olympe.dm.ne.ta=olympe.dm.ne.U.ea('017869c7d2833c9492c1');olympe.dm.ne.Mb=olympe.dm.ne.U.ea('017869c80bb9929c76d0');olympe.dm.ne.O=olympe.dm.ne.U.Sb('ff02200000000000002b');olympe.dm.ne.Ea=Z(olympe.dm.ne.U,olympe.dm.ne.O);
|
|
1514
1514
|
olympe.dm.ne.T=olympe.dm.ne.U.Sb('ff02200000000000002a');olympe.dm.ne.ic=olympe.dm.ne.U.Sb('017e9c412e2b944bd590');olympe.dm.ne.gd=olympe.dm.ne.U.Sb('017e9c416872a89d3415');olympe.dm.ne.Cc=olympe.dm.ne.U.Sb('017ebf8fe5c506662098');Z(olympe.dc.CloudObject.U,olympe.dm.ne.T);olympe.dm.ne.ec=Df('100000000000000000dd','PRIMORDIAL');olympe.dm.ne.prototype.C.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.dm.ne.prototype.V.K=olympe.j.J.R;olympe.dm.ne.prototype.$.K=olympe.j.J.R;
|
|
1515
1515
|
olympe.dm.ne.prototype.O.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.dm.Property=class extends olympe.dc.CloudObject{F(){return this.bh(olympe.dm.Property.definingModelRel,olympe.dc.CloudObject)}C(){return this.bh(olympe.dm.Property.typeRel,olympe.dc.CloudObject)}Hg(){return this.F().Sa().gz(this.Sa(),'.')}};olympe.dm.Property.U=olympe.dc.Ra.C('ff021000000000000005',olympe.dm.Property);olympe.dm.Property.definingModelRel=Z(olympe.dm.Property.U,olympe.dc.CloudObject.propertyRel);q('olympe.dm.Property.definingModelRel',olympe.dm.Property.definingModelRel);
|
|
1516
1516
|
olympe.dm.Property.typeRel=Z(olympe.dm.Property.U,olympe.dc.CloudObject.typeRel);q('olympe.dm.Property.typeRel',olympe.dm.Property.typeRel);olympe.dm.Property.prototype.F.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.dm.Property.prototype.C.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.dm.Relation=class extends olympe.dc.CloudObject{constructor(a,b){super(a,b)}bV(){return olympe.j.lb.EMPTY}tU(){return this.ai(olympe.dm.Relation.gC)}mV(){return this.ai(olympe.dm.Relation.dD)}XL(){return this.wc(olympe.dm.Relation.destinationModelRel,olympe.dc.CloudObject).Pd()}zM(){return this.wc(olympe.dm.Relation.originModelRel,olympe.dc.CloudObject).Pd()}Hg(){return this.zM().Sa().concat(['-',this.Sa(),'->',this.XL().Sa()])}};olympe.dm.Relation.U=olympe.dc.Ra.C('ff021000000000000006',olympe.dm.Relation);
|
|
1517
1517
|
olympe.dm.Relation.dD=olympe.dm.Relation.U.ea('ff023000000000000030');olympe.dm.Relation.gC=olympe.dm.Relation.U.ea('ff023000000000000034');olympe.dm.Relation.rC=olympe.dm.Relation.U.ea('ff023000000000000037');olympe.dm.Relation.qC=olympe.dm.Relation.U.ea('ff023000000000000137');olympe.dm.Relation.Xz=olympe.dm.Relation.U.ea('ff023000000000000237');olympe.dm.Relation.rO=olympe.dm.Relation.U.ea('ff023000000000000337');olympe.dm.Relation.CT=olympe.dm.Relation.U.ea('ff023000000000000031');
|
|
1518
|
-
olympe.dm.Relation.originModelRel=Z(olympe.dm.Relation.U,olympe.dc.CloudObject.R);q('olympe.dm.Relation.originModelRel',olympe.dm.Relation.originModelRel);olympe.dm.Relation.destinationModelRel=Z(olympe.dm.Relation.U,olympe.dc.CloudObject.ka);q('olympe.dm.Relation.destinationModelRel',olympe.dm.Relation.destinationModelRel);olympe.dc.
|
|
1519
|
-
olympe.dc.
|
|
1518
|
+
olympe.dm.Relation.originModelRel=Z(olympe.dm.Relation.U,olympe.dc.CloudObject.R);q('olympe.dm.Relation.originModelRel',olympe.dm.Relation.originModelRel);olympe.dm.Relation.destinationModelRel=Z(olympe.dm.Relation.U,olympe.dc.CloudObject.ka);q('olympe.dm.Relation.destinationModelRel',olympe.dm.Relation.destinationModelRel);olympe.dc.Ve={NONE:null,oY:olympe.dm.Relation.rC.ca(),ih:olympe.dm.Relation.qC.ca(),ti:olympe.dm.Relation.Xz.ca(),ZZ:olympe.dm.Relation.rO.ca()};
|
|
1519
|
+
olympe.dc.Ve.toString=function(a){for(const [b,c]of Object.entries(olympe.dc.Ve))if(c===a)return b;return null};olympe.dm.Relation.C={fG:0,yA:5,rJ:1,lS:4,Sy:2,Dy:8,qF:10,hS:6,iS:9,Te:6,kS:9};olympe.dm.Relation.F={KR:3,zB:4,uR:5,tR:6};olympe.dm.Relation.O=olympe.dm.hh.SI+olympe.dm.hh.eF;h=olympe.dm.Relation.prototype;h.bV.K=olympe.j.J.R;h.tU.K=olympe.j.J.F;h.mV.K=olympe.j.J.F;h.XL.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.zM.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.dm.On=class extends olympe.dc.CloudObject{getValue(){}};olympe.dm.On.U=olympe.dc.Ra.C('ff021000000000000019',olympe.dm.On);olympe.dm.String=class extends olympe.dm.On{getValue(){return this.je(olympe.dm.String.valueProp)}toString(){return this.get(olympe.dm.String.valueProp)}};olympe.dm.String.U=olympe.dc.Ra.C('ff021000000000000011',olympe.dm.String);olympe.dm.String.valueProp=olympe.dm.String.U.ea('ff023000000000000026');q('olympe.dm.String.valueProp',olympe.dm.String.valueProp);olympe.dm.String.prototype.getValue.K=olympe.j.J.R;olympe.dm.String.prototype.toString.K=olympe.j.J.O;olympe.dm.Boolean=class extends olympe.dm.On{getValue(){return this.zm(olympe.dm.Boolean.valueProp)}};olympe.dm.Boolean.U=olympe.dc.Ra.C('ff021000000000000012',olympe.dm.Boolean);olympe.dm.Boolean.valueProp=olympe.dm.Boolean.U.ea('ff023000000000000027');q('olympe.dm.Boolean.valueProp',olympe.dm.Boolean.valueProp);olympe.dm.Boolean.prototype.getValue.K=olympe.j.J.T;olympe.dm.Color=class extends olympe.dm.On{getValue(){return this.IM()}};olympe.dm.Color.U=olympe.dc.Ra.C('ff021000000000000017',olympe.dm.Color);olympe.dm.Color.valueProp=olympe.dm.Color.U.ea('ff023000000000000032');q('olympe.dm.Color.valueProp',olympe.dm.Color.valueProp);olympe.dm.Color.prototype.getValue.K=new olympe.j.J(()=>olympe.j.Color,[]);olympe.dm.DateTime=class extends olympe.dm.On{getValue(){return this.pw(olympe.dm.DateTime.valueProp)}};olympe.dm.DateTime.U=olympe.dc.Ra.C('ff021000000000000014',olympe.dm.DateTime);olympe.dm.DateTime.valueProp=olympe.dm.DateTime.U.ea('ff023000000000000029');q('olympe.dm.DateTime.valueProp',olympe.dm.DateTime.valueProp);olympe.dm.DateTime.prototype.getValue.K=new olympe.j.J(()=>olympe.j.cc,[]);olympe.dm.Enum=class extends olympe.dm.String{Sa(){return olympe.j.fb([super.Sa(),super.getValue()],(a,b)=>''!==a.valueOf()?a:b,olympe.j.lb)}hf(){return this.ai(olympe.dm.Enum.rankProp)}static create(a,b,c,d,e){const f=olympe.dc.fc();e=void 0!==e?e:f.ue(b)&&f.ej(b).length||0;c=(new Map).set(olympe.dm.String.valueProp,c).set(olympe.dc.CloudObject.nameProp,d||c).set(olympe.dm.Enum.rankProp,e);return a.create(b,c)}};olympe.dm.Enum.create=olympe.dm.Enum.create;
|
|
1520
1520
|
olympe.dm.Enum.U=olympe.dc.Ra.C('016cdd861b32d56c81f7',olympe.dm.Enum);olympe.dm.Enum.rankProp=olympe.dm.Enum.U.ea('017a7690c915975ea995');olympe.dm.Enum.prototype.hf.K=olympe.j.J.F;olympe.dm.gp=class extends olympe.dm.BrickMetadata{HV(){return this.fe(olympe.dc.CloudObject.instancesRel).Kq(olympe.dm.Enum.rankProp,olympe.dc.qa.DB.ASC).$k()}static create(a,b){b=a.create(olympe.dm.gp,(new Map).set(olympe.dc.CloudObject.nameProp,b));a.Kb(olympe.dc.CloudObject.extendRel,b,olympe.dm.Enum);return b}};olympe.dm.gp.create=olympe.dm.gp.create;olympe.dm.gp.prototype.getValues=olympe.dm.gp.prototype.HV;olympe.dm.gp.U=olympe.dc.Ra.C('017a768f966fc08ebb98',olympe.dm.gp);olympe.dm.Number=class extends olympe.dm.On{getValue(){return this.ai(olympe.dm.Number.valueProp)}};olympe.dm.Number.U=olympe.dc.Ra.C('ff021000000000000013',olympe.dm.Number);olympe.dm.Number.valueProp=olympe.dm.Number.U.ea('ff023000000000000028');q('olympe.dm.Number.valueProp',olympe.dm.Number.valueProp);olympe.dm.Number.prototype.getValue.K=olympe.j.J.F;olympe.sc={};olympe.sc.da={Ob:'sc.Logger',Ey:'sc.RootContext'};olympe.sc.za={Ml:'sc.app',ap:'sc.debug',fF:'sc.disableTheme',PRODUCTION:'sc.production',OI:'sc.onstartTimeout',sJ:'sc.remoteActionTimeout',xB:'sc.offlineStart',vR:'google.apikey'};
|
|
1521
1521
|
olympe.ma.Be(a=>{C(a,olympe.sc.za.Ml,'');C(a,olympe.sc.za.xB,!1);C(a,olympe.sc.za.ap,!1);C(a,olympe.sc.za.fF,!1);C(a,olympe.sc.za.PRODUCTION,!1);C(a,olympe.sc.za.OI,2E4);C(a,olympe.sc.za.vR,'AIzaSyD0rTnF3Tq-ZjgdaqyvC8Jg-RSgpZM2jBU');C(a,olympe.sc.za.sJ,1E4);A(a,olympe.sc.da.Ob,[olympe.rb.da.sb],b=>b.Mg('sc'));A(a,olympe.sc.da.Ey,[new olympe.ma.Ta(olympe.sc.za.PRODUCTION),new olympe.ma.Ta(olympe.sc.za.OI)],b=>{const c=new olympe.sc.hc('root','root',null);olympe.sc.ON=c;c.set(olympe.sc.hc.Oh.PRODUCTION,
|
|
1522
|
-
b);return c})},'olympe.sc');olympe.ma.run([olympe.sc.da.Ey],a=>{olympe.jw().ctx=a});olympe.sc.Iz=()=>null!==olympe.dc.fc().we(void 0,olympe.sc.Runnable.ga.
|
|
1523
|
-
olympe.sc.w0=function(a){const b=olympe.dm.
|
|
1524
|
-
}g.push(d);k.push(a.we(g[0],b))}k=k.concat(a.Am(k[0],olympe.dm.
|
|
1522
|
+
b);return c})},'olympe.sc');olympe.ma.run([olympe.sc.da.Ey],a=>{olympe.jw().ctx=a});olympe.sc.Iz=()=>null!==olympe.dc.fc().we(void 0,olympe.sc.Runnable.ga.cf());olympe.sc.l0=(a,b,c,d)=>{c=a.create(olympe.sc.xg).setProperty(olympe.sc.xg.C,c||null).setProperty(olympe.sc.xg.O,d||null);a.Kb(olympe.sc.xg.F,c,b);a.Kb(olympe.dc.CloudObject.containsRel,b,c);return c.ca()};olympe.sc.Pp=a=>{a=olympe.dc.oa.Ye.Pp(a);return a instanceof olympe.sc.hk?a.C():a};olympe.sc.y0=a=>{a=vf(a);return a instanceof olympe.sc.hk?a.C():a};
|
|
1523
|
+
olympe.sc.w0=function(a){const b=olympe.dm.Ue.C.cf(),c=olympe.dc.CloudObject.containsRel.cf();var d=olympe.dc.Gb(a);if(void 0===d)return[];a=olympe.dc.fc();var e=a.model(d);const f=[],g=[];let k=[];if(a.yw(e,olympe.dm.Ue))k.push(d);else{for(e=[];null===a.we(d,b);){e.push(d);const l=a.we(d,c);if(null===l)return olympe.rb.Eb('sc').warn(`Object ${d} has no container`),[];l===a.we(d,olympe.dc.CloudObject.instancesRel)?(f.push(d),d=a.we(l,c)):d=l;if(e.includes(d))throw Error(`Instance ${d} (${a.name(d)}) is part of a cyclic contain pattern`);
|
|
1524
|
+
}g.push(d);k.push(a.we(g[0],b))}k=k.concat(a.Am(k[0],olympe.dm.Ue.Ab));k=k.concat(a.Am(k[k.length-1],olympe.dm.Wh.$.cf()));k=k.concat(a.Am(k[k.length-1],olympe.dm.Wh.V.cf()));return[...f,...g,...k].reverse()};olympe.sc.QU=a=>{a=a&&a.valueOf()||'';return a.startsWith('image/')?olympe.sc.Fn:a.startsWith('video/')?olympe.sc.mt:a.startsWith('font/')||a.startsWith('application/font-woff')?olympe.sc.Ig:olympe.dm.File};let Dl=0,El=0;function Fl(a,b){if(a.children)for(const c of a.children.values())b(c)}function Gl(a,b){if(a.mk&&a.mk.has(b)){var c=a.mk.get(b);--c[0];0===c[0]&&(a.mk.delete(b),0===a.mk.size&&(a.mk=null),Of(olympe.dc.Ai(),null,c[1]))}}function Hl(a,b){a.children&&a.children.delete(b.xa())}function Il(a,b){if(null===a)return null;if(a.has(b))return a.get(b);for(const c of a.values())if(c.dC&&c.Xt()&&(a=Il(c.children,b)))return a;return null}
|
|
1525
1525
|
function Jl(a,b){b=olympe.dc.Gb(b);return a.Hm&&(a.Hm.get('O#'+b)||a.Hm.get('IO#'+b))||b}function Kl(a,b,c,d){const e='$'+b;a.yt.add(b);c.map(f=>'@'+f+'.'+b).forEach(f=>{(f=a.$g&&a.$g.get(f))&&f.forEach(g=>{g(d)})});Fl(a,f=>{!f.lC&&f.yt.has(b)||f.data.has(e)||Kl(f,b,c,d)});a.yt.delete(b)}function Ll(a,b){b=olympe.dc.Gb(b);return a.Hm&&(a.Hm.get('I#'+b)||a.Hm.get('IO#'+b))||b}
|
|
1526
1526
|
function Ml(a,b,c){a.yt.add(b);const d=a.$g&&a.$g.get('&'+b);if(d)for(const e of d.values())e(c);Fl(a,e=>{e.yt.has(b)||Ml(e,b,c)});a.yt.delete(b)}
|
|
1527
1527
|
olympe.sc.hc=class{constructor(a,b,c=olympe.sc.ON){++El;this.id=a;this.xr=new Set;this.parent=c;this.yi=b||null;this.ff=new olympe.j.Od('SC Context');this.data=new Map;this.mk=this.children=this.$g=null;this.mC=new Map;this.uid=El;this.mL=null;this.dC=!1;this.yt=new Set;this.lC=!1;this.Y=olympe.rb.Eb('sc');this.Hm=null;this.ff.Vd(()=>{Fl(this,d=>d.destroy())});this.ff.onDestroy(()=>{this.mk&&this.mk.forEach(([d],e)=>{for(let f=0;f<d;f++)Gl(this,e)});c&&Hl(this.parent,this);this.xr.clear();this.parent=
|
|
@@ -1538,31 +1538,31 @@ olympe.sc.hc.prototype.waitFor=olympe.sc.hc.prototype.Bx;olympe.sc.hc.prototype.
|
|
|
1538
1538
|
olympe.sc.hc.prototype.getParent=olympe.sc.hc.prototype.getParent;olympe.sc.hc.qf={WP:'I#',SR:'O#',XP:'IO#'};olympe.sc.hc.Oh={PRODUCTION:'__production',EDITION:'__editionMode',TRANSACTION:'__transaction',zn:'__htmlContainer',Sq:'__dockableElement'};olympe.sc.Metadata=class extends olympe.dc.CloudObject{constructor(a,b){super(a,b)}};olympe.sc.Metadata.U=olympe.dc.Ra.C('0161ae936c62f9fcd131',olympe.sc.Metadata);olympe.sc.xg=class extends olympe.dc.CloudObject{F(){return this.je(olympe.sc.xg.O)}C(){return this.je(olympe.sc.xg.C)}};olympe.sc.xg.U=olympe.dc.Ra.C('01703376c4a81c0e9d90',olympe.sc.xg);olympe.sc.xg.O=olympe.sc.xg.U.ea('01703376c4a81c0e9d91');olympe.sc.xg.C=olympe.sc.xg.U.ea('01703376c4a81c0e9d92');olympe.sc.xg.F=olympe.sc.xg.U.Sb('01703376c4a81c0e9d93');Z(olympe.dc.CloudObject.U,olympe.sc.xg.F);olympe.sc.xg.prototype.F.K=olympe.j.J.R;olympe.sc.xg.prototype.C.K=olympe.j.J.R;olympe.sc.oa={};olympe.sc.oa.$Y=class{constructor(a,b,c){this.Y=a;b.Y.error('Try to set cors policies on a web server with the browser implementation.');this.F=c;new olympe.oa.jK(3E4);this.C=new olympe.j.Od('FileService context')}start(a){this.Y.debug(`Started file service with path : ${`/${this.F}/${a}/:${'fileTag'}`.replace(/\/+/g,'/').replace(/\/$/,'')}`);a=Promise.reject('Try to open a route on a web server using the browser implementation.');this.C.onDestroy(()=>{Promise.reject('Try to close a route on a web server using the browser implementation.').catch(b=>
|
|
1539
1539
|
this.Y.error(`An error occurred while stopping the file service: ${b}`))});return a}stop(){this.C.destroy()}};olympe.sc.Qj={};olympe.sc.Qj.hm={dY:null,DJ:'screenflow',SB:'ui-design',FJ:'software-intelligence',IA:'data-management'};olympe.sc.Xh=class extends olympe.dm.BrickMetadata{R(){return olympe.sc.Qj.hm.FJ}C(){return this.wc(olympe.sc.Xh.C,olympe.sc.logic.jr)}F(){return this.wc(olympe.sc.Xh.F,olympe.sc.logic.Dp)}};olympe.sc.Xh.U=olympe.dc.Ra.C('011100000000000adef0',olympe.sc.Xh);olympe.sc.Xh.C=olympe.sc.Xh.U.Sb('016ac4f59a2917fdef01');olympe.sc.Xh.F=olympe.sc.Xh.U.Sb('016ac4f59a2917fdef02');olympe.sc.Xh.U.C=(a,b)=>bh(a,b||'New function signature',olympe.sc.Xh,olympe.sc.logic.Jk).ca();
|
|
1540
1540
|
olympe.sc.Xh.prototype.C.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.sc.Xh.prototype.F.K=new olympe.j.J(()=>olympe.dc.Bb,[]);function Nl(a,b){a.F().forEach(c=>c.call(a,b,(d,e)=>{null===e?b.remove(d):b.set(d,e)}))}function Ol(a,b){const c=[];for(const d of b)b=a.db.nd(d,olympe.sc.logic.Xf.C,!0),c[b]=d;return c}function Pl(a){return Ol(a,a.db.wc(a.tag,olympe.sc.Vc.F))}function Ql(a){return Ol(a,a.db.wc(a.tag,olympe.sc.Vc.O))}
|
|
1541
|
-
olympe.sc.Vc=class extends olympe.dm.BrickMetadata{Ga(a,b,c,d,e=!0){e||olympe.rb.Eb('sc').error('parameter own= false ignored, investigate');return olympe.j.th(nb(this.po(a,olympe.dc.oa.
|
|
1542
|
-
olympe.sc.Vc.Ab)}Iz(){return null!==this.db.we(this.tag,olympe.sc.Runnable.ga.
|
|
1541
|
+
olympe.sc.Vc=class extends olympe.dm.BrickMetadata{Ga(a,b,c,d,e=!0){e||olympe.rb.Eb('sc').error('parameter own= false ignored, investigate');return olympe.j.th(nb(this.po(a,olympe.dc.oa.Ye.Pp,c)),d)}F(){return[]}ga(a,b){const c=this.db,d=olympe.oa.aj();a=olympe.j.ib();Bg(c,this.tag,a.md((e,f)=>{null===f||void 0===f?b(e,null):b(e,olympe.sc.Pp(f))}),d);a.onDestroy(()=>{Cg(c,this.tag,d)})}qw(){return this.wc(olympe.sc.Vc.T,olympe.sc.Runnable)}WL(){return this.wc(olympe.sc.Vc.V,olympe.sc.Runnable)}zw(){return this.db.nd(this,
|
|
1542
|
+
olympe.sc.Vc.Ab)}Iz(){return null!==this.db.we(this.tag,olympe.sc.Runnable.ga.cf())}getInputs(){return this.wc(olympe.sc.Vc.F,olympe.sc.logic.re)}getOutputs(){return this.wc(olympe.sc.Vc.O,olympe.sc.logic.Le)}};olympe.sc.Vc.U=olympe.dc.Ra.C('0112000000000000def0',olympe.sc.Vc);olympe.sc.Vc.Ab=olympe.sc.Vc.U.ea('01692aa71f3108454479');olympe.sc.Vc.Mb=olympe.sc.Vc.U.ea('0166446c1f128ebc903a');olympe.sc.Vc.T=olympe.sc.Vc.U.Sb('01692a4af82e8984742c');olympe.sc.Vc.V=olympe.sc.Vc.U.Sb('01692a4af82e8984742d');
|
|
1543
1543
|
olympe.sc.Vc.ta=olympe.sc.Vc.U.Sb('01692a4af82e8984742e');olympe.sc.Vc.F=olympe.sc.Vc.U.Sb('01621fb84e320000f00a');olympe.sc.Vc.O=olympe.sc.Vc.U.Sb('01621fb84e320000f00b');olympe.sc.Vc.gd=olympe.sc.Vc.U.Sb('0171838bcfed0000e00e');olympe.sc.Vc.Cc=olympe.sc.Vc.U.Sb('0171838bcfed0000a00a');h=olympe.sc.Vc.prototype;h.Ga.K=olympe.j.J.O;h.qw.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.WL.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.zw.K=olympe.j.J.O;h.Iz.K=olympe.j.J.O;
|
|
1544
1544
|
h.getInputs.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.getOutputs.K=new olympe.j.J(()=>olympe.dc.Bb,[]);function Rl(a){const b=new olympe.dc.Qc,c=b.create(a).persist(!1).ca();b.Wc();olympe.j.ib().onDestroy(()=>{const d=new olympe.dc.Qc;d.delete(c);d.Wc()});return olympe.dc.CloudObject.get(c)}function Sl(a,b){b.YC(a);Nl(a.Ag(),b);const c=a.V(),d=Tl(b,c),e=[];c.forEach((f,g)=>{f===a.$?e[0]=g:f===a.ga&&(e[1]=g)});void 0!==e[0]&&void 0!==e[1]&&(Ul(a,d[e[0]],d[e[1]]),c[e[0]]=null,c[e[1]]=null);c.forEach((f,g)=>{f&&f.call(a,b,d[g])})}
|
|
1545
1545
|
function Vl(a,b,c,d){const e=d.vf(),f=Dg(a.db,b,c,e.md((g,k)=>{const l=d.nl(k);g?olympe.dc.CloudObject.get(k).run(l):l.destroy()}));e.Vd(a.db.F.bind(a.db,b,c,f,!0))}function Tl(a,b){if(1===b.length)return[(d,e)=>{null!==e?a.set(d,e):a.remove(d)}];const c=b.map(()=>new Map);return c.map(d=>(e,f)=>{null!==f?d.set(e,f):d.delete(e);a:{for(const g of c)if(f=g.get(e),void 0!==f){a.set(e,f);break a}a.remove(e)}})}
|
|
1546
1546
|
function Ul(a,b,c){const d=olympe.j.ib(),e=Bg(a.db,a.tag,d.md((f,g,k)=>{const l=k?c:b;null!==l&&(k&&b&&b(f,null),null===g||void 0===g?l(f,null):l(f,olympe.sc.Pp(g)))}));d.onDestroy(()=>{Cg(a.db,a.tag,e)})}
|
|
1547
1547
|
olympe.sc.Runnable=class extends olympe.dm.BrickMetadata{constructor(a,b,c){super(a,b);this.Y=c}run(a){const b=()=>{Sl(this,a);this.init(a);this.Ag().zw()?this.ka(a):a.vf().run(this.update.bind(this,new olympe.sc.cd(a),[],[]));this.Ha(a);a.Ur(this.clear.bind(this,a));a.onDestroy(this.destroy.bind(this,a))},c=a.getParent();c?c.vf().run(b):b()}Ag(){return this.Gr()}init(a){this.onInit(a)}update(a,b,c){const d=this.Ag();if(d.zw())this.onUpdate(a,b,c);else this.Y.debug(`Softcoded runnable ${this.db.name(this)} with tag ${this.tag} running in context ${a.PC()}`),
|
|
1548
|
-
Vl(this,d,olympe.sc.Vc.T,a),this.Cb()&&Vl(this,d,olympe.sc.Vc.ta,a)}Ha(a){a.jn(olympe.sc.Vc.Mb)}clear(){}destroy(a){this.onDestroy(a)}setupExecution(){return rxjs.of([])}Ka(){return[]}onInit(){}onUpdate(){this.Y.error(`Brick ${this.db.name(this.
|
|
1548
|
+
Vl(this,d,olympe.sc.Vc.T,a),this.Cb()&&Vl(this,d,olympe.sc.Vc.ta,a)}Ha(a){a.jn(olympe.sc.Vc.Mb)}clear(){}destroy(a){this.onDestroy(a)}setupExecution(){return rxjs.of([])}Ka(){return[]}onInit(){}onUpdate(){this.Y.error(`Brick ${this.db.name(this.Ze())} (${this.Ze()}) is flagged as hardcoded, but method update() has not been overridden.`)}onDestroy(){}getInputs(){return Pl(this.Ag())}getOutputs(){return Ql(this.Ag())}Qa(){return[]}ta(){return new Map}Cb(){return!1}ka(a){var b=this.Ze();const c=this.db.name(b),
|
|
1549
1549
|
d=`Brick ${c} successfully run`,e=`Brick ${c} successfully cleared`,f=this.Ka(a);b=this.setupExecution(a).pipe(rxjs.operators.map(g=>a.Dc()||(a.clear(),null===g)?!1:(a.vf().run(this.update.bind(this,new olympe.sc.cd(a),Array.isArray(g)?g:[g],f)),!0))).subscribe(rxjs.Subscriber.create(g=>g?this.Y.debug(d):this.Y.debug(e),this.Ab.bind(this,a),()=>this.Y.debug(`Brick ${c} completed`)));a.onDestroy(b.unsubscribe.bind(b))}Ga(a,b,c,d,e=!0){a=b.Ba(a,c,e);void 0!==d&&olympe.j.th(a,d);return a}O(a,b,c,d,e){olympe.j.Fg([d],
|
|
1550
|
-
f=>{b.set(a,olympe.j.CN(f)?f.valueOf():f)});return this.Ga(a,b,c,e)}V(){return[this.$,this.ga]}$(a,b){Ul(this,b,null)}ga(a,b){Ul(this,null,b)}Ea(a,b){const c=this.db,d=olympe.sc.logic.wd.O.
|
|
1550
|
+
f=>{b.set(a,olympe.j.CN(f)?f.valueOf():f)});return this.Ga(a,b,c,e)}V(){return[this.$,this.ga]}$(a,b){Ul(this,b,null)}ga(a,b){Ul(this,null,b)}Ea(a,b){const c=this.db,d=olympe.sc.logic.wd.O.cf(),e=olympe.sc.logic.wd.C,f=olympe.sc.logic.wd.F;this.wC(d,g=>{var k=g.ca();if(k=c.we(k,e)||c.we(k,f))g=Wl(g,a,b.bind(null,k)),olympe.j.ib().onDestroy(g)})}ic(a,b){const c=olympe.sc.mg.O.cf();this.wC(c,d=>{d.La().forEach(e=>{const f=e.ca();a.on(Xl(d,f),g=>{b(f,g)})})})}Ab(a,b){const c=this.Ze();let d=this.db.name(c);
|
|
1551
1551
|
try{const e=[a.dw()];let f=a.getParent();for(;null!==f&&f!==olympe.sc.ON;)e.unshift(f.dw()),f=f.getParent();d=e.map(g=>{if(null!==g){const k=this.db.model(g);return this.db.name(g)||k&&this.db.name(k)||g}return'?'}).join(' > ')}catch(e){this.Y.warn(`Impossible to retrieve the stack for brick ${this.db.name(c)}.`)}this.Y.error(`An error occurred in brick ${d} (${c}): ${b}\n${b.stack}`)}};olympe.sc.Runnable.U=If(olympe.dc.Ra.C('01130000000000ca1100',olympe.sc.Runnable));olympe.sc.Runnable.ta=olympe.sc.Runnable.U.Sb('01692a4af82e8984742b');
|
|
1552
1552
|
olympe.sc.Runnable.ga=olympe.sc.Runnable.U.Sb('01756a18d4921c103111');olympe.sc.Runnable.bU=Z(olympe.sc.Runnable.U,olympe.sc.Vc.T);olympe.sc.Runnable.F0=Z(olympe.sc.Runnable.U,olympe.sc.Vc.V);olympe.sc.Runnable.I0=Z(olympe.sc.Runnable.U,olympe.sc.Vc.ta);Z(olympe.sc.Vc.U,olympe.sc.Runnable.ta);Z(olympe.sc.Vc.U,olympe.sc.Runnable.ga);olympe.sc.Runnable.prototype.Ag.K=new olympe.j.J(()=>olympe.sc.Vc,[]);olympe.sc.Runnable.prototype.Ga.K=new olympe.j.J(()=>Object,[]);
|
|
1553
1553
|
olympe.sc.Runnable.prototype.O.K=olympe.j.J.O;function Yl(a){if(a){if('string'===typeof a)return a;if(a instanceof olympe.sc.hk)return(a=a.F())?a.valueOf():null;if('function'===typeof a.ca)return a.ca()}return null}olympe.sc.hk=class extends olympe.dc.CloudObject{F(){return this.db.wc(this,olympe.sc.hk.C)[0]}C(){return olympe.dc.CloudObject.get(Yl(this))}toString(){const a=Yl(this);let b;a&&(b=this.db.name(a));return b||super.toString()}};olympe.sc.hk.U=olympe.dc.Ra.C('0163c9ae01f2d6e9ca49',olympe.sc.hk);olympe.sc.hk.C=olympe.sc.hk.U.Sb('0169b5a8a33144fb0b49');
|
|
1554
|
-
Z(olympe.dc.CloudObject.U,olympe.sc.hk.C);olympe.sc.hk.prototype.F.K=new olympe.j.J(()=>String,[]);olympe.sc.hk.prototype.C.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.gF=class extends olympe.dm.
|
|
1555
|
-
function $l(a,b){Zl=a;(new olympe.dc.Aj(a,olympe.dc.Ph.ct)).fe(olympe.sc.Tb.xj.C).fe(olympe.sc.Mh.F.
|
|
1554
|
+
Z(olympe.dc.CloudObject.U,olympe.sc.hk.C);olympe.sc.hk.prototype.F.K=new olympe.j.J(()=>String,[]);olympe.sc.hk.prototype.C.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.gF=class extends olympe.dm.Ue{R(){return olympe.sc.Qj.hm.IA}};olympe.sc.gF.U=olympe.dc.Ra.C('0163a68ce44f3d1fa84c',olympe.sc.gF);olympe.sc.Qu=class extends olympe.dm.BrickMetadata{};olympe.sc.Qu.U=olympe.dc.Ra.C('016324fde11a836f76c2',olympe.sc.Qu);olympe.sc.Qu.U.C=function(a,b){return bh(a,b||'New model',olympe.sc.Qu).ca()};let Zl=null;
|
|
1555
|
+
function $l(a,b){Zl=a;(new olympe.dc.Aj(a,olympe.dc.Ph.ct)).fe(olympe.sc.Tb.xj.C).fe(olympe.sc.Mh.F.cf()).Wc((c,d)=>{if(c)olympe.rb.Eb('sc').error('Error while loading business container:',c.message),b(olympe.sc.Mh.C.bg);else{c=null;for(const [e,f]of d.hg.bi())e===olympe.sc.Mh.F.ca()&&(c=f);null!==c?ai(Wh(new olympe.dc.Aj(c),olympe.dc.Ve.ti),(e,f)=>{const g=olympe.dc.Wf.Uh,k=olympe.dc.Wf.Es,l=f.ca();f=f.qc();return olympe.dc.fc().di(e,olympe.sc.Qu)&&f===olympe.dc.Nb.ORIGIN&&(l===g||l===k)}).Wc(()=>
|
|
1556
1556
|
b(olympe.sc.Mh.C.qI)):(olympe.rb.Eb('sc').error('No container found for the application',a),b(olympe.sc.Mh.C.vB))}})}olympe.sc.Mh=class extends olympe.dc.CloudObject{};olympe.sc.Mh.C={qI:0,vB:1,bg:2};olympe.sc.Mh.U=olympe.dc.Ra.C('017b3aa8fae1e3d044dc',olympe.sc.Mh);olympe.sc.Mh.F=olympe.sc.Mh.U.Sb('017b3aa8fd1659291b92');olympe.sc.Mh.O=olympe.sc.Mh.U.Sb('017b3aa8fe7ec3fd52f2');olympe.sc.Map=class extends olympe.dc.CloudObject{};olympe.sc.Map.U=olympe.dc.Ra.C('01631aacd5c1f9d61c5d',olympe.sc.Map);olympe.sc.Ae=class extends olympe.sc.Map{};olympe.sc.Ae.U=olympe.dc.Ra.C('01631aacd8276ea98490',olympe.sc.Ae);olympe.sc.Fn=class extends olympe.dm.File{O(){const a=olympe.j.qb(olympe.j.lb);this.Er(b=>{a.update(olympe.j.jc(b))});return a.Ba()}};olympe.sc.Fn.U=Cf('01644b6297305d62fca2',olympe.sc.Fn);olympe.sc.Fn.U.C=olympe.dm.File.C.bind(null,olympe.sc.Fn);olympe.sc.Fn.prototype.O.K=olympe.j.J.R;olympe.sc.Ig=class extends olympe.dm.File{Bi(){return this.je(olympe.sc.Ig.O)}ll(){return this.je(olympe.sc.Ig.T)}Ci(){return this.ai(olympe.sc.Ig.V)}};olympe.sc.Ig.U=Cf('01647e113043c637b541',olympe.sc.Ig);olympe.sc.Ig.O=olympe.sc.Ig.U.ea('01647e35ecd24ef0b88d');olympe.sc.Ig.T=olympe.sc.Ig.U.ea('01647e677f5d1cfbdf42');olympe.sc.Ig.V=olympe.sc.Ig.U.ea('01647e6780999bf8bd25');olympe.sc.Ig.U.C=(a,b,c,d)=>{c=olympe.dm.File.C(olympe.sc.Ig,a,b,c,d);a.update(c,olympe.sc.Ig.O,b.split('.')[0]);return c};
|
|
1557
1557
|
olympe.sc.Ig.prototype.Bi.K=olympe.j.J.R;olympe.sc.Ig.prototype.ll.K=olympe.j.J.R;olympe.sc.Ig.prototype.Ci.K=olympe.j.J.F;olympe.sc.mt=class extends olympe.dm.File{};olympe.sc.mt.U=Cf('0164643c432146a71d5c',olympe.sc.mt);olympe.sc.mt.U.C=olympe.dm.File.C.bind(null,olympe.sc.mt);olympe.sc.XK=class extends olympe.dc.CloudObject{};olympe.sc.XK.U=olympe.dc.Ra.C('016421bb3797e22d1c4e',olympe.sc.XK);olympe.sc.logic={};olympe.sc.logic.RF=(a,b)=>a===b?0:a>b?1:-1;
|
|
1558
1558
|
olympe.sc.logic.qZ=(a,b,c,d,e,f,g)=>{const k=b.ca();b=olympe.j.Ua(b.C().ca());let l,m;if(b===olympe.dc.Gb(olympe.dm.String))l=c.valueOf().toLowerCase(),m=p=>p.je(k).toLowerCase();else if(b===olympe.dc.Gb(olympe.dm.Number))l=c.valueOf(),m=p=>p.ai(k);else if(b===olympe.dc.Gb(olympe.dm.DateTime))l=c.getTime(),m=p=>olympe.j.fb([p.pw(k)],r=>r.getTime(),Number,'FilterList Date&DateTime TransformFlows');else{c=olympe.dc.fc().name(b);g.warn(`Properties of type ${c} are not supported. List will not be filtered.`);e(a);
|
|
1559
1559
|
return}let n;if('<'===f)n=(p,r)=>olympe.sc.logic.RF(r,p);else if('>'===f)n=(p,r)=>olympe.sc.logic.RF(p,r);else{g.error(`Unknown inequality ${f}. Please use '<' or '>'`);return}e(a.Yh().filter(p=>olympe.j.fb([m(p)],r=>{r=n(r.valueOf(),l);return olympe.j.Mc(d.valueOf()?1===r:0<=r)},olympe.j.ja,'FilterList ListDefBuilder Filter TransformFlows')).Td())};
|
|
1560
1560
|
olympe.sc.logic.k0=(a,b)=>{if(a instanceof olympe.j.aa)return a;if(a instanceof olympe.j.lb)return a.wO();if(a instanceof olympe.j.ja)return a.wM();if('string'===typeof a||'number'===typeof a)return olympe.j.Ca(Number(a));b.error(`Could not parse provided value ${a} into a number`);return olympe.j.aa.JI};olympe.sc.logic.ub={};function am(a){Hf(a.U,(b,c)=>{b=b.create(a.U.F);b.setProperty(olympe.dc.CloudObject.nameProp,c);return b.ca()})}olympe.sc.logic.ub.GF=class{constructor(a,b,c){this.U=olympe.dc.Ra.C(a,b,...c);am(this)}ca(){return this.U.ca()}getInputs(){return Pl(olympe.dc.CloudObject.get(this.U))}getOutputs(){return Ql(olympe.dc.CloudObject.get(this.U))}};olympe.sc.logic.ub.GF.ua=[olympe.dc.ek];const bm=Object.create(null),cm=new Map;function dm(a){if(void 0===bm[a])throw Error(`Tag: ${a} - does not correspond to a registered function`);return Ef(a)}function em(a,b,c=olympe.sc.logic.Function){if(cm.has(a))throw c=dm(a),Error(`Tag: ${a} - overwriting existing function definition "${c.name}" with "${b.name}"`);const d=olympe.dc.Ra.C(a,b,...[]);cm.set(a,{U:d,u0:b,h0:c});return d}
|
|
1561
|
-
olympe.sc.logic.Ra=class{constructor(){}static C(a,b,...c){if(bm[a])throw c=dm(a),Error(`Tag: ${a} - overwriting already defined function "${c.name}" with "${b.name}"`);b=new olympe.sc.logic.ub.GF(a,b,[olympe.sc.da.Ob].concat(c));return bm[a]=b}};olympe.sc.logic.UE=class a{static C(b){var c=olympe.sc.ui.Sd.O;let d=!1;const e=olympe.dc.Gb(c),f=olympe.dc.fc();f.wc(b,olympe.sc.mg.O.
|
|
1562
|
-
olympe.sc.logic.Xx=class extends olympe.sc.logic.Nx{static create(a,b){return new olympe.sc.logic.Error(b,a)}};olympe.sc.logic.Xx.U=olympe.dc.Ra.C('016eeb5ede9f3094d8f0',olympe.sc.logic.Xx);olympe.sc.logic.Vh=class extends olympe.dc.CloudObject{C(){return this.bh(olympe.sc.logic.Vh.C,olympe.dc.CloudObject)}};olympe.sc.logic.Vh.U=olympe.dc.Ra.C('016ac4f59ee8ea2081ba',olympe.sc.logic.Vh);olympe.sc.logic.Vh.F=olympe.sc.logic.Vh.U.ea('017bc044aeacce7ffc8f');olympe.sc.logic.Vh.C=olympe.sc.logic.Vh.U.Sb('016ac4f5a0091c4790e2');Z(olympe.dc.CloudObject.U,olympe.sc.logic.Vh.C);olympe.sc.logic.Vh.prototype.C.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.logic.jr=class extends olympe.sc.logic.Vh{};olympe.sc.logic.jr.U=olympe.dc.Ra.C('016ac4f59c592b862457',olympe.sc.logic.jr);olympe.sc.logic.jr.O=olympe.sc.Xh.C.
|
|
1561
|
+
olympe.sc.logic.Ra=class{constructor(){}static C(a,b,...c){if(bm[a])throw c=dm(a),Error(`Tag: ${a} - overwriting already defined function "${c.name}" with "${b.name}"`);b=new olympe.sc.logic.ub.GF(a,b,[olympe.sc.da.Ob].concat(c));return bm[a]=b}};olympe.sc.logic.UE=class a{static C(b){var c=olympe.sc.ui.Sd.O;let d=!1;const e=olympe.dc.Gb(c),f=olympe.dc.fc();f.wc(b,olympe.sc.mg.O.cf()).forEach(g=>{d=d||f.wc(g,olympe.sc.mg.C).includes(e)});!1===d&&(d=null!==a.F(c,b));return d}static F(b,c){const d=olympe.sc.logic.wd.C,e=olympe.sc.logic.wd.Fu,f=olympe.dc.fc();let g=null;f.wc(c,olympe.sc.logic.wd.O.cf()).some(k=>f.we(k,d)===b.ca()?(g=f.we(k,e)||null,!0):!1);return g}};olympe.sc.logic.Nx=class extends olympe.dc.CloudObject{};olympe.sc.logic.Nx.U=olympe.dc.Ra.C('01621fb84e320000cf00',olympe.sc.logic.Nx);olympe.sc.logic.Error=class{constructor(a,b){this.code=a;this.EN=b}static create(a,b){return new olympe.sc.logic.Error(b,a)}dV(){return this.EN}yU(){return this.code}};q('olympe.sc.logic.Error',olympe.sc.logic.Error);olympe.sc.logic.Error.prototype.getCode=olympe.sc.logic.Error.prototype.yU;olympe.sc.logic.Error.prototype.getMessage=olympe.sc.logic.Error.prototype.dV;olympe.sc.logic.Error.create=olympe.sc.logic.Error.create;
|
|
1562
|
+
olympe.sc.logic.Xx=class extends olympe.sc.logic.Nx{static create(a,b){return new olympe.sc.logic.Error(b,a)}};olympe.sc.logic.Xx.U=olympe.dc.Ra.C('016eeb5ede9f3094d8f0',olympe.sc.logic.Xx);olympe.sc.logic.Vh=class extends olympe.dc.CloudObject{C(){return this.bh(olympe.sc.logic.Vh.C,olympe.dc.CloudObject)}};olympe.sc.logic.Vh.U=olympe.dc.Ra.C('016ac4f59ee8ea2081ba',olympe.sc.logic.Vh);olympe.sc.logic.Vh.F=olympe.sc.logic.Vh.U.ea('017bc044aeacce7ffc8f');olympe.sc.logic.Vh.C=olympe.sc.logic.Vh.U.Sb('016ac4f5a0091c4790e2');Z(olympe.dc.CloudObject.U,olympe.sc.logic.Vh.C);olympe.sc.logic.Vh.prototype.C.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.logic.jr=class extends olympe.sc.logic.Vh{};olympe.sc.logic.jr.U=olympe.dc.Ra.C('016ac4f59c592b862457',olympe.sc.logic.jr);olympe.sc.logic.jr.O=olympe.sc.Xh.C.cf();olympe.sc.logic.jr.U.C=(a,b,c,d,e)=>{b=bh(a,b||'New Predefined Input',olympe.sc.logic.jr,olympe.sc.logic.re);b.setProperty(olympe.sc.logic.Vh.F,e);a.Kb(olympe.sc.logic.Vh.C,b,c);a.Kb(olympe.sc.Xh.C,d,b);return b.ca()};olympe.sc.logic.Dp=class extends olympe.sc.logic.Vh{};olympe.sc.logic.Dp.U=olympe.dc.Ra.C('016ac4f59dd99f5df3e1',olympe.sc.logic.Dp);olympe.sc.logic.Dp.O=Z(olympe.sc.logic.Dp.U,olympe.sc.Xh.F);olympe.sc.logic.Dp.U.C=(a,b,c,d,e)=>{b=bh(a,b||'New Predefined Output',olympe.sc.logic.Dp,olympe.sc.logic.Le);b.setProperty(olympe.sc.logic.Vh.F,e);a.Kb(olympe.sc.logic.Vh.C,b,c);a.Kb(olympe.sc.Xh.F,d,b);return b.ca()};olympe.sc.logic.Jk=class extends olympe.sc.Vc{R(){return olympe.sc.Qj.hm.FJ}T(){return this.gw().Yh().di([olympe.sc.logic.Function]).and().Rf().di([olympe.sc.logic.Lh,olympe.sc.logic.Nh]).Td()}SU(){return this.getInputs().Yh().vw([olympe.dc.CloudObject.modelRel,olympe.sc.logic.jr.O]).Td()}TU(){return this.getOutputs().Yh().vw([olympe.dc.CloudObject.modelRel,olympe.sc.logic.Dp.O]).Td()}jo(a){const b=this.db.iz(this,[olympe.sc.Vc.F],c=>this.db.model(c)===olympe.dc.Gb(a));return b?olympe.dc.CloudObject.get(b):
|
|
1563
1563
|
null}Fr(a){const b=this.db.iz(this,[olympe.sc.Vc.O],c=>this.db.model(c)===olympe.dc.Gb(a));return b?olympe.dc.CloudObject.get(b):null}FV(){return this.getInputs().Yh().vw([olympe.dc.CloudObject.modelRel],olympe.sc.logic.re).Td()}GV(){return this.getOutputs().Yh().vw([olympe.dc.CloudObject.modelRel],olympe.sc.logic.Le).Td()}};em('01621fb84e320000f000',olympe.sc.logic.Jk,olympe.sc.logic.Function);h=olympe.sc.logic.Jk.prototype;h.SU.K=new olympe.j.J(()=>olympe.dc.Bb,[]);
|
|
1564
1564
|
h.TU.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.jo.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);h.Fr.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);h.FV.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.GV.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.sc.logic.Vo=class extends olympe.sc.logic.Jk{C(){return this.jo('016ac63229782039429f')}O(){return this.Fr('016ac6322acf67eebfe7')}V(){return this.getOutputs().Yh().fe(olympe.sc.logic.Xf.typeRel).Gz(olympe.sc.logic.Xx).Td().ed().Oj(olympe.j.aa.ZERO)}};olympe.sc.logic.Vo.C='016ac63229782039429f';olympe.sc.logic.Vo.$='016ac6322acf67eebfe7';olympe.sc.logic.Vo.U=em('01621fb84e320000a000',olympe.sc.logic.Vo,olympe.sc.logic.Action);
|
|
1565
|
-
olympe.sc.logic.Vo.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);olympe.sc.logic.Vo.prototype.O.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);olympe.sc.logic.Vo.prototype.V.K=olympe.j.J.T;olympe.sc.logic.QE=class extends olympe.sc.logic.Jk{};olympe.sc.logic.QE.U=em('01621fb84e320000f011',olympe.sc.logic.QE);olympe.sc.logic.PE=class extends olympe.sc.logic.Vo{};olympe.sc.logic.PE.U=em('01621fb84e320000f012',olympe.sc.logic.PE);function fm(a,b,c){a.update=(d,e,f)=>{e.forEach((g,k)=>{e[k]=olympe.dc.oa.
|
|
1565
|
+
olympe.sc.logic.Vo.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);olympe.sc.logic.Vo.prototype.O.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);olympe.sc.logic.Vo.prototype.V.K=olympe.j.J.T;olympe.sc.logic.QE=class extends olympe.sc.logic.Jk{};olympe.sc.logic.QE.U=em('01621fb84e320000f011',olympe.sc.logic.QE);olympe.sc.logic.PE=class extends olympe.sc.logic.Vo{};olympe.sc.logic.PE.U=em('01621fb84e320000f012',olympe.sc.logic.PE);function fm(a,b,c){a.update=(d,e,f)=>{e.forEach((g,k)=>{e[k]=olympe.dc.oa.Ye.IT(g)});c(...e,...f)};Sl(a,b);a.ka(b)}
|
|
1566
1566
|
olympe.sc.logic.Function=class extends olympe.sc.Runnable{V(){return[this.Ea]}ta(){const a=olympe.sc.hc.qf.WP,b=olympe.sc.hc.qf.SR,c=this.db,d=new Map;this.getInputs().forEach(e=>{d.set(a+c.name(e),e)});this.getOutputs().forEach(e=>{d.set(b+c.name(e),e)});return d}Ka(a){return this.getOutputs().map(b=>this.db.Mz(b,olympe.sc.logic.Xf.typeRel,olympe.sc.logic.Nx)?a.jn.bind(a,b):a.set.bind(a,b))}setupExecution(a){const b=this.getInputs();return 0<b.length?rxjs.combineLatest(b.map(c=>a.observe(c))).pipe(rxjs.operators.map(c=>
|
|
1567
1567
|
c.includes(null)?null:c)):rxjs.of([])}};olympe.sc.logic.Function.U=olympe.dc.Ra.C('0168c6f020f2a96f0000',olympe.sc.logic.Function,olympe.sc.da.Ob);olympe.sc.logic.Xf=class extends olympe.dc.CloudObject{C(){return this.bh(olympe.sc.logic.Xf.typeRel,olympe.dc.CloudObject)}F(){return this.ai(olympe.sc.logic.Xf.C)}};olympe.sc.logic.Xf.U=olympe.dc.Ra.C('0168a431d25001540000',olympe.sc.logic.Xf);olympe.sc.logic.Xf.C=olympe.sc.logic.Xf.U.ea('01740c5d4ae4b520dd01');olympe.sc.logic.Xf.typeRel=olympe.sc.logic.Xf.U.Sb('0168a431d3b9b7438424');Z(olympe.dc.CloudObject.U,olympe.sc.logic.Xf.typeRel);
|
|
1568
1568
|
olympe.sc.logic.Xf.prototype.C.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.logic.Xf.prototype.F.K=olympe.j.J.F;olympe.sc.logic.re=class extends olympe.sc.logic.Xf{};olympe.sc.logic.re.U=olympe.dc.Ra.C('0168a431d25001540001',olympe.sc.logic.re);olympe.sc.logic.re.$=olympe.sc.logic.Xf.U.ea('01740c5d4ae4b520dd02');olympe.sc.logic.re.V=Z(olympe.sc.logic.re.U,olympe.sc.Vc.F);olympe.sc.logic.re.F=olympe.sc.logic.re.U.Sb('0168a431d91f2578000b',olympe.dc.Nb.ORIGIN);olympe.sc.logic.re.O=olympe.sc.logic.re.U.Sb('01621fb84e32000000a1',olympe.dc.Nb.ORIGIN);
|
|
@@ -1572,21 +1572,21 @@ olympe.sc.logic.Lh.C=Z(olympe.sc.logic.Lh.U,olympe.sc.logic.Le.T);olympe.sc.logi
|
|
|
1572
1572
|
olympe.sc.logic.Nh.F=Z(olympe.sc.logic.Nh.U,olympe.sc.logic.Le.O);olympe.sc.logic.Nh.U.C=function(a,b,c){b=a.create(olympe.sc.logic.Nh);a.Kb(olympe.sc.logic.Nh.C,b,c);a.Kb(olympe.dc.CloudObject.containsRel,b,c);return b.ca()};olympe.sc.logic.Nh.prototype.F.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);olympe.sc.logic.Nh.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);function Wl(a,b,c){const d=a.db.we(a,olympe.sc.logic.wd.T)||a.db.we(a,olympe.sc.logic.wd.nA),e=a.db.we(a,olympe.sc.logic.wd.Fu),f=a.db.yw((()=>{let l=null,m=a.db.we(a,olympe.sc.logic.wd.C);m?l=a.db.we(m,olympe.dm.Property.typeRel):(m=a.db.we(a,olympe.sc.logic.wd.F))&&(l=a.db.we(m,olympe.sc.logic.Xf.typeRel));return l||olympe.dc.CloudObject.U.ca()})(),olympe.dm.On)?new olympe.j.Od('Pipe Context'):null,g=a.F.bind(a,b,c,f);if(null!==d&&null!==e){let l;const m=b.Ew(e,n=>{l&&l();l=n.on(d,g,e)});return()=>
|
|
1573
1573
|
{g(null);m();l&&l()}}const k=Ag(a.db,a,olympe.sc.logic.wd.valueProp,g);return()=>{g(null);a.db.O(a,olympe.sc.logic.wd.valueProp,k)}}
|
|
1574
1574
|
olympe.sc.logic.wd=class extends olympe.dc.CloudObject{constructor(a,b,c){super(a,b);this.Y=c;this.C=`detachObject${this.tag}`}F(a,b,c,d){null!==c&&c.Zk();const e=a.get(this.C);e&&(e(),a.remove(this.C));const f=olympe.sc.Pp(d);if(f instanceof olympe.dc.CloudObject){if(d=f.ca(),this.ut(a,d,[d]),null!==c&&'function'===typeof f.getValue){c.run(()=>{olympe.j.ab([f.getValue()],g=>{b(g.valueOf())})});return}}else f instanceof olympe.dc.Ac&&this.ut(a,`qr-${f.hash}`,xh(f));b(f)}ut(a,b,c){const d=a.getParent();
|
|
1575
|
-
d.ut(b,c);a.set(this.C,()=>Gl(d,b))}getValue(a){return this.po(olympe.sc.logic.wd.valueProp,a||olympe.dc.oa.
|
|
1575
|
+
d.ut(b,c);a.set(this.C,()=>Gl(d,b))}getValue(a){return this.po(olympe.sc.logic.wd.valueProp,a||olympe.dc.oa.Ye.Pp,Object)}ZQ(){const a=this.transform(olympe.sc.logic.wd.F,olympe.sc.logic.Xf.typeRel);a.oi(olympe.dc.CloudObject);return a.Pd()}DV(){return this.bh(olympe.sc.logic.wd.Fu,olympe.dc.CloudObject)}BV(){return this.bh(olympe.sc.logic.wd.T,olympe.sc.logic.Le)}CV(){return this.bh(olympe.sc.logic.wd.nA,olympe.dm.Property)}HU(){return this.bh(olympe.sc.logic.wd.O,olympe.dc.CloudObject)}FU(){return this.bh(olympe.sc.logic.wd.F,
|
|
1576
1576
|
olympe.sc.logic.re)}GU(){return this.bh(olympe.sc.logic.wd.C,olympe.dm.Property)}};olympe.sc.logic.wd.U=olympe.dc.Ra.C('0168a431d91f25780000',olympe.sc.logic.wd,olympe.sc.da.Ob);olympe.sc.logic.wd.valueProp=olympe.sc.logic.wd.U.ea('0168a431d91f25780001');olympe.sc.logic.wd.Fu=olympe.sc.logic.wd.U.Sb('0168a431d91f25780002');olympe.sc.logic.wd.T=Z(olympe.sc.logic.wd.U,olympe.sc.logic.Le.F);olympe.sc.logic.wd.nA=olympe.sc.logic.wd.U.Sb('0168a431d91f25780004');olympe.sc.logic.wd.O=olympe.sc.logic.wd.U.Sb('0168a431d91f2578000a');
|
|
1577
1577
|
olympe.sc.logic.wd.F=Z(olympe.sc.logic.wd.U,olympe.sc.logic.re.F);olympe.sc.logic.wd.C=olympe.sc.logic.wd.U.Sb('0168a431d91f2578000c');Z(olympe.dc.CloudObject.U,olympe.sc.logic.wd.Fu);Z(olympe.dm.Property.U,olympe.sc.logic.wd.nA);Z(olympe.dc.CloudObject.U,olympe.sc.logic.wd.O);Z(olympe.dm.Property.U,olympe.sc.logic.wd.C);h=olympe.sc.logic.wd.prototype;h.ZQ.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.DV.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);
|
|
1578
|
-
h.BV.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);h.CV.K=new olympe.j.J(()=>olympe.dm.Property,[]);h.HU.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.FU.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);h.GU.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.logic.$o=class extends olympe.sc.logic.Function{};olympe.sc.logic.$o.U=olympe.dc.Ra.C('017dc8c114aa61a0e27f',olympe.sc.logic.$o);olympe.sc.logic.$o.F=olympe.sc.logic.$o.U.Sb('017dc8d6d8ef9135f08a');olympe.sc.logic.$o.C=olympe.sc.logic.$o.U.Sb('017dc8d6d8ef9135f08b');Z(olympe.dm.ne.U,olympe.sc.logic.$o.C);function gm(a,b){const c=a.Ag(),d=c.oB().ca(),e=c.pB().ca(),f=c.AC().ca();b.on(d,g=>{g&&(g=new Map(a.getInputs().map(k=>[k,b.get(k)])),g=olympe.sc.logic.Fy.Ya(g),olympe.W.Pb.Ld.te.get(a.
|
|
1579
|
-
function im(a,b,c,d,e,f){const g=n=>{if(null!==n){e.cancel();l&&l();m&&m();try{const p=new Map(a.getOutputs().map(t=>[t,b.get(t)])),r=olympe.sc.logic.Fy.Ya(p);f.cs(r).finally(()=>b.destroy())}catch(p){n=Error(`Error while serializing the response from remote action ${a.
|
|
1580
|
-
olympe.sc.logic.ft=class extends olympe.sc.logic.Function{constructor(a,b,c,d,e){super(a,b,c);this.F=d;this.timeout=e}run(a){a.qo()||(this.db.nd(this,olympe.sc.logic.ft.C)?this.La(a):(Sl(this,a),gm(this,a)))}La(a){const b=this.
|
|
1581
|
-
l.destroy()},this.timeout);im(this,l,f,g,n,k);super.run(l);for(const [p,r]of m)p!==e&&l.set(p,r);k.Ax().then(p=>{var r=l.get(d);null!==r&&olympe.dc.Gb(r)!==p&&(r=this.
|
|
1582
|
-
Jf(this.F,a.vf(),b,[],c)}};olympe.sc.logic.ft.U=olympe.dc.Ra.C('017a7b0c5dcbd8964c5d',olympe.sc.logic.ft,olympe.sc.da.Ob,olympe.dc.db.da.sb,new olympe.ma.Ta(olympe.sc.za.sJ));olympe.sc.logic.ft.C=olympe.sc.logic.ft.U.ea('017a7b0c62a02a89444f');function hm(a,b){var c=(new olympe.dc.oa.CB(olympe.dc
|
|
1578
|
+
h.BV.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);h.CV.K=new olympe.j.J(()=>olympe.dm.Property,[]);h.HU.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);h.FU.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);h.GU.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.logic.$o=class extends olympe.sc.logic.Function{};olympe.sc.logic.$o.U=olympe.dc.Ra.C('017dc8c114aa61a0e27f',olympe.sc.logic.$o);olympe.sc.logic.$o.F=olympe.sc.logic.$o.U.Sb('017dc8d6d8ef9135f08a');olympe.sc.logic.$o.C=olympe.sc.logic.$o.U.Sb('017dc8d6d8ef9135f08b');Z(olympe.dm.ne.U,olympe.sc.logic.$o.C);function gm(a,b){const c=a.Ag(),d=c.oB().ca(),e=c.pB().ca(),f=c.AC().ca();b.on(d,g=>{g&&(g=new Map(a.getInputs().map(k=>[k,b.get(k)])),g=olympe.sc.logic.Fy.Ya(g),olympe.W.Pb.Ld.te.get(a.Ze(),g).then(k=>{k=hm(k,a.C.bind(a,b));for(const [l,m]of k)l!==e&&l!==f&&b.set(l,m);b.set(e,k.get(e));b.set(f,k.get(f))}).catch(k=>{b.set(f,olympe.sc.logic.Xx.create(k.toString(),1))}))},b.xa())}
|
|
1579
|
+
function im(a,b,c,d,e,f){const g=n=>{if(null!==n){e.cancel();l&&l();m&&m();try{const p=new Map(a.getOutputs().map(t=>[t,b.get(t)])),r=olympe.sc.logic.Fy.Ya(p);f.cs(r).finally(()=>b.destroy())}catch(p){n=Error(`Error while serializing the response from remote action ${a.Ze()}: ${p.message}`),f.tC(n).finally(()=>b.destroy())}}},k=b.xa(),l=b.on(c,g,k),m=b.on(d,g,k)}
|
|
1580
|
+
olympe.sc.logic.ft=class extends olympe.sc.logic.Function{constructor(a,b,c,d,e){super(a,b,c);this.F=d;this.timeout=e}run(a){a.qo()||(this.db.nd(this,olympe.sc.logic.ft.C)?this.La(a):(Sl(this,a),gm(this,a)))}La(a){const b=this.Ze(),c=this.Ag(),d=c.uN().ca(),e=c.oB().ca(),f=c.pB().ca(),g=c.AC().ca();(new olympe.W.Pb.Ld.te(b,a)).ZC().subscribe(rxjs.Subscriber.create(k=>{const l=a.ao('remote call'),m=hm(k.body(),this.C.bind(this,l)),n=tc(()=>{k.tC(Error(`Timeout reached on remote action ${this.db.name(this)} (${this.tag})`));
|
|
1581
|
+
l.destroy()},this.timeout);im(this,l,f,g,n,k);super.run(l);for(const [p,r]of m)p!==e&&l.set(p,r);k.Ax().then(p=>{var r=l.get(d);null!==r&&olympe.dc.Gb(r)!==p&&(r=this.Ze(),this.Y.warn(`Remote action ${this.db.name(r)} ${r}: try to run it with an input user that is not the real authenticated user.`));l.set(d,p);l.set(e,m.get(e))})},k=>{const l=this.Ze();this.Y.error(`Error while listening on remote action ${this.db.name(l)} (${l}): ${k.message}`)}))}C(a,b){const c=Array.from(b.ej()).map(d=>d.tag());
|
|
1582
|
+
Jf(this.F,a.vf(),b,[],c)}};olympe.sc.logic.ft.U=olympe.dc.Ra.C('017a7b0c5dcbd8964c5d',olympe.sc.logic.ft,olympe.sc.da.Ob,olympe.dc.db.da.sb,new olympe.ma.Ta(olympe.sc.za.sJ));olympe.sc.logic.ft.C=olympe.sc.logic.ft.U.ea('017a7b0c62a02a89444f');function hm(a,b){var c=(new olympe.dc.oa.CB(olympe.dc.Xb.nh)).C(a.p||[]);b&&b(c);c=new Map;for(const [d,e]of Object.entries(a.v||{}))c.set(d,jm(olympe.sc.logic.Fy,e,b));return c}
|
|
1583
1583
|
function jm(a,b,c){if(null===b||void 0===b)return null;switch(b.t){case 1:return new Date(b.d);case 2:return olympe.j.Color.create(b.r,b.g,b.b,b.a);case 3:return olympe.sc.logic.Error.create(b.m,b.c);case 4:return olympe.dc.CloudObject.get(b.v);case 5:return th(b.v);case 6:return Ah(b.v,c);case 7:return new Map(Object.entries(b.m).map(([d,e])=>[d,jm(a,e,c)]));default:return Array.isArray(b)?b.map(d=>jm(a,d,c)):'object'===typeof b?Object.entries(b).reduce((d,[e,f])=>{d[e]=jm(a,f,c);return d},{}):b}}
|
|
1584
1584
|
function km(a,b){var c=a.db;a=a.hg;if(c.ue(b)){a.F(b,c.Ng(b,!0),0);a.Kb(olympe.dc.Wf.Uh,b,c.model(b),0);for(const [d,e,f]of Fg(c,b))(c=a.ko(f))&&c.uk()&&(e===olympe.dc.Nb.DESTINATION?a.Kb(d,b,f,0):a.Kb(d,f,b,0))}else olympe.rb.Eb('Remote Action').error(`Try to serialize an instance ${b} that does not exist in the local datacloud.`)}
|
|
1585
1585
|
olympe.sc.logic.Fy=class{constructor(){this.db=olympe.dc.fc();this.init()}init(){this.hg=new olympe.dc.db.dg;this.values=Object.create(null)}static Ya(a){const b=new olympe.sc.logic.Fy;a.forEach((c,d)=>{null!==c&&void 0!==c&&(b.values[d]=b.C(c))});return b.flush()}flush(){const a=Object.create(null),b=new olympe.dc.transaction.Ui;this.hg.rh(b);a.p=Zg(b);a.v=this.values;this.init();return a}C(a){switch(!0){case a instanceof olympe.j.cc:return{t:1,d:a.valueOf().toISOString()};case a instanceof Date:return{t:1,
|
|
1586
1586
|
d:a.toISOString()};case a instanceof olympe.j.Color:return{t:2,r:a.rk().valueOf(),g:a.qk().valueOf(),b:a.pk().valueOf(),a:a.al().valueOf()};case a instanceof olympe.sc.logic.Error:return{t:3,c:a.code,m:a.EN};case a&&'function'===typeof a.ca:return a=a.ca(),km(this,a),{t:4,v:a};case a instanceof olympe.dc.Id:return{t:5,v:a.Ya()};case a instanceof olympe.dc.Ac:return{t:6,v:a.Ya()};case Array.isArray(a):return a.map(this.C.bind(this));case a instanceof Map:const b=Object.create(null);for(const [c,d]of a)'string'===
|
|
1587
|
-
typeof c&&(b[c]=this.C(d));return{t:7,m:b};case null===a:case void 0===a:return null;case 'object'===typeof a:return Object.entries(a).reduce((c,[d,e])=>{c[d]=this.C(e);return c},{});default:return a}}};olympe.sc.logic.controllers={};olympe.sc.logic.controllers.eB=class{constructor(a){this.db=olympe.dc.fc();this.typeRel=a}};olympe.sc.logic.controllers.eB.C={kY:-1,kZ:1};olympe.sc.logic.controllers.RZ=class extends olympe.sc.logic.controllers.eB{constructor(){super(olympe.sc.logic.Vh.C)}};olympe.sc.logic.controllers.UZ=class extends olympe.sc.logic.controllers.eB{constructor(){super(olympe.sc.logic.Xf.typeRel)}};olympe.sc.logic.jz={};olympe.sc.logic.jz.LS=class extends olympe.sc.logic.Function{update(a,[b,c],[d]){const e=olympe.dc.Gb(b);e?bi(Wh(new olympe.dc.Aj(e),olympe.dc.
|
|
1587
|
+
typeof c&&(b[c]=this.C(d));return{t:7,m:b};case null===a:case void 0===a:return null;case 'object'===typeof a:return Object.entries(a).reduce((c,[d,e])=>{c[d]=this.C(e);return c},{});default:return a}}};olympe.sc.logic.controllers={};olympe.sc.logic.controllers.eB=class{constructor(a){this.db=olympe.dc.fc();this.typeRel=a}};olympe.sc.logic.controllers.eB.C={kY:-1,kZ:1};olympe.sc.logic.controllers.RZ=class extends olympe.sc.logic.controllers.eB{constructor(){super(olympe.sc.logic.Vh.C)}};olympe.sc.logic.controllers.UZ=class extends olympe.sc.logic.controllers.eB{constructor(){super(olympe.sc.logic.Xf.typeRel)}};olympe.sc.logic.jz={};olympe.sc.logic.jz.LS=class extends olympe.sc.logic.Function{update(a,[b,c],[d]){const e=olympe.dc.Gb(b);e?bi(Wh(new olympe.dc.Aj(e),olympe.dc.Ve.ti),c).Wc(()=>{d(olympe.dc.CloudObject.get(e))}):this.Y.warn('Cannot subscribe to an instance with no tag: '+e)}};olympe.sc.logic.Ra.C('0174bf4b7e006e4b788a',olympe.sc.logic.jz.LS);olympe.sc.logic.actions={};olympe.sc.logic.jz.rR=class extends olympe.sc.logic.Function{run(a){Sl(this,a);const [b,c,d]=this.Ka(a);let e,f=null,g=null;const k=a.getParent(),l=()=>{null===g||0===e?(this.Y.warn('No list to iter upon'),this.Y.info(a.xa())):f<e?(b(g.cl(f)),f++,c((new Date).getTime())):(k.oA(),d((new Date).getTime()))};this.getInputs().forEach((m,n)=>a.on(m,p=>{if(p)switch(n){case 0:g=p;break;case 1:e=g.dj();f=0;k.bz();l();break;case 2:l();break;default:this.Y.error('Unhandled input')}},this.tag))}};
|
|
1588
1588
|
olympe.sc.logic.Ra.C('0171889b060b6cd54300',olympe.sc.logic.jz.rR);olympe.sc.logic.uf={};olympe.sc.logic.uf.WE=class extends olympe.sc.logic.Jk{C(){return this.jo('017dc92292107fb98b21')}};em('017dc8d6c8fd8c8bd2f0',olympe.sc.logic.uf.WE);olympe.sc.logic.uf.WE.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);olympe.sc.logic.uf.gB=class extends olympe.sc.logic.Jk{C(){return this.jo('016ac63808535703691c')}};olympe.sc.logic.uf.gB.U=em('0169b6876a03f139d50a',olympe.sc.logic.uf.gB);olympe.sc.logic.uf.gB.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);olympe.sc.logic.uf.AB=class extends olympe.sc.logic.Jk{C(){return this.jo('016ac63809a9a8e6db96')}O(){return this.Fr('016ac6380ab003363b3e')}};em('01646ad602f933b8caaf',olympe.sc.logic.uf.AB);olympe.sc.logic.uf.AB.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);olympe.sc.logic.uf.AB.prototype.O.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);olympe.sc.logic.uf.wy=class extends olympe.sc.logic.Jk{C(){return this.jo('016ac6380bd98f1d91a0')}V(){return this.Fr('016ac63c589ae38ca3ae')}O(){return this.Fr('016ac63c5a377fceabaa')}};em('0168ec42fc01747a98b6',olympe.sc.logic.uf.wy);olympe.sc.logic.uf.wy.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);olympe.sc.logic.uf.wy.prototype.V.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);olympe.sc.logic.uf.wy.prototype.O.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);olympe.sc.logic.uf.lr=class extends olympe.sc.logic.Jk{oB(){return this.jo('017a7b07b09e3b22c8b4')}uN(){return this.jo('017a7b07ba05807a74b0')}pB(){return this.Fr('017a7b0818c12388d731')}AC(){return this.Fr('017a7b085146d5e69aec')}$Q(){return olympe.j.ja.C}};olympe.sc.logic.uf.lr.$='017a7b07b09e3b22c8b4';olympe.sc.logic.uf.lr.Ea='017a7b07ba05807a74b0';olympe.sc.logic.uf.lr.Ka='017a7b0818c12388d731';olympe.sc.logic.uf.lr.C='017a7b085146d5e69aec';
|
|
1589
|
-
olympe.sc.logic.uf.lr.U=em('017a7b07a948e30508fa',olympe.sc.logic.uf.lr,olympe.sc.logic.ft);h=olympe.sc.logic.uf.lr.prototype;h.oB.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);h.uN.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);h.pB.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);h.AC.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);h.$Q.K=olympe.j.J.T;olympe.sc.logic.uf.WJ=class extends olympe.sc.logic.Jk{C(){return this.jo('016ac63c5b3ed0562740')}};em('016a9766c230916ea5ec',olympe.sc.logic.uf.WJ);olympe.sc.logic.uf.WJ.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);olympe.sc.query={};olympe.sc.query.kE=class extends olympe.sc.Ae{};olympe.sc.query.kE.U=olympe.dc.Ra.C('01631aacd8276ea98491',olympe.sc.query.kE);olympe.sc.query.UI=class extends olympe.dm.Enum{};olympe.sc.query.UI.U=olympe.dc.Ra.C('01631aacd8276ea98495',olympe.sc.query.UI);olympe.sc.query.hJ=class extends olympe.dm.Enum{};olympe.sc.query.hJ.U=olympe.dc.Ra.C('01631aacd8276ea98494',olympe.sc.query.hJ);olympe.sc.query.mJ=class extends olympe.sc.Ae{};olympe.sc.query.mJ.U=olympe.dc.Ra.C('01631aacd8276ea98492',olympe.sc.query.mJ);olympe.sc.query.nJ=class extends olympe.dc.CloudObject{};olympe.sc.query.nJ.U=olympe.dc.Ra.C('01631aacd8276ea98493',olympe.sc.query.nJ);olympe.sc.Tb={};olympe.sc.Tb.xj=class extends olympe.sc.Vc{R(){return olympe.sc.Qj.hm.DJ}};olympe.sc.Tb.xj.U=If(olympe.dc.Ra.C('01120300000000adef00',olympe.sc.Tb.xj));olympe.sc.Tb.xj.C=olympe.sc.Tb.xj.U.Sb('0171bc1f15da96dfdb89');Z(olympe.dm.Wh.U,olympe.sc.Tb.xj.C);olympe.sc.Tb.Nu=class extends olympe.sc.Runnable{Qa(){return[this.
|
|
1589
|
+
olympe.sc.logic.uf.lr.U=em('017a7b07a948e30508fa',olympe.sc.logic.uf.lr,olympe.sc.logic.ft);h=olympe.sc.logic.uf.lr.prototype;h.oB.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);h.uN.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);h.pB.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);h.AC.K=new olympe.j.J(()=>olympe.sc.logic.Le,[]);h.$Q.K=olympe.j.J.T;olympe.sc.logic.uf.WJ=class extends olympe.sc.logic.Jk{C(){return this.jo('016ac63c5b3ed0562740')}};em('016a9766c230916ea5ec',olympe.sc.logic.uf.WJ);olympe.sc.logic.uf.WJ.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.re,[]);olympe.sc.query={};olympe.sc.query.kE=class extends olympe.sc.Ae{};olympe.sc.query.kE.U=olympe.dc.Ra.C('01631aacd8276ea98491',olympe.sc.query.kE);olympe.sc.query.UI=class extends olympe.dm.Enum{};olympe.sc.query.UI.U=olympe.dc.Ra.C('01631aacd8276ea98495',olympe.sc.query.UI);olympe.sc.query.hJ=class extends olympe.dm.Enum{};olympe.sc.query.hJ.U=olympe.dc.Ra.C('01631aacd8276ea98494',olympe.sc.query.hJ);olympe.sc.query.mJ=class extends olympe.sc.Ae{};olympe.sc.query.mJ.U=olympe.dc.Ra.C('01631aacd8276ea98492',olympe.sc.query.mJ);olympe.sc.query.nJ=class extends olympe.dc.CloudObject{};olympe.sc.query.nJ.U=olympe.dc.Ra.C('01631aacd8276ea98493',olympe.sc.query.nJ);olympe.sc.Tb={};olympe.sc.Tb.xj=class extends olympe.sc.Vc{R(){return olympe.sc.Qj.hm.DJ}};olympe.sc.Tb.xj.U=If(olympe.dc.Ra.C('01120300000000adef00',olympe.sc.Tb.xj));olympe.sc.Tb.xj.C=olympe.sc.Tb.xj.U.Sb('0171bc1f15da96dfdb89');Z(olympe.dm.Wh.U,olympe.sc.Tb.xj.C);olympe.sc.Tb.Nu=class extends olympe.sc.Runnable{Qa(){return[this.Ze()]}F(){return olympe.dc.Wi.from(this.Ze()).fe(olympe.sc.Tb.xj.C).$k()}};olympe.sc.Tb.Nu.U=If(olympe.dc.Ra.C('0113030000000aca1100',olympe.sc.Tb.Nu));olympe.sc.Tb.Nu.prototype.F.K=new olympe.j.J(()=>olympe.dm.ne,[]);olympe.sc.Tb.Gd=class extends olympe.dc.CloudObject{cR(){return this.zm(olympe.sc.Tb.Gd.F)}lW(){return this.zm(olympe.sc.Tb.Gd.Ha)}bR(){return this.ai(olympe.sc.Tb.Gd.C)}MU(){return this.je(olympe.sc.Tb.Gd.V)}qV(){return this.je(olympe.sc.Tb.Gd.Ea)}pV(){return this.je(olympe.sc.Tb.Gd.Qa)}xC(){this.je(olympe.sc.Tb.Gd.Ka)}cV(){return this.je(olympe.sc.Tb.Gd.$)}qU(){return this.je(olympe.sc.Tb.Gd.O)}nV(){return this.je(olympe.sc.Tb.Gd.ta)}aR(){return this.je(olympe.sc.Tb.Gd.T)}};
|
|
1590
1590
|
olympe.sc.Tb.Gd.U=olympe.dc.Ra.C('011203300000000adef5',olympe.sc.Tb.Gd);olympe.sc.Tb.Gd.F=olympe.sc.Tb.Gd.U.ea('011203300000000adef6');olympe.sc.Tb.Gd.Ha=olympe.sc.Tb.Gd.U.ea('011203300000000adef7');olympe.sc.Tb.Gd.C=olympe.sc.Tb.Gd.U.ea('011203300000000adef8');olympe.sc.Tb.Gd.V=olympe.sc.Tb.Gd.U.ea('011203300000000adef9');olympe.sc.Tb.Gd.Ea=olympe.sc.Tb.Gd.U.ea('011203300000000adefa');olympe.sc.Tb.Gd.Qa=olympe.sc.Tb.Gd.U.ea('011203300000000adefb');olympe.sc.Tb.Gd.O=olympe.sc.Tb.Gd.U.ea('011203300000000adefc');
|
|
1591
1591
|
olympe.sc.Tb.Gd.Ka=olympe.sc.Tb.Gd.U.ea('011203300000000adefd');olympe.sc.Tb.Gd.$=olympe.sc.Tb.Gd.U.ea('011203300000000adefe');olympe.sc.Tb.Gd.ta=olympe.sc.Tb.Gd.U.ea('011203300000000adeff');olympe.sc.Tb.Gd.T=olympe.sc.Tb.Gd.U.ea('011203300000000adee0');olympe.sc.Tb.Gd.La={INIT:0,aY:1,f_:2,b_:3,a_:4,g_:5,bg:9};h=olympe.sc.Tb.Gd.prototype;h.cR.K=olympe.j.J.T;h.lW.K=olympe.j.J.T;h.bR.K=olympe.j.J.F;h.MU.K=olympe.j.J.R;h.qV.K=olympe.j.J.R;h.pV.K=olympe.j.J.R;h.xC.K=olympe.j.J.R;h.cV.K=olympe.j.J.R;
|
|
1592
1592
|
h.qU.K=olympe.j.J.R;h.nV.K=olympe.j.J.R;h.aR.K=olympe.j.J.R;olympe.sc.Tb.aB=class extends olympe.sc.Tb.Nu{Cb(){return!0}};olympe.sc.Tb.aB.U=olympe.dc.Ra.C('0113032000000aca1102',olympe.sc.Tb.aB,olympe.sc.da.Ob);olympe.sc.Tb.cm=class extends olympe.sc.Tb.xj{C(){return(new olympe.dc.hr(this.ca(),olympe.sc.Tb.Gd)).fe(olympe.sc.Tb.cm.$).Td().Pd()}};olympe.sc.Tb.cm.U=olympe.dc.Ra.C('011203300000000adef3',olympe.sc.Tb.cm);olympe.sc.Tb.cm.$=olympe.sc.Tb.cm.U.Sb('011203300000000adef4');Z(olympe.sc.Tb.Gd.U,olympe.sc.Tb.cm.$);
|
|
@@ -1597,20 +1597,20 @@ return this.Rd.getEvent(a)}uW(...a){if('function'!==typeof this.Rd.observeMany)t
|
|
|
1597
1597
|
olympe.sc.cd.prototype.offDestroy=olympe.sc.cd.prototype.sl;olympe.sc.cd.prototype.onDestroy=olympe.sc.cd.prototype.onDestroy;olympe.sc.cd.prototype.offClear=olympe.sc.cd.prototype.Qz;olympe.sc.cd.prototype.onClear=olympe.sc.cd.prototype.Ur;olympe.sc.cd.prototype.getOtherContext=olympe.sc.cd.prototype.Pt;olympe.sc.cd.prototype.onContext=olympe.sc.cd.prototype.Ew;olympe.sc.cd.prototype.createChild=olympe.sc.cd.prototype.ao;olympe.sc.cd.prototype.setParentElement=olympe.sc.cd.prototype.gx;
|
|
1598
1598
|
olympe.sc.cd.prototype.waitFor=olympe.sc.cd.prototype.Bx;olympe.sc.cd.prototype.runner=olympe.sc.cd.prototype.Wz;olympe.sc.cd.prototype.repeat=olympe.sc.cd.prototype.repeat;olympe.sc.cd.prototype.observe=olympe.sc.cd.prototype.observe;olympe.sc.cd.prototype.has=olympe.sc.cd.prototype.has;olympe.sc.cd.prototype.get=olympe.sc.cd.prototype.get;olympe.sc.cd.prototype.remove=olympe.sc.cd.prototype.remove;olympe.sc.cd.prototype.trigger=olympe.sc.cd.prototype.jn;olympe.sc.cd.prototype.set=olympe.sc.cd.prototype.set;
|
|
1599
1599
|
olympe.sc.cd.prototype.getParent=olympe.sc.cd.prototype.getParent;olympe.sc.Sx=class extends olympe.dm.BrickMetadata{R(){return olympe.sc.Qj.hm.IA}};olympe.sc.Sx.U=olympe.dc.Ra.C('01645fe6873aeea59e64',olympe.sc.Sx);olympe.sc.Sx.C=olympe.sc.Sx.U.Sb('017ed8ac775f48d4d589');function Xl(a,b){return`delegated^${olympe.dc.Gb(a)}^${olympe.dc.Gb(b)}`}olympe.sc.mg=class extends olympe.sc.Runnable{Ib(){return this.wc(olympe.sc.mg.O,olympe.sc.Runnable)}La(){return this.wc(olympe.sc.mg.C,olympe.dm.Property)}};olympe.sc.mg.U=If(olympe.dc.Ra.C('016c2d996d9ca27fa9d8',olympe.sc.mg));olympe.sc.mg.O=olympe.sc.mg.U.Sb('016c3cb7742ec9309e0b');olympe.sc.mg.C=olympe.sc.mg.U.Sb('016c42d3454636f90533');olympe.sc.mg.prototype.Ib.K=new olympe.j.J(()=>olympe.dc.Bb,[]);
|
|
1600
|
-
olympe.sc.mg.prototype.La.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.sc.tF=class extends olympe.dm.
|
|
1601
|
-
(b=olympe.dc.fc(),b=null!==Zl?b.nw(Zl,[olympe.sc.Tb.xj.C,olympe.sc.Mh.F.
|
|
1600
|
+
olympe.sc.mg.prototype.La.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.sc.tF=class extends olympe.dm.Ue{R(){return olympe.sc.Qj.hm.IA}};olympe.sc.tF.U=olympe.dc.Ra.C('017a7a9ff057958e5678',olympe.sc.tF);olympe.sc.GI=class extends olympe.dm.Ue{R(){return olympe.sc.Qj.hm.SB}};olympe.sc.GI.U=olympe.dc.Ra.C('01644b6d4543b344b857',olympe.sc.GI);olympe.sc.HI=class extends olympe.dc.CloudObject{};olympe.sc.HI.U=olympe.dc.Ra.C('0162f672366be5ca7a86',olympe.sc.HI);function lm(a,b,c,d){const e=Xl(a,c);olympe.j.ab([d],f=>{b.set(e,f)});olympe.j.ib().Vd(()=>{b.remove(e)})}olympe.sc.qr=class extends olympe.sc.mg{};olympe.sc.qr.U=olympe.dc.Ra.C('016d3f37610ae4fc3962',olympe.sc.qr);olympe.sc.Text=class extends olympe.dm.String{};olympe.sc.Text.U=olympe.dc.Ra.C('016cfca73e63f9ab5ba4',olympe.sc.Text);olympe.sc.Qc=class{constructor(a=!0){this.C=(new olympe.dc.Qc).persist(a);this.F=new Map;this.source=olympe.dc.Xb.Te}static from(a){const b=olympe.sc.hc.Oh.TRANSACTION;return a.has(b,!0)?a.get(b,!0):new olympe.sc.Qc}static process(a,b){return a.has(olympe.sc.hc.Oh.TRANSACTION,!0)?Promise.resolve(!1):b.Wc().then(()=>!0)}xa(){return this.C.xa()}create(a,b=new Map,c=this.source,d){d=this.C.create(a,d).ge(c);this.F.set(d.ca(),olympe.dc.Gb(a));for(const [e,f]of b)d.setProperty(e,f);c===olympe.dc.Xb.nh&&
|
|
1601
|
+
(b=olympe.dc.fc(),b=null!==Zl?b.nw(Zl,[olympe.sc.Tb.xj.C,olympe.sc.Mh.F.cf()])[0]||null:null,null!==b?this.Kb(olympe.sc.Mh.O,b,d):olympe.rb.Eb('sc').warn('No business container for new instance of',olympe.dc.Gb(a)));return d.ca()}update(a,b,c){this.C.update(a,b,c);return this}iW(a,b){a=this.C.update(a);for(const [c,d]of b)a.setProperty(c,d);return this}delete(a){this.C.delete(a);return this}Kb(a,b,c){this.C.Kb(a,b,c);return this}Pf(a,b,c){this.C.Pf(a,b,c);return this}pC(a,b){this.C.pC(a,b);return this}persist(a=
|
|
1602
1602
|
!0){this.C.persist(a);return this}Wr(a,b=!0){this.C.Wr(a,b);return this}ge(a){this.source=a;return this}model(a){return this.F.get(olympe.dc.Gb(a))||olympe.dc.fc().model(a)}Oz(a){ah(this.C,a.C);return this}cC(a){this.C.cC(a);return this}Wc(){return new Promise((a,b)=>{this.C.Wc((c,d)=>{c?a():b(d)})})}sC(){return new Promise((a,b)=>{this.C.sC((c,d)=>{c?a():b(d)})})}};olympe.sc.Qc.prototype.executeAsLarge=olympe.sc.Qc.prototype.sC;olympe.sc.Qc.prototype.execute=olympe.sc.Qc.prototype.Wc;
|
|
1603
1603
|
olympe.sc.Qc.prototype.afterExecution=olympe.sc.Qc.prototype.cC;olympe.sc.Qc.prototype.merge=olympe.sc.Qc.prototype.Oz;olympe.sc.Qc.prototype.model=olympe.sc.Qc.prototype.model;olympe.sc.Qc.prototype.setSource=olympe.sc.Qc.prototype.ge;olympe.sc.Qc.prototype.persistInstance=olympe.sc.Qc.prototype.Wr;olympe.sc.Qc.prototype.persist=olympe.sc.Qc.prototype.persist;olympe.sc.Qc.prototype.deleteAllRelations=olympe.sc.Qc.prototype.pC;olympe.sc.Qc.prototype.deleteRelation=olympe.sc.Qc.prototype.Pf;
|
|
1604
1604
|
olympe.sc.Qc.prototype.createRelation=olympe.sc.Qc.prototype.Kb;olympe.sc.Qc.prototype['delete']=olympe.sc.Qc.prototype.delete;olympe.sc.Qc.prototype.multiUpdate=olympe.sc.Qc.prototype.iW;olympe.sc.Qc.prototype.update=olympe.sc.Qc.prototype.update;olympe.sc.Qc.prototype.create=olympe.sc.Qc.prototype.create;olympe.sc.Qc.prototype.getId=olympe.sc.Qc.prototype.xa;olympe.sc.Qc.process=olympe.sc.Qc.process;olympe.sc.Qc.from=olympe.sc.Qc.from;olympe.sc.Qj.BrickMetadata=olympe.dm.BrickMetadata;olympe.sc.Qj.zj=olympe.dm.zj;olympe.sc.dn={};function mm(a){a.Y.info('Starting application '+a.C);let b=!1;const c=olympe.dc.fc();if(0<a.C.length){const d=qf(c,a.C,(e,f)=>{if(e){const g=Rl(f);g.run?(a.Y.debug('application retrieved: running'),(new olympe.j.Od('Application execution context',a.O.vf())).run(()=>{b=!0;g.run(a.O.nl(g.ca()))}),a.R()):a.Y.error('application retrieved: not an Application with a run() method')}else nm(a)});olympe.j.ib().onDestroy(()=>{rf(c,a.C,d)});tc(()=>{b||a.Y.warn(`requested application ${a.C} may not be available (it may not exist or the logged user may not have the correct permissions)`)},
|
|
1605
1605
|
1E4)}}
|
|
1606
|
-
function om(a,b){if(a.Qa)a.Y.debug('Sending getContext request'),Oi(a.Ka,d=>{d?a.Y.error('failed to synchronise (authenticated) with server: '+d.message):(a.Y.debug('synchronisation request successful'),Zl=a.C,b())});else{var c=olympe.dc.Ph.SUBSCRIBE;const d=olympe.dc.Ph.ct,e=a.O.Wt()?d:c;a.Y.debug((a.O.Wt()?'PULLING':'SUBSCRIBING')+' application '+a.C);const f=olympe.j.ib();c=new olympe.async.Jy(f);c.add((g,k)=>{Wh(new olympe.dc.Aj(a.C,e),olympe.dc.
|
|
1607
|
-
n.ca()||olympe.dc
|
|
1606
|
+
function om(a,b){if(a.Qa)a.Y.debug('Sending getContext request'),Oi(a.Ka,d=>{d?a.Y.error('failed to synchronise (authenticated) with server: '+d.message):(a.Y.debug('synchronisation request successful'),Zl=a.C,b())});else{var c=olympe.dc.Ph.SUBSCRIBE;const d=olympe.dc.Ph.ct,e=a.O.Wt()?d:c;a.Y.debug((a.O.Wt()?'PULLING':'SUBSCRIBING')+' application '+a.C);const f=olympe.j.ib();c=new olympe.async.Jy(f);c.add((g,k)=>{Wh(new olympe.dc.Aj(a.C,e),olympe.dc.Ve.ti).Wc(l=>{var m=olympe.dc.Xb;var n=(n=olympe.dc.Wi.from(a.C).fe(olympe.sc.Tb.xj.C).fe(olympe.sc.logic.$o.C.cf()).$k())&&
|
|
1607
|
+
n.ca()||olympe.dc.Xb.nh;m.Te=n;l?k(l.message):g()})});c.add(g=>{olympe.j.ab([a.F.fq()],k=>{(new olympe.dc.Bb(k)).Mm(f.md(g))})});c.add((g,k)=>{const l=olympe.sc.Mh.C.qI,m=olympe.sc.Mh.C.vB;$l(a.C,n=>{switch(n){case l:case m:g();break;default:k('Error while loading the business container')}})});Kc(c,(g,k)=>{if(k)throw Error(k);b()});c.start()}}function nm(a){a.Y.debug('Stop the application');a.R();a.O.vf().Zk()}
|
|
1608
1608
|
olympe.sc.dn.nr=class{constructor(a,b,c,d,e,f,g){this.F=a;this.Ka=b;this.Y=c;this.O=d;this.C=e;this.Qa=f;this.$=g||!1}run(){const a=olympe.Aa.kb.C.Uo,b=olympe.Aa.kb.C.ep,c=olympe.Aa.kb.C.Xq,d=olympe.Aa.kb.C.ys;this.Y.debug('runtime starting for app #'+this.C);let e=!1;const f=()=>{e||(mm(this),e=!0)};olympe.j.ab([this.F.getState()],g=>{switch(g){case a:case c:this.Y.debug('Server session opened, calling once connected callback');e||this.T();om(this,f);break;case b:this.Y.debug('Disconnected, working offline.');
|
|
1609
1609
|
this.$&&!e&&om(this,f);break;case d:this.Y.debug('waiting for authentication');break;default:this.Y.debug('No server session available, waiting for connection'),e=!1,nm(this)}},'Runtime initial auth state listener')}T(){}R(){}};olympe.sc.dn.nr.C='app_instance';olympe.sc.dn.nr.ua=[olympe.zf.jE];olympe.sc.dn.xn={ti:'sc.runtime.Main'};
|
|
1610
1610
|
olympe.ma.Be(function(a){A(a,olympe.Aa.da.Dx,[new olympe.ma.Ta(olympe.zf.za.Ml),new olympe.ma.Ta(olympe.sc.za.Ml),new olympe.ma.Ta(olympe.zf.za.SA)],(b,c,d)=>new olympe.Aa.vA(d?'':b+(c?'-'+c:'')));z(a,olympe.sc.dn.xn.ti,olympe.sc.dn.nr,olympe.Aa.da.sb,olympe.dc.query.da.sb,olympe.sc.da.Ob,olympe.sc.da.Ey,new olympe.ma.Ta(olympe.sc.za.Ml),new olympe.ma.Ta(olympe.dc.za.Hp),new olympe.ma.Ta(olympe.sc.za.xB));olympe.zf.Dq(a,olympe.sc.dn.xn.ti,'sc.runtime');olympe.zf.Dq(a,olympe.sc.dn.xn.ti,'sc.headless');
|
|
1611
|
-
olympe.zf.Dq(a,olympe.sc.dn.xn.ti)},'olympe.sc.runtime');olympe.sc.ui={};olympe.sc.ui.C0=function(a){return a instanceof olympe.sc.ui.Zd};function pm(a){const b=olympe.dc.fc(),c=[a.ca()].concat(b.Am(a,olympe.dm.ne.O));return b.ej(olympe.sc.Ig).filter(d=>c.includes(b.we(d,olympe.dm.ne.T.
|
|
1611
|
+
olympe.zf.Dq(a,olympe.sc.dn.xn.ti)},'olympe.sc.runtime');olympe.sc.ui={};olympe.sc.ui.C0=function(a){return a instanceof olympe.sc.ui.Zd};function pm(a){const b=olympe.dc.fc(),c=[a.ca()].concat(b.Am(a,olympe.dm.ne.O));return b.ej(olympe.sc.Ig).filter(d=>c.includes(b.we(d,olympe.dm.ne.T.cf()))).map(d=>olympe.dc.CloudObject.get(d))}function qm(a){return(new olympe.dc.Bb(olympe.sc.Ig)).transform(olympe.dc.CloudObject.instancesRel).transform(new olympe.dc.wa.ce(new olympe.dc.sa.Xl([olympe.dm.ne.T,new olympe.dc.wa.fg(olympe.dm.ne.Ea,olympe.dc.Nb.ORIGIN,0)],[olympe.dc.Nb.ORIGIN,olympe.dc.Nb.ORIGIN],a)))}
|
|
1612
1612
|
function rm(a,b=!1){const c=new olympe.j.Map,d=e=>{let f,g;const k=olympe.j.qb(olympe.j.lb);e.Er(l=>k.update(olympe.j.jc(l)));olympe.j.ab([e.Bi(),e.ll(),e.Ci(),e.Ot(),k],(l,m,n,p,r)=>{const t=l+':'+m+':'+n;var u=c.zg(t);const w=u?u.Cz():Object.create(null);u=u?u.xa():null;const v=f?c.zg(f):null;p=p.valueOf().replace(/^font\//,'');g&&g!==p&&delete w[g];if(v&&t!==f){const x=v.Cz();delete x[g];0===Object.keys(x).length?c.remove(f):c.set(f,new olympe.ui.Ls(v.BC(),v.Bz(),v.QC(),x,v.xa()))}g=p;f=t;w[p]=
|
|
1613
|
-
r.valueOf();c.set(t,new olympe.ui.Ls(l.valueOf(),m.valueOf(),n.valueOf(),w,u))});if(!b)olympe.j.ib().onDestroy(()=>{f&&c.remove(f)})};b?pm(a).forEach(d):qm(a).forEach(d);return c}olympe.sc.ui.bZ=class{};function sm(a,b=!0){const c=d=>{d=a.db.we(d,olympe.sc.ui.rf.propertyRel.
|
|
1613
|
+
r.valueOf();c.set(t,new olympe.ui.Ls(l.valueOf(),m.valueOf(),n.valueOf(),w,u))});if(!b)olympe.j.ib().onDestroy(()=>{f&&c.remove(f)})};b?pm(a).forEach(d):qm(a).forEach(d);return c}olympe.sc.ui.bZ=class{};function sm(a,b=!0){const c=d=>{d=a.db.we(d,olympe.sc.ui.rf.propertyRel.cf());return a.db.nd(d,olympe.sc.ui.rf.F)};return[a.tag].concat(a.db.Gt(a,olympe.sc.ui.Renderable)).reduce((d,e)=>{e=a.db.wc(e,olympe.dc.CloudObject.propertyRel);b&&e.sort((f,g)=>c(f)-c(g));return d.concat(e)},[])}olympe.sc.ui.Gj=class extends olympe.sc.Vc{C(){const a=olympe.dc.fc().Gt(this,olympe.sc.ui.Renderable).length;return(new olympe.dc.hr(this.tag)).$v(olympe.dc.CloudObject.extendRel,olympe.dc.wa.yv.dB,a-1).fe(olympe.dc.CloudObject.propertyRel).Td()}R(){return olympe.sc.Qj.hm.SB}T(){return null}};
|
|
1614
1614
|
olympe.sc.ui.Gj.U=olympe.dc.Ra.C('01612df1f810c91e8997',olympe.sc.ui.Gj);olympe.sc.ui.Gj.$=olympe.sc.ui.Gj.U.Sb('016951f802614c4350bf');Z(olympe.dm.Property.U,olympe.sc.ui.Gj.$);olympe.sc.ui.Gj.U.C=(a,b)=>bh(a,b||'New Abstract Visual Component',olympe.sc.ui.Gj,olympe.sc.ui.nc).setProperty(olympe.dc.CloudObject.ga,!0).ca();olympe.sc.ui.Gj.prototype.C.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.sc.ui.Mx=class extends olympe.sc.ui.Gj{};olympe.sc.ui.Mx.U=olympe.dc.Ra.C('017a8a97979d7c51ab6a',olympe.sc.ui.Mx);olympe.sc.ui.Mx.U.C=function(a,b){return bh(a,b||'New Coded Visual Component',olympe.sc.ui.Mx,olympe.sc.ui.nc).ca()};function tm(a,b,c,d,e){const f=olympe.j.aa,g=olympe.j.ja,k=olympe.sc.ui.Zd.Ka,l=olympe.sc.ui.Zd.Ea,m=um(a,b,e);a=c.Ga(k,b,g,g.wb);b=c.Ga(l,b,g,g.wb);return new olympe.j.ia(olympe.j.cb(a,()=>Jb(m.na(),d.na()),()=>d.na(),f),olympe.j.cb(b,()=>Jb(m.ra(),d.ra()),()=>d.ra(),f))}
|
|
1615
1615
|
function vm(a,b,c,d,e,f,g,k){const l=olympe.j.aa,m=olympe.sc.ui.Zd.ec,n=olympe.sc.ui.Zd.ic;a=a.Ga(olympe.sc.ui.Zd.vc,b,olympe.j.ja,olympe.j.ja.wb);const p=new olympe.ui.D.Bd(e);p.ps(g);p.yu(k);p.zu(a);olympe.j.cb(a,()=>{var r=p.T();const t=c.O(m,b,l,r.na());r=c.O(n,b,l,r.ra());yd(p,new olympe.j.ia(t,r));const u=e.na(),w=e.ra();wm(d,w,u,r,f.ra(),!1);wm(d,u,w,t,f.na(),!0)});return p}
|
|
1616
1616
|
function um(a,b,c){const d=olympe.sc.ui.Renderable.C,e=olympe.sc.ui.Renderable.F,f=olympe.sc.ui.nc.R,g=olympe.sc.ui.nc.T,k=olympe.j.aa;a=void 0===c?a.qw().Yh().di([olympe.sc.ui.nc]).Kq(olympe.sc.ui.Renderable.V).Td():c;c=(l,m,n)=>{const p=new olympe.j.Map(k);p.set('0',k.ZERO);l.forEach(r=>{var t=r.ca(),u=b.nl(t);t=r.Ga(m,u,k);u=r.Ga(n,u,k);p.set(r.ca(),t.$a(u))},r=>{p.remove(r)});return k.max(p)};return new olympe.j.ia(c(a,f,d),c(a,g,e))}
|
|
@@ -1618,13 +1618,13 @@ function wm(a,b,c,d,e,f){olympe.j.cb(b.VC(e),()=>{var g=olympe.j.fb([b,e],(l,m)=
|
|
|
1618
1618
|
olympe.sc.ui.Zd=class extends olympe.sc.ui.Gj{V(){return this.IC(olympe.sc.ui.Zd.C)}F(){return[this.ga]}O(a,b){var c=olympe.j.ja;const d=olympe.sc.ui.Zd.C,e=olympe.sc.ui.Zd.Ka,f=olympe.sc.ui.Zd.Ea,g=b.la(a),k=b.Ga(e,a,c,c.wb),l=b.Ga(f,a,c,c.wb),m=this.qw().Yh().di([olympe.sc.ui.nc]).Kq(olympe.sc.ui.Renderable.V).Td();c=b.Ga(d,a,olympe.sc.ui.gr);const n=new olympe.ui.D.He(g);olympe.j.ab([c],p=>{(new olympe.j.Od('Init layout')).run(()=>{p.init(a)});const r=p.bs(a,m);n.appendChild(olympe.j.cb(k.or(l),
|
|
1619
1619
|
()=>{var t=tm(this,a,b,g,m);r.Jb(t);const u=new olympe.ui.D.He(g);t=vm(this,a,b,u,g,t,k,l);t.le(r);u.appendChild(t,'scroller');return u},()=>{r.Op();return r},olympe.ui.D.vb),'groupContent')});return n}C(){var a=super.C(),b=a.Gu;var c=olympe.dc.CloudObject.get(olympe.sc.ui.Zd.U.ca());c=olympe.dc.Zs.from(c).AM();return b.call(a,c)}T(){return this.qw().Yh().di([olympe.sc.ui.nc]).Kq(olympe.sc.ui.Renderable.V).Td()}};olympe.sc.ui.Zd.U=olympe.dc.Ra.C('016be61ab63fb8a838ee',olympe.sc.ui.Zd);
|
|
1620
1620
|
olympe.sc.ui.Zd.C=olympe.sc.ui.Zd.U.ea('016be61ab921cb3bdef9');olympe.sc.ui.Zd.Ka=olympe.sc.ui.Zd.U.ea('01664466071718f2a34b');olympe.sc.ui.Zd.Ea=olympe.sc.ui.Zd.U.ea('016652f9cd0b1e216e6b');olympe.sc.ui.Zd.vc=olympe.sc.ui.Zd.U.ea('01665907468d5e684177');olympe.sc.ui.Zd.ec=olympe.sc.ui.Zd.U.ea('016e7ee3fd5998d599ce');olympe.sc.ui.Zd.ic=olympe.sc.ui.Zd.U.ea('016e7ee3fd59d238eec0');
|
|
1621
|
-
olympe.sc.ui.Zd.U.C=function(a,b,c,d){b=b||'Group';d=d||bh(a,b,olympe.sc.ui.Zd,olympe.sc.ui.nc);d.setProperty(olympe.dc.Yl.
|
|
1622
|
-
function zm(a){const b=olympe.sc.logic.wd,c=olympe.j.ib(),d=a.ca(),e=Object.create(null),f=Object.create(null);for(const [k,l]of xm)f[k]=l,xm.delete(k);const g=Dg(a.db,d,b.Fu.
|
|
1623
|
-
function Em(a,b){const c=`finalThemeClass-${a.tag}`;let d;const e=f=>{d&&d();const g=Fm(f,a.
|
|
1624
|
-
olympe.sc.ui.Renderable=class extends olympe.sc.Runnable{constructor(a,b){super(a,b,olympe.rb.Eb('sc'))}Qa(){return this.Ag()instanceof olympe.sc.ui.Zd?[this.
|
|
1621
|
+
olympe.sc.ui.Zd.U.C=function(a,b,c,d){b=b||'Group';d=d||bh(a,b,olympe.sc.ui.Zd,olympe.sc.ui.nc);d.setProperty(olympe.dc.Yl.Te+olympe.dc.CloudObject.nameProp.ca(),b);a=a.create(olympe.sc.ui.Qb.He,c);d.setProperty(olympe.sc.ui.Zd.C.ca(),new olympe.dc.gg(a));return d.ca()};olympe.sc.ui.Zd.prototype.V.K=new olympe.j.J(()=>olympe.sc.ui.gr,[]);olympe.sc.ui.Zd.prototype.O.K=new olympe.j.J(()=>olympe.ui.D.He,[]);olympe.sc.ui.Hy=class extends olympe.sc.ui.Zd{};olympe.sc.ui.Hy.U=olympe.dc.Ra.C('01612df349e137bbb30b',olympe.sc.ui.Hy);olympe.sc.ui.Hy.U.C=function(a,b,c){b=b||'New Screen';const d=bh(a,b,olympe.sc.ui.Hy,olympe.sc.ui.Screen);Yj(a,olympe.sc.ui.Zd,b,c,d);return d.ca()};olympe.sc.ui.Wy=class extends olympe.sc.ui.Zd{};olympe.sc.ui.Wy.U=olympe.dc.Ra.C('0166446c1f124f078a5f',olympe.sc.ui.Wy);olympe.sc.ui.Wy.U.C=function(a,b,c){b=b||'New Visual Component';c=bh(a,b,olympe.sc.ui.Wy,c||olympe.sc.ui.nc);Yj(a,olympe.sc.ui.Zd,b,void 0,c);c.setProperty(olympe.dc.Yl.Te+olympe.sc.ui.Renderable.C.ca(),600);c.setProperty(olympe.dc.Yl.Te+olympe.sc.ui.Renderable.F.ca(),300);return c.ca()};const xm=new Map;function ym(a,b,c,d){if(void 0!==d){if(null!==d){const e=a.updateParent(c,d),f=b.vf();f.Vd(()=>{e&&e();f.Rz('_unreg_element')},'_unreg_element')}}else a.draw(b,c);b.remove('_off_container')}
|
|
1622
|
+
function zm(a){const b=olympe.sc.logic.wd,c=olympe.j.ib(),d=a.ca(),e=Object.create(null),f=Object.create(null);for(const [k,l]of xm)f[k]=l,xm.delete(k);const g=Dg(a.db,d,b.Fu.cf(),c.md((k,l)=>{k?(k=a.db.we(l,b.nA),void 0!==f[k]&&(e[l]=k,f[k].enable())):(k=e[l],void 0!==k&&(f[k].disable(),delete e[l]))}));c.onDestroy(()=>{a.db.F(d,b.Fu.cf(),g)})}function Am(a,b,c,d){a=new Bm(b,a);void 0!==d?Cm(a,c,d):Dm(a,c);xm.set(olympe.dc.Gb(b),a)}
|
|
1623
|
+
function Em(a,b){const c=`finalThemeClass-${a.tag}`;let d;const e=f=>{d&&d();const g=Fm(f,a.Ze(),'');let k=!1;d=b.on(g,l=>{k=!0;b.set(c,l?f:'default')});k||b.set(c,'default');olympe.j.ib().onDestroy(()=>{d&&d()})};b.set(c,'default');b.on(olympe.sc.ui.Renderable.Cb.ca(),f=>e(f))}function Gm(a,b){olympe.j.ab([a.na()],c=>{b.set(olympe.sc.ui.Renderable.C,c.valueOf())});olympe.j.ab([a.ra()],c=>{b.set(olympe.sc.ui.Renderable.F,c.valueOf())})}
|
|
1624
|
+
olympe.sc.ui.Renderable=class extends olympe.sc.Runnable{constructor(a,b){super(a,b,olympe.rb.Eb('sc'))}Qa(){return this.Ag()instanceof olympe.sc.ui.Zd?[this.Ze()]:[]}ta(){const a=olympe.sc.hc.qf.XP,b=this.db,c=new Map,d=this.Ag();for(const e of sm(d,!1))c.set(a+b.name(e),e);return c}update(a,b,c){const d=olympe.sc.hc.Oh.zn,e=olympe.sc.hc.Oh.Sq,f=this.Ag().zw(),g=olympe.sc.ui.Renderable.prototype.F!==this.F;!f&&super.update(a,b,c);c=a.get(e);if(!c){c=a.getParent();const l=new olympe.j.Od('wrapper context for renderable',
|
|
1625
1625
|
c?c.vf():a.vf());a.onDestroy(()=>{l.destroy()});c=l.run(()=>this.F(a));a.set(e,c)}const k=f&&!g?this.render(a,b):c.$p();if(!g&&(f||!a.Xt())){a.has('_off_container')&&a.get('_off_container')();if(a.has(d))ym(this,a,a.get(d),k);else{const l=a.on(d,m=>{ym(this,a,m,k);l()},a.xa());a.set('_off_container',l)}a.onDestroy(()=>{a.has('_off_container')&&this.Y.debug(`No parent container has been found to render the brick ${this.db.name(this)}, ${this.tag}`)})}}render(){}updateParent(a,b){b&&a.appendChild(b);
|
|
1626
|
-
return()=>{}}F(a){var b=this.Ag();if(b.zw()){const c=olympe.j.ja;b=new olympe.ui.D.qe(this.tag,this.la(a));b.qd(this.Ga(olympe.sc.ui.nc.Ib,a,c,c.wb));b.Mm(d=>{a.gx(d)})}else b=b.O(a,this),this.C(b,a);return b}Ng(){return sm(this.Ag())}draw(a,b){a=this.db.name(this.
|
|
1627
|
-
a.style['text-align']='center';a.style.width='inherit';a.style.height='inherit';a.style.display='table-cell';a.style['background-color']='rgba(192, 192, 192, 0.5)';a.style['font-family']='Roboto';b.appendChild(a)}C(a,b){a.Na(this.Ga(olympe.sc.ui.Renderable.ka,b,olympe.j.Color,O()));zm(this)}V(){return[this.ic,this.Ea,this.$,this.La,this.ga]}La(a,b){Em(this,a);const c=olympe.j.ib(),d=this.
|
|
1626
|
+
return()=>{}}F(a){var b=this.Ag();if(b.zw()){const c=olympe.j.ja;b=new olympe.ui.D.qe(this.tag,this.la(a));b.qd(this.Ga(olympe.sc.ui.nc.Ib,a,c,c.wb));b.Mm(d=>{a.gx(d)})}else b=b.O(a,this),this.C(b,a);return b}Ng(){return sm(this.Ag())}draw(a,b){a=this.db.name(this.Ze());this.Y.warn(`Visual brick ${this.db.name(this.tag)} (${this.tag}) is hardcoded but no code is associated to its model ${a} (${this.Ze()})`);a=document.createElement('p');a.innerHTML='Not Implemented';a.style['vertical-align']='middle';
|
|
1627
|
+
a.style['text-align']='center';a.style.width='inherit';a.style.height='inherit';a.style.display='table-cell';a.style['background-color']='rgba(192, 192, 192, 0.5)';a.style['font-family']='Roboto';b.appendChild(a)}C(a,b){a.Na(this.Ga(olympe.sc.ui.Renderable.ka,b,olympe.j.Color,O()));zm(this)}V(){return[this.ic,this.Ea,this.$,this.La,this.ga]}La(a,b){Em(this,a);const c=olympe.j.ib(),d=this.Ze(),e=olympe.sc.ui.Gj.$,f=this.db.Gt(this.Ze(),olympe.sc.ui.Renderable);f.push(d);let g=[];f.forEach(l=>{g=g.concat(this.db.wc(l,
|
|
1628
1628
|
e))});let k;a.on(`finalThemeClass-${this.tag}`,c.md(l=>{k&&k.destroy();const m=n=>{const p=Fm(l,d,n);a.on(p,r=>{b(n,r)})};k=new olympe.j.Od(`onFinalThemeClassKey for ${this.tag}`);k.run(()=>{for(const n of g)m(n);k.onDestroy(()=>{for(const n of g)b(n,null)})})}))}la(a){return new olympe.j.ia(this.Ga(olympe.sc.ui.Renderable.C,a,olympe.j.aa,olympe.j.aa.ZERO,!0),this.Ga(olympe.sc.ui.Renderable.F,a,olympe.j.aa,olympe.j.aa.ZERO,!0))}hf(){return this.ai(olympe.sc.ui.Renderable.V)}T(){return null}};
|
|
1629
1629
|
olympe.sc.ui.Renderable.prototype.getProperties=olympe.sc.ui.Renderable.prototype.Ng;let Hm=0;function Cm(a,b,c){a.R=a.ff.md(()=>{const d=b(()=>a.F.jn(a.O));olympe.j.ib().onDestroy(()=>c(d))})}function Dm(a,b){a.R=a.ff.md(()=>{olympe.j.ab([b()],c=>{a.F.set(a.O,c)});olympe.j.ib().onDestroy(()=>a.F.remove(a.O))})}
|
|
1630
1630
|
class Bm{constructor(a,b){++Hm;this.O=a;this.F=b;this.ff=new olympe.j.Od('InteractionBinder context '+Hm);this.R=null;this.C=0}enable(){++this.C;1===this.C&&this.R()}disable(){--this.C;0===this.C&&this.ff.destroy()}}olympe.sc.ui.Renderable.U=If(olympe.dc.Ra.C('01612df219d0691f6b4d',olympe.sc.ui.Renderable));olympe.sc.ui.Renderable.Cb=olympe.sc.ui.Renderable.U.ea('0161d7ba2406f5d75a37');olympe.sc.ui.Renderable.ka=olympe.sc.ui.Renderable.U.ea('01611d9c686bbed5fdba');olympe.sc.ui.Renderable.C=olympe.sc.ui.Renderable.U.ea('01611d99ec0553b5926e');
|
|
@@ -1643,7 +1643,7 @@ olympe.sc.ui.Ja.PX=olympe.sc.ui.Ja.U.ea('0168dc76919c78c432de');olympe.sc.ui.Ja.
|
|
|
1643
1643
|
olympe.sc.ui.Ja.Cw=olympe.sc.ui.Ja.U.ea('0168dcdbac93683e961f');olympe.sc.ui.Ja.fW=olympe.sc.ui.Ja.U.ea('0168dcdbe096622948a4');olympe.sc.ui.Ja.cD=olympe.sc.ui.Ja.U.ea('0168dcdc172e489c48b9');olympe.sc.ui.Ja.KX=olympe.sc.ui.Ja.U.ea('0168dcdc4ef0492f7be9');olympe.sc.ui.Ja.LX=olympe.sc.ui.Ja.U.ea('0168dcdc6d186bf8c60d');olympe.sc.ui.Ja.GT=olympe.sc.ui.Ja.U.ea('0168dcdcaa879e1d49ec');olympe.sc.ui.Ja.zO=olympe.sc.ui.Ja.U.ea('0168dcdcd0e43889eeaf');olympe.sc.ui.Ja.WV=olympe.sc.ui.Ja.U.ea('0168e13a2c9eff4b1bb2');
|
|
1644
1644
|
olympe.sc.ui.Ja.VV=olympe.sc.ui.Ja.U.ea('0168e13a668be409860f');olympe.sc.ui.Ja.UV=olympe.sc.ui.Ja.U.ea('0168e13a9bbb31492482');olympe.sc.ui.Ja.NV=olympe.sc.ui.Ja.U.ea('0168e13ad49117906a9b');olympe.sc.ui.Ja.GP=olympe.sc.ui.Ja.U.ea('016880862139c3324a2b');olympe.sc.ui.Ja.nR=olympe.sc.ui.Ja.U.ea('0168808622067a6ccc86');olympe.sc.ui.Ja.bS=olympe.sc.ui.Ja.U.ea('01688086226bdf417abe');olympe.sc.ui.Ja.TR=olympe.sc.ui.Ja.U.ea('0168808622d577c581a5');olympe.sc.ui.Ja.XR=olympe.sc.ui.Ja.U.ea('0168c772451ab8b1295c');
|
|
1645
1645
|
olympe.sc.ui.Ja.BR=olympe.sc.ui.Ja.U.ea('0168c772458260728005');olympe.sc.ui.Ja.HR=olympe.sc.ui.Ja.U.ea('0168c77245ec33d5d3d6');olympe.sc.ui.Ja.mS=olympe.sc.ui.Ja.U.ea('0168c7724654174d5289');olympe.sc.ui.Ja.gT=olympe.sc.ui.Ja.U.ea('0168c7724990f6c6e2c5');olympe.sc.ui.Ja.bT=olympe.sc.ui.Ja.U.ea('0168c77249f71507f1a0');olympe.sc.ui.Ja.fT=olympe.sc.ui.Ja.U.ea('0168c7724a5ffdb8603c');olympe.sc.ui.Ja.XS=olympe.sc.ui.Ja.U.ea('0168c7724ac89011b0f1');olympe.sc.ui.Ja.PP=olympe.sc.ui.Ja.U.ea('0168c7724ccef19bd4fe');
|
|
1646
|
-
olympe.sc.ui.Ja.hT=olympe.sc.ui.Ja.U.ea('0168c7724d3698b4bacc');olympe.sc.ui.Ja.eQ=olympe.sc.ui.Ja.U.ea('0168c7724d9a84b5addb');olympe.sc.ui.Ja.dR=olympe.sc.ui.Ja.U.ea('0168c7724dff8c67d120');olympe.sc.ui.Ja.eR=olympe.sc.ui.Ja.U.ea('0168c7724e65de8791ac');olympe.sc.ui.Ja.RS=olympe.sc.ui.Ja.U.ea('0168c7724eca5653c809');olympe.sc.ui.Ja.GS=olympe.sc.ui.Ja.U.ea('0168c7724f30c049da91');olympe.sc.ui.Vn=class extends olympe.sc.ui.Gj{O(){return this.bh(olympe.sc.ui.Vn.C,olympe.sc.ui.Screen)}};olympe.sc.ui.Vn.U=olympe.dc.Ra.C('0112025000000015def0',olympe.sc.ui.Vn);olympe.sc.ui.Vn.C=olympe.sc.ui.Vn.U.Sb('0163f988aa658051daeb');olympe.sc.ui.Vn.prototype.O.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.gr=class extends olympe.sc.mg{init(a){const b=(c,d)=>null===d?a.remove(c):a.set(c,d);Ul(this,b,b)}run(){}bs(){}F(){}C(){}};olympe.sc.ui.gr.U=If(olympe.dc.Ra.C('016be61abe39070d9c42',olympe.sc.ui.gr));olympe.sc.ui.gr.prototype.bs.K=new olympe.j.J(()=>olympe.ui.D.vb,[]);olympe.sc.ui.Sd=class extends olympe.sc.ui.Ja{C(a,b){const c=olympe.j.Color,d=olympe.j.aa,e=olympe.j.ja,f=olympe.j.lb;a instanceof olympe.ui.D.ld||(a.Rb(this.Ga(olympe.sc.ui.Sd.O,b,f)),a.yb(this.Ga(olympe.sc.ui.Sd.Ea,b,f)),a.zb(this.Ga(olympe.sc.ui.Sd.Yt,b,d)),a.Db(this.Ga(olympe.sc.ui.Sd.La,b,d)),a.Qd(olympe.j.cb(this.Ga(olympe.sc.ui.Sd.Ha,b,e,e.wb),()=>olympe.ui.fa.by.aQ,()=>olympe.ui.fa.by.ty,f)),a.ob(this.Ga(olympe.sc.ui.Sd.Ka,b,c)),a
|
|
1646
|
+
olympe.sc.ui.Ja.hT=olympe.sc.ui.Ja.U.ea('0168c7724d3698b4bacc');olympe.sc.ui.Ja.eQ=olympe.sc.ui.Ja.U.ea('0168c7724d9a84b5addb');olympe.sc.ui.Ja.dR=olympe.sc.ui.Ja.U.ea('0168c7724dff8c67d120');olympe.sc.ui.Ja.eR=olympe.sc.ui.Ja.U.ea('0168c7724e65de8791ac');olympe.sc.ui.Ja.RS=olympe.sc.ui.Ja.U.ea('0168c7724eca5653c809');olympe.sc.ui.Ja.GS=olympe.sc.ui.Ja.U.ea('0168c7724f30c049da91');olympe.sc.ui.Vn=class extends olympe.sc.ui.Gj{O(){return this.bh(olympe.sc.ui.Vn.C,olympe.sc.ui.Screen)}};olympe.sc.ui.Vn.U=olympe.dc.Ra.C('0112025000000015def0',olympe.sc.ui.Vn);olympe.sc.ui.Vn.C=olympe.sc.ui.Vn.U.Sb('0163f988aa658051daeb');olympe.sc.ui.Vn.prototype.O.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.gr=class extends olympe.sc.mg{init(a){const b=(c,d)=>null===d?a.remove(c):a.set(c,d);Ul(this,b,b)}run(){}bs(){}F(){}C(){}};olympe.sc.ui.gr.U=If(olympe.dc.Ra.C('016be61abe39070d9c42',olympe.sc.ui.gr));olympe.sc.ui.gr.prototype.bs.K=new olympe.j.J(()=>olympe.ui.D.vb,[]);olympe.sc.ui.Sd=class extends olympe.sc.ui.Ja{C(a,b){const c=olympe.j.Color,d=olympe.j.aa,e=olympe.j.ja,f=olympe.j.lb;a instanceof olympe.ui.D.ld||(a.Rb(this.Ga(olympe.sc.ui.Sd.O,b,f)),a.yb(this.Ga(olympe.sc.ui.Sd.Ea,b,f)),a.zb(this.Ga(olympe.sc.ui.Sd.Yt,b,d)),a.Db(this.Ga(olympe.sc.ui.Sd.La,b,d)),a.Qd(olympe.j.cb(this.Ga(olympe.sc.ui.Sd.Ha,b,e,e.wb),()=>olympe.ui.fa.by.aQ,()=>olympe.ui.fa.by.ty,f)),a.ob(this.Ga(olympe.sc.ui.Sd.Ka,b,c)),a.$b(this.Ga(olympe.sc.ui.Sd.Ab,b,f)),a.bc(this.Ga(olympe.sc.ui.Sd.Mb,
|
|
1647
1647
|
b,f)));super.C(a,b)}};olympe.sc.ui.Sd.U=If(olympe.dc.Ra.C('01633e9252d8e1c4f25b',olympe.sc.ui.Sd));olympe.sc.ui.Sd.Ea=olympe.sc.ui.Sd.U.ea('01635eaa384788490dc5');olympe.sc.ui.Sd.Yt=olympe.sc.ui.Sd.U.ea('01633fa38ad45c58d04d');olympe.sc.ui.Sd.Ha=olympe.sc.ui.Sd.U.ea('01633fa38c309356404a');olympe.sc.ui.Sd.La=olympe.sc.ui.Sd.U.ea('01633fa38d2863f0a464');olympe.sc.ui.Sd.Ka=olympe.sc.ui.Sd.U.ea('01633fa5303ccd8c1801');olympe.sc.ui.Sd.Ab=olympe.sc.ui.Sd.U.ea('0164229fd527ecd56900');
|
|
1648
1648
|
olympe.sc.ui.Sd.Mb=olympe.sc.ui.Sd.U.ea('016422a069b9bd45e8a8');olympe.sc.ui.Sd.O=olympe.sc.ui.Sd.U.ea('01633fa386be67e6fd1d');olympe.sc.ui.Ne=class extends olympe.sc.ui.Sd{C(a,b){const c=olympe.j.aa,d=olympe.j.ja;a.Gg(this.Ga(olympe.sc.ui.Ne.$,b,olympe.j.lb));a.Sg(this.Ga(olympe.sc.ui.Ne.gd,b,olympe.j.Color));a.sd(this.Ga(olympe.sc.ui.Ne.Di,b,c,c.ZERO));a.rd(this.Ga(olympe.sc.ui.Ne.vc,b,c,c.ZERO));a.Ec(this.Ga(olympe.sc.ui.Ne.ic,b,c,c.ZERO));a.Ic(this.Ga(olympe.sc.ui.Ne.od,b,c,c.ZERO));a.Gf(this.Ga(olympe.sc.ui.Ne.ec,b,d,d.wb));Am(b,olympe.sc.ui.Ne.Xc,a.lj.bind(a),a.O.bind(a));Am(b,olympe.sc.ui.Ne.Cc,a.kj.bind(a),a.F.bind(a));
|
|
1649
1649
|
super.C(a,b)}};olympe.sc.ui.Ne.U=olympe.dc.Ra.C('016e64ba43b2367826cd',olympe.sc.ui.Ne);olympe.sc.ui.Ne.$=olympe.sc.ui.Ne.U.ea('0164b26aecbaa5ca5b23');olympe.sc.ui.Ne.gd=olympe.sc.ui.Ne.U.ea('0164b69dd71d223649bc');olympe.sc.ui.Ne.ec=olympe.sc.ui.Ne.U.ea('016e64de79ddfffad3ea');olympe.sc.ui.Ne.Di=olympe.sc.ui.Ne.U.ea('0168387e0011b88e3095');olympe.sc.ui.Ne.vc=olympe.sc.ui.Ne.U.ea('0168387e0527edb9bd2a');olympe.sc.ui.Ne.ic=olympe.sc.ui.Ne.U.ea('0168387e0a992ee500be');olympe.sc.ui.Ne.od=olympe.sc.ui.Ne.U.ea('0168387e0e5bfd3e00d8');
|
|
@@ -1658,7 +1658,7 @@ olympe.sc.ui.Screen.Ka=olympe.sc.ui.Screen.U.ea('01648dde0de26fef1ae0');olympe.s
|
|
|
1658
1658
|
Z(olympe.dm.Property.U,olympe.sc.ui.mh.F);olympe.sc.ui.mh.prototype.It.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.mh.prototype.Tt.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.lK=class extends olympe.dc.CloudObject{};olympe.sc.ui.lK.U=olympe.dc.Ra.C('0162d3ede786c89fb31b',olympe.sc.ui.lK);olympe.sc.ui.UIEvent=class extends olympe.dc.CloudObject{};olympe.sc.ui.UIEvent.U=olympe.dc.Ra.C('0163fe51d83dad2a0f4b',olympe.sc.ui.UIEvent);olympe.sc.ui.kK=class extends olympe.dc.CloudObject{};olympe.sc.ui.kK.U=olympe.dc.Ra.C('016c865bbf883591cc25',olympe.sc.ui.kK);function Fm(a,b,c){return a+'^'+b+'^'+('string'===typeof c?c:c.ca())}function Km(a,b){void 0===a.C[b]&&(a.C[b]=new olympe.dc.Bb(b,[new olympe.dc.wa.fg(olympe.dc.Wf.Es,olympe.dc.Nb.DESTINATION,0),olympe.sc.ui.Gj.$],olympe.dm.Property));return a.C[b].getSubscription()}
|
|
1659
1659
|
olympe.sc.ui.ph=class extends olympe.dm.BrickMetadata{constructor(a,b,c){super(a,b);this.C={};this.O=c}ez(a){if(!this.O){var b=this.db;this.F().forEach(c=>{const d=b.model(c);olympe.j.ab([c.Sa(),c.je(olympe.sc.ui.Renderable.Cb)],(e,f)=>{const g=Fm(e,d,'');a.Ua(g)||(a.set(g,!0),Km(this,d).forEach(k=>{const l=Fm(e,d,k);let m=null,n=null;const p=()=>{null!==m?a.set(l,m):null!==n?a.set(l,n):a.remove(l)},r=Ag(b,c,k,(t,u)=>{m=u?null:t;p()});if(!e.Lc(f)){const t=Fm(f,d,k);a.on(t,u=>{n=u;p()})}olympe.j.ib().Vd(()=>
|
|
1660
1660
|
{b.O(c,k,r);a.remove(l)})}),olympe.j.ib().Vd(()=>{a.set(g,!1)}))})})}}R(){return olympe.sc.Qj.hm.SB}F(){return this.wc(olympe.sc.ui.ph.C,olympe.sc.ui.Renderable)}};olympe.sc.ui.ph.U=olympe.dc.Ra.C('0161d7b7e11e93199927',olympe.sc.ui.ph,new olympe.ma.Ta(olympe.sc.za.fF));olympe.sc.ui.ph.O=Z(olympe.sc.ui.ph.U,olympe.sc.ui.Ij.$);olympe.sc.ui.ph.C=olympe.sc.ui.ph.U.Sb('0170171c1c9e2f1555bb');Z(olympe.sc.ui.Renderable.U,olympe.sc.ui.ph.C);olympe.sc.ui.ph.F=Df('01644110be563fae3bf9','DEFAULT_THEME');
|
|
1661
|
-
olympe.sc.ui.ph.prototype.ez.K=new olympe.j.J(()=>{},[]);olympe.sc.ui.ph.prototype.F.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.sc.ui.eg=class extends olympe.dm.zj{hf(){return this.ai(olympe.sc.ui.eg.C)}uU(){return this.wc(olympe.sc.ui.eg.propertyRel,olympe.dm.Property).Pd()}EV(){return this.wc(olympe.sc.ui.eg.F,olympe.sc.ui.eg)}eV(){return this.wc(olympe.sc.ui.rf.C.
|
|
1661
|
+
olympe.sc.ui.ph.prototype.ez.K=new olympe.j.J(()=>{},[]);olympe.sc.ui.ph.prototype.F.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.sc.ui.eg=class extends olympe.dm.zj{hf(){return this.ai(olympe.sc.ui.eg.C)}uU(){return this.wc(olympe.sc.ui.eg.propertyRel,olympe.dm.Property).Pd()}EV(){return this.wc(olympe.sc.ui.eg.F,olympe.sc.ui.eg)}eV(){return this.wc(olympe.sc.ui.rf.C.cf(),olympe.sc.ui.rf)}AV(){return new olympe.dc.Bb(this.ca(),[olympe.dc.CloudObject.containsRel,new olympe.dc.wa.wi(new olympe.dc.ie.Number(new olympe.dc.hb.Ej(olympe.sc.ui.eg.C)))],olympe.sc.ui.eg)}};
|
|
1662
1662
|
olympe.sc.ui.eg.U=olympe.dc.Ra.C('01611e77c1becc16025b',olympe.sc.ui.eg);olympe.sc.ui.eg.C=olympe.sc.ui.eg.U.ea('01611e7ad37b715e393d');olympe.sc.ui.eg.propertyRel=olympe.sc.ui.eg.U.Sb('01611e7cd458bd5607ac');olympe.sc.ui.eg.F=olympe.sc.ui.eg.U.Sb('016952415429cb0a0c0a');olympe.sc.ui.eg.$=Df('0164188f5cc0c205bc06','CUSTOM_PROPERTIES_TAB_CAT');olympe.sc.ui.eg.V=Df('0165335122d2ea44dd92','CUSTOM_EVENT_CAT');olympe.sc.ui.eg.T=Df('0161bd31111c6b32e43d','CATEGORY_SPECIFIC_VALUE');
|
|
1663
1663
|
olympe.sc.ui.eg.O=Df('016362a33e99ca8f8ade','CATEGORY_SPECIFIC_FONT');olympe.sc.ui.eg.ta=Df('016122a51eea77d3dd8a','ROOT_CATEGORY');h=olympe.sc.ui.eg.prototype;h.hf.K=olympe.j.J.F;h.uU.K=new olympe.j.J(()=>olympe.dm.Property,[]);h.EV.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.eV.K=new olympe.j.J(()=>olympe.dc.Bb,[]);h.AV.K=new olympe.j.J(()=>olympe.dc.Bb,[]);olympe.sc.ui.rf=class extends olympe.dc.CloudObject{constructor(a,b){super(a,b)}hf(){return this.ai(olympe.sc.ui.rf.F)}QV(){return this.zm(olympe.sc.ui.rf.O)}TV(){return this.zm(olympe.sc.ui.rf.V)}RV(){return this.zm(olympe.sc.ui.rf.T)}Ng(){return this.wc(olympe.sc.ui.rf.propertyRel,olympe.dm.Property)}vU(){return this.wc(olympe.sc.ui.rf.C,olympe.sc.ui.eg).Pd()}};olympe.sc.ui.rf.U=olympe.dc.Ra.C('016d1bb681929c2cc3f0',olympe.sc.ui.rf);olympe.sc.ui.rf.F=olympe.sc.ui.rf.U.ea('016d1bb681929c2cc3f1');
|
|
1664
1664
|
olympe.sc.ui.rf.V=olympe.sc.ui.rf.U.ea('016d1bb681929c2cc3f2');olympe.sc.ui.rf.O=olympe.sc.ui.rf.U.ea('016d1bb681929c2cc3f3');olympe.sc.ui.rf.T=olympe.sc.ui.rf.U.ea('0170beccaac4129d72a9');olympe.sc.ui.rf.C=olympe.sc.ui.rf.U.Sb('016d1bb681929c2cc3f4');olympe.sc.ui.rf.propertyRel=olympe.sc.ui.rf.U.Sb('016d1bb681929c2cc3f5');Z(olympe.dm.Property.U,olympe.sc.ui.rf.propertyRel);Z(olympe.sc.ui.eg.U,olympe.sc.ui.rf.C);h=olympe.sc.ui.rf.prototype;h.hf.K=olympe.j.J.F;h.QV.K=olympe.j.J.T;h.TV.K=olympe.j.J.T;
|
|
@@ -1671,9 +1671,9 @@ u=>u.valueOf(),Number))});olympe.j.cb(c,()=>{lm(this.Ga(f,a,olympe.sc.qr),a,k,ol
|
|
|
1671
1671
|
olympe.sc.ui.X.oc.$=olympe.sc.ui.X.oc.U.ea('016c8b3713bf8f4db872');olympe.sc.ui.X.oc.gd=olympe.sc.ui.X.oc.U.ea('0170ca4983528b9f6bd7');olympe.sc.ui.X.oc.od=olympe.sc.ui.X.oc.U.ea('0170ca4991f5dcc3a484');olympe.sc.ui.X.oc.Di=olympe.sc.ui.X.oc.U.ea('016437688914581fea4d');olympe.sc.ui.X.oc.Cc=olympe.sc.ui.X.oc.U.ea('016437688914b03261ce');olympe.sc.ui.X.oc.ec=olympe.sc.ui.X.oc.U.ea('0168997eefed6611afa2');olympe.sc.ui.X.oc.wx=olympe.sc.ui.X.oc.U.ea('016437688914bcb67a39');olympe.sc.ui.X.oc.Xc=olympe.sc.ui.X.oc.U.ea('016437688914221515ed');
|
|
1672
1672
|
olympe.sc.ui.X.oc.ic=olympe.sc.ui.X.oc.U.ea('0168997f731e2170e16e');olympe.sc.ui.X.oc.vc=olympe.sc.ui.X.oc.U.ea('0168990cc9a77f2a16b8');olympe.sc.ui.X.oc.TB=olympe.sc.ui.X.oc.U.ea('016d3f37610ae4fc3964');olympe.sc.ui.X.oc.U.C=function(a,b){a=a.create(olympe.sc.ui.X.oc);b&&(a.setProperty(olympe.dc.CloudObject.nameProp,b),a.setProperty(olympe.sc.ui.Sd.O,b));return a.ca()};olympe.sc.ui.X.oc.prototype.F.K=new olympe.j.J(()=>olympe.ui.D.oc,[]);olympe.sc.ui.X.Ie=class extends olympe.sc.ui.Ja{F(a){const b=new olympe.ui.D.Ie(this.la(a)),c=olympe.j.fb([b.uz()],d=>d.valueOf(),Boolean);b.Bf(this.O(olympe.sc.ui.X.Ie.valueProp,a,Boolean,c));this.C(b,a);b.Na(olympe.j.cb(b.uz(),()=>this.Ga(olympe.sc.ui.X.Ie.Qa,a,olympe.j.Color),()=>this.Ga(olympe.sc.ui.Renderable.ka,a,olympe.j.Color),olympe.j.Color));b.LC().Fd(this.Ga(olympe.sc.ui.X.Ie.Ea,a,olympe.j.aa),this.Ga(olympe.sc.ui.X.Ie.Ka,a,olympe.j.Color));b.LC().Na(olympe.j.cb(b.uz(),()=>this.Ga(olympe.sc.ui.X.Ie.La,
|
|
1673
1673
|
a,olympe.j.Color),()=>this.Ga(olympe.sc.ui.X.Ie.Ha,a,olympe.j.Color),olympe.j.Color));b.Hf(this.Ga(olympe.sc.ui.X.Ie.O,a,olympe.j.aa,olympe.j.aa.ZERO));Am(a,olympe.sc.ui.X.Ie.$,b.Ha.bind(b),b.Ea.bind(b));return b}};olympe.sc.ui.X.Ie.U=olympe.dc.Ra.C('0161bce1f151ed95683f',olympe.sc.ui.X.Ie);olympe.sc.ui.X.Ie.valueProp=olympe.sc.ui.X.Ie.U.ea('0161bce236ebb4125ff7');olympe.sc.ui.X.Ie.$=olympe.sc.ui.X.Ie.U.ea('0161bce2516b5beb66ee');olympe.sc.ui.X.Ie.Qa=olympe.sc.ui.X.Ie.U.ea('016952bd9b2945e0cf2d');
|
|
1674
|
-
olympe.sc.ui.X.Ie.Ea=olympe.sc.ui.X.Ie.U.ea('016eef124b767b01de0e');olympe.sc.ui.X.Ie.Ka=olympe.sc.ui.X.Ie.U.ea('016eef2694489f36a6d3');olympe.sc.ui.X.Ie.Ha=olympe.sc.ui.X.Ie.U.ea('016eeb3de5c4036fe1fa');olympe.sc.ui.X.Ie.La=olympe.sc.ui.X.Ie.U.ea('016eeb3df78614f0290b');olympe.sc.ui.X.Ie.O=olympe.sc.ui.X.Ie.U.ea('016eeb5e545fbe43dd7a');olympe.sc.ui.X.Ie.U.C=function(a,b){a=a.create(olympe.sc.ui.X.Ie);b&&a.setProperty(olympe.dc.CloudObject.nameProp,b);return a.ca()};olympe.sc.ui.X.$f=class extends olympe.sc.ui.Ja{F(a){const b=new Intl.DateTimeFormat(void 0,{month:'long'});var c=this.ai(olympe.sc.ui.X.$f.$),d=this.ai(olympe.sc.ui.X.$f.O);const e=new olympe.ui.D.ME(new olympe.j.ia(c,d),{FX:(m,n)=>{m.Rb(olympe.j.jc(n.day));m.Na(olympe.j.cb(n.hq,()=>N(),()=>O(),olympe.j.Color));m.bc(olympe.ui.fa.tc.Nc);m
|
|
1675
|
-
N(),()=>M(),olympe.j.Color),olympe.j.Color),olympe.j.Color));m.Db(olympe.j.cb(n.WC.and(n.hq.Rf()),()=>700,()=>400,Number));m.kc(5)},MV:(m,n,p)=>{m.Rb(olympe.j.fb([p],r=>olympe.j.jc(b.format(r.Lq())),olympe.j.lb)).Db(800).ob(N());n.Rb(p.getYear().Hg()).Db(800).ob(N());m.bc(olympe.ui.fa.tc.Nc);m
|
|
1676
|
-
{m.Rb('Mo Tu We Th Fr Sa Su'.split(' ')[n]);m.ob(N());m.bc(olympe.ui.fa.tc.Nc);m
|
|
1674
|
+
olympe.sc.ui.X.Ie.Ea=olympe.sc.ui.X.Ie.U.ea('016eef124b767b01de0e');olympe.sc.ui.X.Ie.Ka=olympe.sc.ui.X.Ie.U.ea('016eef2694489f36a6d3');olympe.sc.ui.X.Ie.Ha=olympe.sc.ui.X.Ie.U.ea('016eeb3de5c4036fe1fa');olympe.sc.ui.X.Ie.La=olympe.sc.ui.X.Ie.U.ea('016eeb3df78614f0290b');olympe.sc.ui.X.Ie.O=olympe.sc.ui.X.Ie.U.ea('016eeb5e545fbe43dd7a');olympe.sc.ui.X.Ie.U.C=function(a,b){a=a.create(olympe.sc.ui.X.Ie);b&&a.setProperty(olympe.dc.CloudObject.nameProp,b);return a.ca()};olympe.sc.ui.X.$f=class extends olympe.sc.ui.Ja{F(a){const b=new Intl.DateTimeFormat(void 0,{month:'long'});var c=this.ai(olympe.sc.ui.X.$f.$),d=this.ai(olympe.sc.ui.X.$f.O);const e=new olympe.ui.D.ME(new olympe.j.ia(c,d),{FX:(m,n)=>{m.Rb(olympe.j.jc(n.day));m.Na(olympe.j.cb(n.hq,()=>N(),()=>O(),olympe.j.Color));m.bc(olympe.ui.fa.tc.Nc);m.$b(olympe.ui.fa.Hb.Vb);m.ob(olympe.j.cb(n.hq,()=>Tb('dark slate gray',69,90,100,1),()=>olympe.j.cb(n.WC,()=>Tb('dark cyan',0,150,136,1),()=>olympe.j.cb(n.TC,()=>
|
|
1675
|
+
N(),()=>M(),olympe.j.Color),olympe.j.Color),olympe.j.Color));m.Db(olympe.j.cb(n.WC.and(n.hq.Rf()),()=>700,()=>400,Number));m.kc(5)},MV:(m,n,p)=>{m.Rb(olympe.j.fb([p],r=>olympe.j.jc(b.format(r.Lq())),olympe.j.lb)).Db(800).ob(N());n.Rb(p.getYear().Hg()).Db(800).ob(N());m.bc(olympe.ui.fa.tc.Nc);m.$b(olympe.ui.fa.Hb.Vb);n.bc(olympe.ui.fa.tc.Nc);n.$b(olympe.ui.fa.Hb.Vb)},yT:(m,n)=>{m.Rb('<'===n?'\uf104':'\uf105').Db(800).yb('FontAwesome').ob(N()).bc(olympe.ui.fa.tc.Nc).$b(olympe.ui.fa.Hb.Vb)},MX:(m,n)=>
|
|
1676
|
+
{m.Rb('Mo Tu We Th Fr Sa Su'.split(' ')[n]);m.ob(N());m.bc(olympe.ui.fa.tc.Nc);m.$b(olympe.ui.fa.Hb.Vb)}});e.Na(olympe.j.Color.create(69,90,100));d=olympe.j.Ua(olympe.j.cc.now());e.lx(d);e.$z(d);olympe.j.ab([this.Ga(olympe.sc.ui.X.$f.Qa,a,olympe.j.lb)],m=>{'DD.MM.YYYY'!==m.valueOf()&&this.Y.warn('[DatePicker] Using custom format is no longer supported! Date will be formatted as DD.MM.YYYY!')});d=this.O(olympe.sc.ui.X.$f.valueProp,a,String,olympe.j.fb([e.zz()],m=>m.So().valueOf(),String),olympe.j.cc.now().So().valueOf());
|
|
1677
1677
|
olympe.j.ab([d],m=>{const n=Mb(m),p=olympe.j.Ua(e.zz());n&&n.ql().valueOf()&&!p.So().Lc(m)&&(e.lx(n),e.$z(n))});e.kc(5);const f=olympe.j.qb(olympe.j.ja);f.update(olympe.j.ja.wb);d=new olympe.ui.D.he(40,8);const g=(new olympe.ui.D.Ub(new olympe.j.ia(140,40))).Rb(e.zz().So()).Zf('default');g.lj(()=>{const m=Mb(olympe.j.Ua(g.ol()));m&&m.ql().valueOf()&&(e.lx(m),e.$z(m))});var k=(new olympe.ui.D.oc(new olympe.j.ia(60,40))).Rb('\uf073').yb('FontAwesome').Zf('default');let l;k.Zc(()=>{const m=olympe.j.Ua(f.Ba()).valueOf(),
|
|
1678
1678
|
n=olympe.ui.Wa.jf();m?(l&&(n.Rj(l.valueOf()),l=void 0),f.update(olympe.j.ja.wb)):(l=n.Zc(()=>{f.update(olympe.j.ja.wb);n.Rj(l.valueOf());l=void 0}),f.update(olympe.j.ja.C))});d.appendChild(g,'datepicker input');d.appendChild(k,'datepicker toggle');c=new olympe.ui.D.Cd(c,0,8);c.appendChild(e,'calendar widget');k=new olympe.ui.D.cg(c.la(),!1,null,'floating');k.er(f.Ba());k.le(c);k.Qv(d,olympe.ui.D.cg.F.Nc,olympe.ui.D.cg.O.Ix);this.C(d,a);return d}};
|
|
1679
1679
|
olympe.sc.ui.X.$f.U=olympe.dc.Ra.C('01719cda197c37ff5018',olympe.sc.ui.X.$f);olympe.sc.ui.X.$f.valueProp=olympe.sc.ui.X.$f.U.ea('01719cdb1c36b870db0d');olympe.sc.ui.X.$f.Qa=olympe.sc.ui.X.$f.U.ea('01611e3015371b459ce8');olympe.sc.ui.X.$f.$=olympe.sc.ui.X.$f.U.ea('01611e3015371b459cf9');olympe.sc.ui.X.$f.O=olympe.sc.ui.X.$f.U.ea('01611e3015371b459cd5');
|
|
@@ -1699,10 +1699,10 @@ olympe.sc.ui.X.Ae.O=olympe.sc.ui.X.Ae.U.ea('01633eda39772493a535');olympe.sc.ui.
|
|
|
1699
1699
|
olympe.sc.ui.X.Ae.U.C=function(a,b){const c=a.create(olympe.sc.ui.X.Ae);c.setProperty(olympe.dc.CloudObject.nameProp,b);c.setProperty(olympe.sc.ui.Renderable.C,200);c.setProperty(olympe.sc.ui.Renderable.F,400);b=Yj(a,olympe.sc.ui.mv,'Item Renderer',!0);const d=Yj(a,b,'item renderer');c.setProperty(olympe.sc.ui.X.Ae.O,new olympe.dc.gg(d));a.Kb(olympe.sc.Runnable.ta,d,b);a.Kb(olympe.sc.Runnable.ga,d,b);a.Kb(olympe.dc.CloudObject.containsRel,c,b);return c.ca()};olympe.sc.ui.X.Jn=class extends olympe.sc.ui.nc{F(a){return super.F(a)}};olympe.sc.ui.X.Jn.U=olympe.dc.Ra.C('016995c9f3cd1db60dc7',olympe.sc.ui.X.Jn);olympe.sc.ui.X.Jn.$=olympe.sc.ui.X.Jn.U.ea('016343f1676b2cb4ad06');olympe.sc.ui.X.Jn.O=olympe.sc.ui.X.Jn.U.ea('016343f1676b131af556');olympe.sc.ui.X.Map=class extends olympe.sc.ui.Ja{constructor(a,b){super(a,b)}F(a){const b=new olympe.ui.Xa.Za.Map(this.la(a));this.C(b,a);b.Iu(this.Ga(olympe.sc.ui.X.Map.Ka,a,olympe.j.lb),this.Ga(olympe.sc.ui.X.Map.Qa,a,olympe.j.lb));b.ms(this.O(olympe.sc.ui.X.Map.$,a,olympe.j.aa,b.GC()));b.ls(this.O(olympe.sc.ui.X.Map.O,a,olympe.j.aa,b.EC()));b.ts(this.O(olympe.sc.ui.X.Map.Ea,a,olympe.j.aa,b.R()));const c=this.Ga(olympe.sc.ui.X.Map.Ha,a,olympe.sc.logic.Function,null);olympe.j.ab([this.Ga(olympe.sc.ui.X.Map.La,
|
|
1700
1700
|
a,olympe.j.Lg)],d=>{d&&d.forEach&&d.forEach((e,f)=>{olympe.j.ab([c],g=>{if(null===g)b.$r(f);else{const k=a.ao('object_to_marker'),[l]=g.getInputs(),[m,n]=g.getOutputs();k.set(l,e);g.run(k);olympe.j.ab([k.Ba(n,Number,!0),k.Ba(m,Number,!0)],(p,r)=>b.tt(p,r,f))}});olympe.j.ib().Vd(()=>b.$r(f))})});return b}};olympe.sc.ui.X.Map.U=olympe.dc.Ra.C('016426b17399ffc56c99',olympe.sc.ui.X.Map,olympe.dc.gn.da.sb);olympe.sc.ui.X.Map.Qa=olympe.sc.ui.X.Map.U.ea('016427a99e367fa6c09d');olympe.sc.ui.X.Map.Ab=olympe.sc.ui.X.Map.U.ea('01766b9dcec160a517e1');
|
|
1701
1701
|
olympe.sc.ui.X.Map.$=olympe.sc.ui.X.Map.U.ea('016427a9b97eea350e50');olympe.sc.ui.X.Map.O=olympe.sc.ui.X.Map.U.ea('016427a9cfb705df606e');olympe.sc.ui.X.Map.Ea=olympe.sc.ui.X.Map.U.ea('016427a9e5efd39a5071');olympe.sc.ui.X.Map.Ka=olympe.sc.ui.X.Map.U.ea('016436f8c0383becf392');olympe.sc.ui.X.Map.La=olympe.sc.ui.X.Map.U.ea('0164378b2cebf5cc6b6b');olympe.sc.ui.X.Map.Ha=olympe.sc.ui.X.Map.U.ea('0168ec49fe6e55ebe510');
|
|
1702
|
-
olympe.sc.ui.X.Map.U.C=(a,b)=>{a=a.create(olympe.sc.ui.X.Map);a.setProperty(olympe.dc.CloudObject.nameProp,b);a.setProperty(olympe.sc.ui.X.Map.Ka,olympe.N.Xa.Za.Map.C.zI);a.setProperty(olympe.sc.ui.X.Map.Qa,'streets-v11');a.setProperty(olympe.sc.ui.X.Map.O,46.5);a.setProperty(olympe.sc.ui.X.Map.$,6.5);a.setProperty(olympe.sc.ui.X.Map.Ea,10);a.setProperty(olympe.sc.ui.Renderable.C,500);a.setProperty(olympe.sc.ui.Renderable.F,500);return a.ca()};olympe.sc.ui.X.se=class extends olympe.sc.ui.Ja{F(a){const b=new olympe.ui.D.se(this.la(a));this.C(b,a);return b}};olympe.sc.ui.X.se.U=olympe.dc.Ra.C('01646f6a3fa5615a5bd1',olympe.sc.ui.X.se);olympe.sc.ui.X.se.U.C=function(a,b){a=a.create(olympe.sc.ui.X.se);a.setProperty(olympe.dc.CloudObject.nameProp,b);return a.ca()};function Pm(a,b){const c=a.la(b),d=new olympe.ui.D.He(c);a.C(d,b);a=new olympe.ui.D.gb(c);a.Fd(1,K());a.bc(olympe.ui.fa.tc.Nc);a
|
|
1703
|
-
function Sm(a,b,c,d){c.vO().Yh().fe(olympe.sc.ui.sf.C.
|
|
1702
|
+
olympe.sc.ui.X.Map.U.C=(a,b)=>{a=a.create(olympe.sc.ui.X.Map);a.setProperty(olympe.dc.CloudObject.nameProp,b);a.setProperty(olympe.sc.ui.X.Map.Ka,olympe.N.Xa.Za.Map.C.zI);a.setProperty(olympe.sc.ui.X.Map.Qa,'streets-v11');a.setProperty(olympe.sc.ui.X.Map.O,46.5);a.setProperty(olympe.sc.ui.X.Map.$,6.5);a.setProperty(olympe.sc.ui.X.Map.Ea,10);a.setProperty(olympe.sc.ui.Renderable.C,500);a.setProperty(olympe.sc.ui.Renderable.F,500);return a.ca()};olympe.sc.ui.X.se=class extends olympe.sc.ui.Ja{F(a){const b=new olympe.ui.D.se(this.la(a));this.C(b,a);return b}};olympe.sc.ui.X.se.U=olympe.dc.Ra.C('01646f6a3fa5615a5bd1',olympe.sc.ui.X.se);olympe.sc.ui.X.se.U.C=function(a,b){a=a.create(olympe.sc.ui.X.se);a.setProperty(olympe.dc.CloudObject.nameProp,b);return a.ca()};function Pm(a,b){const c=a.la(b),d=new olympe.ui.D.He(c);a.C(d,b);a=new olympe.ui.D.gb(c);a.Fd(1,K());a.bc(olympe.ui.fa.tc.Nc);a.$b(olympe.ui.fa.Hb.Vb);a.Rb('Screenflow');a.zb(c.na().jb(.1));a.jg(.5);d.appendChild(a,'label');return d}function Qm(a,b,c){(new olympe.dc.Aj(a.Gr(),b)).add(olympe.sc.ui.Vn.C).fe(olympe.sc.Vc.V).add(olympe.sc.Runnable.ta).Wc(d=>{if(d)throw d;c&&c()})}function Rm(a,b,c){(new olympe.dc.Aj(a,b)).fe(olympe.sc.Vc.V).fe(olympe.sc.ui.sf.C.cf()).fe(olympe.sc.ui.sf.F).Wc(c)}
|
|
1703
|
+
function Sm(a,b,c,d){c.vO().Yh().fe(olympe.sc.ui.sf.C.cf()).Gu(b).Td().forEach(e=>{olympe.j.ab([c.ca(),e.It(),e.Tt(),e.pz()],(f,g,k,l)=>{a.Ib.ds();if(f!==k.ca()){var m=g instanceof olympe.sc.ui.Iy?a:g,n=d.nl(f);n.on(l,d.vf().md(()=>{m===a&&d.remove(l);var p=d.nl(k);p=Jm(e,n,p);d.set('MAP_PROPS',p);d.set(olympe.sc.ui.X.Tk.O,k)}),m)}})})}function Tm(a,b,c){Wh(new olympe.dc.Aj(a,b),olympe.dc.Ve.ti).Wc(d=>{if(d)throw d;c&&c()})}
|
|
1704
1704
|
olympe.sc.ui.X.Tk=class extends olympe.sc.ui.Ja{constructor(a,b,c){super(a,b);this.Ib=c}update(a){a.set(olympe.sc.hc.Oh.Sq,this.F(a))}F(a){if(a.qo())return Pm(this,a);const b=this.la(a),c=new olympe.ui.D.He(b);this.C(c,a);const d=this.Gr(),e=this.Ga(olympe.sc.ui.X.Tk.O,a,olympe.sc.ui.Screen),f=a.Wt()?olympe.dc.Ph.ct:olympe.dc.Ph.SUBSCRIBE;Qm(this,f,()=>{const n=d.O();if(void 0===olympe.j.Ua(e)){const p=olympe.j.Ua(n);void 0!==p&&a.set(olympe.sc.ui.X.Tk.O,p)}olympe.j.Fg([n],p=>{a.set(olympe.sc.ui.X.Tk.O,
|
|
1705
|
-
p)})});const g=[],k=olympe.j.ib(),l=olympe.j.qb(olympe.sc.ui.Screen,'Screenflow loaded screen');Rm(d,f,()=>{Sm(this,d.WL().Yh().di([olympe.sc.ui.Iy]).fe(olympe.sc.ui.sf.C.
|
|
1705
|
+
p)})});const g=[],k=olympe.j.ib(),l=olympe.j.qb(olympe.sc.ui.Screen,'Screenflow loaded screen');Rm(d,f,()=>{Sm(this,d.WL().Yh().di([olympe.sc.ui.Iy]).fe(olympe.sc.ui.sf.C.cf()).Td(),l.Ba(),a)});olympe.j.ab([e],n=>{g.includes(n.ca())?l.update(n):k.run(()=>Tm(n,f,()=>{g.push(n.ca());olympe.dc.Gb(e)!==n.ca()&&this.Y.warn(`The selected screen ${olympe.dc.Gb(e)} has changed while the loading of another one ${n.ca()}`);l.update(n)}))},'Screenflow process screen change');let m=null;olympe.j.ab([l],n=>{const p=
|
|
1706
1706
|
a.nl(n);m&&m.destroy();m=p;n.run(p);Gm(b,p);p.Bx(olympe.sc.hc.Oh.Sq).then(r=>{c.appendChild(r,'screen')}).catch(()=>this.Y.warn(`Screen ${n.ca()} has not been rendered.`))},'Screenflow render loaded screen');return c}T(){return(new olympe.dc.hr(this)).wL().di([olympe.sc.ui.Screen]).Td()}};olympe.sc.ui.X.Tk.U=olympe.dc.Ra.C('0163f87334925ee199c4',olympe.sc.ui.X.Tk,olympe.Aa.da.sb);olympe.sc.ui.X.Tk.O=olympe.sc.ui.X.Tk.U.ea('016e608cbdeab7a480ce');olympe.sc.ui.X.Kd=class extends olympe.sc.ui.Ja{F(a){var b=this.Ga(olympe.sc.ui.X.Kd.Ea,a,olympe.j.aa);const c=this.Ga(olympe.sc.ui.X.Kd.Ka,a,olympe.j.aa),d=this.Ga(olympe.sc.ui.X.Kd.O,a,olympe.j.aa);b=new olympe.ui.D.Kd(this.la(a),b,c,d);b.Bf(this.O(olympe.sc.ui.X.Kd.valueProp,a,Number,olympe.j.fb([b.getValue()],e=>e.valueOf(),Number)));this.C(b,a);b.$N(this.Ga(olympe.sc.ui.X.Kd.$,a,olympe.j.Color));b.Ih(this.Ga(olympe.sc.ui.X.Kd.Qa,a,olympe.j.aa));b.nO(this.Ga(olympe.sc.ui.X.Kd.ec,a,olympe.j.Color));
|
|
1707
1707
|
b.pO(this.Ga(olympe.sc.ui.X.Kd.Ab,a,olympe.j.Color));b.mO(this.Ga(olympe.sc.ui.X.Kd.vc,a,olympe.j.aa));b.lO(this.Ga(olympe.sc.ui.X.Kd.Mb,a,olympe.j.Color));b.oO(this.Ga(olympe.sc.ui.X.Kd.La,a,olympe.j.Color));Am(a,olympe.sc.ui.X.Kd.Ha,b.HN.bind(b),b.FN.bind(b));return b}};olympe.sc.ui.X.Kd.U=olympe.dc.Ra.C('0163df0bbf0d8c8ca7d3',olympe.sc.ui.X.Kd);olympe.sc.ui.X.Kd.valueProp=olympe.sc.ui.X.Kd.U.ea('0163df0bc2f7d39a2396');olympe.sc.ui.X.Kd.Ea=olympe.sc.ui.X.Kd.U.ea('0163df0bc9635729e324');
|
|
1708
1708
|
olympe.sc.ui.X.Kd.Ka=olympe.sc.ui.X.Kd.U.ea('0163df0bca9e746a1bda');olympe.sc.ui.X.Kd.O=olympe.sc.ui.X.Kd.U.ea('01697cd892e2698db26b');olympe.sc.ui.X.Kd.Qa=olympe.sc.ui.X.Kd.U.ea('01697cd8ffd33aa56287');olympe.sc.ui.X.Kd.$=olympe.sc.ui.X.Kd.U.ea('01697cd93f436566d0c9');olympe.sc.ui.X.Kd.ec=olympe.sc.ui.X.Kd.U.ea('01697cd97974dfd25476');olympe.sc.ui.X.Kd.Ab=olympe.sc.ui.X.Kd.U.ea('01697cd9b11eb39a003d');olympe.sc.ui.X.Kd.Mb=olympe.sc.ui.X.Kd.U.ea('01697cd9f6f7d89034ec');olympe.sc.ui.X.Kd.vc=olympe.sc.ui.X.Kd.U.ea('016980a2557456722aae');
|
|
@@ -1713,18 +1713,18 @@ c=>{c.valueOf()?b.play():b.pause()});olympe.j.Fg([b.F.Ba()],c=>{a.set(olympe.sc.
|
|
|
1713
1713
|
olympe.sc.ui.X.Dd.U=olympe.dc.Ra.C('016c0401e076eb532509',olympe.sc.ui.X.Dd);olympe.sc.ui.X.Dd.urlProp=olympe.sc.ui.X.Dd.U.ea('016c0401e076eb53250a');olympe.sc.ui.X.Dd.$=olympe.sc.ui.X.Dd.U.ea('016c0401e076eb53250f');olympe.sc.ui.X.Dd.Ea=olympe.sc.ui.X.Dd.U.ea('016c0401e076eb53250b');olympe.sc.ui.X.Dd.Qa=olympe.sc.ui.X.Dd.U.ea('016c0401e076eb53250c');olympe.sc.ui.X.Dd.La=olympe.sc.ui.X.Dd.U.ea('016c0401e076eb53250e');olympe.sc.ui.X.Dd.O=olympe.sc.ui.X.Dd.U.ea('016c0401e076eb53250d');
|
|
1714
1714
|
olympe.sc.ui.X.Dd.Ab=olympe.sc.ui.X.Dd.U.ea('016c0401e076eb532511');olympe.sc.ui.X.Dd.Ha=olympe.sc.ui.X.Dd.U.ea('016c0401e076eb532510');olympe.sc.ui.X.Dd.Ka=olympe.sc.ui.X.Dd.U.ea('016c0401e076eb532512');
|
|
1715
1715
|
olympe.sc.ui.X.Dd.U.C=function(a,b){a=a.create(olympe.sc.ui.X.Dd);b&&a.setProperty(olympe.dc.CloudObject.nameProp,b);a.setProperty(olympe.sc.ui.Renderable.C,olympe.j.Ca(384));a.setProperty(olympe.sc.ui.Renderable.F,olympe.j.Ca(216));a.setProperty(olympe.sc.ui.X.Dd.urlProp,olympe.j.jc('https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_10mb.mp4'));a.setProperty(olympe.sc.ui.X.Dd.Ea,olympe.j.ja.C);a.setProperty(olympe.sc.ui.X.Dd.$,olympe.j.ja.wb);a.setProperty(olympe.sc.ui.X.Dd.O,olympe.j.ja.wb);
|
|
1716
|
-
a.setProperty(olympe.sc.ui.X.Dd.Qa,olympe.j.ja.wb);a.setProperty(olympe.sc.ui.X.Dd.Ka,olympe.j.ja.wb);a.setProperty(olympe.sc.ui.X.Dd.La,olympe.j.aa.ONE);return a.ca()};olympe.sc.ui.X.
|
|
1717
|
-
olympe.j.Fg([this.Ga(olympe.sc.ui.X.
|
|
1718
|
-
olympe.sc.ui.X.
|
|
1719
|
-
olympe.sc.ui.X.
|
|
1716
|
+
a.setProperty(olympe.sc.ui.X.Dd.Qa,olympe.j.ja.wb);a.setProperty(olympe.sc.ui.X.Dd.Ka,olympe.j.ja.wb);a.setProperty(olympe.sc.ui.X.Dd.La,olympe.j.aa.ONE);return a.ca()};olympe.sc.ui.X.bf=class extends olympe.sc.ui.Ja{F(a){if(a.qo()){var b=this.la(a);b=new olympe.ui.D.He(b);b.tg('images/video-gallery.svg',olympe.ui.fa.Vg.Qq,olympe.ui.fa.Re.Vb);this.C(b,a);return b}const c=new olympe.ui.D.xd(this.la(a));c.rj(this.Ga(olympe.sc.ui.X.bf.Ha,a,olympe.sc.mt));this.C(c,a);c.Ji(this.Ga(olympe.sc.ui.X.bf.O,a,olympe.j.ja));olympe.j.Fg([c.C.Ba()],d=>{a.set(olympe.sc.ui.X.bf.O,d)});c.hi(this.Ga(olympe.sc.ui.X.bf.Ka,a,olympe.j.ja));c.ei(this.Ga(olympe.sc.ui.X.bf.Qa,a,olympe.j.ja));
|
|
1717
|
+
olympe.j.Fg([this.Ga(olympe.sc.ui.X.bf.$,a,olympe.j.ja)],d=>{d?c.play():c.pause()});olympe.j.Fg([c.F.Ba()],d=>{a.set(olympe.sc.ui.X.bf.$,d.Rf())});c.sj(this.O(olympe.sc.ui.X.bf.Ea,a,olympe.j.aa,c.volume.Ba(),olympe.j.aa.ONE));return c}};olympe.sc.ui.X.bf.U=olympe.dc.Ra.C('016422317da4f7fdca4e',olympe.sc.ui.X.bf);olympe.sc.ui.X.bf.Ha=olympe.sc.ui.X.bf.U.ea('01642231cb7e8d6f1dac');olympe.sc.ui.X.bf.O=olympe.sc.ui.X.bf.U.ea('01642231cb7e8d6f1dad');olympe.sc.ui.X.bf.Ka=olympe.sc.ui.X.bf.U.ea('016bf9adeb55b015353c');
|
|
1718
|
+
olympe.sc.ui.X.bf.Qa=olympe.sc.ui.X.bf.U.ea('016bf9adeb55b015353d');olympe.sc.ui.X.bf.Ea=olympe.sc.ui.X.bf.U.ea('016bf9adeb55b015353e');olympe.sc.ui.X.bf.$=olympe.sc.ui.X.bf.U.ea('016bf9adeb55b015353f');
|
|
1719
|
+
olympe.sc.ui.X.bf.U.C=function(a,b){a=a.create(olympe.sc.ui.X.bf);b&&a.setProperty(olympe.dc.CloudObject.nameProp,b);a.setProperty(olympe.sc.ui.Renderable.C,olympe.j.Ca(384));a.setProperty(olympe.sc.ui.Renderable.F,olympe.j.Ca(216));a.setProperty(olympe.sc.ui.X.bf.Ka,olympe.j.ja.wb);a.setProperty(olympe.sc.ui.X.bf.O,olympe.j.ja.C);a.setProperty(olympe.sc.ui.X.bf.$,olympe.j.ja.C);a.setProperty(olympe.sc.ui.X.bf.Qa,olympe.j.ja.C);a.setProperty(olympe.sc.ui.X.bf.Ea,olympe.j.aa.ONE);return a.ca()};olympe.sc.ui.Qb={};function Um(a,b,c,d,e,f,g){const k=c.ca(),l=f.vf().run(()=>f.nl(k));olympe.j.Gw([l.Ba(olympe.sc.hc.Oh.Sq,olympe.ui.D.vb,!0)],m=>{m.nj(!0);b.appendChild(m,k+'_'+a.db.name(k),d,e);Vm(a,f,l,m,g)})}function Wm(a,b,c,d,e,f=olympe.j.lb.EMPTY){f!==olympe.j.lb.EMPTY&&olympe.j.Fg([f],g=>{g=g.valueOf();b.ig();d.$h((k,l,m)=>{Um(a,b,k,g,m.hf(l),c,e)})});d.forEach((g,k,l)=>{const m=olympe.j.Ua(f).valueOf();Um(a,b,g,m,l.hf(k),c,e)})}
|
|
1720
1720
|
function Vm(a,b,c,d,e){var f=olympe.sc.ui.nc.T,g=olympe.sc.ui.Renderable.C,k=olympe.sc.ui.Renderable.F;const l=Xl(a,olympe.sc.ui.nc.R);f=Xl(a,f);g=Xl(a,g);k=Xl(a,k);const m=d.la(),n=a.C(b);a=a.F(b);b=olympe.j.cb(n,()=>e.ra(),()=>m.ra(),olympe.j.aa);const p=olympe.j.cb(a,()=>e.na(),()=>m.na(),olympe.j.aa),r=(t,u,w)=>{void 0===w?olympe.j.ab([u],v=>{c.set(t,v.valueOf())}):olympe.j.ab([u,w],(v,x)=>{x.valueOf()?c.set(t,v.valueOf()):c.remove(t)});olympe.j.ib().onDestroy(()=>c.remove(t))};d=d.Pe();r(f,d.ra());
|
|
1721
1721
|
r(l,d.na());r(g,p,a);r(k,b,n)}olympe.sc.ui.Qb.fk=class extends olympe.sc.ui.gr{bs(){}F(){}C(){}};olympe.sc.ui.Qb.fk.F={Rx:'distributed',Vf:'manual'};olympe.sc.ui.Qb.He=class extends olympe.sc.ui.gr{bs(a,b){const c=olympe.j.aa,d=olympe.sc.ui.Ja.kW,e=new olympe.j.ia(this.Ga(olympe.sc.ui.Renderable.C,a,c,c.ZERO,!0),this.Ga(olympe.sc.ui.Renderable.F,a,c,c.ZERO,!0)),f=new olympe.ui.D.He(e),g=new olympe.j.Od('layout rendering context'),k=[];olympe.j.Fg([b.ed()],m=>{for(let n=k.length,p=m;n>p;n--)f.removeChild('l'+(n-1)),k.pop()});const l=a.vf();b.forEach((m,n,p)=>{const r=m.ca(),t=l.run(()=>a.nl(r)),u=t.Ba(olympe.sc.hc.Oh.Sq,olympe.ui.D.vb,!0);u.setPosition(m.Pe(t));
|
|
1722
1722
|
u.Tg(m.Ga(d,t,c,c.ZERO));olympe.j.ab([p.hf(n)],w=>{w=w.valueOf();void 0===k[w]&&g.run(()=>{k[w]=(new olympe.ui.D.He).Op().nj(!0).Jb(e).Hi(!0);f.appendChild(k[w],'l'+w)});var v=a.dw();null!==v&&this.db.ue(v)&&(v=this.db.model(v),null!==v&&this.db.Mz(r,olympe.sc.Runnable.bU,v)&&k[w].appendChild(u,r+'_'+this.db.name(r)))})});return f}F(){return olympe.j.ja.wb}C(){return olympe.j.ja.wb}};olympe.sc.ui.Qb.He.U=olympe.dc.Ra.C('016c2458e07561155a49',olympe.sc.ui.Qb.He);olympe.sc.ui.Qb.he=class extends olympe.sc.ui.Qb.fk{bs(a,b){var c=olympe.j.lb,d=olympe.j.aa;const e=olympe.j.ia,f=olympe.ui.D.he;var g=olympe.ui.fa.tc.Nc;const k=olympe.sc.ui.Qb.fk.F.Vf,l=olympe.sc.ui.Qb.fk.F.Rx,m=olympe.sc.ui.Qb.he.R,n=olympe.sc.ui.Qb.he.$;var p=olympe.sc.ui.Qb.he.V,r=olympe.sc.ui.Qb.he.T,t=this.Ga(olympe.sc.ui.Renderable.C,a,d,d.ZERO,!0);const u=this.Ga(olympe.sc.ui.Renderable.F,a,d,d.ZERO,!0);p=this.Ga(p,a,d,d.ZERO,!0);g=this.Ga(n,a,c,g,!0);c=this.Ga(m,a,c,k,!0);r=this.Ga(r,a,
|
|
1723
|
-
d,olympe.j.Ca(-1),!0);t=olympe.j.fb([c,t,b.ed(),p],(w,v,x,y)=>olympe.j.Ca(w.valueOf()===l&&0<x?(v-(x-1)*y)/x:-1),olympe.j.aa);d=new f(u,p,d.ZERO,d.ZERO);Wm(this,d,a,b,new e(t,r),g);return d}F(a){const b=olympe.sc.ui.Qb.fk.F.Rx;return this.Ga(olympe.sc.ui.Qb.he.R,a,olympe.j.lb,olympe.sc.ui.Qb.fk.F.Vf).
|
|
1723
|
+
d,olympe.j.Ca(-1),!0);t=olympe.j.fb([c,t,b.ed(),p],(w,v,x,y)=>olympe.j.Ca(w.valueOf()===l&&0<x?(v-(x-1)*y)/x:-1),olympe.j.aa);d=new f(u,p,d.ZERO,d.ZERO);Wm(this,d,a,b,new e(t,r),g);return d}F(a){const b=olympe.sc.ui.Qb.fk.F.Rx;return this.Ga(olympe.sc.ui.Qb.he.R,a,olympe.j.lb,olympe.sc.ui.Qb.fk.F.Vf).df(b)}C(a){return this.Ga(olympe.sc.ui.Qb.he.T,a,olympe.j.aa,olympe.j.Ca(-1)).Oj(-1)}};olympe.sc.ui.Qb.he.U=olympe.dc.Ra.C('016c2464cd56eb1d285e',olympe.sc.ui.Qb.he);olympe.sc.ui.Qb.he.$=olympe.sc.ui.Qb.he.U.ea('016c2465994ea70d575b');
|
|
1724
1724
|
olympe.sc.ui.Qb.he.R=olympe.sc.ui.Qb.he.U.ea('016c2465d49a1b57c37b');olympe.sc.ui.Qb.he.V=olympe.sc.ui.Qb.he.U.ea('016c24662dd291131b36');olympe.sc.ui.Qb.he.T=olympe.sc.ui.Qb.he.U.ea('016c246628ec25819a59');olympe.sc.ui.Qb.he.U.C=a=>{const b=a.create(olympe.sc.ui.Qb.he);a.Kb(olympe.sc.mg.C,b,olympe.sc.ui.nc.R);a.Kb(olympe.sc.mg.C,b,olympe.sc.ui.nc.T);return b.ca()};olympe.sc.ui.Qb.Lf=class extends olympe.sc.ui.Qb.fk{bs(a,b){var c=olympe.j.aa,d=olympe.j.ja;const e=olympe.j.ia;var f=olympe.ui.D.Lf,g=olympe.sc.ui.Qb.Lf.R,k=olympe.sc.ui.Qb.Lf.V,l=olympe.sc.ui.Qb.Lf.ka;const m=olympe.sc.ui.Qb.Lf.$,n=olympe.sc.ui.Qb.Lf.T,p=this.Ga(olympe.sc.ui.Renderable.C,a,c,c.ZERO,!0),r=this.Ga(olympe.sc.ui.Renderable.F,a,c,c.ZERO,!0);g=this.Ga(g,a,c,olympe.j.Ca(50),!0);k=this.Ga(k,a,c,c.ZERO,!0);l=this.Ga(l,a,c,c.ZERO,!0);c=this.Ga(m,a,c,c.ZERO,!0);d=this.Ga(n,a,d,d.wb,!0);f=
|
|
1725
1725
|
new f(p,r,g,k,l,c);f.TN(d);Wm(this,f,a,b,new e(g,-1));return f}F(a){return this.Ga(olympe.sc.ui.Qb.Lf.R,a,olympe.j.aa,olympe.j.Ca(50)).Oj(-1)}C(){return olympe.j.ja.wb}};olympe.sc.ui.Qb.Lf.U=olympe.dc.Ra.C('016c2466cfdfb79fda99',olympe.sc.ui.Qb.Lf);olympe.sc.ui.Qb.Lf.R=olympe.sc.ui.Qb.Lf.U.ea('016c24674d58a6863271');olympe.sc.ui.Qb.Lf.V=olympe.sc.ui.Qb.Lf.U.ea('016c24679171effcf472');olympe.sc.ui.Qb.Lf.ka=olympe.sc.ui.Qb.Lf.U.ea('016c2467dd3812adac6e');olympe.sc.ui.Qb.Lf.$=olympe.sc.ui.Qb.Lf.U.ea('016c2467fa3c2444dfec');
|
|
1726
1726
|
olympe.sc.ui.Qb.Lf.T=olympe.sc.ui.Qb.Lf.U.ea('016c24680a7ae4f6964c');olympe.sc.ui.Qb.Lf.Qa=olympe.sc.ui.Qb.Lf.U.ea('016c2468a81749b0dea5');olympe.sc.ui.Qb.Lf.U.C=a=>{const b=a.create(olympe.sc.ui.Qb.Lf);a.Kb(olympe.sc.mg.C,b,olympe.sc.ui.nc.R);a.Kb(olympe.sc.mg.C,b,olympe.sc.ui.nc.T);a.Kb(olympe.sc.mg.C,b,olympe.sc.ui.Renderable.C);return b.ca()};olympe.sc.ui.Qb.Cd=class extends olympe.sc.ui.Qb.fk{bs(a,b){var c=olympe.j.lb,d=olympe.j.aa;const e=olympe.j.ia,f=olympe.ui.D.Cd;var g=olympe.ui.fa.Hb.Vb;const k=olympe.sc.ui.Qb.fk.F.Vf,l=olympe.sc.ui.Qb.fk.F.Rx,m=olympe.sc.ui.Qb.Cd.V,n=olympe.sc.ui.Qb.Cd.T;var p=olympe.sc.ui.Qb.Cd.$,r=olympe.sc.ui.Qb.Cd.R;const t=this.Ga(olympe.sc.ui.Renderable.C,a,d,d.ZERO,!0);var u=this.Ga(olympe.sc.ui.Renderable.F,a,d,d.ZERO,!0);p=this.Ga(p,a,d,d.ZERO,!0);g=this.Ga(m,a,c,g,!0);c=this.Ga(n,a,c,k,!0);r=this.Ga(r,
|
|
1727
|
-
a,d,olympe.j.Ca(-1),!0);u=olympe.j.fb([c,u,b.ed(),p],(w,v,x,y)=>olympe.j.Ca(w.valueOf()===l&&0<x?(v-(x-1)*y)/x:-1),olympe.j.aa);d=new f(t,p,d.ZERO,d.ZERO);Wm(this,d,a,b,new e(r,u),g);return d}F(a){return this.Ga(olympe.sc.ui.Qb.Cd.R,a,olympe.j.aa,olympe.j.Ca(-1)).Oj(-1)}C(a){const b=olympe.sc.ui.Qb.fk.F.Rx;return this.Ga(olympe.sc.ui.Qb.Cd.T,a,olympe.j.lb,olympe.sc.ui.Qb.fk.F.Vf).
|
|
1727
|
+
a,d,olympe.j.Ca(-1),!0);u=olympe.j.fb([c,u,b.ed(),p],(w,v,x,y)=>olympe.j.Ca(w.valueOf()===l&&0<x?(v-(x-1)*y)/x:-1),olympe.j.aa);d=new f(t,p,d.ZERO,d.ZERO);Wm(this,d,a,b,new e(r,u),g);return d}F(a){return this.Ga(olympe.sc.ui.Qb.Cd.R,a,olympe.j.aa,olympe.j.Ca(-1)).Oj(-1)}C(a){const b=olympe.sc.ui.Qb.fk.F.Rx;return this.Ga(olympe.sc.ui.Qb.Cd.T,a,olympe.j.lb,olympe.sc.ui.Qb.fk.F.Vf).df(b)}};olympe.sc.ui.Qb.Cd.U=olympe.dc.Ra.C('016c245de13d033efad4',olympe.sc.ui.Qb.Cd);olympe.sc.ui.Qb.Cd.V=olympe.sc.ui.Qb.Cd.U.ea('016c2463a6aab57119e9');
|
|
1728
1728
|
olympe.sc.ui.Qb.Cd.T=olympe.sc.ui.Qb.Cd.U.ea('016c245e748f56bc527c');olympe.sc.ui.Qb.Cd.$=olympe.sc.ui.Qb.Cd.U.ea('016c24642a7b84145c27');olympe.sc.ui.Qb.Cd.R=olympe.sc.ui.Qb.Cd.U.ea('016c2464540a0699987e');olympe.sc.ui.Qb.Cd.U.C=a=>{const b=a.create(olympe.sc.ui.Qb.Cd);a.Kb(olympe.sc.mg.C,b,olympe.sc.ui.nc.R);a.Kb(olympe.sc.mg.C,b,olympe.sc.ui.nc.T);return b.ca()};olympe.sc.ui.logic={};function Xm(a,b,c,d,e){var f=new olympe.ui.media.ac.kP;md(a.F,g=>{a.F.Ft(k=>{let l=null,m=null;k.forEach(n=>{null===l&&(l=n);const p=n.Sa().toLowerCase().toString();if(e instanceof olympe.ui.media.ac.BE&&-1!==p.indexOf('back')||e instanceof olympe.ui.media.ac.DF&&-1!==p.indexOf('front'))m=n});k=[];null!==m?(null!==g&&k.push([m,g]),null!==f&&k.push([m,f])):(null!==l&&null!==g&&k.push([l,g]),null!==e&&null!==g&&k.push([e,g]),null!==l&&null!==f&&k.push([l,f]),null!==e&&null!==f&&k.push([e,f]));a.call(b,
|
|
1729
1729
|
c,k,d)})})}
|
|
1730
1730
|
olympe.sc.ui.logic.Ns=class extends olympe.sc.logic.Function{constructor(a,b,c,d){super(a,b,c);this.F=d}C(){olympe.sc.ui.logic.Ns.C||(olympe.sc.ui.logic.Ns.C=new olympe.ui.media.ac.DF);return olympe.sc.ui.logic.Ns.C}run(a){a.qo()||fm(this,a,(b,c)=>{Xm(this,c,a,b,this.C())})}call(a,b,c,d){if(0===c.length)this.Y.warn('Impossible to create stream: no audio or video available');else{var e=c.pop(),f=Ym(b,e[0],e[1]);f.es(!d.valueOf());f.Dm();olympe.j.ab([f.C()],g=>{g.valueOf()?a(f):this.call(a,b,c,d)})}}};
|
|
@@ -1733,14 +1733,14 @@ olympe.sc.ui.logic.Ns.C=null;olympe.sc.logic.Ra.C('0164220be1a6a1906841',olympe.
|
|
|
1733
1733
|
c.kc(0);c.hd(this.V);c.bd(1);c.Yj(this.C);J(c.La,this.V);J(c.R,this.V);break;case olympe.sc.Yd.ag.C.ZS:c.Jb(new olympe.j.ia(this.fontSize.jb(12),this.fontSize.jb(3)));c.yb('Helvetica');c.zb(this.fontSize);c.Db(100);c.Na(this.Cb);c.ob(this.ka);c.kc(0);c.hd(this.Cb);c.bd(1);break;case olympe.sc.Yd.ag.C.UA:c.Jb(new olympe.j.ia(0,90));c.yb('Helvetica');c.Db(100);break;case olympe.sc.Yd.ag.C.KB:c.Jb(new olympe.j.ia(10,90));c.yb('Helvetica');c.Db(100);break;default:c.Jb(new olympe.j.ia(this.fontSize.jb(12),
|
|
1734
1734
|
this.fontSize.jb(3))),c.yb('Helvetica'),c.zb(16),c.Db(100),c.Na(olympe.j.Color.create(69,90,100)),b=olympe.j.Color.create(255,255,255,.8),J(c.R,b),c.ob(this.Ea),c.kc(5),c.hd(O()),c.bd(1),c.gh(new olympe.j.ia(0,0),5,1,olympe.j.Color.create(0,0,0,.2)),c.Yj(olympe.j.Color.create(69,90,100))}return c})}Mt(a){return S(this,'label',olympe.ui.D.ba.Sh,a,b=>{let c=new olympe.ui.D.ba.Sh;c.yb('Helvetica');c.Db(100);c.zb(this.fontSize);c.ob(this.ka);c.bc(olympe.ui.fa.tc.Nc);switch(b){case olympe.sc.Yd.ag.F.$D:c.Db(700);
|
|
1735
1735
|
break;case olympe.sc.Yd.ag.F.ir:c.Ec(this.fontSize.Va(2)),c.Ic(this.fontSize.Va(2)),c.ob(this.Ea),c.zb(this.fontSize.jb(.8))}return c})}uw(a){return S(this,'textField',olympe.ui.D.ba.Yk,a,b=>{let c=new olympe.ui.D.ba.Yk;c.ob(this.ka);c.Sg(this.Kc);c.sd(2);c.rd(2);c.Ec(8);c.Ic(8);c.zb(this.fontSize.jb(.8));c.Db(100);c.hd(this.Qa);c.bd(1);c.Na(this.C);switch(b){case olympe.sc.Yd.ag.V.ir:c.Ec(2);c.Ic(2);c.sd(1);c.rd(1);c.hd(this.T);break;default:c.Na(olympe.j.Color.create(234,234,234)),c.gh(new olympe.j.ia(0,
|
|
1736
|
-
1),2,0,olympe.j.Color.create(0,0,0,.2),!0),c.kc(5),c.hd(olympe.j.Color.create(128,128,128,.2)),c.ob(olympe.j.Color.create(128,128,128)),c.Db(400)}return c})}tw(a){return S(this,'textArea',olympe.ui.D.ba.Xk,a,()=>{let b=new olympe.ui.D.ba.Xk;b.Na(this.$);b.ob(this.ka);b.hd(this.Qa);b.zb(12);b.yb('Helvetica')})}iw(a){return S(this,olympe.ui.D.ba.mi.
|
|
1737
|
-
case olympe.sc.Yd.ag.O.cQ:c.Na(this.ic);break;default:c.Na(this.C),c.hd(this.Qa),c.bd(1),c.ly('images/arrow.png'),b=new olympe.j.ia(this.fontSize.jb(.6),this.fontSize.jb(.6)),J(c.C,b),b=new olympe.ui.D.ba.dd,b.Na(this.C),b.hd(this.Qa),b.bd(1),b.gh(new olympe.j.ia(2,2),5),J(c.F,b)}return c})}ew(){return S(this,olympe.ui.D.ba.ki.
|
|
1736
|
+
1),2,0,olympe.j.Color.create(0,0,0,.2),!0),c.kc(5),c.hd(olympe.j.Color.create(128,128,128,.2)),c.ob(olympe.j.Color.create(128,128,128)),c.Db(400)}return c})}tw(a){return S(this,'textArea',olympe.ui.D.ba.Xk,a,()=>{let b=new olympe.ui.D.ba.Xk;b.Na(this.$);b.ob(this.ka);b.hd(this.Qa);b.zb(12);b.yb('Helvetica')})}iw(a){return S(this,olympe.ui.D.ba.mi.Yb,olympe.ui.D.ba.mi,a,b=>{let c=new olympe.ui.D.ba.mi;switch(b){case olympe.sc.Yd.ag.O.bQ:c.Na(this.C);break;case olympe.sc.Yd.ag.O.dQ:c.Na(this.V);break;
|
|
1737
|
+
case olympe.sc.Yd.ag.O.cQ:c.Na(this.ic);break;default:c.Na(this.C),c.hd(this.Qa),c.bd(1),c.ly('images/arrow.png'),b=new olympe.j.ia(this.fontSize.jb(.6),this.fontSize.jb(.6)),J(c.C,b),b=new olympe.ui.D.ba.dd,b.Na(this.C),b.hd(this.Qa),b.bd(1),b.gh(new olympe.j.ia(2,2),5),J(c.F,b)}return c})}ew(){return S(this,olympe.ui.D.ba.ki.Yb,olympe.ui.D.ba.ki,void 0,a=>{const b=new olympe.ui.D.ba.ki;b.sz().Jb(new olympe.j.ia(60,30));b.xf().Na(olympe.j.Color.create(230,230,230));b.xf().hd(olympe.j.Color.create(191,
|
|
1738
1738
|
191,191));b.xf().bd(2);b.xf().kc(100);b.Dg().Na(olympe.j.Color.create(60,187,51));b.Dg().kc(100);b.yf().hd(olympe.j.Color.create(191,191,191));b.yf().bd(2);b.yf().kc(100);b.yf().Na(olympe.j.Color.create(230,230,230));b.wf().hd(olympe.j.Color.create(191,191,191));b.wf().bd(2);b.wf().kc(100);b.wf().Na(olympe.j.Color.create(230,230,230));switch(a){case olympe.sc.Yd.ag.R.ir:b.wf().hd(this.T),b.wf().bd(1),b.Dg().hd(this.T),b.Dg().bd(1),b.xf().hd(this.T),b.xf().bd(1),b.yf().hd(this.T),b.yf().bd(1)}return b})}vz(a){return S(this,
|
|
1739
1739
|
'',olympe.ui.D.ba.Zl,a,()=>{let b=new olympe.ui.D.ba.Zl;var c=new olympe.ui.D.ba.dd;c.Jb(new olympe.j.ia(206,19));c.bd(olympe.j.aa.ONE);c.kc(olympe.j.Ca(10));b.C=c;c=new olympe.ui.D.ba.dd;c.Jb(new olympe.j.ia(12,24));c.bd(olympe.j.aa.ONE);c.kc(olympe.j.Ca(10));b.F=c;c=new olympe.ui.D.ba.dd;c.Jb(new olympe.j.ia(12,24));c.bd(olympe.j.aa.ONE);c.kc(olympe.j.Ca(10));b.O=c;return b})}ow(a){return S(this,'popupPanel',olympe.ui.D.ba.Fj,a,()=>{let b=new olympe.ui.D.ba.Fj;J(b.C,this.Ib);b.Na(this.C);return b})}Br(a){return S(this,
|
|
1740
1740
|
'alert',olympe.ui.D.ba.Fk,a,()=>{let b=new olympe.ui.D.ba.Fk;b.Jb(new olympe.j.ia(360,1));b.be(!1);b.Xd(!0);J(b.C,this.Ib);b.Na(this.C);var c=this.fontSize.jb(1.5);J(b.F,c);b.Hf(this.fontSize.jb(1.5));J(b.O,olympe.sc.Yd.ag.F.$D);J(b.R,olympe.sc.Yd.ag.C.cJ);b.kc(0);return b})}sw(a){return S(this,'tabPanel',olympe.ui.D.ba.Wk,a,()=>{let b=new olympe.ui.D.ba.Wk;b.Na(this.C);rd(b);J(b.C,olympe.j.ha(this.fontSize));J(b.F,olympe.j.ha(100));sd(b);td(b);ud(b);return b})}kw(a){return S(this,'grid',olympe.ui.D.ba.Bj,
|
|
1741
1741
|
a,()=>{let b=new olympe.ui.D.ba.Bj;b.Na(this.$);J(b.C,olympe.sc.Yd.ag.F.UA);J(b.F,olympe.sc.Yd.ag.F.KB);b.Vj(30);qd(b);return b})}lz(a){return S(this,'bubble',olympe.ui.D.ba.Yo,a,()=>{let b=new olympe.ui.D.ba.Yo;J(b.F,10);J(b.O,5);J(b.R,10);var c=olympe.j.Color.create(255,255,255);J(b.T,c);c=olympe.j.Color.create(200,200,200);J(b.V,c);J(b.ga,1);return b})}Kt(a){return S(this,'inputPopup',olympe.ui.D.ba.Nk,a,()=>{let b=new olympe.ui.D.ba.Nk;b.Jb(new olympe.j.ia(500,1));b.be(!1);b.Xd(!0);var c=olympe.j.Color.create(0,
|
|
1742
|
-
0,0,.6);J(b.C,c);b.Na(this.$);J(b.F,10);b.Hf(10);J(b.R,5);J(b.T,5);J(b.O,'Helvetica');return b})}Dz(a){return S(this,'windowComponent',olympe.ui.D.ba.Jp,a,()=>{let b=new olympe.ui.D.ba.Jp;J(b.V,olympe.j.ha(40));J(b.R,olympe.j.ha(100));J(b.T,olympe.j.ha(100));vd(b);wd(b);J(b.C,1);var c=new olympe.j.ia(25,25);J(b.F,c);J(b.O,'images/close.png');return b})}xz(a){return S(this,olympe.ui.D.ba.$l.
|
|
1743
|
-
d.aA(1),c.Na(this.T)}return d})}rz(a){return S(this,olympe.ui.D.ba.nf.
|
|
1742
|
+
0,0,.6);J(b.C,c);b.Na(this.$);J(b.F,10);b.Hf(10);J(b.R,5);J(b.T,5);J(b.O,'Helvetica');return b})}Dz(a){return S(this,'windowComponent',olympe.ui.D.ba.Jp,a,()=>{let b=new olympe.ui.D.ba.Jp;J(b.V,olympe.j.ha(40));J(b.R,olympe.j.ha(100));J(b.T,olympe.j.ha(100));vd(b);wd(b);J(b.C,1);var c=new olympe.j.ia(25,25);J(b.F,c);J(b.O,'images/close.png');return b})}xz(a){return S(this,olympe.ui.D.ba.$l.Yb,olympe.ui.D.ba.$l,a,b=>{const c=new olympe.ui.D.ba.dd,d=new olympe.ui.D.ba.$l;d.pu(!1);d.bA(c);switch(b){case olympe.sc.Yd.ag.T.ir:d.pu(!0),
|
|
1743
|
+
d.aA(1),c.Na(this.T)}return d})}rz(a){return S(this,olympe.ui.D.ba.nf.Yb,olympe.ui.D.ba.nf,a,b=>{const c=new olympe.ui.D.ba.nf;switch(b){case olympe.ui.D.ba.nf.F.pF:J(c.C,olympe.ui.D.ba.nf.C.rv);break;default:J(c.C,olympe.ui.D.ba.nf.C.Wx)}return c})}};olympe.sc.Yd.ag.O={bQ:'dropdown-item',dQ:'dropdown-selectedvalue',cQ:'dropdown-mouseoveritem'};olympe.sc.Yd.ag.F={UA:'grid-cell',KB:'grid-selected-cell',$D:'alertTitle',ir:'panel'};olympe.sc.Yd.ag.C={cJ:'selected',ZS:'warning',UA:'grid-cell',KB:'grid-selected-cell'};
|
|
1744
1744
|
olympe.sc.Yd.ag.V={ir:'panel'};olympe.sc.Yd.ag.R={ir:'panel'};olympe.sc.Yd.ag.T={ir:'panel'};function cn(a,b){a.C=b}
|
|
1745
1745
|
olympe.sc.Yd.oR=class extends olympe.ui.D.Screen{constructor(a){super();this.Aa=a;this.C=null}render(a){var b=olympe.j.ia,c=olympe.j.Color,d=olympe.j.qb;const e=olympe.j.Ca;var f=olympe.ui.D.gb;const g=olympe.ui.D.se,k=olympe.ui.D.oc;var l=olympe.ui.D.Ub,m=a.na();a=a.ra();const n=d(olympe.j.aa),p=d(olympe.j.aa),r=d(olympe.j.aa),t=d(olympe.j.aa);olympe.j.ab([m],y=>{350<y.valueOf()?(n.update(e(350)),p.update(e(60)),r.update(e(24))):(n.update(e(175)),p.update(e(30)),r.update(e(16)));t.update(e(500>y.valueOf()?
|
|
1746
1746
|
.5:1))});d=new b(n.Ba(),p.Ba());m=new olympe.ui.D.Cd(m,15,30,30,!1,a);m.Na(Ub());b=new g(new b(t.Ba().jb(352),t.Ba().jb(204)));b.tg('images/app_launcher_logo.svg');m.appendChild(b,'logo',olympe.ui.fa.Hb.Vb);const u=new f(d);u.Rb('Invalid user name or password!').ob(c.red()).Db(800).zb(r.Ba()).bc(olympe.ui.fa.tc.Nc).yb('Roboto').qd(!0);m.appendChild(u,'errorLabel',olympe.ui.fa.Hb.Vb);b=new f(d);b.Rb('User Name').ob(Vb()).yb('Roboto').zb(r.Ba()).Db(800).bc(olympe.ui.fa.tc.Nc);m.appendChild(b,'userNameLabel',
|
|
@@ -1748,7 +1748,7 @@ olympe.ui.fa.Hb.Vb);const w=new l(d);w.fn(olympe.ui.fa.tr.kF).Gg('username').Sg(
|
|
|
1748
1748
|
O()).Na(K());m.appendChild(v,'pwd',olympe.ui.fa.Hb.Vb);l=(new k(d,'Sign In')).Yj(c.create(20,100,253)).Na(c.create(0,86,253)).yb('Roboto').zb(r).ob(N());m.appendChild(l,'loginButton',olympe.ui.fa.Hb.Vb);this.C&&(c=(new k(d,'Guest')).Yj(c.create(20,100,253)).Na(c.green()).yb('Roboto').zb(r).ob(N()),c.Zc(()=>{this.C()}),m.appendChild(c,'guestButton',olympe.ui.fa.Hb.Vb));const x=()=>{var y=olympe.j.Ua(w.ol());y=y?y.valueOf().replace(/^\s*|\s*$/,''):'';y=y.split('@');y=y[0];const B=new olympe.Aa.Request;
|
|
1749
1749
|
B.set('username',y);B.gA(olympe.j.Ua(v.ol()));Vc(this.Aa,B,void 0,E=>{E&&u.qd(!1)})};w.kj(y=>{y.wz().Lc(13)&&v.qj()});v.kj(y=>{y.wz().Lc(13)&&x()});l.Zc(x);w.qj();return m}};function dn(a,b){a.F=b}function en(a,b){a.C=b}
|
|
1750
1750
|
olympe.sc.Yd.pR=class extends olympe.ui.D.Screen{constructor(a){super();this.C=this.F=null;this.O=a}render(a){const b=olympe.j.ia,c=olympe.ui.D.gb;var d=olympe.ui.D.se,e=a.na();const f=a.ra(),g=olympe.j.fb([e],m=>olympe.j.Ca(500>m.valueOf()?.5:1),olympe.j.aa),k=(new olympe.dc.hr(olympe.sc.ui.Ij.U.ca(),olympe.sc.ui.Ry)).lI().Td();a=new olympe.ui.D.Cd(a.na(),10,10,30,!1,f);a.Na(Ub());d=new d(new b(g.jb(352),g.jb(204)));d.tg('images/app_launcher_logo.svg');a.appendChild(d,'logo',olympe.ui.fa.Hb.Vb);
|
|
1751
|
-
const l=Ib(e,375);e=new olympe.ui.D.JS(new b(l,f.Fa(g.jb(204).$a(100))),k,m=>{m=(new c(new b(l,70))).Rb(m.Sa());m.bc(olympe.ui.fa.tc.Nc)
|
|
1751
|
+
const l=Ib(e,375);e=new olympe.ui.D.JS(new b(l,f.Fa(g.jb(204).$a(100))),k,m=>{m=(new c(new b(l,70))).Rb(m.Sa());m.bc(olympe.ui.fa.tc.Nc).$b(olympe.ui.fa.Hb.Vb).zb(32);m.ob(Vb());m.Na(O());return m},m=>{m&&this.F&&this.F(m)});e.Na(K());Xd(e,()=>{});a.appendChild(e,'appList',olympe.ui.fa.Hb.Vb);e=new olympe.ui.D.oc(new b(l,50));e.Rb('Logout').ob(K()).yb('Roboto').zb(20).Db(800).kc(15).Fd(0,O()).Na(Vb());e.Zc(()=>{this.C&&this.C()});e.qd(ad(this.O).Rf());a.appendChild(e,'logoutButton',olympe.ui.fa.Hb.Vb);
|
|
1752
1752
|
return a}};function fn(a,b){a.V?b():(a.T(),om(a,()=>{a.V=!0;b()}))}function gn(a,b,c){var d=new olympe.sc.Yd.oR(a.F);c.eC(d,'login');cn(d,()=>{c.Lw('logged')});c.XN();d=new olympe.sc.Yd.pR(a.F);c.eC(d,'selection');c.bC('login','selection','logged');c.bC('selection','login','logout');b.appendChild(c,'launcher',new olympe.j.ia(0,0));dn(d,e=>{a.C=e.ca();b.removeChild('launcher');mm(a)});en(d,()=>{a.F.Nz();c.Lw('logout')})}
|
|
1753
1753
|
olympe.sc.Yd.nr=class extends olympe.sc.dn.nr{constructor(a,b,c,d,e,f,g,k,l,m){super(b,c,e,g,k,l,m);this.ba=f;this.ga=a;this.Ea=d;this.ta=new olympe.j.Od('Spinner context',olympe.j.ml());this.ka=this.V=!1}T(){this.ka||(this.ga.ga(this.ba),this.ta.run(()=>{const a=this.ga.jf(),b=new olympe.ui.D.se(a.la());b.Na(K());this.Y.debug('Display loading spinner');b.tg('images/spinner_dark_bg_big.gif',olympe.ui.fa.Vg.Nq,olympe.ui.fa.Re.Vb);a.appendChild(b,'spinner')}),this.ka=!0)}R(){this.Y.debug('Remove loading spinner');
|
|
1754
1754
|
this.ta.Zk()}run(){const a=olympe.Aa.kb.C.Uo,b=olympe.Aa.kb.C.ep,c=olympe.Aa.kb.C.Xq,d=olympe.Aa.kb.C.ys,e=olympe.Aa.kb.C.INIT;let f=!1,g=olympe.ui.Wa.jf();const k=new olympe.ui.D.ZJ(g.la());0===this.C.length&&gn(this,g,k);olympe.j.ab([this.F.getState()],m=>{switch(m){case a:this.V=!1;fn(this,()=>{0===this.C.length?(this.R(),k.Lw('logged')):f||(mm(this),f=!0)});break;case c:this.Y.debug('Server session opened, calling once connected callback');0<this.C.length&&fn(this,()=>{f||(mm(this),f=!0)});break;
|
|
@@ -1756,14 +1756,14 @@ case b:this.Y.debug('Disconnected, working offline.');this.$&&!f&&(0<this.C.leng
|
|
|
1756
1756
|
olympe.ma.Be(function(a){z(a,olympe.sc.Yd.da.aK,olympe.sc.Yd.ag,olympe.ui.da.sb);A(a,olympe.sc.Yd.xn.ti,[olympe.ui.da.sb,olympe.Aa.da.sb,olympe.dc.query.da.sb,olympe.host.da.OB,olympe.sc.da.Ob,olympe.sc.Yd.da.aK,olympe.sc.da.Ey,new olympe.ma.Ta(olympe.sc.za.Ml),new olympe.ma.Ta(olympe.dc.za.Hp),new olympe.ma.Ta(olympe.sc.za.xB)],(b,c,d,e,f,g,k,l,m,n)=>new olympe.sc.Yd.nr(b,c,d,e,f,g,k,l,m,n));olympe.zf.Dq(a,olympe.sc.Yd.xn.ti,'sc.runtime');olympe.zf.Dq(a,olympe.sc.Yd.xn.ti,'sc.ui');olympe.zf.Dq(a,
|
|
1757
1757
|
olympe.sc.Yd.xn.ti)},'olympe.sc.uiruntime');olympe.public={};function hn(a,b){const c=new olympe.Aa.Request;for(const [d,e]of a)c.set(d,e);return new Promise(d=>{Vc(olympe.public.Bc.get(),c,b,()=>{d()})})}
|
|
1758
1758
|
olympe.public.Bc=class{static nU(a,b){return olympe.Aa.ud.Yi.bw(a,b)}static getState(){return $c(olympe.public.Bc.get())}static DU(){return olympe.j.Ua(olympe.public.Bc.get().fq())}static yW(a){const b=new olympe.j.Od('Observe user tag','function'===typeof a.vf?a.vf():a);return new rxjs.Observable(c=>{b.run(()=>olympe.j.ab([olympe.public.Bc.get().fq()],d=>{c.next(d);olympe.j.ib().onDestroy(()=>c.complete())}));return()=>b.destroy()})}static Dh(){return olympe.j.Ua(cd(olympe.public.Bc.get()))}static WU(){return olympe.j.Ua(olympe.public.Bc.get().Jt())||
|
|
1759
|
-
void 0}static ds(){olympe.public.Bc.get().ds()}static Nr(a){return new Promise((b,c)=>{olympe.public.Bc.get().Nr(a,d=>d?c(d):b())})}static cW(a,b){return hn((new Map).set('username',a).set('password',b),olympe.Aa.ud.Yi.
|
|
1759
|
+
void 0}static ds(){olympe.public.Bc.get().ds()}static Nr(a){return new Promise((b,c)=>{olympe.public.Bc.get().Nr(a,d=>d?c(d):b())})}static cW(a,b){return hn((new Map).set('username',a).set('password',b),olympe.Aa.ud.Yi.Yb)}static bW(){return hn(new Map,olympe.Aa.ud.kk.Yb)}static dW(a,b){return hn((new Map).set('username',a).set('nonce',b),olympe.Aa.ud.yp.Yb)}static aW(){return hn(new Map,olympe.Aa.ud.tv.Yb)}static Nz(){return new Promise(a=>{bd(()=>{olympe.public.Bc.get().ka.delete('logoutCallback');
|
|
1760
1760
|
a()});olympe.public.Bc.get().Nz()})}static get(){return olympe.Aa.Bg()}};olympe.public.Bc.logout=olympe.public.Bc.Nz;olympe.public.Bc.loginOpenID=olympe.public.Bc.aW;olympe.public.Bc.loginToken=olympe.public.Bc.dW;olympe.public.Bc.loginSAML=olympe.public.Bc.bW;olympe.public.Bc.loginSRP=olympe.public.Bc.cW;olympe.public.Bc.getUserFromToken=olympe.public.Bc.Nr;olympe.public.Bc.sendKeepAlive=olympe.public.Bc.ds;olympe.public.Bc.getIDPToken=olympe.public.Bc.WU;olympe.public.Bc.getToken=olympe.public.Bc.Dh;
|
|
1761
1761
|
olympe.public.Bc.observeUser=olympe.public.Bc.yW;olympe.public.Bc.getCurrentUser=olympe.public.Bc.DU;olympe.public.Bc.getState=olympe.public.Bc.getState;olympe.public.Bc.generateSRPData=olympe.public.Bc.nU;olympe.public.Oc=class{static create(a){return new class extends olympe.dc.sa.Oq{C(b,c){b=a(olympe.dc.CloudObject.get(c));if('boolean'===typeof b)return b;const d=olympe.j.qb(olympe.j.ja),e=b.subscribe(f=>d.update(olympe.j.Mc(f)));olympe.j.ib().Vd(()=>e.unsubscribe());return d.Ba()}}}};
|
|
1762
1762
|
olympe.public.Pl=class{static create(a){return new class extends olympe.dc.ie.Oq{R(b,c){return olympe.dc.CloudObject.get(c)}O(b,c){b=a(b,c);if('number'===typeof b)return b;const d=olympe.j.qb(olympe.j.aa),e=b.subscribe(f=>d.update(olympe.j.Ca(f)));olympe.j.ib().Vd(()=>e.unsubscribe());return d.Ba()}}}};'object'===typeof exports&&(exports={CloudObject:olympe.dc.CloudObject,Relation:olympe.dc.ub.Relation,Direction:olympe.dc.Nb,generateTag:olympe.oa.Dt,tagToString:olympe.dc.Gb,register:olympe.dc.register,defineProperty:olympe.dc.defineProperty,defineRelation:olympe.dc.Ar,defineInverseRelation:olympe.dc.UT,BrickContext:olympe.sc.hc,Brick:olympe.sc.logic.Function,ActionBrick:olympe.sc.logic.Action,GlobalProperties:olympe.sc.hc.Oh,registerBrick:olympe.sc.logic.Ra.C,FunctionBrick:olympe.sc.logic.Function,
|
|
1763
1763
|
Context:olympe.sc.hc,Entry:olympe.dc.ub.Entry,PropertyModel:olympe.dm.Property,RelationModel:olympe.dm.Relation,StringModel:olympe.dm.String,NumberModel:olympe.dm.Number,BooleanModel:olympe.dm.Boolean,DatetimeModel:olympe.dm.DateTime,ColorModel:olympe.dm.Color,File:olympe.dm.File,User:olympe.dm.User,Enum:olympe.dm.gp,EnumValue:olympe.dm.Enum,Transaction:olympe.sc.Qc,BurstTransaction:olympe.dc.Pu,QueryResult:olympe.dc.Ac,Query:olympe.dc.Id,QuerySingle:olympe.dc.Wi,Predicate:olympe.dc.qa.Oc,RelatedTo:olympe.dc.qa.sa.Qn,
|
|
1764
1764
|
Order:olympe.dc.qa.DB,Config:class{static getParameter(a){return olympe.ma.getParameter(a)}},Color:olympe.j.Color,ErrorFlow:olympe.sc.logic.Error,ServiceRequest:olympe.W.Pb.Ld.bb,Service:olympe.W.Pb.Ld.te,RequestType:olympe.W.Pb.Fe.Request.eb,Auth:olympe.public.Bc,AuthState:{INIT:olympe.Aa.kb.C.INIT,DISCONNECTED:olympe.Aa.kb.C.ep,GUEST:olympe.Aa.kb.C.Xq,AUTHENTICATING:olympe.Aa.kb.C.ys,ERROR:olympe.Aa.kb.C.bg,AUTHENTICATED:olympe.Aa.kb.C.Uo},Sync:olympe.dc.CloudObject,BusinessObject:olympe.dc.CloudObject,
|
|
1765
|
-
StringPrimitive:olympe.dm.String,NumberPrimitive:olympe.dm.Number,BooleanPrimitive:olympe.dm.Boolean,DatetimePrimitive:olympe.dm.DateTime,ColorPrimitive:olympe.dm.Color,PropertyPrimitive:olympe.dm.Property,RelationPrimitive:olympe.dm.Relation,DBView:class extends olympe.dc.kd{static get(){return olympe.dc.fc()}},ListDef:olympe.dc.Bb,instanceToTag:olympe.dc.Gb,registerSync:olympe.dc.Ra.C,getUniqueTag:olympe.oa.Dt,onDestroy:a=>olympe.j.ib().onDestroy(a),offDestroy:a=>olympe.j.ib().sl(a),FollowRules:olympe.dc.
|
|
1766
|
-
transformers:{Related:olympe.dc.wa.
|
|
1765
|
+
StringPrimitive:olympe.dm.String,NumberPrimitive:olympe.dm.Number,BooleanPrimitive:olympe.dm.Boolean,DatetimePrimitive:olympe.dm.DateTime,ColorPrimitive:olympe.dm.Color,PropertyPrimitive:olympe.dm.Property,RelationPrimitive:olympe.dm.Relation,DBView:class extends olympe.dc.kd{static get(){return olympe.dc.fc()}},ListDef:olympe.dc.Bb,instanceToTag:olympe.dc.Gb,registerSync:olympe.dc.Ra.C,getUniqueTag:olympe.oa.Dt,onDestroy:a=>olympe.j.ib().onDestroy(a),offDestroy:a=>olympe.j.ib().sl(a),FollowRules:olympe.dc.Ve,
|
|
1766
|
+
transformers:{Related:olympe.dc.wa.Xe,RecursiveRelated:olympe.dc.wa.fg,Distinct:olympe.dc.wa.Hk,Filter:olympe.dc.wa.ce,Limit:olympe.dc.wa.Dj,Sort:olympe.dc.wa.wi,Union:olympe.dc.wa.Wn},ListDefPredicate:olympe.public.Oc,predicates:{And:olympe.dc.sa.$j,Or:olympe.dc.sa.ik,Not:olympe.dc.sa.ri,Equals:olympe.dc.sa.Wg,Contains:olympe.dc.sa.vh,Greater:olympe.dc.sa.Lk,Smaller:olympe.dc.sa.Vk,HasRelated:olympe.dc.sa.Xl,InstanceOf:olympe.dc.sa.Gn,Regex:olympe.dc.sa.Xi},Comparator:olympe.public.Pl,comparators:{Number:olympe.dc.ie.Number,
|
|
1767
1767
|
String:olympe.dc.ie.String,DateTime:olympe.dc.ie.DateTime},valuedefs:{BooleanProperty:olympe.dc.hb.Gk,StringProperty:olympe.dc.hb.lk,NumberProperty:olympe.dc.hb.Ej,DateTimeProperty:olympe.dc.hb.bk,Constant:olympe.dc.hb.Li,Tag:olympe.dc.hb.Sn}});'object'===typeof exports&&Object.assign(exports,{VisualBrick:olympe.sc.ui.nc,registerBrick:(a,b,...c)=>{b.prototype instanceof olympe.sc.ui.nc?olympe.dc.Ra.C(a,b,...c):olympe.sc.logic.Ra.C(a,b,...c)},UIBrick:olympe.sc.ui.nc});
|
|
1768
1768
|
|
|
1769
1769
|
|