aptechka 0.4.12 → 0.4.13

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.
Files changed (105) hide show
  1. package/lib/{Damped-Ceg1a3X8.js → Damped-BZujMwuv.js} +11 -10
  2. package/lib/Damped-DK3CSBXb.cjs +1 -0
  3. package/lib/{Derived-B-g8dYgh.cjs → Derived-BZtlW0bB.cjs} +1 -1
  4. package/lib/{Derived-kPJs5JC5.js → Derived-DH-ouLBq.js} +1 -1
  5. package/lib/DragControls-CV1YozSr.cjs +1 -0
  6. package/lib/{DragControls-BbznoEAb.js → DragControls-Ch_JO2ML.js} +5 -4
  7. package/lib/SourceManager-Bl_uduSS.cjs +1 -0
  8. package/lib/{SourceManager-4OHacQoQ.js → SourceManager-D_8MZ3bR.js} +21 -20
  9. package/lib/Store-BQGNOHlY.cjs +1 -0
  10. package/lib/{Store-BQXXikps.js → Store-Cd-E5W1z.js} +8 -7
  11. package/lib/{Viewport-wlgZaIn7.js → Viewport-Bx-VImCe.js} +6 -5
  12. package/lib/Viewport-_WllZTJ0.cjs +1 -0
  13. package/lib/accordion/index.cjs +1 -1
  14. package/lib/accordion/index.js +1 -0
  15. package/lib/animation/index.cjs +1 -1
  16. package/lib/animation/index.js +6 -5
  17. package/lib/attribute/index.cjs +1 -1
  18. package/lib/attribute/index.js +16 -15
  19. package/lib/canvas/index.cjs +1 -1
  20. package/lib/canvas/index.js +4 -3
  21. package/lib/checkbox/index.cjs +1 -1
  22. package/lib/checkbox/index.js +4 -3
  23. package/lib/controls/index.cjs +1 -1
  24. package/lib/controls/index.js +2 -2
  25. package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-C8aQQ4hd.cjs} +1 -1
  26. package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-KMRQhSa-.js} +1 -1
  27. package/lib/createTheme-BSreUYge.cjs +1 -0
  28. package/lib/createTheme-u3NsrEV6.js +16 -0
  29. package/lib/css-property/index.cjs +1 -1
  30. package/lib/css-property/index.js +4 -3
  31. package/lib/custom-element/index.cjs +1 -1
  32. package/lib/custom-element/index.js +3 -2
  33. package/lib/dev/index.cjs +1 -1
  34. package/lib/dev/index.js +7 -6
  35. package/lib/device/index.cjs +1 -1
  36. package/lib/device/index.js +1 -1
  37. package/lib/element-constructor/index.cjs +1 -1
  38. package/lib/element-constructor/index.js +3 -3
  39. package/lib/element-resizer/index.cjs +1 -1
  40. package/lib/element-resizer/index.js +23 -22
  41. package/lib/en3/index.cjs +1 -1
  42. package/lib/en3/index.js +23 -22
  43. package/lib/image/index.cjs +1 -1
  44. package/lib/image/index.js +8 -7
  45. package/lib/{index-BUOBDenR.js → index-Fasue6kv.js} +20 -19
  46. package/lib/index-nxoux28n.cjs +9 -0
  47. package/lib/intersector/index.cjs +1 -1
  48. package/lib/intersector/index.js +3 -2
  49. package/lib/ladder/index.cjs +1 -1
  50. package/lib/ladder/index.js +11 -10
  51. package/lib/layout-box/index.cjs +1 -1
  52. package/lib/layout-box/index.js +3 -2
  53. package/lib/libs/path-data-polyfill.d.ts +1 -0
  54. package/lib/loading/index.cjs +1 -1
  55. package/lib/loading/index.js +16 -15
  56. package/lib/media/index.cjs +1 -1
  57. package/lib/media/index.js +6 -5
  58. package/lib/modal/index.cjs +1 -1
  59. package/lib/modal/index.js +4 -3
  60. package/lib/morph/index.cjs +1 -1
  61. package/lib/morph/index.js +21 -20
  62. package/lib/path-data-polyfill-CXsOR7Oc.cjs +3 -0
  63. package/lib/path-data-polyfill-DgeDWYeI.js +454 -0
  64. package/lib/popover/index.cjs +1 -1
  65. package/lib/popover/index.js +14 -13
  66. package/lib/resized/index.cjs +1 -1
  67. package/lib/resized/index.js +8 -7
  68. package/lib/router/index.cjs +1 -1
  69. package/lib/router/index.js +8 -7
  70. package/lib/scroll/index.cjs +1 -1
  71. package/lib/scroll/index.js +8 -7
  72. package/lib/select/index.cjs +1 -1
  73. package/lib/select/index.js +1 -1
  74. package/lib/slicer/index.cjs +2 -2
  75. package/lib/slicer/index.js +4 -3
  76. package/lib/source/index.cjs +1 -1
  77. package/lib/source/index.js +2 -2
  78. package/lib/store/index.cjs +1 -1
  79. package/lib/store/index.js +13 -12
  80. package/lib/{tags-CMPg9ETZ.js → tags-BoPv9fDr.js} +234 -233
  81. package/lib/tags-CueX-JLX.cjs +1 -0
  82. package/lib/theme/index.cjs +1 -1
  83. package/lib/theme/index.js +7 -6
  84. package/lib/ticker/index.cjs +1 -1
  85. package/lib/ticker/index.js +3 -2
  86. package/lib/tweaker/index.cjs +1 -1
  87. package/lib/tweaker/index.js +6 -5
  88. package/lib/utils/index.cjs +1 -1
  89. package/lib/utils/index.d.ts +1 -0
  90. package/lib/utils/index.js +164 -127
  91. package/lib/utils/svg.d.ts +15 -0
  92. package/lib/video/index.cjs +1 -1
  93. package/lib/video/index.js +6 -5
  94. package/lib/window-resizer/index.cjs +1 -1
  95. package/lib/window-resizer/index.js +7 -6
  96. package/package.json +1 -1
  97. package/lib/Damped-BdnkNOcb.cjs +0 -1
  98. package/lib/DragControls-CdRWoO3y.cjs +0 -1
  99. package/lib/SourceManager-Bc68GDrb.cjs +0 -1
  100. package/lib/Store-C-1ruEIm.cjs +0 -1
  101. package/lib/Viewport-DAjFJF5V.cjs +0 -1
  102. package/lib/createTheme-CHnsCgAr.js +0 -15
  103. package/lib/createTheme-Cfaw9UmV.cjs +0 -1
  104. package/lib/index-Bv5vIuF-.cjs +0 -9
  105. package/lib/tags-Djb6mb1o.cjs +0 -1
