PageSourceSearch

https://www.deutschestheatermuseum.de/assets/b6a61e0ad25ace87d27d.js

js deutschestheatermuseum.de collected 2026-10-02 10:03:23 UTC 10,201 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkzk_theatermuseum=self.webpackChunkzk_theatermuseum||[]).push([[589],{1584:function(t,e,i){i.d(e,{o:function(){return r}});var s=i(9597);class n extends s.K{constructor(t){super(t);const{valueType:e}=this,{acceleration:i,epsilon:s,friction:n}=t;this.acceleration=i,this.epsilon=s,this.friction=n,this.targetValue=e.clone(t.targetValue),this.velocity=e.origin()}advance(t){const{playState:e,valueType:i}=this;return"playing"===e&&(this.targetValue=i.clone(t),!0)}update(t){const{targetValue:e,velocity:i}=this,{add:s,length:n,scale:o,subtract:a}=this.valueType;if("playing"!==this.playState)return!1;const{currentValue:r}=this,h=a(e,r),l=s(o(i,this.friction),o(h,this.acceleration));return this.currentValue=s(r,l),this.velocity=l,!(n(l)<this.epsilon)||(this.currentValue=e,this.handleFinished(),!1)}}var o=i(4886),a=i(4835);function r(t,e,i={}){const s=Object.assign({},r.defaultOptions,i);return(0,a.o)(t,(0,o.b)(e),s,n,(t=>({advance:i=>Object.keys(e).reduce(((e,s)=>{const n=t.find((t=>t.property===s));if(!n)throw new Error(`Cannot advance spring, unknown property '${s}'.`);return n.advance(i[s])&&e}),!0)})))}!function(t){t.defaultOptions={acceleration:.1,epsilon:.1,friction:.4}}(r||(r={}))},5589:function(t,e,i){i.r(e),i.d(e,{default:function(){return H}});var s=i(6977),n=i(9320),o=i(7396),a=i(6033),r=i(8635),h=i(226),l=i(1635),c=i(4395),d=i(2573),u=i(6225),p=i(4940),g=i(3138);const m="undefined"!=typeof document&&document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","");const f=function(t,e){if("undefined"==typeof document)return!1;if(e&&!("addEventListener"in document))return!1;var i="on"+t,s=i in document;if(!s){var n=document.createElement("div");n.setAttribute(i,"return;"),s="function"==typeof n[i]}return!s&&m&&"wheel"===t&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}("wheel")?"wheel":"mousewheel";var v=i(1584);class w extends p.Q{constructor(t,e={}){super(t,e),this.power=1,this.requireCtrlKey=!1;const{enabled:i=!0}=e;this.enabled=i}handleWheel(t){if(!this.enabled)return;if(this.requireCtrlKey&&!this.hasCtrlKey(t))return void this.onCtrlAbort();t.preventDefault();const e=function(t){let e=0,i=0,s=0,n=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),s=10*e,n=10*i,"deltaY"in t&&(n=t.deltaY),"deltaX"in t&&(s=t.deltaX),(s||n)&&t.deltaMode&&(1==t.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!e&&(e=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:e,spinY:i,pixelX:s,pixelY:n}}(t),{view:i}=this,{position:{x:s,y:n},scale:o}=i;let a=o;if(e.spinY<-.01?a/=1-e.spinY*this.power:e.spinY>.01&&(a*=1+e.spinY*this.power),a=i.limitScale(a),Math.abs(o-a)<1e-4)return;const{left:r,top:h}=i.el.getBoundingClientRect();let l=t.clientX-r,c=t.clientY-h;l+=(s-l)/o*a,c+=(n-c)/o*a,(0,v.o)(i,{position:i.limitPosition({x:l,y:c},a),scale:a},{epsilon:1e-5})}hasCtrlKey(t){return t.ctrlKey||t.metaKey}onCtrlAbort(){}}(0,l.Cg)([(0,g.f)({name:f})],w.prototype,"handleWheel",null);var y=i(6687),x=i(6037),M=i(8898),P=i(7277),V=i(3534);class C extends V.L{constructor(){super(...arguments),this.minPointers=1,this.isActive=!1}onTransform(t,e){return!0}onTransformBegin(t,e){return!0}onTransformEnd(t,e){}onAdd(t,e){const{isActive:i,maxPointers:s,minPointers:n}=this,o=this.pointers.length+1;return!((0,P.E)(s)&&o>=s)&&(!!(i||o<n)||(this.isActive=this.onTransformBegin(t,e)))}onChanged(t,e){this.onMove(t,e)}onMove(t,e){return!(!this.isActive||!this.onTransform(t,e))||(this.removeAllPointers(),!1)}onRemove(t,e){const{isActive:i,minPointers:s,pointers:n}=this,o=n.length-1;i&&o<s&&(this.onTransformEnd(t,e),this.isActive=!1)}}var b=i(5640);class T extends C{constructor(t,e={}){super(t,e),this.allowMoveX=!0,this.allowMoveY=!0,this.allowScale=!0,this.initialPosition={x:0,y:0},this.initialScale=0,this.isActive=!1;const{enabled:i=!0}=e;this.enabled=i}didTransformChange(t=2,e=.001){const{initialPosition:i,initialScale:s,view:n}=this;return Math.abs(i.x-n.position.x)>t||Math.abs(i.y-n.position.y)>t||Math.abs(s-n.scale)>e}onTransformBegin(t,e){const{view:i}=this,{position:{x:s,y:n},scale:o}=i;return!!this.enabled&&(this.initialPosition={x:s,y:n},this.initialScale=o,(0,u.ds)(i),!0)}onTransform(t,e){const{center:i,initialPosition:s,initialScale:n,transform:o,view:a}=this,{max:r,min:h}=a.getScaleBounds();let l=n;this.allowScale&&(l*=o.scale),isFinite(l)||(l=n),l<h&&(l=h+.25*(l-h)),l>r&&(l=r+.25*(l-r));const{xMax:c,xMin:d,yMax:u,yMin:p}=a.getPositionBounds(l),{left:g,top:m}=a.el.getBoundingClientRect();let f=i.x-g,v=i.y-m;return f+=(s.x-f)/n*l,v+=(s.y-v)/n*l,this.allowMoveX&&(f+=o.x),this.allowMoveY&&(v+=o.y),f<d&&(f=d+.5*(f-d)),f>c&&(f=c+.5*(f-c)),v<p&&(v=p+.5*(v-p)),v>u&&(v=u+.5*(v-u)),a.setPosition({x:f,y:v}),a.setScale(l),!0}onTransformEnd(t,e){const{view:i}=this,{position:s,scale:n}=i,o=i.limitScale(n);if(this.didTransformChange())if(y.w.tryPreventNextClick(i),this.pointers.length>1){const{left:t,top:e}=i.el.getBoundingClientRect(),a=this.center;let r=a.x-t,h=a.y-e;r+=(s.x-r)/n*o,h+=(s.y-h)/n*o,(0,b.Q)(i,{position:i.limitPosition({x:r,y:h},o),scale:o},{easing:x.l})}else{const t=i.getPositionBounds(o),e=this.velocity.get();this.allowMoveX||(e.x=0),this.allowMoveY||(e.y=0),(0,M.P)(i,{position:{velocity:{x:e.x,y:e.y},max:{x:t.xMax,y:t.yMax},min:{x:t.xMin,y:t.yMin}}})}else this.onClick&&this.onClick()}}const B=1e-4;class S extends c.S{constructor(t){super(t),this.coverPadding=0,this.fitPadding=0,this.height=0,this.position={x:0,y:0},this.resizeMode="auto",this.scale=1,this.width=0;const{enabled:e=!0}=t;this.zoomBehaviour=this.addBehaviour(T,{enabled:e}),this.wheelBehaviour=this.addBehaviour(w,{enabled:e})}applyViewProps([t,e,i]){this.scale=i,this.position.x=t,this.position.y=e,(0,u.ds)(this),this.draw()}clampView(){const t=this.limitScale(this.scale),{x:e,y:i}=this.limitPosition(this.position,t);this.applyViewProps([e,i,t])}coverView(){this.applyViewProps(this.getCoverViewProps())}isCoverView(){return this.matchesViewProps(this.getCoverViewProps())}isFitToView(){return"auto"===this.resizeMode&&0==this.width&&0==this.height||this.matchesViewProps(this.getFitToViewProps())}fitToView(){this.applyViewProps(this.getFitToViewProps())}matchesViewProps([t,e,i]){return Math.abs(this.scale-i)<B&&Math.abs(this.position.x-t)<B&&Math.abs(this.position.y-e)<B}getCenteredViewProps(t,[e,i]=[.5,.5],[s,n]=[0,0]){const{height:o,width:a}=this;return[s+(a-this.getNativeWidth()*t)*e,n+(o-this.getNativeHeight()*t)*i,t]}getCoverViewProps(t=this.coverPadding){return this.getCenteredViewProps(Math.max((this.height-2*t)/this.getNativeHeight(),(this.width-2*t)/this.getNativeWidth()))}getFitToViewProps(t=this.fitPadding){const[e,i,s]=this.getViewportProps(t);return this.getCenteredViewProps(Math.min(1,i/this.getNativeHeight(),e/this.getNativeWidth()),[.5,.5],s)}getPositionBounds(t=this.scale){const[e,i]=this.getViewportProps(),{fitPadding:s,height:n,width:o}=this,a=this.getNativeHeight(),r=this.getNativeWidth()*t,h=a*t,l=.5*(e-r),c=.5*(i-h);let d=0;r<o&&(d="number"==typeof s?s:s[3]);let u=0;h<n&&(u="number"==typeof s?s:s[0]);return{xMax:Math.max(l+d,d),xMin:Math.min(l+d,o-r+d),yMax:Math.max(c+u,u),yMin:Math.min(c+u,n-h+u)}}getScaleBounds(){const[t,e]=this.getViewportProps(),i=this.getNativeHeight(),s=this.getNativeWidth();return{min:Math.min(1,e/i,t/s),max:1}}getViewportProps(t=this.fitPadding){let{height:e,width:i}=this;if("number"==typeof t)return[i-2*t,e-2*t,[0,0]];{const s=t[0]+t[2],n=t[1]+t[3];return[i-n,e-s,[t[3]-.5*n,t[0]-.5*s]]}}limitPosition({x:t,y:e},i=this.scale){const{xMax:s,xMin:n,yMin:o,yMax:a}=this.getPositionBounds(i);return t<n&&(t=n),t>s&&(t=s),e<o&&(e=o),e>a&&(e=a),{x:t,y:e}}limitScale(t){const{max:e,min:i}=this.getScaleBounds();return t<i&&(t=i),t>e&&(t=e),t}setPosition({x:t,y:e}){const{position:i}=this;i.x===t&&i.y===e||(i.x=t,i.y=e,this.draw())}setScale(t){this.scale!==t&&(this.scale=t,this.draw())}onMeasure(){const{el:t,resizeMode:e}=this,i="auto"==e&&this.isFitToView();switch(this.height=t.offsetHeight,this.width=t.offsetWidth,e){case"cover":return this.coverView;case"fit":return this.fitToView;case"clamp":return this.clampView;case"auto":return i?this.fitToView:this.clampView}}}function A(){}function F(){return A}(0,l.Cg)([(0,d.y)({events:"resize",mode:"read"})],S.prototype,"onMeasure",null);class H extends S{constructor(t){super(t),this.image=null,this.isLoaded=!1,this.isFirstMeasure=!0,this.nativeHeight=0,this.nativeWidth=0;const e=this.find("img");if(e){(0,n.Hx)(e);const t=this.image=(0,n.KZ)(e,o._);t&&(t.onResize=F),this.nativeHeight=parseInt((0,s.p)(e,"height")||"0"),this.nativeWidth=parseInt((0,s.p)(e,"width")||"0")}this.content=this.find(".dtmImageZoom__image")||this.el,this.zoomBehaviour.onClick=()=>{const t=(0,n.KZ)(this.find("!dialog"),"ImageLayer");t&&t.hide()}}draw(){const{content:t,image:e,position:i,scale:s}=this;t.style[r.pd]=`translate(${i.x}px, ${i.y}px) scale(${s})`,this.isLoaded||(this.isLoaded=!0,this.addClass("loaded"),e&&(e.loadMode=a.mb.Always)),e&&(e.dis
1playHeight=this.nativeHeight*s,e.displayWidth=this.nativeWidth*s,e.update())}fadeOut(){this.transist(!0)}getNativeHeight(){return this.nativeHeight}getNativeWidth(){return this.nativeWidth}getOrigin(){const t=(0,n.KZ)(this.find("!.dtmImageLayer"),"ImageLayer");return t?t.params.element({name:"origin"}):null}onFirstMeasure(){this.fitToView(),this.transist()}transist(t){const e=this.find(".dtmImageZoom__imageEffect"),i=this.getOrigin(),s=this.find("img");if(!e||!s||!i)return;const n=i.getBoundingClientRect(),o=s.getBoundingClientRect(),a=`translate(${(n.left-o.left)/this.scale}px, ${(n.top-o.top)/this.scale}px) scale(${n.width/o.width})`,r="translate(0px, 0px) scale(1)";(0,h.l)(e,{transform:{from:t?r:a,to:t?a:r}},{duration:t?200:400})}onMeasure(){const t=super.onMeasure();return this.isFirstMeasure?(this.isFirstMeasure=!1,this.onFirstMeasure):t}}},8635:function(t,e,i){i.d(e,{pd:function(){return a}});var s=i(717),n=i(3076);const o=!s.M||"transform"in document.documentElement.style?t=>t:t=>`webkit${(0,n.T)(t)}`,a=(o("perspective"),o("transform"));o("transformOrigin")}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.