@@ -9,6 +9,7 @@ var r = (n, t, s) => (m(n, t, "read from private field"), s ? s.call(n) : t.get(
9
9
  }, h = (n, t, s, e) => (m(n, t, "write to private field"), e ? e.call(n, s) : t.set(n, s), s);
10
10
  import { i as y } from "../browser-0zX67oeU.js";
11
11
  import { g as p } from "../dom-0S_WDL4g.js";
12
+ import "../path-data-polyfill-DgeDWYeI.js";
12
13
  var i, b, u;
13
14
  class w {
14
15
  constructor() {
@@ -60,8 +61,8 @@ class w {
60
61
  }
61
62
  }
62
63
  i = new WeakMap(), b = new WeakMap(), u = new WeakMap();
63
- const d = new w();
64
+ const E = new w();
64
65
  export {
65
66
  w as Intersector,
66
- d as intersector
67
+ E as intersector
67
68
  };
@@ -1 +1 @@
1
- "use strict";var j=Object.defineProperty;var w=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var x=(s,t,e)=>t in s?j(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,S=(s,t)=>{for(var e in t||(t={}))C.call(t,e)&&x(s,e,t[e]);if(w)for(var e of w(t))E.call(t,e)&&x(s,e,t[e]);return s};var q=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var i=(s,t,e)=>(q(s,t,"read from private field"),e?e.call(s):t.get(s)),h=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},c=(s,t,e,n)=>(q(s,t,"write to private field"),n?n.call(s,e):t.set(s,e),e);var M=(s,t,e)=>(q(s,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../Store-C-1ruEIm.cjs"),O=require("../math-GDWEqu7y.cjs"),U=require("../number-yVpzMdbQ.cjs"),m=require("../ticker/index.cjs");var v,u,p,d;class P{constructor(t){h(this,v,void 0);h(this,u,void 0);h(this,p,void 0);h(this,d,void 0);c(this,v,t.operation),c(this,u,t.value),c(this,p,i(this,u)),c(this,d,t.damping||0)}get operation(){return i(this,v)}get value(){return i(this,u)}set value(t){c(this,p,t),i(this,d)||c(this,u,t)}get damping(){return i(this,d)}set damping(t){c(this,d,t)}update(t){let e=0;for(const n in i(this,u))i(this,u)[n]=O.damp(i(this,u)[n],i(this,p)[n],this.damping,t),U.preciseNumber(i(this,u)[n],4)!==U.preciseNumber(i(this,p)[n],4)&&e++;return e===0}}v=new WeakMap,u=new WeakMap,p=new WeakMap,d=new WeakMap;var g,f,l,y,V,b;class T extends N.Store{constructor(e){super(e,{equalityCheck:()=>!1});h(this,y);h(this,g,void 0);h(this,f,void 0);h(this,l,void 0);h(this,b,e=>{let n=0;for(const r of this.steps){const a=r[1].update(e.elapsed);n+=a?0:1}this.calculate(),n||m.ticker.unsubscribe(i(this,b))});c(this,g,S({},e)),c(this,f,new Map),c(this,l,new Set)}get base(){return i(this,g)}get steps(){return i(this,f)}close(){super.close(),i(this,l).clear(),i(this,f).clear(),m.ticker.unsubscribe(i(this,b))}bind(e){i(this,l).add(e)}unbind(e){i(this,l).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){return this.steps.get(e).value}setStep(e,n,r,o){const a={};for(const L in this.current)a[L]=r[L]||0;let k=this.steps.get(e);k||(k=new P({operation:n,value:S({},i(this,g)),damping:o}),this.steps.set(e,k)),k.damping=o||0,k.value=a,M(this,y,V).call(this)}calculate(){const e={};for(const n in this.base)e[n]=this.base[n];for(const n of this.steps){const r=n[1];if(r.operation==="+")for(const o in this.base){const a=r.value[o];e[o]+=a}else if(r.operation==="*")for(const o in this.base){const a=r.value[o];e[o]*=a}else if(r.operation==="/")for(const o in this.base){const a=r.value[o];e[o]/=a}else if(r.operation==="-")for(const o in this.base){const a=r.value[o];e[o]-=a}}for(const n of i(this,l))for(const r in e)n[r]=e[r];this.current=e}}g=new WeakMap,f=new WeakMap,l=new WeakMap,y=new WeakSet,V=function(){let e=!1;i(this,f).forEach(n=>{n.damping&&(e=!0)}),e?m.ticker.subscribe(i(this,b)):m.ticker.unsubscribe(i(this,b))},b=new WeakMap;exports.Ladder=T;
1
+ "use strict";var j=Object.defineProperty;var w=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var x=(s,t,e)=>t in s?j(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,S=(s,t)=>{for(var e in t||(t={}))C.call(t,e)&&x(s,e,t[e]);if(w)for(var e of w(t))E.call(t,e)&&x(s,e,t[e]);return s};var q=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var i=(s,t,e)=>(q(s,t,"read from private field"),e?e.call(s):t.get(s)),h=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},c=(s,t,e,r)=>(q(s,t,"write to private field"),r?r.call(s,e):t.set(s,e),e);var M=(s,t,e)=>(q(s,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../Store-BQGNOHlY.cjs"),O=require("../math-GDWEqu7y.cjs"),U=require("../number-yVpzMdbQ.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const m=require("../ticker/index.cjs");var v,u,p,d;class P{constructor(t){h(this,v,void 0);h(this,u,void 0);h(this,p,void 0);h(this,d,void 0);c(this,v,t.operation),c(this,u,t.value),c(this,p,i(this,u)),c(this,d,t.damping||0)}get operation(){return i(this,v)}get value(){return i(this,u)}set value(t){c(this,p,t),i(this,d)||c(this,u,t)}get damping(){return i(this,d)}set damping(t){c(this,d,t)}update(t){let e=0;for(const r in i(this,u))i(this,u)[r]=O.damp(i(this,u)[r],i(this,p)[r],this.damping,t),U.preciseNumber(i(this,u)[r],4)!==U.preciseNumber(i(this,p)[r],4)&&e++;return e===0}}v=new WeakMap,u=new WeakMap,p=new WeakMap,d=new WeakMap;var g,f,l,y,V,b;class T extends N.Store{constructor(e){super(e,{equalityCheck:()=>!1});h(this,y);h(this,g,void 0);h(this,f,void 0);h(this,l,void 0);h(this,b,e=>{let r=0;for(const n of this.steps){const a=n[1].update(e.elapsed);r+=a?0:1}this.calculate(),r||m.ticker.unsubscribe(i(this,b))});c(this,g,S({},e)),c(this,f,new Map),c(this,l,new Set)}get base(){return i(this,g)}get steps(){return i(this,f)}close(){super.close(),i(this,l).clear(),i(this,f).clear(),m.ticker.unsubscribe(i(this,b))}bind(e){i(this,l).add(e)}unbind(e){i(this,l).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){return this.steps.get(e).value}setStep(e,r,n,o){const a={};for(const L in this.current)a[L]=n[L]||0;let k=this.steps.get(e);k||(k=new P({operation:r,value:S({},i(this,g)),damping:o}),this.steps.set(e,k)),k.damping=o||0,k.value=a,M(this,y,V).call(this)}calculate(){const e={};for(const r in this.base)e[r]=this.base[r];for(const r of this.steps){const n=r[1];if(n.operation==="+")for(const o in this.base){const a=n.value[o];e[o]+=a}else if(n.operation==="*")for(const o in this.base){const a=n.value[o];e[o]*=a}else if(n.operation==="/")for(const o in this.base){const a=n.value[o];e[o]/=a}else if(n.operation==="-")for(const o in this.base){const a=n.value[o];e[o]-=a}}for(const r of i(this,l))for(const n in e)r[n]=e[n];this.current=e}}g=new WeakMap,f=new WeakMap,l=new WeakMap,y=new WeakSet,V=function(){let e=!1;i(this,f).forEach(r=>{r.damping&&(e=!0)}),e?m.ticker.subscribe(i(this,b)):m.ticker.unsubscribe(i(this,b))},b=new WeakMap;exports.Ladder=T;
@@ -19,9 +19,10 @@ var i = (s, e, t) => (w(s, e, "read from private field"), t ? t.call(s) : e.get(
19
19
  e instanceof WeakSet ? e.add(s) : e.set(s, t);
20
20
  }, h = (s, e, t, n) => (w(s, e, "write to private field"), n ? n.call(s, t) : e.set(s, t), t);
21
21
  var V = (s, e, t) => (w(s, e, "access private method"), t);
22
- import { S as z } from "../Store-BQXXikps.js";
22
+ import { S as z } from "../Store-Cd-E5W1z.js";
23
23
  import { d as A } from "../math-BOBiC4TN.js";
24
24
  import { p as q } from "../number-Bo5RdrA1.js";
25
+ import "../path-data-polyfill-DgeDWYeI.js";
25
26
  import { ticker as k } from "../ticker/index.js";
26
27
  var v, c, l, d;
27
28
  class B {
@@ -60,14 +61,14 @@ class B {
60
61
  }
61
62
  }
62
63
  v = new WeakMap(), c = new WeakMap(), l = new WeakMap(), d = new WeakMap();
63
- var g, f, p, y, C, b;
64
- class J extends z {
64
+ var m, f, p, y, C, b;
65
+ class K extends z {
65
66
  constructor(t) {
66
67
  super(t, {
67
68
  equalityCheck: () => !1
68
69
  });
69
70
  u(this, y);
70
- u(this, g, void 0);
71
+ u(this, m, void 0);
71
72
  u(this, f, void 0);
72
73
  u(this, p, void 0);
73
74
  u(this, b, (t) => {
@@ -78,10 +79,10 @@ class J extends z {
78
79
  }
79
80
  this.calculate(), n || k.unsubscribe(i(this, b));
80
81
  });
81
- h(this, g, S({}, t)), h(this, f, /* @__PURE__ */ new Map()), h(this, p, /* @__PURE__ */ new Set());
82
+ h(this, m, S({}, t)), h(this, f, /* @__PURE__ */ new Map()), h(this, p, /* @__PURE__ */ new Set());
82
83
  }
83
84
  get base() {
84
- return i(this, g);
85
+ return i(this, m);
85
86
  }
86
87
  get steps() {
87
88
  return i(this, f);
@@ -105,8 +106,8 @@ class J extends z {
105
106
  const a = {};
106
107
  for (const L in this.current)
107
108
  a[L] = o[L] || 0;
108
- let m = this.steps.get(t);
109
- m || (m = new B({ operation: n, value: S({}, i(this, g)), damping: r }), this.steps.set(t, m)), m.damping = r || 0, m.value = a, V(this, y, C).call(this);
109
+ let g = this.steps.get(t);
110
+ g || (g = new B({ operation: n, value: S({}, i(this, m)), damping: r }), this.steps.set(t, g)), g.damping = r || 0, g.value = a, V(this, y, C).call(this);
110
111
  }
111
112
  calculate() {
112
113
  const t = {};
@@ -141,12 +142,12 @@ class J extends z {
141
142
  this.current = t;
142
143
  }
143
144
  }
144
- g = new WeakMap(), f = new WeakMap(), p = new WeakMap(), y = new WeakSet(), C = function() {
145
+ m = new WeakMap(), f = new WeakMap(), p = new WeakMap(), y = new WeakSet(), C = function() {
145
146
  let t = !1;
146
147
  i(this, f).forEach((n) => {
147
148
  n.damping && (t = !0);
148
149
  }), t ? k.subscribe(i(this, b)) : k.unsubscribe(i(this, b));
149
150
  }, b = new WeakMap();
150
151
  export {
151
- J as Ladder
152
+ K as Ladder
152
153
  };
@@ -1 +1 @@
1
- "use strict";var $=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>($(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},n=(i,e,s,r)=>($(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s);var O=(i,e,s)=>($(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ut=require("../css-unit-parser/index.cjs"),F=require("../ladder/index.cjs"),N=require("../order/index.cjs"),G=require("../scroll-entries/index.cjs"),Q=require("../ticker/index.cjs"),j=require("../browser-CpzFX2xg.cjs"),tt=require("../dom-JBOkFLTh.cjs"),q=require("../layout-8ryRAMGJ.cjs"),et=require("../element-resizer/index.cjs"),st=require("../window-resizer/index.cjs");function it(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),r=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),Y=Math.atan2(i.m32,i.m33),H=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),K=Math.atan2(i.m21,i.m11),u=i.m41,C=i.m42*-1,R=i.m43;return{scaleX:e,scaleY:s,scaleZ:r,rotationX:Y,rotationY:H,rotationZ:K,translationX:u,translationY:C,translationZ:R}}var c,f,p,M,Z,L,x,w,B,y,_,P,S,d,v,T,X,A,z,g,m,a,l,o,b,W,J,V,ht,D,nt,I,rt,E,k,U;class St{constructor(e,s){h(this,W);h(this,V);h(this,D);h(this,I);h(this,c,null);h(this,f,null);h(this,p,[]);h(this,M,"auto");h(this,Z,"top");h(this,L,!1);h(this,x,!0);h(this,w,!0);h(this,B,!0);h(this,y,0);h(this,_,0);h(this,P,0);h(this,S,0);h(this,d,0);h(this,v,0);h(this,T,0);h(this,X,0);h(this,A,0);h(this,z,{x:0,y:0,z:0});h(this,g,{x:0,y:0,z:0});h(this,m,{x:1,y:1,z:1});h(this,a,new F.Ladder({x:0,y:0,z:0}));h(this,l,new F.Ladder({x:0,y:0,z:0}));h(this,o,new F.Ladder({x:0,y:0,z:0}));h(this,b,new Map);h(this,E,()=>{j.isBrowser&&O(this,D,nt).call(this)});h(this,k,()=>{O(this,I,rt).call(this),O(this,W,J).call(this)});h(this,U,()=>{const e=G.scrollEntries.getAll(this.element);t(this,b).forEach((s,r)=>{e.includes(r)||(this.deleteScrollStep(s),t(this,b).delete(r))}),e.forEach(s=>{if(!t(this,b).has(s)){const r=()=>s;t(this,b).set(s,r),this.setScrollStep(r)}})});j.isBrowser&&(n(this,c,tt.getElement(e)||document.body),n(this,f,tt.getElement(s==null?void 0:s.containerElement)||document.body),n(this,M,(s==null?void 0:s.scrollAxis)||"auto"),n(this,Z,(s==null?void 0:s.frontSide)||"top"),n(this,L,(s==null?void 0:s.cartesian)||!1),n(this,x,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),n(this,w,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),n(this,B,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),t(this,o).setStep("_size","+",{x:1,y:1,z:1}),t(this,l).setStep("_position","+",{x:0,y:0,z:0}),t(this,o).setStep("_scale","*",{x:1,y:1,z:1}),t(this,l).setStep("_translation","+",{x:0,y:0,z:0}),t(this,a).setStep("_rotation","+",{x:0,y:0,z:0}),G.scrollEntries.notifier.subscribe(t(this,U)),Q.ticker.subscribe(t(this,k),{order:N.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}),et.elementResizer.subscribe(this.element,t(this,E)),st.windowResizer.subscribe(t(this,E),N.RESIZE_ORDER.LAYOUT_BOX))}get element(){return t(this,c)}get containerElement(){return t(this,f)}get position(){return t(this,l).current}get rotation(){return t(this,a).current}get scale(){return t(this,o).current}get left(){return t(this,d)}get top(){return t(this,S)}get front(){return t(this,v)}get width(){return t(this,y)}get height(){return t(this,_)}get depth(){return t(this,P)}bindObject(e){e.position&&t(this,l).bind(e.position),e.rotation&&t(this,a).bind(e.rotation),e.scale&&t(this,o).bind(e.scale)}unbindObject(e){e.position&&t(this,l).unbind(e.position),e.rotation&&t(this,a).unbind(e.rotation),e.scale&&t(this,o).unbind(e.scale)}setScrollStep(e){return t(this,p).includes(e)||t(this,p).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){n(this,p,t(this,p).filter(s=>s!==e))}destroy(){Q.ticker.unsubscribe(t(this,k)),et.elementResizer.unsubscribe(t(this,E)),st.windowResizer.unsubscribe(t(this,E)),G.scrollEntries.notifier.unsubscribe(t(this,U)),t(this,b).clear(),t(this,l).close(),t(this,a).close(),t(this,o).close()}setPositionStep(...e){t(this,l).setStep(...e)}getPositionStep(...e){return t(this,l).getStepValue(...e)}setRotationStep(...e){t(this,a).setStep(...e)}getRotationStep(...e){return t(this,a).getStepValue(...e)}setScaleStep(...e){t(this,o).setStep(...e)}getScaleStep(...e){return t(this,o).getStepValue(...e)}deletePositionStep(...e){t(this,l).deleteStep(...e)}deleteRotationStep(...e){t(this,a).deleteStep(...e)}deleteScaleStep(...e){t(this,o).deleteStep(...e)}}c=new WeakMap,f=new WeakMap,p=new WeakMap,M=new WeakMap,Z=new WeakMap,L=new WeakMap,x=new WeakMap,w=new WeakMap,B=new WeakMap,y=new WeakMap,_=new WeakMap,P=new WeakMap,S=new WeakMap,d=new WeakMap,v=new WeakMap,T=new WeakMap,X=new WeakMap,A=new WeakMap,z=new WeakMap,g=new WeakMap,m=new WeakMap,a=new WeakMap,l=new WeakMap,o=new WeakMap,b=new WeakMap,W=new WeakSet,J=function(){t(this,o).calculate(),t(this,l).calculate(),t(this,a).calculate()},V=new WeakSet,ht=function(){t(this,o).setStep("_size","+",{x:t(this,x)?t(this,y):1,y:t(this,x)?t(this,_):1,z:t(this,x)?t(this,P):1});const e=t(this,w)?t(this,T):0,s=t(this,w)?t(this,X):0,r=t(this,w)?t(this,A):0;t(this,l).setStep("_position","+",{x:e,y:s,z:r}),t(this,B)?(t(this,o).setStep("_scale","*",{x:t(this,m).x,y:t(this,m).y,z:t(this,m).z}),t(this,l).setStep("_translation","+",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,a).setStep("_rotation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z})):(t(this,o).setStep("_scale","*",{x:1,y:1,z:1}),t(this,l).setStep("_translation","+",{x:0,y:0,z:0}),t(this,a).setStep("_rotation","+",{x:0,y:0,z:0}))},D=new WeakSet,nt=function(){const e=getComputedStyle(t(this,c));n(this,y,Math.max(t(this,c).clientWidth,1)),n(this,_,Math.max(t(this,c).clientHeight,1)),n(this,P,Math.max(ut.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=q.getCumulativeOffsetLeft(t(this,f)),r=q.getCumulativeOffsetTop(t(this,f)),Y=t(this,f).clientWidth,H=t(this,f).clientHeight;if(n(this,d,q.getCumulativeOffsetLeft(t(this,c))-s),n(this,S,q.getCumulativeOffsetTop(t(this,c))-r),t(this,M)==="z"){const C=t(this,d)/Y,R=t(this,S)/H;n(this,d,(C-Math.floor(C))*Y),n(this,S,(R-Math.floor(R))*H),t(this,Z)==="left"?n(this,v,q.getCumulativeOffsetLeft(t(this,c))-s-t(this,d)):n(this,v,q.getCumulativeOffsetTop(t(this,c))-r-t(this,S))}if(n(this,d,t(this,d)+t(this,c).clientLeft),n(this,S,t(this,S)+t(this,c).clientTop),t(this,L)){const C=Math.round(Y/2),R=Math.round(H/2),lt=t(this,y)?Math.round(t(this,y)/2):0,ot=t(this,_)?Math.round(t(this,_)/2):0,ct=t(this,d)-C+lt,at=(t(this,S)-R+ot)*-1;n(this,T,ct),n(this,X,at)}else n(this,T,t(this,d)),n(this,X,t(this,S));n(this,A,t(this,v)*-1);const K=new WebKitCSSMatrix(e.transform),u=it(K);t(this,z).x=u.translationX,t(this,z).y=u.translationY,t(this,z).z=u.translationZ,t(this,m).x=u.scaleX,t(this,m).y=u.scaleY,t(this,m).z=u.scaleZ,t(this,g).x=u.rotationX,t(this,g).y=u.rotationY,t(this,g).z=u.rotationZ,O(this,V,ht).call(this),O(this,W,J).call(this)},I=new WeakSet,rt=function(){for(let e=0;e<t(this,p).length;e++){const s=t(this,p)[e]();let r=s.axis;t(this,M)!=="auto"&&(r=t(this,M)),t(this,l).setStep(`_scroll_${e}`,"+",{[r]:s.value*(r==="x"?-1:t(this,L)?1:-1)})}},E=new WeakMap,k=new WeakMap,U=new WeakMap;exports.LayoutBox=St;exports.decomposeCSSMatrix=it;
1
+ "use strict";var $=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>($(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},n=(i,e,s,r)=>($(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s);var q=(i,e,s)=>($(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ut=require("../css-unit-parser/index.cjs"),F=require("../ladder/index.cjs"),N=require("../order/index.cjs"),G=require("../scroll-entries/index.cjs"),Q=require("../ticker/index.cjs"),j=require("../browser-CpzFX2xg.cjs"),tt=require("../dom-JBOkFLTh.cjs"),O=require("../layout-8ryRAMGJ.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const et=require("../element-resizer/index.cjs"),st=require("../window-resizer/index.cjs");function it(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),r=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),Y=Math.atan2(i.m32,i.m33),H=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),K=Math.atan2(i.m21,i.m11),u=i.m41,C=i.m42*-1,R=i.m43;return{scaleX:e,scaleY:s,scaleZ:r,rotationX:Y,rotationY:H,rotationZ:K,translationX:u,translationY:C,translationZ:R}}var c,f,p,M,Z,L,x,w,B,y,_,P,S,d,v,T,X,A,z,g,m,a,l,o,b,W,J,V,ht,D,nt,I,rt,E,k,U;class St{constructor(e,s){h(this,W);h(this,V);h(this,D);h(this,I);h(this,c,null);h(this,f,null);h(this,p,[]);h(this,M,"auto");h(this,Z,"top");h(this,L,!1);h(this,x,!0);h(this,w,!0);h(this,B,!0);h(this,y,0);h(this,_,0);h(this,P,0);h(this,S,0);h(this,d,0);h(this,v,0);h(this,T,0);h(this,X,0);h(this,A,0);h(this,z,{x:0,y:0,z:0});h(this,g,{x:0,y:0,z:0});h(this,m,{x:1,y:1,z:1});h(this,a,new F.Ladder({x:0,y:0,z:0}));h(this,l,new F.Ladder({x:0,y:0,z:0}));h(this,o,new F.Ladder({x:0,y:0,z:0}));h(this,b,new Map);h(this,E,()=>{j.isBrowser&&q(this,D,nt).call(this)});h(this,k,()=>{q(this,I,rt).call(this),q(this,W,J).call(this)});h(this,U,()=>{const e=G.scrollEntries.getAll(this.element);t(this,b).forEach((s,r)=>{e.includes(r)||(this.deleteScrollStep(s),t(this,b).delete(r))}),e.forEach(s=>{if(!t(this,b).has(s)){const r=()=>s;t(this,b).set(s,r),this.setScrollStep(r)}})});j.isBrowser&&(n(this,c,tt.getElement(e)||document.body),n(this,f,tt.getElement(s==null?void 0:s.containerElement)||document.body),n(this,M,(s==null?void 0:s.scrollAxis)||"auto"),n(this,Z,(s==null?void 0:s.frontSide)||"top"),n(this,L,(s==null?void 0:s.cartesian)||!1),n(this,x,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),n(this,w,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),n(this,B,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),t(this,o).setStep("_size","+",{x:1,y:1,z:1}),t(this,l).setStep("_position","+",{x:0,y:0,z:0}),t(this,o).setStep("_scale","*",{x:1,y:1,z:1}),t(this,l).setStep("_translation","+",{x:0,y:0,z:0}),t(this,a).setStep("_rotation","+",{x:0,y:0,z:0}),G.scrollEntries.notifier.subscribe(t(this,U)),Q.ticker.subscribe(t(this,k),{order:N.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}),et.elementResizer.subscribe(this.element,t(this,E)),st.windowResizer.subscribe(t(this,E),N.RESIZE_ORDER.LAYOUT_BOX))}get element(){return t(this,c)}get containerElement(){return t(this,f)}get position(){return t(this,l).current}get rotation(){return t(this,a).current}get scale(){return t(this,o).current}get left(){return t(this,d)}get top(){return t(this,S)}get front(){return t(this,v)}get width(){return t(this,y)}get height(){return t(this,_)}get depth(){return t(this,P)}bindObject(e){e.position&&t(this,l).bind(e.position),e.rotation&&t(this,a).bind(e.rotation),e.scale&&t(this,o).bind(e.scale)}unbindObject(e){e.position&&t(this,l).unbind(e.position),e.rotation&&t(this,a).unbind(e.rotation),e.scale&&t(this,o).unbind(e.scale)}setScrollStep(e){return t(this,p).includes(e)||t(this,p).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){n(this,p,t(this,p).filter(s=>s!==e))}destroy(){Q.ticker.unsubscribe(t(this,k)),et.elementResizer.unsubscribe(t(this,E)),st.windowResizer.unsubscribe(t(this,E)),G.scrollEntries.notifier.unsubscribe(t(this,U)),t(this,b).clear(),t(this,l).close(),t(this,a).close(),t(this,o).close()}setPositionStep(...e){t(this,l).setStep(...e)}getPositionStep(...e){return t(this,l).getStepValue(...e)}setRotationStep(...e){t(this,a).setStep(...e)}getRotationStep(...e){return t(this,a).getStepValue(...e)}setScaleStep(...e){t(this,o).setStep(...e)}getScaleStep(...e){return t(this,o).getStepValue(...e)}deletePositionStep(...e){t(this,l).deleteStep(...e)}deleteRotationStep(...e){t(this,a).deleteStep(...e)}deleteScaleStep(...e){t(this,o).deleteStep(...e)}}c=new WeakMap,f=new WeakMap,p=new WeakMap,M=new WeakMap,Z=new WeakMap,L=new WeakMap,x=new WeakMap,w=new WeakMap,B=new WeakMap,y=new WeakMap,_=new WeakMap,P=new WeakMap,S=new WeakMap,d=new WeakMap,v=new WeakMap,T=new WeakMap,X=new WeakMap,A=new WeakMap,z=new WeakMap,g=new WeakMap,m=new WeakMap,a=new WeakMap,l=new WeakMap,o=new WeakMap,b=new WeakMap,W=new WeakSet,J=function(){t(this,o).calculate(),t(this,l).calculate(),t(this,a).calculate()},V=new WeakSet,ht=function(){t(this,o).setStep("_size","+",{x:t(this,x)?t(this,y):1,y:t(this,x)?t(this,_):1,z:t(this,x)?t(this,P):1});const e=t(this,w)?t(this,T):0,s=t(this,w)?t(this,X):0,r=t(this,w)?t(this,A):0;t(this,l).setStep("_position","+",{x:e,y:s,z:r}),t(this,B)?(t(this,o).setStep("_scale","*",{x:t(this,m).x,y:t(this,m).y,z:t(this,m).z}),t(this,l).setStep("_translation","+",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,a).setStep("_rotation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z})):(t(this,o).setStep("_scale","*",{x:1,y:1,z:1}),t(this,l).setStep("_translation","+",{x:0,y:0,z:0}),t(this,a).setStep("_rotation","+",{x:0,y:0,z:0}))},D=new WeakSet,nt=function(){const e=getComputedStyle(t(this,c));n(this,y,Math.max(t(this,c).clientWidth,1)),n(this,_,Math.max(t(this,c).clientHeight,1)),n(this,P,Math.max(ut.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=O.getCumulativeOffsetLeft(t(this,f)),r=O.getCumulativeOffsetTop(t(this,f)),Y=t(this,f).clientWidth,H=t(this,f).clientHeight;if(n(this,d,O.getCumulativeOffsetLeft(t(this,c))-s),n(this,S,O.getCumulativeOffsetTop(t(this,c))-r),t(this,M)==="z"){const C=t(this,d)/Y,R=t(this,S)/H;n(this,d,(C-Math.floor(C))*Y),n(this,S,(R-Math.floor(R))*H),t(this,Z)==="left"?n(this,v,O.getCumulativeOffsetLeft(t(this,c))-s-t(this,d)):n(this,v,O.getCumulativeOffsetTop(t(this,c))-r-t(this,S))}if(n(this,d,t(this,d)+t(this,c).clientLeft),n(this,S,t(this,S)+t(this,c).clientTop),t(this,L)){const C=Math.round(Y/2),R=Math.round(H/2),lt=t(this,y)?Math.round(t(this,y)/2):0,ot=t(this,_)?Math.round(t(this,_)/2):0,ct=t(this,d)-C+lt,at=(t(this,S)-R+ot)*-1;n(this,T,ct),n(this,X,at)}else n(this,T,t(this,d)),n(this,X,t(this,S));n(this,A,t(this,v)*-1);const K=new WebKitCSSMatrix(e.transform),u=it(K);t(this,z).x=u.translationX,t(this,z).y=u.translationY,t(this,z).z=u.translationZ,t(this,m).x=u.scaleX,t(this,m).y=u.scaleY,t(this,m).z=u.scaleZ,t(this,g).x=u.rotationX,t(this,g).y=u.rotationY,t(this,g).z=u.rotationZ,q(this,V,ht).call(this),q(this,W,J).call(this)},I=new WeakSet,rt=function(){for(let e=0;e<t(this,p).length;e++){const s=t(this,p)[e]();let r=s.axis;t(this,M)!=="auto"&&(r=t(this,M)),t(this,l).setStep(`_scroll_${e}`,"+",{[r]:s.value*(r==="x"?-1:t(this,L)?1:-1)})}},E=new WeakMap,k=new WeakMap,U=new WeakMap;exports.LayoutBox=St;exports.decomposeCSSMatrix=it;
@@ -16,6 +16,7 @@ import { ticker as Q } from "../ticker/index.js";
16
16
  import { i as j } from "../browser-0zX67oeU.js";
17
17
  import { g as tt } from "../dom-0S_WDL4g.js";
18
18
  import { g as G, a as J } from "../layout-HoBT_Da2.js";
19
+ import "../path-data-polyfill-DgeDWYeI.js";
19
20
  import { elementResizer as st } from "../element-resizer/index.js";
20
21
  import { windowResizer as et } from "../window-resizer/index.js";
21
22
  function dt(i) {
@@ -42,7 +43,7 @@ function dt(i) {
42
43
  };
43
44
  }
44
45
  var a, f, p, _, Z, P, x, E, A, y, M, L, S, d, v, X, Y, W, m, z, g, c, l, o, b, q, N, D, it, U, ht, k, nt, w, B, V;
45
- class vt {
46
+ class wt {
46
47
  constructor(s, e) {
47
48
  h(this, q);
48
49
  h(this, D);
@@ -260,6 +261,6 @@ a = new WeakMap(), f = new WeakMap(), p = new WeakMap(), _ = new WeakMap(), Z =
260
261
  }
261
262
  }, w = new WeakMap(), B = new WeakMap(), V = new WeakMap();
262
263
  export {
263
- vt as LayoutBox,
264
+ wt as LayoutBox,
264
265
  dt as decomposeCSSMatrix
265
266
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1 @@
1
- "use strict";var p=Object.defineProperty,b=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var S=(s,t,e)=>t in s?p(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,f=(s,t)=>{for(var e in t||(t={}))L.call(t,e)&&S(s,e,t[e]);if(E)for(var e of E(t))N.call(t,e)&&S(s,e,t[e]);return s},c=(s,t)=>b(s,C(t));var w=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(w(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},v=(s,t,e,o)=>(w(s,t,"write to private field"),o?o.call(s,e):t.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../notifier/index.cjs"),_=require("../function-MthRj-GJ.cjs");var i,h,a,d,n,u,g;class q{constructor(){l(this,i,new Map);l(this,h,new y.Notifier);l(this,a,new y.Notifier);l(this,d,new y.Notifier);l(this,n,!1);l(this,u,t=>{const{loaded:e,total:o}=this.getStats();r(this,h).notify({progress:e/o,loaded:e,total:o,namespace:t}),r(this,g).call(this)});l(this,g,_.debounce(()=>{const{loaded:t,total:e}=this.getStats();if(t===e){v(this,n,!0);const{total:o}=this.getStats();r(this,a).notify({total:o})}},150))}get progressEvent(){return r(this,h)}get completeEvent(){return r(this,a)}get errorEvent(){return r(this,d)}get _counter(){return r(this,i)}get isComplete(){return r(this,n)}reset(){v(this,n,!1),r(this,i).clear()}setTotal(t,e=1){r(this,n)||r(this,i).set(t,{loaded:0,total:e})}setLoaded(t,e=1){if(!r(this,n)&&r(this,i).has(t)){const o=r(this,i).get(t);o.loaded!==e&&(r(this,i).set(t,c(f({},o),{loaded:e})),r(this,u).call(this,t))}}setError(t,e){if(!r(this,n)&&r(this,i).has(t)){const o=r(this,i).get(t);r(this,i).set(t,c(f({},o),{total:o.total-1})),r(this,d).notify({namespace:t,url:e})}}getStats(){return Array.from(r(this,i)).reduce((t,e)=>({loaded:t.loaded+e[1].loaded,total:t.total+e[1].total}),{loaded:0,total:0})}}i=new WeakMap,h=new WeakMap,a=new WeakMap,d=new WeakMap,n=new WeakMap,u=new WeakMap,g=new WeakMap;const M=new q;exports.loading=M;
1
+ "use strict";var p=Object.defineProperty,b=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var S=(r,t,e)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,f=(r,t)=>{for(var e in t||(t={}))C.call(t,e)&&S(r,e,t[e]);if(E)for(var e of E(t))L.call(t,e)&&S(r,e,t[e]);return r},c=(r,t)=>b(r,q(t));var w=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var s=(r,t,e)=>(w(r,t,"read from private field"),e?e.call(r):t.get(r)),l=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)},v=(r,t,e,i)=>(w(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../notifier/index.cjs"),N=require("../function-MthRj-GJ.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var o,h,a,d,n,u,g;class _{constructor(){l(this,o,new Map);l(this,h,new y.Notifier);l(this,a,new y.Notifier);l(this,d,new y.Notifier);l(this,n,!1);l(this,u,t=>{const{loaded:e,total:i}=this.getStats();s(this,h).notify({progress:e/i,loaded:e,total:i,namespace:t}),s(this,g).call(this)});l(this,g,N.debounce(()=>{const{loaded:t,total:e}=this.getStats();if(t===e){v(this,n,!0);const{total:i}=this.getStats();s(this,a).notify({total:i})}},150))}get progressEvent(){return s(this,h)}get completeEvent(){return s(this,a)}get errorEvent(){return s(this,d)}get _counter(){return s(this,o)}get isComplete(){return s(this,n)}reset(){v(this,n,!1),s(this,o).clear()}setTotal(t,e=1){s(this,n)||s(this,o).set(t,{loaded:0,total:e})}setLoaded(t,e=1){if(!s(this,n)&&s(this,o).has(t)){const i=s(this,o).get(t);i.loaded!==e&&(s(this,o).set(t,c(f({},i),{loaded:e})),s(this,u).call(this,t))}}setError(t,e){if(!s(this,n)&&s(this,o).has(t)){const i=s(this,o).get(t);s(this,o).set(t,c(f({},i),{total:i.total-1})),s(this,d).notify({namespace:t,url:e})}}getStats(){return Array.from(s(this,o)).reduce((t,e)=>({loaded:t.loaded+e[1].loaded,total:t.total+e[1].total}),{loaded:0,total:0})}}o=new WeakMap,h=new WeakMap,a=new WeakMap,d=new WeakMap,n=new WeakMap,u=new WeakMap,g=new WeakMap;const M=new _;exports.loading=M;
@@ -1,33 +1,34 @@
1
- var m = Object.defineProperty, S = Object.defineProperties;
1
+ var y = Object.defineProperty, S = Object.defineProperties;
2
2
  var C = Object.getOwnPropertyDescriptors;
3
3
  var v = Object.getOwnPropertySymbols;
4
4
  var L = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
- var w = (s, t, e) => t in s ? m(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, u = (s, t) => {
5
+ var m = (s, t, e) => t in s ? y(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, u = (s, t) => {
6
6
  for (var e in t || (t = {}))
7
- L.call(t, e) && w(s, e, t[e]);
7
+ L.call(t, e) && m(s, e, t[e]);
8
8
  if (v)
9
9
  for (var e of v(t))
10
- b.call(t, e) && w(s, e, t[e]);
10
+ b.call(t, e) && m(s, e, t[e]);
11
11
  return s;
12
12
  }, c = (s, t) => S(s, C(t));
13
- var y = (s, t, e) => {
13
+ var w = (s, t, e) => {
14
14
  if (!t.has(s))
15
15
  throw TypeError("Cannot " + e);
16
16
  };
17
- var r = (s, t, e) => (y(s, t, "read from private field"), e ? e.call(s) : t.get(s)), h = (s, t, e) => {
17
+ var r = (s, t, e) => (w(s, t, "read from private field"), e ? e.call(s) : t.get(s)), h = (s, t, e) => {
18
18
  if (t.has(s))
19
19
  throw TypeError("Cannot add the same private member more than once");
20
20
  t instanceof WeakSet ? t.add(s) : t.set(s, e);
21
- }, E = (s, t, e, o) => (y(s, t, "write to private field"), o ? o.call(s, e) : t.set(s, e), e);
22
- import { Notifier as p } from "../notifier/index.js";
21
+ }, p = (s, t, e, o) => (w(s, t, "write to private field"), o ? o.call(s, e) : t.set(s, e), e);
22
+ import { Notifier as E } from "../notifier/index.js";
23
23
  import { d as x } from "../function-C10DGppn.js";
24
+ import "../path-data-polyfill-DgeDWYeI.js";
24
25
  var i, l, a, d, n, g, f;
25
26
  class A {
26
27
  constructor() {
27
28
  h(this, i, /* @__PURE__ */ new Map());
28
- h(this, l, new p());
29
- h(this, a, new p());
30
- h(this, d, new p());
29
+ h(this, l, new E());
30
+ h(this, a, new E());
31
+ h(this, d, new E());
31
32
  h(this, n, !1);
32
33
  h(this, g, (t) => {
33
34
  const { loaded: e, total: o } = this.getStats();
@@ -41,7 +42,7 @@ class A {
41
42
  h(this, f, x(() => {
42
43
  const { loaded: t, total: e } = this.getStats();
43
44
  if (t === e) {
44
- E(this, n, !0);
45
+ p(this, n, !0);
45
46
  const { total: o } = this.getStats();
46
47
  r(this, a).notify({
47
48
  total: o
@@ -65,7 +66,7 @@ class A {
65
66
  return r(this, n);
66
67
  }
67
68
  reset() {
68
- E(this, n, !1), r(this, i).clear();
69
+ p(this, n, !1), r(this, i).clear();
69
70
  }
70
71
  setTotal(t, e = 1) {
71
72
  r(this, n) || r(this, i).set(t, { loaded: 0, total: e });
@@ -93,7 +94,7 @@ class A {
93
94
  }
94
95
  }
95
96
  i = new WeakMap(), l = new WeakMap(), a = new WeakMap(), d = new WeakMap(), n = new WeakMap(), g = new WeakMap(), f = new WeakMap();
96
- const _ = new A();
97
+ const j = new A();
97
98
  export {
98
- _ as loading
99
+ j as loading
99
100
  };
@@ -1 +1 @@
1
- "use strict";var d=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var o=(e,r,s)=>(d(e,r,"read from private field"),s?s.call(e):r.get(e)),c=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},u=(e,r,s,n)=>(d(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../order/index.cjs"),l=require("../window-resizer/index.cjs"),h=require("../Store-C-1ruEIm.cjs");var i,t;class b extends h.Store{constructor(s){super(!1);c(this,i,void 0);c(this,t,void 0);u(this,i,s),u(this,t,l.windowResizer.subscribe(()=>{matchMedia(o(this,i)).matches?this.current=!0:this.current=!1},a.RESIZE_ORDER.MEDIA))}close(){super.close(),o(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=b;
1
+ "use strict";var d=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var o=(e,r,s)=>(d(e,r,"read from private field"),s?s.call(e):r.get(e)),u=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},c=(e,r,s,n)=>(d(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../order/index.cjs"),l=require("../window-resizer/index.cjs"),h=require("../Store-BQGNOHlY.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var i,t;class b extends h.Store{constructor(s){super(!1);u(this,i,void 0);u(this,t,void 0);c(this,i,s),c(this,t,l.windowResizer.subscribe(()=>{matchMedia(o(this,i)).matches?this.current=!0:this.current=!1},a.RESIZE_ORDER.MEDIA))}close(){super.close(),o(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=b;
@@ -6,17 +6,18 @@ var o = (e, s, r) => (a(e, s, "read from private field"), r ? r.call(e) : s.get(
6
6
  if (s.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  s instanceof WeakSet ? s.add(e) : s.set(e, r);
9
- }, u = (e, s, r, m) => (a(e, s, "write to private field"), m ? m.call(e, r) : s.set(e, r), r);
9
+ }, m = (e, s, r, u) => (a(e, s, "write to private field"), u ? u.call(e, r) : s.set(e, r), r);
10
10
  import { RESIZE_ORDER as h } from "../order/index.js";
11
11
  import { windowResizer as n } from "../window-resizer/index.js";
12
- import { S as f } from "../Store-BQXXikps.js";
12
+ import { S as p } from "../Store-Cd-E5W1z.js";
13
+ import "../path-data-polyfill-DgeDWYeI.js";
13
14
  var t, i;
14
- class b extends f {
15
+ class w extends p {
15
16
  constructor(r) {
16
17
  super(!1);
17
18
  c(this, t, void 0);
18
19
  c(this, i, void 0);
19
- u(this, t, r), u(this, i, n.subscribe(() => {
20
+ m(this, t, r), m(this, i, n.subscribe(() => {
20
21
  matchMedia(o(this, t)).matches ? this.current = !0 : this.current = !1;
21
22
  }, h.MEDIA));
22
23
  }
@@ -26,5 +27,5 @@ class b extends f {
26
27
  }
27
28
  t = new WeakMap(), i = new WeakMap();
28
29
  export {
29
- b as Media
30
+ w as Media
30
31
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const b=require("../browser-CpzFX2xg.cjs"),s=require("../tags-Djb6mb1o.cjs"),m=require("../createStylesheet-CqHU9_qv.cjs"),g=require("../popover/index.cjs"),d=require("../theme/index.cjs");var w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=(t,e,o,r)=>{for(var n=r>1?void 0:r?_(e,o):e,c=t.length-1,h;c>=0;c--)(h=t[c])&&(n=(r?h(e,o,n):h(n))||n);return r&&n&&w(e,o,n),n},p=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)},l=(t,e,o)=>(p(t,e,"read from private field"),o?o.call(t):e.get(t)),u=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)},f=(t,e,o,r)=>(p(t,e,"write to private field"),r?r.call(t,o):e.set(t,o),o),i,a;const C=m.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:d.aptechkaTheme.durationShort.var},":host::before":{content:'""',position:"fixed",top:"0",left:"0",zIndex:"-1",width:"100%",height:"100%",backgroundColor:"var(--backdrop, rgba(0, 0, 0, 0.8))"},".inner":{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden auto"},".overflow .inner":{alignItems:"flex-start"},".content":{position:"relative"},".close-button":{position:"absolute",zIndex:"1",top:"var(--close-button-top, 0.5em)",right:"var(--close-button-right, 0.5em)",background:"none",border:"none",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit"},".close-button-default":{width:"var(--close-button-size, 1.5em)",height:"var(--close-button-size, 1.5em)",display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"transform",transitionDuration:d.aptechkaTheme.durationShort.var,willChange:"transform"},".close-button:hover .close-button-default":{transform:"scale(0.9)"},".close-button:active .close-button-default":{transform:"scale(0.7)"},".close-button-default::before, .close-button-default::after":{content:'""',position:"absolute",width:"var(--close-button-thickness, 0.1em)",height:"100%",backgroundColor:`var(--close-button-color, ${d.aptechkaTheme.colorDark.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});exports.ModalElement=class extends g.PopoverElement{constructor(){super(),u(this,i,null),u(this,a,null),b.isBrowser&&(this.openShadow(C),s.element(this,{children:s.div({class:"inner",outside:!0,children:s.div({class:"content",children:[s.element("e-popover-button",{type:"close",target:this.id,class:"close-button",lightChildren:[s.slot({name:"close-button",children:s.span({class:"close-button-default"})})]}),s.slot()]}),ref:e=>f(this,a,e)})}),f(this,i,new ResizeObserver(()=>{l(this,a).scrollHeight>l(this,a).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),l(this,i).observe(this)}disconnectedCallback(){super.disconnectedCallback(),l(this,i).disconnect()}};i=new WeakMap;a=new WeakMap;exports.ModalElement=y([v.define("e-modal")],exports.ModalElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs");require("../Store-BQGNOHlY.cjs");const b=require("../browser-CpzFX2xg.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const s=require("../tags-CueX-JLX.cjs"),m=require("../createStylesheet-C8aQQ4hd.cjs"),g=require("../popover/index.cjs"),d=require("../theme/index.cjs");var w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=(t,e,o,r)=>{for(var n=r>1?void 0:r?_(e,o):e,c=t.length-1,h;c>=0;c--)(h=t[c])&&(n=(r?h(e,o,n):h(n))||n);return r&&n&&w(e,o,n),n},p=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)},l=(t,e,o)=>(p(t,e,"read from private field"),o?o.call(t):e.get(t)),u=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)},f=(t,e,o,r)=>(p(t,e,"write to private field"),r?r.call(t,o):e.set(t,o),o),i,a;const C=m.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:d.aptechkaTheme.durationShort.var},":host::before":{content:'""',position:"fixed",top:"0",left:"0",zIndex:"-1",width:"100%",height:"100%",backgroundColor:"var(--backdrop, rgba(0, 0, 0, 0.8))"},".inner":{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden auto"},".overflow .inner":{alignItems:"flex-start"},".content":{position:"relative"},".close-button":{position:"absolute",zIndex:"1",top:"var(--close-button-top, 0.5em)",right:"var(--close-button-right, 0.5em)",background:"none",border:"none",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit"},".close-button-default":{width:"var(--close-button-size, 1.5em)",height:"var(--close-button-size, 1.5em)",display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"transform",transitionDuration:d.aptechkaTheme.durationShort.var,willChange:"transform"},".close-button:hover .close-button-default":{transform:"scale(0.9)"},".close-button:active .close-button-default":{transform:"scale(0.7)"},".close-button-default::before, .close-button-default::after":{content:'""',position:"absolute",width:"var(--close-button-thickness, 0.1em)",height:"100%",backgroundColor:`var(--close-button-color, ${d.aptechkaTheme.colorDark.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});exports.ModalElement=class extends g.PopoverElement{constructor(){super(),u(this,i,null),u(this,a,null),b.isBrowser&&(this.openShadow(C),s.element(this,{children:s.div({class:"inner",outside:!0,children:s.div({class:"content",children:[s.element("e-popover-button",{type:"close",target:this.id,class:"close-button",lightChildren:[s.slot({name:"close-button",children:s.span({class:"close-button-default"})})]}),s.slot()]}),ref:e=>f(this,a,e)})}),f(this,i,new ResizeObserver(()=>{l(this,a).scrollHeight>l(this,a).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),l(this,i).observe(this)}disconnectedCallback(){super.disconnectedCallback(),l(this,i).disconnect()}};i=new WeakMap;a=new WeakMap;exports.ModalElement=y([v.define("e-modal")],exports.ModalElement);
@@ -1,8 +1,9 @@
1
1
  import { define as g } from "../custom-element/index.js";
2
- import "../Store-BQXXikps.js";
2
+ import "../Store-Cd-E5W1z.js";
3
3
  import { i as w } from "../browser-0zX67oeU.js";
4
- import { e as d, D as f, ay as u, aB as _ } from "../tags-CMPg9ETZ.js";
5
- import { c as y } from "../createStylesheet-DBCEbDjI.js";
4
+ import "../path-data-polyfill-DgeDWYeI.js";
5
+ import { e as d, D as f, ay as u, aB as _ } from "../tags-BoPv9fDr.js";
6
+ import { c as y } from "../createStylesheet-KMRQhSa-.js";
6
7
  import { PopoverElement as C } from "../popover/index.js";
7
8
  import { aptechkaTheme as h } from "../theme/index.js";
8
9
  var k = Object.defineProperty, x = Object.getOwnPropertyDescriptor, z = (t, e, o, r) => {
@@ -1 +1 @@
1
- "use strict";var V=(s,t)=>(t=Symbol[s])?t:Symbol.for("Symbol."+s);var m=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var i=(s,t,e)=>(m(s,t,"read from private field"),e?e.call(s):t.get(s)),n=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},r=(s,t,e,o)=>(m(s,t,"write to private field"),o?o.call(s,e):t.set(s,e),e);var f=(s,t,e)=>(m(s,t,"access private method"),e);var T=(s,t,e)=>new Promise((o,c)=>{var l=u=>{try{g(e.next(u))}catch(v){c(v)}},y=u=>{try{g(e.throw(u))}catch(v){c(v)}},g=u=>u.done?o(u.value):Promise.resolve(u.value).then(l,y);g((e=e.apply(s,t)).next())});var X=(s,t,e)=>(t=s[V("asyncIterator")])?t.call(s):(s=s[V("iterator")](),t={},e=(o,c)=>(c=s[o])&&(t[o]=l=>new Promise((y,g,u)=>(l=c.call(s,l),u=l.done,Promise.resolve(l.value).then(v=>y({value:v,done:u}),g)))),e("next"),e("return"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("../notifier/index.cjs"),st=require("../browser-CpzFX2xg.cjs");var M,d,w,N,P,S;class nt{constructor(t,e){n(this,M,void 0);n(this,d,void 0);n(this,w,void 0);n(this,N,void 0);n(this,P,t=>{t.preventDefault(),i(this,M).navigate(i(this,w),i(this,N))});n(this,S,()=>{i(this,M).prefetch(i(this,w))});r(this,M,e),r(this,d,t),r(this,w,i(this,d).getAttribute("href")||"/"),r(this,N,i(this,d).getAttribute("data-history-action")||"push"),i(this,d).addEventListener("click",i(this,P)),i(this,w)===location.pathname&&i(this,d).classList.add("current"),i(this,d).hasAttribute("data-prefetch")&&i(this,d).addEventListener("pointerenter",i(this,S))}destroy(){i(this,d).removeEventListener("click",i(this,P)),i(this,d).removeEventListener("pointerenter",i(this,S)),i(this,d).classList.remove("current")}}M=new WeakMap,d=new WeakMap,w=new WeakMap,N=new WeakMap,P=new WeakMap,S=new WeakMap;var a,k,A,C,x,j,E,L,H,D,q,R,z,B,$,W,G,F,J,K,p,O,Q,Y;class ot{constructor(t){n(this,R);n(this,B);n(this,W);n(this,F);n(this,K);n(this,O);n(this,a,null);n(this,k,null);n(this,A,null);n(this,C,null);n(this,x,[]);n(this,j,new DOMParser);n(this,E,new Map);n(this,L,void 0);n(this,H,null);n(this,D,new Z.Notifier);n(this,q,new Z.Notifier);n(this,Y,t=>{t.state&&this.navigate(t.state,"none")});st.isBrowser&&(r(this,a,(t==null?void 0:t.base)||"/"),t!=null&&t.base?(r(this,a,t.base),t.base.endsWith("/")||r(this,a,i(this,a)+"/")):r(this,a,"/"),r(this,k,(t==null?void 0:t.waitForHeadToLoad)!==!1),r(this,A,(t==null?void 0:t.cachePages)!==!1),r(this,C,f(this,F,J).call(this,document)),r(this,H,location.pathname),f(this,W,G).call(this),addEventListener("popstate",i(this,Y)))}beforeNavigationEvent(t){return i(this,D).subscribe(t)}afterNavigationEvent(t){return i(this,q).subscribe(t)}prefetch(t){return T(this,null,function*(){return f(this,R,z).call(this,t)})}navigate(t,e="push"){return T(this,null,function*(){var c;if(t=f(this,B,$).call(this,t),i(this,L)===t||i(this,H)===t)return;r(this,L,t);const o=i(this,E).has(t);try{let l=!0;if(this.preprocessor)try{yield new Promise((h,b)=>{var I;(I=this.preprocessor)==null||I.call(this,{pathname:t,resolve:h,reject:b,isCached:o})})}catch(h){h?console.error(h):console.log("Route change canceled"),l=!1}if(i(this,D).notify({pathname:t,isCached:o}),!l||i(this,L)!==t)return;const y=i(this,E).get(t)||(yield f(this,R,z).call(this,t));if(i(this,L)!==t)return;const g=Array.from(document.head.children),u=Array.from(y.head.cloneNode(!0).children),v=f(this,K,p).call(this,g,u),tt=f(this,O,Q).call(this,g,v),U=f(this,O,Q).call(this,u,v);tt.forEach(h=>h.remove()),U.forEach(h=>document.head.appendChild(h));const _=U.filter(h=>h.tagName==="STYLE"||h.tagName==="SCRIPT"||h.tagName==="LINK");i(this,k)&&_.length&&(yield new Promise(h=>T(this,null,function*(){let b=0;try{for(var I=X(_),ct,lt,ut;ct=!(lt=yield I.next()).done;ct=!1){const it=lt.value;it.onload=()=>{b++,b===_.length&&h()}}}catch(lt){ut=[lt]}finally{try{ct&&(lt=I.return)&&(yield lt.call(I))}finally{if(ut)throw ut[0]}}})));const et=f(this,F,J).call(this,y);i(this,C).forEach((h,b)=>{const I=et[b];h.innerHTML=I.innerHTML}),r(this,H,t),e==="push"?history.pushState(t,"",t+location.search):e==="replace"&&history.replaceState(t,"",t+location.search),f(this,W,G).call(this),(c=this.postprocessor)==null||c.call(this,{pathname:t,isCached:o}),i(this,q).notify({pathname:t,isCached:o})}catch(l){console.error(l)}r(this,L,void 0)})}}a=new WeakMap,k=new WeakMap,A=new WeakMap,C=new WeakMap,x=new WeakMap,j=new WeakMap,E=new WeakMap,L=new WeakMap,H=new WeakMap,D=new WeakMap,q=new WeakMap,R=new WeakSet,z=function(t){return T(this,null,function*(){const e=i(this,E).get(t);if(e)return e;const c=yield(yield fetch(t)).text(),l=i(this,j).parseFromString(c,"text/html");return i(this,A)&&i(this,E).set(t,l),l})},B=new WeakSet,$=function(t){return t=t.replace(i(this,a),""),t.startsWith("/")&&(t=t.slice(1)),i(this,a)+t},W=new WeakSet,G=function(){const t=[...document.documentElement.querySelectorAll("a")].filter(e=>{var o;return(o=e.getAttribute("href"))==null?void 0:o.startsWith("/")});i(this,x).forEach(e=>e.destroy()),r(this,x,t.map(e=>new nt(e,this)))},F=new WeakSet,J=function(t){const e=t.querySelectorAll("[data-morph]");return e.length?[...e]:[t.body]},K=new WeakSet,p=function(t,e){return t.filter(o=>e.find(c=>c.outerHTML===o.outerHTML))},O=new WeakSet,Q=function(t,e){return t.filter(o=>!e.find(c=>c.outerHTML===o.outerHTML))},Y=new WeakMap;exports.Morph=ot;
1
+ "use strict";var V=(s,t)=>(t=Symbol[s])?t:Symbol.for("Symbol."+s);var m=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var i=(s,t,e)=>(m(s,t,"read from private field"),e?e.call(s):t.get(s)),n=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},o=(s,t,e,r)=>(m(s,t,"write to private field"),r?r.call(s,e):t.set(s,e),e);var f=(s,t,e)=>(m(s,t,"access private method"),e);var T=(s,t,e)=>new Promise((r,c)=>{var l=u=>{try{g(e.next(u))}catch(v){c(v)}},y=u=>{try{g(e.throw(u))}catch(v){c(v)}},g=u=>u.done?r(u.value):Promise.resolve(u.value).then(l,y);g((e=e.apply(s,t)).next())});var X=(s,t,e)=>(t=s[V("asyncIterator")])?t.call(s):(s=s[V("iterator")](),t={},e=(r,c)=>(c=s[r])&&(t[r]=l=>new Promise((y,g,u)=>(l=c.call(s,l),u=l.done,Promise.resolve(l.value).then(v=>y({value:v,done:u}),g)))),e("next"),e("return"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("../notifier/index.cjs"),st=require("../browser-CpzFX2xg.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var M,d,w,N,P,S;class nt{constructor(t,e){n(this,M,void 0);n(this,d,void 0);n(this,w,void 0);n(this,N,void 0);n(this,P,t=>{t.preventDefault(),i(this,M).navigate(i(this,w),i(this,N))});n(this,S,()=>{i(this,M).prefetch(i(this,w))});o(this,M,e),o(this,d,t),o(this,w,i(this,d).getAttribute("href")||"/"),o(this,N,i(this,d).getAttribute("data-history-action")||"push"),i(this,d).addEventListener("click",i(this,P)),i(this,w)===location.pathname&&i(this,d).classList.add("current"),i(this,d).hasAttribute("data-prefetch")&&i(this,d).addEventListener("pointerenter",i(this,S))}destroy(){i(this,d).removeEventListener("click",i(this,P)),i(this,d).removeEventListener("pointerenter",i(this,S)),i(this,d).classList.remove("current")}}M=new WeakMap,d=new WeakMap,w=new WeakMap,N=new WeakMap,P=new WeakMap,S=new WeakMap;var a,k,A,C,q,j,E,L,H,x,D,R,z,B,$,W,G,F,J,K,p,O,Q,Y;class rt{constructor(t){n(this,R);n(this,B);n(this,W);n(this,F);n(this,K);n(this,O);n(this,a,null);n(this,k,null);n(this,A,null);n(this,C,null);n(this,q,[]);n(this,j,new DOMParser);n(this,E,new Map);n(this,L,void 0);n(this,H,null);n(this,x,new Z.Notifier);n(this,D,new Z.Notifier);n(this,Y,t=>{t.state&&this.navigate(t.state,"none")});st.isBrowser&&(o(this,a,(t==null?void 0:t.base)||"/"),t!=null&&t.base?(o(this,a,t.base),t.base.endsWith("/")||o(this,a,i(this,a)+"/")):o(this,a,"/"),o(this,k,(t==null?void 0:t.waitForHeadToLoad)!==!1),o(this,A,(t==null?void 0:t.cachePages)!==!1),o(this,C,f(this,F,J).call(this,document)),o(this,H,location.pathname),f(this,W,G).call(this),addEventListener("popstate",i(this,Y)))}beforeNavigationEvent(t){return i(this,x).subscribe(t)}afterNavigationEvent(t){return i(this,D).subscribe(t)}prefetch(t){return T(this,null,function*(){return f(this,R,z).call(this,t)})}navigate(t,e="push"){return T(this,null,function*(){var c;if(t=f(this,B,$).call(this,t),i(this,L)===t||i(this,H)===t)return;o(this,L,t);const r=i(this,E).has(t);try{let l=!0;if(this.preprocessor)try{yield new Promise((h,b)=>{var I;(I=this.preprocessor)==null||I.call(this,{pathname:t,resolve:h,reject:b,isCached:r})})}catch(h){h?console.error(h):console.log("Route change canceled"),l=!1}if(i(this,x).notify({pathname:t,isCached:r}),!l||i(this,L)!==t)return;const y=i(this,E).get(t)||(yield f(this,R,z).call(this,t));if(i(this,L)!==t)return;const g=Array.from(document.head.children),u=Array.from(y.head.cloneNode(!0).children),v=f(this,K,p).call(this,g,u),tt=f(this,O,Q).call(this,g,v),U=f(this,O,Q).call(this,u,v);tt.forEach(h=>h.remove()),U.forEach(h=>document.head.appendChild(h));const _=U.filter(h=>h.tagName==="STYLE"||h.tagName==="SCRIPT"||h.tagName==="LINK");i(this,k)&&_.length&&(yield new Promise(h=>T(this,null,function*(){let b=0;try{for(var I=X(_),ct,lt,ut;ct=!(lt=yield I.next()).done;ct=!1){const it=lt.value;it.onload=()=>{b++,b===_.length&&h()}}}catch(lt){ut=[lt]}finally{try{ct&&(lt=I.return)&&(yield lt.call(I))}finally{if(ut)throw ut[0]}}})));const et=f(this,F,J).call(this,y);i(this,C).forEach((h,b)=>{const I=et[b];h.innerHTML=I.innerHTML}),o(this,H,t),e==="push"?history.pushState(t,"",t+location.search):e==="replace"&&history.replaceState(t,"",t+location.search),f(this,W,G).call(this),(c=this.postprocessor)==null||c.call(this,{pathname:t,isCached:r}),i(this,D).notify({pathname:t,isCached:r})}catch(l){console.error(l)}o(this,L,void 0)})}}a=new WeakMap,k=new WeakMap,A=new WeakMap,C=new WeakMap,q=new WeakMap,j=new WeakMap,E=new WeakMap,L=new WeakMap,H=new WeakMap,x=new WeakMap,D=new WeakMap,R=new WeakSet,z=function(t){return T(this,null,function*(){const e=i(this,E).get(t);if(e)return e;const c=yield(yield fetch(t)).text(),l=i(this,j).parseFromString(c,"text/html");return i(this,A)&&i(this,E).set(t,l),l})},B=new WeakSet,$=function(t){return t=t.replace(i(this,a),""),t.startsWith("/")&&(t=t.slice(1)),i(this,a)+t},W=new WeakSet,G=function(){const t=[...document.documentElement.querySelectorAll("a")].filter(e=>{var r;return(r=e.getAttribute("href"))==null?void 0:r.startsWith("/")});i(this,q).forEach(e=>e.destroy()),o(this,q,t.map(e=>new nt(e,this)))},F=new WeakSet,J=function(t){const e=t.querySelectorAll("[data-morph]");return e.length?[...e]:[t.body]},K=new WeakSet,p=function(t,e){return t.filter(r=>e.find(c=>c.outerHTML===r.outerHTML))},O=new WeakSet,Q=function(t,e){return t.filter(r=>!e.find(c=>c.outerHTML===r.outerHTML))},Y=new WeakMap;exports.Morph=rt;
@@ -28,6 +28,7 @@ var T = (s, t, e) => new Promise((o, c) => {
28
28
  var Z = (s, t, e) => (t = s[X("asyncIterator")]) ? t.call(s) : (s = s[X("iterator")](), t = {}, e = (o, c) => (c = s[o]) && (t[o] = (l) => new Promise((y, g, f) => (l = c.call(s, l), f = l.done, Promise.resolve(l.value).then((L) => y({ value: L, done: f }), g)))), e("next"), e("return"), t);
29
29
  import { Notifier as _ } from "../notifier/index.js";
30
30
  import { i as st } from "../browser-0zX67oeU.js";
31
+ import "../path-data-polyfill-DgeDWYeI.js";
31
32
  var H, u, E, N, P, S;
32
33
  class nt {
33
34
  constructor(t, e) {
@@ -50,12 +51,12 @@ class nt {
50
51
  }
51
52
  }
52
53
  H = new WeakMap(), u = new WeakMap(), E = new WeakMap(), N = new WeakMap(), P = new WeakMap(), S = new WeakMap();
53
- var a, k, A, C, x, O, w, v, M, D, R, W, G, B, $, m, J, F, Q, K, p, q, U, Y;
54
- class ct {
54
+ var a, k, A, C, x, O, w, v, M, D, m, R, G, B, $, W, J, F, Q, K, p, q, U, Y;
55
+ class lt {
55
56
  constructor(t) {
56
- n(this, W);
57
+ n(this, R);
57
58
  n(this, B);
58
- n(this, m);
59
+ n(this, W);
59
60
  n(this, F);
60
61
  n(this, K);
61
62
  n(this, q);
@@ -69,21 +70,21 @@ class ct {
69
70
  n(this, v, void 0);
70
71
  n(this, M, null);
71
72
  n(this, D, new _());
72
- n(this, R, new _());
73
+ n(this, m, new _());
73
74
  n(this, Y, (t) => {
74
75
  t.state && this.navigate(t.state, "none");
75
76
  });
76
- st && (r(this, a, (t == null ? void 0 : t.base) || "/"), t != null && t.base ? (r(this, a, t.base), t.base.endsWith("/") || r(this, a, i(this, a) + "/")) : r(this, a, "/"), r(this, k, (t == null ? void 0 : t.waitForHeadToLoad) !== !1), r(this, A, (t == null ? void 0 : t.cachePages) !== !1), r(this, C, d(this, F, Q).call(this, document)), r(this, M, location.pathname), d(this, m, J).call(this), addEventListener("popstate", i(this, Y)));
77
+ st && (r(this, a, (t == null ? void 0 : t.base) || "/"), t != null && t.base ? (r(this, a, t.base), t.base.endsWith("/") || r(this, a, i(this, a) + "/")) : r(this, a, "/"), r(this, k, (t == null ? void 0 : t.waitForHeadToLoad) !== !1), r(this, A, (t == null ? void 0 : t.cachePages) !== !1), r(this, C, d(this, F, Q).call(this, document)), r(this, M, location.pathname), d(this, W, J).call(this), addEventListener("popstate", i(this, Y)));
77
78
  }
78
79
  beforeNavigationEvent(t) {
79
80
  return i(this, D).subscribe(t);
80
81
  }
81
82
  afterNavigationEvent(t) {
82
- return i(this, R).subscribe(t);
83
+ return i(this, m).subscribe(t);
83
84
  }
84
85
  prefetch(t) {
85
86
  return T(this, null, function* () {
86
- return d(this, W, G).call(this, t);
87
+ return d(this, R, G).call(this, t);
87
88
  });
88
89
  }
89
90
  navigate(t, e = "push") {
@@ -109,7 +110,7 @@ class ct {
109
110
  isCached: o
110
111
  }), !l || i(this, v) !== t)
111
112
  return;
112
- const y = i(this, w).get(t) || (yield d(this, W, G).call(this, t));
113
+ const y = i(this, w).get(t) || (yield d(this, R, G).call(this, t));
113
114
  if (i(this, v) !== t)
114
115
  return;
115
116
  const g = Array.from(document.head.children), f = Array.from(
@@ -122,20 +123,20 @@ class ct {
122
123
  i(this, k) && j.length && (yield new Promise((h) => T(this, null, function* () {
123
124
  let b = 0;
124
125
  try {
125
- for (var I = Z(j), ut, dt, at; ut = !(dt = yield I.next()).done; ut = !1) {
126
- const it = dt.value;
126
+ for (var I = Z(j), dt, at, gt; dt = !(at = yield I.next()).done; dt = !1) {
127
+ const it = at.value;
127
128
  it.onload = () => {
128
129
  b++, b === j.length && h();
129
130
  };
130
131
  }
131
- } catch (dt) {
132
- at = [dt];
132
+ } catch (at) {
133
+ gt = [at];
133
134
  } finally {
134
135
  try {
135
- ut && (dt = I.return) && (yield dt.call(I));
136
+ dt && (at = I.return) && (yield at.call(I));
136
137
  } finally {
137
- if (at)
138
- throw at[0];
138
+ if (gt)
139
+ throw gt[0];
139
140
  }
140
141
  }
141
142
  })));
@@ -143,7 +144,7 @@ class ct {
143
144
  i(this, C).forEach((h, b) => {
144
145
  const I = et[b];
145
146
  h.innerHTML = I.innerHTML;
146
- }), r(this, M, t), e === "push" ? history.pushState(t, "", t + location.search) : e === "replace" && history.replaceState(t, "", t + location.search), d(this, m, J).call(this), (c = this.postprocessor) == null || c.call(this, { pathname: t, isCached: o }), i(this, R).notify({ pathname: t, isCached: o });
147
+ }), r(this, M, t), e === "push" ? history.pushState(t, "", t + location.search) : e === "replace" && history.replaceState(t, "", t + location.search), d(this, W, J).call(this), (c = this.postprocessor) == null || c.call(this, { pathname: t, isCached: o }), i(this, m).notify({ pathname: t, isCached: o });
147
148
  } catch (l) {
148
149
  console.error(l);
149
150
  }
@@ -151,7 +152,7 @@ class ct {
151
152
  });
152
153
  }
153
154
  }
154
- a = new WeakMap(), k = new WeakMap(), A = new WeakMap(), C = new WeakMap(), x = new WeakMap(), O = new WeakMap(), w = new WeakMap(), v = new WeakMap(), M = new WeakMap(), D = new WeakMap(), R = new WeakMap(), W = new WeakSet(), G = function(t) {
155
+ a = new WeakMap(), k = new WeakMap(), A = new WeakMap(), C = new WeakMap(), x = new WeakMap(), O = new WeakMap(), w = new WeakMap(), v = new WeakMap(), M = new WeakMap(), D = new WeakMap(), m = new WeakMap(), R = new WeakSet(), G = function(t) {
155
156
  return T(this, null, function* () {
156
157
  const e = i(this, w).get(t);
157
158
  if (e)
@@ -161,7 +162,7 @@ a = new WeakMap(), k = new WeakMap(), A = new WeakMap(), C = new WeakMap(), x =
161
162
  });
162
163
  }, B = new WeakSet(), $ = function(t) {
163
164
  return t = t.replace(i(this, a), ""), t.startsWith("/") && (t = t.slice(1)), i(this, a) + t;
164
- }, m = new WeakSet(), J = function() {
165
+ }, W = new WeakSet(), J = function() {
165
166
  const t = [
166
167
  ...document.documentElement.querySelectorAll("a")
167
168
  ].filter((e) => {
@@ -186,5 +187,5 @@ a = new WeakMap(), k = new WeakMap(), A = new WeakMap(), C = new WeakMap(), x =
186
187
  );
187
188
  }, Y = new WeakMap();
188
189
  export {
189
- ct as Morph
190
+ lt as Morph
190
191
  };
@@ -0,0 +1,3 @@
1
+ "use strict";// @license
2
+ (!SVGPathElement.prototype.getPathData||!SVGPathElement.prototype.setPathData)&&function(){var w={Z:"Z",M:"M",L:"L",C:"C",Q:"Q",A:"A",H:"H",V:"V",S:"S",T:"T",z:"Z",m:"m",l:"l",c:"c",q:"q",a:"a",h:"h",v:"v",s:"s",t:"t"},k=function(u){this._string=u,this._currentIndex=0,this._endIndex=this._string.length,this._prevCommand=null,this._skipOptionalSpaces()},K=window.navigator.userAgent.indexOf("MSIE ")!==-1;k.prototype={parseSegment:function(){var u=this._string[this._currentIndex],t=w[u]?w[u]:null;if(t===null){if(this._prevCommand===null||((u==="+"||u==="-"||u==="."||u>="0"&&u<="9")&&this._prevCommand!=="Z"?this._prevCommand==="M"?t="L":this._prevCommand==="m"?t="l":t=this._prevCommand:t=null,t===null))return null}else this._currentIndex+=1;this._prevCommand=t;var e=null,s=t.toUpperCase();return s==="H"||s==="V"?e=[this._parseNumber()]:s==="M"||s==="L"||s==="T"?e=[this._parseNumber(),this._parseNumber()]:s==="S"||s==="Q"?e=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber()]:s==="C"?e=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber()]:s==="A"?e=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseArcFlag(),this._parseArcFlag(),this._parseNumber(),this._parseNumber()]:s==="Z"&&(this._skipOptionalSpaces(),e=[]),e===null||e.indexOf(null)>=0?null:{type:t,values:e}},hasMoreData:function(){return this._currentIndex<this._endIndex},peekSegmentType:function(){var u=this._string[this._currentIndex];return w[u]?w[u]:null},initialCommandIsMoveTo:function(){if(!this.hasMoreData())return!0;var u=this.peekSegmentType();return u==="M"||u==="m"},_isCurrentSpace:function(){var u=this._string[this._currentIndex];return u<=" "&&(u===" "||u===`
3
+ `||u===" "||u==="\r"||u==="\f")},_skipOptionalSpaces:function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex+=1;return this._currentIndex<this._endIndex},_skipOptionalSpacesOrDelimiter:function(){return this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&this._string[this._currentIndex]!==","?!1:(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&this._string[this._currentIndex]===","&&(this._currentIndex+=1,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},_parseNumber:function(){var u=0,t=0,e=1,s=0,l=1,n=1,a=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&this._string[this._currentIndex]==="+"?this._currentIndex+=1:this._currentIndex<this._endIndex&&this._string[this._currentIndex]==="-"&&(this._currentIndex+=1,l=-1),this._currentIndex===this._endIndex||(this._string[this._currentIndex]<"0"||this._string[this._currentIndex]>"9")&&this._string[this._currentIndex]!==".")return null;for(var p=this._currentIndex;this._currentIndex<this._endIndex&&this._string[this._currentIndex]>="0"&&this._string[this._currentIndex]<="9";)this._currentIndex+=1;if(this._currentIndex!==p)for(var i=this._currentIndex-1,r=1;i>=p;)t+=r*(this._string[i]-"0"),i-=1,r*=10;if(this._currentIndex<this._endIndex&&this._string[this._currentIndex]==="."){if(this._currentIndex+=1,this._currentIndex>=this._endIndex||this._string[this._currentIndex]<"0"||this._string[this._currentIndex]>"9")return null;for(;this._currentIndex<this._endIndex&&this._string[this._currentIndex]>="0"&&this._string[this._currentIndex]<="9";)e*=10,s+=(this._string.charAt(this._currentIndex)-"0")/e,this._currentIndex+=1}if(this._currentIndex!==a&&this._currentIndex+1<this._endIndex&&(this._string[this._currentIndex]==="e"||this._string[this._currentIndex]==="E")&&this._string[this._currentIndex+1]!=="x"&&this._string[this._currentIndex+1]!=="m"){if(this._currentIndex+=1,this._string[this._currentIndex]==="+"?this._currentIndex+=1:this._string[this._currentIndex]==="-"&&(this._currentIndex+=1,n=-1),this._currentIndex>=this._endIndex||this._string[this._currentIndex]<"0"||this._string[this._currentIndex]>"9")return null;for(;this._currentIndex<this._endIndex&&this._string[this._currentIndex]>="0"&&this._string[this._currentIndex]<="9";)u*=10,u+=this._string[this._currentIndex]-"0",this._currentIndex+=1}var v=t+s;return v*=l,u&&(v*=Math.pow(10,n*u)),a===this._currentIndex?null:(this._skipOptionalSpacesOrDelimiter(),v)},_parseArcFlag:function(){if(this._currentIndex>=this._endIndex)return null;var u=null,t=this._string[this._currentIndex];if(this._currentIndex+=1,t==="0")u=0;else if(t==="1")u=1;else return null;return this._skipOptionalSpacesOrDelimiter(),u}};var z=function(u){if(!u||u.length===0)return[];var t=new k(u),e=[];if(t.initialCommandIsMoveTo())for(;t.hasMoreData();){var s=t.parseSegment();if(s===null)break;e.push(s)}return e},W=SVGPathElement.prototype.setAttribute,U=SVGPathElement.prototype.setAttributeNS,R=SVGPathElement.prototype.removeAttribute,g=SVGPathElement.prototype.removeAttributeNS,x=window.Symbol?Symbol():"__cachedPathData",S=window.Symbol?Symbol():"__cachedNormalizedPathData",H=function(u,t,e,s,l,n,a,p,i,r){var v=function(L){return Math.PI*L/180},h=function(L,J,T){var ht=L*Math.cos(T)-J*Math.sin(T),pt=L*Math.sin(T)+J*Math.cos(T);return{x:ht,y:pt}},o=v(a),c=[],_,f,d,y;if(r)_=r[0],f=r[1],d=r[2],y=r[3];else{var A=h(u,t,-o);u=A.x,t=A.y;var P=h(e,s,-o);e=P.x,s=P.y;var m=(u-e)/2,I=(t-s)/2,M=m*m/(l*l)+I*I/(n*n);M>1&&(M=Math.sqrt(M),l=M*l,n=M*n);var D;p===i?D=-1:D=1;var E=l*l,N=n*n,et=E*N-E*I*I-N*m*m,at=E*I*I+N*m*m,O=D*Math.sqrt(Math.abs(et/at));d=O*l*I/n+(u+e)/2,y=O*-n*m/l+(t+s)/2,_=Math.asin(parseFloat(((t-y)/n).toFixed(9))),f=Math.asin(parseFloat(((s-y)/n).toFixed(9))),u<d&&(_=Math.PI-_),e<d&&(f=Math.PI-f),_<0&&(_=Math.PI*2+_),f<0&&(f=Math.PI*2+f),i&&_>f&&(_=_-Math.PI*2),!i&&f>_&&(f=f-Math.PI*2)}var Z=f-_;if(Math.abs(Z)>Math.PI*120/180){var rt=f,st=e,ut=s;i&&f>_?f=_+Math.PI*120/180*1:f=_+Math.PI*120/180*-1,e=d+l*Math.cos(f),s=y+n*Math.sin(f),c=H(e,s,st,ut,l,n,a,0,i,[f,rt,d,y])}Z=f-_;var it=Math.cos(_),nt=Math.sin(_),lt=Math.cos(f),vt=Math.sin(f),Q=Math.tan(Z/4),X=4/3*l*Q,Y=4/3*n*Q,q=[u,t],C=[u+X*nt,t-Y*it],$=[e+X*vt,s-Y*lt],F=[e,s];if(C[0]=2*q[0]-C[0],C[1]=2*q[1]-C[1],r)return[C,$,F].concat(c);c=[C,$,F].concat(c);for(var j=[],b=0;b<c.length;b+=3){var l=h(c[b][0],c[b][1],o),n=h(c[b+1][0],c[b+1][1],o),B=h(c[b+2][0],c[b+2][1],o);j.push([l.x,l.y,n.x,n.y,B.x,B.y])}return j},V=function(u){return u.map(function(t){return{type:t.type,values:Array.prototype.slice.call(t.values)}})},tt=function(u){var t=[],e=null,s=null,l=null,n=null;return u.forEach(function(a){var p=a.type;if(p==="M"){var i=a.values[0],r=a.values[1];t.push({type:"M",values:[i,r]}),l=i,n=r,e=i,s=r}else if(p==="m"){var i=e+a.values[0],r=s+a.values[1];t.push({type:"M",values:[i,r]}),l=i,n=r,e=i,s=r}else if(p==="L"){var i=a.values[0],r=a.values[1];t.push({type:"L",values:[i,r]}),e=i,s=r}else if(p==="l"){var i=e+a.values[0],r=s+a.values[1];t.push({type:"L",values:[i,r]}),e=i,s=r}else if(p==="C"){var v=a.values[0],h=a.values[1],o=a.values[2],c=a.values[3],i=a.values[4],r=a.values[5];t.push({type:"C",values:[v,h,o,c,i,r]}),e=i,s=r}else if(p==="c"){var v=e+a.values[0],h=s+a.values[1],o=e+a.values[2],c=s+a.values[3],i=e+a.values[4],r=s+a.values[5];t.push({type:"C",values:[v,h,o,c,i,r]}),e=i,s=r}else if(p==="Q"){var v=a.values[0],h=a.values[1],i=a.values[2],r=a.values[3];t.push({type:"Q",values:[v,h,i,r]}),e=i,s=r}else if(p==="q"){var v=e+a.values[0],h=s+a.values[1],i=e+a.values[2],r=s+a.values[3];t.push({type:"Q",values:[v,h,i,r]}),e=i,s=r}else if(p==="A"){var i=a.values[5],r=a.values[6];t.push({type:"A",values:[a.values[0],a.values[1],a.values[2],a.values[3],a.values[4],i,r]}),e=i,s=r}else if(p==="a"){var i=e+a.values[5],r=s+a.values[6];t.push({type:"A",values:[a.values[0],a.values[1],a.values[2],a.values[3],a.values[4],i,r]}),e=i,s=r}else if(p==="H"){var i=a.values[0];t.push({type:"H",values:[i]}),e=i}else if(p==="h"){var i=e+a.values[0];t.push({type:"H",values:[i]}),e=i}else if(p==="V"){var r=a.values[0];t.push({type:"V",values:[r]}),s=r}else if(p==="v"){var r=s+a.values[0];t.push({type:"V",values:[r]}),s=r}else if(p==="S"){var o=a.values[0],c=a.values[1],i=a.values[2],r=a.values[3];t.push({type:"S",values:[o,c,i,r]}),e=i,s=r}else if(p==="s"){var o=e+a.values[0],c=s+a.values[1],i=e+a.values[2],r=s+a.values[3];t.push({type:"S",values:[o,c,i,r]}),e=i,s=r}else if(p==="T"){var i=a.values[0],r=a.values[1];t.push({type:"T",values:[i,r]}),e=i,s=r}else if(p==="t"){var i=e+a.values[0],r=s+a.values[1];t.push({type:"T",values:[i,r]}),e=i,s=r}else(p==="Z"||p==="z")&&(t.push({type:"Z",values:[]}),e=l,s=n)}),t},G=function(u){var t=[],e=null,s=null,l=null,n=null,a=null,p=null,i=null;return u.forEach(function(r){if(r.type==="M"){var v=r.values[0],h=r.values[1];t.push({type:"M",values:[v,h]}),p=v,i=h,n=v,a=h}else if(r.type==="C"){var o=r.values[0],c=r.values[1],_=r.values[2],f=r.values[3],v=r.values[4],h=r.values[5];t.push({type:"C",values:[o,c,_,f,v,h]}),s=_,l=f,n=v,a=h}else if(r.type==="L"){var v=r.values[0],h=r.values[1];t.push({type:"L",values:[v,h]}),n=v,a=h}else if(r.type==="H"){var v=r.values[0];t.push({type:"L",values:[v,a]}),n=v}else if(r.type==="V"){var h=r.values[0];t.push({type:"L",values:[n,h]}),a=h}else if(r.type==="S"){var _=r.values[0],f=r.values[1],v=r.values[2],h=r.values[3],d,y;e==="C"||e==="S"?(d=n+(n-s),y=a+(a-l)):(d=n,y=a),t.push({type:"C",values:[d,y,_,f,v,h]}),s=_,l=f,n=v,a=h}else if(r.type==="T"){var v=r.values[0],h=r.values[1],o,c;e==="Q"||e==="T"?(o=n+(n-s),c=a+(a-l)):(o=n,c=a);var d=n+2*(o-n)/3,y=a+2*(c-a)/3,A=v+2*(o-v)/3,P=h+2*(c-h)/3;t.push({type:"C",values:[d,y,A,P,v,h]}),s=o,l=c,n=v,a=h}else if(r.type==="Q"){var o=r.values[0],c=r.values[1],v=r.values[2],h=r.values[3],d=n+2*(o-n)/3,y=a+2*(c-a)/3,A=v+2*(o-v)/3,P=h+2*(c-h)/3;t.push({type:"C",values:[d,y,A,P,v,h]}),s=o,l=c,n=v,a=h}else if(r.type==="A"){var m=Math.abs(r.values[0]),I=Math.abs(r.values[1]),M=r.values[2],D=r.values[3],E=r.values[4],v=r.values[5],h=r.values[6];if(m===0||I===0)t.push({type:"C",values:[n,a,v,h,v,h]}),n=v,a=h;else if(n!==v||a!==h){var N=H(n,a,v,h,m,I,M,D,E);N.forEach(function(O){t.push({type:"C",values:O})}),n=v,a=h}}else r.type==="Z"&&(t.push(r),n=p,a=i);e=r.type}),t};SVGPathElement.prototype.setAttribute=function(u,t){u==="d"&&(this[x]=null,this[S]=null),W.call(this,u,t)},SVGPathElement.prototype.setAttributeNS=function(u,t,e){if(t==="d"){var s="http://www.w3.org/2000/svg";if(u)for(var l of this.ownerSVGElement.attributes)l.name===`xmlns:${u}`&&(s=l.value);s==="http://www.w3.org/2000/svg"&&(this[x]=null,this[S]=null)}U.call(this,u,t,e)},SVGPathElement.prototype.removeAttribute=function(u,t){u==="d"&&(this[x]=null,this[S]=null),R.call(this,u)},SVGPathElement.prototype.removeAttributeNS=function(u,t){if(t==="d"){var e="http://www.w3.org/2000/svg";if(u)for(var s of this.ownerSVGElement.attributes)s.name===`xmlns:${u}`&&(e=s.value);e==="http://www.w3.org/2000/svg"&&(this[x]=null,this[S]=null)}g.call(this,u,t)},SVGPathElement.prototype.getPathData=function(u){if(u&&u.normalize){if(this[S])return V(this[S]);var t;this[x]?t=V(this[x]):(t=z(this.getAttribute("d")||""),this[x]=V(t));var e=G(tt(t));return this[S]=V(e),e}else{if(this[x])return V(this[x]);var t=z(this.getAttribute("d")||"");return this[x]=V(t),t}},SVGPathElement.prototype.setPathData=function(u){if(u.length===0)K?this.setAttribute("d",""):this.removeAttribute("d");else{for(var t="",e=0,s=u.length;e<s;e+=1){var l=u[e];e>0&&(t+=" "),t+=l.type,l.values&&l.values.length>0&&(t+=" "+l.values.join(" "))}this.setAttribute("d",t)}},SVGRectElement.prototype.getPathData=function(u){var t=this.x.baseVal.value,e=this.y.baseVal.value,s=this.width.baseVal.value,l=this.height.baseVal.value,n=this.hasAttribute("rx")?this.rx.baseVal.value:this.ry.baseVal.value,a=this.hasAttribute("ry")?this.ry.baseVal.value:this.rx.baseVal.value;n>s/2&&(n=s/2),a>l/2&&(a=l/2);var p=[{type:"M",values:[t+n,e]},{type:"H",values:[t+s-n]},{type:"A",values:[n,a,0,0,1,t+s,e+a]},{type:"V",values:[e+l-a]},{type:"A",values:[n,a,0,0,1,t+s-n,e+l]},{type:"H",values:[t+n]},{type:"A",values:[n,a,0,0,1,t,e+l-a]},{type:"V",values:[e+a]},{type:"A",values:[n,a,0,0,1,t+n,e]},{type:"Z",values:[]}];return p=p.filter(function(i){return!(i.type==="A"&&(i.values[0]===0||i.values[1]===0))}),u&&u.normalize===!0&&(p=G(p)),p},SVGCircleElement.prototype.getPathData=function(u){var t=this.cx.baseVal.value,e=this.cy.baseVal.value,s=this.r.baseVal.value,l=[{type:"M",values:[t+s,e]},{type:"A",values:[s,s,0,0,1,t,e+s]},{type:"A",values:[s,s,0,0,1,t-s,e]},{type:"A",values:[s,s,0,0,1,t,e-s]},{type:"A",values:[s,s,0,0,1,t+s,e]},{type:"Z",values:[]}];return u&&u.normalize===!0&&(l=G(l)),l},SVGEllipseElement.prototype.getPathData=function(u){var t=this.cx.baseVal.value,e=this.cy.baseVal.value,s=this.rx.baseVal.value,l=this.ry.baseVal.value,n=[{type:"M",values:[t+s,e]},{type:"A",values:[s,l,0,0,1,t,e+l]},{type:"A",values:[s,l,0,0,1,t-s,e]},{type:"A",values:[s,l,0,0,1,t,e-l]},{type:"A",values:[s,l,0,0,1,t+s,e]},{type:"Z",values:[]}];return u&&u.normalize===!0&&(n=G(n)),n},SVGLineElement.prototype.getPathData=function(){return[{type:"M",values:[this.x1.baseVal.value,this.y1.baseVal.value]},{type:"L",values:[this.x2.baseVal.value,this.y2.baseVal.value]}]},SVGPolylineElement.prototype.getPathData=function(){for(var u=[],t=0;t<this.points.numberOfItems;t+=1){var e=this.points.getItem(t);u.push({type:t===0?"M":"L",values:[e.x,e.y]})}return u},SVGPolygonElement.prototype.getPathData=function(){for(var u=[],t=0;t<this.points.numberOfItems;t+=1){var e=this.points.getItem(t);u.push({type:t===0?"M":"L",values:[e.x,e.y]})}return u.push({type:"Z",values:[]}),u}}();